Skip to content

Commit

Permalink
fix: npmrc registry url
Browse files Browse the repository at this point in the history
* fix: npmrc registry url

* chore: fix types

* chore: update lock

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update storybookjs

* Merge remote-tracking branch 'origin' into anu/registry-url-fix

* chore: fix build

* chore: fix build

* chore: update

* chore: update snaps
  • Loading branch information
anuraghazra authored Apr 5, 2024
1 parent 65a6be0 commit 460a23d
Show file tree
Hide file tree
Showing 325 changed files with 9,267 additions and 9,719 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/blade-bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Update Bundle Size Data
run: yarn generate-bundle-size-info
Expand All @@ -51,11 +47,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Build Blade React Production
run: yarn run-s build:clean build:generate-types build:react-prod
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/blade-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Publish to Chromatic
uses: chromaui/action@v1
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/blade-interaction-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Run Interaction Tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blade-pr-title-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Blade PR Title Check

on:
pull_request_target:
types: [open, edited, synchronize]
types: [opened, edited, synchronize]

concurrency: # cancel previously running workflows when a new workflow is re-run
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/blade-tokens-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Upload Tokens
working-directory: packages/blade
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/blade-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Build Blade
run: yarn build
Expand All @@ -45,11 +41,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Run Unit Tests
run: yarn test
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.12.1
# https://stackoverflow.com/a/73824182
registry-url: "https://npm.pkg.github.com"
- name: Setup Cache & Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/actions/install-dependencies
- name: Create Release Pull Request & Publish packages
id: changesets
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@razorpay:registry=https://registry.npmjs.org/
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
"@babel/eslint-parser": "7.21.8",
"@changesets/cli": "2.24.1",
"@types/jest": "26.0.23",
"@types/react": "17.0.4",
"@types/react-native": "0.64.4",
"@types/styled-components": "5.1.25",
"@types/styled-components-react-native": "5.1.3",
"@types/react": "18.2.24",
"@typescript-eslint/eslint-plugin": "5.59.6",
"@typescript-eslint/parser": "5.59.6",
"@typescript-eslint/utils": "5.59.6",
Expand Down Expand Up @@ -63,6 +60,10 @@
"stylelint-processor-styled-components": "1.10.0",
"typescript": "4.8.2"
},
"resolutions": {
"@types/react": "18.2.24",
"@types/styled-components": "5.1.34"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
Expand Down
2 changes: 2 additions & 0 deletions packages/blade/.storybook/react-native/storybook.requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const getStories = () => {
'./src/components/Button/BaseButton/BaseButton.internal.stories.tsx': require('../../src/components/Button/BaseButton/BaseButton.internal.stories.tsx'),
'./src/components/Button/Button/Button.stories.tsx': require('../../src/components/Button/Button/Button.stories.tsx'),
'./src/components/Button/IconButton/IconButton.stories.tsx': require('../../src/components/Button/IconButton/IconButton.stories.tsx'),
'./src/components/ButtonGroup/docs/ButtonGroup.stories.tsx': require('../../src/components/ButtonGroup/docs/ButtonGroup.stories.tsx'),
'./src/components/Card/Card.stories.tsx': require('../../src/components/Card/Card.stories.tsx'),
'./src/components/Card/CardInteractive.stories.tsx': require('../../src/components/Card/CardInteractive.stories.tsx'),
'./src/components/Carousel/Carousel.stories.tsx': require('../../src/components/Carousel/Carousel.stories.tsx'),
Expand All @@ -80,6 +81,7 @@ const getStories = () => {
'./src/components/Input/DropdownInputTriggers/SelectInput.stories.tsx': require('../../src/components/Input/DropdownInputTriggers/SelectInput.stories.tsx'),
'./src/components/Input/OTPInput/OTPInput.stories.tsx': require('../../src/components/Input/OTPInput/OTPInput.stories.tsx'),
'./src/components/Input/PasswordInput/PasswordInput.stories.tsx': require('../../src/components/Input/PasswordInput/PasswordInput.stories.tsx'),
'./src/components/Input/PhoneNumberInput/PhoneNumberInput.stories.tsx': require('../../src/components/Input/PhoneNumberInput/PhoneNumberInput.stories.tsx'),
'./src/components/Input/TextArea/TextArea.stories.tsx': require('../../src/components/Input/TextArea/TextArea.stories.tsx'),
'./src/components/Input/TextInput/TextInput.stories.tsx': require('../../src/components/Input/TextInput/TextInput.stories.tsx'),
'./src/components/Link/BaseLink/BaseLink.stories.tsx': require('../../src/components/Link/BaseLink/BaseLink.stories.tsx'),
Expand Down
10 changes: 6 additions & 4 deletions packages/blade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@
"@types/jest-axe": "3.5.5",
"@types/jscodeshift": "0.11.6",
"@types/jsdom": "20.0.1",
"@types/react": "17.0.38",
"@types/react": "18.2.24",
"@types/react-native": "0.72.2",
"@types/react-test-renderer": "17.0.1",
"@types/styled-components": "5.1.25",
"@types/styled-components": "5.1.34",
"@types/styled-components-react-native": "5.1.3",
"@types/tinycolor2": "1.4.3",
"@types/react-router-dom": "5.3.3",
Expand Down Expand Up @@ -250,7 +250,7 @@
"react-native": "0.72.3",
"react-native-gesture-handler": "2.9.0",
"react-native-reanimated": "3.4.2",
"react-native-svg": "12.3.0",
"react-native-svg": "15.1.0",
"react-scripts": "5.0.1",
"react-test-renderer": "18.2.0",
"rollup": "3.28.1",
Expand All @@ -271,7 +271,7 @@
"react-native-safe-area-context": "3.4.1",
"ttypescript": "1.5.15",
"typescript": "4.9",
"typescript-transform-paths": "3.4.6",
"typescript-transform-paths": "3.4.7",
"@types/body-scroll-lock": "3.1.0",
"ramda": "0.29.1",
"@razorpay/i18nify-js": "1.8.0",
Expand Down Expand Up @@ -306,6 +306,8 @@
"@storybook/**/react": "18.2.0",
"react-dom": "18.2.0",
"react": "18.2.0",
"@types/react": "18.2.24",
"@types/styled-components": "5.1.34",
"styled-components": "^5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,12 @@ exports[`<Accordion /> should render 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -906,7 +911,12 @@ exports[`<Accordion /> should render 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -1455,7 +1465,12 @@ exports[`<Accordion /> should render 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -2053,7 +2068,12 @@ exports[`Deprecated <Accordion /> should render 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -2602,7 +2622,12 @@ exports[`Deprecated <Accordion /> should render 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -3151,7 +3176,12 @@ exports[`Deprecated <Accordion /> should render 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -3748,7 +3778,12 @@ exports[`Deprecated <Accordion /> should render deprecated API 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -4297,7 +4332,12 @@ exports[`Deprecated <Accordion /> should render deprecated API 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down Expand Up @@ -4846,7 +4886,12 @@ exports[`Deprecated <Accordion /> should render deprecated API 1`] = `
<RNSVGPath
clipRule={0}
d="M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"
fill={4285959847}
fill={
{
"payload": 4285959847,
"type": 0,
}
}
fillRule={0}
propList={
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ const _ActionListBox = React.forwardRef<SectionList, ActionListBoxProps>(
({ sectionData, actionListItemWrapperRole, isMultiSelectable, isInBottomSheet }, ref) => {
const { footerHeight, setContentHeight } = useBottomSheetContext();

const renderActionListItem = React.useCallback(({ item }) => {
const renderActionListItem = React.useCallback(({ item }: any) => {
return <ActionListItem {...item} />;
}, []);

const renderActionListSectionHeader = React.useCallback(({ section: { title } }) => {
const renderActionListSectionHeader = React.useCallback(({ section: { title } }: any) => {
if (!title) return null;
return <ActionListSection title={title} _hideDivider={true} children={undefined} />;
}, []);

const renderActionListSectionDivider = React.useCallback(
({ section: { title, hideDivider } }) => {
({ section: { title, hideDivider } }: any) => {
if (!title) return null;
if (hideDivider) return null;
return <Divider />;
Expand Down
Loading

0 comments on commit 460a23d

Please sign in to comment.