@razorpay/blade 11.8.2 → 11.9.1

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 (230) hide show
  1. package/build/lib/native/components/Checkbox/Checkbox.js +4 -3
  2. package/build/lib/native/components/Checkbox/Checkbox.js.map +1 -1
  3. package/build/lib/native/components/Checkbox/CheckboxGroup/CheckboxGroup.js +1 -1
  4. package/build/lib/native/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  5. package/build/lib/native/components/Checkbox/CheckboxIcon/CheckboxIcon.js +1 -1
  6. package/build/lib/native/components/Checkbox/CheckboxIcon/CheckboxIcon.js.map +1 -1
  7. package/build/lib/native/components/Checkbox/checkboxTokens.js +1 -1
  8. package/build/lib/native/components/Checkbox/checkboxTokens.js.map +1 -1
  9. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js +2 -1
  10. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  11. package/build/lib/native/components/Form/FormHint.js +2 -1
  12. package/build/lib/native/components/Form/FormHint.js.map +1 -1
  13. package/build/lib/native/components/Form/FormLabel.js +3 -1
  14. package/build/lib/native/components/Form/FormLabel.js.map +1 -1
  15. package/build/lib/native/components/Form/Selector/SelectorSupportText.js +1 -1
  16. package/build/lib/native/components/Form/Selector/SelectorSupportText.js.map +1 -1
  17. package/build/lib/native/components/Form/Selector/SelectorTitle.js.map +1 -1
  18. package/build/lib/native/components/Form/formTokens.js +8 -0
  19. package/build/lib/native/components/Form/formTokens.js.map +1 -0
  20. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js +5 -3
  21. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js.map +1 -1
  22. package/build/lib/native/components/Input/BaseInput/BaseInput.js +8 -2
  23. package/build/lib/native/components/Input/BaseInput/BaseInput.js.map +1 -1
  24. package/build/lib/native/components/Input/BaseInput/BaseInputTagSlot.native.js +2 -2
  25. package/build/lib/native/components/Input/BaseInput/BaseInputTagSlot.native.js.map +1 -1
  26. package/build/lib/native/components/Input/BaseInput/BaseInputVisuals.js +4 -2
  27. package/build/lib/native/components/Input/BaseInput/BaseInputVisuals.js.map +1 -1
  28. package/build/lib/native/components/Input/BaseInput/BaseInputWrapper.js +2 -3
  29. package/build/lib/native/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  30. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js +2 -1
  31. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js.map +1 -1
  32. package/build/lib/native/components/Input/BaseInput/baseInputStyles.js +6 -3
  33. package/build/lib/native/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  34. package/build/lib/native/components/Input/BaseInput/baseInputTokens.js +8 -0
  35. package/build/lib/native/components/Input/BaseInput/baseInputTokens.js.map +1 -0
  36. package/build/lib/native/components/Input/BaseInput/getBaseInputBorderStyles.native.js +4 -0
  37. package/build/lib/native/components/Input/BaseInput/getBaseInputBorderStyles.native.js.map +1 -0
  38. package/build/lib/native/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +1 -1
  39. package/build/lib/native/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  40. package/build/lib/native/components/Input/OTPInput/OTPInput.js +1 -1
  41. package/build/lib/native/components/Input/OTPInput/OTPInput.js.map +1 -1
  42. package/build/lib/native/components/Input/PasswordInput/PasswordInput.js +1 -1
  43. package/build/lib/native/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  44. package/build/lib/native/components/Input/TextArea/TextArea.js +2 -1
  45. package/build/lib/native/components/Input/TextArea/TextArea.js.map +1 -1
  46. package/build/lib/native/components/Input/TextInput/TextInput.js +2 -1
  47. package/build/lib/native/components/Input/TextInput/TextInput.js.map +1 -1
  48. package/build/lib/native/components/Radio/Radio.js +4 -3
  49. package/build/lib/native/components/Radio/Radio.js.map +1 -1
  50. package/build/lib/native/components/Radio/RadioGroup/RadioGroup.js +1 -1
  51. package/build/lib/native/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  52. package/build/lib/native/components/Radio/radioTokens.js +1 -1
  53. package/build/lib/native/components/Radio/radioTokens.js.map +1 -1
  54. package/build/lib/native/components/Tag/Tag.js +1 -1
  55. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  56. package/build/lib/native/components/Tag/getTagsGroup.js +1 -1
  57. package/build/lib/native/components/Tag/getTagsGroup.js.map +1 -1
  58. package/build/lib/native/components/Typography/Heading/Heading.js +2 -2
  59. package/build/lib/native/components/Typography/Heading/Heading.js.map +1 -1
  60. package/build/lib/native/components/Typography/Heading/getHeadingStyles.js +7 -0
  61. package/build/lib/native/components/Typography/Heading/getHeadingStyles.js.map +1 -0
  62. package/build/lib/native/components/Typography/Text/Text.js +1 -1
  63. package/build/lib/native/components/Typography/Text/Text.js.map +1 -1
  64. package/build/lib/native/components/index.js +1 -1
  65. package/build/lib/native/tokens/global/size.js +1 -1
  66. package/build/lib/native/tokens/global/size.js.map +1 -1
  67. package/build/lib/native/utils/getFocusRingStyles/getFocusRingStyles.native.js.map +1 -1
  68. package/build/lib/web/development/components/Checkbox/Checkbox.js +17 -3
  69. package/build/lib/web/development/components/Checkbox/Checkbox.js.map +1 -1
  70. package/build/lib/web/development/components/Checkbox/CheckboxGroup/CheckboxGroup.js +2 -0
  71. package/build/lib/web/development/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  72. package/build/lib/web/development/components/Checkbox/CheckboxIcon/CheckboxIcon.js +4 -0
  73. package/build/lib/web/development/components/Checkbox/CheckboxIcon/CheckboxIcon.js.map +1 -1
  74. package/build/lib/web/development/components/Checkbox/checkboxTokens.js +12 -4
  75. package/build/lib/web/development/components/Checkbox/checkboxTokens.js.map +1 -1
  76. package/build/lib/web/development/components/Form/CharacterCounter/CharacterCounter.js +5 -1
  77. package/build/lib/web/development/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  78. package/build/lib/web/development/components/Form/FormHint.js +34 -17
  79. package/build/lib/web/development/components/Form/FormHint.js.map +1 -1
  80. package/build/lib/web/development/components/Form/FormLabel.js +10 -7
  81. package/build/lib/web/development/components/Form/FormLabel.js.map +1 -1
  82. package/build/lib/web/development/components/Form/Selector/SelectorSupportText.js +8 -2
  83. package/build/lib/web/development/components/Form/Selector/SelectorSupportText.js.map +1 -1
  84. package/build/lib/web/development/components/Form/Selector/SelectorTitle.js.map +1 -1
  85. package/build/lib/web/development/components/Form/formTokens.js +53 -0
  86. package/build/lib/web/development/components/Form/formTokens.js.map +1 -0
  87. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +23 -37
  88. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  89. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +200 -155
  90. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  91. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js +4 -3
  92. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  93. package/build/lib/web/development/components/Input/BaseInput/BaseInputVisuals.js +101 -34
  94. package/build/lib/web/development/components/Input/BaseInput/BaseInputVisuals.js.map +1 -1
  95. package/build/lib/web/development/components/Input/BaseInput/BaseInputWrapper.js +3 -7
  96. package/build/lib/web/development/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  97. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js +14 -5
  98. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  99. package/build/lib/web/development/components/Input/BaseInput/baseInputStyles.js +119 -67
  100. package/build/lib/web/development/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  101. package/build/lib/web/development/components/Input/BaseInput/baseInputTokens.js +88 -0
  102. package/build/lib/web/development/components/Input/BaseInput/baseInputTokens.js.map +1 -0
  103. package/build/lib/web/development/components/Input/BaseInput/getBaseInputBorderStyles.web.js +23 -0
  104. package/build/lib/web/development/components/Input/BaseInput/getBaseInputBorderStyles.web.js.map +1 -0
  105. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +11 -6
  106. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  107. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js +9 -3
  108. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js.map +1 -1
  109. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js +5 -2
  110. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  111. package/build/lib/web/development/components/Input/TextArea/TextArea.js +7 -3
  112. package/build/lib/web/development/components/Input/TextArea/TextArea.js.map +1 -1
  113. package/build/lib/web/development/components/Input/TextInput/TextInput.js +17 -6
  114. package/build/lib/web/development/components/Input/TextInput/TextInput.js.map +1 -1
  115. package/build/lib/web/development/components/Radio/Radio.js +10 -3
  116. package/build/lib/web/development/components/Radio/Radio.js.map +1 -1
  117. package/build/lib/web/development/components/Radio/RadioGroup/RadioGroup.js +2 -0
  118. package/build/lib/web/development/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  119. package/build/lib/web/development/components/Radio/radioTokens.js +13 -4
  120. package/build/lib/web/development/components/Radio/radioTokens.js.map +1 -1
  121. package/build/lib/web/development/components/Table/TableBody.web.js +3 -0
  122. package/build/lib/web/development/components/Table/TableBody.web.js.map +1 -1
  123. package/build/lib/web/development/components/Tag/AnimatedTag.web.js +4 -1
  124. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  125. package/build/lib/web/development/components/Tag/Tag.js +2 -2
  126. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  127. package/build/lib/web/development/components/Tag/getTagsGroup.js +4 -1
  128. package/build/lib/web/development/components/Tag/getTagsGroup.js.map +1 -1
  129. package/build/lib/web/development/components/Typography/Heading/Heading.js +3 -3
  130. package/build/lib/web/development/components/Typography/Heading/Heading.js.map +1 -1
  131. package/build/lib/web/development/components/Typography/Heading/getHeadingStyles.js +22 -0
  132. package/build/lib/web/development/components/Typography/Heading/getHeadingStyles.js.map +1 -0
  133. package/build/lib/web/development/components/Typography/Heading/index.js +1 -1
  134. package/build/lib/web/development/components/Typography/Text/Text.js +8 -3
  135. package/build/lib/web/development/components/Typography/Text/Text.js.map +1 -1
  136. package/build/lib/web/development/components/index.js +1 -1
  137. package/build/lib/web/development/tokens/global/size.js +2 -0
  138. package/build/lib/web/development/tokens/global/size.js.map +1 -1
  139. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js +1 -0
  140. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
  141. package/build/lib/web/production/components/Checkbox/Checkbox.js +17 -3
  142. package/build/lib/web/production/components/Checkbox/Checkbox.js.map +1 -1
  143. package/build/lib/web/production/components/Checkbox/CheckboxGroup/CheckboxGroup.js +2 -0
  144. package/build/lib/web/production/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  145. package/build/lib/web/production/components/Checkbox/CheckboxIcon/CheckboxIcon.js +4 -0
  146. package/build/lib/web/production/components/Checkbox/CheckboxIcon/CheckboxIcon.js.map +1 -1
  147. package/build/lib/web/production/components/Checkbox/checkboxTokens.js +12 -4
  148. package/build/lib/web/production/components/Checkbox/checkboxTokens.js.map +1 -1
  149. package/build/lib/web/production/components/Form/CharacterCounter/CharacterCounter.js +5 -1
  150. package/build/lib/web/production/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  151. package/build/lib/web/production/components/Form/FormHint.js +34 -17
  152. package/build/lib/web/production/components/Form/FormHint.js.map +1 -1
  153. package/build/lib/web/production/components/Form/FormLabel.js +10 -7
  154. package/build/lib/web/production/components/Form/FormLabel.js.map +1 -1
  155. package/build/lib/web/production/components/Form/Selector/SelectorSupportText.js +8 -2
  156. package/build/lib/web/production/components/Form/Selector/SelectorSupportText.js.map +1 -1
  157. package/build/lib/web/production/components/Form/Selector/SelectorTitle.js.map +1 -1
  158. package/build/lib/web/production/components/Form/formTokens.js +53 -0
  159. package/build/lib/web/production/components/Form/formTokens.js.map +1 -0
  160. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +23 -37
  161. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  162. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +200 -155
  163. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  164. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js +4 -3
  165. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  166. package/build/lib/web/production/components/Input/BaseInput/BaseInputVisuals.js +101 -34
  167. package/build/lib/web/production/components/Input/BaseInput/BaseInputVisuals.js.map +1 -1
  168. package/build/lib/web/production/components/Input/BaseInput/BaseInputWrapper.js +3 -7
  169. package/build/lib/web/production/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  170. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js +14 -5
  171. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  172. package/build/lib/web/production/components/Input/BaseInput/baseInputStyles.js +119 -67
  173. package/build/lib/web/production/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  174. package/build/lib/web/production/components/Input/BaseInput/baseInputTokens.js +88 -0
  175. package/build/lib/web/production/components/Input/BaseInput/baseInputTokens.js.map +1 -0
  176. package/build/lib/web/production/components/Input/BaseInput/getBaseInputBorderStyles.web.js +23 -0
  177. package/build/lib/web/production/components/Input/BaseInput/getBaseInputBorderStyles.web.js.map +1 -0
  178. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +11 -6
  179. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  180. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js +9 -3
  181. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js.map +1 -1
  182. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js +5 -2
  183. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  184. package/build/lib/web/production/components/Input/TextArea/TextArea.js +7 -3
  185. package/build/lib/web/production/components/Input/TextArea/TextArea.js.map +1 -1
  186. package/build/lib/web/production/components/Input/TextInput/TextInput.js +17 -6
  187. package/build/lib/web/production/components/Input/TextInput/TextInput.js.map +1 -1
  188. package/build/lib/web/production/components/Radio/Radio.js +10 -3
  189. package/build/lib/web/production/components/Radio/Radio.js.map +1 -1
  190. package/build/lib/web/production/components/Radio/RadioGroup/RadioGroup.js +2 -0
  191. package/build/lib/web/production/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  192. package/build/lib/web/production/components/Radio/radioTokens.js +13 -4
  193. package/build/lib/web/production/components/Radio/radioTokens.js.map +1 -1
  194. package/build/lib/web/production/components/Table/TableBody.web.js +3 -0
  195. package/build/lib/web/production/components/Table/TableBody.web.js.map +1 -1
  196. package/build/lib/web/production/components/Tag/AnimatedTag.web.js +4 -1
  197. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  198. package/build/lib/web/production/components/Tag/Tag.js +2 -2
  199. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  200. package/build/lib/web/production/components/Tag/getTagsGroup.js +4 -1
  201. package/build/lib/web/production/components/Tag/getTagsGroup.js.map +1 -1
  202. package/build/lib/web/production/components/Typography/Heading/Heading.js +3 -3
  203. package/build/lib/web/production/components/Typography/Heading/Heading.js.map +1 -1
  204. package/build/lib/web/production/components/Typography/Heading/getHeadingStyles.js +22 -0
  205. package/build/lib/web/production/components/Typography/Heading/getHeadingStyles.js.map +1 -0
  206. package/build/lib/web/production/components/Typography/Heading/index.js +1 -1
  207. package/build/lib/web/production/components/Typography/Text/Text.js +8 -3
  208. package/build/lib/web/production/components/Typography/Text/Text.js.map +1 -1
  209. package/build/lib/web/production/components/index.js +1 -1
  210. package/build/lib/web/production/tokens/global/size.js +2 -0
  211. package/build/lib/web/production/tokens/global/size.js.map +1 -1
  212. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js +1 -0
  213. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
  214. package/build/types/components/index.d.ts +36 -15
  215. package/build/types/components/index.native.d.ts +36 -15
  216. package/build/types/tokens/index.d.ts +2 -0
  217. package/build/types/tokens/index.native.d.ts +2 -0
  218. package/package.json +1 -1
  219. package/build/lib/native/components/Input/BaseInput/BaseInputAnimatedBorder.native.js +0 -16
  220. package/build/lib/native/components/Input/BaseInput/BaseInputAnimatedBorder.native.js.map +0 -1
  221. package/build/lib/native/components/Input/BaseInput/baseInputConfig.js +0 -8
  222. package/build/lib/native/components/Input/BaseInput/baseInputConfig.js.map +0 -1
  223. package/build/lib/web/development/components/Input/BaseInput/BaseInputAnimatedBorder.web.js +0 -43
  224. package/build/lib/web/development/components/Input/BaseInput/BaseInputAnimatedBorder.web.js.map +0 -1
  225. package/build/lib/web/development/components/Input/BaseInput/baseInputConfig.js +0 -26
  226. package/build/lib/web/development/components/Input/BaseInput/baseInputConfig.js.map +0 -1
  227. package/build/lib/web/production/components/Input/BaseInput/BaseInputAnimatedBorder.web.js +0 -43
  228. package/build/lib/web/production/components/Input/BaseInput/BaseInputAnimatedBorder.web.js.map +0 -1
  229. package/build/lib/web/production/components/Input/BaseInput/baseInputConfig.js +0 -26
  230. package/build/lib/web/production/components/Input/BaseInput/baseInputConfig.js.map +0 -1
@@ -3656,6 +3656,7 @@ type HeadingProps = {
3656
3656
  textDecorationLine?: BaseTextProps['textDecorationLine'];
3657
3657
  size?: Extract<BaseTextSizes, 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge'>;
3658
3658
  } & TestID & StyledPropsBlade;
3659
+ declare const getHeadingProps: ({ as, size, weight, color, testID, }: Pick<HeadingProps, 'as' | 'size' | 'weight' | 'color' | 'testID'>) => Omit<BaseTextProps, 'children'>;
3659
3660
  declare const Heading: ({ as, size, weight, color, children, testID, textAlign, textDecorationLine, ...styledProps }: HeadingProps) => ReactElement;
3660
3661
 
3661
3662
  declare const validAsValues$1: readonly ["p", "span", "div", "abbr", "figcaption", "cite", "q", "label"];
@@ -3681,7 +3682,7 @@ type TextBodyVariant = TextCommonProps & {
3681
3682
  };
3682
3683
  type TextCaptionVariant = TextCommonProps & {
3683
3684
  variant?: Extract<TextVariant, 'caption'>;
3684
- size?: Extract<BaseTextSizes, 'small'>;
3685
+ size?: Extract<BaseTextSizes, 'small' | 'medium'>;
3685
3686
  };
3686
3687
  /**
3687
3688
  * Conditionally changing props based on variant.
@@ -4052,7 +4053,7 @@ type CheckboxProps = {
4052
4053
  *
4053
4054
  * @default "medium"
4054
4055
  */
4055
- size?: 'small' | 'medium';
4056
+ size?: 'small' | 'medium' | 'large';
4056
4057
  /**
4057
4058
  * Sets the tab-index property on checkbox element
4058
4059
  *
@@ -4131,7 +4132,7 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
4131
4132
  *
4132
4133
  * @default "medium"
4133
4134
  */
4134
- size?: "small" | "medium" | undefined;
4135
+ size?: "small" | "medium" | "large" | undefined;
4135
4136
  /**
4136
4137
  * Sets the tab-index property on checkbox element
4137
4138
  *
@@ -4374,7 +4375,7 @@ type CheckboxGroupProps = {
4374
4375
  *
4375
4376
  * @default "medium"
4376
4377
  */
4377
- size?: 'small' | 'medium';
4378
+ size?: 'small' | 'medium' | 'large';
4378
4379
  } & TestID & StyledPropsBlade;
4379
4380
  declare const CheckboxGroup: ({ children, label, helpText, isDisabled, isRequired, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: CheckboxGroupProps) => React__default.ReactElement;
4380
4381
 
@@ -5299,6 +5300,25 @@ type BaseInputCommonProps = FormInputLabelProps & FormInputValidationProps & {
5299
5300
  * State setter for active tag index
5300
5301
  */
5301
5302
  setActiveTagIndex?: (activeTagIndex: number) => void;
5303
+ /**
5304
+ * Sets the size of the input field
5305
+ * @default medium
5306
+ */
5307
+ size?: 'medium' | 'large';
5308
+ /**
5309
+ * Link button to be rendered at the end of the input field.
5310
+ * **Note:** `size` of the Link will be set to the same size as the input field, `isDisabled` will follow Input's `isDisabled`, & `variant` will be set to `button`.
5311
+ * Example:
5312
+ * ```tsx
5313
+ * trailingButton={<Link onClick={handleClick}>Apply</Link>}
5314
+ * ```
5315
+ */
5316
+ trailingButton?: React__default.ReactElement<LinkProps>;
5317
+ /**
5318
+ * Whether to use Text or Heading component for Input text
5319
+ * @default text
5320
+ **/
5321
+ valueComponentType?: 'text' | 'heading';
5302
5322
  } & TestID & Platform.Select<{
5303
5323
  native: {
5304
5324
  /**
@@ -5390,7 +5410,7 @@ declare const SelectInput: React__default.ForwardRefExoticComponent<(({
5390
5410
  } | {
5391
5411
  label: string;
5392
5412
  accessibilityLabel?: string | undefined;
5393
- }) & Pick<BaseInputProps, "name" | "label" | "testID" | "prefix" | "placeholder" | "accessibilityLabel" | "onBlur" | "onFocus" | "onClick" | "autoFocus" | "isDisabled" | "isRequired" | "validationState" | "necessityIndicator" | "helpText" | "errorText" | "successText" | "suffix"> & {
5413
+ }) & Pick<BaseInputProps, "name" | "label" | "testID" | "prefix" | "size" | "placeholder" | "accessibilityLabel" | "onBlur" | "onFocus" | "onClick" | "autoFocus" | "isDisabled" | "isRequired" | "validationState" | "necessityIndicator" | "helpText" | "errorText" | "successText" | "suffix"> & {
5394
5414
  icon?: IconComponent | undefined;
5395
5415
  value?: string | string[] | undefined;
5396
5416
  defaultValue?: string | string[] | undefined;
@@ -5449,7 +5469,7 @@ declare const SelectInput: React__default.ForwardRefExoticComponent<(({
5449
5469
  *
5450
5470
  * Checkout {@link https://blade.razorpay.com/?path=/docs/components-dropdown-with-autocomplete--with-single-select AutoComplete Documentation}.
5451
5471
  */
5452
- declare const AutoComplete: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "name" | "label" | "testID" | "prefix" | "placeholder" | "accessibilityLabel" | "onBlur" | "onFocus" | "onClick" | "autoFocus" | "isDisabled" | "isRequired" | "validationState" | "necessityIndicator" | "helpText" | "errorText" | "successText" | "suffix"> & {
5472
+ declare const AutoComplete: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "name" | "label" | "testID" | "prefix" | "size" | "placeholder" | "accessibilityLabel" | "onBlur" | "onFocus" | "onClick" | "autoFocus" | "isDisabled" | "isRequired" | "validationState" | "necessityIndicator" | "helpText" | "errorText" | "successText" | "suffix"> & {
5453
5473
  icon?: IconComponent | undefined;
5454
5474
  value?: string | string[] | undefined;
5455
5475
  defaultValue?: string | string[] | undefined;
@@ -5466,7 +5486,7 @@ declare const AutoComplete: React__default.ForwardRefExoticComponent<Pick<BaseIn
5466
5486
  filteredValues?: string[] | undefined;
5467
5487
  } & React__default.RefAttributes<BladeElementRef>>;
5468
5488
 
5469
- type DropdownInputTriggersCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'autoFocus' | 'onClick' | 'onFocus' | 'onBlur' | 'placeholder' | 'testID'> & {
5489
+ type DropdownInputTriggersCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'autoFocus' | 'onClick' | 'onFocus' | 'onBlur' | 'placeholder' | 'testID' | 'size'> & {
5470
5490
  icon?: IconComponent;
5471
5491
  /**
5472
5492
  * Controlled value of the Select. Use it in combination of `onChange`.
@@ -5553,7 +5573,7 @@ type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
5553
5573
  value?: string;
5554
5574
  inputIndex: number;
5555
5575
  }) => void;
5556
- type OTPInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID'> & {
5576
+ type OTPInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID' | 'size'> & {
5557
5577
  /**
5558
5578
  * Determines the number of input fields to show for the OTP
5559
5579
  * @default 6
@@ -5643,7 +5663,7 @@ type PasswordInputExtraProps = {
5643
5663
  */
5644
5664
  autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'password' | 'newPassword'>;
5645
5665
  };
5646
- 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'> & PasswordInputExtraProps & StyledPropsBlade;
5666
+ 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'> & PasswordInputExtraProps & StyledPropsBlade;
5647
5667
  type PasswordInputPropsWithA11yLabel = {
5648
5668
  /**
5649
5669
  * Label to be shown for the input field
@@ -5667,7 +5687,7 @@ type PasswordInputPropsWithLabel = {
5667
5687
  type PasswordInputProps = (PasswordInputPropsWithA11yLabel | PasswordInputPropsWithLabel) & PasswordInputCommonProps;
5668
5688
  declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<BladeElementRef>>;
5669
5689
 
5670
- 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'> & {
5690
+ 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'> & {
5671
5691
  /**
5672
5692
  * Decides whether to render a clear icon button
5673
5693
  */
@@ -5701,7 +5721,7 @@ type TextAreaProps = (TextAreaPropsWithA11yLabel | TextAreaPropsWithLabel) & Tex
5701
5721
  declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<BladeElementRef>>;
5702
5722
 
5703
5723
  type Type = Exclude<BaseInputProps['type'], 'password'>;
5704
- 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'> & {
5724
+ 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'> & {
5705
5725
  /**
5706
5726
  * Decides whether to render a clear icon button
5707
5727
  */
@@ -5716,6 +5736,7 @@ type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel'
5716
5736
  isLoading?: boolean;
5717
5737
  /**
5718
5738
  * Icon that will be rendered at the beginning of the input field
5739
+ * @deprecated Use `leadingIcon` instead. This prop will be removed in the next major version.
5719
5740
  */
5720
5741
  icon?: IconComponent;
5721
5742
  /**
@@ -6060,7 +6081,7 @@ type RadioProps = {
6060
6081
  *
6061
6082
  * @default "medium"
6062
6083
  */
6063
- size?: 'small' | 'medium';
6084
+ size?: 'small' | 'medium' | 'large';
6064
6085
  } & TestID & StyledPropsBlade;
6065
6086
  declare const Radio: React__default.ForwardRefExoticComponent<{
6066
6087
  /**
@@ -6087,7 +6108,7 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
6087
6108
  *
6088
6109
  * @default "medium"
6089
6110
  */
6090
- size?: "small" | "medium" | undefined;
6111
+ size?: "small" | "medium" | "large" | undefined;
6091
6112
  } & TestID & Partial<Omit<MarginProps & Pick<FlexboxProps, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & {
6092
6113
  bottom: SpacingValueType | {
6093
6114
  readonly base?: SpacingValueType | undefined;
@@ -6325,7 +6346,7 @@ type RadioGroupProps = {
6325
6346
  *
6326
6347
  * @default "medium"
6327
6348
  */
6328
- size?: 'small' | 'medium';
6349
+ size?: 'small' | 'medium' | 'large';
6329
6350
  } & TestID & StyledPropsBlade;
6330
6351
  declare const RadioGroup: ({ children, label, helpText, isDisabled, isRequired, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: RadioGroupProps) => React__default.ReactElement;
6331
6352
 
@@ -7361,4 +7382,4 @@ declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => Rea
7361
7382
  */
7362
7383
  declare const screenReaderStyles: CSSObject;
7363
7384
 
7364
- export { Accordion, AccordionItem, AccordionItemBody, AccordionItemHeader, 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, ButtonGroup, 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, FileUpload, 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 };
7385
+ export { Accordion, AccordionItem, AccordionItemBody, AccordionItemHeader, 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, ButtonGroup, 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, FileUpload, 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, getHeadingProps, getTextProps, screenReaderStyles, useTheme, useToast };
@@ -773,6 +773,8 @@ declare const size: {
773
773
  readonly 140: 140;
774
774
  /** 160 px */
775
775
  readonly 160: 160;
776
+ /** 176 px */
777
+ readonly 176: 176;
776
778
  /** 200 px */
777
779
  readonly 200: 200;
778
780
  /** 240 px */
@@ -773,6 +773,8 @@ declare const size: {
773
773
  readonly 140: 140;
774
774
  /** 160 px */
775
775
  readonly 160: 160;
776
+ /** 176 px */
777
+ readonly 176: 176;
776
778
  /** 200 px */
777
779
  readonly 200: 200;
778
780
  /** 240 px */
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.8.2",
4
+ "version": "11.9.1",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"
@@ -1,16 +0,0 @@
1
- import styled from 'styled-components/native';
2
- import Animated, { useSharedValue, useAnimatedStyle, interpolate, withTiming } from 'react-native-reanimated';
3
- import { useEffect } from 'react';
4
- import '@gorhom/portal';
5
- import 'react-native-gesture-handler';
6
- import useTheme from '../../BladeProvider/useTheme.js';
7
- import 'react-native';
8
- import '@babel/runtime/helpers/slicedToArray';
9
- import { makeBorderSize } from '../../../utils/makeBorderSize/makeBorderSize.js';
10
- import '../../BottomSheet/BottomSheetStack.js';
11
- import { jsx } from 'react/jsx-runtime';
12
-
13
- var BaseInputStyledAnimatedBorder=styled(Animated.View)(function(_ref){var theme=_ref.theme;return {position:'absolute',bottom:0,left:0,right:0,opacity:1,backgroundColor:theme.colors.interactive.background.primary.default,height:makeBorderSize(theme.border.width.thin)};});var BaseInputAnimatedBorder=function BaseInputAnimatedBorder(_ref2){var currentInteraction=_ref2.currentInteraction,validationState=_ref2.validationState;var _useTheme=useTheme(),theme=_useTheme.theme;var borderAnimationEasing=theme.motion.easing.standard.effective;var widthTrigger=useSharedValue(0);var opacityTrigger=useSharedValue(1);var animatedStyle=useAnimatedStyle(function(){return {width:`${interpolate(widthTrigger.value,[0,1],[0,100])}%`,opacity:interpolate(opacityTrigger.value,[0,1],[0,1])};});useEffect(function(){if(currentInteraction=='focus'&&validationState!=='error'&&validationState!=='success'){widthTrigger.value=0;opacityTrigger.value=1;widthTrigger.value=withTiming(1,{duration:theme.motion.duration.moderate,easing:borderAnimationEasing});}else if(currentInteraction==='default'){opacityTrigger.value=withTiming(0,{duration:theme.motion.duration.xquick,easing:borderAnimationEasing});}},[currentInteraction,opacityTrigger,widthTrigger,theme.motion.duration,borderAnimationEasing,validationState]);return jsx(BaseInputStyledAnimatedBorder,{style:animatedStyle});};
14
-
15
- export { BaseInputAnimatedBorder };
16
- //# sourceMappingURL=BaseInputAnimatedBorder.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseInputAnimatedBorder.native.js","sources":["../../../../../../src/components/Input/BaseInput/BaseInputAnimatedBorder.native.tsx"],"sourcesContent":["import styled from 'styled-components/native';\nimport type { EasingFn } from 'react-native-reanimated';\nimport Animated, {\n useAnimatedStyle,\n useSharedValue,\n interpolate,\n withTiming,\n} from 'react-native-reanimated';\nimport type { ReactElement } from 'react';\nimport { useEffect } from 'react';\nimport type { ActionStates } from '../../../utils/useInteraction';\nimport type { BaseInputProps } from './BaseInput';\nimport { useTheme } from '~components/BladeProvider';\nimport { makeBorderSize } from '~utils/makeBorderSize';\n\nconst BaseInputStyledAnimatedBorder = styled(Animated.View)(({ theme }) => ({\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n opacity: 1,\n backgroundColor: theme.colors.interactive.background.primary.default,\n height: makeBorderSize(theme.border.width.thin),\n}));\n\nexport const BaseInputAnimatedBorder = ({\n currentInteraction,\n validationState,\n}: {\n currentInteraction: ActionStates;\n validationState: BaseInputProps['validationState'];\n}): ReactElement => {\n const { theme } = useTheme();\n const borderAnimationEasing = (theme.motion.easing.standard.effective as unknown) as EasingFn;\n\n const widthTrigger = useSharedValue(0);\n const opacityTrigger = useSharedValue(1);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n width: `${interpolate(widthTrigger.value, [0, 1], [0, 100])}%`,\n opacity: interpolate(opacityTrigger.value, [0, 1], [0, 1]),\n };\n });\n\n useEffect(() => {\n if (\n currentInteraction == 'focus' &&\n validationState !== 'error' &&\n validationState !== 'success'\n ) {\n widthTrigger.value = 0;\n opacityTrigger.value = 1;\n widthTrigger.value = withTiming(1, {\n duration: theme.motion.duration.moderate,\n easing: borderAnimationEasing,\n });\n } else if (currentInteraction === 'default') {\n opacityTrigger.value = withTiming(0, {\n duration: theme.motion.duration.xquick,\n easing: borderAnimationEasing,\n });\n }\n }, [\n currentInteraction,\n opacityTrigger,\n widthTrigger,\n theme.motion.duration,\n borderAnimationEasing,\n validationState,\n ]);\n\n return <BaseInputStyledAnimatedBorder style={animatedStyle} />;\n};\n"],"names":["BaseInputStyledAnimatedBorder","styled","Animated","View","_ref","theme","position","bottom","left","right","opacity","backgroundColor","colors","interactive","background","primary","default","height","makeBorderSize","border","width","thin","BaseInputAnimatedBorder","_ref2","currentInteraction","validationState","_useTheme","useTheme","borderAnimationEasing","motion","easing","standard","effective","widthTrigger","useSharedValue","opacityTrigger","animatedStyle","useAnimatedStyle","interpolate","value","useEffect","withTiming","duration","moderate","xquick","_jsx","style"],"mappings":";;;;;;;;;;;;AAeA,IAAMA,6BAA6B,CAAGC,MAAM,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC,SAAAC,IAAA,MAAGC,KAAK,CAAAD,IAAA,CAALC,KAAK,CAAA,OAAQ,CAC1EC,QAAQ,CAAE,UAAU,CACpBC,MAAM,CAAE,CAAC,CACTC,IAAI,CAAE,CAAC,CACPC,KAAK,CAAE,CAAC,CACRC,OAAO,CAAE,CAAC,CACVC,eAAe,CAAEN,KAAK,CAACO,MAAM,CAACC,WAAW,CAACC,UAAU,CAACC,OAAO,CAACC,OAAO,CACpEC,MAAM,CAAEC,cAAc,CAACb,KAAK,CAACc,MAAM,CAACC,KAAK,CAACC,IAAI,CAChD,CAAC,EAAC,CAAC,CAEU,IAAAC,uBAAuB,CAAG,SAA1BA,uBAAuBA,CAAAC,KAAA,CAMhB,KALlBC,kBAAkB,CAAAD,KAAA,CAAlBC,kBAAkB,CAClBC,eAAe,CAAAF,KAAA,CAAfE,eAAe,CAKf,IAAAC,SAAA,CAAkBC,QAAQ,EAAE,CAApBtB,KAAK,CAAAqB,SAAA,CAALrB,KAAK,CACb,IAAMuB,qBAAqB,CAAIvB,KAAK,CAACwB,MAAM,CAACC,MAAM,CAACC,QAAQ,CAACC,SAAiC,CAE7F,IAAMC,YAAY,CAAGC,cAAc,CAAC,CAAC,CAAC,CACtC,IAAMC,cAAc,CAAGD,cAAc,CAAC,CAAC,CAAC,CAExC,IAAME,aAAa,CAAGC,gBAAgB,CAAC,UAAM,CAC3C,OAAO,CACLjB,KAAK,CAAG,CAAEkB,EAAAA,WAAW,CAACL,YAAY,CAACM,KAAK,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,GAAG,CAAC,CAAE,GAAE,CAC9D7B,OAAO,CAAE4B,WAAW,CAACH,cAAc,CAACI,KAAK,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAC3D,CAAC,CACH,CAAC,CAAC,CAEFC,SAAS,CAAC,UAAM,CACd,GACEhB,kBAAkB,EAAI,OAAO,EAC7BC,eAAe,GAAK,OAAO,EAC3BA,eAAe,GAAK,SAAS,CAC7B,CACAQ,YAAY,CAACM,KAAK,CAAG,CAAC,CACtBJ,cAAc,CAACI,KAAK,CAAG,CAAC,CACxBN,YAAY,CAACM,KAAK,CAAGE,UAAU,CAAC,CAAC,CAAE,CACjCC,QAAQ,CAAErC,KAAK,CAACwB,MAAM,CAACa,QAAQ,CAACC,QAAQ,CACxCb,MAAM,CAAEF,qBACV,CAAC,CAAC,CACJ,CAAC,QAAUJ,kBAAkB,GAAK,SAAS,CAAE,CAC3CW,cAAc,CAACI,KAAK,CAAGE,UAAU,CAAC,CAAC,CAAE,CACnCC,QAAQ,CAAErC,KAAK,CAACwB,MAAM,CAACa,QAAQ,CAACE,MAAM,CACtCd,MAAM,CAAEF,qBACV,CAAC,CAAC,CACJ,CACF,CAAC,CAAE,CACDJ,kBAAkB,CAClBW,cAAc,CACdF,YAAY,CACZ5B,KAAK,CAACwB,MAAM,CAACa,QAAQ,CACrBd,qBAAqB,CACrBH,eAAe,CAChB,CAAC,CAEF,OAAOoB,GAAA,CAAC7C,6BAA6B,EAAC8C,KAAK,CAAEV,aAAc,CAAE,CAAC,CAChE;;;;"}
@@ -1,8 +0,0 @@
1
- import '../../../tokens/global/typography.js';
2
- import '../../../tokens/global/motion.js';
3
- import { size } from '../../../tokens/global/size.js';
4
-
5
- var BASEINPUT_BOTTOM_LINE_HEIGHT=size['1'];var BASEINPUT_MAX_ROWS=4;var BASEINPUT_DEFAULT_HEIGHT=size['36'];var BASEINPUT_WRAPPER_MIN_HEIGHT=BASEINPUT_DEFAULT_HEIGHT+BASEINPUT_BOTTOM_LINE_HEIGHT;var BASEINPUT_WRAPPER_MAX_HEIGHT=size['36']*BASEINPUT_MAX_ROWS+BASEINPUT_BOTTOM_LINE_HEIGHT;
6
-
7
- export { BASEINPUT_DEFAULT_HEIGHT, BASEINPUT_MAX_ROWS, BASEINPUT_WRAPPER_MAX_HEIGHT, BASEINPUT_WRAPPER_MIN_HEIGHT };
8
- //# sourceMappingURL=baseInputConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseInputConfig.js","sources":["../../../../../../src/components/Input/BaseInput/baseInputConfig.ts"],"sourcesContent":["import { size, spacing } from '~tokens/global';\n\nconst BASEINPUT_BOTTOM_LINE_HEIGHT: number = size['1'];\nexport const BASEINPUT_MAX_ROWS = 4;\n\nexport const TAG_HEIGHT = size['20'];\nexport const TAG_GAP = spacing['3'];\n\n/**\n * 36px\n */\nexport const BASEINPUT_DEFAULT_HEIGHT: number = size['36'];\n\n/**\n * 37px (36px height + 1px bottom line height)\n */\nexport const BASEINPUT_WRAPPER_MIN_HEIGHT = BASEINPUT_DEFAULT_HEIGHT + BASEINPUT_BOTTOM_LINE_HEIGHT;\n\n/**\n * 145px (36px height * 4 rows + 1px bottom line height)\n */\nexport const BASEINPUT_WRAPPER_MAX_HEIGHT =\n size['36'] * BASEINPUT_MAX_ROWS + BASEINPUT_BOTTOM_LINE_HEIGHT; // we don't want exact number but rough number to be able to animate correctly in height.\n"],"names":["BASEINPUT_BOTTOM_LINE_HEIGHT","size","BASEINPUT_MAX_ROWS","BASEINPUT_DEFAULT_HEIGHT","BASEINPUT_WRAPPER_MIN_HEIGHT","BASEINPUT_WRAPPER_MAX_HEIGHT"],"mappings":";;;;AAEA,IAAMA,4BAAoC,CAAGC,IAAI,CAAC,GAAG,CAAC,CACzC,IAAAC,kBAAkB,CAAG,EAQrB,IAAAC,wBAAgC,CAAGF,IAAI,CAAC,IAAI,EAK5C,IAAAG,4BAA4B,CAAGD,wBAAwB,CAAGH,6BAK1D,IAAAK,4BAA4B,CACvCJ,IAAI,CAAC,IAAI,CAAC,CAAGC,kBAAkB,CAAGF;;;;"}
@@ -1,43 +0,0 @@
1
- import React__default from 'react';
2
- import styled, { keyframes, css } from 'styled-components';
3
- import '../../Box/BaseBox/index.js';
4
- import '../../../utils/makeMotionTime/index.web.js';
5
- import '../../BladeProvider/index.js';
6
- import '../../../utils/makeBorderSize/index.js';
7
- import { jsx } from 'react/jsx-runtime';
8
- import { BaseBox } from '../../Box/BaseBox/BaseBox.web.js';
9
- import { makeBorderSize } from '../../../utils/makeBorderSize/makeBorderSize.js';
10
- import useTheme from '../../BladeProvider/useTheme.js';
11
- import { makeMotionTime } from '../../../utils/makeMotionTime/makeMotionTime.web.js';
12
-
13
- var scaleBorder = /*#__PURE__*/keyframes(["from{transform:scaleX(0);transform-origin:left;opacity:0;}to{transform:scaleX(1);transform-origin:left;opacity:1;}"]);
14
- var fadeOutBorder = /*#__PURE__*/keyframes(["from{opacity:1}to{opacity:0}"]);
15
- var BaseInputStyledAnimatedBorder = /*#__PURE__*/styled(BaseBox).withConfig({
16
- displayName: "BaseInputAnimatedBorderweb__BaseInputStyledAnimatedBorder",
17
- componentId: "sc-2cepod-0"
18
- })(function (_ref) {
19
- var theme = _ref.theme,
20
- animation = _ref.animation;
21
- return css(["position:absolute;bottom:0;left:0;right:0;opacity:0;background-color:", ";border-width:", ";height:", ";", ""], theme.colors.interactive.background.primary["default"], makeBorderSize(theme.border.width.thin), makeBorderSize(theme.border.width.thin), animation);
22
- });
23
- var BaseInputAnimatedBorder = function BaseInputAnimatedBorder(_ref2) {
24
- var currentInteraction = _ref2.currentInteraction,
25
- validationState = _ref2.validationState;
26
- var _useTheme = useTheme(),
27
- theme = _useTheme.theme;
28
- var borderAnimationOnFocus = /*#__PURE__*/css(["animation:", " ", " ", " forwards;"], scaleBorder, makeMotionTime(theme.motion.duration.moderate), theme.motion.easing.standard.effective);
29
- var borderAnimationOnBlur = /*#__PURE__*/css(["animation:", " ", " ", " forwards;"], fadeOutBorder, makeMotionTime(theme.motion.duration.xquick), theme.motion.easing.standard.effective);
30
- // need ref because we don't have `blur` as an interaction which means the exit animation would run on default as well as blur event
31
- var borderAnimation = React__default.useRef();
32
- if (currentInteraction === 'focus' && validationState !== 'error' && validationState !== 'success') {
33
- borderAnimation.current = borderAnimationOnFocus;
34
- } else if (borderAnimation.current && currentInteraction === 'default') {
35
- borderAnimation.current = borderAnimationOnBlur;
36
- }
37
- return /*#__PURE__*/jsx(BaseInputStyledAnimatedBorder, {
38
- animation: borderAnimation.current
39
- });
40
- };
41
-
42
- export { BaseInputAnimatedBorder };
43
- //# sourceMappingURL=BaseInputAnimatedBorder.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseInputAnimatedBorder.web.js","sources":["../../../../../../../src/components/Input/BaseInput/BaseInputAnimatedBorder.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { FlattenSimpleInterpolation } from 'styled-components';\nimport type { ReactElement } from 'react';\nimport styled, { css, keyframes } from 'styled-components';\nimport type { BaseInputProps } from './BaseInput';\nimport BaseBox from '~components/Box/BaseBox';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport type { Theme } from '~components/BladeProvider';\nimport { useTheme } from '~components/BladeProvider';\nimport { makeBorderSize } from '~utils/makeBorderSize';\nimport type { ActionStates } from '~utils/useInteraction';\n\nconst scaleBorder = keyframes`\nfrom {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0;\n}\nto {\n transform: scaleX(1);\n transform-origin: left;\n opacity: 1;\n}\n`;\n\nconst fadeOutBorder = keyframes`\nfrom {\n opacity: 1\n}\nto {\n opacity: 0\n}\n`;\n\nconst BaseInputStyledAnimatedBorder = styled(BaseBox)(\n ({ theme, animation }: { theme: Theme; animation?: FlattenSimpleInterpolation }) => css`\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n opacity: 0;\n background-color: ${theme.colors.interactive.background.primary.default};\n border-width: ${makeBorderSize(theme.border.width.thin)};\n height: ${makeBorderSize(theme.border.width.thin)};\n ${animation}\n `,\n);\n\nexport const BaseInputAnimatedBorder = ({\n currentInteraction,\n validationState,\n}: {\n currentInteraction: ActionStates;\n validationState: BaseInputProps['validationState'];\n}): ReactElement => {\n const { theme } = useTheme();\n\n const borderAnimationOnFocus = css`\n animation: ${scaleBorder} ${makeMotionTime(theme.motion.duration.moderate)}\n ${theme.motion.easing.standard.effective as string} forwards;\n `;\n\n const borderAnimationOnBlur = css`\n animation: ${fadeOutBorder} ${makeMotionTime(theme.motion.duration.xquick)}\n ${theme.motion.easing.standard.effective as string} forwards;\n `;\n // need ref because we don't have `blur` as an interaction which means the exit animation would run on default as well as blur event\n const borderAnimation = React.useRef<FlattenSimpleInterpolation>();\n if (\n currentInteraction === 'focus' &&\n validationState !== 'error' &&\n validationState !== 'success'\n ) {\n borderAnimation.current = borderAnimationOnFocus;\n } else if (borderAnimation.current && currentInteraction === 'default') {\n borderAnimation.current = borderAnimationOnBlur;\n }\n\n return <BaseInputStyledAnimatedBorder animation={borderAnimation.current} />;\n};\n"],"names":["scaleBorder","keyframes","fadeOutBorder","BaseInputStyledAnimatedBorder","styled","BaseBox","withConfig","displayName","componentId","_ref","theme","animation","css","colors","interactive","background","primary","makeBorderSize","border","width","thin","BaseInputAnimatedBorder","_ref2","currentInteraction","validationState","_useTheme","useTheme","borderAnimationOnFocus","makeMotionTime","motion","duration","moderate","easing","standard","effective","borderAnimationOnBlur","xquick","borderAnimation","React","useRef","current","_jsx"],"mappings":";;;;;;;;;;;;AAYA,IAAMA,WAAW,gBAAGC,SAAS,CAW5B,CAAA,oHAAA,CAAA,CAAA,CAAA;AAED,IAAMC,aAAa,gBAAGD,SAAS,CAO9B,CAAA,8BAAA,CAAA,CAAA,CAAA;AAED,IAAME,6BAA6B,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,2DAAA;EAAAC,WAAA,EAAA,aAAA;AAAA,CAAA,CAAA,CACnD,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS,CAAA;AAAA,EAAA,OAAiEC,GAAG,CAAA,CAAA,uEAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,GAAA,EAAA,EAAA,CAAA,EAMjEF,KAAK,CAACG,MAAM,CAACC,WAAW,CAACC,UAAU,CAACC,OAAO,CAAA,SAAA,CAAQ,EACvDC,cAAc,CAACP,KAAK,CAACQ,MAAM,CAACC,KAAK,CAACC,IAAI,CAAC,EAC7CH,cAAc,CAACP,KAAK,CAACQ,MAAM,CAACC,KAAK,CAACC,IAAI,CAAC,EAC/CT,SAAS,CAAA,CAAA;AAAA,CACZ,CACF,CAAA;IAEYU,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,KAAA,EAMhB;AAAA,EAAA,IALlBC,kBAAkB,GAAAD,KAAA,CAAlBC,kBAAkB;IAClBC,eAAe,GAAAF,KAAA,CAAfE,eAAe,CAAA;AAKf,EAAA,IAAAC,SAAA,GAAkBC,QAAQ,EAAE;IAApBhB,KAAK,GAAAe,SAAA,CAALf,KAAK,CAAA;EAEb,IAAMiB,sBAAsB,gBAAGf,GAAG,CACnBZ,CAAAA,YAAAA,EAAAA,GAAAA,EAAAA,GAAAA,EAAAA,YAAAA,CAAAA,EAAAA,WAAW,EAAI4B,cAAc,CAAClB,KAAK,CAACmB,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAAC,EACtErB,KAAK,CAACmB,MAAM,CAACG,MAAM,CAACC,QAAQ,CAACC,SAAS,CAC3C,CAAA;EAED,IAAMC,qBAAqB,gBAAGvB,GAAG,CAClBV,CAAAA,YAAAA,EAAAA,GAAAA,EAAAA,GAAAA,EAAAA,YAAAA,CAAAA,EAAAA,aAAa,EAAI0B,cAAc,CAAClB,KAAK,CAACmB,MAAM,CAACC,QAAQ,CAACM,MAAM,CAAC,EACtE1B,KAAK,CAACmB,MAAM,CAACG,MAAM,CAACC,QAAQ,CAACC,SAAS,CAC3C,CAAA;AACD;AACA,EAAA,IAAMG,eAAe,GAAGC,cAAK,CAACC,MAAM,EAA8B,CAAA;EAClE,IACEhB,kBAAkB,KAAK,OAAO,IAC9BC,eAAe,KAAK,OAAO,IAC3BA,eAAe,KAAK,SAAS,EAC7B;IACAa,eAAe,CAACG,OAAO,GAAGb,sBAAsB,CAAA;GACjD,MAAM,IAAIU,eAAe,CAACG,OAAO,IAAIjB,kBAAkB,KAAK,SAAS,EAAE;IACtEc,eAAe,CAACG,OAAO,GAAGL,qBAAqB,CAAA;AACjD,GAAA;EAEA,oBAAOM,GAAA,CAACtC,6BAA6B,EAAA;IAACQ,SAAS,EAAE0B,eAAe,CAACG,OAAAA;AAAQ,GAAE,CAAC,CAAA;AAC9E;;;;"}
@@ -1,26 +0,0 @@
1
- import '../../../tokens/global/index.js';
2
- import { size } from '../../../tokens/global/size.js';
3
- import { spacing } from '../../../tokens/global/spacing.js';
4
-
5
- var BASEINPUT_BOTTOM_LINE_HEIGHT = size['1'];
6
- var BASEINPUT_MAX_ROWS = 4;
7
- var TAG_HEIGHT = size['20'];
8
- var TAG_GAP = spacing['3'];
9
-
10
- /**
11
- * 36px
12
- */
13
- var BASEINPUT_DEFAULT_HEIGHT = size['36'];
14
-
15
- /**
16
- * 37px (36px height + 1px bottom line height)
17
- */
18
- var BASEINPUT_WRAPPER_MIN_HEIGHT = BASEINPUT_DEFAULT_HEIGHT + BASEINPUT_BOTTOM_LINE_HEIGHT;
19
-
20
- /**
21
- * 145px (36px height * 4 rows + 1px bottom line height)
22
- */
23
- var BASEINPUT_WRAPPER_MAX_HEIGHT = size['36'] * BASEINPUT_MAX_ROWS + BASEINPUT_BOTTOM_LINE_HEIGHT; // we don't want exact number but rough number to be able to animate correctly in height.
24
-
25
- export { BASEINPUT_DEFAULT_HEIGHT, BASEINPUT_MAX_ROWS, BASEINPUT_WRAPPER_MAX_HEIGHT, BASEINPUT_WRAPPER_MIN_HEIGHT, TAG_GAP, TAG_HEIGHT };
26
- //# sourceMappingURL=baseInputConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseInputConfig.js","sources":["../../../../../../../src/components/Input/BaseInput/baseInputConfig.ts"],"sourcesContent":["import { size, spacing } from '~tokens/global';\n\nconst BASEINPUT_BOTTOM_LINE_HEIGHT: number = size['1'];\nexport const BASEINPUT_MAX_ROWS = 4;\n\nexport const TAG_HEIGHT = size['20'];\nexport const TAG_GAP = spacing['3'];\n\n/**\n * 36px\n */\nexport const BASEINPUT_DEFAULT_HEIGHT: number = size['36'];\n\n/**\n * 37px (36px height + 1px bottom line height)\n */\nexport const BASEINPUT_WRAPPER_MIN_HEIGHT = BASEINPUT_DEFAULT_HEIGHT + BASEINPUT_BOTTOM_LINE_HEIGHT;\n\n/**\n * 145px (36px height * 4 rows + 1px bottom line height)\n */\nexport const BASEINPUT_WRAPPER_MAX_HEIGHT =\n size['36'] * BASEINPUT_MAX_ROWS + BASEINPUT_BOTTOM_LINE_HEIGHT; // we don't want exact number but rough number to be able to animate correctly in height.\n"],"names":["BASEINPUT_BOTTOM_LINE_HEIGHT","size","BASEINPUT_MAX_ROWS","TAG_HEIGHT","TAG_GAP","spacing","BASEINPUT_DEFAULT_HEIGHT","BASEINPUT_WRAPPER_MIN_HEIGHT","BASEINPUT_WRAPPER_MAX_HEIGHT"],"mappings":";;;;AAEA,IAAMA,4BAAoC,GAAGC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC/C,IAAMC,kBAAkB,GAAG,EAAC;IAEtBC,UAAU,GAAGF,IAAI,CAAC,IAAI,EAAC;IACvBG,OAAO,GAAGC,OAAO,CAAC,GAAG,EAAC;;AAEnC;AACA;AACA;IACaC,wBAAgC,GAAGL,IAAI,CAAC,IAAI,EAAC;;AAE1D;AACA;AACA;AACaM,IAAAA,4BAA4B,GAAGD,wBAAwB,GAAGN,6BAA4B;;AAEnG;AACA;AACA;AACaQ,IAAAA,4BAA4B,GACvCP,IAAI,CAAC,IAAI,CAAC,GAAGC,kBAAkB,GAAGF,6BAA6B;;;;"}
@@ -1,43 +0,0 @@
1
- import React__default from 'react';
2
- import styled, { keyframes, css } from 'styled-components';
3
- import '../../Box/BaseBox/index.js';
4
- import '../../../utils/makeMotionTime/index.web.js';
5
- import '../../BladeProvider/index.js';
6
- import '../../../utils/makeBorderSize/index.js';
7
- import { jsx } from 'react/jsx-runtime';
8
- import { BaseBox } from '../../Box/BaseBox/BaseBox.web.js';
9
- import { makeBorderSize } from '../../../utils/makeBorderSize/makeBorderSize.js';
10
- import useTheme from '../../BladeProvider/useTheme.js';
11
- import { makeMotionTime } from '../../../utils/makeMotionTime/makeMotionTime.web.js';
12
-
13
- var scaleBorder = /*#__PURE__*/keyframes(["from{transform:scaleX(0);transform-origin:left;opacity:0;}to{transform:scaleX(1);transform-origin:left;opacity:1;}"]);
14
- var fadeOutBorder = /*#__PURE__*/keyframes(["from{opacity:1}to{opacity:0}"]);
15
- var BaseInputStyledAnimatedBorder = /*#__PURE__*/styled(BaseBox).withConfig({
16
- displayName: "BaseInputAnimatedBorderweb__BaseInputStyledAnimatedBorder",
17
- componentId: "sc-2cepod-0"
18
- })(function (_ref) {
19
- var theme = _ref.theme,
20
- animation = _ref.animation;
21
- return css(["position:absolute;bottom:0;left:0;right:0;opacity:0;background-color:", ";border-width:", ";height:", ";", ""], theme.colors.interactive.background.primary["default"], makeBorderSize(theme.border.width.thin), makeBorderSize(theme.border.width.thin), animation);
22
- });
23
- var BaseInputAnimatedBorder = function BaseInputAnimatedBorder(_ref2) {
24
- var currentInteraction = _ref2.currentInteraction,
25
- validationState = _ref2.validationState;
26
- var _useTheme = useTheme(),
27
- theme = _useTheme.theme;
28
- var borderAnimationOnFocus = /*#__PURE__*/css(["animation:", " ", " ", " forwards;"], scaleBorder, makeMotionTime(theme.motion.duration.moderate), theme.motion.easing.standard.effective);
29
- var borderAnimationOnBlur = /*#__PURE__*/css(["animation:", " ", " ", " forwards;"], fadeOutBorder, makeMotionTime(theme.motion.duration.xquick), theme.motion.easing.standard.effective);
30
- // need ref because we don't have `blur` as an interaction which means the exit animation would run on default as well as blur event
31
- var borderAnimation = React__default.useRef();
32
- if (currentInteraction === 'focus' && validationState !== 'error' && validationState !== 'success') {
33
- borderAnimation.current = borderAnimationOnFocus;
34
- } else if (borderAnimation.current && currentInteraction === 'default') {
35
- borderAnimation.current = borderAnimationOnBlur;
36
- }
37
- return /*#__PURE__*/jsx(BaseInputStyledAnimatedBorder, {
38
- animation: borderAnimation.current
39
- });
40
- };
41
-
42
- export { BaseInputAnimatedBorder };
43
- //# sourceMappingURL=BaseInputAnimatedBorder.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseInputAnimatedBorder.web.js","sources":["../../../../../../../src/components/Input/BaseInput/BaseInputAnimatedBorder.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { FlattenSimpleInterpolation } from 'styled-components';\nimport type { ReactElement } from 'react';\nimport styled, { css, keyframes } from 'styled-components';\nimport type { BaseInputProps } from './BaseInput';\nimport BaseBox from '~components/Box/BaseBox';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport type { Theme } from '~components/BladeProvider';\nimport { useTheme } from '~components/BladeProvider';\nimport { makeBorderSize } from '~utils/makeBorderSize';\nimport type { ActionStates } from '~utils/useInteraction';\n\nconst scaleBorder = keyframes`\nfrom {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0;\n}\nto {\n transform: scaleX(1);\n transform-origin: left;\n opacity: 1;\n}\n`;\n\nconst fadeOutBorder = keyframes`\nfrom {\n opacity: 1\n}\nto {\n opacity: 0\n}\n`;\n\nconst BaseInputStyledAnimatedBorder = styled(BaseBox)(\n ({ theme, animation }: { theme: Theme; animation?: FlattenSimpleInterpolation }) => css`\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n opacity: 0;\n background-color: ${theme.colors.interactive.background.primary.default};\n border-width: ${makeBorderSize(theme.border.width.thin)};\n height: ${makeBorderSize(theme.border.width.thin)};\n ${animation}\n `,\n);\n\nexport const BaseInputAnimatedBorder = ({\n currentInteraction,\n validationState,\n}: {\n currentInteraction: ActionStates;\n validationState: BaseInputProps['validationState'];\n}): ReactElement => {\n const { theme } = useTheme();\n\n const borderAnimationOnFocus = css`\n animation: ${scaleBorder} ${makeMotionTime(theme.motion.duration.moderate)}\n ${theme.motion.easing.standard.effective as string} forwards;\n `;\n\n const borderAnimationOnBlur = css`\n animation: ${fadeOutBorder} ${makeMotionTime(theme.motion.duration.xquick)}\n ${theme.motion.easing.standard.effective as string} forwards;\n `;\n // need ref because we don't have `blur` as an interaction which means the exit animation would run on default as well as blur event\n const borderAnimation = React.useRef<FlattenSimpleInterpolation>();\n if (\n currentInteraction === 'focus' &&\n validationState !== 'error' &&\n validationState !== 'success'\n ) {\n borderAnimation.current = borderAnimationOnFocus;\n } else if (borderAnimation.current && currentInteraction === 'default') {\n borderAnimation.current = borderAnimationOnBlur;\n }\n\n return <BaseInputStyledAnimatedBorder animation={borderAnimation.current} />;\n};\n"],"names":["scaleBorder","keyframes","fadeOutBorder","BaseInputStyledAnimatedBorder","styled","BaseBox","withConfig","displayName","componentId","_ref","theme","animation","css","colors","interactive","background","primary","makeBorderSize","border","width","thin","BaseInputAnimatedBorder","_ref2","currentInteraction","validationState","_useTheme","useTheme","borderAnimationOnFocus","makeMotionTime","motion","duration","moderate","easing","standard","effective","borderAnimationOnBlur","xquick","borderAnimation","React","useRef","current","_jsx"],"mappings":";;;;;;;;;;;;AAYA,IAAMA,WAAW,gBAAGC,SAAS,CAW5B,CAAA,oHAAA,CAAA,CAAA,CAAA;AAED,IAAMC,aAAa,gBAAGD,SAAS,CAO9B,CAAA,8BAAA,CAAA,CAAA,CAAA;AAED,IAAME,6BAA6B,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,2DAAA;EAAAC,WAAA,EAAA,aAAA;AAAA,CAAA,CAAA,CACnD,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS,CAAA;AAAA,EAAA,OAAiEC,GAAG,CAAA,CAAA,uEAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,GAAA,EAAA,EAAA,CAAA,EAMjEF,KAAK,CAACG,MAAM,CAACC,WAAW,CAACC,UAAU,CAACC,OAAO,CAAA,SAAA,CAAQ,EACvDC,cAAc,CAACP,KAAK,CAACQ,MAAM,CAACC,KAAK,CAACC,IAAI,CAAC,EAC7CH,cAAc,CAACP,KAAK,CAACQ,MAAM,CAACC,KAAK,CAACC,IAAI,CAAC,EAC/CT,SAAS,CAAA,CAAA;AAAA,CACZ,CACF,CAAA;IAEYU,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,KAAA,EAMhB;AAAA,EAAA,IALlBC,kBAAkB,GAAAD,KAAA,CAAlBC,kBAAkB;IAClBC,eAAe,GAAAF,KAAA,CAAfE,eAAe,CAAA;AAKf,EAAA,IAAAC,SAAA,GAAkBC,QAAQ,EAAE;IAApBhB,KAAK,GAAAe,SAAA,CAALf,KAAK,CAAA;EAEb,IAAMiB,sBAAsB,gBAAGf,GAAG,CACnBZ,CAAAA,YAAAA,EAAAA,GAAAA,EAAAA,GAAAA,EAAAA,YAAAA,CAAAA,EAAAA,WAAW,EAAI4B,cAAc,CAAClB,KAAK,CAACmB,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAAC,EACtErB,KAAK,CAACmB,MAAM,CAACG,MAAM,CAACC,QAAQ,CAACC,SAAS,CAC3C,CAAA;EAED,IAAMC,qBAAqB,gBAAGvB,GAAG,CAClBV,CAAAA,YAAAA,EAAAA,GAAAA,EAAAA,GAAAA,EAAAA,YAAAA,CAAAA,EAAAA,aAAa,EAAI0B,cAAc,CAAClB,KAAK,CAACmB,MAAM,CAACC,QAAQ,CAACM,MAAM,CAAC,EACtE1B,KAAK,CAACmB,MAAM,CAACG,MAAM,CAACC,QAAQ,CAACC,SAAS,CAC3C,CAAA;AACD;AACA,EAAA,IAAMG,eAAe,GAAGC,cAAK,CAACC,MAAM,EAA8B,CAAA;EAClE,IACEhB,kBAAkB,KAAK,OAAO,IAC9BC,eAAe,KAAK,OAAO,IAC3BA,eAAe,KAAK,SAAS,EAC7B;IACAa,eAAe,CAACG,OAAO,GAAGb,sBAAsB,CAAA;GACjD,MAAM,IAAIU,eAAe,CAACG,OAAO,IAAIjB,kBAAkB,KAAK,SAAS,EAAE;IACtEc,eAAe,CAACG,OAAO,GAAGL,qBAAqB,CAAA;AACjD,GAAA;EAEA,oBAAOM,GAAA,CAACtC,6BAA6B,EAAA;IAACQ,SAAS,EAAE0B,eAAe,CAACG,OAAAA;AAAQ,GAAE,CAAC,CAAA;AAC9E;;;;"}
@@ -1,26 +0,0 @@
1
- import '../../../tokens/global/index.js';
2
- import { size } from '../../../tokens/global/size.js';
3
- import { spacing } from '../../../tokens/global/spacing.js';
4
-
5
- var BASEINPUT_BOTTOM_LINE_HEIGHT = size['1'];
6
- var BASEINPUT_MAX_ROWS = 4;
7
- var TAG_HEIGHT = size['20'];
8
- var TAG_GAP = spacing['3'];
9
-
10
- /**
11
- * 36px
12
- */
13
- var BASEINPUT_DEFAULT_HEIGHT = size['36'];
14
-
15
- /**
16
- * 37px (36px height + 1px bottom line height)
17
- */
18
- var BASEINPUT_WRAPPER_MIN_HEIGHT = BASEINPUT_DEFAULT_HEIGHT + BASEINPUT_BOTTOM_LINE_HEIGHT;
19
-
20
- /**
21
- * 145px (36px height * 4 rows + 1px bottom line height)
22
- */
23
- var BASEINPUT_WRAPPER_MAX_HEIGHT = size['36'] * BASEINPUT_MAX_ROWS + BASEINPUT_BOTTOM_LINE_HEIGHT; // we don't want exact number but rough number to be able to animate correctly in height.
24
-
25
- export { BASEINPUT_DEFAULT_HEIGHT, BASEINPUT_MAX_ROWS, BASEINPUT_WRAPPER_MAX_HEIGHT, BASEINPUT_WRAPPER_MIN_HEIGHT, TAG_GAP, TAG_HEIGHT };
26
- //# sourceMappingURL=baseInputConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseInputConfig.js","sources":["../../../../../../../src/components/Input/BaseInput/baseInputConfig.ts"],"sourcesContent":["import { size, spacing } from '~tokens/global';\n\nconst BASEINPUT_BOTTOM_LINE_HEIGHT: number = size['1'];\nexport const BASEINPUT_MAX_ROWS = 4;\n\nexport const TAG_HEIGHT = size['20'];\nexport const TAG_GAP = spacing['3'];\n\n/**\n * 36px\n */\nexport const BASEINPUT_DEFAULT_HEIGHT: number = size['36'];\n\n/**\n * 37px (36px height + 1px bottom line height)\n */\nexport const BASEINPUT_WRAPPER_MIN_HEIGHT = BASEINPUT_DEFAULT_HEIGHT + BASEINPUT_BOTTOM_LINE_HEIGHT;\n\n/**\n * 145px (36px height * 4 rows + 1px bottom line height)\n */\nexport const BASEINPUT_WRAPPER_MAX_HEIGHT =\n size['36'] * BASEINPUT_MAX_ROWS + BASEINPUT_BOTTOM_LINE_HEIGHT; // we don't want exact number but rough number to be able to animate correctly in height.\n"],"names":["BASEINPUT_BOTTOM_LINE_HEIGHT","size","BASEINPUT_MAX_ROWS","TAG_HEIGHT","TAG_GAP","spacing","BASEINPUT_DEFAULT_HEIGHT","BASEINPUT_WRAPPER_MIN_HEIGHT","BASEINPUT_WRAPPER_MAX_HEIGHT"],"mappings":";;;;AAEA,IAAMA,4BAAoC,GAAGC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC/C,IAAMC,kBAAkB,GAAG,EAAC;IAEtBC,UAAU,GAAGF,IAAI,CAAC,IAAI,EAAC;IACvBG,OAAO,GAAGC,OAAO,CAAC,GAAG,EAAC;;AAEnC;AACA;AACA;IACaC,wBAAgC,GAAGL,IAAI,CAAC,IAAI,EAAC;;AAE1D;AACA;AACA;AACaM,IAAAA,4BAA4B,GAAGD,wBAAwB,GAAGN,6BAA4B;;AAEnG;AACA;AACA;AACaQ,IAAAA,4BAA4B,GACvCP,IAAI,CAAC,IAAI,CAAC,GAAGC,kBAAkB,GAAGF,6BAA6B;;;;"}