@razorpay/blade 10.12.0 → 10.13.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.
- package/build/components/index.d.ts +6 -6
- package/build/components/index.development.web.js +21 -20
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +6 -6
- package/build/components/index.native.js +7 -7
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +21 -20
- package/build/components/index.production.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/build/tokens/index.d.ts +18 -1
- package/build/tokens/index.development.web.js +2292 -1325
- package/build/tokens/index.development.web.js.map +1 -1
- package/build/tokens/index.native.d.ts +18 -1
- package/build/tokens/index.native.js +1498 -898
- package/build/tokens/index.native.js.map +1 -1
- package/build/tokens/index.production.web.js +1517 -91
- package/build/tokens/index.production.web.js.map +1 -1
- package/package.json +4 -2
|
@@ -2992,7 +2992,7 @@ function _objectSpread$6g(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
2992
2992
|
/**
|
|
2993
2993
|
* Reusable hook to be used in BladeProvider.native & BladeProvider.web file
|
|
2994
2994
|
*
|
|
2995
|
-
* This hook
|
|
2995
|
+
* This hook processes incoming themeTokens & initialColorScheme
|
|
2996
2996
|
* And validates & returns the theme values
|
|
2997
2997
|
*/
|
|
2998
2998
|
var useBladeProvider = function useBladeProvider(_ref) {
|
|
@@ -14375,7 +14375,7 @@ var CheckedIcon$1 = function CheckedIcon(_ref) {
|
|
|
14375
14375
|
clipRule: "evenodd",
|
|
14376
14376
|
d: "M6.90237 1.76413C7.03254 1.89431 7.03254 2.10536 6.90237 2.23554L3.2357 5.90221C3.10553 6.03238 2.89447 6.03238 2.7643 5.90221L1.09763 4.23554C0.967456 4.10536 0.967456 3.89431 1.09763 3.76414C1.22781 3.63396 1.43886 3.63396 1.56904 3.76414L3 5.1951L6.43096 1.76413C6.56114 1.63396 6.77219 1.63396 6.90237 1.76413Z",
|
|
14377
14377
|
fill: color,
|
|
14378
|
-
stroke:
|
|
14378
|
+
stroke: color,
|
|
14379
14379
|
strokeWidth: "0.5",
|
|
14380
14380
|
strokeLinecap: "round",
|
|
14381
14381
|
strokeLinejoin: "round"
|
|
@@ -14397,7 +14397,7 @@ var IndeterminateIcon = function IndeterminateIcon(_ref2) {
|
|
|
14397
14397
|
clipRule: "evenodd",
|
|
14398
14398
|
d: "M1.3335 3.99984C1.3335 3.81574 1.48273 3.6665 1.66683 3.6665H6.3335C6.51759 3.6665 6.66683 3.81574 6.66683 3.99984C6.66683 4.18393 6.51759 4.33317 6.3335 4.33317H1.66683C1.48273 4.33317 1.3335 4.18393 1.3335 3.99984Z",
|
|
14399
14399
|
fill: color,
|
|
14400
|
-
stroke:
|
|
14400
|
+
stroke: color,
|
|
14401
14401
|
strokeWidth: "0.5",
|
|
14402
14402
|
strokeLinecap: "round",
|
|
14403
14403
|
strokeLinejoin: "round"
|
|
@@ -15194,18 +15194,18 @@ var _Checkbox = function _Checkbox(_ref, ref) {
|
|
|
15194
15194
|
isIndeterminate: isIndeterminate,
|
|
15195
15195
|
isDisabled: _isDisabled,
|
|
15196
15196
|
isNegative: _hasError
|
|
15197
|
-
}), /*#__PURE__*/jsx(SelectorTitle, {
|
|
15197
|
+
}), children ? /*#__PURE__*/jsx(SelectorTitle, {
|
|
15198
15198
|
size: _size,
|
|
15199
15199
|
isDisabled: _isDisabled,
|
|
15200
15200
|
children: children
|
|
15201
|
-
})]
|
|
15202
|
-
}), /*#__PURE__*/jsx(BaseBox, {
|
|
15201
|
+
}) : null]
|
|
15202
|
+
}), showSupportingText ? /*#__PURE__*/jsx(BaseBox, {
|
|
15203
15203
|
marginLeft: isSmall ? 'spacing.6' : 'spacing.7',
|
|
15204
|
-
children:
|
|
15204
|
+
children: /*#__PURE__*/jsx(SelectorSupportText, {
|
|
15205
15205
|
id: ids === null || ids === void 0 ? void 0 : ids.helpTextId,
|
|
15206
15206
|
children: helpText
|
|
15207
15207
|
})
|
|
15208
|
-
})]
|
|
15208
|
+
}) : null]
|
|
15209
15209
|
})
|
|
15210
15210
|
}), /*#__PURE__*/jsx(FormHint, {
|
|
15211
15211
|
errorText: errorText,
|
|
@@ -15400,14 +15400,14 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
15400
15400
|
labelledBy: ids.labelId,
|
|
15401
15401
|
componentName: "checkbox-group",
|
|
15402
15402
|
testID: testID,
|
|
15403
|
-
children: [/*#__PURE__*/jsx(FormLabel, {
|
|
15403
|
+
children: [label ? /*#__PURE__*/jsx(FormLabel, {
|
|
15404
15404
|
as: "span",
|
|
15405
15405
|
necessityIndicator: necessityIndicator,
|
|
15406
15406
|
position: labelPosition,
|
|
15407
15407
|
id: ids.labelId,
|
|
15408
15408
|
accessibilityText: accessibilityText,
|
|
15409
15409
|
children: label
|
|
15410
|
-
}), /*#__PURE__*/jsxs(BaseBox, {
|
|
15410
|
+
}) : null, /*#__PURE__*/jsxs(BaseBox, {
|
|
15411
15411
|
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
15412
15412
|
display: "flex",
|
|
15413
15413
|
flexDirection: "column",
|
|
@@ -17562,11 +17562,12 @@ var Card = function Card(_ref) {
|
|
|
17562
17562
|
return /*#__PURE__*/jsx(CardProvider, {
|
|
17563
17563
|
children: /*#__PURE__*/jsx(CardRoot, _objectSpread$1h(_objectSpread$1h(_objectSpread$1h({
|
|
17564
17564
|
as: as,
|
|
17565
|
+
display: 'block',
|
|
17566
|
+
borderRadius: "medium",
|
|
17565
17567
|
onMouseEnter: onHover,
|
|
17566
17568
|
shouldScaleOnHover: shouldScaleOnHover,
|
|
17567
17569
|
isSelected: isSelected,
|
|
17568
|
-
isFocused: isFocused
|
|
17569
|
-
borderRadius: "medium"
|
|
17570
|
+
isFocused: isFocused
|
|
17570
17571
|
// on react native we need to pass onClick to root, because we don't need the LinkOverlay in RN
|
|
17571
17572
|
,
|
|
17572
17573
|
onClick: isReactNative$4() ? onClick : undefined,
|
|
@@ -19399,14 +19400,14 @@ var chipColorTokens = {
|
|
|
19399
19400
|
text: {
|
|
19400
19401
|
unchecked: 'surface.text.subtle.lowContrast',
|
|
19401
19402
|
disabled: 'surface.text.placeholder.lowContrast',
|
|
19402
|
-
none: '
|
|
19403
|
+
none: 'action.text.secondary.default',
|
|
19403
19404
|
positive: 'feedback.text.positive.lowContrast',
|
|
19404
19405
|
negative: 'feedback.text.negative.lowContrast'
|
|
19405
19406
|
},
|
|
19406
19407
|
icon: {
|
|
19407
19408
|
unchecked: 'surface.text.subtle.lowContrast',
|
|
19408
19409
|
disabled: 'surface.text.placeholder.lowContrast',
|
|
19409
|
-
none: '
|
|
19410
|
+
none: 'action.icon.secondary.default',
|
|
19410
19411
|
positive: 'feedback.icon.positive.lowContrast',
|
|
19411
19412
|
negative: 'feedback.icon.negative.lowContrast'
|
|
19412
19413
|
},
|
|
@@ -25437,14 +25438,14 @@ var _Radio = function _Radio(_ref, ref) {
|
|
|
25437
25438
|
isChecked: state.isChecked,
|
|
25438
25439
|
isDisabled: _isDisabled,
|
|
25439
25440
|
isNegative: hasError
|
|
25440
|
-
}), /*#__PURE__*/jsx(SelectorTitle, {
|
|
25441
|
+
}), children ? /*#__PURE__*/jsx(SelectorTitle, {
|
|
25441
25442
|
size: _size,
|
|
25442
25443
|
isDisabled: _isDisabled,
|
|
25443
25444
|
children: children
|
|
25444
|
-
})]
|
|
25445
|
-
}), /*#__PURE__*/jsx(BaseBox, {
|
|
25445
|
+
}) : null]
|
|
25446
|
+
}), showHelpText && /*#__PURE__*/jsx(BaseBox, {
|
|
25446
25447
|
marginLeft: isSmall ? 'spacing.6' : 'spacing.7',
|
|
25447
|
-
children:
|
|
25448
|
+
children: /*#__PURE__*/jsx(SelectorSupportText, {
|
|
25448
25449
|
id: ids === null || ids === void 0 ? void 0 : ids.helpTextId,
|
|
25449
25450
|
children: helpText
|
|
25450
25451
|
})
|
|
@@ -25598,14 +25599,14 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
25598
25599
|
accessibilityRole: "radiogroup",
|
|
25599
25600
|
componentName: "radio-group",
|
|
25600
25601
|
testID: testID,
|
|
25601
|
-
children: [/*#__PURE__*/jsx(FormLabel, {
|
|
25602
|
+
children: [label ? /*#__PURE__*/jsx(FormLabel, {
|
|
25602
25603
|
as: "span",
|
|
25603
25604
|
necessityIndicator: necessityIndicator,
|
|
25604
25605
|
position: labelPosition,
|
|
25605
25606
|
id: ids.labelId,
|
|
25606
25607
|
accessibilityText: accessibilityText && ",".concat(accessibilityText),
|
|
25607
25608
|
children: label
|
|
25608
|
-
}), /*#__PURE__*/jsxs(BaseBox, {
|
|
25609
|
+
}) : null, /*#__PURE__*/jsxs(BaseBox, {
|
|
25609
25610
|
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
25610
25611
|
display: "flex",
|
|
25611
25612
|
flexDirection: "column",
|