@razorpay/blade 10.3.0 → 10.3.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/components/index.d.ts +67 -2
- package/build/components/index.development.web.js +1785 -1779
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +66 -1
- package/build/components/index.native.js +302 -296
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +1782 -1776
- 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 +2 -0
- package/build/tokens/index.development.web.js +2 -0
- package/build/tokens/index.development.web.js.map +1 -1
- package/build/tokens/index.native.d.ts +2 -0
- package/build/tokens/index.native.js +1 -1
- package/build/tokens/index.native.js.map +1 -1
- package/build/tokens/index.production.web.js +2 -0
- package/build/tokens/index.production.web.js.map +1 -1
- package/package.json +2 -2
|
@@ -3144,10 +3144,68 @@ declare type CardProps = {
|
|
|
3144
3144
|
* - Docs: https://blade.razorpay.com/?path=/docs/tokens-spacing--page
|
|
3145
3145
|
*/
|
|
3146
3146
|
padding?: Extract<SpacingValueType$1, 'spacing.0' | 'spacing.3' | 'spacing.5' | 'spacing.7'>;
|
|
3147
|
+
/**
|
|
3148
|
+
* Sets the width of the card
|
|
3149
|
+
*/
|
|
3147
3150
|
width?: BoxProps$1['width'];
|
|
3151
|
+
/**
|
|
3152
|
+
* Sets the height of the card
|
|
3153
|
+
*/
|
|
3148
3154
|
height?: BoxProps$1['height'];
|
|
3155
|
+
/**
|
|
3156
|
+
* If `true`, the card will be in selected state
|
|
3157
|
+
* Card will have a primary color border around it.
|
|
3158
|
+
*
|
|
3159
|
+
* @default false
|
|
3160
|
+
*/
|
|
3161
|
+
isSelected?: boolean;
|
|
3162
|
+
/**
|
|
3163
|
+
* Makes the Card linkable by setting the `href` prop
|
|
3164
|
+
*
|
|
3165
|
+
* @default undefined
|
|
3166
|
+
*/
|
|
3167
|
+
href?: string;
|
|
3168
|
+
/**
|
|
3169
|
+
* Sets the `target` attribute for the linkable card
|
|
3170
|
+
*/
|
|
3171
|
+
target?: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Sets the `rel` attribute for the linkable card
|
|
3174
|
+
*/
|
|
3175
|
+
rel?: string;
|
|
3176
|
+
/**
|
|
3177
|
+
* Sets the accessibility label for the card
|
|
3178
|
+
* This is useful when the card has an `href` or `onClick` prop
|
|
3179
|
+
* Setting this will announce the label when the card is focused
|
|
3180
|
+
*/
|
|
3181
|
+
accessibilityLabel?: string;
|
|
3182
|
+
/**
|
|
3183
|
+
* If `true`, the card will scale up on hover
|
|
3184
|
+
*
|
|
3185
|
+
* On mobile devices it will scale down on press
|
|
3186
|
+
*
|
|
3187
|
+
* @default false
|
|
3188
|
+
*/
|
|
3189
|
+
shouldScaleOnHover?: boolean;
|
|
3190
|
+
/**
|
|
3191
|
+
* Callback triggered when the card is hovered
|
|
3192
|
+
*/
|
|
3193
|
+
onHover?: () => void;
|
|
3194
|
+
/**
|
|
3195
|
+
* Callback triggered when the card is clicked
|
|
3196
|
+
*/
|
|
3197
|
+
onClick?: () => void;
|
|
3198
|
+
/**
|
|
3199
|
+
* Sets the HTML element for the Card
|
|
3200
|
+
*
|
|
3201
|
+
* When `as` is set to `label`, the card will be rendered as a label element
|
|
3202
|
+
* This can be used to create a custom checkbox or radio button using the card
|
|
3203
|
+
*
|
|
3204
|
+
* @default undefined
|
|
3205
|
+
*/
|
|
3206
|
+
as?: 'label';
|
|
3149
3207
|
} & TestID & StyledPropsBlade$1;
|
|
3150
|
-
declare const Card: ({ children, surfaceLevel, elevation, testID, padding, width, height, ...styledProps }: CardProps) => React__default.ReactElement;
|
|
3208
|
+
declare const Card: ({ children, surfaceLevel, elevation, testID, padding, width, height, onClick, isSelected, accessibilityLabel, shouldScaleOnHover, onHover, href, target, rel, as, ...styledProps }: CardProps) => React__default.ReactElement;
|
|
3151
3209
|
declare type CardBodyProps = {
|
|
3152
3210
|
children: React__default.ReactNode;
|
|
3153
3211
|
height?: BoxProps$1['height'];
|
|
@@ -4195,6 +4253,12 @@ declare type DropdownProps = {
|
|
|
4195
4253
|
} & TestID & StyledPropsBlade$1;
|
|
4196
4254
|
declare type DropdownOverlayProps = {
|
|
4197
4255
|
children: React.ReactElement[] | React.ReactElement;
|
|
4256
|
+
/**
|
|
4257
|
+
* Sets the z-index of the DropdownOverlay
|
|
4258
|
+
*
|
|
4259
|
+
* @default 1001
|
|
4260
|
+
*/
|
|
4261
|
+
zIndex?: number;
|
|
4198
4262
|
} & TestID;
|
|
4199
4263
|
|
|
4200
4264
|
declare const Dropdown: ({ children, selectionType, onDismiss, testID, ...styledProps }: DropdownProps) => React__default.ReactElement;
|
|
@@ -5053,6 +5117,7 @@ declare type BaseInputCommonProps = FormInputLabelProps & FormInputValidationPro
|
|
|
5053
5117
|
* true if popup is in expanded state
|
|
5054
5118
|
*/
|
|
5055
5119
|
isPopupExpanded?: boolean;
|
|
5120
|
+
setInputWrapperRef?: (node: HTMLDivElement) => void;
|
|
5056
5121
|
/**
|
|
5057
5122
|
* sets the autocapitalize behavior for the input
|
|
5058
5123
|
*/
|