@razorpay/blade 11.23.0 → 11.23.2
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/lib/native/components/ProgressBar/ProgressBar.js +1 -1
- package/build/lib/native/components/ProgressBar/ProgressBar.js.map +1 -1
- package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js +11 -4
- package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js.map +1 -1
- package/build/lib/web/development/components/FileUpload/FileUpload.web.js +4 -4
- package/build/lib/web/development/components/FileUpload/FileUpload.web.js.map +1 -1
- package/build/lib/web/development/components/Menu/MenuOverlay.web.js +7 -2
- package/build/lib/web/development/components/Menu/MenuOverlay.web.js.map +1 -1
- package/build/lib/web/development/components/ProgressBar/ProgressBar.js +2 -1
- package/build/lib/web/development/components/ProgressBar/ProgressBar.js.map +1 -1
- package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js +11 -4
- package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js.map +1 -1
- package/build/lib/web/production/components/FileUpload/FileUpload.web.js +4 -4
- package/build/lib/web/production/components/FileUpload/FileUpload.web.js.map +1 -1
- package/build/lib/web/production/components/Menu/MenuOverlay.web.js +7 -2
- package/build/lib/web/production/components/Menu/MenuOverlay.web.js.map +1 -1
- package/build/lib/web/production/components/ProgressBar/ProgressBar.js +2 -1
- package/build/lib/web/production/components/ProgressBar/ProgressBar.js.map +1 -1
- package/build/types/components/index.d.ts +65 -1
- package/build/types/components/index.native.d.ts +40 -0
- package/package.json +1 -1
|
@@ -8060,7 +8060,24 @@ type DropdownOverlayProps = {
|
|
|
8060
8060
|
* @default 1001
|
|
8061
8061
|
*/
|
|
8062
8062
|
zIndex?: number;
|
|
8063
|
+
/**
|
|
8064
|
+
* Override the default width of dropdown
|
|
8065
|
+
*
|
|
8066
|
+
* Avoid overriding width in SelectInput and AutoComplete as its expected to match the input
|
|
8067
|
+
*/
|
|
8063
8068
|
width?: BoxProps['width'];
|
|
8069
|
+
/**
|
|
8070
|
+
* Override the default minWidth of dropdown
|
|
8071
|
+
*
|
|
8072
|
+
* Avoid overriding minWidth in SelectInput and AutoComplete as its expected to match the input
|
|
8073
|
+
*/
|
|
8074
|
+
minWidth?: BoxProps['minWidth'];
|
|
8075
|
+
/**
|
|
8076
|
+
* Override the default maxWidth of dropdown
|
|
8077
|
+
*
|
|
8078
|
+
* Avoid overriding maxWidth in SelectInput and AutoComplete as its expected to match the input
|
|
8079
|
+
*/
|
|
8080
|
+
maxWidth?: BoxProps['maxWidth'];
|
|
8064
8081
|
/**
|
|
8065
8082
|
* Reference to the element which triggers the DropdownOverlay
|
|
8066
8083
|
*
|
|
@@ -8078,7 +8095,7 @@ type DropdownOverlayProps = {
|
|
|
8078
8095
|
|
|
8079
8096
|
declare const Dropdown: ({ children, isOpen: isOpenControlled, onOpenChange, selectionType, testID, ...styledProps }: DropdownProps) => React__default.ReactElement;
|
|
8080
8097
|
|
|
8081
|
-
declare const DropdownOverlay: ({ children, testID, zIndex, width, referenceRef, defaultPlacement, }: DropdownOverlayProps) => React__default.ReactElement | null;
|
|
8098
|
+
declare const DropdownOverlay: ({ children, testID, zIndex, width, minWidth, maxWidth, referenceRef, defaultPlacement, }: DropdownOverlayProps) => React__default.ReactElement | null;
|
|
8082
8099
|
|
|
8083
8100
|
type DropdownButtonProps = ButtonProps & {
|
|
8084
8101
|
onBlur?: BaseButtonProps['onBlur'];
|
|
@@ -9666,8 +9683,31 @@ type MenuItemProps = {
|
|
|
9666
9683
|
_isSubmenuOpen?: boolean;
|
|
9667
9684
|
};
|
|
9668
9685
|
type MenuOverlayProps = {
|
|
9686
|
+
/**
|
|
9687
|
+
* JSX Slot for MenuItem or anything else
|
|
9688
|
+
*/
|
|
9669
9689
|
children: React__default.ReactElement[] | React__default.ReactElement;
|
|
9690
|
+
/**
|
|
9691
|
+
* zIndex override
|
|
9692
|
+
*/
|
|
9670
9693
|
zIndex?: BoxProps['zIndex'];
|
|
9694
|
+
/**
|
|
9695
|
+
* width override.
|
|
9696
|
+
*
|
|
9697
|
+
* By default width is not set
|
|
9698
|
+
*/
|
|
9699
|
+
width?: BoxProps['width'];
|
|
9700
|
+
/**
|
|
9701
|
+
* minWidth override
|
|
9702
|
+
*/
|
|
9703
|
+
minWidth?: BoxProps['minWidth'];
|
|
9704
|
+
/**
|
|
9705
|
+
* maxWidth override
|
|
9706
|
+
*/
|
|
9707
|
+
maxWidth?: BoxProps['maxWidth'];
|
|
9708
|
+
/**
|
|
9709
|
+
* @private Internal Prop. Do not override or you'll be fired
|
|
9710
|
+
*/
|
|
9671
9711
|
_transitionStyle?: React__default.CSSProperties;
|
|
9672
9712
|
} & TestID;
|
|
9673
9713
|
type MenuFooterProps = Pick<BaseFooterProps, 'children' | 'testID'>;
|
|
@@ -9687,6 +9727,30 @@ declare const MenuOverlay: React__default.ForwardRefExoticComponent<{
|
|
|
9687
9727
|
readonly l?: csstype.Property.ZIndex | undefined;
|
|
9688
9728
|
readonly xl?: csstype.Property.ZIndex | undefined;
|
|
9689
9729
|
} | undefined;
|
|
9730
|
+
width?: SpacingValueType | {
|
|
9731
|
+
readonly base?: SpacingValueType | undefined;
|
|
9732
|
+
readonly xs?: SpacingValueType | undefined;
|
|
9733
|
+
readonly s?: SpacingValueType | undefined;
|
|
9734
|
+
readonly m?: SpacingValueType | undefined;
|
|
9735
|
+
readonly l?: SpacingValueType | undefined;
|
|
9736
|
+
readonly xl?: SpacingValueType | undefined;
|
|
9737
|
+
} | undefined;
|
|
9738
|
+
minWidth?: SpacingValueType | {
|
|
9739
|
+
readonly base?: SpacingValueType | undefined;
|
|
9740
|
+
readonly xs?: SpacingValueType | undefined;
|
|
9741
|
+
readonly s?: SpacingValueType | undefined;
|
|
9742
|
+
readonly m?: SpacingValueType | undefined;
|
|
9743
|
+
readonly l?: SpacingValueType | undefined;
|
|
9744
|
+
readonly xl?: SpacingValueType | undefined;
|
|
9745
|
+
} | undefined;
|
|
9746
|
+
maxWidth?: SpacingValueType | {
|
|
9747
|
+
readonly base?: SpacingValueType | undefined;
|
|
9748
|
+
readonly xs?: SpacingValueType | undefined;
|
|
9749
|
+
readonly s?: SpacingValueType | undefined;
|
|
9750
|
+
readonly m?: SpacingValueType | undefined;
|
|
9751
|
+
readonly l?: SpacingValueType | undefined;
|
|
9752
|
+
readonly xl?: SpacingValueType | undefined;
|
|
9753
|
+
} | undefined;
|
|
9690
9754
|
_transitionStyle?: React__default.CSSProperties | undefined;
|
|
9691
9755
|
} & TestID & React__default.RefAttributes<BladeElementRef>>;
|
|
9692
9756
|
|
|
@@ -6127,7 +6127,24 @@ type DropdownOverlayProps = {
|
|
|
6127
6127
|
* @default 1001
|
|
6128
6128
|
*/
|
|
6129
6129
|
zIndex?: number;
|
|
6130
|
+
/**
|
|
6131
|
+
* Override the default width of dropdown
|
|
6132
|
+
*
|
|
6133
|
+
* Avoid overriding width in SelectInput and AutoComplete as its expected to match the input
|
|
6134
|
+
*/
|
|
6130
6135
|
width?: BoxProps['width'];
|
|
6136
|
+
/**
|
|
6137
|
+
* Override the default minWidth of dropdown
|
|
6138
|
+
*
|
|
6139
|
+
* Avoid overriding minWidth in SelectInput and AutoComplete as its expected to match the input
|
|
6140
|
+
*/
|
|
6141
|
+
minWidth?: BoxProps['minWidth'];
|
|
6142
|
+
/**
|
|
6143
|
+
* Override the default maxWidth of dropdown
|
|
6144
|
+
*
|
|
6145
|
+
* Avoid overriding maxWidth in SelectInput and AutoComplete as its expected to match the input
|
|
6146
|
+
*/
|
|
6147
|
+
maxWidth?: BoxProps['maxWidth'];
|
|
6131
6148
|
/**
|
|
6132
6149
|
* Reference to the element which triggers the DropdownOverlay
|
|
6133
6150
|
*
|
|
@@ -7058,8 +7075,31 @@ type MenuItemProps = {
|
|
|
7058
7075
|
_isSubmenuOpen?: boolean;
|
|
7059
7076
|
};
|
|
7060
7077
|
type MenuOverlayProps = {
|
|
7078
|
+
/**
|
|
7079
|
+
* JSX Slot for MenuItem or anything else
|
|
7080
|
+
*/
|
|
7061
7081
|
children: React__default.ReactElement[] | React__default.ReactElement;
|
|
7082
|
+
/**
|
|
7083
|
+
* zIndex override
|
|
7084
|
+
*/
|
|
7062
7085
|
zIndex?: BoxProps['zIndex'];
|
|
7086
|
+
/**
|
|
7087
|
+
* width override.
|
|
7088
|
+
*
|
|
7089
|
+
* By default width is not set
|
|
7090
|
+
*/
|
|
7091
|
+
width?: BoxProps['width'];
|
|
7092
|
+
/**
|
|
7093
|
+
* minWidth override
|
|
7094
|
+
*/
|
|
7095
|
+
minWidth?: BoxProps['minWidth'];
|
|
7096
|
+
/**
|
|
7097
|
+
* maxWidth override
|
|
7098
|
+
*/
|
|
7099
|
+
maxWidth?: BoxProps['maxWidth'];
|
|
7100
|
+
/**
|
|
7101
|
+
* @private Internal Prop. Do not override or you'll be fired
|
|
7102
|
+
*/
|
|
7063
7103
|
_transitionStyle?: React__default.CSSProperties;
|
|
7064
7104
|
} & TestID;
|
|
7065
7105
|
type MenuFooterProps = Pick<BaseFooterProps, 'children' | 'testID'>;
|