@razorpay/blade 11.3.1 → 11.5.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.
Files changed (180) hide show
  1. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js +3 -1
  2. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  3. package/build/lib/native/components/BottomSheet/BottomSheet.native.js +2 -1
  4. package/build/lib/native/components/BottomSheet/BottomSheet.native.js.map +1 -1
  5. package/build/lib/native/components/Breadcrumb/Breadcrumb.native.js +7 -0
  6. package/build/lib/native/components/Breadcrumb/Breadcrumb.native.js.map +1 -0
  7. package/build/lib/native/components/Breadcrumb/BreadcrumbItem.native.js +7 -0
  8. package/build/lib/native/components/Breadcrumb/BreadcrumbItem.native.js.map +1 -0
  9. package/build/lib/native/components/Button/BaseButton/buttonTokens.js +1 -1
  10. package/build/lib/native/components/Button/BaseButton/buttonTokens.js.map +1 -1
  11. package/build/lib/native/components/Drawer/Drawer.native.js +17 -0
  12. package/build/lib/native/components/Drawer/Drawer.native.js.map +1 -0
  13. package/build/lib/native/components/Drawer/DrawerSubcomponents.native.js +17 -0
  14. package/build/lib/native/components/Drawer/DrawerSubcomponents.native.js.map +1 -0
  15. package/build/lib/native/components/Link/BaseLink/BaseLink.js +1 -1
  16. package/build/lib/native/components/Link/BaseLink/BaseLink.js.map +1 -1
  17. package/build/lib/native/components/Popover/Popover.native.js +3 -2
  18. package/build/lib/native/components/Popover/Popover.native.js.map +1 -1
  19. package/build/lib/native/components/Popover/constants.js +2 -2
  20. package/build/lib/native/components/Popover/constants.js.map +1 -1
  21. package/build/lib/native/components/Tag/Tag.js +1 -1
  22. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  23. package/build/lib/native/components/Tooltip/Tooltip.native.js +3 -2
  24. package/build/lib/native/components/Tooltip/Tooltip.native.js.map +1 -1
  25. package/build/lib/native/components/Tooltip/constants.js +2 -2
  26. package/build/lib/native/components/Tooltip/constants.js.map +1 -1
  27. package/build/lib/native/components/index.js +4 -0
  28. package/build/lib/native/components/index.js.map +1 -1
  29. package/build/lib/native/utils/componentZIndices.js +4 -0
  30. package/build/lib/native/utils/componentZIndices.js.map +1 -0
  31. package/build/lib/native/utils/lodashButBetter/get.js.map +1 -1
  32. package/build/lib/native/utils/metaAttribute/metaConstants.js +1 -1
  33. package/build/lib/native/utils/metaAttribute/metaConstants.js.map +1 -1
  34. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js +6 -2
  35. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  36. package/build/lib/web/development/components/BladeProvider/BladeProvider.web.js +5 -2
  37. package/build/lib/web/development/components/BladeProvider/BladeProvider.web.js.map +1 -1
  38. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +2 -1
  39. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  40. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js +104 -0
  41. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js.map +1 -0
  42. package/build/lib/web/development/components/Breadcrumb/BreadcrumbContext.js +9 -0
  43. package/build/lib/web/development/components/Breadcrumb/BreadcrumbContext.js.map +1 -0
  44. package/build/lib/web/development/components/Breadcrumb/BreadcrumbItem.web.js +55 -0
  45. package/build/lib/web/development/components/Breadcrumb/BreadcrumbItem.web.js.map +1 -0
  46. package/build/lib/web/development/components/Breadcrumb/index.js +4 -0
  47. package/build/lib/web/development/components/Breadcrumb/index.js.map +1 -0
  48. package/build/lib/web/development/components/Breadcrumb/types.js +2 -0
  49. package/build/lib/web/development/components/Breadcrumb/types.js.map +1 -0
  50. package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js +2 -2
  51. package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js.map +1 -1
  52. package/build/lib/web/development/components/Button/Button/index.js +1 -1
  53. package/build/lib/web/development/components/Drawer/Drawer.web.js +229 -0
  54. package/build/lib/web/development/components/Drawer/Drawer.web.js.map +1 -0
  55. package/build/lib/web/development/components/Drawer/DrawerContext.js +9 -0
  56. package/build/lib/web/development/components/Drawer/DrawerContext.js.map +1 -0
  57. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js +65 -0
  58. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js.map +1 -0
  59. package/build/lib/web/development/components/Drawer/StackProvider.js +57 -0
  60. package/build/lib/web/development/components/Drawer/StackProvider.js.map +1 -0
  61. package/build/lib/web/development/components/Drawer/drawerComponentIds.js +8 -0
  62. package/build/lib/web/development/components/Drawer/drawerComponentIds.js.map +1 -0
  63. package/build/lib/web/development/components/Drawer/index.js +4 -0
  64. package/build/lib/web/development/components/Drawer/index.js.map +1 -0
  65. package/build/lib/web/development/components/Drawer/types.js +2 -0
  66. package/build/lib/web/development/components/Drawer/types.js.map +1 -0
  67. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js +2 -2
  68. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  69. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +3 -1
  70. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  71. package/build/lib/web/development/components/Link/Link/index.js +1 -1
  72. package/build/lib/web/development/components/Modal/Modal.web.js +3 -2
  73. package/build/lib/web/development/components/Modal/Modal.web.js.map +1 -1
  74. package/build/lib/web/development/components/Modal/ModalHeader.web.js +2 -2
  75. package/build/lib/web/development/components/Modal/ModalHeader.web.js.map +1 -1
  76. package/build/lib/web/development/components/Modal/modalTokens.js +1 -2
  77. package/build/lib/web/development/components/Modal/modalTokens.js.map +1 -1
  78. package/build/lib/web/development/components/Popover/Popover.web.js +3 -2
  79. package/build/lib/web/development/components/Popover/Popover.web.js.map +1 -1
  80. package/build/lib/web/development/components/Popover/constants.js +1 -2
  81. package/build/lib/web/development/components/Popover/constants.js.map +1 -1
  82. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  83. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  84. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js +3 -2
  85. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  86. package/build/lib/web/development/components/SpotlightPopoverTour/tourTokens.js +1 -3
  87. package/build/lib/web/development/components/SpotlightPopoverTour/tourTokens.js.map +1 -1
  88. package/build/lib/web/development/components/Tag/AnimatedTag.web.js +1 -1
  89. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  90. package/build/lib/web/development/components/Tag/Tag.js +1 -0
  91. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  92. package/build/lib/web/development/components/Tooltip/Tooltip.web.js +3 -2
  93. package/build/lib/web/development/components/Tooltip/Tooltip.web.js.map +1 -1
  94. package/build/lib/web/development/components/Tooltip/constants.js +1 -2
  95. package/build/lib/web/development/components/Tooltip/constants.js.map +1 -1
  96. package/build/lib/web/development/components/index.js +6 -0
  97. package/build/lib/web/development/components/index.js.map +1 -1
  98. package/build/lib/web/development/utils/componentZIndices.js +13 -0
  99. package/build/lib/web/development/utils/componentZIndices.js.map +1 -0
  100. package/build/lib/web/development/utils/lodashButBetter/get.js +1 -1
  101. package/build/lib/web/development/utils/lodashButBetter/get.js.map +1 -1
  102. package/build/lib/web/development/utils/metaAttribute/metaConstants.js +3 -0
  103. package/build/lib/web/development/utils/metaAttribute/metaConstants.js.map +1 -1
  104. package/build/lib/web/development/utils/useVerifyAllowedChildren/index.js +2 -0
  105. package/build/lib/web/development/utils/useVerifyAllowedChildren/index.js.map +1 -0
  106. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js +6 -2
  107. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  108. package/build/lib/web/production/components/BladeProvider/BladeProvider.web.js +5 -2
  109. package/build/lib/web/production/components/BladeProvider/BladeProvider.web.js.map +1 -1
  110. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +2 -1
  111. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  112. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js +104 -0
  113. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js.map +1 -0
  114. package/build/lib/web/production/components/Breadcrumb/BreadcrumbContext.js +9 -0
  115. package/build/lib/web/production/components/Breadcrumb/BreadcrumbContext.js.map +1 -0
  116. package/build/lib/web/production/components/Breadcrumb/BreadcrumbItem.web.js +55 -0
  117. package/build/lib/web/production/components/Breadcrumb/BreadcrumbItem.web.js.map +1 -0
  118. package/build/lib/web/production/components/Breadcrumb/index.js +4 -0
  119. package/build/lib/web/production/components/Breadcrumb/index.js.map +1 -0
  120. package/build/lib/web/production/components/Breadcrumb/types.js +2 -0
  121. package/build/lib/web/production/components/Breadcrumb/types.js.map +1 -0
  122. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js +2 -2
  123. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js.map +1 -1
  124. package/build/lib/web/production/components/Button/Button/index.js +1 -1
  125. package/build/lib/web/production/components/Drawer/Drawer.web.js +229 -0
  126. package/build/lib/web/production/components/Drawer/Drawer.web.js.map +1 -0
  127. package/build/lib/web/production/components/Drawer/DrawerContext.js +9 -0
  128. package/build/lib/web/production/components/Drawer/DrawerContext.js.map +1 -0
  129. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js +65 -0
  130. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js.map +1 -0
  131. package/build/lib/web/production/components/Drawer/StackProvider.js +57 -0
  132. package/build/lib/web/production/components/Drawer/StackProvider.js.map +1 -0
  133. package/build/lib/web/production/components/Drawer/drawerComponentIds.js +8 -0
  134. package/build/lib/web/production/components/Drawer/drawerComponentIds.js.map +1 -0
  135. package/build/lib/web/production/components/Drawer/index.js +4 -0
  136. package/build/lib/web/production/components/Drawer/index.js.map +1 -0
  137. package/build/lib/web/production/components/Drawer/types.js +2 -0
  138. package/build/lib/web/production/components/Drawer/types.js.map +1 -0
  139. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js +2 -2
  140. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  141. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +3 -1
  142. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  143. package/build/lib/web/production/components/Link/Link/index.js +1 -1
  144. package/build/lib/web/production/components/Modal/Modal.web.js +3 -2
  145. package/build/lib/web/production/components/Modal/Modal.web.js.map +1 -1
  146. package/build/lib/web/production/components/Modal/ModalHeader.web.js +2 -2
  147. package/build/lib/web/production/components/Modal/ModalHeader.web.js.map +1 -1
  148. package/build/lib/web/production/components/Modal/modalTokens.js +1 -2
  149. package/build/lib/web/production/components/Modal/modalTokens.js.map +1 -1
  150. package/build/lib/web/production/components/Popover/Popover.web.js +3 -2
  151. package/build/lib/web/production/components/Popover/Popover.web.js.map +1 -1
  152. package/build/lib/web/production/components/Popover/constants.js +1 -2
  153. package/build/lib/web/production/components/Popover/constants.js.map +1 -1
  154. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  155. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  156. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js +3 -2
  157. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  158. package/build/lib/web/production/components/SpotlightPopoverTour/tourTokens.js +1 -3
  159. package/build/lib/web/production/components/SpotlightPopoverTour/tourTokens.js.map +1 -1
  160. package/build/lib/web/production/components/Tag/AnimatedTag.web.js +1 -1
  161. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  162. package/build/lib/web/production/components/Tag/Tag.js +1 -0
  163. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  164. package/build/lib/web/production/components/Tooltip/Tooltip.web.js +3 -2
  165. package/build/lib/web/production/components/Tooltip/Tooltip.web.js.map +1 -1
  166. package/build/lib/web/production/components/Tooltip/constants.js +1 -2
  167. package/build/lib/web/production/components/Tooltip/constants.js.map +1 -1
  168. package/build/lib/web/production/components/index.js +6 -0
  169. package/build/lib/web/production/components/index.js.map +1 -1
  170. package/build/lib/web/production/utils/componentZIndices.js +13 -0
  171. package/build/lib/web/production/utils/componentZIndices.js.map +1 -0
  172. package/build/lib/web/production/utils/lodashButBetter/get.js +1 -1
  173. package/build/lib/web/production/utils/lodashButBetter/get.js.map +1 -1
  174. package/build/lib/web/production/utils/metaAttribute/metaConstants.js +3 -0
  175. package/build/lib/web/production/utils/metaAttribute/metaConstants.js.map +1 -1
  176. package/build/lib/web/production/utils/useVerifyAllowedChildren/index.js +2 -0
  177. package/build/lib/web/production/utils/useVerifyAllowedChildren/index.js.map +1 -0
  178. package/build/types/components/index.d.ts +332 -140
  179. package/build/types/components/index.native.d.ts +282 -141
  180. package/package.json +9 -57
@@ -516,6 +516,11 @@ type StringChildrenType = React__default.ReactText | React__default.ReactText[];
516
516
  */
517
517
  type StringWithAutocomplete = string & Record<never, never>;
518
518
  type TestID = {
519
+ /**
520
+ * Test id that can be used to select element in testing environments
521
+ *
522
+ * Checkout https://testing-library.com/docs/queries/bytestid/
523
+ */
519
524
  testID?: string;
520
525
  };
521
526
  /**
@@ -1186,7 +1191,7 @@ type BladeCommonEvents = {
1186
1191
 
1187
1192
  /**
1188
1193
  * @template TokenType token type generic
1189
- * @description Tokenises objects to dot notation strings, eg: `surface.text.normal.lowContrast`
1194
+ * @description Tokenises objects to dot notation strings, eg: `surface.text.gray.normal`
1190
1195
  */
1191
1196
  type DotNotationToken<_TokenType, TokenType = Omit<_TokenType, 'name'>> = {
1192
1197
  [K in keyof TokenType]: TokenType[K] extends string | number | ElevationStyles ? `${Extract<K, number | string>}` : `${Extract<K, number | string>}.${TokenType[K] extends Record<string, string | number | boolean | EasingType<string>> ? Extract<keyof TokenType[K], number | string> : DotNotationToken<TokenType[K]>}`;
@@ -2556,6 +2561,7 @@ type BaseHeaderProps = {
2556
2561
  onCloseButtonClick?: () => void;
2557
2562
  onBackButtonClick?: () => void;
2558
2563
  closeButtonRef?: React__default.MutableRefObject<any>;
2564
+ backButtonRef?: React__default.MutableRefObject<any>;
2559
2565
  metaComponentName?: string;
2560
2566
  /**
2561
2567
  * inner child of BottomSheetHeader. Meant to be used for AutoComplete only
@@ -2636,7 +2642,208 @@ declare const BottomSheetBody: ({ children, padding, }: BottomSheetBodyProps) =>
2636
2642
 
2637
2643
  declare const BottomSheetFooter: ({ children }: BottomSheetFooterProps) => React__default.ReactElement;
2638
2644
 
2639
- declare const BottomSheet: ({ children, snapPoints, isOpen, onDismiss, initialFocusRef, }: BottomSheetProps) => React__default.ReactElement;
2645
+ declare const BottomSheet: ({ children, snapPoints, isOpen, onDismiss, initialFocusRef, zIndex, }: BottomSheetProps) => React__default.ReactElement;
2646
+
2647
+ type BaseLinkCommonProps = {
2648
+ color?: 'primary' | 'white' | 'positive' | 'negative' | 'notice' | 'information' | 'neutral';
2649
+ icon?: IconComponent;
2650
+ iconPosition?: 'left' | 'right';
2651
+ onClick?: (event: SyntheticEvent) => void;
2652
+ onBlur?: Platform.Select<{
2653
+ native: (event: GestureResponderEvent) => void;
2654
+ web: (event: React__default.FocusEvent<HTMLButtonElement>) => void;
2655
+ }>;
2656
+ onMouseLeave?: Platform.Select<{
2657
+ native: (event: GestureResponderEvent) => void;
2658
+ web: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
2659
+ }>;
2660
+ onKeyDown?: Platform.Select<{
2661
+ native: (event: GestureResponderEvent) => void;
2662
+ web: (event: React__default.KeyboardEvent<HTMLButtonElement>) => void;
2663
+ }>;
2664
+ accessibilityProps?: Partial<AccessibilityProps>;
2665
+ /**
2666
+ * Sets the size of the link
2667
+ *
2668
+ * @default medium
2669
+ */
2670
+ size?: Extract<BaseTextSizes, 'xsmall' | 'small' | 'medium' | 'large'>;
2671
+ /**
2672
+ * Defines how far your touch can start away from the link. This is a react-native only prop and has no effect on web.
2673
+ */
2674
+ hitSlop?: {
2675
+ top?: number;
2676
+ right?: number;
2677
+ bottom?: number;
2678
+ left?: number;
2679
+ } | number;
2680
+ /**
2681
+ * The title of the link which is displayed as a tooltip. This is a web only prop and has no effect on react-native.
2682
+ */
2683
+ htmlTitle?: string;
2684
+ opacity?: number;
2685
+ } & TestID & StyledPropsBlade & Omit<BladeCommonEvents, 'onBlur' | 'onMouseLeave'>;
2686
+ type BaseLinkWithoutIconProps = BaseLinkCommonProps & {
2687
+ icon?: undefined;
2688
+ children: StringChildrenType;
2689
+ };
2690
+ type BaseLinkWithIconProps = BaseLinkCommonProps & {
2691
+ icon: IconComponent;
2692
+ children?: StringChildrenType;
2693
+ };
2694
+ type BaseLinkPropsWithOrWithoutIcon = BaseLinkWithIconProps | BaseLinkWithoutIconProps;
2695
+ type BaseLinkAnchorVariantProps = BaseLinkPropsWithOrWithoutIcon & {
2696
+ variant?: 'anchor';
2697
+ href?: string;
2698
+ target?: string;
2699
+ rel?: string;
2700
+ isDisabled?: undefined;
2701
+ };
2702
+ type BaseLinkButtonVariantProps = BaseLinkPropsWithOrWithoutIcon & {
2703
+ variant?: 'button';
2704
+ isDisabled?: boolean;
2705
+ href?: undefined;
2706
+ target?: undefined;
2707
+ rel?: undefined;
2708
+ };
2709
+ type BaseLinkProps = BaseLinkAnchorVariantProps | BaseLinkButtonVariantProps;
2710
+
2711
+ type LinkCommonProps = {
2712
+ variant?: 'anchor' | 'button';
2713
+ icon?: IconComponent;
2714
+ color?: 'primary' | 'white' | 'neutral';
2715
+ iconPosition?: 'left' | 'right';
2716
+ isDisabled?: boolean;
2717
+ onClick?: (event: SyntheticEvent) => void;
2718
+ href?: string;
2719
+ target?: string;
2720
+ accessibilityLabel?: string;
2721
+ /**
2722
+ * It is exposed for internal usage with tooltip.
2723
+ *
2724
+ * @private
2725
+ */
2726
+ 'aria-describedby'?: string;
2727
+ /**
2728
+ * Sets the size of the link
2729
+ *
2730
+ * @default medium
2731
+ */
2732
+ size?: BaseLinkProps['size'];
2733
+ } & TestID & StyledPropsBlade & BladeCommonEvents & Platform.Select<{
2734
+ native: {
2735
+ /**
2736
+ * Defines how far your touch can start away from the link
2737
+ */
2738
+ hitSlop?: {
2739
+ top?: number;
2740
+ right?: number;
2741
+ bottom?: number;
2742
+ left?: number;
2743
+ } | number;
2744
+ /**
2745
+ * This is a web only prop and has no effect on react-native.
2746
+ */
2747
+ htmlTitle?: undefined;
2748
+ };
2749
+ web: {
2750
+ /**
2751
+ * This is a react-native only prop and has no effect on web.
2752
+ */
2753
+ hitSlop?: undefined;
2754
+ /**
2755
+ * The title of the link which is displayed as a tooltip.
2756
+ */
2757
+ htmlTitle?: string;
2758
+ };
2759
+ }>;
2760
+ type LinkWithoutIconProps = LinkCommonProps & {
2761
+ icon?: undefined;
2762
+ children: StringChildrenType;
2763
+ };
2764
+ type LinkWithIconProps = LinkCommonProps & {
2765
+ icon: IconComponent;
2766
+ children?: StringChildrenType;
2767
+ };
2768
+ type LinkPropsWithOrWithoutIcon = LinkWithIconProps | LinkWithoutIconProps;
2769
+ type LinkAnchorVariantProps = LinkPropsWithOrWithoutIcon & {
2770
+ variant?: 'anchor';
2771
+ href?: string;
2772
+ target?: string;
2773
+ rel?: string;
2774
+ isDisabled?: undefined;
2775
+ };
2776
+ type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
2777
+ variant?: 'button';
2778
+ isDisabled?: boolean;
2779
+ href?: undefined;
2780
+ target?: undefined;
2781
+ rel?: undefined;
2782
+ };
2783
+ type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
2784
+ declare const Link: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<BladeElementRef>>;
2785
+
2786
+ type BreadcrumbProps = StyledPropsBlade & {
2787
+ /**
2788
+ * Size of the Breadcrumb
2789
+ *
2790
+ * @default medium
2791
+ */
2792
+ size?: 'small' | 'medium' | 'large';
2793
+ /**
2794
+ * Color of the Breadcrumb
2795
+ *
2796
+ * @default neutral
2797
+ */
2798
+ color?: 'neutral' | 'primary' | 'white';
2799
+ /**
2800
+ * Content of the Breadcrumb, accepts BreadcrumbItem
2801
+ */
2802
+ children: React.ReactNode;
2803
+ /**
2804
+ * Whether to show the last separator
2805
+ */
2806
+ showLastSeparator?: boolean;
2807
+ /**
2808
+ * aria-label for breadcrumb
2809
+ */
2810
+ accessibilityLabel?: string;
2811
+ };
2812
+ type BreadcrumbItemProps = {
2813
+ /**
2814
+ * Href of the BreadcrumbItem
2815
+ */
2816
+ href: string;
2817
+ /**
2818
+ * Function to be called on click of the BreadcrumbItem,
2819
+ *
2820
+ * This can be used to integrate with routing libraries like `react-router-dom`
2821
+ */
2822
+ onClick?: LinkProps['onClick'];
2823
+ /**
2824
+ * Whether the BreadcrumbItem is the current page,
2825
+ * Sets the aria-current attribute to `page`
2826
+ *
2827
+ * @default false
2828
+ */
2829
+ isCurrentPage?: boolean;
2830
+ /**
2831
+ * Content of the BreadcrumbItem
2832
+ */
2833
+ children?: StringChildrenType;
2834
+ /**
2835
+ * Icon to be shown before the BreadcrumbItem
2836
+ */
2837
+ icon?: IconComponent;
2838
+ /**
2839
+ * Accessibility label for the BreadcrumbItem, can be used in icon only variant
2840
+ */
2841
+ accessibilityLabel?: string;
2842
+ };
2843
+
2844
+ declare const Breadcrumb: (_: BreadcrumbProps) => React.ReactElement;
2845
+
2846
+ declare const BreadcrumbItem: (_: BreadcrumbItemProps) => React.ReactElement;
2640
2847
 
2641
2848
  declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps & MarginProps & {
2642
2849
  width: SpacingValueType | {
@@ -2988,69 +3195,6 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
2988
3195
  id?: string | undefined;
2989
3196
  } & TestID> & React__default.RefAttributes<BoxRefType>>;
2990
3197
 
2991
- type BaseLinkCommonProps = {
2992
- color?: 'primary' | 'white' | 'positive' | 'negative' | 'notice' | 'information' | 'neutral';
2993
- icon?: IconComponent;
2994
- iconPosition?: 'left' | 'right';
2995
- onClick?: (event: SyntheticEvent) => void;
2996
- onBlur?: Platform.Select<{
2997
- native: (event: GestureResponderEvent) => void;
2998
- web: (event: React__default.FocusEvent<HTMLButtonElement>) => void;
2999
- }>;
3000
- onMouseLeave?: Platform.Select<{
3001
- native: (event: GestureResponderEvent) => void;
3002
- web: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
3003
- }>;
3004
- onKeyDown?: Platform.Select<{
3005
- native: (event: GestureResponderEvent) => void;
3006
- web: (event: React__default.KeyboardEvent<HTMLButtonElement>) => void;
3007
- }>;
3008
- accessibilityProps?: Partial<AccessibilityProps>;
3009
- /**
3010
- * Sets the size of the link
3011
- *
3012
- * @default medium
3013
- */
3014
- size?: Extract<BaseTextSizes, 'xsmall' | 'small' | 'medium' | 'large'>;
3015
- /**
3016
- * Defines how far your touch can start away from the link. This is a react-native only prop and has no effect on web.
3017
- */
3018
- hitSlop?: {
3019
- top?: number;
3020
- right?: number;
3021
- bottom?: number;
3022
- left?: number;
3023
- } | number;
3024
- /**
3025
- * The title of the link which is displayed as a tooltip. This is a web only prop and has no effect on react-native.
3026
- */
3027
- htmlTitle?: string;
3028
- } & TestID & StyledPropsBlade & Omit<BladeCommonEvents, 'onBlur' | 'onMouseLeave'>;
3029
- type BaseLinkWithoutIconProps = BaseLinkCommonProps & {
3030
- icon?: undefined;
3031
- children: StringChildrenType;
3032
- };
3033
- type BaseLinkWithIconProps = BaseLinkCommonProps & {
3034
- icon: IconComponent;
3035
- children?: StringChildrenType;
3036
- };
3037
- type BaseLinkPropsWithOrWithoutIcon = BaseLinkWithIconProps | BaseLinkWithoutIconProps;
3038
- type BaseLinkAnchorVariantProps = BaseLinkPropsWithOrWithoutIcon & {
3039
- variant?: 'anchor';
3040
- href?: string;
3041
- target?: string;
3042
- rel?: string;
3043
- isDisabled?: undefined;
3044
- };
3045
- type BaseLinkButtonVariantProps = BaseLinkPropsWithOrWithoutIcon & {
3046
- variant?: 'button';
3047
- isDisabled?: boolean;
3048
- href?: undefined;
3049
- target?: undefined;
3050
- rel?: undefined;
3051
- };
3052
- type BaseLinkProps = BaseLinkAnchorVariantProps | BaseLinkButtonVariantProps;
3053
-
3054
3198
  type BaseButtonCommonProps = {
3055
3199
  href?: BaseLinkProps['href'];
3056
3200
  target?: BaseLinkProps['target'];
@@ -3337,81 +3481,6 @@ type CardBodyProps = {
3337
3481
  } & TestID;
3338
3482
  declare const CardBody: ({ height, children, testID }: CardBodyProps) => React__default.ReactElement;
3339
3483
 
3340
- type LinkCommonProps = {
3341
- variant?: 'anchor' | 'button';
3342
- icon?: IconComponent;
3343
- color?: 'primary' | 'white' | 'neutral';
3344
- iconPosition?: 'left' | 'right';
3345
- isDisabled?: boolean;
3346
- onClick?: (event: SyntheticEvent) => void;
3347
- href?: string;
3348
- target?: string;
3349
- accessibilityLabel?: string;
3350
- /**
3351
- * It is exposed for internal usage with tooltip.
3352
- *
3353
- * @private
3354
- */
3355
- 'aria-describedby'?: string;
3356
- /**
3357
- * Sets the size of the link
3358
- *
3359
- * @default medium
3360
- */
3361
- size?: BaseLinkProps['size'];
3362
- } & TestID & StyledPropsBlade & BladeCommonEvents & Platform.Select<{
3363
- native: {
3364
- /**
3365
- * Defines how far your touch can start away from the link
3366
- */
3367
- hitSlop?: {
3368
- top?: number;
3369
- right?: number;
3370
- bottom?: number;
3371
- left?: number;
3372
- } | number;
3373
- /**
3374
- * This is a web only prop and has no effect on react-native.
3375
- */
3376
- htmlTitle?: undefined;
3377
- };
3378
- web: {
3379
- /**
3380
- * This is a react-native only prop and has no effect on web.
3381
- */
3382
- hitSlop?: undefined;
3383
- /**
3384
- * The title of the link which is displayed as a tooltip.
3385
- */
3386
- htmlTitle?: string;
3387
- };
3388
- }>;
3389
- type LinkWithoutIconProps = LinkCommonProps & {
3390
- icon?: undefined;
3391
- children: StringChildrenType;
3392
- };
3393
- type LinkWithIconProps = LinkCommonProps & {
3394
- icon: IconComponent;
3395
- children?: StringChildrenType;
3396
- };
3397
- type LinkPropsWithOrWithoutIcon = LinkWithIconProps | LinkWithoutIconProps;
3398
- type LinkAnchorVariantProps = LinkPropsWithOrWithoutIcon & {
3399
- variant?: 'anchor';
3400
- href?: string;
3401
- target?: string;
3402
- rel?: string;
3403
- isDisabled?: undefined;
3404
- };
3405
- type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
3406
- variant?: 'button';
3407
- isDisabled?: boolean;
3408
- href?: undefined;
3409
- target?: undefined;
3410
- rel?: undefined;
3411
- };
3412
- type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
3413
- declare const Link: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<BladeElementRef>>;
3414
-
3415
3484
  type CounterProps = {
3416
3485
  /**
3417
3486
  * Sets the value for the counter.
@@ -4527,6 +4596,78 @@ type DividerProps = {
4527
4596
  } & TestID & StyledPropsBlade;
4528
4597
  declare const Divider: ({ orientation, dividerStyle, variant, thickness, height, width, testID, ...styledProps }: DividerProps) => React__default.ReactElement;
4529
4598
 
4599
+ type DrawerProps = {
4600
+ /**
4601
+ * Controls the state of the drawer, indicating whether it is open or closed
4602
+ */
4603
+ isOpen: boolean;
4604
+ /**
4605
+ * Callback function triggered when the drawer is dismissed or closed
4606
+ */
4607
+ onDismiss: () => void;
4608
+ /**
4609
+ * Show or hide overlay.
4610
+ *
4611
+ * Also decides if clicking outside on overlay closes the drawer or not
4612
+ */
4613
+ showOverlay?: boolean;
4614
+ /**
4615
+ * children node.
4616
+ *
4617
+ * Supports DrawerHeader and DrawerBody
4618
+ */
4619
+ children: React.ReactNode;
4620
+ /**
4621
+ * zIndex property of drawer
4622
+ *
4623
+ * @default 1001
4624
+ */
4625
+ zIndex?: number;
4626
+ /**
4627
+ * Accessibility label for the drawer
4628
+ */
4629
+ accessibilityLabel?: string;
4630
+ /**
4631
+ * Ref to the element that should receive focus when opening the drawer.
4632
+ */
4633
+ initialFocusRef?: React.MutableRefObject<any>;
4634
+ } & TestID;
4635
+ type DrawerHeaderProps = {
4636
+ /**
4637
+ * Title of the Drawer
4638
+ */
4639
+ title: string;
4640
+ /**
4641
+ * Subtitle of the Drawer
4642
+ */
4643
+ subtitle?: string;
4644
+ /**
4645
+ * Leading element
4646
+ *
4647
+ * DrawerHeaderIcon or DrawerHeaderAsset
4648
+ */
4649
+ leading?: React.ReactNode;
4650
+ /**
4651
+ * Title suffix element
4652
+ *
4653
+ * DrawerHeaderBadge
4654
+ */
4655
+ titleSuffix?: React.ReactNode;
4656
+ /**
4657
+ * Trailing element
4658
+ *
4659
+ * Link, Button[]
4660
+ */
4661
+ trailing?: React.ReactNode;
4662
+ };
4663
+
4664
+ declare const Drawer: (_props: DrawerProps) => React.ReactElement;
4665
+
4666
+ declare const DrawerHeader: (_props: DrawerHeaderProps) => React__default.ReactElement;
4667
+ declare const DrawerBody: (_props: {
4668
+ children: React__default.ReactNode;
4669
+ }) => React__default.ReactElement;
4670
+
4530
4671
  type DropdownProps = {
4531
4672
  /**
4532
4673
  * Control open / close state of the Dropdown component
@@ -6946,4 +7087,4 @@ declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => Rea
6946
7087
  */
6947
7088
  declare const screenReaderStyles: CSSObject;
6948
7089
 
6949
- export { Accordion, AccordionItem, AccordionItemProps, AccordionProps, ActionList, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemBadge, ActionListItemBadgeGroup, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, Amount, AmountProps, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AutoComplete, AutoCompleteProps, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeCommonEvents, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BottomSheet, BottomSheetBody, BottomSheetBodyProps, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, Box, BoxIcon, BoxProps, BoxRefType, BriefcaseIcon, BulkPayoutsIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderAmount, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, Carousel, CarouselItem, CarouselProps, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, Chip, ChipGroup, ChipGroupProps, ChipProps, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodepenIcon, CoinsIcon, Collapsible, CollapsibleBody, CollapsibleBodyProps, CollapsibleButton, CollapsibleButtonProps, CollapsibleLink, CollapsibleLinkProps, CollapsibleProps, CommandIcon, CompassIcon, ComponentIds, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, CustomersIcon, CutIcon, DashboardIcon, DeleteIcon, DiscIcon, Display, DisplayProps, Divider, DividerProps, DollarIcon, DollarsIcon, DownloadCloudIcon, DownloadIcon, Dropdown, DropdownButton, DropdownFooter, DropdownHeader, DropdownLink, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EditComposeIcon, EditIcon, EditInlineIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FileZipIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphonesIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconColors, IconComponent, IconProps, IconSize, Identifier, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkButtonVariantProps, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListItemText, ListItemTextProps, ListProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, Modal, ModalBody, ModalBodyProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputCommonProps, OTPInputProps, OctagonIcon, OffersIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonsIcon, PaymentLinksIcon, PaymentPagesIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, Popover, PopoverInteractiveWrapper, PopoverProps, PopoverTriggerProps, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RefreshIcon, RepeatIcon, ReportsIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaveIcon, ScissorsIcon, SearchIcon, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, Skeleton, SkeletonProps, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SpeakerIcon, Spinner, SpinnerProps, SpotlightPopoverStepRenderProps, SpotlightPopoverTourFooter, SpotlightPopoverTourProps, SpotlightPopoverTourStep, SpotlightPopoverTourSteps, SquareIcon, StampIcon, StarIcon, StopCircleIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, Switch, SwitchProps, TabItem, TabItemProps, TabList, TabPanel, TabPanelProps, Table, TableBackgroundColors, TableBody, TableBodyProps, TableCell, TableCellProps, TableData, TableFooter, TableFooterCell, TableFooterCellProps, TableFooterProps, TableFooterRow, TableFooterRowProps, TableHeader, TableHeaderCell, TableHeaderCellProps, TableHeaderProps, TableHeaderRow, TableHeaderRowProps, TableNode, TablePagination, TablePaginationCommonProps, TablePaginationProps$1 as TablePaginationProps, TablePaginationType, TableProps, TableRow, TableRowProps, TableToolbar, TableToolbarActions, TableToolbarActionsProps, TableToolbarProps, TabletIcon, Tabs, TabsProps, Tag, TagIcon, TagProps, TargetIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, ToastContainer, ToastProps, ToggleLeftIcon, ToggleRightIcon, Tooltip, TooltipInteractiveWrapper, TooltipProps, Tour, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UseToastReturn, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme, useToast };
7090
+ export { Accordion, AccordionItem, AccordionItemProps, AccordionProps, ActionList, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemBadge, ActionListItemBadgeGroup, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, Amount, AmountProps, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AutoComplete, AutoCompleteProps, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeCommonEvents, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BottomSheet, BottomSheetBody, BottomSheetBodyProps, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, Box, BoxIcon, BoxProps, BoxRefType, Breadcrumb, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbProps, BriefcaseIcon, BulkPayoutsIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderAmount, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, Carousel, CarouselItem, CarouselProps, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, Chip, ChipGroup, ChipGroupProps, ChipProps, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodepenIcon, CoinsIcon, Collapsible, CollapsibleBody, CollapsibleBodyProps, CollapsibleButton, CollapsibleButtonProps, CollapsibleLink, CollapsibleLinkProps, CollapsibleProps, CommandIcon, CompassIcon, ComponentIds, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, CustomersIcon, CutIcon, DashboardIcon, DeleteIcon, DiscIcon, Display, DisplayProps, Divider, DividerProps, DollarIcon, DollarsIcon, DownloadCloudIcon, DownloadIcon, Drawer, DrawerBody, DrawerHeader, DrawerHeaderProps, DrawerProps, Dropdown, DropdownButton, DropdownFooter, DropdownHeader, DropdownLink, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EditComposeIcon, EditIcon, EditInlineIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FileZipIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphonesIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconColors, IconComponent, IconProps, IconSize, Identifier, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkButtonVariantProps, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListItemText, ListItemTextProps, ListProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, Modal, ModalBody, ModalBodyProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputCommonProps, OTPInputProps, OctagonIcon, OffersIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonsIcon, PaymentLinksIcon, PaymentPagesIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, Popover, PopoverInteractiveWrapper, PopoverProps, PopoverTriggerProps, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RefreshIcon, RepeatIcon, ReportsIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaveIcon, ScissorsIcon, SearchIcon, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, Skeleton, SkeletonProps, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SpeakerIcon, Spinner, SpinnerProps, SpotlightPopoverStepRenderProps, SpotlightPopoverTourFooter, SpotlightPopoverTourProps, SpotlightPopoverTourStep, SpotlightPopoverTourSteps, SquareIcon, StampIcon, StarIcon, StopCircleIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, Switch, SwitchProps, TabItem, TabItemProps, TabList, TabPanel, TabPanelProps, Table, TableBackgroundColors, TableBody, TableBodyProps, TableCell, TableCellProps, TableData, TableFooter, TableFooterCell, TableFooterCellProps, TableFooterProps, TableFooterRow, TableFooterRowProps, TableHeader, TableHeaderCell, TableHeaderCellProps, TableHeaderProps, TableHeaderRow, TableHeaderRowProps, TableNode, TablePagination, TablePaginationCommonProps, TablePaginationProps$1 as TablePaginationProps, TablePaginationType, TableProps, TableRow, TableRowProps, TableToolbar, TableToolbarActions, TableToolbarActionsProps, TableToolbarProps, TabletIcon, Tabs, TabsProps, Tag, TagIcon, TagProps, TargetIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, ToastContainer, ToastProps, ToggleLeftIcon, ToggleRightIcon, Tooltip, TooltipInteractiveWrapper, TooltipProps, Tour, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UseToastReturn, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme, useToast };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@razorpay/blade",
3
3
  "description": "The Design System that powers Razorpay",
4
- "version": "11.3.1",
4
+ "version": "11.5.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"
@@ -127,11 +127,11 @@
127
127
  "watch:test:react-native": "yarn test:react-native --watch --onlyChanged",
128
128
  "chromatic": "npx chromatic",
129
129
  "publish-npm": "node ./scripts/publishToNpm.js",
130
- "generate-github-npmrc": "node ./scripts/generateGitHubRegistryNpmrc.js",
131
- "postinstall": "patch-package"
130
+ "pregenerate-bundle-size-info": "yarn run-s build:clean build:generate-types build:react-prod",
131
+ "generate-bundle-size-info": "node ./scripts/generateBundleSizeInfo.js",
132
+ "generate-github-npmrc": "node ./scripts/generateGitHubRegistryNpmrc.js"
132
133
  },
133
134
  "dependencies": {
134
- "patch-package": "7.0.0",
135
135
  "@babel/runtime": "7.20.0",
136
136
  "body-scroll-lock-upgrade": "1.1.0",
137
137
  "ts-deepmerge": "6.2.0",
@@ -154,6 +154,8 @@
154
154
  "chromatic": "6.22.0",
155
155
  "@babel/cli": "7.23.0",
156
156
  "@babel/core": "7.20.2",
157
+ "@babel/parser": "7.23.6",
158
+ "@babel/traverse": "7.23.7",
157
159
  "@babel/plugin-transform-react-jsx": "7.16.5",
158
160
  "@babel/plugin-transform-runtime": "7.16.5",
159
161
  "@babel/preset-env": "7.20.2",
@@ -220,15 +222,16 @@
220
222
  "babel-loader": "8.2.3",
221
223
  "babel-plugin-module-resolver": "4.1.0",
222
224
  "babel-plugin-styled-components": "1.12.0",
223
- "bundlemon": "2.0.1",
224
225
  "chalk": "4.1.1",
225
226
  "copyfiles": "2.4.1",
226
227
  "cross-env": "7.0.3",
228
+ "danger": "11.3.1",
227
229
  "dedent": "0.7.0",
228
230
  "eslint-plugin-mdx": "1.16.0",
229
231
  "execa": "5.0.0",
230
232
  "figures": "3.2.0",
231
233
  "flat": "5.0.2",
234
+ "globby": "14.0.1",
232
235
  "ismobilejs": "1.1.1",
233
236
  "jest": "29.6.1",
234
237
  "jest-axe": "8.0.0",
@@ -304,56 +307,5 @@
304
307
  "react-dom": "18.2.0",
305
308
  "react": "18.2.0",
306
309
  "styled-components": "^5"
307
- },
308
- "bundlemon": {
309
- "files": [
310
- {
311
- "friendlyName": "Web Components",
312
- "path": "./build/components/index.production.web.js"
313
- },
314
- {
315
- "friendlyName": "React Native Components",
316
- "path": "./build/components/index.native.js"
317
- },
318
- {
319
- "friendlyName": "Web Tokens",
320
- "path": "./build/tokens/index.production.web.js"
321
- },
322
- {
323
- "friendlyName": "React Native Tokens",
324
- "path": "./build/tokens/index.native.js"
325
- },
326
- {
327
- "friendlyName": "CSS Theme Tokens",
328
- "path": "./build/css/*.css"
329
- },
330
- {
331
- "friendlyName": "Web Utils",
332
- "path": "./build/utils/index.production.web.js"
333
- },
334
- {
335
- "friendlyName": "React Native Utils",
336
- "path": "./build/utils/index.native.js"
337
- }
338
- ],
339
- "reportOutput": [
340
- "github"
341
- ]
342
- },
343
- "size-limit": [
344
- {
345
- "name": "Import Button only",
346
- "path": "./build/lib/web/production/components/index.js",
347
- "import": "{ Button }",
348
- "limit": "31 kb",
349
- "running": false
350
- },
351
- {
352
- "name": "Import Text only",
353
- "path": "./build/lib/web/production/components/index.js",
354
- "import": "{ Text }",
355
- "limit": "25 kb",
356
- "running": false
357
- }
358
- ]
310
+ }
359
311
  }