@povio/ui 3.4.0-rc.19 → 3.4.0-rc.20

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 (738) hide show
  1. package/README.md +11 -0
  2. package/dist/{components/navigation/Accordion/accordion.types.d.ts → Accordion-CgNQw-pZ.d.ts} +5 -2
  3. package/dist/Accordion-DT1wcBFP.js +552 -0
  4. package/dist/ActionModal-DLeVinly.d.ts +26 -0
  5. package/dist/Alert-1gjUqXaO.js +240 -0
  6. package/dist/Alert-C0GAvkdO.d.ts +33 -0
  7. package/dist/Autocomplete-CYT1Vk1F.d.ts +15 -0
  8. package/dist/BottomSheet-BWKej2PR.d.ts +34 -0
  9. package/dist/BottomSheet-Cwci3M8j.js +448 -0
  10. package/dist/Breadcrumbs-DrmLNtmQ.js +534 -0
  11. package/dist/Breadcrumbs-pSLRyeOe.d.ts +19 -0
  12. package/dist/Button-C_FOjIn-.d.ts +30 -0
  13. package/dist/Button-Cq7t4Xxl.js +160 -0
  14. package/dist/{components/buttons/Button/button.cva.js → Button-Dlm1NyTJ.js} +69 -4
  15. package/dist/{components/buttons/shared/ButtonContent.js → ButtonContent-17xvQXod.js} +34 -7
  16. package/dist/Calendar-C9Dbdkkl.js +654 -0
  17. package/dist/{components/inputs/shared/CheckContent.js → CheckContent-DzWpxKGq.js} +5 -5
  18. package/dist/Checkbox-DyEipBjR.js +403 -0
  19. package/dist/Checkbox-Ee9K3u2J.d.ts +24 -0
  20. package/dist/{components/inputs/Checkbox/checkbox.cva.js → CheckboxCheckmark-C7Oq15ms.js} +38 -4
  21. package/dist/CheckboxGroup-D-sNgUMN.d.ts +28 -0
  22. package/dist/{components/inputs/DateTime/DatePicker/DatePicker.js → DatePicker-DM_tCN-6.js} +23 -29
  23. package/dist/{components/inputs/DateTime/DatePicker/DatePicker.d.ts → DatePicker-DclmenVd.d.ts} +7 -8
  24. package/dist/DatePickerInput-BC-q8HcY.d.ts +18 -0
  25. package/dist/DatePickerInput-C2z1kgaC.js +598 -0
  26. package/dist/{components/inputs/DateTime/DateRangePicker/DateRangePicker.js → DateRangePicker-BmScgvEH.js} +466 -32
  27. package/dist/{components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts → DateRangePicker-DjkIlnMl.d.ts} +9 -11
  28. package/dist/{components/inputs/DateTime/DateTimePicker/DateTimePicker.js → DateTimePicker-CAFB33ih.js} +23 -29
  29. package/dist/{components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts → DateTimePicker-aDvcYnVk.d.ts} +7 -9
  30. package/dist/Dialog-BQN4Z3bO.js +4505 -0
  31. package/dist/Drawer-DnSLe85M.d.ts +18 -0
  32. package/dist/FileTrigger-eHfAkdXd.js +2186 -0
  33. package/dist/FileUpload-CHgnF4Nm.d.ts +7 -0
  34. package/dist/FileUpload-Cb--_Mbk.js +766 -0
  35. package/dist/FileUploadContainer-Co33mh7x.d.ts +5 -0
  36. package/dist/Form-B4Sbjn__.d.ts +49 -0
  37. package/dist/Form-CKUcoaMX.js +8 -0
  38. package/dist/FormField-DoGaUqFm.js +235 -0
  39. package/dist/FormField-FvutosEE.d.ts +80 -0
  40. package/dist/{components/inputs/FormField/FormFieldError.d.ts → FormFieldError-BT4uxbKY.d.ts} +1 -1
  41. package/dist/FormFieldError-CFg0Wn3i.js +26 -0
  42. package/dist/HeaderText-BrZaEuIn.d.ts +19 -0
  43. package/dist/Hidden-BtagiSrf.js +32 -0
  44. package/dist/IconButton-uO0Mjcqw.d.ts +14 -0
  45. package/dist/InlineIconButton-CLiZzTVJ.d.ts +16 -0
  46. package/dist/Input-TO1R-KsB.js +45 -0
  47. package/dist/{components/inputs/Inputs/InputItem.js → InputItem-DYNprOmw.js} +19 -19
  48. package/dist/InputUpload-BqKQcew0.d.ts +66 -0
  49. package/dist/InputUpload-k_RRfoeF.js +233 -0
  50. package/dist/{components/inputs/Inputs/Inputs.js → Inputs-BapBcBa7.js} +2 -2
  51. package/dist/Inputs-DncFwdP2.d.ts +13 -0
  52. package/dist/Label-C0MdchIz.js +17 -0
  53. package/dist/Link-BBMgG7TX.js +82 -0
  54. package/dist/Link-BvAKCJcB.js +42 -0
  55. package/dist/Link-DwUGkr9s.d.ts +23 -0
  56. package/dist/ListBox-HE5uFtiS.js +739 -0
  57. package/dist/Loader-C6YkWZOO.js +113 -0
  58. package/dist/{components/status/Loader/loader.cva.d.ts → Loader-Sbr1b0iU.d.ts} +7 -3
  59. package/dist/{components/Menu/menu.cva.d.ts → Menu-CLA3gTYc.d.ts} +22 -3
  60. package/dist/{components/Menu/MenuMobile.js → Menu-Db_stvqw.js} +48 -12
  61. package/dist/MenuDesktop-BjK3K8gs.js +248 -0
  62. package/dist/{components/Menu/MenuItem.d.ts → MenuItem-ChgmtbQw.d.ts} +2 -2
  63. package/dist/Modal-BVL1P0ls.d.ts +53 -0
  64. package/dist/Modal-CYvIKx5Z.js +204 -0
  65. package/dist/{components/overlays/Modal/Modal.js → Modal-CkSO1C1n.js} +13 -12
  66. package/dist/NumberFormatter-KUrW7GbE.js +122 -0
  67. package/dist/NumberInput-mTYSZkqH.d.ts +26 -0
  68. package/dist/NumberRangeInput-BsATw2M1.js +403 -0
  69. package/dist/NumberRangeInput-DS6_DIEc.d.ts +44 -0
  70. package/dist/OverlayArrow-BrSp26z2.js +654 -0
  71. package/dist/Pagination-YrWwwM_f.d.ts +12 -0
  72. package/dist/PaginationList-71pjqcQ0.d.ts +18 -0
  73. package/dist/PaginationList-DJfUpGY9.js +218 -0
  74. package/dist/PasswordInput-BUZPRoOL.js +63 -0
  75. package/dist/PasswordInput-XI0n5I1s.d.ts +10 -0
  76. package/dist/Pill-DSt6f4Eq.d.ts +18 -0
  77. package/dist/PillButton-NdrR6uVR.d.ts +15 -0
  78. package/dist/PressResponder-q8UTUsf0.js +63 -0
  79. package/dist/ProgressBar-C8dtVA-1.js +58 -0
  80. package/dist/{components/inputs/File/shared/progressBar.cva.d.ts → ProgressBar-DG-ClG9v.d.ts} +8 -3
  81. package/dist/QuerySelect-W0euIrkL.d.ts +23 -0
  82. package/dist/RSPContexts-DHQi1l7F.js +12 -0
  83. package/dist/RadioGroup-CNSTNHYN.js +569 -0
  84. package/dist/{components/inputs/RadioGroup/radio.cva.d.ts → RadioGroup-D6-jU_Hb.d.ts} +25 -4
  85. package/dist/ResponsivePopover-CokwzUr4.d.ts +19 -0
  86. package/dist/{components/segment/Segment.js → Segment-Cndlojxv.js} +119 -16
  87. package/dist/{components/segment/Segment.d.ts → Segment-IpdajE4h.d.ts} +4 -4
  88. package/dist/{components/inputs/Selection/Select/Select.js → Select-CCNQ4Bso.js} +11 -15
  89. package/dist/{components/inputs/Selection/Select/Select.d.ts → Select-CNTaUjfL.d.ts} +5 -6
  90. package/dist/SelectBase-C4lPY7Hc.d.ts +97 -0
  91. package/dist/SelectionIndicator-qJF4qfyY.js +758 -0
  92. package/dist/Slider-C2VnHdQq.js +818 -0
  93. package/dist/Slider-HF31GF1t.d.ts +22 -0
  94. package/dist/SplitButton-CnyLnCrQ.d.ts +15 -0
  95. package/dist/{components/navigation/Stepper/stepper.cva.d.ts → Stepper-JUO4MbZx.d.ts} +36 -3
  96. package/dist/Stepper-yN3fNyGt.js +336 -0
  97. package/dist/{components/text/Tag/tag.cva.d.ts → Tag-CXfTBg6q.d.ts} +18 -3
  98. package/dist/{components/text/Tag/tag.cva.js → Tag-DCo_fVLl.js} +43 -3
  99. package/dist/Text-BTtw_Syz.js +5 -0
  100. package/dist/TextArea-8_TYSixS.d.ts +20 -0
  101. package/dist/TextArea-CS-2txl7.js +175 -0
  102. package/dist/TextButton-BdefN7SL.d.ts +15 -0
  103. package/dist/{components/inputs/TextEditor/TextEditor.d.ts → TextEditor-CXDFpX_q.d.ts} +4 -4
  104. package/dist/TextEditor-p0CqH_71.js +3439 -0
  105. package/dist/{components/inputs/DateTime/TimePicker/TimePicker.d.ts → TimePicker-Bspfhoo_.d.ts} +6 -6
  106. package/dist/{components/inputs/DateTime/TimePicker/TimePicker.js → TimePicker-DLzbOPrC.js} +126 -25
  107. package/dist/Toast-4Q3O7cKx.js +957 -0
  108. package/dist/{components/status/Toast/toast.cva.d.ts → Toast-DDkev3SZ.d.ts} +18 -4
  109. package/dist/Toggle-CgD4ykP4.js +177 -0
  110. package/dist/{components/inputs/Toggle/toggle.cva.d.ts → Toggle-TDp5YtaQ.d.ts} +20 -4
  111. package/dist/ToggleButton-BuEhb8eu.d.ts +12 -0
  112. package/dist/ToggleButton-D94yRla8.js +216 -0
  113. package/dist/Tooltip-KfGHmXdx.js +539 -0
  114. package/dist/{components/overlays/Tooltip/tooltip.cva.d.ts → Tooltip-zaZ0d1jz.d.ts} +16 -3
  115. package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +11 -0
  116. package/dist/{components/inputs/shared/InputClear.js → TooltipWrapper-CLMp_zj4.js} +31 -6
  117. package/dist/{components/text/Typography/Typography.js → Typography-AcUd9df8.js} +3 -3
  118. package/dist/{components/text/Typography/Typography.d.ts → Typography-BiHrVFpz.d.ts} +2 -2
  119. package/dist/VisuallyHidden-DjaDVPQT.js +43 -0
  120. package/dist/autocomplete-B2Ol8qjV.d.ts +16 -0
  121. package/dist/{components/buttons/Button/button.cva.d.ts → button.cva-zMNkoZH8.d.ts} +3 -4
  122. package/dist/{components/buttons/shared/buttonContent.cva.d.ts → buttonContent.cva-CIOaLH0a.d.ts} +3 -3
  123. package/dist/check-M2G7r3oH.js +13 -0
  124. package/dist/checkbox-CGea408G.d.ts +9 -0
  125. package/dist/checkbox-group-BdjjQ24I.d.ts +9 -0
  126. package/dist/{components/inputs/Checkbox/checkbox.cva.d.ts → checkbox.cva-Caaf2Ysq.d.ts} +3 -4
  127. package/dist/chevron-down-Ciz9yP9R.js +13 -0
  128. package/dist/chevron-left-VO8YZrXZ.js +13 -0
  129. package/dist/chevron-right-C_M98bh3.js +13 -0
  130. package/dist/chevron-up-CHRnDSA3.js +13 -0
  131. package/dist/chevrons-right-BXdmZ2TS.js +29 -0
  132. package/dist/clsx-CnD0nOiA.js +16 -0
  133. package/dist/{types/common.d.ts → common-UBFya8WY.d.ts} +1 -1
  134. package/dist/components/accordion.d.ts +1 -2
  135. package/dist/components/accordion.js +1 -1
  136. package/dist/components/action-modal.d.ts +1 -25
  137. package/dist/components/action-modal.js +5 -5
  138. package/dist/components/alert.d.ts +1 -13
  139. package/dist/components/alert.js +1 -113
  140. package/dist/components/autocomplete.d.ts +1 -15
  141. package/dist/components/autocomplete.js +9 -13
  142. package/dist/components/bottom-sheet.d.ts +1 -33
  143. package/dist/components/bottom-sheet.js +1 -330
  144. package/dist/components/breadcrumbs.d.ts +1 -18
  145. package/dist/components/breadcrumbs.js +1 -262
  146. package/dist/components/button.d.ts +2 -2
  147. package/dist/components/button.js +1 -1
  148. package/dist/components/checkbox-group.d.ts +1 -27
  149. package/dist/components/checkbox-group.js +13 -15
  150. package/dist/components/checkbox.d.ts +1 -23
  151. package/dist/components/checkbox.js +1 -79
  152. package/dist/components/date-picker.d.ts +1 -1
  153. package/dist/components/date-picker.js +1 -1
  154. package/dist/components/date-range-picker.d.ts +1 -1
  155. package/dist/components/date-range-picker.js +1 -1
  156. package/dist/components/date-time-picker.d.ts +1 -1
  157. package/dist/components/date-time-picker.js +1 -1
  158. package/dist/components/drawer.d.ts +1 -17
  159. package/dist/components/drawer.js +8 -7
  160. package/dist/components/file-upload-container.d.ts +2 -4
  161. package/dist/components/file-upload-container.js +1 -1
  162. package/dist/components/file-upload.d.ts +2 -6
  163. package/dist/components/file-upload.js +1 -213
  164. package/dist/components/form-field.d.ts +1 -23
  165. package/dist/components/form-field.js +1 -46
  166. package/dist/components/icon-button.d.ts +1 -13
  167. package/dist/components/icon-button.js +2 -2
  168. package/dist/components/inline-icon-button.d.ts +1 -15
  169. package/dist/components/inline-icon-button.js +1 -1
  170. package/dist/components/input-upload.d.ts +1 -6
  171. package/dist/components/input-upload.js +1 -117
  172. package/dist/components/link.d.ts +1 -10
  173. package/dist/components/link.js +1 -32
  174. package/dist/components/loader.d.ts +1 -6
  175. package/dist/components/loader.js +1 -88
  176. package/dist/components/menu.d.ts +2 -2
  177. package/dist/components/menu.js +2 -2
  178. package/dist/components/modal.d.ts +1 -1
  179. package/dist/components/modal.js +1 -1
  180. package/dist/components/number-input.d.ts +1 -26
  181. package/dist/components/number-input.js +23 -26
  182. package/dist/components/number-range-input.d.ts +1 -38
  183. package/dist/components/number-range-input.js +1 -266
  184. package/dist/components/pagination-list.d.ts +1 -17
  185. package/dist/components/pagination-list.js +1 -206
  186. package/dist/components/pagination.d.ts +1 -11
  187. package/dist/components/pagination.js +4 -4
  188. package/dist/components/password-input.d.ts +1 -9
  189. package/dist/components/password-input.js +1 -22
  190. package/dist/components/pill-button.d.ts +1 -14
  191. package/dist/components/pill-button.js +8 -7
  192. package/dist/components/pill.d.ts +1 -17
  193. package/dist/components/pill.js +9 -9
  194. package/dist/components/progress-bar.d.ts +1 -1
  195. package/dist/components/progress-bar.js +1 -1
  196. package/dist/components/query-autocomplete.d.ts +3 -3
  197. package/dist/components/query-autocomplete.js +5 -6
  198. package/dist/components/query-select.d.ts +1 -18
  199. package/dist/components/query-select.js +6 -7
  200. package/dist/components/radio-group.d.ts +1 -23
  201. package/dist/components/radio-group.js +1 -164
  202. package/dist/components/responsive-popover.d.ts +1 -18
  203. package/dist/components/responsive-popover.js +9 -9
  204. package/dist/components/segment.d.ts +2 -2
  205. package/dist/components/segment.js +1 -1
  206. package/dist/components/select.d.ts +2 -3
  207. package/dist/components/select.js +1 -1
  208. package/dist/components/slider.d.ts +1 -21
  209. package/dist/components/slider.js +1 -102
  210. package/dist/components/split-button.d.ts +1 -14
  211. package/dist/components/split-button.js +4 -4
  212. package/dist/components/stepper.d.ts +1 -2
  213. package/dist/components/stepper.js +1 -1
  214. package/dist/components/tag.d.ts +1 -17
  215. package/dist/components/tag.js +1 -42
  216. package/dist/components/text-area.d.ts +1 -20
  217. package/dist/components/text-area.js +1 -137
  218. package/dist/components/text-button.d.ts +1 -14
  219. package/dist/components/text-button.js +1 -1
  220. package/dist/components/text-input.d.ts +1 -26
  221. package/dist/components/text-input.js +18 -20
  222. package/dist/components/time-picker.d.ts +1 -1
  223. package/dist/components/time-picker.js +1 -1
  224. package/dist/components/toast.d.ts +1 -2
  225. package/dist/components/toast.js +1 -1
  226. package/dist/components/toggle-button.d.ts +1 -11
  227. package/dist/components/toggle-button.js +1 -1
  228. package/dist/components/toggle.d.ts +1 -18
  229. package/dist/components/toggle.js +1 -73
  230. package/dist/components/tooltip-ellipsis.d.ts +1 -10
  231. package/dist/components/tooltip-ellipsis.js +2 -2
  232. package/dist/components/tooltip.d.ts +1 -15
  233. package/dist/components/tooltip.js +1 -169
  234. package/dist/components/typography.d.ts +2 -2
  235. package/dist/components/typography.js +1 -1
  236. package/dist/components/use-toast.d.ts +1 -15
  237. package/dist/components/use-toast.js +6 -7
  238. package/dist/{utils/compoundMapper.d.ts → compoundMapper-CMoX98D2.d.ts} +1 -1
  239. package/dist/{utils/compoundMapper.js → compoundMapper-Di3SKZnS.js} +1 -1
  240. package/dist/config/confirmation.d.ts +1 -1
  241. package/dist/config/confirmation.js +1 -1
  242. package/dist/config/link-context.d.ts +2 -2
  243. package/dist/config/link-context.js +1 -1
  244. package/dist/config/resources.d.ts +1 -1
  245. package/dist/config/resources.js +1 -1
  246. package/dist/config/theme-context.d.ts +1 -1
  247. package/dist/config/theme-context.js +1 -1
  248. package/dist/config/ui-config.d.ts +1 -1
  249. package/dist/config/ui-config.js +1 -1
  250. package/dist/config/ui-overrides.d.ts +1 -1
  251. package/dist/config/ui-overrides.js +1 -1
  252. package/dist/config/ui-router.d.ts +1 -1
  253. package/dist/config/ui-router.js +1 -1
  254. package/dist/{config/confirmation.context.d.ts → confirmation.context-BJ8gTx7U.d.ts} +2 -2
  255. package/dist/{config/confirmation.context.js → confirmation.context-C1-ZF9CW.js} +3 -3
  256. package/dist/context-CLFkoJMP.js +93 -0
  257. package/dist/createLucideIcon-CskCrR9z.js +125 -0
  258. package/dist/date-picker-BpSowet-.d.ts +9 -0
  259. package/dist/date-range-picker-aO65H4wV.d.ts +9 -0
  260. package/dist/date-time-picker-DWo2GFg7.d.ts +9 -0
  261. package/dist/{utils/date-time.utils.js → date-time.utils-0F9qduim.js} +2 -2
  262. package/dist/{utils/date-time.utils.d.ts → date-time.utils-Cu9TVj46.d.ts} +1 -1
  263. package/dist/{rhf/date.transforms.js → date.transforms-DLg-eFcE.js} +1 -1
  264. package/dist/{utils/date.utils.js → date.utils-B8_QF9y6.js} +1 -1
  265. package/dist/{utils/date.utils.d.ts → date.utils-BoQnMRlF.d.ts} +1 -1
  266. package/dist/{components/inputs/DateTime/shared/TimePickerForm.js → datePickerValue.utils-Dh-nA1Yv.js} +78 -13
  267. package/dist/{rhf/Inputs2.js → dynamicInputs-4JB41qRW.js} +27 -23
  268. package/dist/dynamicInputs-BekIlDGf.d.ts +753 -0
  269. package/dist/{helpers/dynamicInputs.js → dynamicInputs-D8j0ko24.js} +16 -16
  270. package/dist/{rhf/fieldAdapter.d.ts → fieldAdapter-C4sDFC8f.d.ts} +2 -2
  271. package/dist/{rhf/fieldAdapter.js → fieldAdapter-C_3uizcT.js} +22 -1
  272. package/dist/file-upload-DDIJKLW8.d.ts +10 -0
  273. package/dist/{utils/file.utils.d.ts → file.utils-Crb-mIHs.d.ts} +1 -1
  274. package/dist/{utils/file.utils.js → file.utils-DqQxnuAm.js} +1 -1
  275. package/dist/{components/inputs/File/fileUpload.types.d.ts → fileUpload.types-CQkPqELk.d.ts} +15 -8
  276. package/dist/{hooks/useForm.d.ts → form.binding-DWlFTecs.d.ts} +8 -3
  277. package/dist/{components/inputs/shared/form.binding.js → form.binding-DyZ4fH8l.js} +8 -2
  278. package/dist/{components/inputs/shared/form.types.d.ts → form.types-B9Vp8q2g.d.ts} +2 -2
  279. package/dist/{rhf/form.types.d.ts → form.types-ZNGbcqJS.d.ts} +1 -1
  280. package/dist/hooks/use-filters.d.ts +1 -1
  281. package/dist/hooks/use-filters.js +1 -1
  282. package/dist/hooks/use-local-storage.d.ts +1 -1
  283. package/dist/hooks/use-local-storage.js +1 -1
  284. package/dist/hooks/use-translation-memo.d.ts +1 -1
  285. package/dist/hooks/use-translation-memo.js +1 -1
  286. package/dist/i18n-C2TBJvnh.js +300 -0
  287. package/dist/{config/i18n.d.ts → i18n-DjqhCCJq.d.ts} +1 -1
  288. package/dist/icons.d.ts +2 -2
  289. package/dist/icons.js +2 -2
  290. package/dist/index-B8r_kiw4.d.ts +193 -0
  291. package/dist/index.d.ts +101 -165
  292. package/dist/index.js +64 -105
  293. package/dist/input-upload-Apyx1Mvy.d.ts +9 -0
  294. package/dist/{components/inputs/shared/input.cva.d.ts → input.cva-CfgCOIQW.d.ts} +2 -3
  295. package/dist/{components/inputs/shared/input.cva.js → input.cva-KYGD4Bdz.js} +4 -4
  296. package/dist/{utils/intl.utils.d.ts → intl.utils-NaOZUD2G.d.ts} +1 -1
  297. package/dist/{utils/intl.utils.js → intl.utils-zwAFoZ0U.js} +1 -1
  298. package/dist/intlStrings-DrQB127v.js +346 -0
  299. package/dist/{config/link.context.d.ts → link.context-BFXwgVLP.d.ts} +2 -2
  300. package/dist/{config/link.context.js → link.context-J7aQtMOr.js} +2 -2
  301. package/dist/logger-BPhG2izn.js +309 -0
  302. package/dist/logger-N35Xhi14.d.ts +10 -0
  303. package/dist/lucide-react-BJRvqSeV.d.ts +23 -0
  304. package/dist/{components/overlays/Modal/modal.cva.js → modal.cva-CbziPHSN.js} +2 -3
  305. package/dist/number-input-D0YwMCGh.d.ts +8 -0
  306. package/dist/number-range-input-BtPXUX0k.d.ts +8 -0
  307. package/dist/numberStatic.utils-C9_kWMXJ.js +723 -0
  308. package/dist/openLink-BFEMFlhB.js +187 -0
  309. package/dist/{components/outline.clsx.js → outline.clsx-50W_vNDl.js} +2 -2
  310. package/dist/{components/outline.clsx.d.ts → outline.clsx-B1hjrX9t.d.ts} +1 -1
  311. package/dist/password-input-euv4tHdl.d.ts +8 -0
  312. package/dist/{components/buttons/PillButton/pillButton.cva.d.ts → pillButton.cva-Da0WFN39.d.ts} +3 -4
  313. package/dist/{components/buttons/PillButton/pillButton.cva.js → pillButton.cva-DbwzixcK.js} +5 -6
  314. package/dist/{components/shared/popover.cva.js → popover.cva-CXha_UMQ.js} +2 -2
  315. package/dist/queries.utils-CmbhAoHU.js +18 -0
  316. package/dist/query-autocomplete-BwU-94pi.d.ts +14 -0
  317. package/dist/query-select-CBgR2Tua.d.ts +15 -0
  318. package/dist/{components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts → queryAutocomplete.types-3ezR8y7k.d.ts} +6 -6
  319. package/dist/radio-group-DVGKZRnt.d.ts +9 -0
  320. package/dist/react-aria/components.d.ts +1 -0
  321. package/dist/react-aria/components.js +1 -0
  322. package/dist/react-aria/hooks.d.ts +1 -0
  323. package/dist/react-aria/hooks.js +1 -0
  324. package/dist/react-aria/index.d.ts +1 -0
  325. package/dist/react-aria/index.js +1 -0
  326. package/dist/react-aria/state.d.ts +1 -0
  327. package/dist/react-aria/state.js +1 -0
  328. package/dist/react-aria/types.d.ts +1 -0
  329. package/dist/react-aria/types.js +0 -0
  330. package/dist/rhf/autocomplete.d.ts +2 -15
  331. package/dist/rhf/autocomplete.js +1 -2
  332. package/dist/rhf/checkbox-group.d.ts +2 -8
  333. package/dist/rhf/checkbox-group.js +1 -2
  334. package/dist/rhf/checkbox.d.ts +2 -8
  335. package/dist/rhf/checkbox.js +2 -3
  336. package/dist/rhf/date-picker.d.ts +2 -8
  337. package/dist/rhf/date-picker.js +3 -4
  338. package/dist/rhf/date-range-picker.d.ts +2 -8
  339. package/dist/rhf/date-range-picker.js +3 -4
  340. package/dist/rhf/date-time-picker.d.ts +2 -8
  341. package/dist/rhf/date-time-picker.js +3 -4
  342. package/dist/rhf/file-upload.d.ts +2 -9
  343. package/dist/rhf/file-upload.js +2 -3
  344. package/dist/rhf/input-upload.d.ts +2 -9
  345. package/dist/rhf/input-upload.js +2 -3
  346. package/dist/rhf/inputs.d.ts +4 -0
  347. package/dist/rhf/inputs.js +1 -2
  348. package/dist/rhf/number-input.d.ts +2 -7
  349. package/dist/rhf/number-input.js +1 -2
  350. package/dist/rhf/number-range-input.d.ts +2 -7
  351. package/dist/rhf/number-range-input.js +2 -3
  352. package/dist/rhf/password-input.d.ts +2 -7
  353. package/dist/rhf/password-input.js +2 -3
  354. package/dist/rhf/query-autocomplete.d.ts +1 -13
  355. package/dist/rhf/query-autocomplete.js +1 -2
  356. package/dist/rhf/query-select.d.ts +1 -14
  357. package/dist/rhf/query-select.js +1 -2
  358. package/dist/rhf/radio-group.d.ts +2 -8
  359. package/dist/rhf/radio-group.js +2 -3
  360. package/dist/rhf/segment.d.ts +2 -8
  361. package/dist/rhf/segment.js +2 -3
  362. package/dist/rhf/select.d.ts +2 -15
  363. package/dist/rhf/select.js +2 -3
  364. package/dist/rhf/slider.d.ts +2 -7
  365. package/dist/rhf/slider.js +2 -3
  366. package/dist/rhf/text-area.d.ts +2 -7
  367. package/dist/rhf/text-area.js +2 -3
  368. package/dist/rhf/text-editor.d.ts +2 -7
  369. package/dist/rhf/text-editor.js +2 -3
  370. package/dist/rhf/text-input.d.ts +2 -7
  371. package/dist/rhf/text-input.js +1 -2
  372. package/dist/rhf/time-picker.d.ts +2 -8
  373. package/dist/rhf/time-picker.js +3 -4
  374. package/dist/rhf/toggle.d.ts +2 -8
  375. package/dist/rhf/toggle.js +2 -3
  376. package/dist/{rhf/useFormAutosave.js → rhf-Ca72CryM.js} +116 -6
  377. package/dist/rhf.d.ts +101 -167
  378. package/dist/rhf.js +64 -105
  379. package/dist/rolldown-runtime-DUp30N8C.js +28 -0
  380. package/dist/{config/router.context.d.ts → router.context-BOYRh2p9.d.ts} +1 -1
  381. package/dist/{config/router.context.js → router.context-DSE1y7gW.js} +4 -4
  382. package/dist/{utils/routing.utils.js → routing.utils-UTQonIhB.js} +1 -1
  383. package/dist/schemas-BkfyFvBp.js +4004 -0
  384. package/dist/schemas-CAtYiHoz.d.ts +2127 -0
  385. package/dist/segment-CSZWTNMz.d.ts +9 -0
  386. package/dist/{components/segment/segment.types.d.ts → segment.types-POFeFf4n.d.ts} +24 -5
  387. package/dist/select-ZL6iOiG0.d.ts +16 -0
  388. package/dist/slider--ZPodYa6.d.ts +8 -0
  389. package/dist/staticDateTimeSegments-CKL9PuGV.js +1501 -0
  390. package/dist/staticSelect.utils-DkiDwfGr.js +4041 -0
  391. package/dist/{utils/string.utils.js → string.utils-BPgv6QwA.js} +1 -1
  392. package/dist/{utils/string.utils.d.ts → string.utils-Cj6AB7uZ.d.ts} +1 -1
  393. package/dist/styles/input.d.ts +1 -1
  394. package/dist/styles/outline.d.ts +1 -1
  395. package/dist/styles/outline.js +1 -1
  396. package/dist/tanstack/autocomplete.d.ts +1 -1
  397. package/dist/tanstack/checkbox-group.d.ts +1 -1
  398. package/dist/tanstack/checkbox.d.ts +1 -1
  399. package/dist/tanstack/checkbox.js +1 -1
  400. package/dist/tanstack/date-picker.d.ts +1 -1
  401. package/dist/tanstack/date-picker.js +1 -1
  402. package/dist/tanstack/date-range-picker.d.ts +1 -1
  403. package/dist/tanstack/date-range-picker.js +1 -1
  404. package/dist/tanstack/date-time-picker.d.ts +1 -1
  405. package/dist/tanstack/date-time-picker.js +1 -1
  406. package/dist/tanstack/file-upload.d.ts +2 -2
  407. package/dist/tanstack/file-upload.js +1 -1
  408. package/dist/tanstack/form.d.ts +2 -3
  409. package/dist/tanstack/form.js +1 -3
  410. package/dist/tanstack/input-upload.d.ts +1 -2
  411. package/dist/tanstack/input-upload.js +1 -1
  412. package/dist/tanstack/inputs.d.ts +4 -5
  413. package/dist/tanstack/inputs.js +2 -2
  414. package/dist/tanstack/number-input.d.ts +1 -1
  415. package/dist/tanstack/number-range-input.d.ts +1 -2
  416. package/dist/tanstack/number-range-input.js +1 -1
  417. package/dist/tanstack/password-input.d.ts +1 -1
  418. package/dist/tanstack/password-input.js +1 -1
  419. package/dist/tanstack/query-select.d.ts +1 -1
  420. package/dist/tanstack/radio-group.d.ts +1 -1
  421. package/dist/tanstack/radio-group.js +1 -1
  422. package/dist/tanstack/segment.d.ts +2 -2
  423. package/dist/tanstack/segment.js +1 -1
  424. package/dist/tanstack/select.d.ts +1 -1
  425. package/dist/tanstack/select.js +1 -1
  426. package/dist/tanstack/slider.d.ts +1 -1
  427. package/dist/tanstack/slider.js +1 -1
  428. package/dist/tanstack/table.d.ts +2 -12
  429. package/dist/tanstack/table.js +1 -11
  430. package/dist/tanstack/text-area.d.ts +1 -1
  431. package/dist/tanstack/text-area.js +1 -1
  432. package/dist/tanstack/text-editor.d.ts +1 -1
  433. package/dist/tanstack/text-editor.js +1 -1
  434. package/dist/tanstack/text-input.d.ts +1 -1
  435. package/dist/tanstack/time-picker.d.ts +1 -1
  436. package/dist/tanstack/time-picker.js +1 -1
  437. package/dist/tanstack/toggle.d.ts +1 -1
  438. package/dist/tanstack/toggle.js +1 -1
  439. package/dist/tanstack.d.ts +86 -150
  440. package/dist/tanstack.js +74 -121
  441. package/dist/text-area-BhZAEqfI.d.ts +8 -0
  442. package/dist/text-editor-Dq-YYIuF.d.ts +8 -0
  443. package/dist/text-editor.d.ts +1 -1
  444. package/dist/text-editor.js +1 -1
  445. package/dist/text-input-F-mBSHby.d.ts +8 -0
  446. package/dist/{config/theme.context.js → theme.context-CCXz56lV.js} +5 -5
  447. package/dist/{config/theme.context.d.ts → theme.context-rPpAYJZo.d.ts} +4 -4
  448. package/dist/time-picker-5w_eDDNn.d.ts +9 -0
  449. package/dist/toggle-D-Dg5YGf.d.ts +9 -0
  450. package/dist/types/index.d.ts +1 -1
  451. package/dist/types-BV15_DBT.d.ts +1150 -0
  452. package/dist/{components/text/Typography/typography.cva.d.ts → typography.cva-7RYwLrA7.d.ts} +2 -3
  453. package/dist/{components/text/Typography/typography.cva.js → typography.cva-BI0FyIqm.js} +2 -2
  454. package/dist/uiConfig.context-SBtRegKv.js +359 -0
  455. package/dist/{config/uiConfig.context.d.ts → uiConfig.context-pJj1iUnQ.d.ts} +20 -18
  456. package/dist/{config/uiOverrides.context.d.ts → uiOverrides.context-BdokYcGO.d.ts} +43 -6
  457. package/dist/{utils/style-merge.util.js → uiOverrides.context-Bfm2n-n8.js} +165 -2
  458. package/dist/{hooks/useBreakpoint.js → useBreakpoint-D0s71F97.js} +3 -3
  459. package/dist/useButton-iUReggbG.js +55 -0
  460. package/dist/useControlledState-Bk39gTui.js +31 -0
  461. package/dist/useEvent-BROAXUSg.js +22 -0
  462. package/dist/{components/inputs/Input/shared/InputContent.js → useFieldAccessibility-CmbhtqBy.js} +27 -10
  463. package/dist/useFilter-BOG2VldJ.js +44 -0
  464. package/dist/{hooks/useFilters.d.ts → useFilters-6IOuvBTm.d.ts} +3 -3
  465. package/dist/{hooks/useFilters.js → useFilters-AA70NuXo.js} +9 -9
  466. package/dist/useFocusRing-DuXtCnJj.js +141 -0
  467. package/dist/useFormAutosave-BXqu0xAQ.js +296 -0
  468. package/dist/useFormReset-BhJH8XnS.js +18 -0
  469. package/dist/useFormValidation-DLZqyNVp.js +115 -0
  470. package/dist/useFormValidationState-Bpry7Uk5.js +142 -0
  471. package/dist/useHover-DwfnacVy.js +1210 -0
  472. package/dist/{hooks/useIntersectionObserver.js → useIntersectionObserver-DYfHnGGU.js} +2 -2
  473. package/dist/useLabel-BFvzYK5u.js +27 -0
  474. package/dist/useLabels-B3G1H2cw.js +16 -0
  475. package/dist/{hooks/useLocalStorage.js → useLocalStorage-PlcaJ1tP.js} +2 -2
  476. package/dist/{hooks/useLocalStorage.d.ts → useLocalStorage-kcEdRxqC.d.ts} +3 -3
  477. package/dist/useLocalizedStringFormatter-C2M9mXF2.js +108 -0
  478. package/dist/useNumberFormatter-CTdFIKV_.js +10 -0
  479. package/dist/usePress-CANxCO5-.js +491 -0
  480. package/dist/{hooks/useQueryAutocomplete.js → useQueryAutocomplete-CraXvRm_.js} +51 -2
  481. package/dist/useSpinButton-C3wyKHU7.js +577 -0
  482. package/dist/{components/inputs/Skeleton/InputFrame.js → useStaticInputHandoff-COJdSrME.js} +92 -13
  483. package/dist/useTableColumnConfig-_XJr8Cor.js +1638 -0
  484. package/dist/useTableNav-BoQOVqZF.d.ts +274 -0
  485. package/dist/useTextField-De01RThI.js +77 -0
  486. package/dist/useToast-gQ9gzrbt.d.ts +16 -0
  487. package/dist/useToggle-DDay--cY.js +62 -0
  488. package/dist/useToggleState-Dyx-sAjp.js +23 -0
  489. package/dist/{hooks/useTranslationMemo.js → useTranslationMemo-CrZbeyBv.js} +1 -1
  490. package/dist/{hooks/useTranslationMemo.d.ts → useTranslationMemo-Dy3p6m1g.d.ts} +1 -1
  491. package/dist/utils/compound-mapper.d.ts +1 -1
  492. package/dist/utils/compound-mapper.js +1 -1
  493. package/dist/utils/date-time.d.ts +1 -1
  494. package/dist/utils/date-time.js +1 -1
  495. package/dist/utils/date.d.ts +1 -1
  496. package/dist/utils/date.js +1 -1
  497. package/dist/utils/file.d.ts +1 -1
  498. package/dist/utils/file.js +1 -1
  499. package/dist/utils/intl.d.ts +1 -1
  500. package/dist/utils/intl.js +1 -1
  501. package/dist/utils/logger.d.ts +1 -9
  502. package/dist/utils/logger.js +1 -1
  503. package/dist/utils/string.d.ts +1 -1
  504. package/dist/utils/string.js +1 -1
  505. package/dist/x-BYOEO0gW.js +16 -0
  506. package/dist/zod.utils-Nz_Tbo_v.js +24 -0
  507. package/package.json +26 -1
  508. package/dist/assets/locales/en/translation.js +0 -148
  509. package/dist/assets/locales/sl/translation.js +0 -146
  510. package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +0 -44
  511. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +0 -27
  512. package/dist/components/Menu/Menu.d.ts +0 -23
  513. package/dist/components/Menu/Menu.js +0 -27
  514. package/dist/components/Menu/MenuDesktop.js +0 -48
  515. package/dist/components/Menu/MenuItem.js +0 -46
  516. package/dist/components/Menu/MenuPopover.d.ts +0 -7
  517. package/dist/components/Menu/MenuPopover.js +0 -121
  518. package/dist/components/Menu/menu.cva.js +0 -34
  519. package/dist/components/buttons/Button/Button.d.ts +0 -30
  520. package/dist/components/buttons/Button/Button.js +0 -66
  521. package/dist/components/buttons/shared/buttonContent.cva.js +0 -30
  522. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -25
  523. package/dist/components/inputs/DateTime/shared/Calendar.js +0 -180
  524. package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -145
  525. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -55
  526. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -119
  527. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -173
  528. package/dist/components/inputs/DateTime/shared/DateField.js +0 -155
  529. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -12
  530. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -197
  531. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -48
  532. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -46
  533. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -27
  534. package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -90
  535. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -98
  536. package/dist/components/inputs/DateTime/shared/TimeField.js +0 -19
  537. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -101
  538. package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -100
  539. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -8
  540. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -17
  541. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
  542. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -38
  543. package/dist/components/inputs/DateTime/shared/datePickerValue.utils.js +0 -4
  544. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -100
  545. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +0 -19
  546. package/dist/components/inputs/File/inputUpload.types.d.ts +0 -39
  547. package/dist/components/inputs/File/inputUpload.types.js +0 -9
  548. package/dist/components/inputs/File/shared/FileCard.js +0 -58
  549. package/dist/components/inputs/File/shared/FileCardList.js +0 -22
  550. package/dist/components/inputs/File/shared/FileUploadContent.js +0 -67
  551. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -58
  552. package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -112
  553. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -117
  554. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -79
  555. package/dist/components/inputs/File/shared/InputUploadContent.js +0 -56
  556. package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -29
  557. package/dist/components/inputs/File/shared/ProgressBar.d.ts +0 -8
  558. package/dist/components/inputs/File/shared/ProgressBar.js +0 -33
  559. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -18
  560. package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -42
  561. package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -26
  562. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -39
  563. package/dist/components/inputs/File/shared/progressBar.cva.js +0 -28
  564. package/dist/components/inputs/FormField/FormFieldError.js +0 -15
  565. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +0 -16
  566. package/dist/components/inputs/FormField/FormFieldHeader.js +0 -41
  567. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -17
  568. package/dist/components/inputs/FormField/FormFieldHelper.js +0 -16
  569. package/dist/components/inputs/FormField/FormFieldLabel.js +0 -28
  570. package/dist/components/inputs/FormField/formFieldError.cva.d.ts +0 -14
  571. package/dist/components/inputs/FormField/formFieldError.cva.js +0 -14
  572. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -14
  573. package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
  574. package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +0 -14
  575. package/dist/components/inputs/FormField/formFieldHelper.cva.js +0 -14
  576. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -12
  577. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -149
  578. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -9
  579. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
  580. package/dist/components/inputs/Input/shared/InputContent.d.ts +0 -27
  581. package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
  582. package/dist/components/inputs/Inputs/Form.d.ts +0 -26
  583. package/dist/components/inputs/Inputs/Form.js +0 -45
  584. package/dist/components/inputs/Inputs/InputItem.d.ts +0 -86
  585. package/dist/components/inputs/Inputs/Inputs.d.ts +0 -13
  586. package/dist/components/inputs/RadioGroup/radio.cva.js +0 -85
  587. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +0 -40
  588. package/dist/components/inputs/Selection/shared/SelectBase.js +0 -38
  589. package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -173
  590. package/dist/components/inputs/Selection/shared/SelectInput.js +0 -204
  591. package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -31
  592. package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -75
  593. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -54
  594. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -35
  595. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -41
  596. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -27
  597. package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -128
  598. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -25
  599. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -8
  600. package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -44
  601. package/dist/components/inputs/Selection/shared/select.context.js +0 -231
  602. package/dist/components/inputs/Selection/shared/select.types.d.ts +0 -62
  603. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -9
  604. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
  605. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -13
  606. package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
  607. package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +0 -17
  608. package/dist/components/inputs/Selection/shared/selectItem.cva.js +0 -24
  609. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
  610. package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -84
  611. package/dist/components/inputs/TextEditor/TextEditor.js +0 -158
  612. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -18
  613. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -56
  614. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -72
  615. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -43
  616. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -24
  617. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -32
  618. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -25
  619. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -43
  620. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -66
  621. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -54
  622. package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
  623. package/dist/components/inputs/Toggle/toggle.cva.js +0 -35
  624. package/dist/components/inputs/shared/TooltipWrapper.js +0 -25
  625. package/dist/components/inputs/shared/form.binding.d.ts +0 -7
  626. package/dist/components/inputs/shared/form.types.js +0 -8
  627. package/dist/components/inputs/shared/label.cva.d.ts +0 -19
  628. package/dist/components/inputs/shared/label.cva.js +0 -74
  629. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -11
  630. package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
  631. package/dist/components/inputs/shared/useFieldAccessibility.js +0 -19
  632. package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -83
  633. package/dist/components/navigation/Accordion/Accordion.d.ts +0 -5
  634. package/dist/components/navigation/Accordion/Accordion.js +0 -81
  635. package/dist/components/navigation/Accordion/AccordionItem.js +0 -108
  636. package/dist/components/navigation/Accordion/accordion.cva.d.ts +0 -86
  637. package/dist/components/navigation/Accordion/accordion.cva.js +0 -129
  638. package/dist/components/navigation/Stepper/Stepper.d.ts +0 -5
  639. package/dist/components/navigation/Stepper/Stepper.js +0 -79
  640. package/dist/components/navigation/Stepper/StepperItem.js +0 -126
  641. package/dist/components/navigation/Stepper/StepperSeparator.js +0 -30
  642. package/dist/components/navigation/Stepper/stepper.cva.js +0 -116
  643. package/dist/components/navigation/Stepper/stepper.types.d.ts +0 -33
  644. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +0 -78
  645. package/dist/components/overlays/Modal/Modal.d.ts +0 -19
  646. package/dist/components/overlays/Modal/modal.cva.d.ts +0 -37
  647. package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -44
  648. package/dist/components/segment/SegmentItem.js +0 -85
  649. package/dist/components/segment/segment.cva.d.ts +0 -22
  650. package/dist/components/segment/segment.cva.js +0 -30
  651. package/dist/components/shared/pagination/minWidth.cva.js +0 -11
  652. package/dist/components/shared/popover.cva.d.ts +0 -9
  653. package/dist/components/status/Alert/alert.cva.d.ts +0 -22
  654. package/dist/components/status/Alert/alert.cva.js +0 -67
  655. package/dist/components/status/Loader/loader.cva.js +0 -27
  656. package/dist/components/status/Toast/Toast.d.ts +0 -17
  657. package/dist/components/status/Toast/Toast.js +0 -82
  658. package/dist/components/status/Toast/toast.cva.js +0 -211
  659. package/dist/components/status/shared/status.cva.d.ts +0 -34
  660. package/dist/components/status/shared/status.cva.js +0 -65
  661. package/dist/components/table/CellText.d.ts +0 -11
  662. package/dist/components/table/CellText.js +0 -22
  663. package/dist/components/table/ColumnConfig.d.ts +0 -15
  664. package/dist/components/table/ColumnConfig.js +0 -188
  665. package/dist/components/table/HeaderText.d.ts +0 -11
  666. package/dist/components/table/HeaderText.js +0 -21
  667. package/dist/components/table/InfiniteTable.d.ts +0 -12
  668. package/dist/components/table/InfiniteTable.js +0 -79
  669. package/dist/components/table/PaginatedTable.d.ts +0 -13
  670. package/dist/components/table/PaginatedTable.js +0 -94
  671. package/dist/components/table/Table.d.ts +0 -40
  672. package/dist/components/table/Table.js +0 -267
  673. package/dist/components/table/table.cva.d.ts +0 -46
  674. package/dist/components/table/table.cva.js +0 -49
  675. package/dist/components/text/Link/link.cva.d.ts +0 -15
  676. package/dist/components/text/Link/link.cva.js +0 -12
  677. package/dist/config/i18n.js +0 -10
  678. package/dist/config/uiConfig.context.js +0 -169
  679. package/dist/config/uiOverrides.context.js +0 -113
  680. package/dist/helpers/dynamicColumns.d.ts +0 -46
  681. package/dist/helpers/dynamicColumns.js +0 -276
  682. package/dist/helpers/dynamicInputs.d.ts +0 -78
  683. package/dist/hooks/useAutosave.d.ts +0 -13
  684. package/dist/hooks/useAutosave.js +0 -87
  685. package/dist/hooks/useBreakpoint.d.ts +0 -5
  686. package/dist/hooks/useDebounceCallback.d.ts +0 -9
  687. package/dist/hooks/useDebounceCallback.js +0 -59
  688. package/dist/hooks/useDeepCompare.d.ts +0 -7
  689. package/dist/hooks/useDeepCompare.js +0 -23
  690. package/dist/hooks/useForm.js +0 -101
  691. package/dist/hooks/useFormAutosave.d.ts +0 -17
  692. package/dist/hooks/useFormAutosave.js +0 -74
  693. package/dist/hooks/useIntersectionObserver.d.ts +0 -10
  694. package/dist/hooks/useKeyInteractions.d.ts +0 -23
  695. package/dist/hooks/useKeyInteractions.js +0 -54
  696. package/dist/hooks/useLongPressRepeat.d.ts +0 -12
  697. package/dist/hooks/useLongPressRepeat.js +0 -64
  698. package/dist/hooks/usePagination.d.ts +0 -10
  699. package/dist/hooks/usePagination.js +0 -62
  700. package/dist/hooks/useScrollableListBox.d.ts +0 -6
  701. package/dist/hooks/useScrollableListBox.js +0 -47
  702. package/dist/hooks/useSorting.d.ts +0 -9
  703. package/dist/hooks/useSorting.js +0 -80
  704. package/dist/hooks/useStateAndRef.d.ts +0 -6
  705. package/dist/hooks/useStateAndRef.js +0 -31
  706. package/dist/hooks/useTableColumnConfig.d.ts +0 -20
  707. package/dist/hooks/useTableColumnConfig.js +0 -133
  708. package/dist/hooks/useTableNav.d.ts +0 -86
  709. package/dist/hooks/useTableNav.js +0 -365
  710. package/dist/rhf/Inputs.d.ts +0 -79
  711. package/dist/rhf/components.d.ts +0 -43
  712. package/dist/rhf/dynamicInputs.d.ts +0 -20
  713. package/dist/rhf/dynamicInputs.js +0 -5
  714. package/dist/rhf/entry.utils.js +0 -22
  715. package/dist/rhf/inputs2.d.ts +0 -6
  716. package/dist/rhf/useAutosave.d.ts +0 -13
  717. package/dist/rhf/useAutosave.js +0 -71
  718. package/dist/rhf/useForm.d.ts +0 -18
  719. package/dist/rhf/useForm.js +0 -48
  720. package/dist/rhf/useFormAutosave.d.ts +0 -18
  721. package/dist/types/error-handling.d.ts +0 -9
  722. package/dist/utils/array.utils.d.ts +0 -6
  723. package/dist/utils/array.utils.js +0 -10
  724. package/dist/utils/dom.utils.d.ts +0 -8
  725. package/dist/utils/dom.utils.js +0 -19
  726. package/dist/utils/isEqual.d.ts +0 -4
  727. package/dist/utils/isEqual.js +0 -59
  728. package/dist/utils/logger2.d.ts +0 -2
  729. package/dist/utils/logger2.js +0 -19
  730. package/dist/utils/object.utils.d.ts +0 -13
  731. package/dist/utils/object.utils.js +0 -38
  732. package/dist/utils/queries.utils.d.ts +0 -7
  733. package/dist/utils/queries.utils.js +0 -9
  734. package/dist/utils/query.utils.js +0 -8
  735. package/dist/utils/routing.utils.d.ts +0 -7
  736. package/dist/utils/style-merge.util.d.ts +0 -40
  737. package/dist/utils/zod.utils.d.ts +0 -23
  738. package/dist/utils/zod.utils.js +0 -24
@@ -1,133 +0,0 @@
1
- import { c } from "react/compiler-runtime";
2
- import { useEffect, useState } from "react";
3
- //#region src/hooks/useTableColumnConfig.ts
4
- function sortByKeyOrder(data, orderedKeys = []) {
5
- return [...data].sort((a, b) => {
6
- return orderedKeys.findIndex((key) => key === (a.id ?? a.accessorKey)) - orderedKeys.findIndex((key) => key === (b.id ?? b.accessorKey));
7
- });
8
- }
9
- function useTableColumnConfig(defaultColumns, t0) {
10
- const $ = c(31);
11
- let t1;
12
- if ($[0] !== t0) {
13
- t1 = t0 === void 0 ? {} : t0;
14
- $[0] = t0;
15
- $[1] = t1;
16
- } else t1 = $[1];
17
- const options = t1;
18
- let t2;
19
- if ($[2] !== defaultColumns) {
20
- t2 = () => defaultColumns.reduce(_temp, {});
21
- $[2] = defaultColumns;
22
- $[3] = t2;
23
- } else t2 = $[3];
24
- const [internalVisibleColumns, setInternalVisibleColumns] = useState(t2);
25
- let t3;
26
- if ($[4] !== defaultColumns) {
27
- t3 = () => defaultColumns.map(_temp2);
28
- $[4] = defaultColumns;
29
- $[5] = t3;
30
- } else t3 = $[5];
31
- const [internalColumnOrder, setInternalColumnOrder] = useState(t3);
32
- let t4;
33
- let t5;
34
- if ($[6] !== options.visibleColumns) {
35
- t4 = () => {
36
- if (options.visibleColumns) setInternalVisibleColumns(options.visibleColumns);
37
- };
38
- t5 = [options.visibleColumns];
39
- $[6] = options.visibleColumns;
40
- $[7] = t4;
41
- $[8] = t5;
42
- } else {
43
- t4 = $[7];
44
- t5 = $[8];
45
- }
46
- useEffect(t4, t5);
47
- let t6;
48
- let t7;
49
- if ($[9] !== options.columnOrder) {
50
- t6 = () => {
51
- if (options.columnOrder) setInternalColumnOrder(options.columnOrder);
52
- };
53
- t7 = [options.columnOrder];
54
- $[9] = options.columnOrder;
55
- $[10] = t6;
56
- $[11] = t7;
57
- } else {
58
- t6 = $[10];
59
- t7 = $[11];
60
- }
61
- useEffect(t6, t7);
62
- let t8;
63
- if ($[12] !== options) {
64
- t8 = (value) => {
65
- setInternalVisibleColumns(value);
66
- options?.onVisibilityChange?.(value);
67
- };
68
- $[12] = options;
69
- $[13] = t8;
70
- } else t8 = $[13];
71
- const handleVisibilityChange = t8;
72
- let t9;
73
- if ($[14] !== options) {
74
- t9 = (value_0) => {
75
- setInternalColumnOrder(value_0);
76
- options?.onOrderChange?.(value_0);
77
- };
78
- $[14] = options;
79
- $[15] = t9;
80
- } else t9 = $[15];
81
- const handleOrderChange = t9;
82
- let t10;
83
- if ($[16] !== defaultColumns || $[17] !== internalColumnOrder) {
84
- t10 = sortByKeyOrder(defaultColumns, internalColumnOrder);
85
- $[16] = defaultColumns;
86
- $[17] = internalColumnOrder;
87
- $[18] = t10;
88
- } else t10 = $[18];
89
- const configColumns = t10;
90
- let t11;
91
- if ($[19] !== configColumns || $[20] !== internalVisibleColumns) {
92
- let t12;
93
- if ($[22] !== internalVisibleColumns) {
94
- t12 = (col_1) => internalVisibleColumns?.[col_1.id ?? col_1.accessorKey] ?? true;
95
- $[22] = internalVisibleColumns;
96
- $[23] = t12;
97
- } else t12 = $[23];
98
- t11 = configColumns.filter(t12);
99
- $[19] = configColumns;
100
- $[20] = internalVisibleColumns;
101
- $[21] = t11;
102
- } else t11 = $[21];
103
- const columns = t11;
104
- let t12;
105
- if ($[24] !== columns || $[25] !== configColumns || $[26] !== handleOrderChange || $[27] !== handleVisibilityChange || $[28] !== internalColumnOrder || $[29] !== internalVisibleColumns) {
106
- t12 = {
107
- configColumns,
108
- columns,
109
- visibleColumns: internalVisibleColumns,
110
- columnOrder: internalColumnOrder,
111
- onVisibilityChange: handleVisibilityChange,
112
- onOrderChange: handleOrderChange
113
- };
114
- $[24] = columns;
115
- $[25] = configColumns;
116
- $[26] = handleOrderChange;
117
- $[27] = handleVisibilityChange;
118
- $[28] = internalColumnOrder;
119
- $[29] = internalVisibleColumns;
120
- $[30] = t12;
121
- } else t12 = $[30];
122
- return t12;
123
- }
124
- function _temp2(col_0) {
125
- return col_0.id ?? col_0.accessorKey;
126
- }
127
- function _temp(acc, col) {
128
- const key = col.id ?? col.accessorKey;
129
- acc[key] = true;
130
- return acc;
131
- }
132
- //#endregion
133
- export { useTableColumnConfig };
@@ -1,86 +0,0 @@
1
- import { KeyboardEvent } from "react";
2
- //#region src/hooks/useTableNav.d.ts
3
- declare const Selectors: {
4
- readonly Cell: '[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],td,th';
5
- readonly Row: '[role="row"],tr';
6
- readonly RowGroup: '[role="rowgroup"],thead,tbody,tfoot';
7
- /** Selector from here: https://github.com/Shopify/polaris/blob/main/polaris-react/src/utilities/focus.ts#L10 */
8
- readonly Focusable: 'a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not([aria-disabled="true"]):not([tabindex="-1"]):not(:disabled),*[tabindex]';
9
- };
10
- type Config = {
11
- /** Enable debug logs */
12
- debug?: boolean;
13
- /** CSS Selectors being used to find Rows, Row Groups, Cells and Focusable elements */
14
- selectors?: Partial<typeof Selectors>;
15
- /** How many rows to move when pressing page up/down - Default goes to first/last row */
16
- pageUpDown?: number;
17
- } | undefined;
18
- declare class DataGridNav {
19
- private selectors;
20
- readonly pageUpDown: number | undefined;
21
- private keys;
22
- private disabled;
23
- readonly debug: boolean;
24
- private activeCell;
25
- constructor();
26
- constructor(config: Config);
27
- private debugLog;
28
- /**
29
- * Disables the keyboard listener in cases
30
- * that elements inside the grid need to use
31
- * arrows keys etc., like select dropdowns
32
- */
33
- disable(): void;
34
- /**
35
- * Enables the keyboard listeners
36
- */
37
- enable(): void;
38
- private isFocusable;
39
- getActiveCell(): HTMLElement | null;
40
- /** Used as a keyboard listener for key up */
41
- tableKeyUp(): void;
42
- /** Used as a keyboard listener for key down */
43
- tableKeyDown(e: KeyboardEvent): void;
44
- /**
45
- * Handles the navigation inside a cell
46
- */
47
- cellNavigation(e: KeyboardEvent): void;
48
- /**
49
- * Handles the navigation outside a cell
50
- * on the grid level
51
- */
52
- gridNavigation(e: KeyboardEvent): void;
53
- private pageCellNavigation;
54
- private verticalCellNavigation;
55
- /**
56
- * Sending a row `Element` and then the first cell will be focused.
57
- *
58
- * If you want to focus the last cell then the row children can be passed in
59
- * reversed order
60
- */
61
- private focusOnFirstCell;
62
- /**
63
- * Get the column index of a `cell` based on the first `row` parent.
64
- * `cellIndex` could be used, but it's not supported in HTML tables.
65
- */
66
- private getColumnIndex;
67
- /**
68
- * Get the row index of a `row` based
69
- * on its sibling rows
70
- */
71
- private getRowIndex;
72
- /**
73
- * Equivalent to prevUntil/nextUntil in jQuery
74
- * https://api.jquery.com/prevUntil/
75
- */
76
- private findUntil;
77
- }
78
- declare function useTableNav(options?: Config): {
79
- listeners: {
80
- onKeyDown: (e: KeyboardEvent) => void;
81
- onKeyUp: () => void;
82
- };
83
- tableNav: DataGridNav;
84
- };
85
- //#endregion
86
- export { useTableNav };
@@ -1,365 +0,0 @@
1
- import { logger } from "../utils/logger2.js";
2
- //#region src/hooks/useTableNav.ts
3
- const Selectors = {
4
- Cell: "[role=\"cell\"],[role=\"gridcell\"],[role=\"columnheader\"],[role=\"rowheader\"],td,th",
5
- Row: "[role=\"row\"],tr",
6
- RowGroup: "[role=\"rowgroup\"],thead,tbody,tfoot",
7
- /** Selector from here: https://github.com/Shopify/polaris/blob/main/polaris-react/src/utilities/focus.ts#L10 */
8
- Focusable: "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not([aria-disabled=\"true\"]):not([tabindex=\"-1\"]):not(:disabled),*[tabindex]"
9
- };
10
- var DataGridNav = class {
11
- constructor(config = {}) {
12
- this.keys = [];
13
- this.activeCell = null;
14
- this.debugLog = (functionName, message) => {
15
- if (this.debug) logger.info(`[${functionName}]: ${message}`);
16
- };
17
- const { selectors = {}, pageUpDown, debug = false } = config;
18
- this.selectors = {
19
- ...Selectors,
20
- ...selectors
21
- };
22
- this.pageUpDown = pageUpDown;
23
- this.keys = [];
24
- this.debug = debug;
25
- this.disabled = false;
26
- }
27
- /**
28
- * Disables the keyboard listener in cases
29
- * that elements inside the grid need to use
30
- * arrows keys etc., like select dropdowns
31
- */
32
- disable() {
33
- this.disabled = true;
34
- }
35
- /**
36
- * Enables the keyboard listeners
37
- */
38
- enable() {
39
- this.disabled = false;
40
- }
41
- isFocusable(el) {
42
- return el instanceof HTMLElement || el instanceof SVGElement;
43
- }
44
- getActiveCell() {
45
- return this.activeCell;
46
- }
47
- /** Used as a keyboard listener for key up */
48
- tableKeyUp() {
49
- this.keys = [];
50
- }
51
- /** Used as a keyboard listener for key down */
52
- tableKeyDown(e) {
53
- if (this.disabled) return;
54
- /**
55
- * Avoid page scrolling etc.
56
- * Enable default behavior for:
57
- * Tab, Shift + Tab
58
- * TODO: Actually it will be better to just prevent
59
- * in ArrowKeys and PageKeys maybe?
60
- * Or should the consumer stop propagation?!
61
- * Cannot work with preventDefault as it will
62
- * first capture the event from an input in cell for example
63
- */
64
- if ("ArrowDown" === e.key || "ArrowUp" === e.key || "ArrowLeft" === e.key || "ArrowRight" === e.key) e.preventDefault();
65
- /**
66
- * Add key to the stack if it's
67
- * not the same with the last (long press)
68
- */
69
- if (this.keys.length === 0 || this.keys[this.keys.length - 1] !== e.key) this.keys.push(e.key);
70
- /**
71
- * Need to check if we are inside a grid cell
72
- * or not to enable/disable Grid Navigation
73
- */
74
- if (!(e.target instanceof Element)) return;
75
- const cell = e.target.parentElement?.closest(`${this.selectors.Cell},${this.selectors.Row}`);
76
- if (!cell) return;
77
- if (cell.matches(this.selectors.Cell)) this.cellNavigation(e);
78
- else this.gridNavigation(e);
79
- }
80
- /**
81
- * Handles the navigation inside a cell
82
- */
83
- cellNavigation(e) {
84
- if (!(e.target instanceof Element)) return;
85
- /**
86
- * Keys: Escape
87
- * Restore grid navigation
88
- */
89
- if (e.key === "Escape") {
90
- const cell = e.target.closest(this.selectors.Cell);
91
- if (cell && this.isFocusable(cell)) {
92
- cell.focus();
93
- return;
94
- }
95
- }
96
- /**
97
- * Keys: ArrowRight, ArrowDown
98
- * Move to the next focusable cell, or the first one
99
- *
100
- * Arrow Down disabled:
101
- * https://github.com/w3c/aria-practices/issues/2739#issuecomment-1613538972
102
- */
103
- if (e.key === "ArrowRight" || e.key === "ArrowDown") {
104
- const cell = e.target.closest(this.selectors.Cell);
105
- if (!cell) return;
106
- const focusableWidgets = [...cell.querySelectorAll(this.selectors.Focusable)];
107
- const widgetIdx = focusableWidgets.findIndex((el) => el === e.target);
108
- const widgetToFocus = focusableWidgets[widgetIdx === focusableWidgets.length - 1 ? 0 : widgetIdx + 1];
109
- if (this.isFocusable(widgetToFocus)) widgetToFocus.focus();
110
- return;
111
- }
112
- /**
113
- * Keys: ArrowLeft, ArrowUp
114
- * Move to the previous focusable cell, or the last one
115
- *
116
- * Arrow Up disabled:
117
- * https://github.com/w3c/aria-practices/issues/2739#issuecomment-1613538972
118
- */
119
- if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
120
- const cell = e.target.closest(this.selectors.Cell);
121
- if (!cell) return;
122
- const focusableWidgets = [...cell.querySelectorAll(this.selectors.Focusable)];
123
- const widgetIdx = focusableWidgets.findIndex((el) => el === e.target);
124
- const widgetToFocus = focusableWidgets[widgetIdx === 0 ? focusableWidgets.length - 1 : widgetIdx - 1];
125
- if (this.isFocusable(widgetToFocus)) widgetToFocus.focus();
126
- }
127
- }
128
- /**
129
- * Handles the navigation outside a cell
130
- * on the grid level
131
- */
132
- gridNavigation(e) {
133
- const { target } = e;
134
- if (!(e.target instanceof Element)) return;
135
- if (!(target instanceof Element)) return;
136
- if (this.keys.length === 1) {
137
- /**
138
- * Keys: Enter
139
- * Should move focus inside the cell to the first focusable element:
140
- * https://www.w3.org/WAI/ARIA/apg/patterns/grid/#gridNav_inside
141
- */
142
- if (/^[a-zA-Z0-9]$/.test(e.key)) {
143
- const cell = e.target.querySelector(this.selectors.Focusable);
144
- if (cell && this.isFocusable(cell) && cell instanceof HTMLInputElement) {
145
- cell.focus();
146
- cell.value = `${cell.value}${e.key}`;
147
- e.preventDefault();
148
- }
149
- return;
150
- }
151
- if (e.key === "Backspace") {
152
- const cell = e.target.querySelector(this.selectors.Focusable);
153
- if (cell && this.isFocusable(cell) && cell instanceof HTMLInputElement) {
154
- const nativeInputValueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
155
- if (nativeInputValueSetter) {
156
- nativeInputValueSetter.call(cell, "");
157
- const ev = new Event("input", { bubbles: true });
158
- cell.dispatchEvent(ev);
159
- }
160
- }
161
- return;
162
- }
163
- if (e.key === "Enter") {
164
- const cell = e.target.querySelector(this.selectors.Focusable);
165
- if (cell && this.isFocusable(cell)) {
166
- if (cell.getAttribute("data-type") === "select-trigger") {
167
- cell.click();
168
- return;
169
- }
170
- cell.focus();
171
- e.preventDefault();
172
- }
173
- return;
174
- }
175
- /**
176
- * Keys: ArrowLeft, ArrowRight
177
- * Should move focus to the next/previous cell
178
- */
179
- if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
180
- const direction = e.key === "ArrowLeft" ? "prev" : "next";
181
- const cell = e.target.closest(this.selectors.Cell);
182
- let nextCell = null;
183
- if (direction === "next" && cell?.nextElementSibling instanceof HTMLElement) nextCell = cell.nextElementSibling;
184
- if (direction === "prev" && cell?.previousElementSibling instanceof HTMLElement) nextCell = cell.previousElementSibling;
185
- if (nextCell && this.isFocusable(nextCell)) {
186
- nextCell.focus();
187
- e.preventDefault();
188
- }
189
- }
190
- /**
191
- * Keys: Up,Down
192
- * Should move focus to the same column of the next/previous row
193
- */
194
- if (e.key === "ArrowDown" || e.key === "ArrowUp") {
195
- this.verticalCellNavigation(e);
196
- return;
197
- }
198
- /**
199
- * Keys: PageUp, PageDown
200
- * Should move focus to the first/last row
201
- * or a predefined number of rows if user provides a value
202
- */
203
- if (e.key === "PageUp" || e.key === "PageDown") {
204
- this.pageCellNavigation(e);
205
- return;
206
- }
207
- /**
208
- * Keys: Home, End
209
- * Should move focus to the first/last cell of the current row
210
- */
211
- if (e.key === "Home" || e.key === "End") {
212
- const rowChildren = [...e.target.closest(this.selectors.Row)?.children || []];
213
- if (e.key === "End") rowChildren.reverse();
214
- this.focusOnFirstCell(rowChildren);
215
- }
216
- } else {
217
- /**
218
- * Keys: Control + Home, Control + End
219
- * Should move focus to the first/last cell of the first/last row
220
- */
221
- const [firstKey, secondKey] = this.keys;
222
- if (firstKey === "Control" && (secondKey === "Home" || secondKey === "End")) {
223
- const siblings = e.target.closest(this.selectors.Row).parentElement?.children;
224
- if (!siblings) return;
225
- const rowChildren = [...(secondKey === "Home" ? siblings[0] : siblings[siblings.length - 1])?.children || []];
226
- if (secondKey === "End") rowChildren.reverse();
227
- this.focusOnFirstCell(rowChildren);
228
- }
229
- }
230
- }
231
- pageCellNavigation(e) {
232
- if (!(e.target instanceof Element)) return;
233
- const row = e.target.closest(this.selectors.Row);
234
- const cell = e.target.closest(this.selectors.Cell);
235
- if (row && cell) {
236
- const position = this.getColumnIndex(cell);
237
- if (position === void 0) return;
238
- const direction = e.key === "PageUp" ? "prev" : "next";
239
- const siblings = row.parentElement?.children;
240
- if (!siblings) return;
241
- let destinationRow;
242
- if (this.pageUpDown) {
243
- const methodClbk = direction === "prev" ? "previousSibling" : "nextSibling";
244
- let sibling = row[methodClbk];
245
- if (sibling === null) return;
246
- let lastVisitedSibling = sibling;
247
- for (let i = 0; i < this.pageUpDown - 1 && sibling; i++) {
248
- sibling = sibling[methodClbk];
249
- if (sibling) lastVisitedSibling = sibling;
250
- }
251
- destinationRow = sibling || lastVisitedSibling;
252
- } else destinationRow = direction === "prev" ? siblings[0] : siblings[siblings.length - 1];
253
- if (!destinationRow || !(destinationRow instanceof Element)) return;
254
- const child = destinationRow.children[position];
255
- if (child && this.isFocusable(child)) child.focus();
256
- }
257
- }
258
- verticalCellNavigation(e) {
259
- if (!(e.target instanceof Element)) return;
260
- const row = e.target.closest(this.selectors.Row);
261
- const cell = e.target.closest(this.selectors.Cell);
262
- if (row && cell) {
263
- const cellPosition = this.getColumnIndex(cell);
264
- const rowPosition = this.getRowIndex(row);
265
- if (cellPosition === void 0 || rowPosition === void 0) return;
266
- const direction = e.key === "ArrowUp" ? "prev" : "next";
267
- /** Find previous rowgroup and focus on the proper cell */
268
- if (rowPosition === 0 && direction === "prev") {
269
- const currentRowGroup = row.parentElement?.closest(this.selectors.RowGroup);
270
- const siblingRowGroups = [...currentRowGroup?.parentElement?.children || []];
271
- const currentRowGroupIdx = siblingRowGroups.findIndex((el) => el === currentRowGroup);
272
- if (currentRowGroupIdx !== 0) {
273
- const rows = [...siblingRowGroups[currentRowGroupIdx - 1].querySelectorAll(this.selectors.Row)];
274
- const child = rows[rows.length - 1].children[cellPosition];
275
- if (child && this.isFocusable(child)) child.focus();
276
- return;
277
- }
278
- }
279
- /** Find next rowgroup and focus on the proper cell */
280
- if (rowPosition === [...row.parentElement?.querySelectorAll(this.selectors.Row) || []].length - 1 && direction === "next") {
281
- const currentRowGroup = row.parentElement?.closest(this.selectors.RowGroup);
282
- const siblingRowGroups = [...currentRowGroup?.parentElement?.children || []];
283
- const currentRowGroupIdx = siblingRowGroups.findIndex((el) => el === currentRowGroup);
284
- if (currentRowGroupIdx !== siblingRowGroups.length - 1) {
285
- const child = [...siblingRowGroups[currentRowGroupIdx + 1].querySelectorAll(this.selectors.Row)][0].children[cellPosition];
286
- if (child && this.isFocusable(child)) child.focus();
287
- return;
288
- }
289
- return;
290
- }
291
- /** Navigation in the same rowgroup */
292
- const destinationRow = this.findUntil(direction, row, this.selectors.Row);
293
- if (!destinationRow) return;
294
- const child = destinationRow.children[cellPosition];
295
- if (child && this.isFocusable(child)) child.focus();
296
- }
297
- }
298
- /**
299
- * Sending a row `Element` and then the first cell will be focused.
300
- *
301
- * If you want to focus the last cell then the row children can be passed in
302
- * reversed order
303
- */
304
- focusOnFirstCell(el) {
305
- for (let i = 0; i < el.length; i++) {
306
- const child = el[i];
307
- if (this.isFocusable(child)) {
308
- child.focus();
309
- return;
310
- }
311
- }
312
- }
313
- /**
314
- * Get the column index of a `cell` based on the first `row` parent.
315
- * `cellIndex` could be used, but it's not supported in HTML tables.
316
- */
317
- getColumnIndex(cell) {
318
- let position = 0;
319
- const siblings = cell?.parentNode?.children;
320
- if (!siblings) return;
321
- while (cell !== siblings[position] && siblings[position] !== void 0) position++;
322
- if (siblings[position] === void 0) return;
323
- return position;
324
- }
325
- /**
326
- * Get the row index of a `row` based
327
- * on its sibling rows
328
- */
329
- getRowIndex(row) {
330
- let position = 0;
331
- const siblings = row?.parentNode?.children;
332
- if (!siblings) return;
333
- while (row !== siblings[position] && siblings[position] !== void 0) position++;
334
- if (siblings[position] === void 0) return;
335
- return position;
336
- }
337
- /**
338
- * Equivalent to prevUntil/nextUntil in jQuery
339
- * https://api.jquery.com/prevUntil/
340
- */
341
- findUntil(direction, el, matchSelector, exitSelector) {
342
- let element = el;
343
- const method = direction === "next" ? "nextSibling" : "previousSibling";
344
- while (element[method]) {
345
- const sibling = element[method];
346
- if (!sibling) return null;
347
- if (exitSelector && sibling instanceof Element && sibling.matches(exitSelector)) return null;
348
- if (sibling instanceof Element && sibling.matches(matchSelector)) return sibling;
349
- element = sibling;
350
- }
351
- return null;
352
- }
353
- };
354
- function useTableNav(options) {
355
- const nav = new DataGridNav(options);
356
- return {
357
- listeners: {
358
- onKeyDown: (e) => nav.tableKeyDown(e),
359
- onKeyUp: () => nav.tableKeyUp()
360
- },
361
- tableNav: nav
362
- };
363
- }
364
- //#endregion
365
- export { useTableNav };
@@ -1,79 +0,0 @@
1
- import { Autocomplete } from "./autocomplete.js";
2
- import { Checkbox } from "./checkbox.js";
3
- import { CheckboxGroup } from "./checkbox-group.js";
4
- import { DatePicker } from "./date-picker.js";
5
- import { DateRangePicker } from "./date-range-picker.js";
6
- import { DateTimePicker } from "./date-time-picker.js";
7
- import { NumberInput } from "./number-input.js";
8
- import { NumberRangeInput } from "./number-range-input.js";
9
- import { PasswordInput } from "./password-input.js";
10
- import { QueryAutocomplete } from "./query-autocomplete.js";
11
- import { QuerySelect } from "./query-select.js";
12
- import { Segment } from "./segment.js";
13
- import { Select } from "./select.js";
14
- import { Slider } from "./slider.js";
15
- import { TextArea } from "./text-area.js";
16
- import { TextInput } from "./text-input.js";
17
- import { TimePicker } from "./time-picker.js";
18
- import { Toggle } from "./toggle.js";
19
- import "./components.js";
20
- import { ReactElement, ReactNode } from "react";
21
- import { SubmitErrorHandler, SubmitHandler, UseFormReturn } from "react-hook-form";
22
- import { z } from "zod";
23
- //#region src/rhf/Inputs.d.ts
24
- declare const componentRegistry: {
25
- readonly autocomplete: typeof Autocomplete;
26
- readonly checkbox: typeof Checkbox;
27
- readonly checkboxGroup: typeof CheckboxGroup;
28
- readonly datePicker: typeof DatePicker;
29
- readonly dateRangePicker: typeof DateRangePicker;
30
- readonly dateTimePicker: typeof DateTimePicker;
31
- readonly numberInput: typeof NumberInput;
32
- readonly numberRangeInput: typeof NumberRangeInput;
33
- readonly passwordInput: typeof PasswordInput;
34
- readonly queryAutocomplete: typeof QueryAutocomplete;
35
- readonly querySelect: typeof QuerySelect;
36
- readonly segment: typeof Segment;
37
- readonly select: typeof Select;
38
- readonly slider: typeof Slider;
39
- readonly textArea: typeof TextArea;
40
- readonly textInput: typeof TextInput;
41
- readonly timePicker: typeof TimePicker;
42
- readonly toggle: typeof Toggle;
43
- };
44
- type InputComponentType = keyof typeof componentRegistry;
45
- type InputWrapperType = (children: ReactNode, label: string) => ReactElement;
46
- interface InputDef<TFieldValues extends Record<string, any>> {
47
- name: keyof TFieldValues;
48
- type?: InputComponentType;
49
- label?: string;
50
- placeholder?: string;
51
- props?: Record<string, unknown>;
52
- inputWrapper?: InputWrapperType;
53
- render?: (formControl: {
54
- control: UseFormReturn<TFieldValues>["control"];
55
- name: keyof TFieldValues;
56
- }, form: UseFormReturn<TFieldValues>) => ReactElement;
57
- }
58
- interface InputsProps<TFieldValues extends Record<string, any>> {
59
- form: UseFormReturn<TFieldValues>;
60
- inputDefs: Array<InputDef<TFieldValues>>;
61
- children?: (inputs: Record<keyof TFieldValues, ReactNode>) => ReactNode;
62
- }
63
- declare function Inputs<TFieldValues extends Record<string, any>>({ form, inputDefs, children }: InputsProps<TFieldValues>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element[] | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined;
64
- type FieldComponents<TSchema extends z.ZodObject<any>> = { [K in keyof Required<z.infer<TSchema>> as Capitalize<K & string>]: (props: {
65
- inputType?: InputComponentType;
66
- label: string;
67
- placeholder?: string;
68
- [key: string]: unknown;
69
- }) => ReactNode; };
70
- declare function Form<TSchema extends z.ZodObject<any>>({ form, schema, onSubmit, onError, className, children }: {
71
- form: UseFormReturn<z.infer<TSchema>>;
72
- schema: TSchema;
73
- onSubmit: SubmitHandler<z.infer<TSchema>>;
74
- onError?: SubmitErrorHandler<z.infer<TSchema>>;
75
- className?: string;
76
- children: (components: FieldComponents<TSchema>) => ReactNode;
77
- }): import("react/jsx-runtime").JSX.Element;
78
- //#endregion
79
- export { Form, InputComponentType, InputDef, InputWrapperType, Inputs, InputsProps };