@povio/ui 3.4.0-rc.14 → 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 (504) 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 +44 -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 +21 -18
  52. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +29 -26
  53. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +166 -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 +4 -0
  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/dateSegment.utils.d.ts +0 -2
  437. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
  438. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
  439. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
  440. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
  441. package/dist/components/inputs/File/index.d.ts +0 -9
  442. package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
  443. package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
  444. package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
  445. package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
  446. package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
  447. package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
  448. package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
  449. package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
  450. package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
  451. package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
  452. package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
  453. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
  454. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
  455. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
  456. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
  457. package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
  458. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
  459. package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
  460. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
  461. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
  462. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
  463. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
  464. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
  465. package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
  466. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
  467. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
  468. package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
  469. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -84
  470. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
  471. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
  472. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
  473. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
  474. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
  475. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
  476. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
  477. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
  478. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
  479. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
  480. package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
  481. package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
  482. package/dist/components/inputs/shared/InputClear.d.ts +0 -10
  483. package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
  484. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
  485. package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
  486. package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
  487. package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
  488. package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
  489. package/dist/components/segment/SegmentItem.d.ts +0 -2
  490. package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
  491. package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
  492. package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
  493. package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
  494. package/dist/rhf/entrypoints.type-test.d.ts +0 -1
  495. package/dist/types/react-query.d.ts +0 -6
  496. package/dist/utils/array.utils.spec.d.ts +0 -1
  497. package/dist/utils/compoundMapper.spec.d.ts +0 -1
  498. package/dist/utils/date-time.utils.spec.d.ts +0 -1
  499. package/dist/utils/date.utils.spec.d.ts +0 -1
  500. package/dist/utils/intl.utils.spec.d.ts +0 -1
  501. package/dist/utils/query.utils.d.ts +0 -4
  502. package/dist/utils/rest.utils.d.ts +0 -10
  503. package/dist/utils/rest.utils.js +0 -33
  504. package/dist/utils/style-merge.util.spec.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  import { UIOverrides } from "../../../../config/uiOverrides.context.js";
2
2
  //#region src/components/inputs/File/shared/fileUpload.cva.ts
3
- var fileUploadDropZoneDefinition = UIOverrides.defineConfig({
3
+ const fileUploadDropZoneDefinition = UIOverrides.defineConfig({
4
4
  base: ["relative w-full rounded-file-upload-container-rounding-default"],
5
5
  config: {
6
6
  variants: {
@@ -1,27 +1,26 @@
1
- import { ClassProp } from 'class-variance-authority/types';
2
- import { UIOverrides } from '../../../../config/uiOverrides.context';
3
- export declare const inputUploadButtonDefinition: {
4
- base: string[];
5
- config: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<{
6
- readonly variant: {
7
- readonly default: [];
8
- readonly nested: [];
9
- };
10
- }>;
1
+ import { StyleMergeUtils } from "../../../../utils/style-merge.util.js";
2
+ import { UIOverrides } from "../../../../config/uiOverrides.context.js";
3
+ import { ClassProp } from "class-variance-authority/types";
4
+ //#region src/components/inputs/File/shared/inputUploadButton.cva.d.ts
5
+ declare const inputUploadButtonDefinition: {
6
+ base: string[];
7
+ config: StyleMergeUtils.Config<{
8
+ readonly variant: {
9
+ default: [];
10
+ nested: [];
11
+ };
12
+ }>;
11
13
  };
12
- export type InputUploadButtonConfig = NonNullable<typeof inputUploadButtonDefinition.config>;
13
- export interface InputUploadButtonProps extends UIOverrides.VariantProps<InputUploadButtonConfig> {
14
- }
15
- export declare const inputUploadButton: (props: InputUploadButtonProps & ClassProp) => string;
16
- export declare const inputUploadDropZoneDefinition: {
17
- base: string[];
18
- config: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<{
19
- readonly variant: {
20
- readonly default: ["rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle"];
21
- readonly nested: ["rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle"];
22
- };
23
- }>;
14
+ type InputUploadButtonConfig = NonNullable<typeof inputUploadButtonDefinition.config>;
15
+ interface InputUploadButtonProps extends UIOverrides.VariantProps<InputUploadButtonConfig> {}
16
+ declare const inputUploadDropZoneDefinition: {
17
+ base: string[];
18
+ config: StyleMergeUtils.Config<{
19
+ readonly variant: {
20
+ default: ["rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle"];
21
+ nested: ["rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle"];
22
+ };
23
+ }>;
24
24
  };
25
- export declare const inputUploadDropZone: (props?: ({
26
- readonly variant?: "default" | "nested" | null | undefined;
27
- } & ClassProp) | undefined) => string;
25
+ //#endregion
26
+ export { InputUploadButtonConfig, InputUploadButtonProps, inputUploadButtonDefinition, inputUploadDropZoneDefinition };
@@ -2,7 +2,7 @@ import { UIOverrides } from "../../../../config/uiOverrides.context.js";
2
2
  import { clsx } from "clsx";
3
3
  import { cva } from "class-variance-authority";
4
4
  //#region src/components/inputs/File/shared/inputUploadButton.cva.ts
5
- var inputUploadButtonDefinition = UIOverrides.defineConfig({
5
+ const inputUploadButtonDefinition = UIOverrides.defineConfig({
6
6
  base: ["flex w-full items-center justify-between gap-input-gap-input-to-button-gap"],
7
7
  config: {
8
8
  variants: { variant: {
@@ -12,12 +12,12 @@ var inputUploadButtonDefinition = UIOverrides.defineConfig({
12
12
  defaultVariants: { variant: "default" }
13
13
  }
14
14
  });
15
- var inputUploadButtonBase = cva(inputUploadButtonDefinition.base, inputUploadButtonDefinition.config);
16
- var inputUploadButton = (props) => {
15
+ const inputUploadButtonBase = cva(inputUploadButtonDefinition.base, inputUploadButtonDefinition.config);
16
+ const inputUploadButton = (props) => {
17
17
  const { className, ...rest } = props;
18
18
  return clsx(inputUploadButtonBase(rest), className);
19
19
  };
20
- var inputUploadDropZoneDefinition = UIOverrides.defineConfig({
20
+ const inputUploadDropZoneDefinition = UIOverrides.defineConfig({
21
21
  base: [
22
22
  "relative",
23
23
  "min-w-0 flex-1",
@@ -34,6 +34,6 @@ var inputUploadDropZoneDefinition = UIOverrides.defineConfig({
34
34
  defaultVariants: { variant: "default" }
35
35
  }
36
36
  });
37
- var inputUploadDropZone = cva(inputUploadDropZoneDefinition.base, inputUploadDropZoneDefinition.config);
37
+ const inputUploadDropZone = cva(inputUploadDropZoneDefinition.base, inputUploadDropZoneDefinition.config);
38
38
  //#endregion
39
39
  export { inputUploadButton, inputUploadButtonDefinition, inputUploadDropZone, inputUploadDropZoneDefinition };
@@ -1,38 +1,39 @@
1
- import { UIOverrides } from '../../../../config/uiOverrides.context';
2
- export declare const progressBarDefinition: {
3
- base: string[];
4
- config: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<{
5
- readonly valueLabel: {
6
- readonly leading: ["flex-row-reverse"];
7
- readonly trailing: [];
8
- readonly none: [];
9
- };
10
- }>;
1
+ import { StyleMergeUtils } from "../../../../utils/style-merge.util.js";
2
+ import { UIOverrides } from "../../../../config/uiOverrides.context.js";
3
+ //#region src/components/inputs/File/shared/progressBar.cva.d.ts
4
+ declare const progressBarDefinition: {
5
+ base: string[];
6
+ config: StyleMergeUtils.Config<{
7
+ readonly valueLabel: {
8
+ leading: ["flex-row-reverse"];
9
+ trailing: [];
10
+ none: [];
11
+ };
12
+ }>;
11
13
  };
12
- export type ProgressBarConfig = NonNullable<typeof progressBarDefinition.config>;
13
- export interface ProgressBarVariantProps extends UIOverrides.VariantProps<ProgressBarConfig> {
14
- }
15
- export declare const progressBarTrackWrapperDefinition: {
16
- base: string[];
17
- config?: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
14
+ type ProgressBarConfig = NonNullable<typeof progressBarDefinition.config>;
15
+ interface ProgressBarVariantProps extends UIOverrides.VariantProps<ProgressBarConfig> {}
16
+ declare const progressBarTrackWrapperDefinition: {
17
+ base: string[];
18
+ config?: StyleMergeUtils.Config<Record<never, never>>;
18
19
  };
19
- export declare const progressBarTrackDefinition: {
20
- base: string[];
21
- config: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<{
22
- readonly part: {
23
- readonly container: ["relative h-1 w-full"];
24
- readonly background: ["h-1 w-full shrink-0 rounded-xs bg-input-filled-idle"];
25
- };
26
- }>;
20
+ declare const progressBarTrackDefinition: {
21
+ base: string[];
22
+ config: StyleMergeUtils.Config<{
23
+ readonly part: {
24
+ container: ["relative h-1 w-full"];
25
+ background: ["h-1 w-full shrink-0 rounded-xs bg-input-filled-idle"];
26
+ };
27
+ }>;
27
28
  };
28
- export type ProgressBarTrackConfig = NonNullable<typeof progressBarTrackDefinition.config>;
29
- export interface ProgressBarTrackVariantProps extends UIOverrides.VariantProps<ProgressBarTrackConfig> {
30
- }
31
- export declare const progressBarFillDefinition: {
32
- base: string[];
33
- config?: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
29
+ type ProgressBarTrackConfig = NonNullable<typeof progressBarTrackDefinition.config>;
30
+ declare const progressBarFillDefinition: {
31
+ base: string[];
32
+ config?: StyleMergeUtils.Config<Record<never, never>>;
34
33
  };
35
- export declare const progressBarValueDefinition: {
36
- base: string[];
37
- config?: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
34
+ declare const progressBarValueDefinition: {
35
+ base: string[];
36
+ config?: StyleMergeUtils.Config<Record<never, never>>;
38
37
  };
38
+ //#endregion
39
+ export { ProgressBarConfig, ProgressBarTrackConfig, ProgressBarVariantProps, progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition };
@@ -1,6 +1,6 @@
1
1
  import { UIOverrides } from "../../../../config/uiOverrides.context.js";
2
2
  //#region src/components/inputs/File/shared/progressBar.cva.ts
3
- var progressBarDefinition = UIOverrides.defineConfig({
3
+ const progressBarDefinition = UIOverrides.defineConfig({
4
4
  base: ["flex w-full items-center justify-center gap-file-upload-content-gap-progress-actions"],
5
5
  config: {
6
6
  variants: { valueLabel: {
@@ -11,8 +11,8 @@ var progressBarDefinition = UIOverrides.defineConfig({
11
11
  defaultVariants: { valueLabel: "trailing" }
12
12
  }
13
13
  });
14
- var progressBarTrackWrapperDefinition = UIOverrides.defineConfig({ base: ["flex flex-fill flex-col items-start gap-2 py-progress-height-height"] });
15
- var progressBarTrackDefinition = UIOverrides.defineConfig({
14
+ const progressBarTrackWrapperDefinition = UIOverrides.defineConfig({ base: ["flex flex-fill flex-col items-start gap-2 py-progress-height-height"] });
15
+ const progressBarTrackDefinition = UIOverrides.defineConfig({
16
16
  base: [],
17
17
  config: {
18
18
  variants: { part: {
@@ -22,7 +22,7 @@ var progressBarTrackDefinition = UIOverrides.defineConfig({
22
22
  defaultVariants: { part: "container" }
23
23
  }
24
24
  });
25
- var progressBarFillDefinition = UIOverrides.defineConfig({ base: ["absolute top-0 left-0 h-1 shrink-0 rounded-xs bg-interactive-contained-primary-idle transition-all duration-300"] });
26
- var progressBarValueDefinition = UIOverrides.defineConfig({ base: ["text-center text-text-default-3"] });
25
+ const progressBarFillDefinition = UIOverrides.defineConfig({ base: ["absolute top-0 left-0 h-1 shrink-0 rounded-xs bg-interactive-contained-primary-idle transition-all duration-300"] });
26
+ const progressBarValueDefinition = UIOverrides.defineConfig({ base: ["text-center text-text-default-3"] });
27
27
  //#endregion
28
28
  export { progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition };
@@ -1,20 +1,24 @@
1
- import { FocusEventHandler, MouseEventHandler, PropsWithChildren, Ref } from 'react';
2
- import { FormFieldErrorProps } from './FormFieldError';
3
- import { FormFieldHeaderProps } from './FormFieldHeader';
4
- import { TextInputProps } from '../Input/TextInput/TextInput';
5
- export interface FormFieldProps extends Omit<FormFieldHeaderProps, "className" | "labelProps">, Omit<FormFieldErrorProps, "className"> {
6
- hideLabel?: boolean;
7
- headerClassName?: string;
8
- errorClassName?: string;
9
- className?: string;
1
+ import { FormFieldErrorProps } from "./FormFieldError.js";
2
+ import { FormFieldHeaderProps } from "./FormFieldHeader.js";
3
+ import { TextInputProps } from "../Input/TextInput/TextInput.js";
4
+ import { FocusEventHandler, MouseEventHandler, PropsWithChildren, Ref } from "react";
5
+ //#region src/components/inputs/FormField/FormField.d.ts
6
+ interface FormFieldProps extends Omit<FormFieldHeaderProps, "className" | "labelProps">, Omit<FormFieldErrorProps, "className"> {
7
+ errorMessageId?: string;
8
+ helperTextId?: string;
9
+ hideLabel?: boolean;
10
+ headerClassName?: string;
11
+ errorClassName?: string;
12
+ className?: string;
10
13
  }
11
14
  interface FormFieldComponentProps extends PropsWithChildren<FormFieldProps> {
12
- ref?: Ref<HTMLDivElement>;
13
- labelProps?: FormFieldHeaderProps["labelProps"];
14
- as?: TextInputProps["as"];
15
- tabIndex?: number;
16
- onMouseEnter?: MouseEventHandler<HTMLDivElement>;
17
- onFocusCapture?: FocusEventHandler<HTMLDivElement>;
15
+ ref?: Ref<HTMLDivElement>;
16
+ labelProps?: FormFieldHeaderProps["labelProps"];
17
+ as?: TextInputProps["as"];
18
+ tabIndex?: number;
19
+ onMouseEnter?: MouseEventHandler<HTMLDivElement>;
20
+ onFocusCapture?: FocusEventHandler<HTMLDivElement>;
18
21
  }
19
- export declare const FormField: ({ ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture, }: FormFieldComponentProps) => import("react/jsx-runtime").JSX.Element;
20
- export {};
22
+ declare const FormField: ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }: FormFieldComponentProps) => import("react/jsx-runtime").JSX.Element;
23
+ //#endregion
24
+ export { FormField, FormFieldProps };
@@ -1,127 +1,47 @@
1
1
  import { FormFieldError } from "./FormFieldError.js";
2
2
  import { FormFieldHeader } from "./FormFieldHeader.js";
3
3
  import { FormFieldHelper } from "./FormFieldHelper.js";
4
- import { c } from "react/compiler-runtime";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
5
  //#region src/components/inputs/FormField/FormField.tsx
7
- var FormField = (t0) => {
8
- const $ = c(39);
9
- const { ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture } = t0;
10
- const t1 = hideLabel || isHeaderHidden;
11
- let t2;
12
- if ($[0] !== headerClassName || $[1] !== helperText || $[2] !== isDisabled || $[3] !== isRequired || $[4] !== label || $[5] !== labelProps || $[6] !== rightContent || $[7] !== t1 || $[8] !== tooltipText) {
13
- t2 = {
14
- label,
15
- tooltipText,
16
- helperText,
17
- isRequired,
18
- rightContent,
19
- isHeaderHidden: t1,
20
- isDisabled,
21
- className: headerClassName,
22
- labelProps
23
- };
24
- $[0] = headerClassName;
25
- $[1] = helperText;
26
- $[2] = isDisabled;
27
- $[3] = isRequired;
28
- $[4] = label;
29
- $[5] = labelProps;
30
- $[6] = rightContent;
31
- $[7] = t1;
32
- $[8] = tooltipText;
33
- $[9] = t2;
34
- } else t2 = $[9];
35
- const headerProps = t2;
36
- let t3;
37
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
38
- t3 = ["filter", "floating"];
39
- $[10] = t3;
40
- } else t3 = $[10];
41
- const t4 = !t3.includes(as ?? "");
42
- const t5 = !!error;
43
- let t6;
44
- if ($[11] !== helperText || $[12] !== isDisabled || $[13] !== t4 || $[14] !== t5) {
45
- t6 = {
46
- helperText,
47
- isDisabled,
48
- isHidden: t4,
49
- hasError: t5
50
- };
51
- $[11] = helperText;
52
- $[12] = isDisabled;
53
- $[13] = t4;
54
- $[14] = t5;
55
- $[15] = t6;
56
- } else t6 = $[15];
57
- const helperProps = t6;
58
- let t7;
59
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
60
- t7 = ["filter", "inline"];
61
- $[16] = t7;
62
- } else t7 = $[16];
63
- const t8 = t7.includes(as ?? "");
64
- let t9;
65
- if ($[17] !== error || $[18] !== errorClassName || $[19] !== isDisabled || $[20] !== t8) {
66
- t9 = {
67
- error,
68
- isDisabled,
69
- isHidden: t8,
70
- className: errorClassName
71
- };
72
- $[17] = error;
73
- $[18] = errorClassName;
74
- $[19] = isDisabled;
75
- $[20] = t8;
76
- $[21] = t9;
77
- } else t9 = $[21];
78
- const errorProps = t9;
79
- let t10;
80
- if ($[22] !== as || $[23] !== headerProps) {
81
- t10 = !["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps });
82
- $[22] = as;
83
- $[23] = headerProps;
84
- $[24] = t10;
85
- } else t10 = $[24];
86
- let t11;
87
- if ($[25] !== helperProps) {
88
- t11 = /* @__PURE__ */ jsx(FormFieldHelper, { ...helperProps });
89
- $[25] = helperProps;
90
- $[26] = t11;
91
- } else t11 = $[26];
92
- let t12;
93
- if ($[27] !== errorProps) {
94
- t12 = /* @__PURE__ */ jsx(FormFieldError, { ...errorProps });
95
- $[27] = errorProps;
96
- $[28] = t12;
97
- } else t12 = $[28];
98
- let t13;
99
- if ($[29] !== children || $[30] !== className || $[31] !== onFocusCapture || $[32] !== onMouseEnter || $[33] !== ref || $[34] !== t10 || $[35] !== t11 || $[36] !== t12 || $[37] !== tabIndex) {
100
- t13 = /* @__PURE__ */ jsxs("div", {
101
- ref,
102
- className,
103
- tabIndex,
104
- onMouseEnter,
105
- onFocusCapture,
106
- children: [
107
- t10,
108
- children,
109
- t11,
110
- t12
111
- ]
112
- });
113
- $[29] = children;
114
- $[30] = className;
115
- $[31] = onFocusCapture;
116
- $[32] = onMouseEnter;
117
- $[33] = ref;
118
- $[34] = t10;
119
- $[35] = t11;
120
- $[36] = t12;
121
- $[37] = tabIndex;
122
- $[38] = t13;
123
- } else t13 = $[38];
124
- return t13;
6
+ const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }) => {
7
+ const headerProps = {
8
+ label,
9
+ tooltipText,
10
+ helperText,
11
+ isRequired,
12
+ rightContent,
13
+ isHeaderHidden: hideLabel || isHeaderHidden,
14
+ isDisabled,
15
+ className: headerClassName,
16
+ labelProps
17
+ };
18
+ const helperProps = {
19
+ id: helperTextId,
20
+ helperText,
21
+ isDisabled,
22
+ isHidden: !["filter", "floating"].includes(as ?? ""),
23
+ hasError: !!error
24
+ };
25
+ const errorProps = {
26
+ id: errorMessageId,
27
+ error,
28
+ isDisabled,
29
+ isHidden: ["filter", "inline"].includes(as ?? ""),
30
+ className: errorClassName
31
+ };
32
+ return /* @__PURE__ */ jsxs("div", {
33
+ ref,
34
+ className,
35
+ tabIndex,
36
+ onMouseEnter,
37
+ onFocusCapture,
38
+ children: [
39
+ !["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps }),
40
+ children,
41
+ /* @__PURE__ */ jsx(FormFieldHelper, { ...helperProps }),
42
+ /* @__PURE__ */ jsx(FormFieldError, { ...errorProps })
43
+ ]
44
+ });
125
45
  };
126
46
  //#endregion
127
47
  export { FormField };
@@ -1,7 +1,10 @@
1
- export interface FormFieldErrorProps {
2
- error?: string;
3
- isDisabled?: boolean;
4
- isHidden?: boolean;
5
- className?: string;
1
+ //#region src/components/inputs/FormField/FormFieldError.d.ts
2
+ interface FormFieldErrorProps {
3
+ id?: string;
4
+ error?: string;
5
+ isDisabled?: boolean;
6
+ isHidden?: boolean;
7
+ className?: string;
6
8
  }
7
- export declare const FormFieldError: ({ error, isDisabled, isHidden, className }: FormFieldErrorProps) => import("react/jsx-runtime").JSX.Element;
9
+ //#endregion
10
+ export { FormFieldErrorProps };
@@ -1,33 +1,15 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { formFieldErrorDefinition } from "./formFieldError.cva.js";
3
3
  import { clsx } from "clsx";
4
- import { c } from "react/compiler-runtime";
5
4
  import { jsx } from "react/jsx-runtime";
6
5
  //#region src/components/inputs/FormField/FormFieldError.tsx
7
- var FormFieldError = (t0) => {
8
- const $ = c(7);
9
- const { error, isDisabled, isHidden, className } = t0;
6
+ const FormFieldError = ({ id, error, isDisabled, isHidden, className }) => {
10
7
  const formFieldErrorCva = UIOverrides.useCva("formField.errorLabelCva", formFieldErrorDefinition);
11
- const visible = !!error && !isDisabled && !isHidden;
12
- let t1;
13
- if ($[0] !== className || $[1] !== formFieldErrorCva || $[2] !== visible) {
14
- t1 = clsx(formFieldErrorCva({ visible }), className);
15
- $[0] = className;
16
- $[1] = formFieldErrorCva;
17
- $[2] = visible;
18
- $[3] = t1;
19
- } else t1 = $[3];
20
- let t2;
21
- if ($[4] !== error || $[5] !== t1) {
22
- t2 = /* @__PURE__ */ jsx("p", {
23
- className: t1,
24
- children: error
25
- });
26
- $[4] = error;
27
- $[5] = t1;
28
- $[6] = t2;
29
- } else t2 = $[6];
30
- return t2;
8
+ return /* @__PURE__ */ jsx("p", {
9
+ id,
10
+ className: clsx(formFieldErrorCva({ visible: !!error && !isDisabled && !isHidden }), className),
11
+ children: error
12
+ });
31
13
  };
32
14
  //#endregion
33
15
  export { FormFieldError };
@@ -1,14 +1,16 @@
1
- import { DOMAttributes } from '@react-types/shared';
2
- import { LabelHTMLAttributes, ReactNode } from 'react';
3
- export interface FormFieldHeaderProps {
4
- label: string;
5
- tooltipText?: string;
6
- helperText?: string;
7
- isRequired?: boolean;
8
- rightContent?: ReactNode;
9
- isHeaderHidden?: boolean;
10
- isDisabled?: boolean;
11
- className?: string;
12
- labelProps?: DOMAttributes<HTMLLabelElement> & LabelHTMLAttributes<HTMLLabelElement>;
1
+ import { LabelHTMLAttributes, ReactNode } from "react";
2
+ import { DOMAttributes } from "@react-types/shared";
3
+ //#region src/components/inputs/FormField/FormFieldHeader.d.ts
4
+ interface FormFieldHeaderProps {
5
+ label: string;
6
+ tooltipText?: string;
7
+ helperText?: string;
8
+ isRequired?: boolean;
9
+ rightContent?: ReactNode;
10
+ isHeaderHidden?: boolean;
11
+ isDisabled?: boolean;
12
+ className?: string;
13
+ labelProps?: DOMAttributes<HTMLLabelElement> & LabelHTMLAttributes<HTMLLabelElement>;
13
14
  }
14
- export declare const FormFieldHeader: ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps, }: FormFieldHeaderProps) => import("react/jsx-runtime").JSX.Element;
15
+ //#endregion
16
+ export { FormFieldHeaderProps };
@@ -6,92 +6,36 @@ import { FormFieldLabel } from "./FormFieldLabel.js";
6
6
  import { Info } from "lucide-react";
7
7
  import { clsx } from "clsx";
8
8
  import { Focusable } from "react-aria-components";
9
- import { c } from "react/compiler-runtime";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
11
10
  //#region src/components/inputs/FormField/FormFieldHeader.tsx
12
- var FormFieldHeader = (t0) => {
13
- const $ = c(24);
14
- const { label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps } = t0;
11
+ const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
15
12
  const formFieldHeaderCva = UIOverrides.useCva("formField.headerCva", formFieldHeaderDefinition);
16
- const t1 = !isHeaderHidden;
17
- let t2;
18
- if ($[0] !== className || $[1] !== formFieldHeaderCva || $[2] !== t1) {
19
- t2 = clsx(formFieldHeaderCva({ visible: t1 }), className);
20
- $[0] = className;
21
- $[1] = formFieldHeaderCva;
22
- $[2] = t1;
23
- $[3] = t2;
24
- } else t2 = $[3];
25
- let t3;
26
- if ($[4] !== isDisabled || $[5] !== isRequired || $[6] !== label || $[7] !== labelProps) {
27
- t3 = /* @__PURE__ */ jsx(FormFieldLabel, {
28
- label,
29
- isRequired,
30
- isDisabled,
31
- labelProps
32
- });
33
- $[4] = isDisabled;
34
- $[5] = isRequired;
35
- $[6] = label;
36
- $[7] = labelProps;
37
- $[8] = t3;
38
- } else t3 = $[8];
39
- let t4;
40
- if ($[9] !== isDisabled || $[10] !== tooltipText) {
41
- t4 = tooltipText && /* @__PURE__ */ jsx(Tooltip$1, {
42
- text: tooltipText,
43
- children: /* @__PURE__ */ jsx(Focusable, { children: /* @__PURE__ */ jsx(Info, {
44
- className: clsx("size-6", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle hover:text-interactive-text-secondary-hover"),
45
- tabIndex: 0
46
- }) })
47
- });
48
- $[9] = isDisabled;
49
- $[10] = tooltipText;
50
- $[11] = t4;
51
- } else t4 = $[11];
52
- let t5;
53
- if ($[12] !== t3 || $[13] !== t4) {
54
- t5 = /* @__PURE__ */ jsxs("div", {
55
- className: "flex items-start gap-1",
56
- children: [t3, t4]
57
- });
58
- $[12] = t3;
59
- $[13] = t4;
60
- $[14] = t5;
61
- } else t5 = $[14];
62
- let t6;
63
- if ($[15] !== rightContent || $[16] !== t5) {
64
- t6 = /* @__PURE__ */ jsxs("div", {
13
+ return /* @__PURE__ */ jsxs("div", {
14
+ className: clsx(formFieldHeaderCva({ visible: !isHeaderHidden }), className),
15
+ children: [/* @__PURE__ */ jsxs("div", {
65
16
  className: "flex items-start justify-between",
66
- children: [t5, rightContent]
67
- });
68
- $[15] = rightContent;
69
- $[16] = t5;
70
- $[17] = t6;
71
- } else t6 = $[17];
72
- let t7;
73
- if ($[18] !== helperText) {
74
- t7 = helperText && /* @__PURE__ */ jsx(Typography, {
17
+ children: [/* @__PURE__ */ jsxs("div", {
18
+ className: "flex items-start gap-1",
19
+ children: [/* @__PURE__ */ jsx(FormFieldLabel, {
20
+ label,
21
+ isRequired,
22
+ isDisabled,
23
+ labelProps
24
+ }), tooltipText && /* @__PURE__ */ jsx(Tooltip$1, {
25
+ text: tooltipText,
26
+ children: /* @__PURE__ */ jsx(Focusable, { children: /* @__PURE__ */ jsx(Info, {
27
+ className: clsx("size-6", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle hover:text-interactive-text-secondary-hover"),
28
+ tabIndex: 0
29
+ }) })
30
+ })]
31
+ }), rightContent]
32
+ }), helperText && /* @__PURE__ */ jsx(Typography, {
75
33
  slot: "description",
76
34
  size: "label-2",
77
35
  className: "text-text-default-2",
78
36
  children: helperText
79
- });
80
- $[18] = helperText;
81
- $[19] = t7;
82
- } else t7 = $[19];
83
- let t8;
84
- if ($[20] !== t2 || $[21] !== t6 || $[22] !== t7) {
85
- t8 = /* @__PURE__ */ jsxs("div", {
86
- className: t2,
87
- children: [t6, t7]
88
- });
89
- $[20] = t2;
90
- $[21] = t6;
91
- $[22] = t7;
92
- $[23] = t8;
93
- } else t8 = $[23];
94
- return t8;
37
+ })]
38
+ });
95
39
  };
96
40
  //#endregion
97
41
  export { FormFieldHeader };