@povio/ui 3.4.0-rc.9 → 4.0.0-rc.2

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 (1271) hide show
  1. package/README.md +56 -2
  2. package/dist/Accordion-Cup5eRZz.d.ts +58 -0
  3. package/dist/Accordion-rZ9P9dZy.js +416 -0
  4. package/dist/Alert-BALBsBrP.js +240 -0
  5. package/dist/Alert-CbEhRaU5.d.ts +33 -0
  6. package/dist/AlertDialog-PjYM6lDo.d.ts +26 -0
  7. package/dist/Autocomplete-DE2lQi5o.d.ts +15 -0
  8. package/dist/Badge-CjPpYa50.d.ts +28 -0
  9. package/dist/BottomSheet-ByyAU_dJ.js +404 -0
  10. package/dist/BottomSheet-CT0zuola.d.ts +33 -0
  11. package/dist/BottomSheet.lazy-7AwnB4vS.d.ts +5 -0
  12. package/dist/Breadcrumbs-D-3YEuem.d.ts +19 -0
  13. package/dist/Breadcrumbs-UfRbfiqU.js +351 -0
  14. package/dist/Button-CRlZqaJq.js +89 -0
  15. package/dist/Button-CbwNjdRz.js +761 -0
  16. package/dist/Button-DTNjsGx5.d.ts +42 -0
  17. package/dist/ButtonContent-CohuJJzG.js +136 -0
  18. package/dist/Calendar-Ci0ysyfZ.js +753 -0
  19. package/dist/CheckContent-DzWpxKGq.js +19 -0
  20. package/dist/Checkbox-BJ7flpwA.js +227 -0
  21. package/dist/Checkbox-CBybJbLm.d.ts +26 -0
  22. package/dist/CheckboxCheckmark-C1X9yBT6.js +195 -0
  23. package/dist/CheckboxGroup-4xoWgmxr.d.ts +28 -0
  24. package/dist/DatePicker-CgCr_Z8r.js +434 -0
  25. package/dist/DatePicker-DyjAwAh6.d.ts +44 -0
  26. package/dist/DatePickerInput-B9Z_AUkC.js +945 -0
  27. package/dist/DatePickerInput-CdCtVE9z.d.ts +18 -0
  28. package/dist/DateRangePicker-CS69o2pD.js +1858 -0
  29. package/dist/DateRangePicker-Cdu1Sx37.d.ts +76 -0
  30. package/dist/DateTimePicker-ClSa8hFs.d.ts +44 -0
  31. package/dist/DateTimePicker-Xzc1ve3a.js +387 -0
  32. package/dist/Dialog-CLWfxiie.js +595 -0
  33. package/dist/Dialog-DEbI_9S-.d.ts +55 -0
  34. package/dist/Dialog-DLfOkNe9.js +60 -0
  35. package/dist/Drawer-D1cHiBFO.d.ts +18 -0
  36. package/dist/DropdownMenu-CZQRzOBb.d.ts +61 -0
  37. package/dist/DropdownMenu-hkpycd0j.js +178 -0
  38. package/dist/DropdownMenuDesktop-B0MKN0op.js +248 -0
  39. package/dist/FileInput-BQS6TAH7.js +236 -0
  40. package/dist/FileInput-CI8D_wf_.d.ts +70 -0
  41. package/dist/FileTrigger-C5r_5hvS.js +145 -0
  42. package/dist/FileUpload-BrnJdN3M.d.ts +7 -0
  43. package/dist/FileUpload-cS3NOaES.js +791 -0
  44. package/dist/FileUploadContainer-CkBENy6n.d.ts +5 -0
  45. package/dist/FocusScope-CNjWJz3s.js +343 -0
  46. package/dist/Form-Bam3kea-.js +10 -0
  47. package/dist/Form-NZGvsbuM.d.ts +49 -0
  48. package/dist/FormField-BHPdCLEV.js +211 -0
  49. package/dist/FormField-DTDj3F0A.d.ts +37 -0
  50. package/dist/FormFieldError-BT4uxbKY.d.ts +10 -0
  51. package/dist/FormFieldError-CFg0Wn3i.js +26 -0
  52. package/dist/FormFieldHeaderTooltip-b-kY0DgB.js +38 -0
  53. package/dist/Heading-D0cYUzVa.js +16 -0
  54. package/dist/IconButton-CYazzM7I.d.ts +16 -0
  55. package/dist/InlineIconButton-Rp5bXWcQ.d.ts +15 -0
  56. package/dist/InlineTooltipWrapper-BqLlgdD7.js +24 -0
  57. package/dist/Input-BmIahisJ.js +47 -0
  58. package/dist/Input-DSHFNEVl.d.ts +30 -0
  59. package/dist/InputContent-CvWm6GAv.d.ts +27 -0
  60. package/dist/InputItem-AU6mq7o-.js +63 -0
  61. package/dist/Inputs-AqKRElPz.js +17 -0
  62. package/dist/Inputs-DiFAIBZS.d.ts +13 -0
  63. package/dist/Label-C6BonuOp.js +17 -0
  64. package/dist/Link-D7QEPw-L.js +47 -0
  65. package/dist/Link-DS9-0Ijl.d.ts +27 -0
  66. package/dist/Link-e4ZWZNrO.js +42 -0
  67. package/dist/ListBox-Dx42Gif4.js +418 -0
  68. package/dist/MenuItem-CROWrE2A.d.ts +6 -0
  69. package/dist/Modal-C5Oi8GZF.js +152 -0
  70. package/dist/NumberField-BICDQ2gN.d.ts +30 -0
  71. package/dist/NumberRangeInput-BlGXChNR.d.ts +45 -0
  72. package/dist/NumberRangeInput-xjkniTH0.js +428 -0
  73. package/dist/OverlayArrow-BRnQo6-8.js +33 -0
  74. package/dist/Pagination-CumQED8X.d.ts +12 -0
  75. package/dist/PaginationList-D79ApWLm.d.ts +18 -0
  76. package/dist/PaginationList-Du7qn_AS.js +228 -0
  77. package/dist/PasswordInput-BdrYD1D3.d.ts +10 -0
  78. package/dist/PasswordInput-DTScGauT.js +63 -0
  79. package/dist/PillButton-CihEPQye.d.ts +15 -0
  80. package/dist/Popover-C0_-TLl_.d.ts +20 -0
  81. package/dist/Progress-CYfDXJKs.d.ts +44 -0
  82. package/dist/Progress-_jkt2pQw.js +145 -0
  83. package/dist/QuerySelect-V9C2b67x.d.ts +23 -0
  84. package/dist/RadioGroup-B9g4uT4E.js +380 -0
  85. package/dist/RadioGroup-WHWosz7K.d.ts +24 -0
  86. package/dist/RichTextEditor-CbgjRfiU.d.ts +26 -0
  87. package/dist/RichTextEditor-DWgaZLRW.js +925 -0
  88. package/dist/Select-O9dprkTa.js +159 -0
  89. package/dist/Select-wzB2aQ_X.d.ts +15 -0
  90. package/dist/SelectBase-DefgAEzh.d.ts +96 -0
  91. package/dist/SelectionIndicator-C9TY9dkk.js +5 -0
  92. package/dist/SharedElementTransition-lGqrCNlI.js +12 -0
  93. package/dist/Slider-CZMNmk6P.d.ts +22 -0
  94. package/dist/Slider-IDDtzb2P.js +246 -0
  95. package/dist/Spinner-BOgO9bS6.d.ts +29 -0
  96. package/dist/Spinner-owSXOEzg.js +113 -0
  97. package/dist/SplitButton-BPZbQeYC.d.ts +15 -0
  98. package/dist/Stepper-Coe3PAl_.js +336 -0
  99. package/dist/Stepper-PcHlxDD5.d.ts +113 -0
  100. package/dist/Switch-BaNEe9Nx.js +192 -0
  101. package/dist/Switch-C0S5Juhf.d.ts +22 -0
  102. package/dist/TableDnd-CuHxANWh.js +133 -0
  103. package/dist/Tag-1N-2yYCH.js +148 -0
  104. package/dist/Tag-CgPeLVXM.d.ts +44 -0
  105. package/dist/Text-D_lEB52w.js +5 -0
  106. package/dist/TextArea-BcIy_nZ2.js +181 -0
  107. package/dist/TextArea-CBWJ7w-p.d.ts +24 -0
  108. package/dist/TextButton-D7e_YBLe.d.ts +15 -0
  109. package/dist/TimePicker-BZ4WrI5Z.d.ts +33 -0
  110. package/dist/TimePicker-vbrwgBc5.js +428 -0
  111. package/dist/Toast-DIlYlUQk.d.ts +16 -0
  112. package/dist/ToastContainer-1H_IxvyH.d.ts +5 -0
  113. package/dist/ToastContainer-gdpK8d8m.js +55 -0
  114. package/dist/ToggleButton-C966bfpT.js +92 -0
  115. package/dist/ToggleButton-D4y2fLmN.d.ts +11 -0
  116. package/dist/ToggleGroup-BMZsbHY9.js +435 -0
  117. package/dist/ToggleGroup-D9CFdM5-.d.ts +7 -0
  118. package/dist/Tooltip-B-2AxyjP.d.ts +56 -0
  119. package/dist/Tooltip-BNAubrgG.js +299 -0
  120. package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +11 -0
  121. package/dist/TooltipWrapper-DYfZF2Ly.js +58 -0
  122. package/dist/Typography-AcUd9df8.js +31 -0
  123. package/dist/Typography-BWmZd20e.d.ts +12 -0
  124. package/dist/autocomplete-CaQSVRrw.d.ts +16 -0
  125. package/dist/button.cva-ChabF4Am.d.ts +106 -0
  126. package/dist/buttonContent.cva-CP857foM.d.ts +6 -0
  127. package/dist/chain-BKPAL-J_.js +10 -0
  128. package/dist/check-DefmU9oJ.js +13 -0
  129. package/dist/checkbox-D8CPWRlM.d.ts +9 -0
  130. package/dist/checkbox-group-BuPUA_Qj.d.ts +9 -0
  131. package/dist/checkbox.cva-DwnPS5df.d.ts +77 -0
  132. package/dist/chevron-down-RksSwG1O.js +13 -0
  133. package/dist/chevron-left-Dem1_TuL.js +13 -0
  134. package/dist/chevron-right-DXbvvsay.js +13 -0
  135. package/dist/chevron-up-CgEFpORu.js +13 -0
  136. package/dist/chevrons-right--HrJEes-.js +29 -0
  137. package/dist/clsx-CnD0nOiA.js +16 -0
  138. package/dist/common-UBFya8WY.d.ts +11 -0
  139. package/dist/components/accordion.d.ts +2 -0
  140. package/dist/components/accordion.js +2 -0
  141. package/dist/components/alert-dialog.d.ts +2 -0
  142. package/dist/components/alert-dialog.js +188 -0
  143. package/dist/components/alert.d.ts +2 -0
  144. package/dist/components/alert.js +2 -0
  145. package/dist/components/autocomplete/react-aria.d.ts +1 -0
  146. package/dist/components/autocomplete/react-aria.js +1 -0
  147. package/dist/components/autocomplete.d.ts +2 -0
  148. package/dist/components/autocomplete.js +134 -0
  149. package/dist/components/badge.d.ts +2 -0
  150. package/dist/components/badge.js +98 -0
  151. package/dist/components/bottom-sheet.d.ts +3 -0
  152. package/dist/components/bottom-sheet.js +109 -0
  153. package/dist/components/breadcrumb/react-aria.d.ts +1 -0
  154. package/dist/components/breadcrumb/react-aria.js +1 -0
  155. package/dist/components/breadcrumbs/react-aria.d.ts +1 -0
  156. package/dist/components/breadcrumbs/react-aria.js +1 -0
  157. package/dist/components/breadcrumbs.d.ts +2 -0
  158. package/dist/components/breadcrumbs.js +2 -0
  159. package/dist/components/button/react-aria.d.ts +1 -0
  160. package/dist/components/button/react-aria.js +1 -0
  161. package/dist/components/button.d.ts +3 -0
  162. package/dist/components/button.js +2 -0
  163. package/dist/components/calendar/react-aria.d.ts +1 -0
  164. package/dist/components/calendar/react-aria.js +1 -0
  165. package/dist/components/calendar-cell/react-aria.d.ts +1 -0
  166. package/dist/components/calendar-cell/react-aria.js +1 -0
  167. package/dist/components/calendar-grid/react-aria.d.ts +1 -0
  168. package/dist/components/calendar-grid/react-aria.js +1 -0
  169. package/dist/components/calendar-grid-body/react-aria.d.ts +1 -0
  170. package/dist/components/calendar-grid-body/react-aria.js +1 -0
  171. package/dist/components/calendar-grid-header/react-aria.d.ts +1 -0
  172. package/dist/components/calendar-grid-header/react-aria.js +1 -0
  173. package/dist/components/calendar-header-cell/react-aria.d.ts +1 -0
  174. package/dist/components/calendar-header-cell/react-aria.js +1 -0
  175. package/dist/components/cell/react-aria.d.ts +1 -0
  176. package/dist/components/cell/react-aria.js +1 -0
  177. package/dist/components/checkbox/react-aria.d.ts +1 -0
  178. package/dist/components/checkbox/react-aria.js +1 -0
  179. package/dist/components/checkbox-group/react-aria.d.ts +1 -0
  180. package/dist/components/checkbox-group/react-aria.js +1 -0
  181. package/dist/components/checkbox-group.d.ts +2 -0
  182. package/dist/components/checkbox-group.js +164 -0
  183. package/dist/components/checkbox.d.ts +2 -0
  184. package/dist/components/checkbox.js +2 -0
  185. package/dist/components/collection/react-aria.d.ts +1 -0
  186. package/dist/components/collection/react-aria.js +1 -0
  187. package/dist/components/color-area/react-aria.d.ts +1 -0
  188. package/dist/components/color-area/react-aria.js +1 -0
  189. package/dist/components/color-field/react-aria.d.ts +1 -0
  190. package/dist/components/color-field/react-aria.js +1 -0
  191. package/dist/components/color-picker/react-aria.d.ts +1 -0
  192. package/dist/components/color-picker/react-aria.js +1 -0
  193. package/dist/components/color-slider/react-aria.d.ts +1 -0
  194. package/dist/components/color-slider/react-aria.js +1 -0
  195. package/dist/components/color-swatch/react-aria.d.ts +1 -0
  196. package/dist/components/color-swatch/react-aria.js +1 -0
  197. package/dist/components/color-swatch-picker/react-aria.d.ts +5 -0
  198. package/dist/components/color-swatch-picker/react-aria.js +1 -0
  199. package/dist/components/color-swatch-picker-item/react-aria.d.ts +5 -0
  200. package/dist/components/color-swatch-picker-item/react-aria.js +1 -0
  201. package/dist/components/color-thumb/react-aria.d.ts +1 -0
  202. package/dist/components/color-thumb/react-aria.js +1 -0
  203. package/dist/components/color-wheel/react-aria.d.ts +1 -0
  204. package/dist/components/color-wheel/react-aria.js +1 -0
  205. package/dist/components/color-wheel-track/react-aria.d.ts +1 -0
  206. package/dist/components/color-wheel-track/react-aria.js +1 -0
  207. package/dist/components/column/react-aria.d.ts +1 -0
  208. package/dist/components/column/react-aria.js +1 -0
  209. package/dist/components/column-resizer/react-aria.d.ts +1 -0
  210. package/dist/components/column-resizer/react-aria.js +1 -0
  211. package/dist/components/combo-box/react-aria.d.ts +1 -0
  212. package/dist/components/combo-box/react-aria.js +1 -0
  213. package/dist/components/date-field/react-aria.d.ts +1 -0
  214. package/dist/components/date-field/react-aria.js +1 -0
  215. package/dist/components/date-input/react-aria.d.ts +1 -0
  216. package/dist/components/date-input/react-aria.js +1 -0
  217. package/dist/components/date-picker/react-aria.d.ts +1 -0
  218. package/dist/components/date-picker/react-aria.js +1 -0
  219. package/dist/components/date-picker.d.ts +2 -0
  220. package/dist/components/date-picker.js +2 -0
  221. package/dist/components/date-range-picker/react-aria.d.ts +1 -0
  222. package/dist/components/date-range-picker/react-aria.js +1 -0
  223. package/dist/components/date-range-picker.d.ts +27 -0
  224. package/dist/components/date-range-picker.js +2 -0
  225. package/dist/components/date-segment/react-aria.d.ts +1 -0
  226. package/dist/components/date-segment/react-aria.js +1 -0
  227. package/dist/components/date-time-picker.d.ts +2 -0
  228. package/dist/components/date-time-picker.js +2 -0
  229. package/dist/components/default-collection-renderer/react-aria.d.ts +1 -0
  230. package/dist/components/default-collection-renderer/react-aria.js +1 -0
  231. package/dist/components/dialog/react-aria.d.ts +1 -0
  232. package/dist/components/dialog/react-aria.js +1 -0
  233. package/dist/components/dialog-trigger/react-aria.d.ts +1 -0
  234. package/dist/components/dialog-trigger/react-aria.js +1 -0
  235. package/dist/components/dialog.d.ts +2 -0
  236. package/dist/components/dialog.js +2 -0
  237. package/dist/components/disclosure/react-aria.d.ts +1 -0
  238. package/dist/components/disclosure/react-aria.js +1 -0
  239. package/dist/components/disclosure-group/react-aria.d.ts +1 -0
  240. package/dist/components/disclosure-group/react-aria.js +1 -0
  241. package/dist/components/disclosure-panel/react-aria.d.ts +1 -0
  242. package/dist/components/disclosure-panel/react-aria.js +1 -0
  243. package/dist/components/dom-attributes/react-aria.d.ts +1 -0
  244. package/dist/components/dom-attributes/react-aria.js +0 -0
  245. package/dist/components/drawer.d.ts +2 -0
  246. package/dist/components/drawer.js +96 -0
  247. package/dist/components/drop-indicator/react-aria.d.ts +1 -0
  248. package/dist/components/drop-indicator/react-aria.js +1 -0
  249. package/dist/components/drop-zone/react-aria.d.ts +1 -0
  250. package/dist/components/drop-zone/react-aria.js +1 -0
  251. package/dist/components/dropdown-menu.d.ts +3 -0
  252. package/dist/components/dropdown-menu.js +3 -0
  253. package/dist/components/field-error/react-aria.d.ts +1 -0
  254. package/dist/components/field-error/react-aria.js +1 -0
  255. package/dist/components/file-input.d.ts +2 -0
  256. package/dist/components/file-input.js +2 -0
  257. package/dist/components/file-trigger/react-aria.d.ts +1 -0
  258. package/dist/components/file-trigger/react-aria.js +1 -0
  259. package/dist/components/file-upload-container.d.ts +3 -0
  260. package/dist/components/file-upload-container.js +15 -0
  261. package/dist/components/file-upload.d.ts +3 -0
  262. package/dist/components/file-upload.js +2 -0
  263. package/dist/components/focusable/react-aria.d.ts +1 -0
  264. package/dist/components/focusable/react-aria.js +1 -0
  265. package/dist/components/form/react-aria.d.ts +1 -0
  266. package/dist/components/form/react-aria.js +1 -0
  267. package/dist/components/form-field.d.ts +2 -0
  268. package/dist/components/form-field.js +2 -0
  269. package/dist/components/grid-list/react-aria.d.ts +1 -0
  270. package/dist/components/grid-list/react-aria.js +1 -0
  271. package/dist/components/grid-list-header/react-aria.d.ts +1 -0
  272. package/dist/components/grid-list-header/react-aria.js +1 -0
  273. package/dist/components/grid-list-item/react-aria.d.ts +1 -0
  274. package/dist/components/grid-list-item/react-aria.js +1 -0
  275. package/dist/components/grid-list-load-more-item/react-aria.d.ts +1 -0
  276. package/dist/components/grid-list-load-more-item/react-aria.js +1 -0
  277. package/dist/components/grid-list-section/react-aria.d.ts +1 -0
  278. package/dist/components/grid-list-section/react-aria.js +1 -0
  279. package/dist/components/group/react-aria.d.ts +1 -0
  280. package/dist/components/group/react-aria.js +1 -0
  281. package/dist/components/header/react-aria.d.ts +1 -0
  282. package/dist/components/header/react-aria.js +1 -0
  283. package/dist/components/heading/react-aria.d.ts +1 -0
  284. package/dist/components/heading/react-aria.js +1 -0
  285. package/dist/components/i18n-provider/react-aria.d.ts +1 -0
  286. package/dist/components/i18n-provider/react-aria.js +1 -0
  287. package/dist/components/icon-button.d.ts +2 -0
  288. package/dist/components/icon-button.js +55 -0
  289. package/dist/components/inline-icon-button.d.ts +2 -0
  290. package/dist/components/inline-icon-button.js +40 -0
  291. package/dist/components/input/react-aria.d.ts +1 -0
  292. package/dist/components/input/react-aria.js +1 -0
  293. package/dist/components/input.d.ts +2 -0
  294. package/dist/components/input.js +242 -0
  295. package/dist/components/key/react-aria.d.ts +1 -0
  296. package/dist/components/key/react-aria.js +0 -0
  297. package/dist/components/keyboard/react-aria.d.ts +1 -0
  298. package/dist/components/keyboard/react-aria.js +1 -0
  299. package/dist/components/label/react-aria.d.ts +1 -0
  300. package/dist/components/label/react-aria.js +1 -0
  301. package/dist/components/link/react-aria.d.ts +1 -0
  302. package/dist/components/link/react-aria.js +1 -0
  303. package/dist/components/link.d.ts +2 -0
  304. package/dist/components/link.js +2 -0
  305. package/dist/components/list-box/react-aria.d.ts +1 -0
  306. package/dist/components/list-box/react-aria.js +1 -0
  307. package/dist/components/list-box-item/react-aria.d.ts +1 -0
  308. package/dist/components/list-box-item/react-aria.js +1 -0
  309. package/dist/components/list-box-load-more-item/react-aria.d.ts +1 -0
  310. package/dist/components/list-box-load-more-item/react-aria.js +1 -0
  311. package/dist/components/list-box-section/react-aria.d.ts +1 -0
  312. package/dist/components/list-box-section/react-aria.js +1 -0
  313. package/dist/components/menu/react-aria.d.ts +1 -0
  314. package/dist/components/menu/react-aria.js +1 -0
  315. package/dist/components/menu-item/react-aria.d.ts +1 -0
  316. package/dist/components/menu-item/react-aria.js +1 -0
  317. package/dist/components/menu-section/react-aria.d.ts +1 -0
  318. package/dist/components/menu-section/react-aria.js +1 -0
  319. package/dist/components/menu-trigger/react-aria.d.ts +1 -0
  320. package/dist/components/menu-trigger/react-aria.js +1 -0
  321. package/dist/components/meter/react-aria.d.ts +1 -0
  322. package/dist/components/meter/react-aria.js +1 -0
  323. package/dist/components/modal/react-aria.d.ts +1 -0
  324. package/dist/components/modal/react-aria.js +1 -0
  325. package/dist/components/modal-overlay/react-aria.d.ts +1 -0
  326. package/dist/components/modal-overlay/react-aria.js +1 -0
  327. package/dist/components/number-field/react-aria.d.ts +1 -0
  328. package/dist/components/number-field/react-aria.js +1 -0
  329. package/dist/components/number-field.d.ts +2 -0
  330. package/dist/components/number-field.js +245 -0
  331. package/dist/components/number-range-input.d.ts +2 -0
  332. package/dist/components/number-range-input.js +2 -0
  333. package/dist/components/overlay-arrow/react-aria.d.ts +1 -0
  334. package/dist/components/overlay-arrow/react-aria.js +1 -0
  335. package/dist/components/pagination-list.d.ts +2 -0
  336. package/dist/components/pagination-list.js +2 -0
  337. package/dist/components/pagination.d.ts +2 -0
  338. package/dist/components/pagination.js +131 -0
  339. package/dist/components/password-input.d.ts +2 -0
  340. package/dist/components/password-input.js +2 -0
  341. package/dist/components/pill-button.d.ts +2 -0
  342. package/dist/components/pill-button.js +73 -0
  343. package/dist/components/popover/react-aria.d.ts +1 -0
  344. package/dist/components/popover/react-aria.js +1 -0
  345. package/dist/components/popover.d.ts +2 -0
  346. package/dist/components/popover.js +126 -0
  347. package/dist/components/pressable/react-aria.d.ts +1 -0
  348. package/dist/components/pressable/react-aria.js +1 -0
  349. package/dist/components/progress-bar/react-aria.d.ts +1 -0
  350. package/dist/components/progress-bar/react-aria.js +1 -0
  351. package/dist/components/progress.d.ts +2 -0
  352. package/dist/components/progress.js +2 -0
  353. package/dist/components/provider/react-aria.d.ts +1 -0
  354. package/dist/components/provider/react-aria.js +1 -0
  355. package/dist/components/query-autocomplete.d.ts +8 -0
  356. package/dist/components/query-autocomplete.js +126 -0
  357. package/dist/components/query-select.d.ts +2 -0
  358. package/dist/components/query-select.js +138 -0
  359. package/dist/components/radio/react-aria.d.ts +1 -0
  360. package/dist/components/radio/react-aria.js +1 -0
  361. package/dist/components/radio-group/react-aria.d.ts +1 -0
  362. package/dist/components/radio-group/react-aria.js +1 -0
  363. package/dist/components/radio-group.d.ts +2 -0
  364. package/dist/components/radio-group.js +2 -0
  365. package/dist/components/range-calendar/react-aria.d.ts +1 -0
  366. package/dist/components/range-calendar/react-aria.js +1 -0
  367. package/dist/components/resizable-table-container/react-aria.d.ts +1 -0
  368. package/dist/components/resizable-table-container/react-aria.js +1 -0
  369. package/dist/components/router-provider/react-aria.d.ts +1 -0
  370. package/dist/components/router-provider/react-aria.js +1 -0
  371. package/dist/components/row/react-aria.d.ts +1 -0
  372. package/dist/components/row/react-aria.js +1 -0
  373. package/dist/components/search-field/react-aria.d.ts +1 -0
  374. package/dist/components/search-field/react-aria.js +1 -0
  375. package/dist/components/section/react-aria.d.ts +1 -0
  376. package/dist/components/section/react-aria.js +1 -0
  377. package/dist/components/select/react-aria.d.ts +1 -0
  378. package/dist/components/select/react-aria.js +1 -0
  379. package/dist/components/select-value/react-aria.d.ts +1 -0
  380. package/dist/components/select-value/react-aria.js +1 -0
  381. package/dist/components/select.d.ts +3 -0
  382. package/dist/components/select.js +2 -0
  383. package/dist/components/selection/react-aria.d.ts +1 -0
  384. package/dist/components/selection/react-aria.js +0 -0
  385. package/dist/components/selection-indicator/react-aria.d.ts +1 -0
  386. package/dist/components/selection-indicator/react-aria.js +1 -0
  387. package/dist/components/separator/react-aria.d.ts +1 -0
  388. package/dist/components/separator/react-aria.js +1 -0
  389. package/dist/components/shared-element/react-aria.d.ts +1 -0
  390. package/dist/components/shared-element/react-aria.js +1 -0
  391. package/dist/components/shared-element-transition/react-aria.d.ts +1 -0
  392. package/dist/components/shared-element-transition/react-aria.js +1 -0
  393. package/dist/components/slider/react-aria.d.ts +1 -0
  394. package/dist/components/slider/react-aria.js +1 -0
  395. package/dist/components/slider-output/react-aria.d.ts +1 -0
  396. package/dist/components/slider-output/react-aria.js +1 -0
  397. package/dist/components/slider-thumb/react-aria.d.ts +1 -0
  398. package/dist/components/slider-thumb/react-aria.js +1 -0
  399. package/dist/components/slider-track/react-aria.d.ts +1 -0
  400. package/dist/components/slider-track/react-aria.js +1 -0
  401. package/dist/components/slider.d.ts +2 -0
  402. package/dist/components/slider.js +2 -0
  403. package/dist/components/spinner.d.ts +2 -0
  404. package/dist/components/spinner.js +2 -0
  405. package/dist/components/split-button.d.ts +2 -0
  406. package/dist/components/split-button.js +123 -0
  407. package/dist/components/ssr-provider/react-aria.d.ts +1 -0
  408. package/dist/components/ssr-provider/react-aria.js +1 -0
  409. package/dist/components/stepper.d.ts +2 -0
  410. package/dist/components/stepper.js +2 -0
  411. package/dist/components/submenu-trigger/react-aria.d.ts +1 -0
  412. package/dist/components/submenu-trigger/react-aria.js +1 -0
  413. package/dist/components/switch/react-aria.d.ts +1 -0
  414. package/dist/components/switch/react-aria.js +1 -0
  415. package/dist/components/switch.d.ts +2 -0
  416. package/dist/components/switch.js +2 -0
  417. package/dist/components/tab/react-aria.d.ts +1 -0
  418. package/dist/components/tab/react-aria.js +1 -0
  419. package/dist/components/tab-list/react-aria.d.ts +1 -0
  420. package/dist/components/tab-list/react-aria.js +1 -0
  421. package/dist/components/tab-panel/react-aria.d.ts +1 -0
  422. package/dist/components/tab-panel/react-aria.js +1 -0
  423. package/dist/components/tab-panels/react-aria.d.ts +1 -0
  424. package/dist/components/tab-panels/react-aria.js +1 -0
  425. package/dist/components/table/react-aria.d.ts +1 -0
  426. package/dist/components/table/react-aria.js +1 -0
  427. package/dist/components/table-body/react-aria.d.ts +1 -0
  428. package/dist/components/table-body/react-aria.js +1 -0
  429. package/dist/components/table-header/react-aria.d.ts +1 -0
  430. package/dist/components/table-header/react-aria.js +1 -0
  431. package/dist/components/table-load-more-item/react-aria.d.ts +1 -0
  432. package/dist/components/table-load-more-item/react-aria.js +1 -0
  433. package/dist/components/tabs/react-aria.d.ts +1 -0
  434. package/dist/components/tabs/react-aria.js +1 -0
  435. package/dist/components/tag/react-aria.d.ts +1 -0
  436. package/dist/components/tag/react-aria.js +1 -0
  437. package/dist/components/tag-group/react-aria.d.ts +1 -0
  438. package/dist/components/tag-group/react-aria.js +1 -0
  439. package/dist/components/tag-list/react-aria.d.ts +1 -0
  440. package/dist/components/tag-list/react-aria.js +1 -0
  441. package/dist/components/tag.d.ts +2 -0
  442. package/dist/components/tag.js +2 -0
  443. package/dist/components/text/react-aria.d.ts +1 -0
  444. package/dist/components/text/react-aria.js +1 -0
  445. package/dist/components/text-area/react-aria.d.ts +1 -0
  446. package/dist/components/text-area/react-aria.js +1 -0
  447. package/dist/components/text-area.d.ts +2 -0
  448. package/dist/components/text-area.js +2 -0
  449. package/dist/components/text-button.d.ts +2 -0
  450. package/dist/components/text-button.js +36 -0
  451. package/dist/components/text-field/react-aria.d.ts +1 -0
  452. package/dist/components/text-field/react-aria.js +1 -0
  453. package/dist/components/time-field/react-aria.d.ts +1 -0
  454. package/dist/components/time-field/react-aria.js +1 -0
  455. package/dist/components/time-picker.d.ts +2 -0
  456. package/dist/components/time-picker.js +2 -0
  457. package/dist/components/toast/react-aria.d.ts +1 -0
  458. package/dist/components/toast/react-aria.js +1 -0
  459. package/dist/components/toast-content/react-aria.d.ts +1 -0
  460. package/dist/components/toast-content/react-aria.js +1 -0
  461. package/dist/components/toast-list/react-aria.d.ts +1 -0
  462. package/dist/components/toast-list/react-aria.js +1 -0
  463. package/dist/components/toast-region/react-aria.d.ts +1 -0
  464. package/dist/components/toast-region/react-aria.js +1 -0
  465. package/dist/components/toast.d.ts +4 -0
  466. package/dist/components/toast.js +3 -0
  467. package/dist/components/toggle-button/react-aria.d.ts +1 -0
  468. package/dist/components/toggle-button/react-aria.js +1 -0
  469. package/dist/components/toggle-button-group/react-aria.d.ts +5 -0
  470. package/dist/components/toggle-button-group/react-aria.js +1 -0
  471. package/dist/components/toggle-button.d.ts +2 -0
  472. package/dist/components/toggle-button.js +38 -0
  473. package/dist/components/toggle-group.d.ts +3 -0
  474. package/dist/components/toggle-group.js +2 -0
  475. package/dist/components/toolbar/react-aria.d.ts +1 -0
  476. package/dist/components/toolbar/react-aria.js +1 -0
  477. package/dist/components/tooltip/react-aria.d.ts +1 -0
  478. package/dist/components/tooltip/react-aria.js +1 -0
  479. package/dist/components/tooltip-ellipsis.d.ts +2 -0
  480. package/dist/components/tooltip-ellipsis.js +46 -0
  481. package/dist/components/tooltip-trigger/react-aria.d.ts +1 -0
  482. package/dist/components/tooltip-trigger/react-aria.js +1 -0
  483. package/dist/components/tooltip.d.ts +2 -0
  484. package/dist/components/tooltip.js +2 -0
  485. package/dist/components/tree/react-aria.d.ts +1 -0
  486. package/dist/components/tree/react-aria.js +1 -0
  487. package/dist/components/tree-item/react-aria.d.ts +1 -0
  488. package/dist/components/tree-item/react-aria.js +1 -0
  489. package/dist/components/tree-item-content/react-aria.d.ts +1 -0
  490. package/dist/components/tree-item-content/react-aria.js +1 -0
  491. package/dist/components/tree-load-more-item/react-aria.d.ts +1 -0
  492. package/dist/components/tree-load-more-item/react-aria.js +1 -0
  493. package/dist/components/typography.d.ts +3 -0
  494. package/dist/components/typography.js +2 -0
  495. package/dist/components/use-focus-visible/react-aria.d.ts +1 -0
  496. package/dist/components/use-focus-visible/react-aria.js +1 -0
  497. package/dist/components/use-focus-within/react-aria.d.ts +1 -0
  498. package/dist/components/use-focus-within/react-aria.js +1 -0
  499. package/dist/components/use-hover/react-aria.d.ts +1 -0
  500. package/dist/components/use-hover/react-aria.js +1 -0
  501. package/dist/components/use-label/react-aria.d.ts +1 -0
  502. package/dist/components/use-label/react-aria.js +1 -0
  503. package/dist/components/use-text-field/react-aria.d.ts +1 -0
  504. package/dist/components/use-text-field/react-aria.js +1 -0
  505. package/dist/components/use-toast.d.ts +2 -0
  506. package/dist/components/use-toast.js +42 -0
  507. package/dist/components/virtualizer/react-aria.d.ts +1 -0
  508. package/dist/components/virtualizer/react-aria.js +1 -0
  509. package/dist/components/visually-hidden/react-aria.d.ts +1 -0
  510. package/dist/components/visually-hidden/react-aria.js +1 -0
  511. package/dist/compoundMapper-CMoX98D2.d.ts +17 -0
  512. package/dist/compoundMapper-Di3SKZnS.js +13 -0
  513. package/dist/config/confirmation.d.ts +2 -0
  514. package/dist/config/confirmation.js +2 -0
  515. package/dist/config/link-context.d.ts +3 -0
  516. package/dist/config/link-context.js +2 -0
  517. package/dist/config/resources.d.ts +2 -0
  518. package/dist/config/resources.js +2 -0
  519. package/dist/config/theme-context.d.ts +2 -0
  520. package/dist/config/theme-context.js +2 -0
  521. package/dist/config/ui-config.d.ts +3 -0
  522. package/dist/config/ui-config.js +2 -0
  523. package/dist/config/ui-overrides.d.ts +2 -0
  524. package/dist/config/ui-overrides.js +2 -0
  525. package/dist/config/ui-router.d.ts +2 -0
  526. package/dist/config/ui-router.js +2 -0
  527. package/dist/confirmation.context-BcX0qVEy.js +114 -0
  528. package/dist/confirmation.context-fKfUTsLF.d.ts +23 -0
  529. package/dist/createLucideIcon-LS26Bb1M.js +125 -0
  530. package/dist/date-picker-DiMaoYoA.d.ts +9 -0
  531. package/dist/date-range-picker-DSkNEa35.d.ts +9 -0
  532. package/dist/date-time-picker-B5s2PMFw.d.ts +9 -0
  533. package/dist/date-time.utils-0F9qduim.js +190 -0
  534. package/dist/date-time.utils-Cu9TVj46.d.ts +45 -0
  535. package/dist/date.transforms-DLg-eFcE.js +15 -0
  536. package/dist/date.utils-B8_QF9y6.js +42 -0
  537. package/dist/date.utils-BoQnMRlF.d.ts +7 -0
  538. package/dist/datePickerValue.utils-BxOJpTbb.js +223 -0
  539. package/dist/dialog.cva-5qNq9YfM.js +43 -0
  540. package/dist/dist-BAT04RMQ.js +1740 -0
  541. package/dist/dom.utils-D08rHcQ2.js +49 -0
  542. package/dist/dynamicInputs-CRMWIpHA.js +194 -0
  543. package/dist/dynamicInputs-m_DQu5q0.js +214 -0
  544. package/dist/dynamicInputs-uIhp1Ly-.d.ts +771 -0
  545. package/dist/exports-DUKqxyno.js +20 -0
  546. package/dist/fieldAdapter-BaQgRGA9.js +61 -0
  547. package/dist/fieldAdapter-C4sDFC8f.d.ts +9 -0
  548. package/dist/file-input-D-46wS5j.d.ts +9 -0
  549. package/dist/file-upload-BG20Bhrn.d.ts +10 -0
  550. package/dist/file.utils-Crb-mIHs.d.ts +21 -0
  551. package/dist/file.utils-DqQxnuAm.js +61 -0
  552. package/dist/fileUpload.types-xFzuCT_m.d.ts +110 -0
  553. package/dist/focusSafely-BDIcvqPb.js +437 -0
  554. package/dist/form.binding-DLM7NA2s.js +179 -0
  555. package/dist/form.binding-DVJ5F0JE.d.ts +51 -0
  556. package/dist/form.types-CecYaerF.d.ts +13 -0
  557. package/dist/form.types-ZNGbcqJS.d.ts +13 -0
  558. package/dist/getScrollParent-WT3K8H_b.js +36 -0
  559. package/dist/hooks/use-filters.d.ts +2 -0
  560. package/dist/hooks/use-filters.js +2 -0
  561. package/dist/hooks/use-local-storage.d.ts +2 -0
  562. package/dist/hooks/use-local-storage.js +2 -0
  563. package/dist/hooks/use-translation-memo.d.ts +2 -0
  564. package/dist/hooks/use-translation-memo.js +2 -0
  565. package/dist/i18n-BDjNuy4Z.js +302 -0
  566. package/dist/i18n-D0Pz0p2u.d.ts +318 -0
  567. package/dist/icons.d.ts +2 -0
  568. package/dist/icons.js +2 -0
  569. package/dist/import-DDGNxVX8.js +45 -0
  570. package/dist/index.d.ts +105 -1
  571. package/dist/index.js +113 -120
  572. package/dist/input-CKGPYwfB.d.ts +8 -0
  573. package/dist/input.cva-ByFuAEIS.d.ts +83 -0
  574. package/dist/input.cva-KYGD4Bdz.js +324 -0
  575. package/dist/intl.utils-NaOZUD2G.d.ts +9 -0
  576. package/dist/intl.utils-zwAFoZ0U.js +38 -0
  577. package/dist/intlStrings-A7XlNdi7.js +346 -0
  578. package/dist/link.context-C5ZgwVM5.d.ts +12 -0
  579. package/dist/link.context-J7aQtMOr.js +35 -0
  580. package/dist/logger-CqZjM-sn.js +333 -0
  581. package/dist/logger-N35Xhi14.d.ts +10 -0
  582. package/dist/number-field-CyP6XgJh.d.ts +8 -0
  583. package/dist/number-range-input-DMmlk7Bl.d.ts +8 -0
  584. package/dist/numberStatic.utils-DAI7Bef3.js +902 -0
  585. package/dist/openLink-BrfLaWo4.js +121 -0
  586. package/dist/outline.clsx-50W_vNDl.js +6 -0
  587. package/dist/outline.clsx-B1hjrX9t.d.ts +4 -0
  588. package/dist/password-input-BWpfQe0G.d.ts +8 -0
  589. package/dist/pillButton.cva-6tjADUQ6.js +265 -0
  590. package/dist/pillButton.cva-BVsxGnqF.d.ts +36 -0
  591. package/dist/platform-3R53zj-n.js +42 -0
  592. package/dist/popover.cva-CXha_UMQ.js +5 -0
  593. package/dist/queries.utils-CmbhAoHU.js +18 -0
  594. package/dist/query-autocomplete-BeNfRDM_.d.ts +14 -0
  595. package/dist/query-select-Ded04eju.d.ts +15 -0
  596. package/dist/queryAutocomplete.types-BlpCYzfA.d.ts +26 -0
  597. package/dist/radio-group-CmUtsjqP.d.ts +9 -0
  598. package/dist/radio.cva-DAq2M13H.d.ts +51 -0
  599. package/dist/rhf/autocomplete.d.ts +3 -0
  600. package/dist/rhf/autocomplete.js +8 -0
  601. package/dist/rhf/checkbox-group.d.ts +3 -0
  602. package/dist/rhf/checkbox-group.js +8 -0
  603. package/dist/rhf/checkbox.d.ts +3 -0
  604. package/dist/rhf/checkbox.js +8 -0
  605. package/dist/rhf/date-picker.d.ts +3 -0
  606. package/dist/rhf/date-picker.js +9 -0
  607. package/dist/rhf/date-range-picker.d.ts +3 -0
  608. package/dist/rhf/date-range-picker.js +9 -0
  609. package/dist/rhf/date-time-picker.d.ts +3 -0
  610. package/dist/rhf/date-time-picker.js +9 -0
  611. package/dist/rhf/file-input.d.ts +3 -0
  612. package/dist/rhf/file-input.js +6 -0
  613. package/dist/rhf/file-upload.d.ts +3 -0
  614. package/dist/rhf/file-upload.js +6 -0
  615. package/dist/rhf/input.d.ts +3 -0
  616. package/dist/rhf/input.js +6 -0
  617. package/dist/rhf/inputs.d.ts +4 -0
  618. package/dist/rhf/inputs.js +2 -0
  619. package/dist/rhf/number-field.d.ts +3 -0
  620. package/dist/rhf/number-field.js +6 -0
  621. package/dist/rhf/number-range-input.d.ts +3 -0
  622. package/dist/rhf/number-range-input.js +6 -0
  623. package/dist/rhf/password-input.d.ts +3 -0
  624. package/dist/rhf/password-input.js +6 -0
  625. package/dist/rhf/query-autocomplete.d.ts +2 -0
  626. package/dist/rhf/query-autocomplete.js +8 -0
  627. package/dist/rhf/query-select.d.ts +2 -0
  628. package/dist/rhf/query-select.js +8 -0
  629. package/dist/rhf/radio-group.d.ts +3 -0
  630. package/dist/rhf/radio-group.js +8 -0
  631. package/dist/rhf/rich-text-editor.d.ts +3 -0
  632. package/dist/rhf/rich-text-editor.js +6 -0
  633. package/dist/rhf/select.d.ts +3 -0
  634. package/dist/rhf/select.js +8 -0
  635. package/dist/rhf/slider.d.ts +3 -0
  636. package/dist/rhf/slider.js +6 -0
  637. package/dist/rhf/switch.d.ts +3 -0
  638. package/dist/rhf/switch.js +8 -0
  639. package/dist/rhf/text-area.d.ts +3 -0
  640. package/dist/rhf/text-area.js +6 -0
  641. package/dist/rhf/time-picker.d.ts +3 -0
  642. package/dist/rhf/time-picker.js +9 -0
  643. package/dist/rhf/toggle-group.d.ts +3 -0
  644. package/dist/rhf/toggle-group.js +6 -0
  645. package/dist/rhf-C52xZuFt.js +256 -0
  646. package/dist/rhf.d.ts +105 -225
  647. package/dist/rhf.js +101 -0
  648. package/dist/rich-text-editor-Db3XWWFo.d.ts +8 -0
  649. package/dist/rich-text-editor.d.ts +2 -0
  650. package/dist/rich-text-editor.js +2 -0
  651. package/dist/router.context-Bft1psqn.js +63 -0
  652. package/dist/router.context-CtafjXV7.d.ts +16 -0
  653. package/dist/routing.utils-UTQonIhB.js +25 -0
  654. package/dist/select-DXGbGkZM.d.ts +16 -0
  655. package/dist/slider-JQh0ypfU.d.ts +8 -0
  656. package/dist/staticDateTimeSegments-B9kkwiDz.js +3601 -0
  657. package/dist/staticSelect.utils-CBmV4sam.js +1834 -0
  658. package/dist/string.utils-BPgv6QwA.js +12 -0
  659. package/dist/string.utils-Cj6AB7uZ.d.ts +7 -0
  660. package/dist/styles/input.d.ts +2 -0
  661. package/dist/styles/input.js +0 -0
  662. package/dist/styles/outline.d.ts +2 -0
  663. package/dist/styles/outline.js +2 -0
  664. package/dist/switch-Lm3xl1rQ.d.ts +9 -0
  665. package/dist/switch.cva-BIioyegR.d.ts +15 -0
  666. package/dist/tanstack/autocomplete.d.ts +2 -0
  667. package/dist/tanstack/autocomplete.js +2 -0
  668. package/dist/tanstack/checkbox-group.d.ts +2 -0
  669. package/dist/tanstack/checkbox-group.js +2 -0
  670. package/dist/tanstack/checkbox.d.ts +2 -0
  671. package/dist/tanstack/checkbox.js +2 -0
  672. package/dist/tanstack/date-picker.d.ts +2 -0
  673. package/dist/tanstack/date-picker.js +2 -0
  674. package/dist/tanstack/date-range-picker.d.ts +2 -0
  675. package/dist/tanstack/date-range-picker.js +2 -0
  676. package/dist/tanstack/date-time-picker.d.ts +2 -0
  677. package/dist/tanstack/date-time-picker.js +2 -0
  678. package/dist/tanstack/file-input.d.ts +2 -0
  679. package/dist/tanstack/file-input.js +2 -0
  680. package/dist/tanstack/file-upload.d.ts +3 -0
  681. package/dist/tanstack/file-upload.js +2 -0
  682. package/dist/tanstack/form.d.ts +3 -0
  683. package/dist/tanstack/form.js +3 -0
  684. package/dist/tanstack/input.d.ts +2 -0
  685. package/dist/tanstack/input.js +2 -0
  686. package/dist/tanstack/inputs.d.ts +5 -0
  687. package/dist/tanstack/inputs.js +3 -0
  688. package/dist/tanstack/number-field.d.ts +2 -0
  689. package/dist/tanstack/number-field.js +2 -0
  690. package/dist/tanstack/number-range-input.d.ts +2 -0
  691. package/dist/tanstack/number-range-input.js +2 -0
  692. package/dist/tanstack/password-input.d.ts +2 -0
  693. package/dist/tanstack/password-input.js +2 -0
  694. package/dist/tanstack/query-autocomplete.d.ts +2 -0
  695. package/dist/tanstack/query-autocomplete.js +2 -0
  696. package/dist/tanstack/query-select.d.ts +2 -0
  697. package/dist/tanstack/query-select.js +2 -0
  698. package/dist/tanstack/radio-group.d.ts +2 -0
  699. package/dist/tanstack/radio-group.js +2 -0
  700. package/dist/tanstack/rich-text-editor.d.ts +2 -0
  701. package/dist/tanstack/rich-text-editor.js +2 -0
  702. package/dist/tanstack/select.d.ts +2 -0
  703. package/dist/tanstack/select.js +2 -0
  704. package/dist/tanstack/slider.d.ts +2 -0
  705. package/dist/tanstack/slider.js +2 -0
  706. package/dist/tanstack/switch.d.ts +2 -0
  707. package/dist/tanstack/switch.js +2 -0
  708. package/dist/tanstack/table.d.ts +2 -0
  709. package/dist/tanstack/table.js +2 -0
  710. package/dist/tanstack/text-area.d.ts +2 -0
  711. package/dist/tanstack/text-area.js +2 -0
  712. package/dist/tanstack/time-picker.d.ts +2 -0
  713. package/dist/tanstack/time-picker.js +2 -0
  714. package/dist/tanstack/toggle-group.d.ts +3 -0
  715. package/dist/tanstack/toggle-group.js +2 -0
  716. package/dist/tanstack.d.ts +92 -224
  717. package/dist/tanstack.js +97 -141
  718. package/dist/text-area-I5MNcGp_.d.ts +8 -0
  719. package/dist/theme.context-B3wQDJ-i.js +120 -0
  720. package/dist/theme.context-DfBt5Pz6.d.ts +20 -0
  721. package/dist/time-picker-DdhW8GmD.d.ts +9 -0
  722. package/dist/toast.cva-LU7TGprV.d.ts +60 -0
  723. package/dist/toast.runtime-BZQH-7Ba.js +17 -0
  724. package/dist/toastActivation.store-BELtcr76.js +16 -0
  725. package/dist/toggle-group-CPkKHm1t.d.ts +9 -0
  726. package/dist/toggleGroup.types-DD6uRI5G.d.ts +58 -0
  727. package/dist/tooltipWrapper.cva-CUu8pI-a.js +5 -0
  728. package/dist/tw-ui-plugin.d.ts +4 -2
  729. package/dist/tw-ui-plugin.js +1 -1
  730. package/dist/types/index.d.ts +2 -0
  731. package/dist/types/index.js +0 -0
  732. package/dist/typography.cva-BI0FyIqm.js +129 -0
  733. package/dist/typography.cva-YaO6JLqU.d.ts +51 -0
  734. package/dist/uiConfig.context-BB7_zyOU.d.ts +126 -0
  735. package/dist/uiConfig.context-BvBsrMFI.js +366 -0
  736. package/dist/uiOverrides.context-Bfm2n-n8.js +399 -0
  737. package/dist/uiOverrides.context-C3xb4Ttq.d.ts +243 -0
  738. package/dist/useBreakpoint-CDKDB0E2.js +70 -0
  739. package/dist/useControlledState-BMVd3AOQ.js +189 -0
  740. package/dist/useFieldAccessibility-Bq-m3qhs.js +96 -0
  741. package/dist/useFilters-BxRScJdn.d.ts +11 -0
  742. package/dist/useFilters-KS2CQs_j.js +190 -0
  743. package/dist/useFocusable-BIU1drrg.js +63 -0
  744. package/dist/useFormAutosave-Bcbvu28I.js +198 -0
  745. package/dist/useFormValidationState-Dl-Nh0G1.js +1345 -0
  746. package/dist/useIntersectionObserver-DYfHnGGU.js +98 -0
  747. package/dist/useLayoutEffect-DN7Dbrb9.js +58 -0
  748. package/dist/useLocalStorage-DGsBUCT6.d.ts +13 -0
  749. package/dist/useLocalStorage-PlcaJ1tP.js +70 -0
  750. package/dist/useQueryAutocomplete-CraXvRm_.js +152 -0
  751. package/dist/useStaticInputHandoff-Denoy4V_.js +332 -0
  752. package/dist/useSyncRef-Dsn4Ybiw.js +338 -0
  753. package/dist/useTableColumnConfig-DSJeSKeA.js +1620 -0
  754. package/dist/useTableNav-Tu8UZxHA.d.ts +291 -0
  755. package/dist/useToast-NBGlVeFP.d.ts +16 -0
  756. package/dist/useTranslationMemo-CrZbeyBv.js +32 -0
  757. package/dist/useTranslationMemo-Dy3p6m1g.d.ts +6 -0
  758. package/dist/utils/compound-mapper.d.ts +2 -0
  759. package/dist/utils/compound-mapper.js +2 -0
  760. package/dist/utils/date-time.d.ts +2 -0
  761. package/dist/utils/date-time.js +2 -0
  762. package/dist/utils/date.d.ts +2 -0
  763. package/dist/utils/date.js +2 -0
  764. package/dist/utils/file.d.ts +2 -0
  765. package/dist/utils/file.js +2 -0
  766. package/dist/utils/intl.d.ts +2 -0
  767. package/dist/utils/intl.js +2 -0
  768. package/dist/utils/logger.d.ts +2 -7
  769. package/dist/utils/logger.js +1 -18
  770. package/dist/utils/string.d.ts +2 -0
  771. package/dist/utils/string.js +2 -0
  772. package/dist/utils-D3gCeElo.js +145 -0
  773. package/dist/x-BD2AijMA.js +16 -0
  774. package/dist/zod.utils-DrrPDT9v.js +24 -0
  775. package/package.json +1376 -25
  776. package/dist/assets/locales/en/translation.json.d.ts +0 -158
  777. package/dist/assets/locales/en/translation.json.js +0 -147
  778. package/dist/assets/locales/sl/translation.json.d.ts +0 -154
  779. package/dist/assets/locales/sl/translation.json.js +0 -145
  780. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -16
  781. package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -112
  782. package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +0 -45
  783. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +0 -27
  784. package/dist/components/Menu/Menu.d.ts +0 -21
  785. package/dist/components/Menu/Menu.js +0 -27
  786. package/dist/components/Menu/MenuDesktop.d.ts +0 -2
  787. package/dist/components/Menu/MenuDesktop.js +0 -48
  788. package/dist/components/Menu/MenuItem.d.ts +0 -3
  789. package/dist/components/Menu/MenuItem.js +0 -46
  790. package/dist/components/Menu/MenuMobile.d.ts +0 -2
  791. package/dist/components/Menu/MenuMobile.js +0 -142
  792. package/dist/components/Menu/MenuPopover.d.ts +0 -5
  793. package/dist/components/Menu/MenuPopover.js +0 -121
  794. package/dist/components/Menu/menu.cva.d.ts +0 -39
  795. package/dist/components/Menu/menu.cva.js +0 -34
  796. package/dist/components/buttons/Button/Button.d.ts +0 -28
  797. package/dist/components/buttons/Button/Button.js +0 -66
  798. package/dist/components/buttons/Button/button.cva.d.ts +0 -99
  799. package/dist/components/buttons/Button/button.cva.js +0 -661
  800. package/dist/components/buttons/IconButton/IconButton.d.ts +0 -11
  801. package/dist/components/buttons/IconButton/IconButton.js +0 -51
  802. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +0 -13
  803. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -15
  804. package/dist/components/buttons/PillButton/PillButton.d.ts +0 -12
  805. package/dist/components/buttons/PillButton/PillButton.js +0 -72
  806. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +0 -40
  807. package/dist/components/buttons/PillButton/pillButton.cva.js +0 -264
  808. package/dist/components/buttons/SplitButton/SplitButton.d.ts +0 -12
  809. package/dist/components/buttons/SplitButton/SplitButton.js +0 -123
  810. package/dist/components/buttons/TextButton/TextButton.d.ts +0 -12
  811. package/dist/components/buttons/TextButton/TextButton.js +0 -36
  812. package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -9
  813. package/dist/components/buttons/ToggleButton/ToggleButton.js +0 -34
  814. package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
  815. package/dist/components/buttons/shared/ButtonContent.js +0 -37
  816. package/dist/components/buttons/shared/buttonContent.cva.d.ts +0 -8
  817. package/dist/components/buttons/shared/buttonContent.cva.js +0 -30
  818. package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -20
  819. package/dist/components/inputs/Checkbox/Checkbox.js +0 -236
  820. package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
  821. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -25
  822. package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +0 -26
  823. package/dist/components/inputs/Checkbox/CheckboxGroup.js +0 -392
  824. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -94
  825. package/dist/components/inputs/Checkbox/checkbox.cva.js +0 -161
  826. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +0 -41
  827. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +0 -423
  828. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +0 -46
  829. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +0 -884
  830. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +0 -41
  831. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +0 -383
  832. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +0 -29
  833. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +0 -649
  834. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
  835. package/dist/components/inputs/DateTime/shared/Calendar.js +0 -177
  836. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
  837. package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -145
  838. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
  839. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -54
  840. package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
  841. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -118
  842. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
  843. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -173
  844. package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
  845. package/dist/components/inputs/DateTime/shared/DateField.js +0 -156
  846. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -46
  847. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -197
  848. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
  849. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -124
  850. package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
  851. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -101
  852. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
  853. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -27
  854. package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
  855. package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -135
  856. package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
  857. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -209
  858. package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
  859. package/dist/components/inputs/DateTime/shared/TimeField.js +0 -38
  860. package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
  861. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +0 -328
  862. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -25
  863. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -244
  864. package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
  865. package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -151
  866. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
  867. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -16
  868. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
  869. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
  870. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -77
  871. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
  872. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
  873. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
  874. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -99
  875. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
  876. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
  877. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +0 -33
  878. package/dist/components/inputs/File/FileUpload.d.ts +0 -4
  879. package/dist/components/inputs/File/FileUpload.js +0 -253
  880. package/dist/components/inputs/File/FileUploadContainer.d.ts +0 -3
  881. package/dist/components/inputs/File/FileUploadContainer.js +0 -22
  882. package/dist/components/inputs/File/InputUpload.d.ts +0 -4
  883. package/dist/components/inputs/File/InputUpload.js +0 -157
  884. package/dist/components/inputs/File/fileUpload.types.d.ts +0 -96
  885. package/dist/components/inputs/File/index.d.ts +0 -9
  886. package/dist/components/inputs/File/inputUpload.types.d.ts +0 -37
  887. package/dist/components/inputs/File/inputUpload.types.js +0 -9
  888. package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
  889. package/dist/components/inputs/File/shared/FileCard.js +0 -121
  890. package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
  891. package/dist/components/inputs/File/shared/FileCardList.js +0 -60
  892. package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
  893. package/dist/components/inputs/File/shared/FileUploadContent.js +0 -208
  894. package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
  895. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -58
  896. package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
  897. package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -112
  898. package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
  899. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -117
  900. package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
  901. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -79
  902. package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
  903. package/dist/components/inputs/File/shared/InputUploadContent.js +0 -169
  904. package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
  905. package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -69
  906. package/dist/components/inputs/File/shared/ProgressBar.d.ts +0 -6
  907. package/dist/components/inputs/File/shared/ProgressBar.js +0 -33
  908. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -17
  909. package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -42
  910. package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -27
  911. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -39
  912. package/dist/components/inputs/File/shared/progressBar.cva.d.ts +0 -38
  913. package/dist/components/inputs/File/shared/progressBar.cva.js +0 -28
  914. package/dist/components/inputs/FormField/FormField.d.ts +0 -20
  915. package/dist/components/inputs/FormField/FormField.js +0 -127
  916. package/dist/components/inputs/FormField/FormFieldError.d.ts +0 -7
  917. package/dist/components/inputs/FormField/FormFieldError.js +0 -33
  918. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +0 -14
  919. package/dist/components/inputs/FormField/FormFieldHeader.js +0 -97
  920. package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
  921. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -41
  922. package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
  923. package/dist/components/inputs/FormField/FormFieldHelper.js +0 -34
  924. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
  925. package/dist/components/inputs/FormField/FormFieldLabel.js +0 -59
  926. package/dist/components/inputs/FormField/formFieldError.cva.d.ts +0 -13
  927. package/dist/components/inputs/FormField/formFieldError.cva.js +0 -14
  928. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -13
  929. package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
  930. package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +0 -13
  931. package/dist/components/inputs/FormField/formFieldHelper.cva.js +0 -14
  932. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +0 -23
  933. package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -494
  934. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -46
  935. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -582
  936. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -36
  937. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -338
  938. package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +0 -7
  939. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -61
  940. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -8
  941. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
  942. package/dist/components/inputs/Input/TextArea/TextArea.d.ts +0 -19
  943. package/dist/components/inputs/Input/TextArea/TextArea.js +0 -346
  944. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +0 -23
  945. package/dist/components/inputs/Input/TextInput/TextInput.js +0 -470
  946. package/dist/components/inputs/Input/shared/InputContent.d.ts +0 -29
  947. package/dist/components/inputs/Input/shared/InputContent.js +0 -213
  948. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
  949. package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
  950. package/dist/components/inputs/Inputs/Form.d.ts +0 -26
  951. package/dist/components/inputs/Inputs/Form.js +0 -73
  952. package/dist/components/inputs/Inputs/InputItem.d.ts +0 -67
  953. package/dist/components/inputs/Inputs/InputItem.js +0 -112
  954. package/dist/components/inputs/Inputs/Inputs.d.ts +0 -10
  955. package/dist/components/inputs/Inputs/Inputs.js +0 -43
  956. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +0 -22
  957. package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -371
  958. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -62
  959. package/dist/components/inputs/RadioGroup/radio.cva.js +0 -85
  960. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +0 -12
  961. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +0 -165
  962. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +0 -4
  963. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -176
  964. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -39
  965. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -15
  966. package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -172
  967. package/dist/components/inputs/Selection/Select/Select.d.ts +0 -12
  968. package/dist/components/inputs/Selection/Select/Select.js +0 -235
  969. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +0 -38
  970. package/dist/components/inputs/Selection/shared/SelectBase.js +0 -82
  971. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
  972. package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -421
  973. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
  974. package/dist/components/inputs/Selection/shared/SelectInput.js +0 -470
  975. package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
  976. package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -105
  977. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
  978. package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -75
  979. package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
  980. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -104
  981. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
  982. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -88
  983. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
  984. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -89
  985. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
  986. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -76
  987. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
  988. package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -128
  989. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
  990. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
  991. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -15
  992. package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -44
  993. package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
  994. package/dist/components/inputs/Selection/shared/select.context.js +0 -231
  995. package/dist/components/inputs/Selection/shared/select.types.d.ts +0 -64
  996. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -6
  997. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
  998. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -12
  999. package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
  1000. package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +0 -16
  1001. package/dist/components/inputs/Selection/shared/selectItem.cva.js +0 -24
  1002. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
  1003. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
  1004. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
  1005. package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
  1006. package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -84
  1007. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -84
  1008. package/dist/components/inputs/Skeleton/InputFrame.js +0 -242
  1009. package/dist/components/inputs/Slider/Slider.d.ts +0 -19
  1010. package/dist/components/inputs/Slider/Slider.js +0 -285
  1011. package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -22
  1012. package/dist/components/inputs/TextEditor/TextEditor.js +0 -199
  1013. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
  1014. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -44
  1015. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
  1016. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -128
  1017. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
  1018. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -221
  1019. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
  1020. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -103
  1021. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
  1022. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -58
  1023. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
  1024. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -79
  1025. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
  1026. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -59
  1027. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
  1028. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -103
  1029. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
  1030. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -138
  1031. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
  1032. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -157
  1033. package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
  1034. package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
  1035. package/dist/components/inputs/Toggle/Toggle.d.ts +0 -16
  1036. package/dist/components/inputs/Toggle/Toggle.js +0 -234
  1037. package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -19
  1038. package/dist/components/inputs/Toggle/toggle.cva.js +0 -35
  1039. package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
  1040. package/dist/components/inputs/shared/CheckContent.js +0 -29
  1041. package/dist/components/inputs/shared/InputClear.d.ts +0 -10
  1042. package/dist/components/inputs/shared/InputClear.js +0 -117
  1043. package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
  1044. package/dist/components/inputs/shared/TooltipWrapper.js +0 -60
  1045. package/dist/components/inputs/shared/form.binding.d.ts +0 -27
  1046. package/dist/components/inputs/shared/form.binding.js +0 -57
  1047. package/dist/components/inputs/shared/form.types.d.ts +0 -13
  1048. package/dist/components/inputs/shared/form.types.js +0 -8
  1049. package/dist/components/inputs/shared/input.cva.d.ts +0 -90
  1050. package/dist/components/inputs/shared/input.cva.js +0 -334
  1051. package/dist/components/inputs/shared/label.cva.d.ts +0 -19
  1052. package/dist/components/inputs/shared/label.cva.js +0 -74
  1053. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -8
  1054. package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
  1055. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
  1056. package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -138
  1057. package/dist/components/navigation/Accordion/Accordion.d.ts +0 -3
  1058. package/dist/components/navigation/Accordion/Accordion.js +0 -34
  1059. package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
  1060. package/dist/components/navigation/Accordion/AccordionItem.js +0 -63
  1061. package/dist/components/navigation/Accordion/accordion.cva.d.ts +0 -110
  1062. package/dist/components/navigation/Accordion/accordion.cva.js +0 -129
  1063. package/dist/components/navigation/Accordion/accordion.types.d.ts +0 -52
  1064. package/dist/components/navigation/Stepper/Stepper.d.ts +0 -2
  1065. package/dist/components/navigation/Stepper/Stepper.js +0 -34
  1066. package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
  1067. package/dist/components/navigation/Stepper/StepperItem.js +0 -126
  1068. package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
  1069. package/dist/components/navigation/Stepper/StepperSeparator.js +0 -30
  1070. package/dist/components/navigation/Stepper/stepper.cva.d.ts +0 -93
  1071. package/dist/components/navigation/Stepper/stepper.cva.js +0 -116
  1072. package/dist/components/navigation/Stepper/stepper.types.d.ts +0 -41
  1073. package/dist/components/outline.clsx.d.ts +0 -2
  1074. package/dist/components/outline.clsx.js +0 -6
  1075. package/dist/components/overlays/ActionModal/ActionModal.d.ts +0 -24
  1076. package/dist/components/overlays/ActionModal/ActionModal.js +0 -54
  1077. package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +0 -32
  1078. package/dist/components/overlays/BottomSheet/BottomSheet.js +0 -328
  1079. package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
  1080. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +0 -78
  1081. package/dist/components/overlays/Drawer/Drawer.d.ts +0 -15
  1082. package/dist/components/overlays/Drawer/Drawer.js +0 -95
  1083. package/dist/components/overlays/Modal/Modal.d.ts +0 -15
  1084. package/dist/components/overlays/Modal/Modal.js +0 -55
  1085. package/dist/components/overlays/Modal/modal.cva.d.ts +0 -37
  1086. package/dist/components/overlays/Modal/modal.cva.js +0 -44
  1087. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -17
  1088. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -45
  1089. package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -13
  1090. package/dist/components/overlays/Tooltip/Tooltip.js +0 -170
  1091. package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -8
  1092. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +0 -46
  1093. package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +0 -49
  1094. package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -44
  1095. package/dist/components/segment/Segment.d.ts +0 -4
  1096. package/dist/components/segment/Segment.js +0 -245
  1097. package/dist/components/segment/SegmentItem.d.ts +0 -2
  1098. package/dist/components/segment/SegmentItem.js +0 -85
  1099. package/dist/components/segment/segment.cva.d.ts +0 -20
  1100. package/dist/components/segment/segment.cva.js +0 -30
  1101. package/dist/components/segment/segment.types.d.ts +0 -36
  1102. package/dist/components/shared/pagination/Pagination.d.ts +0 -9
  1103. package/dist/components/shared/pagination/Pagination.js +0 -45
  1104. package/dist/components/shared/pagination/PaginationList.d.ts +0 -15
  1105. package/dist/components/shared/pagination/PaginationList.js +0 -207
  1106. package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
  1107. package/dist/components/shared/pagination/minWidth.cva.js +0 -11
  1108. package/dist/components/shared/popover.cva.d.ts +0 -8
  1109. package/dist/components/shared/popover.cva.js +0 -5
  1110. package/dist/components/status/Alert/Alert.d.ts +0 -11
  1111. package/dist/components/status/Alert/Alert.js +0 -47
  1112. package/dist/components/status/Alert/alert.cva.d.ts +0 -19
  1113. package/dist/components/status/Alert/alert.cva.js +0 -67
  1114. package/dist/components/status/Loader/Loader.d.ts +0 -5
  1115. package/dist/components/status/Loader/Loader.js +0 -89
  1116. package/dist/components/status/Loader/loader.cva.d.ts +0 -28
  1117. package/dist/components/status/Loader/loader.cva.js +0 -27
  1118. package/dist/components/status/Toast/Toast.d.ts +0 -14
  1119. package/dist/components/status/Toast/Toast.js +0 -82
  1120. package/dist/components/status/Toast/toast.cva.d.ts +0 -80
  1121. package/dist/components/status/Toast/toast.cva.js +0 -211
  1122. package/dist/components/status/Toast/useToast.d.ts +0 -13
  1123. package/dist/components/status/Toast/useToast.js +0 -70
  1124. package/dist/components/status/shared/status.cva.d.ts +0 -30
  1125. package/dist/components/status/shared/status.cva.js +0 -65
  1126. package/dist/components/table/CellText.d.ts +0 -8
  1127. package/dist/components/table/CellText.js +0 -21
  1128. package/dist/components/table/ColumnConfig.d.ts +0 -10
  1129. package/dist/components/table/ColumnConfig.js +0 -187
  1130. package/dist/components/table/HeaderText.d.ts +0 -8
  1131. package/dist/components/table/HeaderText.js +0 -20
  1132. package/dist/components/table/InfiniteTable.d.ts +0 -9
  1133. package/dist/components/table/InfiniteTable.js +0 -28
  1134. package/dist/components/table/PaginatedTable.d.ts +0 -11
  1135. package/dist/components/table/PaginatedTable.js +0 -94
  1136. package/dist/components/table/Table.d.ts +0 -37
  1137. package/dist/components/table/Table.js +0 -265
  1138. package/dist/components/table/table.cva.d.ts +0 -65
  1139. package/dist/components/table/table.cva.js +0 -49
  1140. package/dist/components/text/Link/Link.d.ts +0 -9
  1141. package/dist/components/text/Link/Link.js +0 -33
  1142. package/dist/components/text/Link/link.cva.d.ts +0 -12
  1143. package/dist/components/text/Link/link.cva.js +0 -12
  1144. package/dist/components/text/Pill/Pill.d.ts +0 -15
  1145. package/dist/components/text/Pill/Pill.js +0 -44
  1146. package/dist/components/text/Tag/Tag.d.ts +0 -15
  1147. package/dist/components/text/Tag/Tag.js +0 -43
  1148. package/dist/components/text/Tag/tag.cva.d.ts +0 -16
  1149. package/dist/components/text/Tag/tag.cva.js +0 -55
  1150. package/dist/components/text/Typography/Typography.d.ts +0 -11
  1151. package/dist/components/text/Typography/Typography.js +0 -16
  1152. package/dist/components/text/Typography/typography.cva.d.ts +0 -49
  1153. package/dist/components/text/Typography/typography.cva.js +0 -129
  1154. package/dist/config/confirmation.context.d.ts +0 -20
  1155. package/dist/config/confirmation.context.js +0 -80
  1156. package/dist/config/i18n.d.ts +0 -313
  1157. package/dist/config/i18n.js +0 -10
  1158. package/dist/config/link.context.d.ts +0 -10
  1159. package/dist/config/link.context.js +0 -35
  1160. package/dist/config/router.context.d.ts +0 -14
  1161. package/dist/config/router.context.js +0 -63
  1162. package/dist/config/theme.context.d.ts +0 -17
  1163. package/dist/config/theme.context.js +0 -67
  1164. package/dist/config/uiConfig.context.d.ts +0 -77
  1165. package/dist/config/uiConfig.context.js +0 -132
  1166. package/dist/config/uiOverrides.context.d.ts +0 -205
  1167. package/dist/config/uiOverrides.context.js +0 -113
  1168. package/dist/helpers/dynamicColumns.d.ts +0 -44
  1169. package/dist/helpers/dynamicColumns.js +0 -275
  1170. package/dist/helpers/dynamicInputs.d.ts +0 -86
  1171. package/dist/helpers/dynamicInputs.js +0 -193
  1172. package/dist/hooks/useAutosave.d.ts +0 -10
  1173. package/dist/hooks/useAutosave.js +0 -87
  1174. package/dist/hooks/useBreakpoint.d.ts +0 -3
  1175. package/dist/hooks/useBreakpoint.js +0 -43
  1176. package/dist/hooks/useDebounceCallback.d.ts +0 -6
  1177. package/dist/hooks/useDebounceCallback.js +0 -25
  1178. package/dist/hooks/useDeepCompare.d.ts +0 -4
  1179. package/dist/hooks/useDeepCompare.js +0 -23
  1180. package/dist/hooks/useFilters.d.ts +0 -8
  1181. package/dist/hooks/useFilters.js +0 -188
  1182. package/dist/hooks/useForm.d.ts +0 -42
  1183. package/dist/hooks/useForm.js +0 -101
  1184. package/dist/hooks/useFormAutosave.d.ts +0 -14
  1185. package/dist/hooks/useFormAutosave.js +0 -73
  1186. package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
  1187. package/dist/hooks/useIntersectionObserver.d.ts +0 -8
  1188. package/dist/hooks/useIntersectionObserver.js +0 -98
  1189. package/dist/hooks/useKeyInteractions.d.ts +0 -20
  1190. package/dist/hooks/useKeyInteractions.js +0 -54
  1191. package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
  1192. package/dist/hooks/useLocalStorage.d.ts +0 -11
  1193. package/dist/hooks/useLocalStorage.js +0 -70
  1194. package/dist/hooks/useLongPressRepeat.d.ts +0 -9
  1195. package/dist/hooks/useLongPressRepeat.js +0 -29
  1196. package/dist/hooks/usePagination.d.ts +0 -7
  1197. package/dist/hooks/usePagination.js +0 -62
  1198. package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
  1199. package/dist/hooks/useQueryAutocomplete.js +0 -103
  1200. package/dist/hooks/useScrollableListBox.d.ts +0 -3
  1201. package/dist/hooks/useScrollableListBox.js +0 -47
  1202. package/dist/hooks/useSorting.d.ts +0 -6
  1203. package/dist/hooks/useSorting.js +0 -80
  1204. package/dist/hooks/useStateAndRef.d.ts +0 -4
  1205. package/dist/hooks/useStateAndRef.js +0 -31
  1206. package/dist/hooks/useTableColumnConfig.d.ts +0 -16
  1207. package/dist/hooks/useTableColumnConfig.js +0 -133
  1208. package/dist/hooks/useTableNav.d.ts +0 -84
  1209. package/dist/hooks/useTableNav.js +0 -383
  1210. package/dist/hooks/useTranslationMemo.d.ts +0 -4
  1211. package/dist/hooks/useTranslationMemo.js +0 -32
  1212. package/dist/rhf/Inputs.d.ts +0 -60
  1213. package/dist/rhf/Inputs.js +0 -148
  1214. package/dist/rhf/components.d.ts +0 -80
  1215. package/dist/rhf/components.js +0 -101
  1216. package/dist/rhf/dynamicInputs.d.ts +0 -18
  1217. package/dist/rhf/dynamicInputs.js +0 -5
  1218. package/dist/rhf/entrypoints.type-test.d.ts +0 -1
  1219. package/dist/rhf/fieldAdapter.d.ts +0 -7
  1220. package/dist/rhf/fieldAdapter.js +0 -40
  1221. package/dist/rhf/form.types.d.ts +0 -12
  1222. package/dist/rhf/useAutosave.d.ts +0 -10
  1223. package/dist/rhf/useAutosave.js +0 -71
  1224. package/dist/rhf/useForm.d.ts +0 -18
  1225. package/dist/rhf/useForm.js +0 -48
  1226. package/dist/rhf/useFormAutosave.d.ts +0 -15
  1227. package/dist/rhf/useFormAutosave.js +0 -59
  1228. package/dist/text-editor.d.ts +0 -2
  1229. package/dist/text-editor.js +0 -2
  1230. package/dist/types/common.d.ts +0 -12
  1231. package/dist/types/error-handling.d.ts +0 -6
  1232. package/dist/types/react-query.d.ts +0 -6
  1233. package/dist/utils/array.utils.d.ts +0 -3
  1234. package/dist/utils/array.utils.js +0 -10
  1235. package/dist/utils/array.utils.spec.d.ts +0 -1
  1236. package/dist/utils/compoundMapper.d.ts +0 -19
  1237. package/dist/utils/compoundMapper.js +0 -13
  1238. package/dist/utils/compoundMapper.spec.d.ts +0 -1
  1239. package/dist/utils/date-time.utils.d.ts +0 -42
  1240. package/dist/utils/date-time.utils.js +0 -192
  1241. package/dist/utils/date-time.utils.spec.d.ts +0 -1
  1242. package/dist/utils/date.utils.d.ts +0 -5
  1243. package/dist/utils/date.utils.js +0 -19
  1244. package/dist/utils/date.utils.spec.d.ts +0 -1
  1245. package/dist/utils/dom.utils.d.ts +0 -5
  1246. package/dist/utils/dom.utils.js +0 -19
  1247. package/dist/utils/file.utils.d.ts +0 -13
  1248. package/dist/utils/file.utils.js +0 -50
  1249. package/dist/utils/intl.utils.d.ts +0 -7
  1250. package/dist/utils/intl.utils.js +0 -38
  1251. package/dist/utils/intl.utils.spec.d.ts +0 -1
  1252. package/dist/utils/isEqual.d.ts +0 -1
  1253. package/dist/utils/isEqual.js +0 -59
  1254. package/dist/utils/object.utils.d.ts +0 -10
  1255. package/dist/utils/object.utils.js +0 -38
  1256. package/dist/utils/queries.utils.d.ts +0 -4
  1257. package/dist/utils/queries.utils.js +0 -9
  1258. package/dist/utils/query.utils.d.ts +0 -4
  1259. package/dist/utils/query.utils.js +0 -8
  1260. package/dist/utils/rest.utils.d.ts +0 -10
  1261. package/dist/utils/rest.utils.js +0 -33
  1262. package/dist/utils/routing.utils.d.ts +0 -4
  1263. package/dist/utils/routing.utils.js +0 -25
  1264. package/dist/utils/string.utils.d.ts +0 -4
  1265. package/dist/utils/string.utils.js +0 -12
  1266. package/dist/utils/style-merge.util.d.ts +0 -43
  1267. package/dist/utils/style-merge.util.js +0 -233
  1268. package/dist/utils/style-merge.util.spec.d.ts +0 -1
  1269. package/dist/utils/zod.utils.d.ts +0 -20
  1270. package/dist/utils/zod.utils.js +0 -24
  1271. /package/dist/styles/{editor.css → styles/editor.css} +0 -0
@@ -0,0 +1,1620 @@
1
+ import { t as logger } from "./logger-CqZjM-sn.js";
2
+ import { t as createLucideIcon } from "./createLucideIcon-LS26Bb1M.js";
3
+ import { t as UIConfig } from "./uiConfig.context-BvBsrMFI.js";
4
+ import { t as ChevronDown } from "./chevron-down-RksSwG1O.js";
5
+ import { t as ChevronUp } from "./chevron-up-CgEFpORu.js";
6
+ import { t as clsx } from "./clsx-CnD0nOiA.js";
7
+ import { t as Checkbox } from "./Checkbox-BJ7flpwA.js";
8
+ import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
9
+ import { t as Typography } from "./Typography-AcUd9df8.js";
10
+ import { t as Spinner } from "./Spinner-owSXOEzg.js";
11
+ import { InlineIconButton } from "./components/inline-icon-button.js";
12
+ import "./i18n-BDjNuy4Z.js";
13
+ import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
14
+ import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
15
+ import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
16
+ import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
17
+ import { t as ZodUtils } from "./zod.utils-DrrPDT9v.js";
18
+ import { t as Dialog } from "./Dialog-DLfOkNe9.js";
19
+ import { Pagination } from "./components/pagination.js";
20
+ import { t as useTranslationMemo } from "./useTranslationMemo-CrZbeyBv.js";
21
+ import { t as UIRouter } from "./router.context-Bft1psqn.js";
22
+ import { t as RoutingUtils } from "./routing.utils-UTQonIhB.js";
23
+ import { Suspense, lazy, useCallback, useEffect, useMemo, useRef, useState } from "react";
24
+ import { c } from "react/compiler-runtime";
25
+ import { jsx, jsxs } from "react/jsx-runtime";
26
+ import { useTranslation } from "react-i18next";
27
+ import { z } from "zod";
28
+ import { createPaginatedRowModel, createSortedRowModel, flexRender, stockFeatures, tableFeatures, useTable } from "@tanstack/react-table";
29
+ import i18next from "i18next";
30
+ /**
31
+ * @license lucide-react v1.37.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */
36
+ const GripVertical = createLucideIcon("grip-vertical", [
37
+ ["circle", {
38
+ cx: "9",
39
+ cy: "12",
40
+ r: "1",
41
+ key: "1vctgf"
42
+ }],
43
+ ["circle", {
44
+ cx: "9",
45
+ cy: "5",
46
+ r: "1",
47
+ key: "hp0tcf"
48
+ }],
49
+ ["circle", {
50
+ cx: "9",
51
+ cy: "19",
52
+ r: "1",
53
+ key: "fkjjf6"
54
+ }],
55
+ ["circle", {
56
+ cx: "15",
57
+ cy: "12",
58
+ r: "1",
59
+ key: "1tmaij"
60
+ }],
61
+ ["circle", {
62
+ cx: "15",
63
+ cy: "5",
64
+ r: "1",
65
+ key: "19l28e"
66
+ }],
67
+ ["circle", {
68
+ cx: "15",
69
+ cy: "19",
70
+ r: "1",
71
+ key: "f4zoj3"
72
+ }]
73
+ ]);
74
+ //#endregion
75
+ //#region src/components/table/table.cva.ts
76
+ const tableRowDefinition = UIOverrides.defineConfig({
77
+ base: [
78
+ "h-9 max-h-12",
79
+ "hover:bg-elevation-fill-default-2",
80
+ "disabled:opacity-50",
81
+ "selected:bg-elevation-fill-default-2",
82
+ "hover:selected:bg-interactive-subtle-secondary-hover",
83
+ "data-clickable:cursor-pointer",
84
+ "focus-within:bg-elevation-fill-default-2"
85
+ ],
86
+ config: { variants: { alternatingBackground: {
87
+ even: "even:bg-elevation-fill-inverted-4/5",
88
+ odd: "odd:bg-elevation-fill-inverted-4/5"
89
+ } } }
90
+ });
91
+ const theadDefinition = UIOverrides.defineConfig({ base: ["group/table-head sticky top-0 z-sticky data-is-sticky:shadow-2"] });
92
+ const tableHeadRowDefinition = UIOverrides.defineConfig({ base: ["h-8 w-full"] });
93
+ const tableHeadDataDefinition = UIOverrides.defineConfig({
94
+ base: ["border-b border-b-elevation-outline-default-1 border-solid px-table-header-cell-container-side-default py-table-header-cell-container-height-default text-left", "group-data-[is-sticky=true]/table-head:bg-elevation-fill-default-1"],
95
+ config: {
96
+ variants: { hasRightBorder: {
97
+ true: "border-l border-l-elevation-outline-default-1 border-solid",
98
+ false: ""
99
+ } },
100
+ defaultVariants: { hasRightBorder: true }
101
+ }
102
+ });
103
+ const tableDataDefinition = UIOverrides.defineConfig({
104
+ base: [
105
+ "relative h-0-5 overflow-hidden text-ellipsis whitespace-nowrap border-t border-t-transparent px-2",
106
+ "border-b border-b-elevation-outline-default-1",
107
+ "has-[*>[data-hovered]:not([data-disabled])]:hover:border-b-input-outlined-outline-hover",
108
+ "has-[*>[data-invalid]]:border-b-input-outlined-outline-error!",
109
+ "has-[*>[data-focused]]:border-b-input-outlined-outline-active"
110
+ ],
111
+ config: {
112
+ variants: { hasRightBorder: {
113
+ true: "border-l border-l-elevation-outline-default-1",
114
+ false: ""
115
+ } },
116
+ defaultVariants: { hasRightBorder: true }
117
+ }
118
+ });
119
+ const tableHeaderTextDefinition = UIOverrides.defineConfig({ base: ["overflow-hidden text-ellipsis px-table-cell-content-side-m py-table-cell-content-height-m text-text-default-1"] });
120
+ const tableCellTextDefinition = UIOverrides.defineConfig({ base: ["block overflow-hidden text-ellipsis text-text-default-2"] });
121
+ //#endregion
122
+ //#region src/components/table/CellText.tsx
123
+ const CellText = (props) => {
124
+ const uiConfig = UIConfig.useConfig();
125
+ const { variant = uiConfig.tableCellText.variant, size = uiConfig.tableCellText.size, children, style, className } = props;
126
+ const cellTextCva = UIOverrides.useCva("table.cellTextCva", tableCellTextDefinition);
127
+ return /* @__PURE__ */ jsx(Typography, {
128
+ className: cellTextCva({ className }),
129
+ as: "span",
130
+ variant,
131
+ size,
132
+ style,
133
+ "data-rac": true,
134
+ children
135
+ });
136
+ };
137
+ //#endregion
138
+ //#region src/components/table/HeaderText.tsx
139
+ const HeaderText = (props) => {
140
+ const uiConfig = UIConfig.useConfig();
141
+ const { variant = uiConfig.tableHeaderText.variant, size = uiConfig.tableHeaderText.size, children, style, className } = props;
142
+ const headerTextCva = UIOverrides.useCva("table.headerTextCva", tableHeaderTextDefinition);
143
+ return /* @__PURE__ */ jsx(Typography, {
144
+ className: headerTextCva({ className }),
145
+ as: "span",
146
+ variant,
147
+ size,
148
+ style,
149
+ children
150
+ });
151
+ };
152
+ //#endregion
153
+ //#region src/hooks/useTableNav.ts
154
+ const Selectors = {
155
+ Cell: "[role=\"cell\"],[role=\"gridcell\"],[role=\"columnheader\"],[role=\"rowheader\"],td,th",
156
+ Row: "[role=\"row\"],tr",
157
+ RowGroup: "[role=\"rowgroup\"],thead,tbody,tfoot",
158
+ /** Selector from here: https://github.com/Shopify/polaris/blob/main/polaris-react/src/utilities/focus.ts#L10 */
159
+ 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]"
160
+ };
161
+ var DataGridNav = class {
162
+ constructor(config = {}) {
163
+ this.keys = [];
164
+ this.activeCell = null;
165
+ this.debugLog = (functionName, message) => {
166
+ if (this.debug) logger.info(`[${functionName}]: ${message}`);
167
+ };
168
+ const { selectors = {}, pageUpDown, debug = false } = config;
169
+ this.selectors = {
170
+ ...Selectors,
171
+ ...selectors
172
+ };
173
+ this.pageUpDown = pageUpDown;
174
+ this.keys = [];
175
+ this.debug = debug;
176
+ this.disabled = false;
177
+ }
178
+ /**
179
+ * Disables the keyboard listener in cases
180
+ * that elements inside the grid need to use
181
+ * arrows keys etc., like select dropdowns
182
+ */
183
+ disable() {
184
+ this.disabled = true;
185
+ }
186
+ /**
187
+ * Enables the keyboard listeners
188
+ */
189
+ enable() {
190
+ this.disabled = false;
191
+ }
192
+ isFocusable(el) {
193
+ return el instanceof HTMLElement || el instanceof SVGElement;
194
+ }
195
+ getActiveCell() {
196
+ return this.activeCell;
197
+ }
198
+ /** Used as a keyboard listener for key up */
199
+ tableKeyUp() {
200
+ this.keys = [];
201
+ }
202
+ /** Used as a keyboard listener for key down */
203
+ tableKeyDown(e) {
204
+ if (this.disabled) return;
205
+ /**
206
+ * Avoid page scrolling etc.
207
+ * Enable default behavior for:
208
+ * Tab, Shift + Tab
209
+ * TODO: Actually it will be better to just prevent
210
+ * in ArrowKeys and PageKeys maybe?
211
+ * Or should the consumer stop propagation?!
212
+ * Cannot work with preventDefault as it will
213
+ * first capture the event from an input in cell for example
214
+ */
215
+ if ("ArrowDown" === e.key || "ArrowUp" === e.key || "ArrowLeft" === e.key || "ArrowRight" === e.key) e.preventDefault();
216
+ /**
217
+ * Add key to the stack if it's
218
+ * not the same with the last (long press)
219
+ */
220
+ if (this.keys.length === 0 || this.keys[this.keys.length - 1] !== e.key) this.keys.push(e.key);
221
+ /**
222
+ * Need to check if we are inside a grid cell
223
+ * or not to enable/disable Grid Navigation
224
+ */
225
+ if (!(e.target instanceof Element)) return;
226
+ const cell = e.target.parentElement?.closest(`${this.selectors.Cell},${this.selectors.Row}`);
227
+ if (!cell) return;
228
+ if (cell.matches(this.selectors.Cell)) this.cellNavigation(e);
229
+ else this.gridNavigation(e);
230
+ }
231
+ /**
232
+ * Handles the navigation inside a cell
233
+ */
234
+ cellNavigation(e) {
235
+ if (!(e.target instanceof Element)) return;
236
+ /**
237
+ * Keys: Escape
238
+ * Restore grid navigation
239
+ */
240
+ if (e.key === "Escape") {
241
+ const cell = e.target.closest(this.selectors.Cell);
242
+ if (cell && this.isFocusable(cell)) {
243
+ cell.focus();
244
+ return;
245
+ }
246
+ }
247
+ /**
248
+ * Keys: ArrowRight, ArrowDown
249
+ * Move to the next focusable cell, or the first one
250
+ *
251
+ * Arrow Down disabled:
252
+ * https://github.com/w3c/aria-practices/issues/2739#issuecomment-1613538972
253
+ */
254
+ if (e.key === "ArrowRight" || e.key === "ArrowDown") {
255
+ const cell = e.target.closest(this.selectors.Cell);
256
+ if (!cell) return;
257
+ const focusableWidgets = [...cell.querySelectorAll(this.selectors.Focusable)];
258
+ const widgetIdx = focusableWidgets.findIndex((el) => el === e.target);
259
+ const widgetToFocus = focusableWidgets[widgetIdx === focusableWidgets.length - 1 ? 0 : widgetIdx + 1];
260
+ if (this.isFocusable(widgetToFocus)) widgetToFocus.focus();
261
+ return;
262
+ }
263
+ /**
264
+ * Keys: ArrowLeft, ArrowUp
265
+ * Move to the previous focusable cell, or the last one
266
+ *
267
+ * Arrow Up disabled:
268
+ * https://github.com/w3c/aria-practices/issues/2739#issuecomment-1613538972
269
+ */
270
+ if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
271
+ const cell = e.target.closest(this.selectors.Cell);
272
+ if (!cell) return;
273
+ const focusableWidgets = [...cell.querySelectorAll(this.selectors.Focusable)];
274
+ const widgetIdx = focusableWidgets.findIndex((el) => el === e.target);
275
+ const widgetToFocus = focusableWidgets[widgetIdx === 0 ? focusableWidgets.length - 1 : widgetIdx - 1];
276
+ if (this.isFocusable(widgetToFocus)) widgetToFocus.focus();
277
+ }
278
+ }
279
+ /**
280
+ * Handles the navigation outside a cell
281
+ * on the grid level
282
+ */
283
+ gridNavigation(e) {
284
+ const { target } = e;
285
+ if (!(e.target instanceof Element)) return;
286
+ if (!(target instanceof Element)) return;
287
+ if (this.keys.length === 1) {
288
+ /**
289
+ * Keys: Enter
290
+ * Should move focus inside the cell to the first focusable element:
291
+ * https://www.w3.org/WAI/ARIA/apg/patterns/grid/#gridNav_inside
292
+ */
293
+ if (/^[a-zA-Z0-9]$/.test(e.key)) {
294
+ const cell = e.target.querySelector(this.selectors.Focusable);
295
+ if (cell && this.isFocusable(cell) && cell instanceof HTMLInputElement) {
296
+ cell.focus();
297
+ cell.value = `${cell.value}${e.key}`;
298
+ e.preventDefault();
299
+ }
300
+ return;
301
+ }
302
+ if (e.key === "Backspace") {
303
+ const cell = e.target.querySelector(this.selectors.Focusable);
304
+ if (cell && this.isFocusable(cell) && cell instanceof HTMLInputElement) {
305
+ const nativeInputValueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
306
+ if (nativeInputValueSetter) {
307
+ nativeInputValueSetter.call(cell, "");
308
+ const ev = new Event("input", { bubbles: true });
309
+ cell.dispatchEvent(ev);
310
+ }
311
+ }
312
+ return;
313
+ }
314
+ if (e.key === "Enter") {
315
+ const cell = e.target.querySelector(this.selectors.Focusable);
316
+ if (cell && this.isFocusable(cell)) {
317
+ if (cell.getAttribute("data-type") === "select-trigger") {
318
+ cell.click();
319
+ return;
320
+ }
321
+ cell.focus();
322
+ e.preventDefault();
323
+ }
324
+ return;
325
+ }
326
+ /**
327
+ * Keys: ArrowLeft, ArrowRight
328
+ * Should move focus to the next/previous cell
329
+ */
330
+ if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
331
+ const direction = e.key === "ArrowLeft" ? "prev" : "next";
332
+ const cell = e.target.closest(this.selectors.Cell);
333
+ let nextCell = null;
334
+ if (direction === "next" && cell?.nextElementSibling instanceof HTMLElement) nextCell = cell.nextElementSibling;
335
+ if (direction === "prev" && cell?.previousElementSibling instanceof HTMLElement) nextCell = cell.previousElementSibling;
336
+ if (nextCell && this.isFocusable(nextCell)) {
337
+ nextCell.focus();
338
+ e.preventDefault();
339
+ }
340
+ }
341
+ /**
342
+ * Keys: Up,Down
343
+ * Should move focus to the same column of the next/previous row
344
+ */
345
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
346
+ this.verticalCellNavigation(e);
347
+ return;
348
+ }
349
+ /**
350
+ * Keys: PageUp, PageDown
351
+ * Should move focus to the first/last row
352
+ * or a predefined number of rows if user provides a value
353
+ */
354
+ if (e.key === "PageUp" || e.key === "PageDown") {
355
+ this.pageCellNavigation(e);
356
+ return;
357
+ }
358
+ /**
359
+ * Keys: Home, End
360
+ * Should move focus to the first/last cell of the current row
361
+ */
362
+ if (e.key === "Home" || e.key === "End") {
363
+ const rowChildren = [...e.target.closest(this.selectors.Row)?.children || []];
364
+ if (e.key === "End") rowChildren.reverse();
365
+ this.focusOnFirstCell(rowChildren);
366
+ }
367
+ } else {
368
+ /**
369
+ * Keys: Control + Home, Control + End
370
+ * Should move focus to the first/last cell of the first/last row
371
+ */
372
+ const [firstKey, secondKey] = this.keys;
373
+ if (firstKey === "Control" && (secondKey === "Home" || secondKey === "End")) {
374
+ const siblings = e.target.closest(this.selectors.Row).parentElement?.children;
375
+ if (!siblings) return;
376
+ const rowChildren = [...(secondKey === "Home" ? siblings[0] : siblings[siblings.length - 1])?.children || []];
377
+ if (secondKey === "End") rowChildren.reverse();
378
+ this.focusOnFirstCell(rowChildren);
379
+ }
380
+ }
381
+ }
382
+ pageCellNavigation(e) {
383
+ if (!(e.target instanceof Element)) return;
384
+ const row = e.target.closest(this.selectors.Row);
385
+ const cell = e.target.closest(this.selectors.Cell);
386
+ if (row && cell) {
387
+ const position = this.getColumnIndex(cell);
388
+ if (position === void 0) return;
389
+ const direction = e.key === "PageUp" ? "prev" : "next";
390
+ const siblings = row.parentElement?.children;
391
+ if (!siblings) return;
392
+ let destinationRow;
393
+ if (this.pageUpDown) {
394
+ const methodClbk = direction === "prev" ? "previousSibling" : "nextSibling";
395
+ let sibling = row[methodClbk];
396
+ if (sibling === null) return;
397
+ let lastVisitedSibling = sibling;
398
+ for (let i = 0; i < this.pageUpDown - 1 && sibling; i++) {
399
+ sibling = sibling[methodClbk];
400
+ if (sibling) lastVisitedSibling = sibling;
401
+ }
402
+ destinationRow = sibling || lastVisitedSibling;
403
+ } else destinationRow = direction === "prev" ? siblings[0] : siblings[siblings.length - 1];
404
+ if (!destinationRow || !(destinationRow instanceof Element)) return;
405
+ const child = destinationRow.children[position];
406
+ if (child && this.isFocusable(child)) child.focus();
407
+ }
408
+ }
409
+ verticalCellNavigation(e) {
410
+ if (!(e.target instanceof Element)) return;
411
+ const row = e.target.closest(this.selectors.Row);
412
+ const cell = e.target.closest(this.selectors.Cell);
413
+ if (row && cell) {
414
+ const cellPosition = this.getColumnIndex(cell);
415
+ const rowPosition = this.getRowIndex(row);
416
+ if (cellPosition === void 0 || rowPosition === void 0) return;
417
+ const direction = e.key === "ArrowUp" ? "prev" : "next";
418
+ /** Find previous rowgroup and focus on the proper cell */
419
+ if (rowPosition === 0 && direction === "prev") {
420
+ const currentRowGroup = row.parentElement?.closest(this.selectors.RowGroup);
421
+ const siblingRowGroups = [...currentRowGroup?.parentElement?.children || []];
422
+ const currentRowGroupIdx = siblingRowGroups.findIndex((el) => el === currentRowGroup);
423
+ if (currentRowGroupIdx !== 0) {
424
+ const rows = [...siblingRowGroups[currentRowGroupIdx - 1].querySelectorAll(this.selectors.Row)];
425
+ const child = rows[rows.length - 1].children[cellPosition];
426
+ if (child && this.isFocusable(child)) child.focus();
427
+ return;
428
+ }
429
+ }
430
+ /** Find next rowgroup and focus on the proper cell */
431
+ if (rowPosition === [...row.parentElement?.querySelectorAll(this.selectors.Row) || []].length - 1 && direction === "next") {
432
+ const currentRowGroup = row.parentElement?.closest(this.selectors.RowGroup);
433
+ const siblingRowGroups = [...currentRowGroup?.parentElement?.children || []];
434
+ const currentRowGroupIdx = siblingRowGroups.findIndex((el) => el === currentRowGroup);
435
+ if (currentRowGroupIdx !== siblingRowGroups.length - 1) {
436
+ const child = [...siblingRowGroups[currentRowGroupIdx + 1].querySelectorAll(this.selectors.Row)][0].children[cellPosition];
437
+ if (child && this.isFocusable(child)) child.focus();
438
+ return;
439
+ }
440
+ return;
441
+ }
442
+ /** Navigation in the same rowgroup */
443
+ const destinationRow = this.findUntil(direction, row, this.selectors.Row);
444
+ if (!destinationRow) return;
445
+ const child = destinationRow.children[cellPosition];
446
+ if (child && this.isFocusable(child)) child.focus();
447
+ }
448
+ }
449
+ /**
450
+ * Sending a row `Element` and then the first cell will be focused.
451
+ *
452
+ * If you want to focus the last cell then the row children can be passed in
453
+ * reversed order
454
+ */
455
+ focusOnFirstCell(el) {
456
+ for (let i = 0; i < el.length; i++) {
457
+ const child = el[i];
458
+ if (this.isFocusable(child)) {
459
+ child.focus();
460
+ return;
461
+ }
462
+ }
463
+ }
464
+ /**
465
+ * Get the column index of a `cell` based on the first `row` parent.
466
+ * `cellIndex` could be used, but it's not supported in HTML tables.
467
+ */
468
+ getColumnIndex(cell) {
469
+ let position = 0;
470
+ const siblings = cell?.parentNode?.children;
471
+ if (!siblings) return;
472
+ while (cell !== siblings[position] && siblings[position] !== void 0) position++;
473
+ if (siblings[position] === void 0) return;
474
+ return position;
475
+ }
476
+ /**
477
+ * Get the row index of a `row` based
478
+ * on its sibling rows
479
+ */
480
+ getRowIndex(row) {
481
+ let position = 0;
482
+ const siblings = row?.parentNode?.children;
483
+ if (!siblings) return;
484
+ while (row !== siblings[position] && siblings[position] !== void 0) position++;
485
+ if (siblings[position] === void 0) return;
486
+ return position;
487
+ }
488
+ /**
489
+ * Equivalent to prevUntil/nextUntil in jQuery
490
+ * https://api.jquery.com/prevUntil/
491
+ */
492
+ findUntil(direction, el, matchSelector, exitSelector) {
493
+ let element = el;
494
+ const method = direction === "next" ? "nextSibling" : "previousSibling";
495
+ while (element[method]) {
496
+ const sibling = element[method];
497
+ if (!sibling) return null;
498
+ if (exitSelector && sibling instanceof Element && sibling.matches(exitSelector)) return null;
499
+ if (sibling instanceof Element && sibling.matches(matchSelector)) return sibling;
500
+ element = sibling;
501
+ }
502
+ return null;
503
+ }
504
+ };
505
+ function useTableNav(options) {
506
+ const nav = new DataGridNav(options);
507
+ return {
508
+ listeners: {
509
+ onKeyDown: (e) => nav.tableKeyDown(e),
510
+ onKeyUp: () => nav.tableKeyUp()
511
+ },
512
+ tableNav: nav
513
+ };
514
+ }
515
+ //#endregion
516
+ //#region src/components/table/Table.tsx
517
+ const DndProvider = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.DndProvider })));
518
+ const SortableRows = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.SortableRows })));
519
+ const DraggableRow = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.DraggableRow })));
520
+ const DragHandle = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.DragHandle })));
521
+ const tableFeaturesConfig = tableFeatures({
522
+ ...stockFeatures,
523
+ sortedRowModel: createSortedRowModel(),
524
+ paginatedRowModel: createPaginatedRowModel()
525
+ });
526
+ const CustomCellContext = (context) => {
527
+ return {
528
+ ...context,
529
+ original: context.row.original,
530
+ data: context.row.original,
531
+ value: context.getValue()
532
+ };
533
+ };
534
+ const renderCell = (Comp, props) => {
535
+ const rendered = flexRender(Comp, props);
536
+ return typeof rendered === "string" ? /* @__PURE__ */ jsx(CellText, { children: rendered }) : rendered;
537
+ };
538
+ const RowDragHandleCell = ({ rowId }) => {
539
+ return /* @__PURE__ */ jsx(DragHandle, {
540
+ id: rowId,
541
+ children: (dragProps) => /* @__PURE__ */ jsx(InlineIconButton, {
542
+ ...dragProps,
543
+ className: "cursor-move p-1",
544
+ label: "Drag handle",
545
+ icon: GripVertical
546
+ })
547
+ });
548
+ };
549
+ const AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
550
+ const Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
551
+ const tableRowCva = UIOverrides.useCva("table.rowCva", tableRowDefinition);
552
+ const theadCva = UIOverrides.useCva("table.theadCva", theadDefinition);
553
+ const tableHeadRowCva = UIOverrides.useCva("table.headRowCva", tableHeadRowDefinition);
554
+ const tableHeadDataCva = UIOverrides.useCva("table.headDataCva", tableHeadDataDefinition);
555
+ const tableDataCva = UIOverrides.useCva("table.dataCva", tableDataDefinition);
556
+ const ref = useRef(null);
557
+ const { listeners } = useTableNav();
558
+ const data = useMemo(() => items ?? [], [items]);
559
+ const [internalSelectedRows, setInternalSelectedRows] = useState({});
560
+ const { rowSelection, handleRowSelectionChange } = useMemo(() => {
561
+ const hasExternalRowSelection = defaultSelectedRows !== void 0 && onRowSelectionChange !== void 0;
562
+ return {
563
+ rowSelection: hasExternalRowSelection ? defaultSelectedRows : internalSelectedRows,
564
+ handleRowSelectionChange: hasExternalRowSelection ? onRowSelectionChange : setInternalSelectedRows
565
+ };
566
+ }, [
567
+ defaultSelectedRows,
568
+ onRowSelectionChange,
569
+ internalSelectedRows
570
+ ]);
571
+ const baseColumns = useMemo(() => typeof columns === "function" ? columns(i18next.t) : columns, [columns]);
572
+ const tableColumns = useMemo(() => {
573
+ if (enableDragDrop && getRowId) return [{
574
+ id: "drag-handle",
575
+ header: "",
576
+ meta: { width: "w-12" },
577
+ cell: AutoDragHandleCell,
578
+ enableSorting: false
579
+ }, ...baseColumns];
580
+ return baseColumns;
581
+ }, [
582
+ baseColumns,
583
+ enableDragDrop,
584
+ getRowId
585
+ ]);
586
+ const [isSticky, setIsSticky] = useState(false);
587
+ const onIntersectionChange = useCallback((entry) => {
588
+ setIsSticky(entry.intersectionRatio < 1);
589
+ }, []);
590
+ const { ref: stickyRef } = useIntersectionObserver({ onIntersectionChange });
591
+ const table = useTable({
592
+ features: tableFeaturesConfig,
593
+ data,
594
+ columns: tableColumns,
595
+ state: {
596
+ sorting,
597
+ columnOrder,
598
+ columnVisibility,
599
+ rowSelection
600
+ },
601
+ rowCount: items.length,
602
+ manualPagination: true,
603
+ onColumnOrderChange: setColumnOrder,
604
+ onColumnVisibilityChange: setColumnVisibility,
605
+ onSortingChange: setSorting,
606
+ onRowSelectionChange: handleRowSelectionChange,
607
+ manualSorting: true,
608
+ autoResetPageIndex: false,
609
+ autoResetExpanded: false,
610
+ defaultColumn: { sortDescFirst: true },
611
+ enableRowSelection,
612
+ enableMultiRowSelection,
613
+ getRowId: getRowId ? (row) => String(getRowId(row)) : void 0
614
+ });
615
+ const dataIds = useMemo(() => {
616
+ if (!enableDragDrop || !getRowId) return [];
617
+ return data.map((item) => getRowId(item));
618
+ }, [
619
+ data,
620
+ enableDragDrop,
621
+ getRowId
622
+ ]);
623
+ const handleDragEnd = useCallback((event) => {
624
+ const { active, over } = event;
625
+ if (!active || !over || active.id === over.id) return;
626
+ if (getRowId && (onReorder || onDragEnd)) {
627
+ if (onReorder) {
628
+ const oldIndex = items.findIndex((item_0) => getRowId(item_0) === active.id);
629
+ const newIndex = items.findIndex((item_1) => getRowId(item_1) === over.id);
630
+ if (oldIndex !== -1 && newIndex !== -1) {
631
+ const reorderedItems = [...items];
632
+ const [movedItem] = reorderedItems.splice(oldIndex, 1);
633
+ reorderedItems.splice(newIndex, 0, movedItem);
634
+ onReorder(reorderedItems);
635
+ }
636
+ }
637
+ onDragEnd?.(event);
638
+ }
639
+ }, [
640
+ onDragEnd,
641
+ onReorder,
642
+ items,
643
+ getRowId
644
+ ]);
645
+ const selectedRows = table.getSelectedRowModel().rows;
646
+ const columnCount = table.getHeaderGroups()[0].headers.length;
647
+ const isAnyRowSelected = selectedRows.length > 0 && !!ActionHeader;
648
+ const hasOnClick = !!onRowClick || !!onDoubleClick;
649
+ const tableElement = /* @__PURE__ */ jsxs("table", {
650
+ className: clsx("w-full", className),
651
+ ...listeners,
652
+ children: [/* @__PURE__ */ jsxs("thead", {
653
+ className: clsx(theadCva({})),
654
+ "data-is-sticky": isSticky || void 0,
655
+ children: [/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("th", {
656
+ ref: stickyRef,
657
+ className: "-mt-px block"
658
+ }) }), table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("tr", {
659
+ className: clsx(tableHeadRowCva({})),
660
+ children: headerGroup.headers.filter((header) => {
661
+ if (isAnyRowSelected && header.index > 0) return false;
662
+ return header.column.getIsVisible();
663
+ }).map((header_0, index) => {
664
+ const columnMeta = header_0.column.columnDef.meta ?? {};
665
+ return /* @__PURE__ */ jsx("th", {
666
+ colSpan: isAnyRowSelected ? columnCount : header_0.colSpan,
667
+ tabIndex: -1,
668
+ className: clsx(tableHeadDataCva({ hasRightBorder: index > 0 && showCellBorder }), columnMeta.headerClass, columnMeta.width),
669
+ children: isAnyRowSelected ? /* @__PURE__ */ jsx(ActionHeader, { table }) : /* @__PURE__ */ jsxs("button", {
670
+ type: "button",
671
+ "aria-label": "Sort column",
672
+ className: clsx("flex select-none items-center gap-1 text-text-default-1", header_0.column.getCanSort() ? "h-6 cursor-pointer rounded-xs px-1 hover:bg-elevation-fill-default-2" : "cursor-default", columnMeta.sortClass),
673
+ onClick: header_0.column.getToggleSortingHandler(),
674
+ children: [typeof header_0.column.columnDef.header === "function" ? flexRender(header_0.column.columnDef.header, header_0.getContext()) : /* @__PURE__ */ jsx(HeaderText, { children: header_0.column.columnDef.header }), {
675
+ asc: /* @__PURE__ */ jsx(ChevronUp, {
676
+ width: 18,
677
+ height: 18
678
+ }),
679
+ desc: /* @__PURE__ */ jsx(ChevronDown, {
680
+ width: 18,
681
+ height: 18
682
+ })
683
+ }[header_0.column.getIsSorted()] ?? null]
684
+ })
685
+ }, header_0.id);
686
+ })
687
+ }, headerGroup.id))]
688
+ }), /* @__PURE__ */ jsx("tbody", {
689
+ ref,
690
+ className: "relative",
691
+ children: enableDragDrop ? /* @__PURE__ */ jsx(SortableRows, {
692
+ items: dataIds,
693
+ children: table.getRowModel().rows.map((row_0) => /* @__PURE__ */ jsx(DraggableRow, {
694
+ id: row_0.id,
695
+ className: clsx(tableRowCva({ ...props })),
696
+ isClickable: hasOnClick || row_0.getCanSelect(),
697
+ isSelected: row_0.getIsSelected(),
698
+ onClick: () => {
699
+ if (onRowClick) {
700
+ onRowClick(row_0.original);
701
+ return;
702
+ }
703
+ if (row_0.getCanSelect()) row_0.toggleSelected();
704
+ },
705
+ onDoubleClick: () => onDoubleClick?.(row_0.original),
706
+ children: row_0.getVisibleCells().map((cell, cellIndex) => {
707
+ const columnMeta_0 = cell.column.columnDef.meta ?? {};
708
+ return /* @__PURE__ */ jsx("td", {
709
+ tabIndex: -1,
710
+ className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta_0.cellClass, columnMeta_0.width),
711
+ children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
712
+ }, cell.id);
713
+ })
714
+ }, row_0.id))
715
+ }) : table.getRowModel().rows.map((row_1) => {
716
+ return /* @__PURE__ */ jsx("tr", {
717
+ className: clsx(tableRowCva({ ...props })),
718
+ onClick: () => {
719
+ if (onRowClick) {
720
+ onRowClick(row_1.original);
721
+ return;
722
+ }
723
+ if (row_1.getCanSelect()) row_1.toggleSelected();
724
+ },
725
+ onDoubleClick: () => onDoubleClick?.(row_1.original),
726
+ "data-clickable": hasOnClick || row_1.getCanSelect() || void 0,
727
+ "data-selected": row_1.getIsSelected() || void 0,
728
+ children: row_1.getVisibleCells().map((cell_0, cellIndex_0) => {
729
+ const columnMeta_1 = cell_0.column.columnDef.meta ?? {};
730
+ return /* @__PURE__ */ jsx("td", {
731
+ tabIndex: -1,
732
+ className: clsx(tableDataCva({ hasRightBorder: cellIndex_0 > 0 && showCellBorder }), columnMeta_1.cellClass, columnMeta_1.width),
733
+ children: renderCell(cell_0.column.columnDef.cell, CustomCellContext(cell_0.getContext()))
734
+ }, cell_0.id);
735
+ })
736
+ }, row_1.id);
737
+ })
738
+ })]
739
+ });
740
+ if (enableDragDrop) return /* @__PURE__ */ jsx(Suspense, {
741
+ fallback: null,
742
+ children: /* @__PURE__ */ jsx(DndProvider, {
743
+ onDragEnd: handleDragEnd,
744
+ children: tableElement
745
+ })
746
+ });
747
+ return tableElement;
748
+ };
749
+ //#endregion
750
+ //#region src/components/table/ColumnConfig.tsx
751
+ const VisibilityCell = (t0) => {
752
+ const $ = c(7);
753
+ const { original, onToggle } = t0;
754
+ let t1;
755
+ if ($[0] !== onToggle || $[1] !== original.id) {
756
+ t1 = () => onToggle(original.id);
757
+ $[0] = onToggle;
758
+ $[1] = original.id;
759
+ $[2] = t1;
760
+ } else t1 = $[2];
761
+ const t2 = original.label;
762
+ let t3;
763
+ if ($[3] !== original.visible || $[4] !== t1 || $[5] !== t2) {
764
+ t3 = /* @__PURE__ */ jsx(Checkbox, {
765
+ isSelected: original.visible,
766
+ onChange: t1,
767
+ hideLabel: true,
768
+ children: t2
769
+ });
770
+ $[3] = original.visible;
771
+ $[4] = t1;
772
+ $[5] = t2;
773
+ $[6] = t3;
774
+ } else t3 = $[6];
775
+ return t3;
776
+ };
777
+ const getColumns = (t, handleToggleVisibility) => [{
778
+ id: "name",
779
+ header: t(($) => $.ui.table.column, { ns: "ui" }),
780
+ meta: { width: "flex-1" },
781
+ accessorKey: "label"
782
+ }, {
783
+ id: "visible",
784
+ header: t(($) => $.ui.table.show, { ns: "ui" }),
785
+ meta: { width: "w-20" },
786
+ cell: ({ original }) => /* @__PURE__ */ jsx(VisibilityCell, {
787
+ original,
788
+ onToggle: handleToggleVisibility
789
+ })
790
+ }];
791
+ function ColumnConfigModal(t0) {
792
+ const $ = c(27);
793
+ const { isOpen, onClose, configColumns, visibleColumns, onVisibilityChange, onOrderChange } = t0;
794
+ const { t } = useTranslation("ui");
795
+ let t1;
796
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
797
+ t1 = [];
798
+ $[0] = t1;
799
+ } else t1 = $[0];
800
+ const [data, setData] = useState(t1);
801
+ let t2;
802
+ let t3;
803
+ if ($[1] !== configColumns || $[2] !== visibleColumns) {
804
+ t2 = () => {
805
+ setData(configColumns.map((column) => {
806
+ const columnId = column.id ?? column.accessorKey;
807
+ return {
808
+ id: columnId,
809
+ label: column.header,
810
+ visible: visibleColumns?.[columnId] ?? true
811
+ };
812
+ }));
813
+ };
814
+ t3 = [configColumns, visibleColumns];
815
+ $[1] = configColumns;
816
+ $[2] = visibleColumns;
817
+ $[3] = t2;
818
+ $[4] = t3;
819
+ } else {
820
+ t2 = $[3];
821
+ t3 = $[4];
822
+ }
823
+ useEffect(t2, t3);
824
+ let t4;
825
+ if ($[5] !== onVisibilityChange || $[6] !== visibleColumns) {
826
+ t4 = (columnId_0) => {
827
+ const newVisible = {
828
+ ...visibleColumns,
829
+ [columnId_0]: !visibleColumns[columnId_0]
830
+ };
831
+ onVisibilityChange(newVisible);
832
+ };
833
+ $[5] = onVisibilityChange;
834
+ $[6] = visibleColumns;
835
+ $[7] = t4;
836
+ } else t4 = $[7];
837
+ const handleToggleVisibility = t4;
838
+ let t5;
839
+ if ($[8] !== handleToggleVisibility) {
840
+ t5 = (translateFn) => getColumns(translateFn, handleToggleVisibility);
841
+ $[8] = handleToggleVisibility;
842
+ $[9] = t5;
843
+ } else t5 = $[9];
844
+ const columns = useTranslationMemo(t5);
845
+ let t6;
846
+ if ($[10] !== onOrderChange) {
847
+ t6 = (reorderedItems) => {
848
+ setData(reorderedItems);
849
+ onOrderChange(reorderedItems.map(_temp$2));
850
+ };
851
+ $[10] = onOrderChange;
852
+ $[11] = t6;
853
+ } else t6 = $[11];
854
+ const handleReorder = t6;
855
+ if (!isOpen) return null;
856
+ let t7;
857
+ if ($[12] !== t) {
858
+ t7 = t(_temp2$2);
859
+ $[12] = t;
860
+ $[13] = t7;
861
+ } else t7 = $[13];
862
+ let t8;
863
+ if ($[14] !== t7) {
864
+ t8 = /* @__PURE__ */ jsx(Typography, {
865
+ as: "h2",
866
+ variant: "prominent-1",
867
+ size: "title-5",
868
+ children: t7
869
+ });
870
+ $[14] = t7;
871
+ $[15] = t8;
872
+ } else t8 = $[15];
873
+ let t9;
874
+ if ($[16] !== columns || $[17] !== data || $[18] !== handleReorder) {
875
+ t9 = /* @__PURE__ */ jsx("div", {
876
+ className: "max-h-96 overflow-y-auto",
877
+ children: /* @__PURE__ */ jsx(Table, {
878
+ items: data,
879
+ columns,
880
+ showCellBorder: true,
881
+ className: "w-full",
882
+ enableDragDrop: true,
883
+ getRowId: _temp3,
884
+ onReorder: handleReorder
885
+ })
886
+ });
887
+ $[16] = columns;
888
+ $[17] = data;
889
+ $[18] = handleReorder;
890
+ $[19] = t9;
891
+ } else t9 = $[19];
892
+ let t10;
893
+ if ($[20] !== t8 || $[21] !== t9) {
894
+ t10 = /* @__PURE__ */ jsxs("div", {
895
+ className: "flex flex-col gap-2 p-4",
896
+ children: [t8, t9]
897
+ });
898
+ $[20] = t8;
899
+ $[21] = t9;
900
+ $[22] = t10;
901
+ } else t10 = $[22];
902
+ let t11;
903
+ if ($[23] !== isOpen || $[24] !== onClose || $[25] !== t10) {
904
+ t11 = /* @__PURE__ */ jsx(Dialog, {
905
+ isOpen,
906
+ onClose,
907
+ showCloseIcon: true,
908
+ children: t10
909
+ });
910
+ $[23] = isOpen;
911
+ $[24] = onClose;
912
+ $[25] = t10;
913
+ $[26] = t11;
914
+ } else t11 = $[26];
915
+ return t11;
916
+ }
917
+ function _temp3(row) {
918
+ return row.id;
919
+ }
920
+ function _temp2$2($) {
921
+ return $.ui.table.configureColumns;
922
+ }
923
+ function _temp$2(item) {
924
+ return item.id;
925
+ }
926
+ //#endregion
927
+ //#region src/components/table/InfiniteTable.tsx
928
+ const InfiniteTable = (t0) => {
929
+ const $ = c(20);
930
+ let fetchNextPage;
931
+ let hasNextPage;
932
+ let rest;
933
+ let t1;
934
+ if ($[0] !== t0) {
935
+ ({hasNextPage, isFetchingNextPage: t1, fetchNextPage, ...rest} = t0);
936
+ $[0] = t0;
937
+ $[1] = fetchNextPage;
938
+ $[2] = hasNextPage;
939
+ $[3] = rest;
940
+ $[4] = t1;
941
+ } else {
942
+ fetchNextPage = $[1];
943
+ hasNextPage = $[2];
944
+ rest = $[3];
945
+ t1 = $[4];
946
+ }
947
+ const isFetchingNextPage = t1 === void 0 ? false : t1;
948
+ let t2;
949
+ if ($[5] !== fetchNextPage || $[6] !== hasNextPage || $[7] !== isFetchingNextPage) {
950
+ t2 = () => {
951
+ if (!isFetchingNextPage && hasNextPage) fetchNextPage();
952
+ };
953
+ $[5] = fetchNextPage;
954
+ $[6] = hasNextPage;
955
+ $[7] = isFetchingNextPage;
956
+ $[8] = t2;
957
+ } else t2 = $[8];
958
+ const handleLoadMore = t2;
959
+ let t3;
960
+ if ($[9] !== handleLoadMore) {
961
+ t3 = {
962
+ onIntersection: handleLoadMore,
963
+ rootMargin: "100px"
964
+ };
965
+ $[9] = handleLoadMore;
966
+ $[10] = t3;
967
+ } else t3 = $[10];
968
+ const { ref } = useIntersectionObserver(t3);
969
+ let t4;
970
+ if ($[11] !== rest) {
971
+ t4 = /* @__PURE__ */ jsx(Table, { ...rest });
972
+ $[11] = rest;
973
+ $[12] = t4;
974
+ } else t4 = $[12];
975
+ let t5;
976
+ if ($[13] !== hasNextPage || $[14] !== isFetchingNextPage || $[15] !== ref) {
977
+ t5 = (hasNextPage || isFetchingNextPage) && /* @__PURE__ */ jsx("div", {
978
+ ref,
979
+ className: "flex justify-center py-4",
980
+ children: /* @__PURE__ */ jsx(Spinner, {})
981
+ });
982
+ $[13] = hasNextPage;
983
+ $[14] = isFetchingNextPage;
984
+ $[15] = ref;
985
+ $[16] = t5;
986
+ } else t5 = $[16];
987
+ let t6;
988
+ if ($[17] !== t4 || $[18] !== t5) {
989
+ t6 = /* @__PURE__ */ jsxs("div", {
990
+ className: "flex flex-col",
991
+ children: [t4, t5]
992
+ });
993
+ $[17] = t4;
994
+ $[18] = t5;
995
+ $[19] = t6;
996
+ } else t6 = $[19];
997
+ return t6;
998
+ };
999
+ //#endregion
1000
+ //#region src/components/table/PaginatedTable.tsx
1001
+ const PaginatedTable = (t0) => {
1002
+ const $ = c(24);
1003
+ let items;
1004
+ let pagination;
1005
+ let rest;
1006
+ let setPagination;
1007
+ let totalItems;
1008
+ if ($[0] !== t0) {
1009
+ ({pagination, setPagination, items, totalItems, ...rest} = t0);
1010
+ $[0] = t0;
1011
+ $[1] = items;
1012
+ $[2] = pagination;
1013
+ $[3] = rest;
1014
+ $[4] = setPagination;
1015
+ $[5] = totalItems;
1016
+ } else {
1017
+ items = $[1];
1018
+ pagination = $[2];
1019
+ rest = $[3];
1020
+ setPagination = $[4];
1021
+ totalItems = $[5];
1022
+ }
1023
+ let t1;
1024
+ if ($[6] !== items) {
1025
+ t1 = items ?? [];
1026
+ $[6] = items;
1027
+ $[7] = t1;
1028
+ } else t1 = $[7];
1029
+ let t2;
1030
+ if ($[8] !== rest || $[9] !== t1) {
1031
+ t2 = /* @__PURE__ */ jsx(Table, {
1032
+ ...rest,
1033
+ items: t1
1034
+ });
1035
+ $[8] = rest;
1036
+ $[9] = t1;
1037
+ $[10] = t2;
1038
+ } else t2 = $[10];
1039
+ const t3 = totalItems ?? 0;
1040
+ let t4;
1041
+ let t5;
1042
+ if ($[11] !== pagination || $[12] !== setPagination) {
1043
+ t4 = (page) => setPagination({
1044
+ ...pagination,
1045
+ pageIndex: page
1046
+ });
1047
+ t5 = (pageSize) => setPagination({
1048
+ ...pagination,
1049
+ pageSize,
1050
+ pageIndex: 1
1051
+ });
1052
+ $[11] = pagination;
1053
+ $[12] = setPagination;
1054
+ $[13] = t4;
1055
+ $[14] = t5;
1056
+ } else {
1057
+ t4 = $[13];
1058
+ t5 = $[14];
1059
+ }
1060
+ let t6;
1061
+ if ($[15] !== pagination.pageIndex || $[16] !== pagination.pageSize || $[17] !== t3 || $[18] !== t4 || $[19] !== t5) {
1062
+ t6 = /* @__PURE__ */ jsx(Pagination, {
1063
+ page: pagination.pageIndex,
1064
+ pageSize: pagination.pageSize,
1065
+ totalItems: t3,
1066
+ onPageChange: t4,
1067
+ onPageSizeChange: t5
1068
+ });
1069
+ $[15] = pagination.pageIndex;
1070
+ $[16] = pagination.pageSize;
1071
+ $[17] = t3;
1072
+ $[18] = t4;
1073
+ $[19] = t5;
1074
+ $[20] = t6;
1075
+ } else t6 = $[20];
1076
+ let t7;
1077
+ if ($[21] !== t2 || $[22] !== t6) {
1078
+ t7 = /* @__PURE__ */ jsxs("div", {
1079
+ className: "flex flex-col gap-4",
1080
+ children: [t2, t6]
1081
+ });
1082
+ $[21] = t2;
1083
+ $[22] = t6;
1084
+ $[23] = t7;
1085
+ } else t7 = $[23];
1086
+ return t7;
1087
+ };
1088
+ //#endregion
1089
+ //#region src/helpers/dynamicColumns.ts
1090
+ const DEFAULT_NAMESPACE = "dynamicColumns";
1091
+ const FORMAT_MAP = {
1092
+ datetime: (value) => DateUtils.formatDate(new Date(value)),
1093
+ dateRange: (value) => {
1094
+ return `${DateUtils.formatDate(new Date(value.start))} - ${DateUtils.formatDate(new Date(value.end))}`;
1095
+ },
1096
+ enum: (value) => StringUtils.capitalize(value),
1097
+ number: (value) => IntlUtils.getNumberFormatter(i18next.language).format(value),
1098
+ string: (value) => String(value),
1099
+ boolean: (value) => {
1100
+ const key = `${DEFAULT_NAMESPACE}.${value ? "yes" : "no"}`;
1101
+ if (i18next.exists(key)) return String(i18next.t(key));
1102
+ return value ? "Yes" : "No";
1103
+ }
1104
+ };
1105
+ const ZOD_TYPE_FORMAT_MAP = [
1106
+ [z.ZodEnum, FORMAT_MAP.enum],
1107
+ [z.ZodNumber, FORMAT_MAP.number],
1108
+ [z.ZodString, FORMAT_MAP.string],
1109
+ [z.ZodBoolean, FORMAT_MAP.boolean],
1110
+ [z.ZodISODateTime, FORMAT_MAP.datetime]
1111
+ ];
1112
+ const configValueToColumnDef = (value) => {
1113
+ if (typeof value === "function" || typeof value === "string") return { cell: value };
1114
+ if (typeof value === "boolean" || value === void 0) return {};
1115
+ return value;
1116
+ };
1117
+ const convertEntriesToColumnDefs = (entries) => {
1118
+ return entries.map(([key, value]) => [key, configValueToColumnDef(value)]);
1119
+ };
1120
+ const customConfigValueToColumnDef = (value) => {
1121
+ if (typeof value === "string") return {
1122
+ accessorKey: value,
1123
+ cell: value
1124
+ };
1125
+ if (typeof value === "function") return { cell: value };
1126
+ return value;
1127
+ };
1128
+ const convertCustomEntriesToColumnDefs = (entries) => {
1129
+ return entries.map(([key, value]) => [key, customConfigValueToColumnDef(value)]);
1130
+ };
1131
+ const excludeEntries = (entries) => {
1132
+ return entries.filter(([, value]) => value !== false && value !== void 0);
1133
+ };
1134
+ const sortColumns = (columns, orderKeys) => {
1135
+ if (!orderKeys) return columns;
1136
+ const wildcardIndex = orderKeys.indexOf("*");
1137
+ if (wildcardIndex === -1) return columns.sort((columnA, columnB) => {
1138
+ const idA = columnA.id;
1139
+ const idB = columnB.id;
1140
+ const orderMap = new Map(orderKeys.map((key, index) => [String(key), index]));
1141
+ const orderA = orderMap.get(String(idA));
1142
+ const orderB = orderMap.get(String(idB));
1143
+ if (orderA !== void 0 && orderB !== void 0) return orderA - orderB;
1144
+ if (orderA !== void 0 && orderB === void 0) return -1;
1145
+ if (orderA === void 0 && orderB !== void 0) return 1;
1146
+ return 0;
1147
+ });
1148
+ const beforeWildcard = orderKeys.slice(0, wildcardIndex);
1149
+ const afterWildcard = orderKeys.slice(wildcardIndex + 1);
1150
+ const beforeMap = new Map(beforeWildcard.map((key, index) => [String(key), index]));
1151
+ const afterMap = new Map(afterWildcard.map((key, index) => [String(key), index]));
1152
+ const before = [];
1153
+ const middle = [];
1154
+ const after = [];
1155
+ columns.forEach((column) => {
1156
+ const id = String(column.id);
1157
+ if (beforeMap.has(id)) before.push(column);
1158
+ else if (afterMap.has(id)) after.push(column);
1159
+ else middle.push(column);
1160
+ });
1161
+ before.sort((a, b) => beforeMap.get(String(a.id)) - beforeMap.get(String(b.id)));
1162
+ after.sort((a, b) => afterMap.get(String(a.id)) - afterMap.get(String(b.id)));
1163
+ return [
1164
+ ...before,
1165
+ ...middle,
1166
+ ...after
1167
+ ];
1168
+ };
1169
+ const formatValueByType = (value, schemaType) => {
1170
+ if (value === null || value === void 0) return null;
1171
+ if (ZodUtils.isDateRange(schemaType)) return FORMAT_MAP.dateRange(value);
1172
+ const unwrappedType = ZodUtils.unwrapZodType(schemaType);
1173
+ if (unwrappedType instanceof z.ZodArray) {
1174
+ if (!Array.isArray(value)) return null;
1175
+ const elementType = unwrappedType.element;
1176
+ return value.map((element) => formatValueByType(element, elementType)).join(", ");
1177
+ }
1178
+ const formatFunction = ZOD_TYPE_FORMAT_MAP.find(([zodType]) => unwrappedType instanceof zodType)?.[1];
1179
+ if (formatFunction) return formatFunction(value);
1180
+ return String(value);
1181
+ };
1182
+ const getNestedValue = (obj, path) => {
1183
+ return path.split(".").reduce((current, key) => {
1184
+ return current && typeof current === "object" ? current[key] : void 0;
1185
+ }, obj);
1186
+ };
1187
+ const getKeyType = (schema, key) => {
1188
+ const pathParts = key.split(".");
1189
+ let currentType = schema.shape[pathParts[0]];
1190
+ for (let i = 1; i < pathParts.length; i++) if (currentType instanceof z.ZodObject) currentType = currentType.shape[pathParts[i]];
1191
+ else {
1192
+ currentType = schema.shape[key];
1193
+ break;
1194
+ }
1195
+ return currentType;
1196
+ };
1197
+ const getCellFunction = (schema, schemaKey, columnDef, options) => {
1198
+ const { cell } = columnDef;
1199
+ if (typeof cell === "function") return cell;
1200
+ return ({ data }) => {
1201
+ const key = typeof cell === "string" ? cell : schemaKey;
1202
+ const value = getNestedValue(data, key);
1203
+ const keyType = getKeyType(schema, key);
1204
+ let finalValue = !options.disableFormatting?.includes(key) ? formatValueByType(value, keyType) : value;
1205
+ if (options.emptyValue && !finalValue) finalValue = options.emptyValue;
1206
+ if (options.globalWrapper) return options.globalWrapper(finalValue);
1207
+ return finalValue;
1208
+ };
1209
+ };
1210
+ const normalizeSortable = (sortable) => {
1211
+ if (!sortable) return;
1212
+ if (Array.isArray(sortable)) return sortable;
1213
+ if (sortable instanceof z.ZodEnum) return Object.values(sortable.enum);
1214
+ };
1215
+ const getDefaultColumnHeader = (key, options) => {
1216
+ const localeKey = `${options.namespace ?? DEFAULT_NAMESPACE}.${key}`;
1217
+ if (i18next.exists(localeKey)) return String(i18next.t(localeKey));
1218
+ return StringUtils.capitalize(key);
1219
+ };
1220
+ const overridePresetColumnsHeaders = (presetColumns, options) => {
1221
+ const namespace = options.namespace ?? DEFAULT_NAMESPACE;
1222
+ return presetColumns.map((columnDef) => {
1223
+ const localeKey = `${namespace}.${columnDef.id}`;
1224
+ const header = i18next.exists(localeKey) ? i18next.t(localeKey) : columnDef.header;
1225
+ return {
1226
+ ...columnDef,
1227
+ header: typeof header === "string" ? header : columnDef.header
1228
+ };
1229
+ });
1230
+ };
1231
+ const populateColumnDef = (schema, key, columnDef, options, sortableKeys) => {
1232
+ const id = columnDef.id ?? key;
1233
+ const enableSorting = columnDef.enableSorting ?? sortableKeys?.includes(id) ?? false;
1234
+ const header = columnDef.header ?? getDefaultColumnHeader(key, options);
1235
+ const cell = getCellFunction(schema, key, columnDef, options);
1236
+ return {
1237
+ ...columnDef,
1238
+ id,
1239
+ accessorKey: key,
1240
+ meta: {
1241
+ width: "flex-1",
1242
+ ...options.globalMeta,
1243
+ ...columnDef.meta
1244
+ },
1245
+ header,
1246
+ enableSorting,
1247
+ cell
1248
+ };
1249
+ };
1250
+ const populateCustomColumnDef = (schema, key, columnDef, options, sortableKeys) => {
1251
+ const id = columnDef.id ?? key;
1252
+ const accessorKey = columnDef.accessorKey ?? id;
1253
+ const enableSorting = columnDef.enableSorting ?? sortableKeys?.includes(id) ?? false;
1254
+ const header = columnDef.header ?? getDefaultColumnHeader(key, options);
1255
+ const cell = getCellFunction(schema, key, columnDef, options);
1256
+ return {
1257
+ ...columnDef,
1258
+ id,
1259
+ accessorKey,
1260
+ meta: {
1261
+ width: "flex-1",
1262
+ ...options.globalMeta,
1263
+ ...columnDef.meta
1264
+ },
1265
+ header,
1266
+ enableSorting,
1267
+ cell
1268
+ };
1269
+ };
1270
+ const addMissingSchemaFields = (schema, existingColumns, options, sortableKeys) => {
1271
+ const schemaFields = getAllSchemaKeys(schema);
1272
+ const definedFields = new Set(existingColumns.map((col) => col.id));
1273
+ const additionalColumns = schemaFields.filter((field) => !definedFields.has(field)).map((field) => {
1274
+ return populateColumnDef(schema, field, {}, options, sortableKeys);
1275
+ });
1276
+ return [...existingColumns, ...additionalColumns];
1277
+ };
1278
+ const removeOverriddenPresetColumns = (presetColumns, options) => {
1279
+ if (presetColumns.length === 0) return presetColumns;
1280
+ const usedColumnsIds = Object.entries(options.columns ?? {}).map(([key, value]) => {
1281
+ return value.id ?? key;
1282
+ });
1283
+ const usedCustomColumnsIds = Object.entries(options.customColumns ?? {}).map(([key, value]) => {
1284
+ return value.id ?? key;
1285
+ });
1286
+ const usedIds = /* @__PURE__ */ new Set([...usedColumnsIds, ...usedCustomColumnsIds]);
1287
+ return presetColumns.filter((column) => {
1288
+ if (!column.id) return true;
1289
+ return !usedIds.has(column.id);
1290
+ });
1291
+ };
1292
+ const getAllSchemaKeys = (schema) => {
1293
+ const keys = [];
1294
+ const { shape } = schema;
1295
+ const traverse = (obj, prefix = "") => {
1296
+ Object.entries(obj).forEach(([key, value]) => {
1297
+ const currentPath = prefix ? `${prefix}.${key}` : key;
1298
+ keys.push(currentPath);
1299
+ if (value instanceof z.ZodObject) traverse(value.shape, currentPath);
1300
+ });
1301
+ };
1302
+ traverse(shape);
1303
+ return keys;
1304
+ };
1305
+ const validateCustomColumnKeys = (schema, customColumnKeys) => {
1306
+ const schemaKeys = getAllSchemaKeys(schema);
1307
+ const invalidCustomColumnKeys = customColumnKeys.filter((key) => schemaKeys.includes(key));
1308
+ if (invalidCustomColumnKeys.length > 0) throw new Error(`Invalid custom column keys: [${invalidCustomColumnKeys.join(", ")}]. Custom column keys cannot be part of the schema. Define these columns in the "columns" property instead.`);
1309
+ };
1310
+ const validateOptionKeyArray = (usedKeys, optionKeys, optionName) => {
1311
+ if (!optionKeys) return;
1312
+ const extraUnusedKeys = optionKeys.filter((key) => !usedKeys.has(key));
1313
+ if (extraUnusedKeys.length > 0) throw new Error(`Found unnecessary keys in "${optionName}": [${extraUnusedKeys.join(", ")}].\n\nAll available options are: [${Array.from(usedKeys).join(", ")}].`);
1314
+ };
1315
+ const validateParams = (schema, presetColumns, options) => {
1316
+ const { columns, customColumns, sortable, order, disableFormatting, includeAll } = options;
1317
+ const columnKeys = Object.keys(columns ?? {});
1318
+ const customColumnKeys = customColumns ? Object.keys(customColumns) : [];
1319
+ const usedKeys = /* @__PURE__ */ new Set([...columnKeys, ...customColumnKeys]);
1320
+ const presetKeys = presetColumns.map((column) => column.id).filter((id) => id !== void 0);
1321
+ const schemaKeys = includeAll ? getAllSchemaKeys(schema) : [];
1322
+ const allKeys = /* @__PURE__ */ new Set([
1323
+ ...presetKeys,
1324
+ ...usedKeys,
1325
+ ...schemaKeys,
1326
+ "*"
1327
+ ]);
1328
+ if (customColumns) validateCustomColumnKeys(schema, customColumnKeys);
1329
+ if (Array.isArray(sortable)) validateOptionKeyArray(usedKeys, sortable, "sortable");
1330
+ validateOptionKeyArray(allKeys, order, "order");
1331
+ validateOptionKeyArray(usedKeys, disableFormatting, "disableFormatting");
1332
+ };
1333
+ const dynamicColumns = ({ schema, preset = [], options }) => {
1334
+ validateParams(schema, preset, options);
1335
+ const sortableKeys = normalizeSortable(options.sortable);
1336
+ let entries = Object.entries(options.columns ?? {});
1337
+ entries = excludeEntries(entries);
1338
+ entries = convertEntriesToColumnDefs(entries);
1339
+ const columns = entries.map(([key, value]) => {
1340
+ return populateColumnDef(schema, key, value, options, sortableKeys);
1341
+ });
1342
+ let customEntries = Object.entries(options.customColumns ?? {});
1343
+ customEntries = convertCustomEntriesToColumnDefs(customEntries);
1344
+ const customColumns = customEntries.map(([key, value]) => {
1345
+ return populateCustomColumnDef(schema, key, value, options, sortableKeys);
1346
+ });
1347
+ let presetColumns = removeOverriddenPresetColumns(preset, options);
1348
+ if (options.overridePresetLocales) presetColumns = overridePresetColumnsHeaders(presetColumns, options);
1349
+ const mergedColumns = [
1350
+ ...presetColumns,
1351
+ ...columns,
1352
+ ...customColumns
1353
+ ];
1354
+ const allColumns = options.includeAll ? addMissingSchemaFields(schema, mergedColumns, options, sortableKeys) : mergedColumns;
1355
+ return sortColumns(allColumns, options.order);
1356
+ };
1357
+ //#endregion
1358
+ //#region src/hooks/usePagination.ts
1359
+ const DEFAULT_STATE = {
1360
+ pageIndex: 1,
1361
+ pageSize: 20
1362
+ };
1363
+ function usePagination(defaultPagination) {
1364
+ const $ = c(12);
1365
+ const { replace, searchParams } = UIRouter.useUIRouter();
1366
+ let t0;
1367
+ if ($[0] !== defaultPagination || $[1] !== searchParams) {
1368
+ t0 = defaultPagination ?? {
1369
+ pageIndex: searchParams.has("page") ? Number.parseInt(searchParams.get("page") ?? "", 10) : DEFAULT_STATE.pageIndex,
1370
+ pageSize: searchParams.has("size") ? Number.parseInt(searchParams.get("size") ?? "", 10) : DEFAULT_STATE.pageSize
1371
+ };
1372
+ $[0] = defaultPagination;
1373
+ $[1] = searchParams;
1374
+ $[2] = t0;
1375
+ } else t0 = $[2];
1376
+ const [pagination, setPagination] = useState(t0);
1377
+ let t1;
1378
+ if ($[3] !== pagination.pageIndex || $[4] !== pagination.pageSize || $[5] !== replace || $[6] !== searchParams) {
1379
+ t1 = () => {
1380
+ const params = new URLSearchParams(searchParams);
1381
+ params.delete("size");
1382
+ params.delete("page");
1383
+ if (pagination.pageSize !== DEFAULT_STATE.pageSize) params.set("size", pagination.pageSize.toString());
1384
+ if (pagination.pageIndex !== DEFAULT_STATE.pageIndex) params.set("page", pagination.pageIndex.toString());
1385
+ if (params.toString() === searchParams.toString()) return;
1386
+ replace(".", RoutingUtils.toRouterSearch(params));
1387
+ };
1388
+ $[3] = pagination.pageIndex;
1389
+ $[4] = pagination.pageSize;
1390
+ $[5] = replace;
1391
+ $[6] = searchParams;
1392
+ $[7] = t1;
1393
+ } else t1 = $[7];
1394
+ let t2;
1395
+ if ($[8] !== pagination) {
1396
+ t2 = [pagination];
1397
+ $[8] = pagination;
1398
+ $[9] = t2;
1399
+ } else t2 = $[9];
1400
+ useEffect(t1, t2);
1401
+ let t3;
1402
+ if ($[10] !== pagination) {
1403
+ t3 = {
1404
+ pagination,
1405
+ setPagination,
1406
+ pageIndex: pagination.pageIndex,
1407
+ pageSize: pagination.pageSize
1408
+ };
1409
+ $[10] = pagination;
1410
+ $[11] = t3;
1411
+ } else t3 = $[11];
1412
+ return t3;
1413
+ }
1414
+ //#endregion
1415
+ //#region src/hooks/useSorting.ts
1416
+ function useSorting(defaultSorting, t0) {
1417
+ const $ = c(16);
1418
+ const prefix = t0 === void 0 ? "" : t0;
1419
+ const { replace, searchParams } = UIRouter.useUIRouter();
1420
+ let t1;
1421
+ if ($[0] !== defaultSorting || $[1] !== prefix || $[2] !== searchParams) {
1422
+ t1 = defaultSorting ?? searchParams.get(`order${prefix && `-${prefix}`}`)?.split(",").map(_temp$1) ?? [];
1423
+ $[0] = defaultSorting;
1424
+ $[1] = prefix;
1425
+ $[2] = searchParams;
1426
+ $[3] = t1;
1427
+ } else t1 = $[3];
1428
+ const [sorting, setSorting] = useState(t1);
1429
+ let t2;
1430
+ if ($[4] !== sorting) {
1431
+ t2 = sorting.map(_temp2$1).join(",");
1432
+ $[4] = sorting;
1433
+ $[5] = t2;
1434
+ } else t2 = $[5];
1435
+ const order = t2;
1436
+ let t3;
1437
+ if ($[6] !== order || $[7] !== prefix || $[8] !== replace || $[9] !== searchParams) {
1438
+ t3 = () => {
1439
+ const params = new URLSearchParams(searchParams);
1440
+ const orderKey = prefix ? `order-${prefix}` : "order";
1441
+ params.delete(orderKey);
1442
+ if (order) params.set(orderKey, order);
1443
+ if (params.toString() === searchParams.toString()) return;
1444
+ replace(".", RoutingUtils.toRouterSearch(params));
1445
+ };
1446
+ $[6] = order;
1447
+ $[7] = prefix;
1448
+ $[8] = replace;
1449
+ $[9] = searchParams;
1450
+ $[10] = t3;
1451
+ } else t3 = $[10];
1452
+ let t4;
1453
+ if ($[11] !== order) {
1454
+ t4 = [order];
1455
+ $[11] = order;
1456
+ $[12] = t4;
1457
+ } else t4 = $[12];
1458
+ useEffect(t3, t4);
1459
+ let t5;
1460
+ if ($[13] !== order || $[14] !== sorting) {
1461
+ t5 = {
1462
+ sorting,
1463
+ setSorting,
1464
+ order
1465
+ };
1466
+ $[13] = order;
1467
+ $[14] = sorting;
1468
+ $[15] = t5;
1469
+ } else t5 = $[15];
1470
+ return t5;
1471
+ }
1472
+ function _temp2$1(field) {
1473
+ return `${field.desc ? "-" : "+"}${field.id}`;
1474
+ }
1475
+ function _temp$1(item) {
1476
+ if (item.startsWith("-")) return {
1477
+ id: item.slice(1),
1478
+ desc: true
1479
+ };
1480
+ if (item.startsWith("+")) return {
1481
+ id: item.slice(1),
1482
+ desc: false
1483
+ };
1484
+ return {
1485
+ id: item,
1486
+ desc: false
1487
+ };
1488
+ }
1489
+ //#endregion
1490
+ //#region src/hooks/useTableColumnConfig.ts
1491
+ function sortByKeyOrder(data, orderedKeys = []) {
1492
+ return [...data].sort((a, b) => {
1493
+ return orderedKeys.findIndex((key) => key === (a.id ?? a.accessorKey)) - orderedKeys.findIndex((key) => key === (b.id ?? b.accessorKey));
1494
+ });
1495
+ }
1496
+ function useTableColumnConfig(defaultColumns, t0) {
1497
+ const $ = c(31);
1498
+ let t1;
1499
+ if ($[0] !== t0) {
1500
+ t1 = t0 === void 0 ? {} : t0;
1501
+ $[0] = t0;
1502
+ $[1] = t1;
1503
+ } else t1 = $[1];
1504
+ const options = t1;
1505
+ let t2;
1506
+ if ($[2] !== defaultColumns) {
1507
+ t2 = () => defaultColumns.reduce(_temp, {});
1508
+ $[2] = defaultColumns;
1509
+ $[3] = t2;
1510
+ } else t2 = $[3];
1511
+ const [internalVisibleColumns, setInternalVisibleColumns] = useState(t2);
1512
+ let t3;
1513
+ if ($[4] !== defaultColumns) {
1514
+ t3 = () => defaultColumns.map(_temp2);
1515
+ $[4] = defaultColumns;
1516
+ $[5] = t3;
1517
+ } else t3 = $[5];
1518
+ const [internalColumnOrder, setInternalColumnOrder] = useState(t3);
1519
+ let t4;
1520
+ let t5;
1521
+ if ($[6] !== options.visibleColumns) {
1522
+ t4 = () => {
1523
+ if (options.visibleColumns) setInternalVisibleColumns(options.visibleColumns);
1524
+ };
1525
+ t5 = [options.visibleColumns];
1526
+ $[6] = options.visibleColumns;
1527
+ $[7] = t4;
1528
+ $[8] = t5;
1529
+ } else {
1530
+ t4 = $[7];
1531
+ t5 = $[8];
1532
+ }
1533
+ useEffect(t4, t5);
1534
+ let t6;
1535
+ let t7;
1536
+ if ($[9] !== options.columnOrder) {
1537
+ t6 = () => {
1538
+ if (options.columnOrder) setInternalColumnOrder(options.columnOrder);
1539
+ };
1540
+ t7 = [options.columnOrder];
1541
+ $[9] = options.columnOrder;
1542
+ $[10] = t6;
1543
+ $[11] = t7;
1544
+ } else {
1545
+ t6 = $[10];
1546
+ t7 = $[11];
1547
+ }
1548
+ useEffect(t6, t7);
1549
+ let t8;
1550
+ if ($[12] !== options) {
1551
+ t8 = (value) => {
1552
+ setInternalVisibleColumns(value);
1553
+ options?.onVisibilityChange?.(value);
1554
+ };
1555
+ $[12] = options;
1556
+ $[13] = t8;
1557
+ } else t8 = $[13];
1558
+ const handleVisibilityChange = t8;
1559
+ let t9;
1560
+ if ($[14] !== options) {
1561
+ t9 = (value_0) => {
1562
+ setInternalColumnOrder(value_0);
1563
+ options?.onOrderChange?.(value_0);
1564
+ };
1565
+ $[14] = options;
1566
+ $[15] = t9;
1567
+ } else t9 = $[15];
1568
+ const handleOrderChange = t9;
1569
+ let t10;
1570
+ if ($[16] !== defaultColumns || $[17] !== internalColumnOrder) {
1571
+ t10 = sortByKeyOrder(defaultColumns, internalColumnOrder);
1572
+ $[16] = defaultColumns;
1573
+ $[17] = internalColumnOrder;
1574
+ $[18] = t10;
1575
+ } else t10 = $[18];
1576
+ const configColumns = t10;
1577
+ let t11;
1578
+ if ($[19] !== configColumns || $[20] !== internalVisibleColumns) {
1579
+ let t12;
1580
+ if ($[22] !== internalVisibleColumns) {
1581
+ t12 = (col_1) => internalVisibleColumns?.[col_1.id ?? col_1.accessorKey] ?? true;
1582
+ $[22] = internalVisibleColumns;
1583
+ $[23] = t12;
1584
+ } else t12 = $[23];
1585
+ t11 = configColumns.filter(t12);
1586
+ $[19] = configColumns;
1587
+ $[20] = internalVisibleColumns;
1588
+ $[21] = t11;
1589
+ } else t11 = $[21];
1590
+ const columns = t11;
1591
+ let t12;
1592
+ if ($[24] !== columns || $[25] !== configColumns || $[26] !== handleOrderChange || $[27] !== handleVisibilityChange || $[28] !== internalColumnOrder || $[29] !== internalVisibleColumns) {
1593
+ t12 = {
1594
+ configColumns,
1595
+ columns,
1596
+ visibleColumns: internalVisibleColumns,
1597
+ columnOrder: internalColumnOrder,
1598
+ onVisibilityChange: handleVisibilityChange,
1599
+ onOrderChange: handleOrderChange
1600
+ };
1601
+ $[24] = columns;
1602
+ $[25] = configColumns;
1603
+ $[26] = handleOrderChange;
1604
+ $[27] = handleVisibilityChange;
1605
+ $[28] = internalColumnOrder;
1606
+ $[29] = internalVisibleColumns;
1607
+ $[30] = t12;
1608
+ } else t12 = $[30];
1609
+ return t12;
1610
+ }
1611
+ function _temp2(col_0) {
1612
+ return col_0.id ?? col_0.accessorKey;
1613
+ }
1614
+ function _temp(acc, col) {
1615
+ const key = col.id ?? col.accessorKey;
1616
+ acc[key] = true;
1617
+ return acc;
1618
+ }
1619
+ //#endregion
1620
+ export { tableRowDefinition as _, PaginatedTable as a, Table as c, CellText as d, tableCellTextDefinition as f, tableHeaderTextDefinition as g, tableHeadRowDefinition as h, dynamicColumns as i, useTableNav as l, tableHeadDataDefinition as m, useSorting as n, InfiniteTable as o, tableDataDefinition as p, usePagination as r, ColumnConfigModal as s, useTableColumnConfig as t, HeaderText as u };