@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.
@@ -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'];
@@ -4486,11 +4544,17 @@ declare type DropdownProps = {
4486
4544
  } & TestID$1 & StyledPropsBlade$1;
4487
4545
  declare type DropdownOverlayProps = {
4488
4546
  children: React.ReactElement[] | React.ReactElement;
4547
+ /**
4548
+ * Sets the z-index of the DropdownOverlay
4549
+ *
4550
+ * @default 1001
4551
+ */
4552
+ zIndex?: number;
4489
4553
  } & TestID$1;
4490
4554
 
4491
4555
  declare const Dropdown: ({ children, selectionType, onDismiss, testID, ...styledProps }: DropdownProps) => React__default.ReactElement;
4492
4556
 
4493
- declare const DropdownOverlay: ({ children, testID }: DropdownOverlayProps) => React__default.ReactElement;
4557
+ declare const DropdownOverlay: ({ children, testID, zIndex, }: DropdownOverlayProps) => React__default.ReactElement | null;
4494
4558
 
4495
4559
  declare type DropdownButtonProps = ButtonProps & {
4496
4560
  onBlur?: BaseButtonProps['onBlur'];
@@ -5344,6 +5408,7 @@ declare type BaseInputCommonProps = FormInputLabelProps & FormInputValidationPro
5344
5408
  * true if popup is in expanded state
5345
5409
  */
5346
5410
  isPopupExpanded?: boolean;
5411
+ setInputWrapperRef?: (node: HTMLDivElement) => void;
5347
5412
  /**
5348
5413
  * sets the autocapitalize behavior for the input
5349
5414
  */