@razorpay/blade 12.38.0 → 12.40.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 (167) hide show
  1. package/build/lib/native/components/Accordion/AccordionItem.js +1 -1
  2. package/build/lib/native/components/Accordion/AccordionItem.js.map +1 -1
  3. package/build/lib/native/components/Alert/Alert.js +2 -1
  4. package/build/lib/native/components/Alert/Alert.js.map +1 -1
  5. package/build/lib/native/components/Card/CardFooter.js +2 -1
  6. package/build/lib/native/components/Card/CardFooter.js.map +1 -1
  7. package/build/lib/native/components/Chip/Chip.js +1 -1
  8. package/build/lib/native/components/Chip/Chip.js.map +1 -1
  9. package/build/lib/native/components/Form/FormLabel.js +1 -1
  10. package/build/lib/native/components/Form/FormLabel.js.map +1 -1
  11. package/build/lib/native/components/Icons/CompanyRegistrationIcon/CompanyRegistrationIcon.js +1 -1
  12. package/build/lib/native/components/Icons/CompanyRegistrationIcon/CompanyRegistrationIcon.js.map +1 -1
  13. package/build/lib/native/components/Input/BaseInput/BaseInput.js +1 -1
  14. package/build/lib/native/components/Input/BaseInput/BaseInput.js.map +1 -1
  15. package/build/lib/native/components/Input/OTPInput/OTPInput.js +1 -1
  16. package/build/lib/native/components/Input/OTPInput/OTPInput.js.map +1 -1
  17. package/build/lib/native/components/Input/PasswordInput/PasswordInput.js +1 -1
  18. package/build/lib/native/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  19. package/build/lib/native/components/Input/SearchInput/SearchInput.js +1 -1
  20. package/build/lib/native/components/Input/SearchInput/SearchInput.js.map +1 -1
  21. package/build/lib/native/components/Input/TextArea/TextArea.js +1 -1
  22. package/build/lib/native/components/Input/TextArea/TextArea.js.map +1 -1
  23. package/build/lib/native/components/Input/TextInput/TextInput.js +1 -1
  24. package/build/lib/native/components/Input/TextInput/TextInput.js.map +1 -1
  25. package/build/lib/native/components/QuickFilters/QuickFilter.js +1 -1
  26. package/build/lib/native/components/QuickFilters/QuickFilter.js.map +1 -1
  27. package/build/lib/native/utils/makeAnalyticsAttribute/makeAnalyticsConstants.js +4 -0
  28. package/build/lib/native/utils/makeAnalyticsAttribute/makeAnalyticsConstants.js.map +1 -0
  29. package/build/lib/web/development/components/Accordion/AccordionButton.web.js +5 -7
  30. package/build/lib/web/development/components/Accordion/AccordionButton.web.js.map +1 -1
  31. package/build/lib/web/development/components/Accordion/AccordionItem.js +7 -5
  32. package/build/lib/web/development/components/Accordion/AccordionItem.js.map +1 -1
  33. package/build/lib/web/development/components/Alert/Alert.js +2 -0
  34. package/build/lib/web/development/components/Alert/Alert.js.map +1 -1
  35. package/build/lib/web/development/components/Avatar/AvatarButton.js +3 -0
  36. package/build/lib/web/development/components/Avatar/AvatarButton.js.map +1 -1
  37. package/build/lib/web/development/components/Card/CardFooter.js +3 -0
  38. package/build/lib/web/development/components/Card/CardFooter.js.map +1 -1
  39. package/build/lib/web/development/components/Chip/Chip.js +5 -5
  40. package/build/lib/web/development/components/Chip/Chip.js.map +1 -1
  41. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js +6 -2
  42. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  43. package/build/lib/web/development/components/DatePicker/Calendar.web.js +4 -2
  44. package/build/lib/web/development/components/DatePicker/Calendar.web.js.map +1 -1
  45. package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js +4 -0
  46. package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js.map +1 -1
  47. package/build/lib/web/development/components/DatePicker/DateInput.web.js +10 -4
  48. package/build/lib/web/development/components/DatePicker/DateInput.web.js.map +1 -1
  49. package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js +1 -0
  50. package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
  51. package/build/lib/web/development/components/DatePicker/QuickSelection/QuickSelectionItem.web.js +2 -1
  52. package/build/lib/web/development/components/DatePicker/QuickSelection/QuickSelectionItem.web.js.map +1 -1
  53. package/build/lib/web/development/components/FileUpload/FileUploadItem.js +3 -0
  54. package/build/lib/web/development/components/FileUpload/FileUploadItem.js.map +1 -1
  55. package/build/lib/web/development/components/Form/FormLabel.js +24 -4
  56. package/build/lib/web/development/components/Form/FormLabel.js.map +1 -1
  57. package/build/lib/web/development/components/Icons/CompanyRegistrationIcon/CompanyRegistrationIcon.js +1 -3
  58. package/build/lib/web/development/components/Icons/CompanyRegistrationIcon/CompanyRegistrationIcon.js.map +1 -1
  59. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +6 -2
  60. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  61. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js +5 -1
  62. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js.map +1 -1
  63. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js +5 -1
  64. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  65. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +5 -1
  66. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  67. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js +5 -1
  68. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js.map +1 -1
  69. package/build/lib/web/development/components/Input/TextArea/TextArea.js +5 -1
  70. package/build/lib/web/development/components/Input/TextArea/TextArea.js.map +1 -1
  71. package/build/lib/web/development/components/Input/TextInput/TextInput.js +5 -1
  72. package/build/lib/web/development/components/Input/TextInput/TextInput.js.map +1 -1
  73. package/build/lib/web/development/components/Modal/Modal.web.js +6 -7
  74. package/build/lib/web/development/components/Modal/Modal.web.js.map +1 -1
  75. package/build/lib/web/development/components/Preview/Preview.web.js +8 -7
  76. package/build/lib/web/development/components/Preview/Preview.web.js.map +1 -1
  77. package/build/lib/web/development/components/QuickFilters/QuickFilter.js +9 -7
  78. package/build/lib/web/development/components/QuickFilters/QuickFilter.js.map +1 -1
  79. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js +12 -2
  80. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  81. package/build/lib/web/development/components/Table/Table.web.js +6 -3
  82. package/build/lib/web/development/components/Table/Table.web.js.map +1 -1
  83. package/build/lib/web/development/components/Table/TableBody.web.js +5 -3
  84. package/build/lib/web/development/components/Table/TableBody.web.js.map +1 -1
  85. package/build/lib/web/development/components/Table/TableHeader.web.js +4 -2
  86. package/build/lib/web/development/components/Table/TableHeader.web.js.map +1 -1
  87. package/build/lib/web/development/components/Table/TablePagination.web.js +12 -6
  88. package/build/lib/web/development/components/Table/TablePagination.web.js.map +1 -1
  89. package/build/lib/web/development/components/Table/TableToolbar.web.js +5 -8
  90. package/build/lib/web/development/components/Table/TableToolbar.web.js.map +1 -1
  91. package/build/lib/web/development/components/Toast/Toast.web.js +2 -0
  92. package/build/lib/web/development/components/Toast/Toast.web.js.map +1 -1
  93. package/build/lib/web/development/utils/makeAnalyticsAttribute/index.js +1 -0
  94. package/build/lib/web/development/utils/makeAnalyticsAttribute/index.js.map +1 -1
  95. package/build/lib/web/development/utils/makeAnalyticsAttribute/makeAnalyticsConstants.js +32 -0
  96. package/build/lib/web/development/utils/makeAnalyticsAttribute/makeAnalyticsConstants.js.map +1 -0
  97. package/build/lib/web/production/components/Accordion/AccordionButton.web.js +5 -7
  98. package/build/lib/web/production/components/Accordion/AccordionButton.web.js.map +1 -1
  99. package/build/lib/web/production/components/Accordion/AccordionItem.js +7 -5
  100. package/build/lib/web/production/components/Accordion/AccordionItem.js.map +1 -1
  101. package/build/lib/web/production/components/Alert/Alert.js +2 -0
  102. package/build/lib/web/production/components/Alert/Alert.js.map +1 -1
  103. package/build/lib/web/production/components/Avatar/AvatarButton.js +3 -0
  104. package/build/lib/web/production/components/Avatar/AvatarButton.js.map +1 -1
  105. package/build/lib/web/production/components/Card/CardFooter.js +3 -0
  106. package/build/lib/web/production/components/Card/CardFooter.js.map +1 -1
  107. package/build/lib/web/production/components/Chip/Chip.js +5 -5
  108. package/build/lib/web/production/components/Chip/Chip.js.map +1 -1
  109. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js +6 -2
  110. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  111. package/build/lib/web/production/components/DatePicker/Calendar.web.js +4 -2
  112. package/build/lib/web/production/components/DatePicker/Calendar.web.js.map +1 -1
  113. package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js +4 -0
  114. package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js.map +1 -1
  115. package/build/lib/web/production/components/DatePicker/DateInput.web.js +10 -4
  116. package/build/lib/web/production/components/DatePicker/DateInput.web.js.map +1 -1
  117. package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js +1 -0
  118. package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
  119. package/build/lib/web/production/components/DatePicker/QuickSelection/QuickSelectionItem.web.js +2 -1
  120. package/build/lib/web/production/components/DatePicker/QuickSelection/QuickSelectionItem.web.js.map +1 -1
  121. package/build/lib/web/production/components/FileUpload/FileUploadItem.js +3 -0
  122. package/build/lib/web/production/components/FileUpload/FileUploadItem.js.map +1 -1
  123. package/build/lib/web/production/components/Form/FormLabel.js +24 -4
  124. package/build/lib/web/production/components/Form/FormLabel.js.map +1 -1
  125. package/build/lib/web/production/components/Icons/CompanyRegistrationIcon/CompanyRegistrationIcon.js +1 -3
  126. package/build/lib/web/production/components/Icons/CompanyRegistrationIcon/CompanyRegistrationIcon.js.map +1 -1
  127. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +6 -2
  128. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  129. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js +5 -1
  130. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js.map +1 -1
  131. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js +5 -1
  132. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  133. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +5 -1
  134. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  135. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js +5 -1
  136. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js.map +1 -1
  137. package/build/lib/web/production/components/Input/TextArea/TextArea.js +5 -1
  138. package/build/lib/web/production/components/Input/TextArea/TextArea.js.map +1 -1
  139. package/build/lib/web/production/components/Input/TextInput/TextInput.js +5 -1
  140. package/build/lib/web/production/components/Input/TextInput/TextInput.js.map +1 -1
  141. package/build/lib/web/production/components/Modal/Modal.web.js +6 -7
  142. package/build/lib/web/production/components/Modal/Modal.web.js.map +1 -1
  143. package/build/lib/web/production/components/Preview/Preview.web.js +8 -7
  144. package/build/lib/web/production/components/Preview/Preview.web.js.map +1 -1
  145. package/build/lib/web/production/components/QuickFilters/QuickFilter.js +9 -7
  146. package/build/lib/web/production/components/QuickFilters/QuickFilter.js.map +1 -1
  147. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js +12 -2
  148. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  149. package/build/lib/web/production/components/Table/Table.web.js +6 -3
  150. package/build/lib/web/production/components/Table/Table.web.js.map +1 -1
  151. package/build/lib/web/production/components/Table/TableBody.web.js +5 -3
  152. package/build/lib/web/production/components/Table/TableBody.web.js.map +1 -1
  153. package/build/lib/web/production/components/Table/TableHeader.web.js +4 -2
  154. package/build/lib/web/production/components/Table/TableHeader.web.js.map +1 -1
  155. package/build/lib/web/production/components/Table/TablePagination.web.js +12 -6
  156. package/build/lib/web/production/components/Table/TablePagination.web.js.map +1 -1
  157. package/build/lib/web/production/components/Table/TableToolbar.web.js +5 -8
  158. package/build/lib/web/production/components/Table/TableToolbar.web.js.map +1 -1
  159. package/build/lib/web/production/components/Toast/Toast.web.js +2 -0
  160. package/build/lib/web/production/components/Toast/Toast.web.js.map +1 -1
  161. package/build/lib/web/production/utils/makeAnalyticsAttribute/index.js +1 -0
  162. package/build/lib/web/production/utils/makeAnalyticsAttribute/index.js.map +1 -1
  163. package/build/lib/web/production/utils/makeAnalyticsAttribute/makeAnalyticsConstants.js +32 -0
  164. package/build/lib/web/production/utils/makeAnalyticsAttribute/makeAnalyticsConstants.js.map +1 -0
  165. package/build/types/components/index.d.ts +29 -8
  166. package/build/types/components/index.native.d.ts +26 -7
  167. package/package.json +1 -1
@@ -15125,6 +15125,25 @@ type FormInputLabelProps = {
15125
15125
  * Displays `(optional)` when `optional` is passed or `*` when `required` is passed
15126
15126
  */
15127
15127
  necessityIndicator?: 'required' | 'optional' | 'none';
15128
+ /**
15129
+ * Suffix element to be shown for the input field
15130
+ *
15131
+ * @example
15132
+ * ```jsx
15133
+ * labelSuffix={
15134
+ * <Tooltip content="This is a tooltip" placement="right">
15135
+ * <TooltipInteractiveWrapper>
15136
+ * <InfoIcon size="small" color="surface.icon.gray.subtle" />
15137
+ * </TooltipInteractiveWrapper>
15138
+ * </Tooltip>
15139
+ * }
15140
+ * ```
15141
+ */
15142
+ labelSuffix?: React__default.ReactNode;
15143
+ /**
15144
+ * Trailing element to be shown for the input field
15145
+ */
15146
+ labelTrailing?: React__default.ReactNode;
15128
15147
  };
15129
15148
 
15130
15149
  type FormInputOnEvent = ({ name, value, rawValue, }: {
@@ -15507,7 +15526,7 @@ type TaggedInputProps = {
15507
15526
  };
15508
15527
 
15509
15528
  type Type = Exclude<BaseInputProps['type'], 'password'>;
15510
- type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | 'leadingIcon' | 'trailingButton' | 'trailingIcon' | 'textAlign' | keyof DataAnalyticsAttribute> & {
15529
+ type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | 'leadingIcon' | 'trailingButton' | 'trailingIcon' | 'textAlign' | keyof DataAnalyticsAttribute> & {
15511
15530
  /**
15512
15531
  * Decides whether to render a clear icon button
15513
15532
  */
@@ -15750,7 +15769,7 @@ type DatePickerCommonInputProps = {
15750
15769
  labelPosition?: BaseInputProps['labelPosition'];
15751
15770
  inputRef: React.Ref<any>;
15752
15771
  referenceProps: any;
15753
- } & Pick<TextInputProps, 'size' | 'isRequired' | 'necessityIndicator' | 'autoFocus' | 'isDisabled' | 'accessibilityLabel'> & FormInputValidationProps;
15772
+ } & Pick<TextInputProps, 'size' | 'isRequired' | 'necessityIndicator' | 'autoFocus' | 'isDisabled' | 'accessibilityLabel' | 'labelSuffix' | 'labelTrailing'> & FormInputValidationProps;
15754
15773
  type FilterChipDatePickerProps = Omit<DatePickerProps<'single' | 'range'>, 'label'> & {
15755
15774
  /**
15756
15775
  * Sets the label for the input element.
@@ -19001,7 +19020,7 @@ type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
19001
19020
  value?: string;
19002
19021
  inputIndex: number;
19003
19022
  }) => void;
19004
- type OTPInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
19023
+ type OTPInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
19005
19024
  /**
19006
19025
  * Determines the number of input fields to show for the OTP
19007
19026
  * @default 6
@@ -19091,7 +19110,7 @@ type PasswordInputExtraProps = {
19091
19110
  */
19092
19111
  autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'password' | 'newPassword'>;
19093
19112
  };
19094
- type PasswordInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onSubmit' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & PasswordInputExtraProps & StyledPropsBlade;
19113
+ type PasswordInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onSubmit' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & PasswordInputExtraProps & StyledPropsBlade;
19095
19114
  type PasswordInputPropsWithA11yLabel = {
19096
19115
  /**
19097
19116
  * Label to be shown for the input field
@@ -19115,7 +19134,7 @@ type PasswordInputPropsWithLabel = {
19115
19134
  type PasswordInputProps = (PasswordInputPropsWithA11yLabel | PasswordInputPropsWithLabel) & PasswordInputCommonProps;
19116
19135
  declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<BladeElementRef>>;
19117
19136
 
19118
- type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
19137
+ type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
19119
19138
  /**
19120
19139
  * Decides whether to render a clear icon button
19121
19140
  */
@@ -19153,7 +19172,7 @@ type TextAreaPropsWithLabel = {
19153
19172
  type TextAreaProps = (TextAreaPropsWithA11yLabel | TextAreaPropsWithLabel) & TextAreaCommonProps;
19154
19173
  declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<BladeElementRef>>;
19155
19174
 
19156
- type SearchInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'helpText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'autoFocus' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | keyof DataAnalyticsAttribute> & {
19175
+ type SearchInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'helpText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'autoFocus' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | keyof DataAnalyticsAttribute> & {
19157
19176
  /**
19158
19177
  * Event handler to handle the onClick event for clear button.
19159
19178
  */
@@ -19783,6 +19802,8 @@ declare const PhoneNumberInput: React__default.ForwardRefExoticComponent<Partial
19783
19802
  errorText?: string | undefined;
19784
19803
  successText?: string | undefined;
19785
19804
  necessityIndicator?: "none" | "required" | "optional" | undefined;
19805
+ labelSuffix?: React__default.ReactNode;
19806
+ labelTrailing?: React__default.ReactNode;
19786
19807
  helpText?: string | undefined;
19787
19808
  isRequired?: boolean | undefined;
19788
19809
  keyboardReturnKeyType?: "search" | "default" | "next" | "done" | "go" | "previous" | "send" | undefined;
@@ -19808,7 +19829,7 @@ declare const PhoneNumberInput: React__default.ForwardRefExoticComponent<Partial
19808
19829
  onClearButtonClick?: (() => void) | undefined;
19809
19830
  } & React__default.RefAttributes<BladeElementRef>>;
19810
19831
 
19811
- type CommonProps = Pick<BaseInputProps, 'size' | 'label' | 'labelPosition' | 'name' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'defaultValue' | 'necessityIndicator' | 'isRequired' | 'isDisabled' | 'onFocus' | 'onBlur' | 'onClick' | 'leadingIcon' | 'trailingIcon' | 'accessibilityLabel' | 'autoFocus' | 'testID' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'placeholder' | keyof DataAnalyticsAttribute>;
19832
+ type CommonProps = Pick<BaseInputProps, 'size' | 'label' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'name' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'defaultValue' | 'necessityIndicator' | 'isRequired' | 'isDisabled' | 'onFocus' | 'onBlur' | 'onClick' | 'leadingIcon' | 'trailingIcon' | 'accessibilityLabel' | 'autoFocus' | 'testID' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'placeholder' | keyof DataAnalyticsAttribute>;
19812
19833
  type PhoneNumberInputProps = StyledPropsBlade & CommonProps & {
19813
19834
  /**
19814
19835
  * Default value of the input, Used to set the default value of input field when it's uncontrolled
@@ -25905,7 +25926,7 @@ declare const TableFooterCell: ({ children, textAlign, ...rest }: TableFooterCel
25905
25926
  declare const TablePagination: ({ currentPage: controlledCurrentPage, onPageChange, onPageSizeChange, defaultPageSize, showPageSizePicker, showPageNumberSelector, showLabel, label, totalItemCount, paginationType, ...rest }: TablePaginationProps) => React__default.ReactElement;
25906
25927
 
25907
25928
  declare const TableToolbarActions: ({ children, ...rest }: TableToolbarActionsProps) => React__default.ReactElement;
25908
- declare const TableToolbar: ({ children, title, selectedTitle: controlledSelectedTitle, ...rest }: TableToolbarProps) => React__default.ReactElement;
25929
+ declare const TableToolbar: ({ children, title, selectedTitle: controlledSelectedTitle, }: TableToolbarProps) => React__default.ReactElement;
25909
25930
 
25910
25931
  declare const TableEditableDropdownCell: (dropdownProps: TableEditableDropdownCellProps) => React.ReactElement;
25911
25932
  declare const TableEditableCell: ({ validationState, accessibilityLabel, autoCapitalize, autoCompleteSuggestionType, autoFocus, defaultValue, isDisabled, isRequired, keyboardReturnKeyType, leadingIcon, maxCharacters, name, onBlur, onChange, onClick, onFocus, onSubmit, placeholder, prefix, suffix, value, testID, trailingButton, errorText, successText, inputType, }: TableEditableCellProps) => React.ReactElement;
@@ -9881,6 +9881,25 @@ type FormInputLabelProps = {
9881
9881
  * Displays `(optional)` when `optional` is passed or `*` when `required` is passed
9882
9882
  */
9883
9883
  necessityIndicator?: 'required' | 'optional' | 'none';
9884
+ /**
9885
+ * Suffix element to be shown for the input field
9886
+ *
9887
+ * @example
9888
+ * ```jsx
9889
+ * labelSuffix={
9890
+ * <Tooltip content="This is a tooltip" placement="right">
9891
+ * <TooltipInteractiveWrapper>
9892
+ * <InfoIcon size="small" color="surface.icon.gray.subtle" />
9893
+ * </TooltipInteractiveWrapper>
9894
+ * </Tooltip>
9895
+ * }
9896
+ * ```
9897
+ */
9898
+ labelSuffix?: React__default.ReactNode;
9899
+ /**
9900
+ * Trailing element to be shown for the input field
9901
+ */
9902
+ labelTrailing?: React__default.ReactNode;
9884
9903
  };
9885
9904
 
9886
9905
  type FormInputOnEvent = ({ name, value, rawValue, }: {
@@ -10263,7 +10282,7 @@ type TaggedInputProps = {
10263
10282
  };
10264
10283
 
10265
10284
  type Type = Exclude<BaseInputProps['type'], 'password'>;
10266
- type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | 'leadingIcon' | 'trailingButton' | 'trailingIcon' | 'textAlign' | keyof DataAnalyticsAttribute> & {
10285
+ type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | 'leadingIcon' | 'trailingButton' | 'trailingIcon' | 'textAlign' | keyof DataAnalyticsAttribute> & {
10267
10286
  /**
10268
10287
  * Decides whether to render a clear icon button
10269
10288
  */
@@ -10506,7 +10525,7 @@ type DatePickerCommonInputProps = {
10506
10525
  labelPosition?: BaseInputProps['labelPosition'];
10507
10526
  inputRef: React.Ref<any>;
10508
10527
  referenceProps: any;
10509
- } & Pick<TextInputProps, 'size' | 'isRequired' | 'necessityIndicator' | 'autoFocus' | 'isDisabled' | 'accessibilityLabel'> & FormInputValidationProps;
10528
+ } & Pick<TextInputProps, 'size' | 'isRequired' | 'necessityIndicator' | 'autoFocus' | 'isDisabled' | 'accessibilityLabel' | 'labelSuffix' | 'labelTrailing'> & FormInputValidationProps;
10510
10529
 
10511
10530
  declare const Dropdown: React__default.ForwardRefExoticComponent<{
10512
10531
  isOpen?: boolean | undefined;
@@ -11857,7 +11876,7 @@ type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
11857
11876
  value?: string;
11858
11877
  inputIndex: number;
11859
11878
  }) => void;
11860
- type OTPInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
11879
+ type OTPInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
11861
11880
  /**
11862
11881
  * Determines the number of input fields to show for the OTP
11863
11882
  * @default 6
@@ -11947,7 +11966,7 @@ type PasswordInputExtraProps = {
11947
11966
  */
11948
11967
  autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'password' | 'newPassword'>;
11949
11968
  };
11950
- type PasswordInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onSubmit' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & PasswordInputExtraProps & StyledPropsBlade;
11969
+ type PasswordInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onSubmit' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & PasswordInputExtraProps & StyledPropsBlade;
11951
11970
  type PasswordInputPropsWithA11yLabel = {
11952
11971
  /**
11953
11972
  * Label to be shown for the input field
@@ -11971,7 +11990,7 @@ type PasswordInputPropsWithLabel = {
11971
11990
  type PasswordInputProps = (PasswordInputPropsWithA11yLabel | PasswordInputPropsWithLabel) & PasswordInputCommonProps;
11972
11991
  declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<BladeElementRef>>;
11973
11992
 
11974
- type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
11993
+ type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID' | 'size' | keyof DataAnalyticsAttribute> & {
11975
11994
  /**
11976
11995
  * Decides whether to render a clear icon button
11977
11996
  */
@@ -12009,7 +12028,7 @@ type TextAreaPropsWithLabel = {
12009
12028
  type TextAreaProps = (TextAreaPropsWithA11yLabel | TextAreaPropsWithLabel) & TextAreaCommonProps;
12010
12029
  declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<BladeElementRef>>;
12011
12030
 
12012
- type SearchInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'helpText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'autoFocus' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | keyof DataAnalyticsAttribute> & {
12031
+ type SearchInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'helpText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'autoFocus' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | keyof DataAnalyticsAttribute> & {
12013
12032
  /**
12014
12033
  * Event handler to handle the onClick event for clear button.
12015
12034
  */
@@ -12052,7 +12071,7 @@ type SearchInputPropsWithLabel = {
12052
12071
  type SearchInputProps = (SearchInputPropsWithA11yLabel | SearchInputPropsWithLabel) & SearchInputCommonProps;
12053
12072
  declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<BladeElementRef>>;
12054
12073
 
12055
- type CommonProps = Pick<BaseInputProps, 'size' | 'label' | 'labelPosition' | 'name' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'defaultValue' | 'necessityIndicator' | 'isRequired' | 'isDisabled' | 'onFocus' | 'onBlur' | 'onClick' | 'leadingIcon' | 'trailingIcon' | 'accessibilityLabel' | 'autoFocus' | 'testID' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'placeholder' | keyof DataAnalyticsAttribute>;
12074
+ type CommonProps = Pick<BaseInputProps, 'size' | 'label' | 'labelPosition' | 'labelSuffix' | 'labelTrailing' | 'name' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'defaultValue' | 'necessityIndicator' | 'isRequired' | 'isDisabled' | 'onFocus' | 'onBlur' | 'onClick' | 'leadingIcon' | 'trailingIcon' | 'accessibilityLabel' | 'autoFocus' | 'testID' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'placeholder' | keyof DataAnalyticsAttribute>;
12056
12075
  type PhoneNumberInputProps = StyledPropsBlade & CommonProps & {
12057
12076
  /**
12058
12077
  * Default value of the input, Used to set the default value of input field when it's uncontrolled
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.38.0",
4
+ "version": "12.40.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"