@flipdish/ui-library 0.59.0 → 0.60.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 (495) hide show
  1. package/README.md +3 -3
  2. package/dist/components/atoms/AppStoreButton/index.d.ts.map +1 -1
  3. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.cjs +1 -1
  4. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.js +1 -1
  5. package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreBadgeLink.cjs.map +1 -0
  6. package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreBadgeLink.d.ts.map +1 -0
  7. package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreBadgeLink.js.map +1 -0
  8. package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreButtonsOutline.cjs → components/AppStoreButtonsOutline.cjs} +1 -1
  9. package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreButtonsOutline.cjs.map +1 -0
  10. package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreButtonsOutline.d.ts.map +1 -0
  11. package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreButtonsOutline.js → components/AppStoreButtonsOutline.js} +1 -1
  12. package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreButtonsOutline.js.map +1 -0
  13. package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.cjs +1 -1
  14. package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.js +1 -1
  15. package/dist/components/atoms/BrandButtons/SocialButton/components/SocialLogos.cjs.map +1 -0
  16. package/dist/components/atoms/BrandButtons/SocialButton/components/SocialLogos.d.ts.map +1 -0
  17. package/dist/components/atoms/BrandButtons/SocialButton/components/SocialLogos.js.map +1 -0
  18. package/dist/components/atoms/BrandButtons/index.cjs +1 -1
  19. package/dist/components/atoms/BrandButtons/index.d.ts +1 -1
  20. package/dist/components/atoms/BrandButtons/index.d.ts.map +1 -1
  21. package/dist/components/atoms/BrandButtons/index.js +1 -1
  22. package/dist/components/atoms/Button/index.cjs +6 -163
  23. package/dist/components/atoms/Button/index.cjs.map +1 -1
  24. package/dist/components/atoms/Button/index.d.ts +14 -117
  25. package/dist/components/atoms/Button/index.d.ts.map +1 -1
  26. package/dist/components/atoms/Button/index.js +6 -163
  27. package/dist/components/atoms/Button/index.js.map +1 -1
  28. package/dist/components/atoms/Buttons/Button/Button.cjs +168 -0
  29. package/dist/components/atoms/Buttons/Button/Button.cjs.map +1 -0
  30. package/dist/components/atoms/Buttons/Button/Button.d.ts +116 -0
  31. package/dist/components/atoms/Buttons/Button/Button.d.ts.map +1 -0
  32. package/dist/components/atoms/Buttons/Button/Button.js +165 -0
  33. package/dist/components/atoms/Buttons/Button/Button.js.map +1 -0
  34. package/dist/{native/components/atoms → components/atoms/Buttons}/Button/Button.styles.d.ts +1 -1
  35. package/dist/components/atoms/Buttons/Button/Button.styles.d.ts.map +1 -0
  36. package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonIcon.cjs +1 -1
  37. package/dist/components/atoms/Buttons/Button/components/ButtonIcon.cjs.map +1 -0
  38. package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonIcon.d.ts +1 -1
  39. package/dist/components/atoms/Buttons/Button/components/ButtonIcon.d.ts.map +1 -0
  40. package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonIcon.js +1 -1
  41. package/dist/components/atoms/Buttons/Button/components/ButtonIcon.js.map +1 -0
  42. package/dist/components/atoms/Buttons/Button/components/ButtonSpinner.cjs.map +1 -0
  43. package/dist/components/atoms/Buttons/Button/components/ButtonSpinner.d.ts.map +1 -0
  44. package/dist/components/atoms/Buttons/Button/components/ButtonSpinner.js.map +1 -0
  45. package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.cjs +61 -0
  46. package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.cjs.map +1 -0
  47. package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.d.ts +27 -0
  48. package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.d.ts.map +1 -0
  49. package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.js +59 -0
  50. package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.js.map +1 -0
  51. package/dist/components/atoms/Buttons/CloseButton/CloseButton.cjs +31 -0
  52. package/dist/components/atoms/Buttons/CloseButton/CloseButton.cjs.map +1 -0
  53. package/dist/components/atoms/Buttons/CloseButton/CloseButton.d.ts +19 -0
  54. package/dist/components/atoms/Buttons/CloseButton/CloseButton.d.ts.map +1 -0
  55. package/dist/components/atoms/Buttons/CloseButton/CloseButton.js +29 -0
  56. package/dist/components/atoms/Buttons/CloseButton/CloseButton.js.map +1 -0
  57. package/dist/components/atoms/Buttons/CopyButton/CopyButton.cjs +27 -0
  58. package/dist/components/atoms/Buttons/CopyButton/CopyButton.cjs.map +1 -0
  59. package/dist/components/atoms/Buttons/CopyButton/CopyButton.d.ts +28 -0
  60. package/dist/components/atoms/Buttons/CopyButton/CopyButton.d.ts.map +1 -0
  61. package/dist/components/atoms/Buttons/CopyButton/CopyButton.js +25 -0
  62. package/dist/components/atoms/Buttons/CopyButton/CopyButton.js.map +1 -0
  63. package/dist/components/atoms/Buttons/IconButton/IconButton.cjs +59 -0
  64. package/dist/components/atoms/Buttons/IconButton/IconButton.cjs.map +1 -0
  65. package/dist/components/atoms/Buttons/IconButton/IconButton.d.ts +65 -0
  66. package/dist/components/atoms/Buttons/IconButton/IconButton.d.ts.map +1 -0
  67. package/dist/components/atoms/Buttons/IconButton/IconButton.js +56 -0
  68. package/dist/components/atoms/Buttons/IconButton/IconButton.js.map +1 -0
  69. package/dist/components/atoms/Buttons/index.cjs +14 -0
  70. package/dist/components/atoms/Buttons/index.cjs.map +1 -0
  71. package/dist/components/atoms/Buttons/index.d.ts +18 -0
  72. package/dist/components/atoms/Buttons/index.d.ts.map +1 -0
  73. package/dist/components/atoms/Buttons/index.js +5 -0
  74. package/dist/components/atoms/Buttons/index.js.map +1 -0
  75. package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.cjs +1 -1
  76. package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.js +1 -1
  77. package/dist/components/atoms/Checkboxes/Checkbox/components/CheckboxBase.cjs.map +1 -0
  78. package/dist/components/atoms/Checkboxes/Checkbox/components/CheckboxBase.d.ts.map +1 -0
  79. package/dist/components/atoms/Checkboxes/Checkbox/components/CheckboxBase.js.map +1 -0
  80. package/dist/components/atoms/Checkboxes/CheckboxGroup/CheckboxGroup.cjs +2 -2
  81. package/dist/components/atoms/Checkboxes/CheckboxGroup/CheckboxGroup.cjs.map +1 -1
  82. package/dist/components/atoms/Checkboxes/CheckboxGroup/CheckboxGroup.js +1 -1
  83. package/dist/components/atoms/Checkboxes/index.cjs +1 -1
  84. package/dist/components/atoms/Checkboxes/index.d.ts +2 -2
  85. package/dist/components/atoms/Checkboxes/index.d.ts.map +1 -1
  86. package/dist/components/atoms/Checkboxes/index.js +1 -1
  87. package/dist/components/atoms/CloseButton/index.cjs +3 -26
  88. package/dist/components/atoms/CloseButton/index.cjs.map +1 -1
  89. package/dist/components/atoms/CloseButton/index.d.ts +5 -18
  90. package/dist/components/atoms/CloseButton/index.d.ts.map +1 -1
  91. package/dist/components/atoms/CloseButton/index.js +3 -26
  92. package/dist/components/atoms/CloseButton/index.js.map +1 -1
  93. package/dist/components/atoms/CopyButton/index.cjs +3 -21
  94. package/dist/components/atoms/CopyButton/index.cjs.map +1 -1
  95. package/dist/components/atoms/CopyButton/index.d.ts +5 -27
  96. package/dist/components/atoms/CopyButton/index.d.ts.map +1 -1
  97. package/dist/components/atoms/CopyButton/index.js +3 -21
  98. package/dist/components/atoms/CopyButton/index.js.map +1 -1
  99. package/dist/components/atoms/Input/index.cjs +13 -84
  100. package/dist/components/atoms/Input/index.cjs.map +1 -1
  101. package/dist/components/atoms/Input/index.d.ts +20 -70
  102. package/dist/components/atoms/Input/index.d.ts.map +1 -1
  103. package/dist/components/atoms/Input/index.js +11 -82
  104. package/dist/components/atoms/Input/index.js.map +1 -1
  105. package/dist/components/atoms/Inputs/Input/Input.cjs +89 -0
  106. package/dist/components/atoms/Inputs/Input/Input.cjs.map +1 -0
  107. package/dist/components/atoms/Inputs/Input/Input.d.ts +74 -0
  108. package/dist/components/atoms/Inputs/Input/Input.d.ts.map +1 -0
  109. package/dist/components/atoms/Inputs/Input/Input.js +85 -0
  110. package/dist/components/atoms/Inputs/Input/Input.js.map +1 -0
  111. package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs +60 -0
  112. package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs.map +1 -0
  113. package/dist/components/atoms/Inputs/SearchInput/SearchInput.d.ts +47 -0
  114. package/dist/components/atoms/Inputs/SearchInput/SearchInput.d.ts.map +1 -0
  115. package/dist/components/atoms/Inputs/SearchInput/SearchInput.js +58 -0
  116. package/dist/components/atoms/Inputs/SearchInput/SearchInput.js.map +1 -0
  117. package/dist/components/atoms/Inputs/TextArea/TextArea.cjs +41 -0
  118. package/dist/components/atoms/Inputs/TextArea/TextArea.cjs.map +1 -0
  119. package/dist/components/atoms/Inputs/TextArea/TextArea.d.ts +51 -0
  120. package/dist/components/atoms/Inputs/TextArea/TextArea.d.ts.map +1 -0
  121. package/dist/components/atoms/Inputs/TextArea/TextArea.js +38 -0
  122. package/dist/components/atoms/Inputs/TextArea/TextArea.js.map +1 -0
  123. package/dist/components/atoms/Inputs/components/HintText.cjs.map +1 -0
  124. package/dist/components/atoms/Inputs/components/HintText.d.ts.map +1 -0
  125. package/dist/components/atoms/Inputs/components/HintText.js.map +1 -0
  126. package/dist/components/atoms/Inputs/components/Label.cjs.map +1 -0
  127. package/dist/components/atoms/Inputs/components/Label.d.ts.map +1 -0
  128. package/dist/components/atoms/Inputs/components/Label.js.map +1 -0
  129. package/dist/components/atoms/Inputs/index.cjs +19 -0
  130. package/dist/components/atoms/Inputs/index.cjs.map +1 -0
  131. package/dist/components/atoms/Inputs/index.d.ts +19 -0
  132. package/dist/components/atoms/Inputs/index.d.ts.map +1 -0
  133. package/dist/components/atoms/Inputs/index.js +6 -0
  134. package/dist/components/atoms/Inputs/index.js.map +1 -0
  135. package/dist/components/atoms/Radios/RadioButton/RadioButton.cjs +1 -1
  136. package/dist/components/atoms/Radios/RadioButton/RadioButton.js +1 -1
  137. package/dist/components/atoms/Radios/RadioButton/components/RadioButtonBase.cjs.map +1 -0
  138. package/dist/components/atoms/Radios/RadioButton/components/RadioButtonBase.d.ts.map +1 -0
  139. package/dist/components/atoms/Radios/RadioButton/components/RadioButtonBase.js.map +1 -0
  140. package/dist/components/atoms/Radios/index.cjs +2 -2
  141. package/dist/components/atoms/Radios/index.d.ts +2 -2
  142. package/dist/components/atoms/Radios/index.d.ts.map +1 -1
  143. package/dist/components/atoms/Radios/index.js +1 -1
  144. package/dist/components/atoms/SearchInput/index.cjs +3 -52
  145. package/dist/components/atoms/SearchInput/index.cjs.map +1 -1
  146. package/dist/components/atoms/SearchInput/index.d.ts +5 -43
  147. package/dist/components/atoms/SearchInput/index.d.ts.map +1 -1
  148. package/dist/components/atoms/SearchInput/index.js +3 -52
  149. package/dist/components/atoms/SearchInput/index.js.map +1 -1
  150. package/dist/components/atoms/Slider/index.cjs +3 -3
  151. package/dist/components/atoms/Slider/index.cjs.map +1 -1
  152. package/dist/components/atoms/Slider/index.js +1 -1
  153. package/dist/components/atoms/UtilityButton/index.cjs +6 -51
  154. package/dist/components/atoms/UtilityButton/index.cjs.map +1 -1
  155. package/dist/components/atoms/UtilityButton/index.d.ts +12 -54
  156. package/dist/components/atoms/UtilityButton/index.d.ts.map +1 -1
  157. package/dist/components/atoms/UtilityButton/index.js +6 -51
  158. package/dist/components/atoms/UtilityButton/index.js.map +1 -1
  159. package/dist/components/atoms/VerificationCodeInput/index.cjs +96 -0
  160. package/dist/components/atoms/VerificationCodeInput/index.cjs.map +1 -0
  161. package/dist/components/atoms/VerificationCodeInput/index.d.ts +70 -0
  162. package/dist/components/atoms/VerificationCodeInput/index.d.ts.map +1 -0
  163. package/dist/components/atoms/VerificationCodeInput/index.js +93 -0
  164. package/dist/components/atoms/VerificationCodeInput/index.js.map +1 -0
  165. package/dist/components/forms/FormFooter/index.cjs +2 -2
  166. package/dist/components/forms/FormFooter/index.cjs.map +1 -1
  167. package/dist/components/forms/FormFooter/index.js +1 -1
  168. package/dist/components/forms/fields/FormInput/index.cjs +2 -2
  169. package/dist/components/forms/fields/FormInput/index.d.ts +1 -1
  170. package/dist/components/forms/fields/FormInput/index.d.ts.map +1 -1
  171. package/dist/components/forms/fields/FormInput/index.js +1 -1
  172. package/dist/components/forms/fields/FormRadioCardGroup/index.cjs +2 -2
  173. package/dist/components/forms/fields/FormRadioCardGroup/index.cjs.map +1 -1
  174. package/dist/components/forms/fields/FormRadioCardGroup/index.js +1 -1
  175. package/dist/components/forms/fields/FormRadioGroup/index.cjs +2 -2
  176. package/dist/components/forms/fields/FormRadioGroup/index.cjs.map +1 -1
  177. package/dist/components/forms/fields/FormRadioGroup/index.js +1 -1
  178. package/dist/components/forms/fields/FormSlider/index.cjs +2 -2
  179. package/dist/components/forms/fields/FormSlider/index.cjs.map +1 -1
  180. package/dist/components/forms/fields/FormSlider/index.js +1 -1
  181. package/dist/components/forms/fields/FormTextArea/index.cjs +2 -2
  182. package/dist/components/forms/fields/FormTextArea/index.d.ts +2 -2
  183. package/dist/components/forms/fields/FormTextArea/index.d.ts.map +1 -1
  184. package/dist/components/forms/fields/FormTextArea/index.js +1 -1
  185. package/dist/components/molecules/ActivityFeed/index.cjs +2 -2
  186. package/dist/components/molecules/ActivityFeed/index.js +1 -1
  187. package/dist/components/molecules/Alerts/Alert/Alert.cjs +3 -4
  188. package/dist/components/molecules/Alerts/Alert/Alert.cjs.map +1 -1
  189. package/dist/components/molecules/Alerts/Alert/Alert.d.ts.map +1 -1
  190. package/dist/components/molecules/Alerts/Alert/Alert.js +1 -2
  191. package/dist/components/molecules/Alerts/Alert/Alert.js.map +1 -1
  192. package/dist/components/molecules/Dropdown/index.cjs +2 -2
  193. package/dist/components/molecules/Dropdown/index.cjs.map +1 -1
  194. package/dist/components/molecules/Dropdown/index.d.ts +1 -1
  195. package/dist/components/molecules/Dropdown/index.d.ts.map +1 -1
  196. package/dist/components/molecules/Dropdown/index.js +1 -1
  197. package/dist/components/molecules/EmptyState/index.cjs +2 -2
  198. package/dist/components/molecules/EmptyState/index.cjs.map +1 -1
  199. package/dist/components/molecules/EmptyState/index.js +1 -1
  200. package/dist/components/molecules/Modals/ConfirmationModal/ConfirmationModal.cjs +2 -2
  201. package/dist/components/molecules/Modals/ConfirmationModal/ConfirmationModal.cjs.map +1 -1
  202. package/dist/components/molecules/Modals/ConfirmationModal/ConfirmationModal.js +1 -1
  203. package/dist/components/molecules/Modals/UnsavedChangesModal/UnsavedChangesModal.cjs +2 -2
  204. package/dist/components/molecules/Modals/UnsavedChangesModal/UnsavedChangesModal.cjs.map +1 -1
  205. package/dist/components/molecules/Modals/UnsavedChangesModal/UnsavedChangesModal.js +1 -1
  206. package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.cjs +2 -3
  207. package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.cjs.map +1 -1
  208. package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.d.ts.map +1 -1
  209. package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.js +1 -2
  210. package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.js.map +1 -1
  211. package/dist/components/molecules/Notifications/IconNotification/IconNotification.cjs +2 -3
  212. package/dist/components/molecules/Notifications/IconNotification/IconNotification.cjs.map +1 -1
  213. package/dist/components/molecules/Notifications/IconNotification/IconNotification.d.ts.map +1 -1
  214. package/dist/components/molecules/Notifications/IconNotification/IconNotification.js +1 -2
  215. package/dist/components/molecules/Notifications/IconNotification/IconNotification.js.map +1 -1
  216. package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.cjs +2 -3
  217. package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.cjs.map +1 -1
  218. package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.d.ts.map +1 -1
  219. package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.js +1 -2
  220. package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.js.map +1 -1
  221. package/dist/components/molecules/Paginations/Pagination/Pagination.cjs +4 -4
  222. package/dist/components/molecules/Paginations/Pagination/Pagination.cjs.map +1 -1
  223. package/dist/components/molecules/Paginations/Pagination/Pagination.js +2 -2
  224. package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.cjs +2 -2
  225. package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.cjs.map +1 -1
  226. package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.js +1 -1
  227. package/dist/components/molecules/Select/index.d.ts +1 -1
  228. package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs +6 -6
  229. package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs.map +1 -1
  230. package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js +2 -2
  231. package/dist/components/molecules/Selects/Select/Select.cjs +4 -4
  232. package/dist/components/molecules/Selects/Select/Select.cjs.map +1 -1
  233. package/dist/components/molecules/Selects/Select/Select.d.ts +1 -1
  234. package/dist/components/molecules/Selects/Select/Select.d.ts.map +1 -1
  235. package/dist/components/molecules/Selects/Select/Select.js +3 -3
  236. package/dist/components/molecules/Selects/Select/{Combobox.cjs → components/Combobox.cjs} +8 -8
  237. package/dist/components/molecules/Selects/Select/components/Combobox.cjs.map +1 -0
  238. package/dist/components/molecules/Selects/Select/{Combobox.d.ts → components/Combobox.d.ts} +1 -1
  239. package/dist/components/molecules/Selects/Select/components/Combobox.d.ts.map +1 -0
  240. package/dist/components/molecules/Selects/Select/{Combobox.js → components/Combobox.js} +6 -6
  241. package/dist/components/molecules/Selects/Select/components/Combobox.js.map +1 -0
  242. package/dist/components/molecules/Selects/Select/{Popover.cjs → components/Popover.cjs} +1 -1
  243. package/dist/components/molecules/Selects/Select/components/Popover.cjs.map +1 -0
  244. package/dist/components/molecules/Selects/Select/components/Popover.d.ts.map +1 -0
  245. package/dist/components/molecules/Selects/Select/{Popover.js → components/Popover.js} +1 -1
  246. package/dist/components/molecules/Selects/Select/components/Popover.js.map +1 -0
  247. package/dist/components/molecules/Tags/Tag/Tag.cjs +3 -3
  248. package/dist/components/molecules/Tags/Tag/Tag.js +3 -3
  249. package/dist/components/molecules/Tags/Tag/{TagAvatar.cjs → components/TagAvatar.cjs} +1 -1
  250. package/dist/components/molecules/Tags/Tag/components/TagAvatar.cjs.map +1 -0
  251. package/dist/components/molecules/Tags/Tag/components/TagAvatar.d.ts.map +1 -0
  252. package/dist/components/molecules/Tags/Tag/{TagAvatar.js → components/TagAvatar.js} +1 -1
  253. package/dist/components/molecules/Tags/Tag/components/TagAvatar.js.map +1 -0
  254. package/dist/components/molecules/Tags/Tag/{TagCheckbox.cjs → components/TagCheckbox.cjs} +1 -1
  255. package/dist/components/molecules/Tags/Tag/components/TagCheckbox.cjs.map +1 -0
  256. package/dist/components/molecules/Tags/Tag/{TagCheckbox.d.ts → components/TagCheckbox.d.ts} +1 -1
  257. package/dist/components/molecules/Tags/Tag/components/TagCheckbox.d.ts.map +1 -0
  258. package/dist/components/molecules/Tags/Tag/{TagCheckbox.js → components/TagCheckbox.js} +1 -1
  259. package/dist/components/molecules/Tags/Tag/components/TagCheckbox.js.map +1 -0
  260. package/dist/components/molecules/Tags/Tag/{TagCloseX.cjs → components/TagCloseX.cjs} +1 -1
  261. package/dist/components/molecules/Tags/Tag/components/TagCloseX.cjs.map +1 -0
  262. package/dist/components/molecules/Tags/Tag/{TagCloseX.d.ts → components/TagCloseX.d.ts} +1 -1
  263. package/dist/components/molecules/Tags/Tag/components/TagCloseX.d.ts.map +1 -0
  264. package/dist/components/molecules/Tags/Tag/{TagCloseX.js → components/TagCloseX.js} +1 -1
  265. package/dist/components/molecules/Tags/Tag/components/TagCloseX.js.map +1 -0
  266. package/dist/components/molecules/Tags/index.cjs +2 -2
  267. package/dist/components/molecules/Tags/index.d.ts +1 -1
  268. package/dist/components/molecules/Tags/index.d.ts.map +1 -1
  269. package/dist/components/molecules/Tags/index.js +1 -1
  270. package/dist/components/molecules/TextArea/index.cjs +5 -30
  271. package/dist/components/molecules/TextArea/index.cjs.map +1 -1
  272. package/dist/components/molecules/TextArea/index.d.ts +7 -47
  273. package/dist/components/molecules/TextArea/index.d.ts.map +1 -1
  274. package/dist/components/molecules/TextArea/index.js +5 -30
  275. package/dist/components/molecules/TextArea/index.js.map +1 -1
  276. package/dist/components/molecules/VerificationCodeInput/index.cjs +5 -89
  277. package/dist/components/molecules/VerificationCodeInput/index.cjs.map +1 -1
  278. package/dist/components/molecules/VerificationCodeInput/index.d.ts +9 -69
  279. package/dist/components/molecules/VerificationCodeInput/index.d.ts.map +1 -1
  280. package/dist/components/molecules/VerificationCodeInput/index.js +5 -89
  281. package/dist/components/molecules/VerificationCodeInput/index.js.map +1 -1
  282. package/dist/components/organisms/Calendar/components/CalendarDayView.cjs +2 -3
  283. package/dist/components/organisms/Calendar/components/CalendarDayView.cjs.map +1 -1
  284. package/dist/components/organisms/Calendar/components/CalendarDayView.d.ts.map +1 -1
  285. package/dist/components/organisms/Calendar/components/CalendarDayView.js +2 -3
  286. package/dist/components/organisms/Calendar/components/CalendarDayView.js.map +1 -1
  287. package/dist/components/organisms/Calendar/components/CalendarDwViewCell.cjs +2 -2
  288. package/dist/components/organisms/Calendar/components/CalendarDwViewCell.cjs.map +1 -1
  289. package/dist/components/organisms/Calendar/components/CalendarDwViewCell.js +1 -1
  290. package/dist/components/organisms/Calendar/components/CalendarHeader.cjs +2 -2
  291. package/dist/components/organisms/Calendar/components/CalendarHeader.cjs.map +1 -1
  292. package/dist/components/organisms/Calendar/components/CalendarHeader.js +1 -1
  293. package/dist/components/organisms/Calendar/components/CalendarMonthViewCell.cjs +2 -2
  294. package/dist/components/organisms/Calendar/components/CalendarMonthViewCell.cjs.map +1 -1
  295. package/dist/components/organisms/Calendar/components/CalendarMonthViewCell.js +1 -1
  296. package/dist/components/organisms/Calendar/components/CalendarViewDropdown.cjs +2 -2
  297. package/dist/components/organisms/Calendar/components/CalendarViewDropdown.cjs.map +1 -1
  298. package/dist/components/organisms/Calendar/components/CalendarViewDropdown.js +1 -1
  299. package/dist/components/organisms/CodeSnippet/index.cjs +3 -4
  300. package/dist/components/organisms/CodeSnippet/index.cjs.map +1 -1
  301. package/dist/components/organisms/CodeSnippet/index.d.ts.map +1 -1
  302. package/dist/components/organisms/CodeSnippet/index.js +3 -4
  303. package/dist/components/organisms/CodeSnippet/index.js.map +1 -1
  304. package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs +4 -4
  305. package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs.map +1 -1
  306. package/dist/components/organisms/ColorPicker/components/ColorPickerField.d.ts +1 -1
  307. package/dist/components/organisms/ColorPicker/components/ColorPickerField.d.ts.map +1 -1
  308. package/dist/components/organisms/ColorPicker/components/ColorPickerField.js +2 -2
  309. package/dist/components/organisms/ColorPicker/index.cjs +3 -3
  310. package/dist/components/organisms/ColorPicker/index.cjs.map +1 -1
  311. package/dist/components/organisms/ColorPicker/index.d.ts +1 -1
  312. package/dist/components/organisms/ColorPicker/index.d.ts.map +1 -1
  313. package/dist/components/organisms/ColorPicker/index.js +1 -1
  314. package/dist/components/organisms/CommandMenu/components/CommandMenuFooter.cjs +2 -2
  315. package/dist/components/organisms/CommandMenu/components/CommandMenuFooter.cjs.map +1 -1
  316. package/dist/components/organisms/CommandMenu/components/CommandMenuFooter.js +1 -1
  317. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs +5 -5
  318. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs.map +1 -1
  319. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts +1 -1
  320. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts.map +1 -1
  321. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js +3 -3
  322. package/dist/components/organisms/DatePickers/DatePicker/{Calendar.cjs → components/Calendar.cjs} +4 -4
  323. package/dist/components/organisms/DatePickers/DatePicker/components/Calendar.cjs.map +1 -0
  324. package/dist/components/organisms/DatePickers/DatePicker/components/Calendar.d.ts.map +1 -0
  325. package/dist/components/organisms/DatePickers/DatePicker/{Calendar.js → components/Calendar.js} +3 -3
  326. package/dist/components/organisms/DatePickers/DatePicker/components/Calendar.js.map +1 -0
  327. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs +5 -5
  328. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs.map +1 -1
  329. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts +1 -1
  330. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  331. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js +2 -2
  332. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js.map +1 -1
  333. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.cjs +3 -3
  334. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.cjs.map +1 -1
  335. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.d.ts.map +1 -1
  336. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js +1 -1
  337. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js.map +1 -1
  338. package/dist/components/organisms/DatePickers/components/InputDate.cjs +1 -1
  339. package/dist/components/organisms/DatePickers/components/InputDate.js +1 -1
  340. package/dist/components/organisms/FileUpload/index.cjs +4 -5
  341. package/dist/components/organisms/FileUpload/index.cjs.map +1 -1
  342. package/dist/components/organisms/FileUpload/index.d.ts.map +1 -1
  343. package/dist/components/organisms/FileUpload/index.js +3 -4
  344. package/dist/components/organisms/FileUpload/index.js.map +1 -1
  345. package/dist/components/organisms/FilterBar/components/FilterDropdownMenu.cjs +3 -3
  346. package/dist/components/organisms/FilterBar/components/FilterDropdownMenu.cjs.map +1 -1
  347. package/dist/components/organisms/FilterBar/components/FilterDropdownMenu.js +1 -1
  348. package/dist/components/organisms/GradientPicker/components/GradientReverseButton.cjs +2 -2
  349. package/dist/components/organisms/GradientPicker/components/GradientReverseButton.cjs.map +1 -1
  350. package/dist/components/organisms/GradientPicker/components/GradientReverseButton.js +2 -2
  351. package/dist/components/organisms/GradientPicker/components/GradientReverseButton.js.map +1 -1
  352. package/dist/components/organisms/GradientPicker/components/GradientStopList.cjs +2 -2
  353. package/dist/components/organisms/GradientPicker/components/GradientStopList.cjs.map +1 -1
  354. package/dist/components/organisms/GradientPicker/components/GradientStopList.js +1 -1
  355. package/dist/components/organisms/GradientPicker/components/GradientStopRow.cjs +2 -2
  356. package/dist/components/organisms/GradientPicker/components/GradientStopRow.cjs.map +1 -1
  357. package/dist/components/organisms/GradientPicker/components/GradientStopRow.js +2 -2
  358. package/dist/components/organisms/GradientPicker/components/GradientStopRow.js.map +1 -1
  359. package/dist/components/organisms/GradientPicker/components/GradientTypeSelect.cjs +2 -2
  360. package/dist/components/organisms/GradientPicker/components/GradientTypeSelect.cjs.map +1 -1
  361. package/dist/components/organisms/GradientPicker/components/GradientTypeSelect.js +1 -1
  362. package/dist/components/organisms/HeaderNavigation/components/NavAccountCard.cjs +2 -2
  363. package/dist/components/organisms/HeaderNavigation/components/NavAccountCard.cjs.map +1 -1
  364. package/dist/components/organisms/HeaderNavigation/components/NavAccountCard.js +1 -1
  365. package/dist/components/organisms/HeaderNavigation/index.cjs +2 -2
  366. package/dist/components/organisms/HeaderNavigation/index.cjs.map +1 -1
  367. package/dist/components/organisms/HeaderNavigation/index.js +1 -1
  368. package/dist/components/organisms/ImagePicker/index.cjs +4 -5
  369. package/dist/components/organisms/ImagePicker/index.cjs.map +1 -1
  370. package/dist/components/organisms/ImagePicker/index.d.ts.map +1 -1
  371. package/dist/components/organisms/ImagePicker/index.js +2 -3
  372. package/dist/components/organisms/ImagePicker/index.js.map +1 -1
  373. package/dist/components/organisms/PageHeader/index.cjs +2 -2
  374. package/dist/components/organisms/PageHeader/index.cjs.map +1 -1
  375. package/dist/components/organisms/PageHeader/index.js +1 -1
  376. package/dist/components/organisms/SidePanel/components/SidePanelHeader.cjs +4 -5
  377. package/dist/components/organisms/SidePanel/components/SidePanelHeader.cjs.map +1 -1
  378. package/dist/components/organisms/SidePanel/components/SidePanelHeader.d.ts.map +1 -1
  379. package/dist/components/organisms/SidePanel/components/SidePanelHeader.js +2 -3
  380. package/dist/components/organisms/SidePanel/components/SidePanelHeader.js.map +1 -1
  381. package/dist/components/organisms/SidebarNavigation/index.cjs +2 -2
  382. package/dist/components/organisms/SidebarNavigation/index.cjs.map +1 -1
  383. package/dist/components/organisms/SidebarNavigation/index.js +2 -2
  384. package/dist/components/organisms/SidebarNavigation/index.js.map +1 -1
  385. package/dist/components/organisms/SlideoutMenu/index.cjs +2 -3
  386. package/dist/components/organisms/SlideoutMenu/index.cjs.map +1 -1
  387. package/dist/components/organisms/SlideoutMenu/index.d.ts.map +1 -1
  388. package/dist/components/organisms/SlideoutMenu/index.js +2 -3
  389. package/dist/components/organisms/SlideoutMenu/index.js.map +1 -1
  390. package/dist/components/organisms/TextEditor/components/TextEditorExtensions.cjs +2 -2
  391. package/dist/components/organisms/TextEditor/components/TextEditorExtensions.cjs.map +1 -1
  392. package/dist/components/organisms/TextEditor/components/TextEditorExtensions.js +1 -1
  393. package/dist/components/organisms/TextEditor/index.cjs +3 -3
  394. package/dist/components/organisms/TextEditor/index.cjs.map +1 -1
  395. package/dist/components/organisms/TextEditor/index.d.ts +1 -1
  396. package/dist/components/organisms/TextEditor/index.d.ts.map +1 -1
  397. package/dist/components/organisms/TextEditor/index.js +1 -1
  398. package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.cjs +35 -8
  399. package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.cjs.map +1 -1
  400. package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.d.ts +5 -5
  401. package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.d.ts.map +1 -1
  402. package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.js +36 -9
  403. package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.js.map +1 -1
  404. package/dist/native/components/atoms/Button/index.d.ts +14 -65
  405. package/dist/native/components/atoms/Button/index.d.ts.map +1 -1
  406. package/dist/native/components/atoms/Button/index.js +6 -145
  407. package/dist/native/components/atoms/Button/index.js.map +1 -1
  408. package/dist/native/components/atoms/Buttons/Button/Button.d.ts +66 -0
  409. package/dist/native/components/atoms/Buttons/Button/Button.d.ts.map +1 -0
  410. package/dist/native/components/atoms/Buttons/Button/Button.js +149 -0
  411. package/dist/native/components/atoms/Buttons/Button/Button.js.map +1 -0
  412. package/dist/{components/atoms → native/components/atoms/Buttons}/Button/Button.styles.d.ts +1 -1
  413. package/dist/native/components/atoms/Buttons/Button/Button.styles.d.ts.map +1 -0
  414. package/dist/native/components/atoms/{Button → Buttons/Button}/Button.styles.js +1 -1
  415. package/dist/native/components/atoms/Buttons/Button/Button.styles.js.map +1 -0
  416. package/dist/native/components/atoms/Buttons/index.d.ts +4 -0
  417. package/dist/native/components/atoms/Buttons/index.d.ts.map +1 -0
  418. package/dist/native/components/atoms/Buttons/index.js +2 -0
  419. package/dist/native/components/atoms/Buttons/index.js.map +1 -0
  420. package/dist/native/components/atoms/Inputs/index.d.ts +12 -0
  421. package/dist/native/components/atoms/VerificationCodeInput/index.d.ts +12 -0
  422. package/package.json +1 -1
  423. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.cjs.map +0 -1
  424. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.d.ts.map +0 -1
  425. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.js.map +0 -1
  426. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.cjs.map +0 -1
  427. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.d.ts.map +0 -1
  428. package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.js.map +0 -1
  429. package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.cjs.map +0 -1
  430. package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.d.ts.map +0 -1
  431. package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.js.map +0 -1
  432. package/dist/components/atoms/Button/Button.styles.d.ts.map +0 -1
  433. package/dist/components/atoms/Button/components/ButtonIcon.cjs.map +0 -1
  434. package/dist/components/atoms/Button/components/ButtonIcon.d.ts.map +0 -1
  435. package/dist/components/atoms/Button/components/ButtonIcon.js.map +0 -1
  436. package/dist/components/atoms/Button/components/ButtonSpinner.cjs.map +0 -1
  437. package/dist/components/atoms/Button/components/ButtonSpinner.d.ts.map +0 -1
  438. package/dist/components/atoms/Button/components/ButtonSpinner.js.map +0 -1
  439. package/dist/components/atoms/Checkboxes/Checkbox/CheckboxBase.cjs.map +0 -1
  440. package/dist/components/atoms/Checkboxes/Checkbox/CheckboxBase.d.ts.map +0 -1
  441. package/dist/components/atoms/Checkboxes/Checkbox/CheckboxBase.js.map +0 -1
  442. package/dist/components/atoms/Input/components/HintText.cjs.map +0 -1
  443. package/dist/components/atoms/Input/components/HintText.d.ts.map +0 -1
  444. package/dist/components/atoms/Input/components/HintText.js.map +0 -1
  445. package/dist/components/atoms/Input/components/Label.cjs.map +0 -1
  446. package/dist/components/atoms/Input/components/Label.d.ts.map +0 -1
  447. package/dist/components/atoms/Input/components/Label.js.map +0 -1
  448. package/dist/components/atoms/Radios/RadioButton/RadioButtonBase.cjs.map +0 -1
  449. package/dist/components/atoms/Radios/RadioButton/RadioButtonBase.d.ts.map +0 -1
  450. package/dist/components/atoms/Radios/RadioButton/RadioButtonBase.js.map +0 -1
  451. package/dist/components/molecules/Selects/Select/Combobox.cjs.map +0 -1
  452. package/dist/components/molecules/Selects/Select/Combobox.d.ts.map +0 -1
  453. package/dist/components/molecules/Selects/Select/Combobox.js.map +0 -1
  454. package/dist/components/molecules/Selects/Select/Popover.cjs.map +0 -1
  455. package/dist/components/molecules/Selects/Select/Popover.d.ts.map +0 -1
  456. package/dist/components/molecules/Selects/Select/Popover.js.map +0 -1
  457. package/dist/components/molecules/Tags/Tag/TagAvatar.cjs.map +0 -1
  458. package/dist/components/molecules/Tags/Tag/TagAvatar.d.ts.map +0 -1
  459. package/dist/components/molecules/Tags/Tag/TagAvatar.js.map +0 -1
  460. package/dist/components/molecules/Tags/Tag/TagCheckbox.cjs.map +0 -1
  461. package/dist/components/molecules/Tags/Tag/TagCheckbox.d.ts.map +0 -1
  462. package/dist/components/molecules/Tags/Tag/TagCheckbox.js.map +0 -1
  463. package/dist/components/molecules/Tags/Tag/TagCloseX.cjs.map +0 -1
  464. package/dist/components/molecules/Tags/Tag/TagCloseX.d.ts.map +0 -1
  465. package/dist/components/molecules/Tags/Tag/TagCloseX.js.map +0 -1
  466. package/dist/components/organisms/DatePickers/DatePicker/Calendar.cjs.map +0 -1
  467. package/dist/components/organisms/DatePickers/DatePicker/Calendar.d.ts.map +0 -1
  468. package/dist/components/organisms/DatePickers/DatePicker/Calendar.js.map +0 -1
  469. package/dist/native/components/atoms/Button/Button.styles.d.ts.map +0 -1
  470. package/dist/native/components/atoms/Button/Button.styles.js.map +0 -1
  471. /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreBadgeLink.cjs → components/AppStoreBadgeLink.cjs} +0 -0
  472. /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreBadgeLink.d.ts → components/AppStoreBadgeLink.d.ts} +0 -0
  473. /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreBadgeLink.js → components/AppStoreBadgeLink.js} +0 -0
  474. /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreButtonsOutline.d.ts → components/AppStoreButtonsOutline.d.ts} +0 -0
  475. /package/dist/components/atoms/BrandButtons/SocialButton/{SocialLogos.cjs → components/SocialLogos.cjs} +0 -0
  476. /package/dist/components/atoms/BrandButtons/SocialButton/{SocialLogos.d.ts → components/SocialLogos.d.ts} +0 -0
  477. /package/dist/components/atoms/BrandButtons/SocialButton/{SocialLogos.js → components/SocialLogos.js} +0 -0
  478. /package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonSpinner.cjs +0 -0
  479. /package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonSpinner.d.ts +0 -0
  480. /package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonSpinner.js +0 -0
  481. /package/dist/components/atoms/Checkboxes/Checkbox/{CheckboxBase.cjs → components/CheckboxBase.cjs} +0 -0
  482. /package/dist/components/atoms/Checkboxes/Checkbox/{CheckboxBase.d.ts → components/CheckboxBase.d.ts} +0 -0
  483. /package/dist/components/atoms/Checkboxes/Checkbox/{CheckboxBase.js → components/CheckboxBase.js} +0 -0
  484. /package/dist/components/atoms/{Input → Inputs}/components/HintText.cjs +0 -0
  485. /package/dist/components/atoms/{Input → Inputs}/components/HintText.d.ts +0 -0
  486. /package/dist/components/atoms/{Input → Inputs}/components/HintText.js +0 -0
  487. /package/dist/components/atoms/{Input → Inputs}/components/Label.cjs +0 -0
  488. /package/dist/components/atoms/{Input → Inputs}/components/Label.d.ts +0 -0
  489. /package/dist/components/atoms/{Input → Inputs}/components/Label.js +0 -0
  490. /package/dist/components/atoms/Radios/RadioButton/{RadioButtonBase.cjs → components/RadioButtonBase.cjs} +0 -0
  491. /package/dist/components/atoms/Radios/RadioButton/{RadioButtonBase.d.ts → components/RadioButtonBase.d.ts} +0 -0
  492. /package/dist/components/atoms/Radios/RadioButton/{RadioButtonBase.js → components/RadioButtonBase.js} +0 -0
  493. /package/dist/components/molecules/Selects/Select/{Popover.d.ts → components/Popover.d.ts} +0 -0
  494. /package/dist/components/molecules/Tags/Tag/{TagAvatar.d.ts → components/TagAvatar.d.ts} +0 -0
  495. /package/dist/components/organisms/DatePickers/DatePicker/{Calendar.d.ts → components/Calendar.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagAvatar.js","sources":["../../../../../../src/components/molecules/Tags/Tag/components/TagAvatar.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAOA;AACO,MAAM,SAAS,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,EAAE,SAAS,EAAsE,KAAI;;IAE9I,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU;AAEpD,IAAA,QACEA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,IAAI,0DAA0D,EAAE,SAAS,CAAC,EAAA,QAAA,EACvH,GAAG,IAAI,GAAG,KAAK,SAAS,IACvBA,GAAA,CAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,IAAA,EAAqB,SAAS,EAAC,wBAAwB,EAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC,GAAG,CAAC,EAAA,CAAI,KAEhHA,GAAA,CAAC,MAAM,EAAA,EAAC,SAAS,EAAC,2CAA2C,EAAA,CAAG,CACjE,EAAA,CACG;AAEV;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var cx = require('@flipdish/ui-library/utilities/cx');
5
- var Tags_styles = require('../Tags.styles.cjs');
5
+ var Tags_styles = require('../../Tags.styles.cjs');
6
6
 
7
7
  const TagCheckbox = ({ className, isFocused, isSelected, isDisabled, size = 'sm' }) => {
8
8
  return (jsxRuntime.jsx("div", { className: cx.cx('flex cursor-pointer appearance-none items-center justify-center rounded bg-primary ring-1 ring-primary ring-inset', Tags_styles.styles.checkbox[size].root, isSelected && 'bg-brand-solid ring-brand-solid', isDisabled && 'cursor-not-allowed opacity-50', isDisabled && !isSelected && 'bg-tertiary', isFocused && 'outline-2 outline-offset-2 outline-focus-ring', className), children: jsxRuntime.jsx("svg", { "aria-hidden": "true", viewBox: "0 0 14 14", fill: "none", className: cx.cx('pointer-events-none absolute text-fg-white opacity-0 transition-inherit-all', Tags_styles.styles.checkbox[size].icon, isSelected && 'opacity-100'), children: jsxRuntime.jsx("path", { d: "M11.6666 3.5L5.24992 9.91667L2.33325 7", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagCheckbox.cjs","sources":["../../../../../../src/components/molecules/Tags/Tag/components/TagCheckbox.tsx"],"sourcesContent":[null],"names":["_jsx","cx","styles"],"mappings":";;;;;;AAaO,MAAM,WAAW,GAAG,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,GAAG,IAAI,EAAoB,KAAI;IAC7G,QACEA,wBACE,SAAS,EAAEC,KAAE,CACX,mHAAmH,EACnHC,kBAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAC1B,UAAU,IAAI,iCAAiC,EAC/C,UAAU,IAAI,+BAA+B,EAC7C,UAAU,IAAI,CAAC,UAAU,IAAI,aAAa,EAC1C,SAAS,IAAI,+CAA+C,EAC5D,SAAS,CACV,EAAA,QAAA,EAEDF,cAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EACc,MAAM,EAClB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAEC,KAAE,CACX,6EAA6E,EAC7EC,kBAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAC1B,UAAU,IAAI,aAAa,CAC5B,EAAA,QAAA,EAEDF,cAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,wCAAwC,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAA,CAAG,EAAA,CAClI,EAAA,CACF;AAEV;AACA,WAAW,CAAC,WAAW,GAAG,aAAa;;"}
@@ -1,4 +1,4 @@
1
- import { type TagSize } from '../Tags.styles';
1
+ import { type TagSize } from '../../Tags.styles';
2
2
  interface TagCheckboxProps {
3
3
  size?: TagSize;
4
4
  className?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Tags/Tag/components/TagCheckbox.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEzD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,WAAW;6DAAmE,gBAAgB;;CA2B1G,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { cx } from '@flipdish/ui-library/utilities/cx';
3
- import { styles } from '../Tags.styles.js';
3
+ import { styles } from '../../Tags.styles.js';
4
4
 
5
5
  const TagCheckbox = ({ className, isFocused, isSelected, isDisabled, size = 'sm' }) => {
6
6
  return (jsx("div", { className: cx('flex cursor-pointer appearance-none items-center justify-center rounded bg-primary ring-1 ring-primary ring-inset', styles.checkbox[size].root, isSelected && 'bg-brand-solid ring-brand-solid', isDisabled && 'cursor-not-allowed opacity-50', isDisabled && !isSelected && 'bg-tertiary', isFocused && 'outline-2 outline-offset-2 outline-focus-ring', className), children: jsx("svg", { "aria-hidden": "true", viewBox: "0 0 14 14", fill: "none", className: cx('pointer-events-none absolute text-fg-white opacity-0 transition-inherit-all', styles.checkbox[size].icon, isSelected && 'opacity-100'), children: jsx("path", { d: "M11.6666 3.5L5.24992 9.91667L2.33325 7", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagCheckbox.js","sources":["../../../../../../src/components/molecules/Tags/Tag/components/TagCheckbox.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAaO,MAAM,WAAW,GAAG,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,GAAG,IAAI,EAAoB,KAAI;IAC7G,QACEA,aACE,SAAS,EAAE,EAAE,CACX,mHAAmH,EACnH,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAC1B,UAAU,IAAI,iCAAiC,EAC/C,UAAU,IAAI,+BAA+B,EAC7C,UAAU,IAAI,CAAC,UAAU,IAAI,aAAa,EAC1C,SAAS,IAAI,+CAA+C,EAC5D,SAAS,CACV,EAAA,QAAA,EAEDA,GAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EACc,MAAM,EAClB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,EAAE,CACX,6EAA6E,EAC7E,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAC1B,UAAU,IAAI,aAAa,CAC5B,EAAA,QAAA,EAEDA,GAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,wCAAwC,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAA,CAAG,EAAA,CAClI,EAAA,CACF;AAEV;AACA,WAAW,CAAC,WAAW,GAAG,aAAa;;"}
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var uiIcons = require('@flipdish/ui-icons');
5
5
  var cx = require('@flipdish/ui-library/utilities/cx');
6
6
  var reactAriaComponents = require('react-aria-components');
7
- var Tags_styles = require('../Tags.styles.cjs');
7
+ var Tags_styles = require('../../Tags.styles.cjs');
8
8
 
9
9
  const TagCloseX = ({ size = 'md', className, ...otherProps }) => {
10
10
  return (jsxRuntime.jsx(reactAriaComponents.Button, { slot: "remove", "aria-label": "Remove this tag", className: cx.cx('flex cursor-pointer rounded-[3px] text-fg-quaternary outline-transparent transition duration-100 ease-linear hover:bg-primary_hover hover:text-fg-quaternary_hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring disabled:cursor-not-allowed', Tags_styles.styles.close[size].root, className), ...otherProps, children: jsxRuntime.jsx(uiIcons.XClose, { className: cx.cx('transition-inherit-all', Tags_styles.styles.close[size].icon) }) }));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagCloseX.cjs","sources":["../../../../../../src/components/molecules/Tags/Tag/components/TagCloseX.tsx"],"sourcesContent":[null],"names":["_jsx","AriaButton","cx","styles","XClose"],"mappings":";;;;;;;;AAaO,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,SAAS,EAAE,GAAG,UAAU,EAAkB,KAAI;IACrF,QACEA,eAACC,0BAAU,EAAA,EACT,IAAI,EAAC,QAAQ,EAAA,YAAA,EACF,iBAAiB,EAC5B,SAAS,EAAEC,KAAE,CACX,wRAAwR,EACxRC,kBAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EACvB,SAAS,CACV,EAAA,GACG,UAAU,EAAA,QAAA,EAEdH,cAAA,CAACI,cAAM,IAAC,SAAS,EAAEF,KAAE,CAAC,wBAAwB,EAAEC,kBAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAA,CAAI,EAAA,CACjE;AAEjB;;"}
@@ -1,6 +1,6 @@
1
1
  import type { RefAttributes } from 'react';
2
2
  import { type ButtonProps as AriaButtonProps } from 'react-aria-components';
3
- import { type TagSize } from '../Tags.styles';
3
+ import { type TagSize } from '../../Tags.styles';
4
4
  interface TagCloseXProps extends AriaButtonProps, RefAttributes<HTMLButtonElement> {
5
5
  size?: TagSize;
6
6
  className?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagCloseX.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Tags/Tag/components/TagCloseX.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClG,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEzD,UAAU,cAAe,SAAQ,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAAC;IAChF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,GAAI,oCAA2C,cAAc,gCAelF,CAAC"}
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { XClose } from '@flipdish/ui-icons';
3
3
  import { cx } from '@flipdish/ui-library/utilities/cx';
4
4
  import { Button } from 'react-aria-components';
5
- import { styles } from '../Tags.styles.js';
5
+ import { styles } from '../../Tags.styles.js';
6
6
 
7
7
  const TagCloseX = ({ size = 'md', className, ...otherProps }) => {
8
8
  return (jsx(Button, { slot: "remove", "aria-label": "Remove this tag", className: cx('flex cursor-pointer rounded-[3px] text-fg-quaternary outline-transparent transition duration-100 ease-linear hover:bg-primary_hover hover:text-fg-quaternary_hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring disabled:cursor-not-allowed', styles.close[size].root, className), ...otherProps, children: jsx(XClose, { className: cx('transition-inherit-all', styles.close[size].icon) }) }));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagCloseX.js","sources":["../../../../../../src/components/molecules/Tags/Tag/components/TagCloseX.tsx"],"sourcesContent":[null],"names":["_jsx","AriaButton"],"mappings":";;;;;;AAaO,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,SAAS,EAAE,GAAG,UAAU,EAAkB,KAAI;IACrF,QACEA,IAACC,MAAU,EAAA,EACT,IAAI,EAAC,QAAQ,EAAA,YAAA,EACF,iBAAiB,EAC5B,SAAS,EAAE,EAAE,CACX,wRAAwR,EACxR,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EACvB,SAAS,CACV,EAAA,GACG,UAAU,EAAA,QAAA,EAEdD,GAAA,CAAC,MAAM,IAAC,SAAS,EAAE,EAAE,CAAC,wBAAwB,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAA,CAAI,EAAA,CACjE;AAEjB;;"}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ var TagAvatar = require('./Tag/components/TagAvatar.cjs');
3
4
  var Tag = require('./Tag/Tag.cjs');
4
- var TagAvatar = require('./Tag/TagAvatar.cjs');
5
5
  var TagGroup = require('./TagGroup/TagGroup.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.Tag = Tag.Tag;
10
9
  exports.TagAvatar = TagAvatar.TagAvatar;
10
+ exports.Tag = Tag.Tag;
11
11
  exports.TagGroup = TagGroup.TagGroup;
12
12
  exports.TagList = TagGroup.TagList;
13
13
  //# sourceMappingURL=index.cjs.map
@@ -8,9 +8,9 @@
8
8
  * `exports` wildcard would make that folder a public path.
9
9
  */
10
10
  export type { DotColor } from '@flipdish/ui-library/components/atoms/Dot';
11
+ export { TagAvatar } from './Tag/components/TagAvatar';
11
12
  export type { TagItem } from './Tag/Tag';
12
13
  export { Tag } from './Tag/Tag';
13
- export { TagAvatar } from './Tag/TagAvatar';
14
14
  export type { TagGroupProps } from './TagGroup/TagGroup';
15
15
  export { TagGroup, TagList } from './TagGroup/TagGroup';
16
16
  export type { TagSize } from './Tags.styles';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Tags/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Tags/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -1,4 +1,4 @@
1
+ export { TagAvatar } from './Tag/components/TagAvatar.js';
1
2
  export { Tag } from './Tag/Tag.js';
2
- export { TagAvatar } from './Tag/TagAvatar.js';
3
3
  export { TagGroup, TagList } from './TagGroup/TagGroup.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,36 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var Input = require('@flipdish/ui-library/components/atoms/Input');
5
- var cx = require('@flipdish/ui-library/utilities/cx');
6
- var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
7
- var reactAriaComponents = require('react-aria-components');
3
+ var Inputs = require('@flipdish/ui-library/components/atoms/Inputs');
8
4
 
9
- // Creates a data URL for an SVG resize handle with a given color.
10
- const getResizeHandleBg = (color) => {
11
- return `url(data:image/svg+xml;base64,${btoa(`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 2L2 10" stroke="${color}" stroke-linecap="round"/><path d="M11 7L7 11" stroke="${color}" stroke-linecap="round"/></svg>`)})`;
12
- };
13
- /** Bare styled `<textarea>` with no label or hint; use it to compose a custom field, otherwise reach for `TextArea`. */
14
- const TextAreaBase = ({ className, size = 'md', 'data-testid': dataTestId, ...props }) => {
15
- const textAreaTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'text-area', rootName: 'text-area' });
16
- return (jsxRuntime.jsx(reactAriaComponents.TextArea, { ...props, "data-testid": textAreaTestId, style: {
17
- '--resize-handle-bg': getResizeHandleBg('#D5D7DA'),
18
- '--resize-handle-bg-dark': getResizeHandleBg('#373A41'),
19
- }, className: (state) => cx.cx('w-full scroll-py-3 rounded-lg bg-primary text-primary shadow-xs ring-1 ring-primary transition duration-100 ease-linear ring-inset placeholder:text-placeholder autofill:rounded-lg autofill:text-primary focus:outline-hidden', size === 'sm' && 'p-3 text-sm', size === 'md' && 'px-3.5 py-3 text-md',
20
- // Resize handle
21
- '[&::-webkit-resizer]:bg-(image:--resize-handle-bg) [&::-webkit-resizer]:bg-contain dark:[&::-webkit-resizer]:bg-(image:--resize-handle-bg-dark)', state.isFocused && !state.isDisabled && 'ring-2 ring-brand', state.isDisabled && 'cursor-not-allowed opacity-50', state.isInvalid && 'ring-error_subtle', state.isInvalid && state.isFocused && 'ring-2 ring-error', typeof className === 'function' ? className(state) : className) }));
22
- };
23
- TextAreaBase.displayName = 'TextAreaBase';
24
- /**
25
- * A multi-line text field for collecting longer-form user input. Composes a
26
- * label with optional tooltip, a resizable textarea, and optional hint text.
27
- *
28
- * @summary multi-line text field for collecting longer-form user input
29
- */
30
- const TextArea = ({ label, hint, tooltip, textAreaRef, hideRequiredIndicator, textAreaClassName, placeholder, className, rows, cols, size = 'md', 'data-testid': dataTestId, ...props }) => {
31
- return (jsxRuntime.jsx(reactAriaComponents.TextField, { ...props, className: (state) => cx.cx('group flex h-max w-full flex-col items-start justify-start gap-1.5', typeof className === 'function' ? className(state) : className), children: ({ isInvalid, isRequired }) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && (jsxRuntime.jsx(Input.Label, { isRequired: hideRequiredIndicator ? !hideRequiredIndicator : isRequired, tooltip: tooltip, children: label })), jsxRuntime.jsx(TextAreaBase, { placeholder: placeholder, className: textAreaClassName, ref: textAreaRef, rows: rows, cols: cols, size: size, "data-testid": dataTestId }), hint && (jsxRuntime.jsx(Input.HintText, { isInvalid: isInvalid, size: size, children: hint }))] })) }));
32
- };
33
- TextArea.displayName = 'TextArea';
5
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
6
+ const TextArea = Inputs.TextArea;
7
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
8
+ const TextAreaBase = Inputs.TextAreaBase;
34
9
 
35
10
  exports.TextArea = TextArea;
36
11
  exports.TextAreaBase = TextAreaBase;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/components/molecules/TextArea/index.tsx"],"sourcesContent":[null],"names":["useResolvedTestId","_jsx","AriaTextArea","cx","AriaTextField","_jsxs","_Fragment","Label","HintText"],"mappings":";;;;;;;;AASA;AACA,MAAM,iBAAiB,GAAG,CAAC,KAAa,KAAI;IAC1C,OAAO,CAAA,8BAAA,EAAiC,IAAI,CAAC,CAAA,4HAAA,EAA+H,KAAK,0DAA0D,KAAK,CAAA,gCAAA,CAAkC,CAAC,CAAA,CAAA,CAAG;AACxR,CAAC;AASD;MACa,YAAY,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE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E,EAAE,OAAO,SAAS,KAAK,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,EAAA,QAAA,EAGzI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MACzBE,eAAA,CAAAC,mBAAA,EAAA,EAAA,QAAA,EAAA,CACG,KAAK,KACJL,cAAA,CAACM,WAAK,EAAA,EAAC,UAAU,EAAE,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,UAAU,EAAE,OAAO,EAAE,OAAO,EAAA,QAAA,EAC7F,KAAK,EAAA,CACA,CACT,EAEDN,cAAA,CAAC,YAAY,EAAA,EACX,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EAAA,aAAA,EACG,UAAU,EAAA,CACvB,EAED,IAAI,KACHA,cAAA,CAACO,cAAQ,EAAA,EAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAA,QAAA,EACvC,IAAI,EAAA,CACI,CACZ,CAAA,EAAA,CACA,CACJ,EAAA,CACa;AAEpB;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../src/components/molecules/TextArea/index.tsx"],"sourcesContent":[null],"names":["TextAreaNext","TextAreaBaseNext"],"mappings":";;;;AAWA;AACO,MAAM,QAAQ,GAAGA;AACxB;AACO,MAAM,YAAY,GAA4BC;;;"}
@@ -1,51 +1,11 @@
1
- import type { ReactNode, Ref } from 'react';
2
- import type { TextAreaProps as AriaTextAreaProps, TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
3
- interface TextAreaBaseProps extends AriaTextAreaProps {
4
- ref?: Ref<HTMLTextAreaElement>;
5
- size?: 'sm' | 'md';
6
- /** Overrides the `data-testid` applied to the underlying `<textarea>` (defaults to `fd-text-area`). */
7
- 'data-testid'?: string;
8
- }
9
- /** Bare styled `<textarea>` with no label or hint; use it to compose a custom field, otherwise reach for `TextArea`. */
10
- export declare const TextAreaBase: {
11
- ({ className, size, "data-testid": dataTestId, ...props }: TextAreaBaseProps): import("react").JSX.Element;
12
- displayName: string;
13
- };
14
- export interface TextFieldProps extends AriaTextFieldProps {
15
- /** Label text for the textarea */
16
- label?: string;
17
- /** Helper text displayed below the textarea */
18
- hint?: ReactNode;
19
- /** Tooltip message displayed after the label. */
20
- tooltip?: string;
21
- /** Textarea size. */
22
- size?: TextAreaBaseProps['size'];
23
- /** Class name for the textarea wrapper */
24
- textAreaClassName?: TextAreaBaseProps['className'];
25
- /** Ref for the textarea wrapper */
26
- ref?: Ref<HTMLDivElement>;
27
- /** Ref for the textarea */
28
- textAreaRef?: TextAreaBaseProps['ref'];
29
- /** Whether to hide required indicator from label. */
30
- hideRequiredIndicator?: boolean;
31
- /** Placeholder text. */
32
- placeholder?: string;
33
- /** Visible height of textarea in rows . */
34
- rows?: number;
35
- /** Visible width of textarea in columns. */
36
- cols?: number;
37
- /** Applied to the underlying `<textarea>` (not the wrapper). Defaults to `fd-text-area`. */
38
- 'data-testid'?: string;
39
- }
40
- /**
41
- * A multi-line text field for collecting longer-form user input. Composes a
42
- * label with optional tooltip, a resizable textarea, and optional hint text.
43
- *
44
- * @summary multi-line text field for collecting longer-form user input
45
- */
1
+ import { TextAreaBase as TextAreaBaseNext, type TextAreaProps as TextAreaPropsNext } from '@flipdish/ui-library/components/atoms/Inputs';
2
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
46
3
  export declare const TextArea: {
47
- ({ label, hint, tooltip, textAreaRef, hideRequiredIndicator, textAreaClassName, placeholder, className, rows, cols, size, "data-testid": dataTestId, ...props }: TextFieldProps): import("react").JSX.Element;
4
+ ({ label, hint, tooltip, textAreaRef, hideRequiredIndicator, textAreaClassName, placeholder, className, rows, cols, size, "data-testid": dataTestId, ...props }: TextAreaPropsNext): import("react").JSX.Element;
48
5
  displayName: string;
49
6
  };
50
- export {};
7
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
8
+ export declare const TextAreaBase: typeof TextAreaBaseNext;
9
+ /** @deprecated Use `TextAreaProps` from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
10
+ export type TextFieldProps = TextAreaPropsNext;
51
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TextArea/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAiB,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQtH,UAAU,iBAAkB,SAAQ,iBAAiB;IACnD,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wHAAwH;AACxH,eAAO,MAAM,YAAY;+DAAqE,iBAAiB;;CAiC9G,CAAC;AAIF,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACjC,0CAA0C;IAC1C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC;IACnD,mCAAmC;IACnC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,2BAA2B;IAC3B,WAAW,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACvC,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;qKAclB,cAAc;;CAmChB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TextArea/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAEhC,KAAK,aAAa,IAAI,iBAAiB,EACxC,MAAM,8CAA8C,CAAC;AAEtD,yGAAyG;AACzG,eAAO,MAAM,QAAQ;;;CAAe,CAAC;AACrC,yGAAyG;AACzG,eAAO,MAAM,YAAY,EAAE,OAAO,gBAAmC,CAAC;AACtE,sHAAsH;AACtH,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC"}
@@ -1,34 +1,9 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { Label, HintText } from '@flipdish/ui-library/components/atoms/Input';
3
- import { cx } from '@flipdish/ui-library/utilities/cx';
4
- import { useResolvedTestId } from '@flipdish/ui-library/utilities/testIdUtils';
5
- import { TextField, TextArea as TextArea$1 } from 'react-aria-components';
1
+ import { TextArea as TextArea$1, TextAreaBase as TextAreaBase$1 } from '@flipdish/ui-library/components/atoms/Inputs';
6
2
 
7
- // Creates a data URL for an SVG resize handle with a given color.
8
- const getResizeHandleBg = (color) => {
9
- return `url(data:image/svg+xml;base64,${btoa(`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 2L2 10" stroke="${color}" stroke-linecap="round"/><path d="M11 7L7 11" stroke="${color}" stroke-linecap="round"/></svg>`)})`;
10
- };
11
- /** Bare styled `<textarea>` with no label or hint; use it to compose a custom field, otherwise reach for `TextArea`. */
12
- const TextAreaBase = ({ className, size = 'md', 'data-testid': dataTestId, ...props }) => {
13
- const textAreaTestId = useResolvedTestId({ testId: dataTestId, segment: 'text-area', rootName: 'text-area' });
14
- return (jsx(TextArea$1, { ...props, "data-testid": textAreaTestId, style: {
15
- '--resize-handle-bg': getResizeHandleBg('#D5D7DA'),
16
- '--resize-handle-bg-dark': getResizeHandleBg('#373A41'),
17
- }, className: (state) => cx('w-full scroll-py-3 rounded-lg bg-primary text-primary shadow-xs ring-1 ring-primary transition duration-100 ease-linear ring-inset placeholder:text-placeholder autofill:rounded-lg autofill:text-primary focus:outline-hidden', size === 'sm' && 'p-3 text-sm', size === 'md' && 'px-3.5 py-3 text-md',
18
- // Resize handle
19
- '[&::-webkit-resizer]:bg-(image:--resize-handle-bg) [&::-webkit-resizer]:bg-contain dark:[&::-webkit-resizer]:bg-(image:--resize-handle-bg-dark)', state.isFocused && !state.isDisabled && 'ring-2 ring-brand', state.isDisabled && 'cursor-not-allowed opacity-50', state.isInvalid && 'ring-error_subtle', state.isInvalid && state.isFocused && 'ring-2 ring-error', typeof className === 'function' ? className(state) : className) }));
20
- };
21
- TextAreaBase.displayName = 'TextAreaBase';
22
- /**
23
- * A multi-line text field for collecting longer-form user input. Composes a
24
- * label with optional tooltip, a resizable textarea, and optional hint text.
25
- *
26
- * @summary multi-line text field for collecting longer-form user input
27
- */
28
- const TextArea = ({ label, hint, tooltip, textAreaRef, hideRequiredIndicator, textAreaClassName, placeholder, className, rows, cols, size = 'md', 'data-testid': dataTestId, ...props }) => {
29
- return (jsx(TextField, { ...props, className: (state) => cx('group flex h-max w-full flex-col items-start justify-start gap-1.5', typeof className === 'function' ? className(state) : className), children: ({ isInvalid, isRequired }) => (jsxs(Fragment, { children: [label && (jsx(Label, { isRequired: hideRequiredIndicator ? !hideRequiredIndicator : isRequired, tooltip: tooltip, children: label })), jsx(TextAreaBase, { placeholder: placeholder, className: textAreaClassName, ref: textAreaRef, rows: rows, cols: cols, size: size, "data-testid": dataTestId }), hint && (jsx(HintText, { isInvalid: isInvalid, size: size, children: hint }))] })) }));
30
- };
31
- TextArea.displayName = 'TextArea';
3
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
4
+ const TextArea = TextArea$1;
5
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
6
+ const TextAreaBase = TextAreaBase$1;
32
7
 
33
8
  export { TextArea, TextAreaBase };
34
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/molecules/TextArea/index.tsx"],"sourcesContent":[null],"names":["_jsx","AriaTextArea","AriaTextField","_jsxs","_Fragment"],"mappings":";;;;;;AASA;AACA,MAAM,iBAAiB,GAAG,CAAC,KAAa,KAAI;IAC1C,OAAO,CAAA,8BAAA,EAAiC,IAAI,CAAC,CAAA,4HAAA,EAA+H,KAAK,0DAA0D,KAAK,CAAA,gCAAA,CAAkC,CAAC,CAAA,CAAA,CAAG;AACxR,CAAC;AASD;MACa,YAAY,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,KAAK,EAAqB,KAAI;AACjH,IAAA,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;IAE7G,QACEA,IAACC,UAAY,EAAA,EAAA,GACP,KAAK,EAAA,aAAA,EACI,cAAc,EAC3B,KAAK,EACH;AACE,YAAA,oBAAoB,EAAE,iBAAiB,CAAC,SAAS,CAAC;AAClD,YAAA,yBAAyB,EAAE,iBAAiB,CAAC,SAAS,CAAC;SACvC,EAEpB,SAAS,EAAE,CAAC,KAAK,KACf,EAAE,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iB,EAC5B,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EAAA,aAAA,EACG,UAAU,EAAA,CACvB,EAED,IAAI,KACHA,GAAA,CAAC,QAAQ,EAAA,EAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAA,QAAA,EACvC,IAAI,EAAA,CACI,CACZ,CAAA,EAAA,CACA,CACJ,EAAA,CACa;AAEpB;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/molecules/TextArea/index.tsx"],"sourcesContent":[null],"names":["TextAreaNext","TextAreaBaseNext"],"mappings":";;AAWA;AACO,MAAM,QAAQ,GAAGA;AACxB;AACO,MAAM,YAAY,GAA4BC;;"}
@@ -1,95 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var Input = require('@flipdish/ui-library/components/atoms/Input');
5
- var cx = require('@flipdish/ui-library/utilities/cx');
6
- var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
7
- var inputOtp = require('input-otp');
8
- var React = require('react');
3
+ var VerificationCodeInput = require('@flipdish/ui-library/components/atoms/VerificationCodeInput');
9
4
 
10
- const PinInputContext = React.createContext({
11
- size: 'sm',
12
- id: '',
13
- disabled: false,
14
- invalid: false,
15
- });
16
- const usePinInputContext = () => {
17
- const context = React.useContext(PinInputContext);
18
- if (!context) {
19
- throw new Error("The 'usePinInputContext' hook must be used within a '<PinInput />'");
20
- }
21
- return context;
22
- };
23
- const Root = ({ className, size = 'md', disabled = false, invalid = false, 'data-testid': dataTestId, ...props }) => {
24
- const id = React.useId();
25
- const rootTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'pin-input', rootName: 'pin-input' });
26
- return (jsxRuntime.jsx(PinInputContext.Provider, { value: { size, disabled, id, invalid }, children: jsxRuntime.jsx(testIdUtils.TestIdProvider, { value: rootTestId, children: jsxRuntime.jsx("div", { role: "group", className: cx.cx('flex h-max flex-col gap-1.5', className), ...props, "data-testid": rootTestId }) }) }));
27
- };
28
- Root.displayName = 'Root';
29
- const styles = {
30
- xxxs: { group: 'gap-1.5 h-9', slot: 'size-9 px-3 py-2 text-sm rounded-lg font-medium text-placeholder/50', caret: 'text-sm font-medium' },
31
- xxs: { group: 'gap-2 h-10', slot: 'size-10 px-3 py-2 text-md rounded-lg font-medium text-placeholder/50', caret: 'text-md font-medium' },
32
- xs: { group: 'gap-2 h-11', slot: 'size-11 px-3.5 py-2.5 text-md rounded-lg font-medium text-placeholder/50', caret: 'text-md font-medium' },
33
- sm: { group: 'gap-2 h-16.5', slot: 'size-16 px-2 py-0.5 text-display-lg font-medium', caret: 'text-display-lg font-medium' },
34
- md: { group: 'gap-3 h-20.5', slot: 'size-20 px-2 py-2.5 text-display-lg font-medium', caret: 'text-display-lg font-medium' },
35
- lg: { group: 'gap-3 h-24.5', slot: 'size-24 px-2 py-3 text-display-xl font-medium', caret: 'text-display-xl font-medium' },
36
- };
37
- const Group = ({ inputClassName, containerClassName, width, maxLength = 4, ...props }) => {
38
- const { id, size, disabled, invalid } = usePinInputContext();
39
- const prefix = testIdUtils.useTestIdPrefix();
40
- const inputTestId = prefix ? testIdUtils.joinTestId(prefix, 'input') : undefined;
41
- return (jsxRuntime.jsx(inputOtp.OTPInput, { ...props, size: width, maxLength: maxLength, disabled: disabled, id: `pin-input-${id}`, "aria-label": "Enter your pin", "aria-labelledby": `pin-input-label-${id}`, "aria-describedby": `pin-input-description-${id}`, "aria-invalid": invalid, containerClassName: cx.cx('flex flex-row', styles[size].group, containerClassName), className: cx.cx('disabled:cursor-not-allowed', inputClassName), "data-testid": inputTestId }));
42
- };
43
- Group.displayName = 'Group';
44
- const Slot = ({ index, className, 'data-testid': dataTestId, ...props }) => {
45
- const { size, disabled, invalid } = usePinInputContext();
46
- const { slots, isFocused } = React.useContext(inputOtp.OTPInputContext);
47
- const prefix = testIdUtils.useTestIdPrefix();
48
- const slotTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, `slot-${index}`) : undefined);
49
- const slot = slots[index];
50
- return (
51
- // Purely decorative: the single real `<input>` rendered by `Group` already carries the
52
- // accessible name, value, description, and invalid state, so each visual slot is hidden
53
- // from assistive tech rather than labelled — an `aria-label` here would be prohibited on a
54
- // role-less `<div>` (and doubly announce each digit alongside the real input's value), and
55
- // `aria-invalid` here would never reach assistive tech at all since the node is hidden.
56
- jsxRuntime.jsx("div", { ...props, "aria-hidden": "true", "data-testid": slotTestId, className: cx.cx('relative flex items-center justify-center rounded-xl bg-primary text-center text-placeholder/40 shadow-xs ring-1 ring-primary transition-[box-shadow,background-color] duration-100 ease-linear ring-inset', styles[size].slot, isFocused && slot?.isActive && 'ring-2 ring-brand outline-2 outline-offset-2 outline-brand', slot?.char && 'text-brand-tertiary_alt ring-2 ring-brand', disabled && 'opacity-50', invalid && 'text-error-primary ring-error_subtle', className), children: slot?.char || (slot?.hasFakeCaret ? jsxRuntime.jsx(FakeCaret, { size: size }) : 0) }));
57
- };
58
- Slot.displayName = 'Slot';
59
- const FakeCaret = ({ size = 'md' }) => {
60
- return jsxRuntime.jsx("div", { className: cx.cx('pointer-events-none h-[1em] w-0.5 animate-caret-blink bg-fg-brand-primary', styles[size].caret) });
61
- };
62
- const Separator = (props) => {
63
- return (
64
- // biome-ignore lint/a11y/useFocusableInteractive: this is a separator
65
- // biome-ignore lint/a11y/useSemanticElements: this is a separator
66
- // biome-ignore lint/a11y/useAriaPropsForRole: this is a separator
67
- jsxRuntime.jsx("div", { role: "separator", ...props, className: cx.cx('text-center text-display-xl font-medium text-utility-neutral-300', props.className), children: "-" }));
68
- };
69
- Separator.displayName = 'Separator';
70
- const Label = (props) => {
71
- const { id } = usePinInputContext();
72
- return jsxRuntime.jsx(Input.Label, { ...props, htmlFor: `pin-input-${id}`, id: `pin-input-label-${id}` });
73
- };
74
- Label.displayName = 'Label';
75
- const Description = (props) => {
76
- const { id, size } = usePinInputContext();
77
- // Referenced by the input's `aria-describedby`; no ARIA role needed (and `role="description"` is invalid).
78
- return jsxRuntime.jsx(Input.HintText, { ...props, id: `pin-input-description-${id}`, className: cx.cx(size === 'xxxs' && 'text-xs') });
79
- };
80
- Description.displayName = 'Description';
81
- /**
82
- * One box per character for entering a verification or one-time code, with paste and
83
- * auto-advance handled. Use in sign-in and confirmation flows.
84
- *
85
- * @summary segmented input for entering verification / one-time codes
86
- */
87
- const PinInput = Root;
88
- PinInput.Slot = Slot;
89
- PinInput.Label = Label;
90
- PinInput.Group = Group;
91
- PinInput.Separator = Separator;
92
- PinInput.Description = Description;
5
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/VerificationCodeInput`. Removed in the next major. */
6
+ const PinInput = VerificationCodeInput.PinInput;
7
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/VerificationCodeInput`. Removed in the next major. */
8
+ const usePinInputContext = VerificationCodeInput.usePinInputContext;
93
9
 
94
10
  exports.PinInput = PinInput;
95
11
  exports.usePinInputContext = usePinInputContext;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/components/molecules/VerificationCodeInput/index.tsx"],"sourcesContent":[null],"names":["createContext","useContext","useId","useResolvedTestId","_jsx","TestIdProvider","cx","useTestIdPrefix","joinTestId","OTPInput","OTPInputContext","LabelBase","HintText"],"mappings":";;;;;;;;;AAkBA,MAAM,eAAe,GAAGA,mBAAa,CAAsB;AACzD,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,OAAO,EAAE,KAAK;AACf,CAAA,CAAC;AAEK,MAAM,kBAAkB,GAAG,MAAK;AACrC,IAAA,MAAM,OAAO,GAAGC,gBAAU,CAAC,eAAe,CAAC;IAE3C,IAAI,CAAC,OAAO,EAAE;AACZ,QAAA,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC;IACvF;AAEA,I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Input/index.tsx"],"sourcesContent":[null],"names":["PinInputNext","usePinInputContextNext"],"mappings":";;;;AAYA;AACO,MAAM,QAAQ,GAAwBA;AAC7C;AACO,MAAM,kBAAkB,GAAkCC;;;"}
@@ -1,70 +1,10 @@
1
- import { HintText, Label as LabelBase } from '@flipdish/ui-library/components/atoms/Input';
2
- import { OTPInput } from 'input-otp';
3
- import type { ComponentPropsWithRef } from 'react';
4
- type PinInputSize = 'xxxs' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
5
- type PinInputContextType = {
6
- size: PinInputSize;
7
- disabled: boolean;
8
- id: string;
9
- invalid: boolean;
10
- };
11
- export declare const usePinInputContext: () => PinInputContextType;
12
- export interface RootProps extends ComponentPropsWithRef<'div'> {
13
- /** Size of every slot and its digits, shared through context. */
14
- size?: PinInputSize;
15
- /** Disables the input and dims every slot. */
16
- disabled?: boolean;
17
- /** Marks the input invalid and colours every slot as an error. */
18
- invalid?: boolean;
19
- /** Overrides the derived root `data-testid` (defaults to `fd-pin-input`). */
20
- 'data-testid'?: string;
21
- }
22
- declare const Root: {
23
- ({ className, size, disabled, invalid, "data-testid": dataTestId, ...props }: RootProps): import("react").JSX.Element;
24
- displayName: string;
25
- };
26
- type GroupProps = ComponentPropsWithRef<typeof OTPInput> & {
27
- width?: number;
28
- inputClassName?: string;
29
- };
30
- declare const Group: {
31
- ({ inputClassName, containerClassName, width, maxLength, ...props }: GroupProps): import("react").JSX.Element;
32
- displayName: string;
33
- };
34
- export interface SlotProps extends ComponentPropsWithRef<'div'> {
35
- /** Zero-based position of the character this slot displays. */
36
- index: number;
37
- /** Overrides the derived `data-testid` for this slot (defaults to `<root>--slot-<index>`). */
38
- 'data-testid'?: string;
39
- }
40
- declare const Slot: {
41
- ({ index, className, "data-testid": dataTestId, ...props }: SlotProps): import("react").JSX.Element;
42
- displayName: string;
43
- };
44
- declare const Separator: {
45
- (props: ComponentPropsWithRef<"div">): import("react").JSX.Element;
46
- displayName: string;
47
- };
48
- declare const Label: {
49
- (props: ComponentPropsWithRef<typeof LabelBase>): import("react").JSX.Element;
50
- displayName: string;
51
- };
52
- declare const Description: {
53
- (props: ComponentPropsWithRef<typeof HintText>): import("react").JSX.Element;
54
- displayName: string;
55
- };
56
- /**
57
- * One box per character for entering a verification or one-time code, with paste and
58
- * auto-advance handled. Use in sign-in and confirmation flows.
59
- *
60
- * @summary segmented input for entering verification / one-time codes
61
- */
62
- declare const PinInput: typeof Root & {
63
- Slot: typeof Slot;
64
- Label: typeof Label;
65
- Group: typeof Group;
66
- Separator: typeof Separator;
67
- Description: typeof Description;
68
- };
69
- export { PinInput };
1
+ import { PinInput as PinInputNext, type RootProps as RootPropsNext, type SlotProps as SlotPropsNext, usePinInputContext as usePinInputContextNext } from '@flipdish/ui-library/components/atoms/VerificationCodeInput';
2
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/VerificationCodeInput`. Removed in the next major. */
3
+ export declare const PinInput: typeof PinInputNext;
4
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/VerificationCodeInput`. Removed in the next major. */
5
+ export declare const usePinInputContext: typeof usePinInputContextNext;
6
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/VerificationCodeInput`. Removed in the next major. */
7
+ export type RootProps = RootPropsNext;
8
+ /** @deprecated Import from `@flipdish/ui-library/components/atoms/VerificationCodeInput`. Removed in the next major. */
9
+ export type SlotProps = SlotPropsNext;
70
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/VerificationCodeInput/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAG3F,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAGnD,KAAK,YAAY,GAAG,MAAM,GAAG,KAAK,GAAG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