@razorpay/blade 10.15.3 → 10.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/build/components/index.d.ts +432 -2
  2. package/build/components/index.development.web.js +2674 -1967
  3. package/build/components/index.development.web.js.map +1 -1
  4. package/build/components/index.native.d.ts +111 -2
  5. package/build/components/index.native.js +373 -354
  6. package/build/components/index.native.js.map +1 -1
  7. package/build/components/index.production.web.js +2653 -1966
  8. package/build/components/index.production.web.js.map +1 -1
  9. package/build/css/bankingThemeDarkDesktop.css +2 -3
  10. package/build/css/bankingThemeDarkMobile.css +2 -3
  11. package/build/css/bankingThemeLightDesktop.css +3 -4
  12. package/build/css/bankingThemeLightMobile.css +3 -4
  13. package/build/css/paymentThemeDarkDesktop.css +3 -4
  14. package/build/css/paymentThemeDarkMobile.css +3 -4
  15. package/build/css/paymentThemeLightDesktop.css +3 -4
  16. package/build/css/paymentThemeLightMobile.css +3 -4
  17. package/build/tokens/index.d.ts +0 -1
  18. package/build/tokens/index.development.web.js +7 -19
  19. package/build/tokens/index.development.web.js.map +1 -1
  20. package/build/tokens/index.native.d.ts +0 -1
  21. package/build/tokens/index.native.js +3 -3
  22. package/build/tokens/index.native.js.map +1 -1
  23. package/build/tokens/index.production.web.js +7 -19
  24. package/build/tokens/index.production.web.js.map +1 -1
  25. package/build/utils/index.d.ts +1 -2
  26. package/build/utils/index.development.web.js.map +1 -1
  27. package/build/utils/index.native.d.ts +1 -2
  28. package/build/utils/index.native.js.map +1 -1
  29. package/build/utils/index.production.web.js.map +1 -1
  30. package/package.json +31 -20
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@razorpay/blade",
3
3
  "description": "The Design System that powers Razorpay",
4
- "version": "10.15.3",
4
+ "version": "10.17.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"
@@ -86,24 +86,24 @@
86
86
  "types:copy-declarations:native": "copyfiles -u 1 \"src/**/*.d.ts\" build/types/native",
87
87
  "build:generate-root-imports": "rollup -c && node ./scripts/generateRootImports.js",
88
88
  "build:clean-declarations": "rm -rf build/types",
89
- "build:react-dev": "FRAMEWORK=REACT NODE_ENV=development rollup -c",
90
- "build:react-prod": "FRAMEWORK=REACT NODE_ENV=production rollup -c",
91
- "build:react-native": "FRAMEWORK=REACT_NATIVE rollup -c",
92
- "build:generate-css-variables": "GENERATE_CSS_VARIABLES=true FRAMEWORK=REACT rollup -c && node ./scripts/generateCssThemeVariables.js",
89
+ "build:react-dev": "cross-env FRAMEWORK=REACT NODE_ENV=development rollup -c",
90
+ "build:react-prod": "cross-env FRAMEWORK=REACT NODE_ENV=production rollup -c",
91
+ "build:react-native": "cross-env FRAMEWORK=REACT_NATIVE rollup -c",
92
+ "build:generate-css-variables": "cross-env GENERATE_CSS_VARIABLES=true FRAMEWORK=REACT rollup -c && node ./scripts/generateCssThemeVariables.js",
93
93
  "build:clean-theme-bundle": "rm -rf build/js-bundle-for-css",
94
94
  "react-native:get-stories": "sb-rn-get-stories --config-path=./.storybook/react-native && yarn prettier --write ./.storybook/react-native/storybook.requires.js",
95
- "react-native:storybook:android": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native run-android",
96
- "react-native:storybook:ios": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native run-ios",
97
- "react-native:storybook:start": "yarn react-native:get-stories && NODE_OPTIONS=--openssl-legacy-provider FRAMEWORK=REACT_NATIVE react-native start --reset-cache",
95
+ "react-native:storybook:android": "yarn react-native:get-stories && cross-env FRAMEWORK=REACT_NATIVE react-native run-android",
96
+ "react-native:storybook:ios": "yarn react-native:get-stories && cross-env FRAMEWORK=REACT_NATIVE react-native run-ios",
97
+ "react-native:storybook:start": "yarn react-native:get-stories && cross-env NODE_OPTIONS=--openssl-legacy-provider FRAMEWORK=REACT_NATIVE react-native start --reset-cache",
98
98
  "react": "yarn run react:storybook",
99
- "react:storybook": "NODE_OPTIONS=--openssl-legacy-provider FRAMEWORK=REACT start-storybook -c ./.storybook/react -p 9009",
100
- "react:storybook:build": "NODE_OPTIONS=--openssl-legacy-provider FRAMEWORK=REACT build-storybook -c ./.storybook/react -o storybook-site",
101
- "test:react": "FRAMEWORK=REACT jest -c ./jest.web.config.js --shard=$SHARD --forceExit",
102
- "test:react-native": "FRAMEWORK=REACT_NATIVE jest -c ./jest.native.config.js --shard=$SHARD --forceExit",
103
- "start:ios": "NODE_OPTIONS=--openssl-legacy-provider run-p react-native:storybook:start react-native:storybook:ios",
104
- "start:android": "NODE_OPTIONS=--openssl-legacy-provider run-p react-native:storybook:start react-native:storybook:android",
105
- "start:native": "NODE_OPTIONS=--openssl-legacy-provider run-p react-native:storybook:start react-native:storybook:android react-native:storybook:ios",
106
- "start:web": "NODE_OPTIONS=--openssl-legacy-provider yarn react",
99
+ "react:storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider FRAMEWORK=REACT start-storybook -c ./.storybook/react -p 9009",
100
+ "react:storybook:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider FRAMEWORK=REACT build-storybook -c ./.storybook/react -o storybook-site",
101
+ "test:react": "cross-env FRAMEWORK=REACT jest -c ./jest.web.config.js --shard=$SHARD --forceExit",
102
+ "test:react-native": "cross-env FRAMEWORK=REACT_NATIVE jest -c ./jest.native.config.js --shard=$SHARD --forceExit",
103
+ "start:ios": "cross-env NODE_OPTIONS=--openssl-legacy-provider run-p react-native:storybook:start react-native:storybook:ios",
104
+ "start:android": "cross-env NODE_OPTIONS=--openssl-legacy-provider run-p react-native:storybook:start react-native:storybook:android",
105
+ "start:native": "cross-env NODE_OPTIONS=--openssl-legacy-provider run-p react-native:storybook:start react-native:storybook:android react-native:storybook:ios",
106
+ "start:web": "cross-env NODE_OPTIONS=--openssl-legacy-provider yarn react",
107
107
  "start:all": "run-p start:native start:web",
108
108
  "watch:test": "run-p watch:test:*",
109
109
  "watch:test:react": "yarn test:react --watch --onlyChanged",
@@ -119,10 +119,12 @@
119
119
  "@use-gesture/react": "10.2.24",
120
120
  "body-scroll-lock": "4.0.0-beta.0",
121
121
  "use-presence": "1.1.0",
122
- "@floating-ui/react": "0.24.2",
123
- "@floating-ui/react-native": "0.10.0",
122
+ "@floating-ui/react": "0.25.4",
123
+ "@floating-ui/react-native": "0.10.1",
124
124
  "patch-package": "7.0.0",
125
- "tinycolor2": "1.6.0"
125
+ "tinycolor2": "1.6.0",
126
+ "react-native-tab-view": "3.5.2",
127
+ "react-native-pager-view": "6.2.1"
126
128
  },
127
129
  "devDependencies": {
128
130
  "chromatic": "6.22.0",
@@ -160,6 +162,8 @@
160
162
  "@storybook/preset-create-react-app": "3.2.0",
161
163
  "@storybook/react": "6.5.16",
162
164
  "@storybook/react-native": "6.5.5",
165
+ "storybook-react-router": "1.0.8",
166
+ "react-router-dom": "5.3.4",
163
167
  "@testing-library/jest-dom": "5.16.4",
164
168
  "@testing-library/jest-native": "5.4.2",
165
169
  "@testing-library/react": "13.4.0",
@@ -179,6 +183,8 @@
179
183
  "@types/styled-components": "5.1.25",
180
184
  "@types/styled-components-react-native": "5.1.3",
181
185
  "@types/tinycolor2": "1.4.3",
186
+ "@types/react-router-dom": "5.3.3",
187
+ "@types/storybook-react-router": "1.0.5",
182
188
  "any-leaf": "1.2.2",
183
189
  "args-parser": "1.3.0",
184
190
  "babel-jest": "29.6.1",
@@ -188,6 +194,7 @@
188
194
  "bundlemon": "2.0.1",
189
195
  "chalk": "4.1.1",
190
196
  "copyfiles": "2.4.1",
197
+ "cross-env": "7.0.3",
191
198
  "dedent": "0.7.0",
192
199
  "eslint-plugin-mdx": "1.16.0",
193
200
  "execa": "5.0.0",
@@ -213,6 +220,8 @@
213
220
  "react-native-gesture-handler": "2.9.0",
214
221
  "react-native-reanimated": "3.4.1",
215
222
  "react-native-svg": "12.3.0",
223
+ "react-native-tab-view": "3.5.2",
224
+ "react-native-pager-view": "6.2.1",
216
225
  "react-scripts": "4.0.3",
217
226
  "react-test-renderer": "18.2.0",
218
227
  "rollup": "3.28.1",
@@ -231,12 +240,14 @@
231
240
  "peerDependencies": {
232
241
  "@gorhom/bottom-sheet": "^4",
233
242
  "@gorhom/portal": "1.0.14",
234
- "@floating-ui/react": "0.24.2",
243
+ "@floating-ui/react": "0.25.4",
235
244
  "@floating-ui/react-native": "0.10.0",
236
245
  "react": ">=18",
237
246
  "react-dom": ">=18",
238
247
  "react-native": "^0.72",
239
248
  "react-native-reanimated": "^3.4.1",
249
+ "react-native-tab-view": "3.5.2",
250
+ "react-native-pager-view": "6.2.1",
240
251
  "react-native-svg": "^12.3.0",
241
252
  "styled-components": "^5",
242
253
  "react-native-gesture-handler": "^2.9.0"