@razorpay/blade 11.4.0 → 11.6.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 (49) hide show
  1. package/build/lib/native/components/Breadcrumb/Breadcrumb.native.js +7 -0
  2. package/build/lib/native/components/Breadcrumb/Breadcrumb.native.js.map +1 -0
  3. package/build/lib/native/components/Breadcrumb/BreadcrumbItem.native.js +7 -0
  4. package/build/lib/native/components/Breadcrumb/BreadcrumbItem.native.js.map +1 -0
  5. package/build/lib/native/components/Link/BaseLink/BaseLink.js +1 -1
  6. package/build/lib/native/components/Link/BaseLink/BaseLink.js.map +1 -1
  7. package/build/lib/native/components/index.js +2 -0
  8. package/build/lib/native/components/index.js.map +1 -1
  9. package/build/lib/native/utils/metaAttribute/metaConstants.js +1 -1
  10. package/build/lib/native/utils/metaAttribute/metaConstants.js.map +1 -1
  11. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js +104 -0
  12. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js.map +1 -0
  13. package/build/lib/web/development/components/Breadcrumb/BreadcrumbContext.js +9 -0
  14. package/build/lib/web/development/components/Breadcrumb/BreadcrumbContext.js.map +1 -0
  15. package/build/lib/web/development/components/Breadcrumb/BreadcrumbItem.web.js +55 -0
  16. package/build/lib/web/development/components/Breadcrumb/BreadcrumbItem.web.js.map +1 -0
  17. package/build/lib/web/development/components/Breadcrumb/index.js +4 -0
  18. package/build/lib/web/development/components/Breadcrumb/index.js.map +1 -0
  19. package/build/lib/web/development/components/Breadcrumb/types.js +2 -0
  20. package/build/lib/web/development/components/Breadcrumb/types.js.map +1 -0
  21. package/build/lib/web/development/components/Button/Button/index.js +1 -1
  22. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +3 -1
  23. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  24. package/build/lib/web/development/components/Link/Link/index.js +1 -1
  25. package/build/lib/web/development/components/index.js +3 -0
  26. package/build/lib/web/development/components/index.js.map +1 -1
  27. package/build/lib/web/development/utils/metaAttribute/metaConstants.js +5 -0
  28. package/build/lib/web/development/utils/metaAttribute/metaConstants.js.map +1 -1
  29. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js +104 -0
  30. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js.map +1 -0
  31. package/build/lib/web/production/components/Breadcrumb/BreadcrumbContext.js +9 -0
  32. package/build/lib/web/production/components/Breadcrumb/BreadcrumbContext.js.map +1 -0
  33. package/build/lib/web/production/components/Breadcrumb/BreadcrumbItem.web.js +55 -0
  34. package/build/lib/web/production/components/Breadcrumb/BreadcrumbItem.web.js.map +1 -0
  35. package/build/lib/web/production/components/Breadcrumb/index.js +4 -0
  36. package/build/lib/web/production/components/Breadcrumb/index.js.map +1 -0
  37. package/build/lib/web/production/components/Breadcrumb/types.js +2 -0
  38. package/build/lib/web/production/components/Breadcrumb/types.js.map +1 -0
  39. package/build/lib/web/production/components/Button/Button/index.js +1 -1
  40. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +3 -1
  41. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  42. package/build/lib/web/production/components/Link/Link/index.js +1 -1
  43. package/build/lib/web/production/components/index.js +3 -0
  44. package/build/lib/web/production/components/index.js.map +1 -1
  45. package/build/lib/web/production/utils/metaAttribute/metaConstants.js +5 -0
  46. package/build/lib/web/production/utils/metaAttribute/metaConstants.js.map +1 -1
  47. package/build/types/components/index.d.ts +202 -139
  48. package/build/types/components/index.native.d.ts +202 -139
  49. package/package.json +9 -57
@@ -2644,6 +2644,207 @@ declare const BottomSheetFooter: ({ children }: BottomSheetFooterProps) => React
2644
2644
 
2645
2645
  declare const BottomSheet: ({ children, snapPoints, isOpen, onDismiss, initialFocusRef, zIndex, }: BottomSheetProps) => React__default.ReactElement;
2646
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;
2847
+
2647
2848
  declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps & MarginProps & {
2648
2849
  width: SpacingValueType | {
2649
2850
  readonly base?: SpacingValueType | undefined;
@@ -2994,69 +3195,6 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
2994
3195
  id?: string | undefined;
2995
3196
  } & TestID> & React__default.RefAttributes<BoxRefType>>;
2996
3197
 
2997
- type BaseLinkCommonProps = {
2998
- color?: 'primary' | 'white' | 'positive' | 'negative' | 'notice' | 'information' | 'neutral';
2999
- icon?: IconComponent;
3000
- iconPosition?: 'left' | 'right';
3001
- onClick?: (event: SyntheticEvent) => void;
3002
- onBlur?: Platform.Select<{
3003
- native: (event: GestureResponderEvent) => void;
3004
- web: (event: React__default.FocusEvent<HTMLButtonElement>) => void;
3005
- }>;
3006
- onMouseLeave?: Platform.Select<{
3007
- native: (event: GestureResponderEvent) => void;
3008
- web: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
3009
- }>;
3010
- onKeyDown?: Platform.Select<{
3011
- native: (event: GestureResponderEvent) => void;
3012
- web: (event: React__default.KeyboardEvent<HTMLButtonElement>) => void;
3013
- }>;
3014
- accessibilityProps?: Partial<AccessibilityProps>;
3015
- /**
3016
- * Sets the size of the link
3017
- *
3018
- * @default medium
3019
- */
3020
- size?: Extract<BaseTextSizes, 'xsmall' | 'small' | 'medium' | 'large'>;
3021
- /**
3022
- * Defines how far your touch can start away from the link. This is a react-native only prop and has no effect on web.
3023
- */
3024
- hitSlop?: {
3025
- top?: number;
3026
- right?: number;
3027
- bottom?: number;
3028
- left?: number;
3029
- } | number;
3030
- /**
3031
- * The title of the link which is displayed as a tooltip. This is a web only prop and has no effect on react-native.
3032
- */
3033
- htmlTitle?: string;
3034
- } & TestID & StyledPropsBlade & Omit<BladeCommonEvents, 'onBlur' | 'onMouseLeave'>;
3035
- type BaseLinkWithoutIconProps = BaseLinkCommonProps & {
3036
- icon?: undefined;
3037
- children: StringChildrenType;
3038
- };
3039
- type BaseLinkWithIconProps = BaseLinkCommonProps & {
3040
- icon: IconComponent;
3041
- children?: StringChildrenType;
3042
- };
3043
- type BaseLinkPropsWithOrWithoutIcon = BaseLinkWithIconProps | BaseLinkWithoutIconProps;
3044
- type BaseLinkAnchorVariantProps = BaseLinkPropsWithOrWithoutIcon & {
3045
- variant?: 'anchor';
3046
- href?: string;
3047
- target?: string;
3048
- rel?: string;
3049
- isDisabled?: undefined;
3050
- };
3051
- type BaseLinkButtonVariantProps = BaseLinkPropsWithOrWithoutIcon & {
3052
- variant?: 'button';
3053
- isDisabled?: boolean;
3054
- href?: undefined;
3055
- target?: undefined;
3056
- rel?: undefined;
3057
- };
3058
- type BaseLinkProps = BaseLinkAnchorVariantProps | BaseLinkButtonVariantProps;
3059
-
3060
3198
  type BaseButtonCommonProps = {
3061
3199
  href?: BaseLinkProps['href'];
3062
3200
  target?: BaseLinkProps['target'];
@@ -3343,81 +3481,6 @@ type CardBodyProps = {
3343
3481
  } & TestID;
3344
3482
  declare const CardBody: ({ height, children, testID }: CardBodyProps) => React__default.ReactElement;
3345
3483
 
3346
- type LinkCommonProps = {
3347
- variant?: 'anchor' | 'button';
3348
- icon?: IconComponent;
3349
- color?: 'primary' | 'white' | 'neutral';
3350
- iconPosition?: 'left' | 'right';
3351
- isDisabled?: boolean;
3352
- onClick?: (event: SyntheticEvent) => void;
3353
- href?: string;
3354
- target?: string;
3355
- accessibilityLabel?: string;
3356
- /**
3357
- * It is exposed for internal usage with tooltip.
3358
- *
3359
- * @private
3360
- */
3361
- 'aria-describedby'?: string;
3362
- /**
3363
- * Sets the size of the link
3364
- *
3365
- * @default medium
3366
- */
3367
- size?: BaseLinkProps['size'];
3368
- } & TestID & StyledPropsBlade & BladeCommonEvents & Platform.Select<{
3369
- native: {
3370
- /**
3371
- * Defines how far your touch can start away from the link
3372
- */
3373
- hitSlop?: {
3374
- top?: number;
3375
- right?: number;
3376
- bottom?: number;
3377
- left?: number;
3378
- } | number;
3379
- /**
3380
- * This is a web only prop and has no effect on react-native.
3381
- */
3382
- htmlTitle?: undefined;
3383
- };
3384
- web: {
3385
- /**
3386
- * This is a react-native only prop and has no effect on web.
3387
- */
3388
- hitSlop?: undefined;
3389
- /**
3390
- * The title of the link which is displayed as a tooltip.
3391
- */
3392
- htmlTitle?: string;
3393
- };
3394
- }>;
3395
- type LinkWithoutIconProps = LinkCommonProps & {
3396
- icon?: undefined;
3397
- children: StringChildrenType;
3398
- };
3399
- type LinkWithIconProps = LinkCommonProps & {
3400
- icon: IconComponent;
3401
- children?: StringChildrenType;
3402
- };
3403
- type LinkPropsWithOrWithoutIcon = LinkWithIconProps | LinkWithoutIconProps;
3404
- type LinkAnchorVariantProps = LinkPropsWithOrWithoutIcon & {
3405
- variant?: 'anchor';
3406
- href?: string;
3407
- target?: string;
3408
- rel?: string;
3409
- isDisabled?: undefined;
3410
- };
3411
- type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
3412
- variant?: 'button';
3413
- isDisabled?: boolean;
3414
- href?: undefined;
3415
- target?: undefined;
3416
- rel?: undefined;
3417
- };
3418
- type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
3419
- declare const Link: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<BladeElementRef>>;
3420
-
3421
3484
  type CounterProps = {
3422
3485
  /**
3423
3486
  * Sets the value for the counter.
@@ -7024,4 +7087,4 @@ declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => Rea
7024
7087
  */
7025
7088
  declare const screenReaderStyles: CSSObject;
7026
7089
 
7027
- 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, 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 };
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.4.0",
4
+ "version": "11.6.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
  }