@povio/ui 3.4.0-rc.15 → 3.4.0-rc.16

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 (506) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/locales/en/{translation.json.js → translation.js} +1 -0
  3. package/dist/assets/locales/sl/{translation.json.js → translation.js} +1 -0
  4. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +17 -14
  5. package/dist/components/Breadcrumbs/Breadcrumbs.js +206 -55
  6. package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +39 -40
  7. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +5 -5
  8. package/dist/components/Menu/Menu.d.ts +20 -18
  9. package/dist/components/Menu/Menu.js +1 -1
  10. package/dist/components/Menu/MenuDesktop.js +2 -2
  11. package/dist/components/Menu/MenuItem.d.ts +6 -3
  12. package/dist/components/Menu/MenuItem.js +2 -2
  13. package/dist/components/Menu/MenuMobile.js +2 -2
  14. package/dist/components/Menu/MenuPopover.d.ts +7 -5
  15. package/dist/components/Menu/MenuPopover.js +2 -2
  16. package/dist/components/Menu/menu.cva.d.ts +35 -35
  17. package/dist/components/Menu/menu.cva.js +4 -4
  18. package/dist/components/buttons/Button/Button.d.ts +25 -23
  19. package/dist/components/buttons/Button/Button.js +1 -1
  20. package/dist/components/buttons/Button/button.cva.d.ts +89 -95
  21. package/dist/components/buttons/Button/button.cva.js +8 -44
  22. package/dist/components/buttons/IconButton/IconButton.d.ts +13 -10
  23. package/dist/components/buttons/IconButton/IconButton.js +1 -1
  24. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +15 -12
  25. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
  26. package/dist/components/buttons/PillButton/PillButton.d.ts +14 -11
  27. package/dist/components/buttons/PillButton/PillButton.js +2 -2
  28. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +33 -38
  29. package/dist/components/buttons/PillButton/pillButton.cva.js +5 -5
  30. package/dist/components/buttons/SplitButton/SplitButton.d.ts +14 -11
  31. package/dist/components/buttons/SplitButton/SplitButton.js +2 -2
  32. package/dist/components/buttons/TextButton/TextButton.d.ts +14 -11
  33. package/dist/components/buttons/TextButton/TextButton.js +1 -1
  34. package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +11 -8
  35. package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
  36. package/dist/components/buttons/shared/ButtonContent.js +80 -22
  37. package/dist/components/buttons/shared/buttonContent.cva.d.ts +6 -8
  38. package/dist/components/buttons/shared/buttonContent.cva.js +1 -1
  39. package/dist/components/inputs/Checkbox/Checkbox.d.ts +22 -19
  40. package/dist/components/inputs/Checkbox/Checkbox.js +45 -201
  41. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +1 -1
  42. package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +27 -25
  43. package/dist/components/inputs/Checkbox/CheckboxGroup.js +126 -355
  44. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +73 -89
  45. package/dist/components/inputs/Checkbox/checkbox.cva.js +8 -8
  46. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +40 -37
  47. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +43 -35
  48. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +46 -43
  49. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +172 -168
  50. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +41 -38
  51. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +20 -19
  52. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +29 -26
  53. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +165 -541
  54. package/dist/components/inputs/DateTime/shared/Calendar.js +17 -14
  55. package/dist/components/inputs/DateTime/shared/CalendarCell.js +17 -17
  56. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +5 -4
  57. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +8 -7
  58. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +43 -43
  59. package/dist/components/inputs/DateTime/shared/DateField.js +19 -20
  60. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +11 -45
  61. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +1 -1
  62. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +26 -102
  63. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +28 -83
  64. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +2 -2
  65. package/dist/components/inputs/DateTime/shared/MonthPicker.js +58 -103
  66. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
  67. package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
  68. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +111 -281
  69. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +71 -214
  70. package/dist/components/inputs/DateTime/shared/YearPicker.js +68 -119
  71. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +8 -5
  72. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +16 -15
  73. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +1 -1
  74. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +11 -50
  75. package/dist/components/inputs/DateTime/shared/datePickerValue.utils.js +1 -1
  76. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +12 -11
  77. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +12 -26
  78. package/dist/components/inputs/File/FileUpload.d.ts +7 -4
  79. package/dist/components/inputs/File/FileUpload.js +49 -88
  80. package/dist/components/inputs/File/FileUploadContainer.d.ts +5 -3
  81. package/dist/components/inputs/File/FileUploadContainer.js +10 -17
  82. package/dist/components/inputs/File/InputUpload.d.ts +7 -4
  83. package/dist/components/inputs/File/InputUpload.js +26 -65
  84. package/dist/components/inputs/File/fileUpload.types.d.ts +87 -84
  85. package/dist/components/inputs/File/inputUpload.types.d.ts +34 -32
  86. package/dist/components/inputs/File/inputUpload.types.js +1 -1
  87. package/dist/components/inputs/File/shared/FileCard.js +47 -110
  88. package/dist/components/inputs/File/shared/FileCardList.js +16 -54
  89. package/dist/components/inputs/File/shared/FileUploadContent.js +47 -188
  90. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +1 -1
  91. package/dist/components/inputs/File/shared/FileUploadContentError.js +3 -3
  92. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +3 -3
  93. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +1 -1
  94. package/dist/components/inputs/File/shared/InputUploadContent.js +36 -149
  95. package/dist/components/inputs/File/shared/InputUploadFilled.js +8 -48
  96. package/dist/components/inputs/File/shared/ProgressBar.d.ts +6 -4
  97. package/dist/components/inputs/File/shared/ProgressBar.js +1 -1
  98. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +17 -16
  99. package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -1
  100. package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +24 -25
  101. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +5 -5
  102. package/dist/components/inputs/File/shared/progressBar.cva.d.ts +34 -33
  103. package/dist/components/inputs/File/shared/progressBar.cva.js +5 -5
  104. package/dist/components/inputs/FormField/FormField.d.ts +21 -17
  105. package/dist/components/inputs/FormField/FormField.js +39 -119
  106. package/dist/components/inputs/FormField/FormFieldError.d.ts +9 -6
  107. package/dist/components/inputs/FormField/FormFieldError.js +6 -24
  108. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +15 -13
  109. package/dist/components/inputs/FormField/FormFieldHeader.js +22 -78
  110. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
  111. package/dist/components/inputs/FormField/FormFieldHelper.js +7 -25
  112. package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
  113. package/dist/components/inputs/FormField/formFieldError.cva.d.ts +13 -12
  114. package/dist/components/inputs/FormField/formFieldError.cva.js +1 -1
  115. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +13 -12
  116. package/dist/components/inputs/FormField/formFieldHeader.cva.js +1 -1
  117. package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +13 -12
  118. package/dist/components/inputs/FormField/formFieldHelper.cva.js +1 -1
  119. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +25 -21
  120. package/dist/components/inputs/Input/NumberInput/NumberInput.js +145 -394
  121. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +11 -45
  122. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +120 -553
  123. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +37 -34
  124. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +93 -164
  125. package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +10 -7
  126. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +12 -50
  127. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +8 -7
  128. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +1 -1
  129. package/dist/components/inputs/Input/TextArea/TextArea.d.ts +20 -18
  130. package/dist/components/inputs/Input/TextArea/TextArea.js +96 -304
  131. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +24 -20
  132. package/dist/components/inputs/Input/TextInput/TextInput.js +151 -380
  133. package/dist/components/inputs/Input/shared/InputContent.d.ts +25 -27
  134. package/dist/components/inputs/Input/shared/InputContent.js +59 -193
  135. package/dist/components/inputs/Input/shared/numberStatic.utils.js +1 -1
  136. package/dist/components/inputs/Inputs/Form.d.ts +19 -19
  137. package/dist/components/inputs/Inputs/Form.js +23 -51
  138. package/dist/components/inputs/Inputs/InputItem.d.ts +77 -58
  139. package/dist/components/inputs/Inputs/InputItem.js +16 -65
  140. package/dist/components/inputs/Inputs/Inputs.d.ts +12 -9
  141. package/dist/components/inputs/Inputs/Inputs.js +11 -37
  142. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +23 -21
  143. package/dist/components/inputs/RadioGroup/RadioGroup.js +114 -320
  144. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +49 -59
  145. package/dist/components/inputs/RadioGroup/radio.cva.js +6 -6
  146. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +15 -11
  147. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +25 -55
  148. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +8 -4
  149. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +46 -117
  150. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +25 -38
  151. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +18 -14
  152. package/dist/components/inputs/Selection/Select/QuerySelect.js +58 -115
  153. package/dist/components/inputs/Selection/Select/Select.d.ts +15 -11
  154. package/dist/components/inputs/Selection/Select/Select.js +35 -111
  155. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +39 -37
  156. package/dist/components/inputs/Selection/shared/SelectBase.js +26 -70
  157. package/dist/components/inputs/Selection/shared/SelectDesktop.js +144 -392
  158. package/dist/components/inputs/Selection/shared/SelectInput.js +161 -428
  159. package/dist/components/inputs/Selection/shared/SelectInputTags.js +26 -100
  160. package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
  161. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
  162. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
  163. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +23 -71
  164. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +9 -58
  165. package/dist/components/inputs/Selection/shared/SelectMobile.js +1 -1
  166. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +14 -39
  167. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +8 -15
  168. package/dist/components/inputs/Selection/shared/querySelect.utils.js +6 -6
  169. package/dist/components/inputs/Selection/shared/select.context.js +52 -52
  170. package/dist/components/inputs/Selection/shared/select.types.d.ts +60 -62
  171. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +8 -5
  172. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +1 -1
  173. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +12 -11
  174. package/dist/components/inputs/Selection/shared/selectInput.cva.js +1 -1
  175. package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +16 -15
  176. package/dist/components/inputs/Selection/shared/selectItem.cva.js +1 -1
  177. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +3 -3
  178. package/dist/components/inputs/Selection/shared/useSelectItems.js +12 -12
  179. package/dist/components/inputs/Skeleton/InputFrame.js +27 -27
  180. package/dist/components/inputs/Slider/Slider.d.ts +20 -17
  181. package/dist/components/inputs/Slider/Slider.js +86 -268
  182. package/dist/components/inputs/TextEditor/TextEditor.d.ts +24 -20
  183. package/dist/components/inputs/TextEditor/TextEditor.js +21 -62
  184. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
  185. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +30 -102
  186. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +45 -194
  187. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
  188. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
  189. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
  190. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
  191. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +32 -92
  192. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +54 -126
  193. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +38 -141
  194. package/dist/components/inputs/TextEditor/textEditor.types.js +1 -1
  195. package/dist/components/inputs/Toggle/Toggle.d.ts +18 -15
  196. package/dist/components/inputs/Toggle/Toggle.js +50 -210
  197. package/dist/components/inputs/Toggle/toggle.cva.d.ts +15 -18
  198. package/dist/components/inputs/Toggle/toggle.cva.js +3 -3
  199. package/dist/components/inputs/shared/CheckContent.js +11 -21
  200. package/dist/components/inputs/shared/InputClear.js +30 -102
  201. package/dist/components/inputs/shared/TooltipWrapper.js +13 -48
  202. package/dist/components/inputs/shared/form.binding.d.ts +7 -27
  203. package/dist/components/inputs/shared/form.binding.js +8 -37
  204. package/dist/components/inputs/shared/form.types.d.ts +11 -11
  205. package/dist/components/inputs/shared/form.types.js +1 -1
  206. package/dist/components/inputs/shared/input.cva.d.ts +76 -85
  207. package/dist/components/inputs/shared/input.cva.js +9 -19
  208. package/dist/components/inputs/shared/label.cva.d.ts +18 -18
  209. package/dist/components/inputs/shared/label.cva.js +2 -2
  210. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +10 -7
  211. package/dist/components/inputs/shared/tooltipWrapper.cva.js +1 -1
  212. package/dist/components/inputs/shared/useFieldAccessibility.js +19 -0
  213. package/dist/components/inputs/shared/useStaticInputHandoff.js +50 -105
  214. package/dist/components/navigation/Accordion/Accordion.d.ts +5 -3
  215. package/dist/components/navigation/Accordion/Accordion.js +69 -22
  216. package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
  217. package/dist/components/navigation/Accordion/accordion.cva.d.ts +76 -100
  218. package/dist/components/navigation/Accordion/accordion.cva.js +10 -10
  219. package/dist/components/navigation/Accordion/accordion.types.d.ts +52 -49
  220. package/dist/components/navigation/Stepper/Stepper.d.ts +5 -2
  221. package/dist/components/navigation/Stepper/Stepper.js +67 -22
  222. package/dist/components/navigation/Stepper/StepperItem.js +2 -2
  223. package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
  224. package/dist/components/navigation/Stepper/stepper.cva.d.ts +73 -86
  225. package/dist/components/navigation/Stepper/stepper.cva.js +7 -7
  226. package/dist/components/navigation/Stepper/stepper.types.d.ts +29 -37
  227. package/dist/components/outline.clsx.d.ts +4 -2
  228. package/dist/components/outline.clsx.js +2 -2
  229. package/dist/components/overlays/ActionModal/ActionModal.d.ts +23 -21
  230. package/dist/components/overlays/ActionModal/ActionModal.js +170 -36
  231. package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +30 -28
  232. package/dist/components/overlays/BottomSheet/BottomSheet.js +13 -10
  233. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +2 -2
  234. package/dist/components/overlays/Drawer/Drawer.d.ts +17 -14
  235. package/dist/components/overlays/Drawer/Drawer.js +3 -3
  236. package/dist/components/overlays/Modal/Modal.d.ts +18 -14
  237. package/dist/components/overlays/Modal/Modal.js +3 -1
  238. package/dist/components/overlays/Modal/modal.cva.d.ts +34 -34
  239. package/dist/components/overlays/Modal/modal.cva.js +4 -4
  240. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +16 -14
  241. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +110 -29
  242. package/dist/components/overlays/Tooltip/Tooltip.d.ts +15 -12
  243. package/dist/components/overlays/Tooltip/Tooltip.js +3 -3
  244. package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +10 -7
  245. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +2 -2
  246. package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +39 -45
  247. package/dist/components/overlays/Tooltip/tooltip.cva.js +4 -4
  248. package/dist/components/segment/Segment.d.ts +7 -4
  249. package/dist/components/segment/Segment.js +3 -3
  250. package/dist/components/segment/SegmentItem.js +2 -2
  251. package/dist/components/segment/segment.cva.d.ts +20 -18
  252. package/dist/components/segment/segment.cva.js +2 -2
  253. package/dist/components/segment/segment.types.d.ts +33 -30
  254. package/dist/components/shared/pagination/Pagination.d.ts +11 -8
  255. package/dist/components/shared/pagination/Pagination.js +108 -22
  256. package/dist/components/shared/pagination/PaginationList.d.ts +17 -14
  257. package/dist/components/shared/pagination/PaginationList.js +2 -2
  258. package/dist/components/shared/pagination/minWidth.cva.js +1 -1
  259. package/dist/components/shared/popover.cva.d.ts +8 -7
  260. package/dist/components/shared/popover.cva.js +1 -1
  261. package/dist/components/status/Alert/Alert.d.ts +13 -10
  262. package/dist/components/status/Alert/Alert.js +97 -30
  263. package/dist/components/status/Alert/alert.cva.d.ts +21 -18
  264. package/dist/components/status/Alert/alert.cva.js +1 -1
  265. package/dist/components/status/Loader/Loader.d.ts +7 -5
  266. package/dist/components/status/Loader/Loader.js +1 -1
  267. package/dist/components/status/Loader/loader.cva.d.ts +23 -26
  268. package/dist/components/status/Loader/loader.cva.js +4 -4
  269. package/dist/components/status/Toast/Toast.d.ts +15 -12
  270. package/dist/components/status/Toast/Toast.js +2 -2
  271. package/dist/components/status/Toast/toast.cva.d.ts +58 -77
  272. package/dist/components/status/Toast/toast.cva.js +6 -6
  273. package/dist/components/status/Toast/useToast.d.ts +14 -11
  274. package/dist/components/status/Toast/useToast.js +1 -1
  275. package/dist/components/status/shared/status.cva.d.ts +32 -28
  276. package/dist/components/status/shared/status.cva.js +2 -2
  277. package/dist/components/table/CellText.d.ts +10 -7
  278. package/dist/components/table/CellText.js +3 -2
  279. package/dist/components/table/ColumnConfig.d.ts +12 -9
  280. package/dist/components/table/ColumnConfig.js +6 -5
  281. package/dist/components/table/HeaderText.d.ts +10 -7
  282. package/dist/components/table/HeaderText.js +3 -2
  283. package/dist/components/table/InfiniteTable.d.ts +10 -8
  284. package/dist/components/table/InfiniteTable.js +67 -16
  285. package/dist/components/table/PaginatedTable.d.ts +12 -10
  286. package/dist/components/table/PaginatedTable.js +1 -1
  287. package/dist/components/table/Table.d.ts +34 -35
  288. package/dist/components/table/Table.js +18 -16
  289. package/dist/components/table/table.cva.d.ts +40 -59
  290. package/dist/components/table/table.cva.js +7 -7
  291. package/dist/components/text/Link/Link.d.ts +10 -8
  292. package/dist/components/text/Link/Link.js +2 -2
  293. package/dist/components/text/Link/link.cva.d.ts +14 -11
  294. package/dist/components/text/Link/link.cva.js +1 -1
  295. package/dist/components/text/Pill/Pill.d.ts +17 -14
  296. package/dist/components/text/Pill/Pill.js +1 -1
  297. package/dist/components/text/Tag/Tag.d.ts +17 -14
  298. package/dist/components/text/Tag/Tag.js +1 -1
  299. package/dist/components/text/Tag/tag.cva.d.ts +18 -15
  300. package/dist/components/text/Tag/tag.cva.js +1 -1
  301. package/dist/components/text/Typography/Typography.d.ts +10 -9
  302. package/dist/components/text/Typography/Typography.js +23 -8
  303. package/dist/components/text/Typography/typography.cva.d.ts +51 -48
  304. package/dist/components/text/Typography/typography.cva.js +1 -1
  305. package/dist/config/confirmation.context.d.ts +22 -19
  306. package/dist/config/confirmation.context.js +2 -2
  307. package/dist/config/i18n.d.ts +311 -308
  308. package/dist/config/i18n.js +4 -4
  309. package/dist/config/link.context.d.ts +9 -7
  310. package/dist/config/link.context.js +2 -2
  311. package/dist/config/router.context.d.ts +11 -9
  312. package/dist/config/router.context.js +2 -2
  313. package/dist/config/theme.context.d.ts +19 -16
  314. package/dist/config/theme.context.js +99 -46
  315. package/dist/config/uiConfig.context.d.ts +80 -75
  316. package/dist/config/uiConfig.context.js +46 -9
  317. package/dist/config/uiOverrides.context.d.ts +205 -204
  318. package/dist/config/uiOverrides.context.js +2 -2
  319. package/dist/helpers/dynamicColumns.d.ts +27 -28
  320. package/dist/helpers/dynamicColumns.js +32 -31
  321. package/dist/helpers/dynamicInputs.d.ts +66 -74
  322. package/dist/helpers/dynamicInputs.js +21 -20
  323. package/dist/hooks/useAutosave.d.ts +12 -9
  324. package/dist/hooks/useAutosave.js +1 -1
  325. package/dist/hooks/useBreakpoint.d.ts +4 -2
  326. package/dist/hooks/useBreakpoint.js +37 -10
  327. package/dist/hooks/useDebounceCallback.d.ts +7 -4
  328. package/dist/hooks/useDebounceCallback.js +51 -17
  329. package/dist/hooks/useDeepCompare.d.ts +7 -4
  330. package/dist/hooks/useDeepCompare.js +4 -4
  331. package/dist/hooks/useFilters.d.ts +10 -7
  332. package/dist/hooks/useFilters.js +8 -6
  333. package/dist/hooks/useForm.d.ts +35 -35
  334. package/dist/hooks/useForm.js +6 -6
  335. package/dist/hooks/useFormAutosave.d.ts +16 -13
  336. package/dist/hooks/useFormAutosave.js +18 -17
  337. package/dist/hooks/useIntersectionObserver.d.ts +7 -5
  338. package/dist/hooks/useIntersectionObserver.js +2 -2
  339. package/dist/hooks/useKeyInteractions.d.ts +19 -16
  340. package/dist/hooks/useKeyInteractions.js +5 -5
  341. package/dist/hooks/useLocalStorage.d.ts +10 -8
  342. package/dist/hooks/useLocalStorage.js +3 -3
  343. package/dist/hooks/useLongPressRepeat.d.ts +10 -7
  344. package/dist/hooks/useLongPressRepeat.js +55 -20
  345. package/dist/hooks/usePagination.d.ts +9 -6
  346. package/dist/hooks/usePagination.js +2 -2
  347. package/dist/hooks/useQueryAutocomplete.js +2 -2
  348. package/dist/hooks/useScrollableListBox.d.ts +5 -2
  349. package/dist/hooks/useScrollableListBox.js +1 -1
  350. package/dist/hooks/useSorting.d.ts +8 -5
  351. package/dist/hooks/useSorting.js +1 -1
  352. package/dist/hooks/useStateAndRef.d.ts +5 -3
  353. package/dist/hooks/useStateAndRef.js +2 -2
  354. package/dist/hooks/useTableColumnConfig.d.ts +15 -13
  355. package/dist/hooks/useTableColumnConfig.js +1 -1
  356. package/dist/hooks/useTableNav.d.ts +79 -77
  357. package/dist/hooks/useTableNav.js +19 -37
  358. package/dist/hooks/useTranslationMemo.d.ts +5 -3
  359. package/dist/index.d.ts +145 -1
  360. package/dist/index.js +3 -3
  361. package/dist/rhf/Inputs.d.ts +55 -54
  362. package/dist/rhf/Inputs.js +62 -17
  363. package/dist/rhf/components.d.ts +77 -75
  364. package/dist/rhf/components.js +27 -27
  365. package/dist/rhf/dynamicInputs.d.ts +16 -14
  366. package/dist/rhf/dynamicInputs.js +1 -1
  367. package/dist/rhf/fieldAdapter.d.ts +8 -6
  368. package/dist/rhf/form.types.d.ts +11 -10
  369. package/dist/rhf/useAutosave.d.ts +12 -9
  370. package/dist/rhf/useForm.d.ts +13 -13
  371. package/dist/rhf/useFormAutosave.d.ts +17 -14
  372. package/dist/rhf/useFormAutosave.js +121 -34
  373. package/dist/rhf.d.ts +146 -225
  374. package/dist/rhf.js +120 -0
  375. package/dist/tanstack.d.ts +151 -224
  376. package/dist/tanstack.js +3 -3
  377. package/dist/text-editor.d.ts +2 -2
  378. package/dist/tw-ui-plugin.d.ts +4 -2
  379. package/dist/tw-ui-plugin.js +1 -1
  380. package/dist/types/common.d.ts +11 -12
  381. package/dist/types/error-handling.d.ts +8 -5
  382. package/dist/utils/array.utils.d.ts +5 -2
  383. package/dist/utils/array.utils.js +1 -1
  384. package/dist/utils/compoundMapper.d.ts +12 -14
  385. package/dist/utils/compoundMapper.js +1 -1
  386. package/dist/utils/date-time.utils.d.ts +44 -41
  387. package/dist/utils/date-time.utils.js +7 -9
  388. package/dist/utils/date.utils.d.ts +6 -4
  389. package/dist/utils/date.utils.js +29 -6
  390. package/dist/utils/dom.utils.d.ts +7 -4
  391. package/dist/utils/dom.utils.js +2 -2
  392. package/dist/utils/file.utils.d.ts +20 -12
  393. package/dist/utils/file.utils.js +19 -8
  394. package/dist/utils/intl.utils.d.ts +7 -5
  395. package/dist/utils/intl.utils.js +2 -2
  396. package/dist/utils/isEqual.d.ts +4 -1
  397. package/dist/utils/isEqual.js +3 -3
  398. package/dist/utils/logger.d.ts +9 -6
  399. package/dist/utils/logger.js +1 -1
  400. package/dist/utils/object.utils.d.ts +12 -9
  401. package/dist/utils/object.utils.js +1 -1
  402. package/dist/utils/queries.utils.d.ts +6 -3
  403. package/dist/utils/queries.utils.js +1 -1
  404. package/dist/utils/query.utils.js +1 -1
  405. package/dist/utils/routing.utils.d.ts +6 -3
  406. package/dist/utils/routing.utils.js +1 -1
  407. package/dist/utils/string.utils.d.ts +6 -3
  408. package/dist/utils/string.utils.js +1 -1
  409. package/dist/utils/style-merge.util.d.ts +38 -41
  410. package/dist/utils/style-merge.util.js +7 -4
  411. package/dist/utils/zod.utils.d.ts +22 -19
  412. package/dist/utils/zod.utils.js +1 -1
  413. package/package.json +30 -8
  414. package/dist/assets/locales/en/translation.json.d.ts +0 -158
  415. package/dist/assets/locales/sl/translation.json.d.ts +0 -154
  416. package/dist/components/Menu/MenuDesktop.d.ts +0 -2
  417. package/dist/components/Menu/MenuMobile.d.ts +0 -2
  418. package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
  419. package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
  420. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
  421. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
  422. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
  423. package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
  424. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
  425. package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
  426. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
  427. package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
  428. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
  429. package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
  430. package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
  431. package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
  432. package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
  433. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -25
  434. package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
  435. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
  436. package/dist/components/inputs/DateTime/shared/datePickerValue.utils.d.ts +0 -1
  437. package/dist/components/inputs/DateTime/shared/datePickerValue.utils.spec.d.ts +0 -1
  438. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
  439. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
  440. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
  441. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
  442. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
  443. package/dist/components/inputs/File/index.d.ts +0 -9
  444. package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
  445. package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
  446. package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
  447. package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
  448. package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
  449. package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
  450. package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
  451. package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
  452. package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
  453. package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
  454. package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
  455. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
  456. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
  457. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
  458. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
  459. package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
  460. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
  461. package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
  462. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
  463. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
  464. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
  465. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
  466. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
  467. package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
  468. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
  469. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
  470. package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
  471. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -84
  472. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
  473. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
  474. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
  475. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
  476. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
  477. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
  478. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
  479. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
  480. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
  481. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
  482. package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
  483. package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
  484. package/dist/components/inputs/shared/InputClear.d.ts +0 -10
  485. package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
  486. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
  487. package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
  488. package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
  489. package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
  490. package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
  491. package/dist/components/segment/SegmentItem.d.ts +0 -2
  492. package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
  493. package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
  494. package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
  495. package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
  496. package/dist/rhf/entrypoints.type-test.d.ts +0 -1
  497. package/dist/types/react-query.d.ts +0 -6
  498. package/dist/utils/array.utils.spec.d.ts +0 -1
  499. package/dist/utils/compoundMapper.spec.d.ts +0 -1
  500. package/dist/utils/date-time.utils.spec.d.ts +0 -1
  501. package/dist/utils/date.utils.spec.d.ts +0 -1
  502. package/dist/utils/intl.utils.spec.d.ts +0 -1
  503. package/dist/utils/query.utils.d.ts +0 -4
  504. package/dist/utils/rest.utils.d.ts +0 -10
  505. package/dist/utils/rest.utils.js +0 -33
  506. package/dist/utils/style-merge.util.spec.d.ts +0 -1
@@ -1,37 +1,36 @@
1
- import { DragEndEvent, UniqueIdentifier } from '@dnd-kit/core';
2
- import { ColumnDef, ColumnOrderState, OnChangeFn, Table as ReactTable, Row, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
3
- import { TFunction } from 'i18next';
4
- import { ComponentType, Dispatch, SetStateAction } from 'react';
5
- import { TableRowVariantProps } from './table.cva';
6
- export type BulkSelectionActionsComponent<T> = ComponentType<{
7
- table: ReactTable<T>;
1
+ import { TableRowVariantProps } from "./table.cva.js";
2
+ import { ComponentType, Dispatch, SetStateAction } from "react";
3
+ import { DragEndEvent, UniqueIdentifier } from "@dnd-kit/core";
4
+ import { ColumnDef, ColumnOrderState, OnChangeFn, Row, RowSelectionState, SortingState, Table, VisibilityState } from "@tanstack/react-table";
5
+ import { TFunction } from "i18next";
6
+ //#region src/components/table/Table.d.ts
7
+ type BulkSelectionActionsComponent<T> = ComponentType<{
8
+ table: Table<T>;
8
9
  }>;
9
- export interface TableWrapperProps<T> extends Omit<TableProps<T>, "columns"> {
10
+ interface TableWrapperProps<T> extends Omit<TableProps<T>, "columns"> {}
11
+ interface TableProps<T> extends TableRowVariantProps {
12
+ items: T[];
13
+ columns: ((t: TFunction) => ColumnDef<T>[]) | ColumnDef<T>[];
14
+ showCellBorder?: boolean;
15
+ onRowClick?: (row: T) => void;
16
+ onDoubleClick?: (row: T) => void;
17
+ className?: string;
18
+ sorting?: SortingState;
19
+ setSorting?: Dispatch<SetStateAction<SortingState>>;
20
+ columnOrder?: ColumnOrderState;
21
+ setColumnOrder?: Dispatch<SetStateAction<ColumnOrderState>>;
22
+ columnVisibility?: VisibilityState;
23
+ setColumnVisibility?: Dispatch<SetStateAction<VisibilityState>>;
24
+ bulkSelectionActions?: BulkSelectionActionsComponent<T>;
25
+ enableDragDrop?: boolean;
26
+ onDragEnd?: (event: DragEndEvent) => void;
27
+ onReorder?: (reorderedItems: T[]) => void;
28
+ getRowId?: (row: T) => UniqueIdentifier;
29
+ enableRowSelection?: boolean | ((row: Row<T>) => boolean);
30
+ enableMultiRowSelection?: boolean | ((row: Row<T>) => boolean);
31
+ defaultSelectedRows?: RowSelectionState;
32
+ onRowSelectionChange?: OnChangeFn<RowSelectionState>;
10
33
  }
11
- export interface TableProps<T> extends TableRowVariantProps {
12
- items: T[];
13
- columns: ((t: TFunction) => ColumnDef<T>[]) | ColumnDef<T>[];
14
- showCellBorder?: boolean;
15
- onRowClick?: (row: T) => void;
16
- onDoubleClick?: (row: T) => void;
17
- className?: string;
18
- sorting?: SortingState;
19
- setSorting?: Dispatch<SetStateAction<SortingState>>;
20
- columnOrder?: ColumnOrderState;
21
- setColumnOrder?: Dispatch<SetStateAction<ColumnOrderState>>;
22
- columnVisibility?: VisibilityState;
23
- setColumnVisibility?: Dispatch<SetStateAction<VisibilityState>>;
24
- bulkSelectionActions?: BulkSelectionActionsComponent<T>;
25
- enableDragDrop?: boolean;
26
- onDragEnd?: (event: DragEndEvent) => void;
27
- onReorder?: (reorderedItems: T[]) => void;
28
- getRowId?: (row: T) => UniqueIdentifier;
29
- enableRowSelection?: boolean | ((row: Row<T>) => boolean);
30
- enableMultiRowSelection?: boolean | ((row: Row<T>) => boolean);
31
- defaultSelectedRows?: RowSelectionState;
32
- onRowSelectionChange?: OnChangeFn<RowSelectionState>;
33
- }
34
- export declare const RowDragHandleCell: ({ rowId }: {
35
- rowId: string;
36
- }) => import("react/jsx-runtime").JSX.Element;
37
- export declare const Table: <T>({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection, defaultSelectedRows, onRowSelectionChange, ...props }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
34
+ declare const Table$1: <T>({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection, defaultSelectedRows, onRowSelectionChange, ...props }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
35
+ //#endregion
36
+ export { BulkSelectionActionsComponent, Table$1 as Table, TableProps, TableWrapperProps };
@@ -17,7 +17,7 @@ import { CSS } from "@dnd-kit/utilities";
17
17
  import { flexRender, getCoreRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
18
18
  import i18next from "i18next";
19
19
  //#region src/components/table/Table.tsx
20
- var CustomCellContext = (context) => {
20
+ const CustomCellContext = (context) => {
21
21
  return {
22
22
  ...context,
23
23
  original: context.row.original,
@@ -25,11 +25,11 @@ var CustomCellContext = (context) => {
25
25
  value: context.getValue()
26
26
  };
27
27
  };
28
- var renderCell = (Comp, props) => {
28
+ const renderCell = (Comp, props) => {
29
29
  const rendered = flexRender(Comp, props);
30
30
  return typeof rendered === "string" ? /* @__PURE__ */ jsx(CellText, { children: rendered }) : rendered;
31
31
  };
32
- var RowDragHandleCell = ({ rowId }) => {
32
+ const RowDragHandleCell = ({ rowId }) => {
33
33
  const { attributes, listeners } = useSortable({ id: rowId });
34
34
  return /* @__PURE__ */ jsx(InlineIconButton, {
35
35
  ...attributes,
@@ -39,18 +39,19 @@ var RowDragHandleCell = ({ rowId }) => {
39
39
  icon: GripVertical
40
40
  });
41
41
  };
42
- var AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
43
- var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick, ...props }) => {
42
+ const AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
43
+ const DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick, ...props }) => {
44
44
  const { transform, transition, setNodeRef, isDragging } = useSortable({ id: row.id });
45
+ const style = {
46
+ transform: CSS.Transform.toString(transform),
47
+ transition,
48
+ opacity: isDragging ? .8 : 1,
49
+ zIndex: isDragging ? 1 : 0,
50
+ position: "relative"
51
+ };
45
52
  return /* @__PURE__ */ jsx("tr", {
46
53
  ref: setNodeRef,
47
- style: {
48
- transform: CSS.Transform.toString(transform),
49
- transition,
50
- opacity: isDragging ? .8 : 1,
51
- zIndex: isDragging ? 1 : 0,
52
- position: "relative"
53
- },
54
+ style,
54
55
  "data-clickable": hasOnClick || row.getCanSelect() || void 0,
55
56
  "data-selected": row.getIsSelected() || void 0,
56
57
  className: clsx(tableRowCva(props)),
@@ -72,7 +73,7 @@ var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCv
72
73
  })
73
74
  });
74
75
  };
75
- var 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 }) => {
76
+ const Table$1 = ({ 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 }) => {
76
77
  const tableRowCva = UIOverrides.useCva("table.rowCva", tableRowDefinition);
77
78
  const theadCva = UIOverrides.useCva("table.theadCva", theadDefinition);
78
79
  const tableHeadRowCva = UIOverrides.useCva("table.headRowCva", tableHeadRowDefinition);
@@ -112,9 +113,10 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
112
113
  getRowId
113
114
  ]);
114
115
  const [isSticky, setIsSticky] = useState(false);
115
- const { ref: stickyRef } = useIntersectionObserver({ onIntersectionChange: useCallback((entry) => {
116
+ const onIntersectionChange = useCallback((entry) => {
116
117
  setIsSticky(entry.intersectionRatio < 1);
117
- }, []) });
118
+ }, []);
119
+ const { ref: stickyRef } = useIntersectionObserver({ onIntersectionChange });
118
120
  const table = useReactTable({
119
121
  data,
120
122
  columns: tableColumns,
@@ -262,4 +264,4 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
262
264
  return tableElement;
263
265
  };
264
266
  //#endregion
265
- export { Table };
267
+ export { RowDragHandleCell, Table$1 as Table };
@@ -1,65 +1,46 @@
1
- import { UIOverrides } from '../../config/uiOverrides.context';
2
- export declare const tableRowDefinition: {
3
- base: string[];
4
- config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
5
- readonly alternatingBackground: {
6
- readonly even: "even:bg-elevation-fill-inverted-4/5";
7
- readonly odd: "odd:bg-elevation-fill-inverted-4/5";
8
- };
9
- }>;
1
+ import { StyleMergeUtils } from "../../utils/style-merge.util.js";
2
+ import { UIOverrides } from "../../config/uiOverrides.context.js";
3
+ //#region src/components/table/table.cva.d.ts
4
+ declare const tableRowDefinition: {
5
+ base: string[];
6
+ config: StyleMergeUtils.Config<{
7
+ readonly alternatingBackground: {
8
+ readonly even: "even:bg-elevation-fill-inverted-4/5";
9
+ readonly odd: "odd:bg-elevation-fill-inverted-4/5";
10
+ };
11
+ }>;
10
12
  };
11
- export type TableRowConfig = NonNullable<typeof tableRowDefinition.config>;
12
- export interface TableRowVariantProps extends UIOverrides.VariantProps<TableRowConfig> {
13
- }
14
- export declare const theadDefinition: {
15
- base: string[];
16
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
13
+ type TableRowConfig = NonNullable<typeof tableRowDefinition.config>;
14
+ interface TableRowVariantProps extends UIOverrides.VariantProps<TableRowConfig> {}
15
+ declare const tableHeadRowDefinition: {
16
+ base: string[];
17
+ config?: StyleMergeUtils.Config<Record<never, never>>;
17
18
  };
18
- export type TheadConfig = NonNullable<typeof theadDefinition.config>;
19
- export interface TheadVariantProps extends UIOverrides.VariantProps<TheadConfig> {
20
- }
21
- export declare const tableHeadRowDefinition: {
22
- base: string[];
23
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
19
+ declare const tableHeadDataDefinition: {
20
+ base: string[];
21
+ config: StyleMergeUtils.Config<{
22
+ readonly hasRightBorder: {
23
+ readonly true: "border-l border-l-elevation-outline-default-1 border-solid";
24
+ readonly false: "";
25
+ };
26
+ }>;
24
27
  };
25
- export type TableHeadRowConfig = NonNullable<typeof tableHeadRowDefinition.config>;
26
- export interface TableHeadRowVariantProps extends UIOverrides.VariantProps<TableHeadRowConfig> {
27
- }
28
- export declare const tableHeadDataDefinition: {
29
- base: string[];
30
- config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
31
- readonly hasRightBorder: {
32
- readonly true: "border-l border-l-elevation-outline-default-1 border-solid";
33
- readonly false: "";
34
- };
35
- }>;
28
+ declare const tableDataDefinition: {
29
+ base: string[];
30
+ config: StyleMergeUtils.Config<{
31
+ readonly hasRightBorder: {
32
+ readonly true: "border-l border-l-elevation-outline-default-1";
33
+ readonly false: "";
34
+ };
35
+ }>;
36
36
  };
37
- export type TableHeadDataConfig = NonNullable<typeof tableHeadDataDefinition.config>;
38
- export interface TableHeadDataVariantProps extends UIOverrides.VariantProps<TableHeadDataConfig> {
39
- }
40
- export declare const tableDataDefinition: {
41
- base: string[];
42
- config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
43
- readonly hasRightBorder: {
44
- readonly true: "border-l border-l-elevation-outline-default-1";
45
- readonly false: "";
46
- };
47
- }>;
37
+ declare const tableHeaderTextDefinition: {
38
+ base: string[];
39
+ config?: StyleMergeUtils.Config<Record<never, never>>;
48
40
  };
49
- export type TableDataConfig = NonNullable<typeof tableDataDefinition.config>;
50
- export interface TableDataVariantProps extends UIOverrides.VariantProps<TableDataConfig> {
51
- }
52
- export declare const tableHeaderTextDefinition: {
53
- base: string[];
54
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
41
+ declare const tableCellTextDefinition: {
42
+ base: string[];
43
+ config?: StyleMergeUtils.Config<Record<never, never>>;
55
44
  };
56
- export type TableHeaderTextConfig = NonNullable<typeof tableHeaderTextDefinition.config>;
57
- export interface TableHeaderTextVariantProps extends UIOverrides.VariantProps<TableHeaderTextConfig> {
58
- }
59
- export declare const tableCellTextDefinition: {
60
- base: string[];
61
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
62
- };
63
- export type TableCellTextConfig = NonNullable<typeof tableCellTextDefinition.config>;
64
- export interface TableCellTextVariantProps extends UIOverrides.VariantProps<TableCellTextConfig> {
65
- }
45
+ //#endregion
46
+ export { TableRowConfig, TableRowVariantProps, tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition };
@@ -1,6 +1,6 @@
1
1
  import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  //#region src/components/table/table.cva.ts
3
- var tableRowDefinition = UIOverrides.defineConfig({
3
+ const tableRowDefinition = UIOverrides.defineConfig({
4
4
  base: [
5
5
  "h-9 max-h-12",
6
6
  "hover:bg-elevation-fill-default-2",
@@ -15,9 +15,9 @@ var tableRowDefinition = UIOverrides.defineConfig({
15
15
  odd: "odd:bg-elevation-fill-inverted-4/5"
16
16
  } } }
17
17
  });
18
- var theadDefinition = UIOverrides.defineConfig({ base: ["group/table-head sticky top-0 z-sticky data-is-sticky:shadow-2"] });
19
- var tableHeadRowDefinition = UIOverrides.defineConfig({ base: ["h-8 w-full"] });
20
- var tableHeadDataDefinition = UIOverrides.defineConfig({
18
+ const theadDefinition = UIOverrides.defineConfig({ base: ["group/table-head sticky top-0 z-sticky data-is-sticky:shadow-2"] });
19
+ const tableHeadRowDefinition = UIOverrides.defineConfig({ base: ["h-8 w-full"] });
20
+ const tableHeadDataDefinition = UIOverrides.defineConfig({
21
21
  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"],
22
22
  config: {
23
23
  variants: { hasRightBorder: {
@@ -27,7 +27,7 @@ var tableHeadDataDefinition = UIOverrides.defineConfig({
27
27
  defaultVariants: { hasRightBorder: true }
28
28
  }
29
29
  });
30
- var tableDataDefinition = UIOverrides.defineConfig({
30
+ const tableDataDefinition = UIOverrides.defineConfig({
31
31
  base: [
32
32
  "relative h-0-5 overflow-hidden text-ellipsis whitespace-nowrap border-t border-t-transparent px-2",
33
33
  "border-b border-b-elevation-outline-default-1",
@@ -43,7 +43,7 @@ var tableDataDefinition = UIOverrides.defineConfig({
43
43
  defaultVariants: { hasRightBorder: true }
44
44
  }
45
45
  });
46
- var tableHeaderTextDefinition = UIOverrides.defineConfig({ base: ["overflow-hidden text-ellipsis px-table-cell-content-side-m py-table-cell-content-height-m text-text-default-1"] });
47
- var tableCellTextDefinition = UIOverrides.defineConfig({ base: ["block overflow-hidden text-ellipsis text-text-default-2"] });
46
+ 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"] });
47
+ const tableCellTextDefinition = UIOverrides.defineConfig({ base: ["block overflow-hidden text-ellipsis text-text-default-2"] });
48
48
  //#endregion
49
49
  export { tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition, theadDefinition };
@@ -1,9 +1,11 @@
1
- import { PropsWithChildren } from 'react';
2
- import { LinkProps as AriaLinkProps } from 'react-aria-components';
3
- import { LinkVariantProps } from './link.cva';
4
- export interface LinkNavigationProps extends AriaLinkProps {
1
+ import { LinkVariantProps } from "./link.cva.js";
2
+ import { PropsWithChildren } from "react";
3
+ import { LinkProps } from "react-aria-components";
4
+ //#region src/components/text/Link/Link.d.ts
5
+ interface LinkNavigationProps extends LinkProps {}
6
+ interface LinkProps$1 extends PropsWithChildren<LinkNavigationProps>, LinkVariantProps {
7
+ className?: string;
5
8
  }
6
- export interface LinkProps extends PropsWithChildren<LinkNavigationProps>, LinkVariantProps {
7
- className?: string;
8
- }
9
- export declare const Link: ({ variant, ...props }: LinkProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Link$1: ({ variant, ...props }: LinkProps$1) => import("react/jsx-runtime").JSX.Element;
10
+ //#endregion
11
+ export { Link$1 as Link, LinkNavigationProps, LinkProps$1 as LinkProps };
@@ -1,11 +1,11 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { LinkContext } from "../../../config/link.context.js";
3
3
  import { linkDefinition } from "./link.cva.js";
4
- import { Link } from "react-aria-components";
5
4
  import { c } from "react/compiler-runtime";
5
+ import { Link } from "react-aria-components";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/components/text/Link/Link.tsx
8
- var Link$1 = (t0) => {
8
+ const Link$1 = (t0) => {
9
9
  const $ = c(4);
10
10
  const { variant, ...props } = t0;
11
11
  const linkContext = LinkContext.useLinkContext();
@@ -1,12 +1,15 @@
1
- import { UIOverrides } from '../../../config/uiOverrides.context';
2
- export declare const linkDefinition: {
3
- base: string[];
4
- config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
5
- readonly variant: {
6
- readonly default: ["text-interactive-text-primary-idle focus-visible:outline-interactive-text-primary-focus", "hover:text-interactive-text-primary-hover focus-visible:text-interactive-text-primary-focus active:text-interactive-text-primary-pressed"];
7
- };
8
- }>;
1
+ import { StyleMergeUtils } from "../../../utils/style-merge.util.js";
2
+ import { UIOverrides } from "../../../config/uiOverrides.context.js";
3
+ //#region src/components/text/Link/link.cva.d.ts
4
+ declare const linkDefinition: {
5
+ base: string[];
6
+ config: StyleMergeUtils.Config<{
7
+ readonly variant: {
8
+ default: ["text-interactive-text-primary-idle focus-visible:outline-interactive-text-primary-focus", "hover:text-interactive-text-primary-hover focus-visible:text-interactive-text-primary-focus active:text-interactive-text-primary-pressed"];
9
+ };
10
+ }>;
9
11
  };
10
- export type LinkConfig = NonNullable<typeof linkDefinition.config>;
11
- export interface LinkVariantProps extends UIOverrides.VariantProps<LinkConfig> {
12
- }
12
+ type LinkConfig = NonNullable<typeof linkDefinition.config>;
13
+ interface LinkVariantProps extends UIOverrides.VariantProps<LinkConfig> {}
14
+ //#endregion
15
+ export { LinkConfig, LinkVariantProps, linkDefinition };
@@ -1,7 +1,7 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { uiOutlineClass } from "../../outline.clsx.js";
3
3
  //#region src/components/text/Link/link.cva.ts
4
- var linkDefinition = UIOverrides.defineConfig({
4
+ const linkDefinition = UIOverrides.defineConfig({
5
5
  base: ["underline", uiOutlineClass],
6
6
  config: {
7
7
  variants: { variant: { default: ["text-interactive-text-primary-idle focus-visible:outline-interactive-text-primary-focus", "hover:text-interactive-text-primary-hover focus-visible:text-interactive-text-primary-focus active:text-interactive-text-primary-pressed"] } },
@@ -1,15 +1,18 @@
1
- import { Ref } from 'react';
2
- import { ButtonProps as AriaButtonProps } from 'react-aria-components';
3
- import { PillButtonVariants } from '../../buttons/PillButton/pillButton.cva';
4
- import { TypographyProps } from '../Typography/Typography';
5
- export interface PillProps extends PillButtonVariants, AriaButtonProps {
6
- className?: string;
7
- children: string;
8
- dismissable?: boolean;
9
- isDisabled?: boolean;
10
- contentRef?: Ref<HTMLElement>;
11
- textVariant?: TypographyProps["variant"];
12
- textSize?: TypographyProps["size"];
13
- onDismiss?: () => void;
1
+ import { PillButtonVariants } from "../../buttons/PillButton/pillButton.cva.js";
2
+ import { TypographyProps } from "../Typography/Typography.js";
3
+ import { Ref } from "react";
4
+ import { ButtonProps } from "react-aria-components";
5
+ //#region src/components/text/Pill/Pill.d.ts
6
+ interface PillProps extends PillButtonVariants, ButtonProps {
7
+ className?: string;
8
+ children: string;
9
+ dismissable?: boolean;
10
+ isDisabled?: boolean;
11
+ contentRef?: Ref<HTMLElement>;
12
+ textVariant?: TypographyProps["variant"];
13
+ textSize?: TypographyProps["size"];
14
+ onDismiss?: () => void;
14
15
  }
15
- export declare const Pill: ({ className, children, dismissable, isDisabled, onDismiss, contentRef, variant, ...props }: PillProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const Pill: ({ className, children, dismissable, isDisabled, onDismiss, contentRef, variant, ...props }: PillProps) => import("react/jsx-runtime").JSX.Element;
17
+ //#endregion
18
+ export { Pill, PillProps };
@@ -9,7 +9,7 @@ import { Button } from "react-aria-components";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/text/Pill/Pill.tsx
12
- var Pill = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, variant = "subtle", ...props }) => {
12
+ const Pill = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, variant = "subtle", ...props }) => {
13
13
  const uiConfig = UIConfig.useConfig();
14
14
  const { textVariant = uiConfig.tag.textVariant, textSize = uiConfig.tag.textSize } = props;
15
15
  const pillCva = UIOverrides.useCva("pillButton.cva", pillButtonDefinition);
@@ -1,15 +1,18 @@
1
- import { Ref } from 'react';
2
- import { ButtonProps as AriaButtonProps } from 'react-aria-components';
3
- import { TagVariantProps } from './tag.cva';
4
- import { TypographyProps } from '../Typography/Typography';
5
- export interface TagProps extends TagVariantProps, AriaButtonProps {
6
- className?: string;
7
- children: string;
8
- dismissable?: boolean;
9
- isDisabled?: boolean;
10
- contentRef?: Ref<HTMLElement>;
11
- textVariant?: TypographyProps["variant"];
12
- textSize?: TypographyProps["size"];
13
- onDismiss?: () => void;
1
+ import { TypographyProps } from "../Typography/Typography.js";
2
+ import { TagVariantProps } from "./tag.cva.js";
3
+ import { Ref } from "react";
4
+ import { ButtonProps } from "react-aria-components";
5
+ //#region src/components/text/Tag/Tag.d.ts
6
+ interface TagProps extends TagVariantProps, ButtonProps {
7
+ className?: string;
8
+ children: string;
9
+ dismissable?: boolean;
10
+ isDisabled?: boolean;
11
+ contentRef?: Ref<HTMLElement>;
12
+ textVariant?: TypographyProps["variant"];
13
+ textSize?: TypographyProps["size"];
14
+ onDismiss?: () => void;
14
15
  }
15
- export declare const Tag: ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const Tag: ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
17
+ //#endregion
18
+ export { Tag, TagProps };
@@ -9,7 +9,7 @@ import { Button } from "react-aria-components";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/text/Tag/Tag.tsx
12
- var Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
12
+ const Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
13
13
  const uiConfig = UIConfig.useConfig();
14
14
  const { textVariant = uiConfig.tag.textVariant, textSize = uiConfig.tag.textSize } = props;
15
15
  const tagCva = UIOverrides.useCva("tag.cva", tagDefinition);
@@ -1,16 +1,19 @@
1
- import { UIOverrides } from '../../../config/uiOverrides.context';
2
- export declare const tagDefinition: {
3
- base: string[];
4
- config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
5
- readonly color: {
6
- readonly primary: ["bg-interactive-subtle-primary-idle text-interactive-subtle-primary-on-idle", "hover:bg-interactive-subtle-primary-hover hover:text-interactive-subtle-primary-on-hover", "pressed:bg-interactive-subtle-primary-pressed pressed:text-interactive-subtle-primary-on-pressed", "disabled:bg-interactive-subtle-primary-disabled disabled:text-interactive-subtle-primary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
7
- readonly secondary: ["bg-interactive-subtle-secondary-idle text-interactive-subtle-secondary-on-idle", "hover:bg-interactive-subtle-secondary-hover hover:text-interactive-subtle-secondary-on-hover", "pressed:bg-interactive-subtle-secondary-pressed pressed:text-interactive-subtle-secondary-on-pressed", "disabled:bg-interactive-subtle-secondary-disabled disabled:text-interactive-subtle-secondary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
8
- readonly success: ["bg-interactive-subtle-success-idle text-interactive-subtle-success-on-idle", "hover:bg-interactive-subtle-success-hover hover:text-interactive-subtle-success-on-hover", "pressed:bg-interactive-subtle-success-pressed pressed:text-interactive-subtle-success-on-pressed", "disabled:bg-interactive-subtle-success-disabled disabled:text-interactive-subtle-success-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
9
- readonly warning: ["bg-interactive-subtle-warning-idle text-interactive-subtle-warning-on-idle", "hover:bg-interactive-subtle-warning-hover hover:text-interactive-subtle-warning-on-hover", "pressed:bg-interactive-subtle-warning-pressed pressed:text-interactive-subtle-warning-on-pressed", "disabled:bg-interactive-subtle-warning-disabled disabled:text-interactive-subtle-warning-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
10
- readonly error: ["bg-interactive-subtle-error-idle text-interactive-subtle-error-on-idle", "hover:bg-interactive-subtle-error-hover hover:text-interactive-subtle-error-on-hover", "pressed:bg-interactive-subtle-error-pressed pressed:text-interactive-subtle-error-on-pressed", "disabled:bg-interactive-subtle-error-disabled disabled:text-interactive-subtle-error-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
11
- };
12
- }>;
1
+ import { StyleMergeUtils } from "../../../utils/style-merge.util.js";
2
+ import { UIOverrides } from "../../../config/uiOverrides.context.js";
3
+ //#region src/components/text/Tag/tag.cva.d.ts
4
+ declare const tagDefinition: {
5
+ base: string[];
6
+ config: StyleMergeUtils.Config<{
7
+ readonly color: {
8
+ primary: ["bg-interactive-subtle-primary-idle text-interactive-subtle-primary-on-idle", "hover:bg-interactive-subtle-primary-hover hover:text-interactive-subtle-primary-on-hover", "pressed:bg-interactive-subtle-primary-pressed pressed:text-interactive-subtle-primary-on-pressed", "disabled:bg-interactive-subtle-primary-disabled disabled:text-interactive-subtle-primary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
9
+ secondary: ["bg-interactive-subtle-secondary-idle text-interactive-subtle-secondary-on-idle", "hover:bg-interactive-subtle-secondary-hover hover:text-interactive-subtle-secondary-on-hover", "pressed:bg-interactive-subtle-secondary-pressed pressed:text-interactive-subtle-secondary-on-pressed", "disabled:bg-interactive-subtle-secondary-disabled disabled:text-interactive-subtle-secondary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
10
+ success: ["bg-interactive-subtle-success-idle text-interactive-subtle-success-on-idle", "hover:bg-interactive-subtle-success-hover hover:text-interactive-subtle-success-on-hover", "pressed:bg-interactive-subtle-success-pressed pressed:text-interactive-subtle-success-on-pressed", "disabled:bg-interactive-subtle-success-disabled disabled:text-interactive-subtle-success-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
11
+ warning: ["bg-interactive-subtle-warning-idle text-interactive-subtle-warning-on-idle", "hover:bg-interactive-subtle-warning-hover hover:text-interactive-subtle-warning-on-hover", "pressed:bg-interactive-subtle-warning-pressed pressed:text-interactive-subtle-warning-on-pressed", "disabled:bg-interactive-subtle-warning-disabled disabled:text-interactive-subtle-warning-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
12
+ error: ["bg-interactive-subtle-error-idle text-interactive-subtle-error-on-idle", "hover:bg-interactive-subtle-error-hover hover:text-interactive-subtle-error-on-hover", "pressed:bg-interactive-subtle-error-pressed pressed:text-interactive-subtle-error-on-pressed", "disabled:bg-interactive-subtle-error-disabled disabled:text-interactive-subtle-error-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
13
+ };
14
+ }>;
13
15
  };
14
- export type TagConfig = NonNullable<typeof tagDefinition.config>;
15
- export interface TagVariantProps extends UIOverrides.VariantProps<TagConfig> {
16
- }
16
+ type TagConfig = NonNullable<typeof tagDefinition.config>;
17
+ interface TagVariantProps extends UIOverrides.VariantProps<TagConfig> {}
18
+ //#endregion
19
+ export { TagConfig, TagVariantProps, tagDefinition };
@@ -1,7 +1,7 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { uiOutlineClass } from "../../outline.clsx.js";
3
3
  //#region src/components/text/Tag/tag.cva.ts
4
- var tagDefinition = UIOverrides.defineConfig({
4
+ const tagDefinition = UIOverrides.defineConfig({
5
5
  base: [
6
6
  uiOutlineClass,
7
7
  "inline-flex items-center gap-list-gap-icon-to-label",
@@ -1,11 +1,12 @@
1
- import { HTMLAttributes, Ref } from 'react';
2
- import { TypographyVariantProps } from './typography.cva';
1
+ import { TypographyVariantProps } from "./typography.cva.js";
2
+ import { HTMLAttributes, Ref } from "react";
3
+ //#region src/components/text/Typography/Typography.d.ts
3
4
  type TypographyTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div";
4
- export interface TypographyPropsCva extends Omit<TypographyVariantProps, "size">, Required<Pick<TypographyVariantProps, "size">> {
5
+ interface TypographyPropsCva extends Omit<TypographyVariantProps, "size">, Required<Pick<TypographyVariantProps, "size">> {}
6
+ interface TypographyProps extends TypographyPropsCva, HTMLAttributes<HTMLElement> {
7
+ ref?: Ref<HTMLHeadingElement>;
8
+ as?: TypographyTag;
5
9
  }
6
- export interface TypographyProps extends TypographyPropsCva, HTMLAttributes<HTMLElement> {
7
- ref?: Ref<HTMLHeadingElement>;
8
- as?: TypographyTag;
9
- }
10
- export declare const Typography: ({ as, className, ...props }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
10
+ declare const Typography: ({ as, className, ...props }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
11
+ //#endregion
12
+ export { Typography, TypographyProps, TypographyPropsCva };
@@ -1,16 +1,31 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { typographyDefinition } from "./typography.cva.js";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/components/text/Typography/Typography.tsx
5
- var Typography = ({ as = "p", className, ...props }) => {
6
- return /* @__PURE__ */ jsx(as, {
7
- className: UIOverrides.useCva("typography.cva", typographyDefinition)({
8
- ...props,
9
- sizeMobile: props.sizeMobile ?? props.size,
10
- className
11
- }),
12
- ...props
6
+ const Typography = (t0) => {
7
+ const $ = c(4);
8
+ const { as: t1, className, ...props } = t0;
9
+ const as = t1 === void 0 ? "p" : t1;
10
+ const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
11
+ const Tag = as;
12
+ const t2 = typographyCva({
13
+ ...props,
14
+ sizeMobile: props.sizeMobile ?? props.size,
15
+ className
13
16
  });
17
+ let t3;
18
+ if ($[0] !== Tag || $[1] !== props || $[2] !== t2) {
19
+ t3 = /* @__PURE__ */ jsx(Tag, {
20
+ className: t2,
21
+ ...props
22
+ });
23
+ $[0] = Tag;
24
+ $[1] = props;
25
+ $[2] = t2;
26
+ $[3] = t3;
27
+ } else t3 = $[3];
28
+ return t3;
14
29
  };
15
30
  //#endregion
16
31
  export { Typography };