@razorpay/blade 10.3.1 → 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 +59 -1
- package/build/components/index.development.web.js +1703 -1550
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +59 -1
- package/build/components/index.native.js +297 -291
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +1703 -1550
- 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 +2 -2
|
@@ -3305,10 +3305,68 @@ declare type CardProps = {
|
|
|
3305
3305
|
* - Docs: https://blade.razorpay.com/?path=/docs/tokens-spacing--page
|
|
3306
3306
|
*/
|
|
3307
3307
|
padding?: Extract<SpacingValueType$1, 'spacing.0' | 'spacing.3' | 'spacing.5' | 'spacing.7'>;
|
|
3308
|
+
/**
|
|
3309
|
+
* Sets the width of the card
|
|
3310
|
+
*/
|
|
3308
3311
|
width?: BoxProps$1['width'];
|
|
3312
|
+
/**
|
|
3313
|
+
* Sets the height of the card
|
|
3314
|
+
*/
|
|
3309
3315
|
height?: BoxProps$1['height'];
|
|
3316
|
+
/**
|
|
3317
|
+
* If `true`, the card will be in selected state
|
|
3318
|
+
* Card will have a primary color border around it.
|
|
3319
|
+
*
|
|
3320
|
+
* @default false
|
|
3321
|
+
*/
|
|
3322
|
+
isSelected?: boolean;
|
|
3323
|
+
/**
|
|
3324
|
+
* Makes the Card linkable by setting the `href` prop
|
|
3325
|
+
*
|
|
3326
|
+
* @default undefined
|
|
3327
|
+
*/
|
|
3328
|
+
href?: string;
|
|
3329
|
+
/**
|
|
3330
|
+
* Sets the `target` attribute for the linkable card
|
|
3331
|
+
*/
|
|
3332
|
+
target?: string;
|
|
3333
|
+
/**
|
|
3334
|
+
* Sets the `rel` attribute for the linkable card
|
|
3335
|
+
*/
|
|
3336
|
+
rel?: string;
|
|
3337
|
+
/**
|
|
3338
|
+
* Sets the accessibility label for the card
|
|
3339
|
+
* This is useful when the card has an `href` or `onClick` prop
|
|
3340
|
+
* Setting this will announce the label when the card is focused
|
|
3341
|
+
*/
|
|
3342
|
+
accessibilityLabel?: string;
|
|
3343
|
+
/**
|
|
3344
|
+
* If `true`, the card will scale up on hover
|
|
3345
|
+
*
|
|
3346
|
+
* On mobile devices it will scale down on press
|
|
3347
|
+
*
|
|
3348
|
+
* @default false
|
|
3349
|
+
*/
|
|
3350
|
+
shouldScaleOnHover?: boolean;
|
|
3351
|
+
/**
|
|
3352
|
+
* Callback triggered when the card is hovered
|
|
3353
|
+
*/
|
|
3354
|
+
onHover?: () => void;
|
|
3355
|
+
/**
|
|
3356
|
+
* Callback triggered when the card is clicked
|
|
3357
|
+
*/
|
|
3358
|
+
onClick?: () => void;
|
|
3359
|
+
/**
|
|
3360
|
+
* Sets the HTML element for the Card
|
|
3361
|
+
*
|
|
3362
|
+
* When `as` is set to `label`, the card will be rendered as a label element
|
|
3363
|
+
* This can be used to create a custom checkbox or radio button using the card
|
|
3364
|
+
*
|
|
3365
|
+
* @default undefined
|
|
3366
|
+
*/
|
|
3367
|
+
as?: 'label';
|
|
3310
3368
|
} & TestID$1 & StyledPropsBlade$1;
|
|
3311
|
-
declare const Card: ({ children, surfaceLevel, elevation, testID, padding, width, height, ...styledProps }: CardProps) => React__default.ReactElement;
|
|
3369
|
+
declare const Card: ({ children, surfaceLevel, elevation, testID, padding, width, height, onClick, isSelected, accessibilityLabel, shouldScaleOnHover, onHover, href, target, rel, as, ...styledProps }: CardProps) => React__default.ReactElement;
|
|
3312
3370
|
declare type CardBodyProps = {
|
|
3313
3371
|
children: React__default.ReactNode;
|
|
3314
3372
|
height?: BoxProps$1['height'];
|