@razorpay/blade 12.20.1 → 12.21.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 (126) hide show
  1. package/build/lib/native/components/ActionList/ActionListItem.js +1 -1
  2. package/build/lib/native/components/ActionList/ActionListItem.js.map +1 -1
  3. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js +1 -1
  4. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  5. package/build/lib/native/components/BottomSheet/BottomSheet.native.js +1 -1
  6. package/build/lib/native/components/BottomSheet/BottomSheet.native.js.map +1 -1
  7. package/build/lib/native/components/BottomSheet/BottomSheetContext.js.map +1 -1
  8. package/build/lib/native/components/Collapsible/Collapsible.js +3 -1
  9. package/build/lib/native/components/Collapsible/Collapsible.js.map +1 -1
  10. package/build/lib/native/components/Collapsible/CollapsibleBody.js +2 -1
  11. package/build/lib/native/components/Collapsible/CollapsibleBody.js.map +1 -1
  12. package/build/lib/native/components/Collapsible/CollapsibleButton.js +2 -3
  13. package/build/lib/native/components/Collapsible/CollapsibleButton.js.map +1 -1
  14. package/build/lib/native/components/Collapsible/CollapsibleLink.js +2 -3
  15. package/build/lib/native/components/Collapsible/CollapsibleLink.js.map +1 -1
  16. package/build/lib/native/components/Collapsible/componentIds.js +4 -0
  17. package/build/lib/native/components/Collapsible/componentIds.js.map +1 -0
  18. package/build/lib/native/components/Dropdown/Dropdown.js +1 -1
  19. package/build/lib/native/components/Dropdown/Dropdown.js.map +1 -1
  20. package/build/lib/native/components/Dropdown/DropdownHeaderFooter.js +1 -1
  21. package/build/lib/native/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  22. package/build/lib/native/components/Dropdown/useDropdown.js +1 -1
  23. package/build/lib/native/components/Dropdown/useDropdown.js.map +1 -1
  24. package/build/lib/native/components/Input/BaseInput/BaseInput.js +1 -1
  25. package/build/lib/native/components/Input/BaseInput/BaseInput.js.map +1 -1
  26. package/build/lib/native/components/Input/DropdownInputTriggers/AutoComplete.js +1 -1
  27. package/build/lib/native/components/Input/DropdownInputTriggers/AutoComplete.js.map +1 -1
  28. package/build/lib/native/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +2 -1
  29. package/build/lib/native/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  30. package/build/lib/web/development/components/ActionList/ActionListBox.web.js +3 -3
  31. package/build/lib/web/development/components/ActionList/ActionListBox.web.js.map +1 -1
  32. package/build/lib/web/development/components/ActionList/ActionListItem.js +4 -4
  33. package/build/lib/web/development/components/ActionList/ActionListItem.js.map +1 -1
  34. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js +9 -2
  35. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  36. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +3 -3
  37. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  38. package/build/lib/web/development/components/BottomSheet/BottomSheetContext.js.map +1 -1
  39. package/build/lib/web/development/components/BottomSheet/BottomSheetHeader.web.js +1 -1
  40. package/build/lib/web/development/components/BottomSheet/BottomSheetHeader.web.js.map +1 -1
  41. package/build/lib/web/development/components/Collapsible/Collapsible.js +7 -2
  42. package/build/lib/web/development/components/Collapsible/Collapsible.js.map +1 -1
  43. package/build/lib/web/development/components/Collapsible/CollapsibleBody.js +2 -1
  44. package/build/lib/web/development/components/Collapsible/CollapsibleBody.js.map +1 -1
  45. package/build/lib/web/development/components/Collapsible/CollapsibleButton.js +2 -3
  46. package/build/lib/web/development/components/Collapsible/CollapsibleButton.js.map +1 -1
  47. package/build/lib/web/development/components/Collapsible/CollapsibleLink.js +2 -3
  48. package/build/lib/web/development/components/Collapsible/CollapsibleLink.js.map +1 -1
  49. package/build/lib/web/development/components/Collapsible/componentIds.js +9 -0
  50. package/build/lib/web/development/components/Collapsible/componentIds.js.map +1 -0
  51. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js +6 -3
  52. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  53. package/build/lib/web/development/components/DatePicker/useDatesState.js +12 -1
  54. package/build/lib/web/development/components/DatePicker/useDatesState.js.map +1 -1
  55. package/build/lib/web/development/components/DatePicker/usePopup.js +5 -1
  56. package/build/lib/web/development/components/DatePicker/usePopup.js.map +1 -1
  57. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js +6 -3
  58. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  59. package/build/lib/web/development/components/Dropdown/Dropdown.js +8 -6
  60. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  61. package/build/lib/web/development/components/Dropdown/DropdownHeaderFooter.js +18 -8
  62. package/build/lib/web/development/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  63. package/build/lib/web/development/components/Dropdown/useDropdown.js +16 -6
  64. package/build/lib/web/development/components/Dropdown/useDropdown.js.map +1 -1
  65. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +7 -3
  66. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  67. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js +5 -2
  68. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  69. package/build/lib/web/development/components/Input/DropdownInputTriggers/AutoComplete.js +11 -8
  70. package/build/lib/web/development/components/Input/DropdownInputTriggers/AutoComplete.js.map +1 -1
  71. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +24 -12
  72. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  73. package/build/lib/web/development/components/StepGroup/StepGroup.web.js +26 -4
  74. package/build/lib/web/development/components/StepGroup/StepGroup.web.js.map +1 -1
  75. package/build/lib/web/development/components/StepGroup/StepItem.web.js +2 -1
  76. package/build/lib/web/development/components/StepGroup/StepItem.web.js.map +1 -1
  77. package/build/lib/web/production/components/ActionList/ActionListBox.web.js +3 -3
  78. package/build/lib/web/production/components/ActionList/ActionListBox.web.js.map +1 -1
  79. package/build/lib/web/production/components/ActionList/ActionListItem.js +4 -4
  80. package/build/lib/web/production/components/ActionList/ActionListItem.js.map +1 -1
  81. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js +9 -2
  82. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  83. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +3 -3
  84. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  85. package/build/lib/web/production/components/BottomSheet/BottomSheetContext.js.map +1 -1
  86. package/build/lib/web/production/components/BottomSheet/BottomSheetHeader.web.js +1 -1
  87. package/build/lib/web/production/components/BottomSheet/BottomSheetHeader.web.js.map +1 -1
  88. package/build/lib/web/production/components/Collapsible/Collapsible.js +7 -2
  89. package/build/lib/web/production/components/Collapsible/Collapsible.js.map +1 -1
  90. package/build/lib/web/production/components/Collapsible/CollapsibleBody.js +2 -1
  91. package/build/lib/web/production/components/Collapsible/CollapsibleBody.js.map +1 -1
  92. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js +2 -3
  93. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js.map +1 -1
  94. package/build/lib/web/production/components/Collapsible/CollapsibleLink.js +2 -3
  95. package/build/lib/web/production/components/Collapsible/CollapsibleLink.js.map +1 -1
  96. package/build/lib/web/production/components/Collapsible/componentIds.js +9 -0
  97. package/build/lib/web/production/components/Collapsible/componentIds.js.map +1 -0
  98. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js +6 -3
  99. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  100. package/build/lib/web/production/components/DatePicker/useDatesState.js +12 -1
  101. package/build/lib/web/production/components/DatePicker/useDatesState.js.map +1 -1
  102. package/build/lib/web/production/components/DatePicker/usePopup.js +5 -1
  103. package/build/lib/web/production/components/DatePicker/usePopup.js.map +1 -1
  104. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js +6 -3
  105. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  106. package/build/lib/web/production/components/Dropdown/Dropdown.js +8 -6
  107. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  108. package/build/lib/web/production/components/Dropdown/DropdownHeaderFooter.js +18 -8
  109. package/build/lib/web/production/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  110. package/build/lib/web/production/components/Dropdown/useDropdown.js +16 -6
  111. package/build/lib/web/production/components/Dropdown/useDropdown.js.map +1 -1
  112. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +7 -3
  113. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  114. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js +5 -2
  115. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  116. package/build/lib/web/production/components/Input/DropdownInputTriggers/AutoComplete.js +11 -8
  117. package/build/lib/web/production/components/Input/DropdownInputTriggers/AutoComplete.js.map +1 -1
  118. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +24 -12
  119. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  120. package/build/lib/web/production/components/StepGroup/StepGroup.web.js +26 -4
  121. package/build/lib/web/production/components/StepGroup/StepGroup.web.js.map +1 -1
  122. package/build/lib/web/production/components/StepGroup/StepItem.web.js +2 -1
  123. package/build/lib/web/production/components/StepGroup/StepItem.web.js.map +1 -1
  124. package/build/types/components/index.d.ts +20 -9
  125. package/build/types/components/index.native.d.ts +19 -8
  126. package/package.json +1 -1
@@ -14971,7 +14971,7 @@ type DrawerProps = {
14971
14971
  *
14972
14972
  * Supports DrawerHeader and DrawerBody
14973
14973
  */
14974
- children: React.ReactNode;
14974
+ children: React__default.ReactNode;
14975
14975
  /**
14976
14976
  * zIndex property of drawer
14977
14977
  *
@@ -14985,7 +14985,7 @@ type DrawerProps = {
14985
14985
  /**
14986
14986
  * Ref to the element that should receive focus when opening the drawer.
14987
14987
  */
14988
- initialFocusRef?: React.MutableRefObject<any>;
14988
+ initialFocusRef?: React__default.MutableRefObject<any>;
14989
14989
  /**
14990
14990
  * If `true`, the DrawerBody will be rendered only when it becomes active.
14991
14991
  * Set to `false` to keep DrawerBody in DOM
@@ -14998,7 +14998,7 @@ type DrawerHeaderProps = {
14998
14998
  /**
14999
14999
  * Title of the Drawer
15000
15000
  */
15001
- title: string;
15001
+ title?: string;
15002
15002
  /**
15003
15003
  * Subtitle of the Drawer
15004
15004
  */
@@ -15008,19 +15008,23 @@ type DrawerHeaderProps = {
15008
15008
  *
15009
15009
  * DrawerHeaderIcon or DrawerHeaderAsset
15010
15010
  */
15011
- leading?: React.ReactNode;
15011
+ leading?: React__default.ReactNode;
15012
15012
  /**
15013
15013
  * Title suffix element
15014
15014
  *
15015
15015
  * DrawerHeaderBadge
15016
15016
  */
15017
- titleSuffix?: React.ReactNode;
15017
+ titleSuffix?: React__default.ReactNode;
15018
15018
  /**
15019
15019
  * Trailing element
15020
15020
  *
15021
15021
  * Link, Button[]
15022
15022
  */
15023
- trailing?: React.ReactNode;
15023
+ trailing?: React__default.ReactNode;
15024
+ /**
15025
+ * Children elements to be rendered inside the header
15026
+ */
15027
+ children?: React__default.ReactElement | React__default.ReactElement[];
15024
15028
  } & DataAnalyticsAttribute;
15025
15029
 
15026
15030
  /**
@@ -15037,7 +15041,7 @@ type DrawerHeaderProps = {
15037
15041
  * ```
15038
15042
  *
15039
15043
  */
15040
- declare const DrawerHeader: ({ title, subtitle, leading, trailing, titleSuffix, ...rest }: DrawerHeaderProps) => React__default.ReactElement;
15044
+ declare const DrawerHeader: ({ title, subtitle, leading, trailing, titleSuffix, children, ...rest }: DrawerHeaderProps) => React__default.ReactElement;
15041
15045
  declare const drawerPadding = "spacing.6";
15042
15046
  declare const DrawerBody: ({ children }: {
15043
15047
  children: React__default.ReactNode;
@@ -15355,6 +15359,13 @@ type BaseInputCommonProps = FormInputLabelProps & DataAnalyticsAttribute & FormI
15355
15359
  * Hides the form hints and shows them as tooltip of trailing
15356
15360
  */
15357
15361
  showHintsAsTooltip?: boolean;
15362
+ role?: AriaAttributes['role'];
15363
+ /**
15364
+ * Tab Index of the input field
15365
+ *
15366
+ * @default undefined
15367
+ */
15368
+ tabIndex?: number;
15358
15369
  } & TestID & Platform.Select<{
15359
15370
  native: {
15360
15371
  /**
@@ -16333,8 +16344,8 @@ type DropdownIconButtonProps = Omit<IconButtonProps, 'onClick'> & {
16333
16344
  };
16334
16345
  declare const DropdownIconButton: ({ icon, isDisabled, onClick, onBlur, onKeyDown, size, accessibilityLabel, emphasis, ...rest }: DropdownIconButtonProps) => React__default.ReactElement;
16335
16346
 
16336
- type DropdownHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'testID' | keyof DataAnalyticsAttribute>;
16337
- declare const DropdownHeader: ({ title, subtitle, leading, titleSuffix, trailing, testID, ...rest }: DropdownHeaderProps) => React__default.ReactElement;
16347
+ type DropdownHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'testID' | 'children' | keyof DataAnalyticsAttribute>;
16348
+ declare const DropdownHeader: ({ title, subtitle, leading, titleSuffix, trailing, testID, children, ...rest }: DropdownHeaderProps) => React__default.ReactElement;
16338
16349
  type DropdownFooter = Pick<BaseFooterProps, 'children' | 'testID'>;
16339
16350
  declare const DropdownFooter: ({ children, testID }: DropdownFooter) => React__default.ReactElement;
16340
16351
 
@@ -9737,7 +9737,7 @@ type DrawerProps = {
9737
9737
  *
9738
9738
  * Supports DrawerHeader and DrawerBody
9739
9739
  */
9740
- children: React.ReactNode;
9740
+ children: React__default.ReactNode;
9741
9741
  /**
9742
9742
  * zIndex property of drawer
9743
9743
  *
@@ -9751,7 +9751,7 @@ type DrawerProps = {
9751
9751
  /**
9752
9752
  * Ref to the element that should receive focus when opening the drawer.
9753
9753
  */
9754
- initialFocusRef?: React.MutableRefObject<any>;
9754
+ initialFocusRef?: React__default.MutableRefObject<any>;
9755
9755
  /**
9756
9756
  * If `true`, the DrawerBody will be rendered only when it becomes active.
9757
9757
  * Set to `false` to keep DrawerBody in DOM
@@ -9764,7 +9764,7 @@ type DrawerHeaderProps = {
9764
9764
  /**
9765
9765
  * Title of the Drawer
9766
9766
  */
9767
- title: string;
9767
+ title?: string;
9768
9768
  /**
9769
9769
  * Subtitle of the Drawer
9770
9770
  */
@@ -9774,19 +9774,23 @@ type DrawerHeaderProps = {
9774
9774
  *
9775
9775
  * DrawerHeaderIcon or DrawerHeaderAsset
9776
9776
  */
9777
- leading?: React.ReactNode;
9777
+ leading?: React__default.ReactNode;
9778
9778
  /**
9779
9779
  * Title suffix element
9780
9780
  *
9781
9781
  * DrawerHeaderBadge
9782
9782
  */
9783
- titleSuffix?: React.ReactNode;
9783
+ titleSuffix?: React__default.ReactNode;
9784
9784
  /**
9785
9785
  * Trailing element
9786
9786
  *
9787
9787
  * Link, Button[]
9788
9788
  */
9789
- trailing?: React.ReactNode;
9789
+ trailing?: React__default.ReactNode;
9790
+ /**
9791
+ * Children elements to be rendered inside the header
9792
+ */
9793
+ children?: React__default.ReactElement | React__default.ReactElement[];
9790
9794
  } & DataAnalyticsAttribute;
9791
9795
 
9792
9796
  declare const Drawer: (_props: DrawerProps) => React.ReactElement;
@@ -10112,6 +10116,13 @@ type BaseInputCommonProps = FormInputLabelProps & DataAnalyticsAttribute & FormI
10112
10116
  * Hides the form hints and shows them as tooltip of trailing
10113
10117
  */
10114
10118
  showHintsAsTooltip?: boolean;
10119
+ role?: AriaAttributes['role'];
10120
+ /**
10121
+ * Tab Index of the input field
10122
+ *
10123
+ * @default undefined
10124
+ */
10125
+ tabIndex?: number;
10115
10126
  } & TestID & Platform.Select<{
10116
10127
  native: {
10117
10128
  /**
@@ -10858,8 +10869,8 @@ type DropdownIconButtonProps = Omit<IconButtonProps, 'onClick'> & {
10858
10869
  };
10859
10870
  declare const DropdownIconButton: ({ icon, isDisabled, onClick, onBlur, onKeyDown, size, accessibilityLabel, emphasis, ...rest }: DropdownIconButtonProps) => React__default.ReactElement;
10860
10871
 
10861
- type DropdownHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'testID' | keyof DataAnalyticsAttribute>;
10862
- declare const DropdownHeader: ({ title, subtitle, leading, titleSuffix, trailing, testID, ...rest }: DropdownHeaderProps) => React__default.ReactElement;
10872
+ type DropdownHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'testID' | 'children' | keyof DataAnalyticsAttribute>;
10873
+ declare const DropdownHeader: ({ title, subtitle, leading, titleSuffix, trailing, testID, children, ...rest }: DropdownHeaderProps) => React__default.ReactElement;
10863
10874
  type DropdownFooter = Pick<BaseFooterProps, 'children' | 'testID'>;
10864
10875
  declare const DropdownFooter: ({ children, testID }: DropdownFooter) => React__default.ReactElement;
10865
10876
 
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": "12.20.1",
4
+ "version": "12.21.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"