@razorpay/blade 10.20.0 → 10.21.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 +4 -6
- package/build/components/index.development.web.js +10 -8
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +3 -5
- package/build/components/index.native.js +2 -2
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +10 -8
- 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/package.json +1 -1
|
@@ -4876,11 +4876,12 @@ declare type DropdownOverlayProps = {
|
|
|
4876
4876
|
* @default 1001
|
|
4877
4877
|
*/
|
|
4878
4878
|
zIndex?: number;
|
|
4879
|
+
width?: BoxProps['width'];
|
|
4879
4880
|
} & TestID;
|
|
4880
4881
|
|
|
4881
4882
|
declare const Dropdown: ({ children, isOpen, onOpenChange, selectionType, onDismiss, testID, ...styledProps }: DropdownProps) => React__default.ReactElement;
|
|
4882
4883
|
|
|
4883
|
-
declare const DropdownOverlay: ({ children, testID, zIndex, }: DropdownOverlayProps) => React__default.ReactElement | null;
|
|
4884
|
+
declare const DropdownOverlay: ({ children, testID, zIndex, width, }: DropdownOverlayProps) => React__default.ReactElement | null;
|
|
4884
4885
|
|
|
4885
4886
|
declare type DropdownButtonProps = ButtonProps & {
|
|
4886
4887
|
onBlur?: BaseButtonProps['onBlur'];
|
|
@@ -8200,12 +8201,9 @@ declare const CollapsibleButton: React$1.ForwardRefExoticComponent<CollapsibleBu
|
|
|
8200
8201
|
|
|
8201
8202
|
declare type CollapsibleBodyProps = {
|
|
8202
8203
|
children: ReactNode;
|
|
8203
|
-
|
|
8204
|
-
* **Internal**: used for React Native specific workarounds. Collapsible automatically takes care of width, you shouldn't need to configure this
|
|
8205
|
-
*/
|
|
8206
|
-
_width?: BaseBoxProps['width'];
|
|
8204
|
+
width?: BaseBoxProps['width'];
|
|
8207
8205
|
} & TestID;
|
|
8208
|
-
declare const CollapsibleBody: ({ children, testID,
|
|
8206
|
+
declare const CollapsibleBody: ({ children, testID, width }: CollapsibleBodyProps) => ReactElement;
|
|
8209
8207
|
|
|
8210
8208
|
declare type TooltipProps = {
|
|
8211
8209
|
/**
|
|
@@ -3096,6 +3096,9 @@ function createStylisCSSHigherSpecificityPlugin() {
|
|
|
3096
3096
|
selector = _selectors[0];
|
|
3097
3097
|
selectors[0] = "".concat(selector.repeat(5));
|
|
3098
3098
|
};
|
|
3099
|
+
Object.defineProperty(stylisCSSHigherSpecificity, 'name', {
|
|
3100
|
+
value: 'stylisCSSHigherSpecificity'
|
|
3101
|
+
});
|
|
3099
3102
|
return stylisCSSHigherSpecificity;
|
|
3100
3103
|
}
|
|
3101
3104
|
|
|
@@ -20789,7 +20792,8 @@ var _DropdownOverlay = function _DropdownOverlay(_ref) {
|
|
|
20789
20792
|
var children = _ref.children,
|
|
20790
20793
|
testID = _ref.testID,
|
|
20791
20794
|
_ref$zIndex = _ref.zIndex,
|
|
20792
|
-
zIndex = _ref$zIndex === void 0 ? OVERLAY_ZINDEX : _ref$zIndex
|
|
20795
|
+
zIndex = _ref$zIndex === void 0 ? OVERLAY_ZINDEX : _ref$zIndex,
|
|
20796
|
+
width = _ref.width;
|
|
20793
20797
|
var _useDropdown = useDropdown(),
|
|
20794
20798
|
isOpen = _useDropdown.isOpen,
|
|
20795
20799
|
triggererRef = _useDropdown.triggererRef,
|
|
@@ -20863,7 +20867,7 @@ var _DropdownOverlay = function _DropdownOverlay(_ref) {
|
|
|
20863
20867
|
isInBottomSheet: bottomSheetAndDropdownGlue === null || bottomSheetAndDropdownGlue === void 0 ? void 0 : bottomSheetAndDropdownGlue.dropdownHasBottomSheet,
|
|
20864
20868
|
elevation: bottomSheetAndDropdownGlue !== null && bottomSheetAndDropdownGlue !== void 0 && bottomSheetAndDropdownGlue.dropdownHasBottomSheet ? undefined : 'midRaised',
|
|
20865
20869
|
style: _objectSpread$1d({}, styles),
|
|
20866
|
-
width:
|
|
20870
|
+
width: width ? width : '100%'
|
|
20867
20871
|
}, metaAttribute({
|
|
20868
20872
|
name: MetaConstants.DropdownOverlay,
|
|
20869
20873
|
testID: testID
|
|
@@ -37213,15 +37217,13 @@ function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
37213
37217
|
var _CollapsibleBody = function _CollapsibleBody(_ref) {
|
|
37214
37218
|
var children = _ref.children,
|
|
37215
37219
|
testID = _ref.testID,
|
|
37216
|
-
|
|
37220
|
+
width = _ref.width;
|
|
37217
37221
|
var _useCollapsible = useCollapsible(),
|
|
37218
37222
|
collapsibleBodyId = _useCollapsible.collapsibleBodyId,
|
|
37219
37223
|
isExpanded = _useCollapsible.isExpanded;
|
|
37220
37224
|
return /*#__PURE__*/jsx$1(BaseBox, _objectSpread$d(_objectSpread$d(_objectSpread$d({
|
|
37221
|
-
id: collapsibleBodyId
|
|
37222
|
-
|
|
37223
|
-
,
|
|
37224
|
-
width: _width
|
|
37225
|
+
id: collapsibleBodyId,
|
|
37226
|
+
width: width
|
|
37225
37227
|
}, makeAccessible({
|
|
37226
37228
|
role: 'region',
|
|
37227
37229
|
hidden: !isExpanded
|
|
@@ -37316,7 +37318,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
37316
37318
|
}), /*#__PURE__*/jsx$1(CollapsibleBody
|
|
37317
37319
|
// Just React Native things, need this 100% so collapsed content flows correctly inside Accordion
|
|
37318
37320
|
, {
|
|
37319
|
-
|
|
37321
|
+
width: isReactNative$4() ? '100%' : undefined,
|
|
37320
37322
|
children: collapsibleBodyContent
|
|
37321
37323
|
})]
|
|
37322
37324
|
}), /*#__PURE__*/jsx$1(Divider, {})]
|