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

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 (667) 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.cva.d.ts +39 -40
  5. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +5 -5
  6. package/dist/components/Menu/MenuDesktop.js +2 -2
  7. package/dist/components/Menu/MenuItem.d.ts +6 -3
  8. package/dist/components/Menu/MenuItem.js +2 -2
  9. package/dist/components/Menu/MenuMobile.js +3 -3
  10. package/dist/components/Menu/MenuPopover.d.ts +7 -5
  11. package/dist/components/Menu/MenuPopover.js +2 -2
  12. package/dist/components/Menu/menu.cva.d.ts +35 -35
  13. package/dist/components/Menu/menu.cva.js +4 -4
  14. package/dist/components/accordion.d.ts +5 -0
  15. package/dist/components/accordion.js +81 -0
  16. package/dist/components/action-modal.d.ts +26 -0
  17. package/dist/components/action-modal.js +188 -0
  18. package/dist/components/alert.d.ts +14 -0
  19. package/dist/components/alert.js +114 -0
  20. package/dist/components/autocomplete.d.ts +16 -0
  21. package/dist/components/{inputs/Selection/Autocomplete/Autocomplete.js → autocomplete.js} +34 -64
  22. package/dist/components/bottom-sheet.d.ts +34 -0
  23. package/dist/components/{overlays/BottomSheet/BottomSheet.js → bottom-sheet.js} +17 -14
  24. package/dist/components/breadcrumbs.d.ts +19 -0
  25. package/dist/components/breadcrumbs.js +263 -0
  26. package/dist/components/button.d.ts +3 -0
  27. package/dist/components/button.js +2 -0
  28. package/dist/components/buttons/Button/Button.d.ts +25 -23
  29. package/dist/components/buttons/Button/Button.js +1 -1
  30. package/dist/components/buttons/Button/button.cva.d.ts +89 -95
  31. package/dist/components/buttons/Button/button.cva.js +8 -44
  32. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +33 -38
  33. package/dist/components/buttons/PillButton/pillButton.cva.js +5 -5
  34. package/dist/components/buttons/shared/ButtonContent.js +81 -23
  35. package/dist/components/buttons/shared/buttonContent.cva.d.ts +6 -8
  36. package/dist/components/buttons/shared/buttonContent.cva.js +1 -1
  37. package/dist/components/checkbox-group.d.ts +28 -0
  38. package/dist/components/checkbox-group.js +163 -0
  39. package/dist/components/checkbox.d.ts +24 -0
  40. package/dist/components/checkbox.js +80 -0
  41. package/dist/components/date-picker.d.ts +2 -0
  42. package/dist/components/date-picker.js +2 -0
  43. package/dist/components/date-range-picker.d.ts +2 -0
  44. package/dist/components/date-range-picker.js +2 -0
  45. package/dist/components/date-time-picker.d.ts +2 -0
  46. package/dist/components/date-time-picker.js +2 -0
  47. package/dist/components/drawer.d.ts +18 -0
  48. package/dist/components/{overlays/Drawer/Drawer.js → drawer.js} +4 -4
  49. package/dist/components/file-upload-container.d.ts +5 -0
  50. package/dist/components/file-upload-container.js +15 -0
  51. package/dist/components/file-upload.d.ts +7 -0
  52. package/dist/components/{inputs/File/FileUpload.js → file-upload.js} +59 -98
  53. package/dist/components/form-field.d.ts +24 -0
  54. package/dist/components/form-field.js +47 -0
  55. package/dist/components/icon-button.d.ts +14 -0
  56. package/dist/components/{buttons/IconButton/IconButton.js → icon-button.js} +3 -3
  57. package/dist/components/inline-icon-button.d.ts +16 -0
  58. package/dist/components/inline-icon-button.js +40 -0
  59. package/dist/components/input-upload.d.ts +7 -0
  60. package/dist/components/input-upload.js +118 -0
  61. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +1 -1
  62. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +73 -89
  63. package/dist/components/inputs/Checkbox/checkbox.cva.js +8 -8
  64. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +40 -37
  65. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +44 -36
  66. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +46 -43
  67. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +174 -170
  68. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +41 -38
  69. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +21 -20
  70. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +29 -26
  71. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +166 -542
  72. package/dist/components/inputs/DateTime/shared/Calendar.js +17 -14
  73. package/dist/components/inputs/DateTime/shared/CalendarCell.js +18 -18
  74. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +6 -5
  75. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +9 -8
  76. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +45 -45
  77. package/dist/components/inputs/DateTime/shared/DateField.js +19 -20
  78. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +11 -45
  79. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -3
  80. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +26 -102
  81. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +29 -84
  82. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +3 -3
  83. package/dist/components/inputs/DateTime/shared/MonthPicker.js +59 -104
  84. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
  85. package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
  86. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +113 -283
  87. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +73 -216
  88. package/dist/components/inputs/DateTime/shared/YearPicker.js +69 -120
  89. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +8 -5
  90. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +16 -15
  91. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +1 -1
  92. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +13 -52
  93. package/dist/components/inputs/DateTime/shared/datePickerValue.utils.js +1 -1
  94. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +13 -12
  95. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +12 -26
  96. package/dist/components/inputs/File/fileUpload.types.d.ts +87 -84
  97. package/dist/components/inputs/File/inputUpload.types.d.ts +34 -32
  98. package/dist/components/inputs/File/inputUpload.types.js +1 -1
  99. package/dist/components/inputs/File/shared/FileCard.js +47 -110
  100. package/dist/components/inputs/File/shared/FileCardList.js +16 -54
  101. package/dist/components/inputs/File/shared/FileUploadContent.js +47 -188
  102. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -3
  103. package/dist/components/inputs/File/shared/FileUploadContentError.js +6 -6
  104. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +6 -6
  105. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +3 -3
  106. package/dist/components/inputs/File/shared/InputUploadContent.js +38 -151
  107. package/dist/components/inputs/File/shared/InputUploadFilled.js +10 -50
  108. package/dist/components/inputs/File/shared/ProgressBar.d.ts +6 -4
  109. package/dist/components/inputs/File/shared/ProgressBar.js +2 -2
  110. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +17 -16
  111. package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -1
  112. package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +24 -25
  113. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +5 -5
  114. package/dist/components/inputs/File/shared/progressBar.cva.d.ts +34 -33
  115. package/dist/components/inputs/File/shared/progressBar.cva.js +5 -5
  116. package/dist/components/inputs/FormField/FormFieldError.d.ts +9 -6
  117. package/dist/components/inputs/FormField/FormFieldError.js +6 -24
  118. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +15 -13
  119. package/dist/components/inputs/FormField/FormFieldHeader.js +24 -80
  120. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
  121. package/dist/components/inputs/FormField/FormFieldHelper.js +7 -25
  122. package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
  123. package/dist/components/inputs/FormField/formFieldError.cva.d.ts +13 -12
  124. package/dist/components/inputs/FormField/formFieldError.cva.js +1 -1
  125. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +13 -12
  126. package/dist/components/inputs/FormField/formFieldHeader.cva.js +1 -1
  127. package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +13 -12
  128. package/dist/components/inputs/FormField/formFieldHelper.cva.js +1 -1
  129. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +11 -45
  130. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +121 -554
  131. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +8 -7
  132. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +1 -1
  133. package/dist/components/inputs/Input/shared/InputContent.d.ts +25 -27
  134. package/dist/components/inputs/Input/shared/InputContent.js +61 -195
  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 +29 -78
  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/radio.cva.d.ts +49 -59
  143. package/dist/components/inputs/RadioGroup/radio.cva.js +6 -6
  144. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +25 -38
  145. package/dist/components/inputs/Selection/Select/Select.d.ts +15 -11
  146. package/dist/components/inputs/Selection/Select/Select.js +36 -112
  147. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +39 -37
  148. package/dist/components/inputs/Selection/shared/SelectBase.js +26 -70
  149. package/dist/components/inputs/Selection/shared/SelectDesktop.js +145 -393
  150. package/dist/components/inputs/Selection/shared/SelectInput.js +162 -429
  151. package/dist/components/inputs/Selection/shared/SelectInputTags.js +27 -101
  152. package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
  153. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
  154. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
  155. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +24 -72
  156. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +10 -59
  157. package/dist/components/inputs/Selection/shared/SelectMobile.js +4 -4
  158. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +14 -39
  159. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +8 -15
  160. package/dist/components/inputs/Selection/shared/querySelect.utils.js +6 -6
  161. package/dist/components/inputs/Selection/shared/select.context.js +52 -52
  162. package/dist/components/inputs/Selection/shared/select.types.d.ts +60 -62
  163. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +8 -5
  164. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +1 -1
  165. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +12 -11
  166. package/dist/components/inputs/Selection/shared/selectInput.cva.js +1 -1
  167. package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +16 -15
  168. package/dist/components/inputs/Selection/shared/selectItem.cva.js +1 -1
  169. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +3 -3
  170. package/dist/components/inputs/Selection/shared/useSelectItems.js +12 -12
  171. package/dist/components/inputs/Skeleton/InputFrame.js +30 -30
  172. package/dist/components/inputs/TextEditor/TextEditor.d.ts +24 -20
  173. package/dist/components/inputs/TextEditor/TextEditor.js +22 -63
  174. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
  175. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +31 -103
  176. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +48 -197
  177. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
  178. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
  179. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
  180. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
  181. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +33 -93
  182. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +55 -127
  183. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +39 -142
  184. package/dist/components/inputs/TextEditor/textEditor.types.js +1 -1
  185. package/dist/components/inputs/Toggle/toggle.cva.d.ts +15 -18
  186. package/dist/components/inputs/Toggle/toggle.cva.js +3 -3
  187. package/dist/components/inputs/shared/CheckContent.js +11 -21
  188. package/dist/components/inputs/shared/InputClear.js +31 -103
  189. package/dist/components/inputs/shared/TooltipWrapper.js +14 -49
  190. package/dist/components/inputs/shared/form.binding.d.ts +7 -27
  191. package/dist/components/inputs/shared/form.binding.js +8 -37
  192. package/dist/components/inputs/shared/form.types.d.ts +11 -11
  193. package/dist/components/inputs/shared/form.types.js +1 -1
  194. package/dist/components/inputs/shared/input.cva.d.ts +76 -85
  195. package/dist/components/inputs/shared/input.cva.js +9 -19
  196. package/dist/components/inputs/shared/label.cva.d.ts +18 -18
  197. package/dist/components/inputs/shared/label.cva.js +2 -2
  198. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +10 -7
  199. package/dist/components/inputs/shared/tooltipWrapper.cva.js +1 -1
  200. package/dist/components/inputs/shared/useFieldAccessibility.js +19 -0
  201. package/dist/components/inputs/shared/useStaticInputHandoff.js +50 -105
  202. package/dist/components/link.d.ts +11 -0
  203. package/dist/components/{text/Link/Link.js → link.js} +7 -7
  204. package/dist/components/loader.d.ts +7 -0
  205. package/dist/components/{status/Loader/Loader.js → loader.js} +2 -2
  206. package/dist/components/menu.d.ts +23 -0
  207. package/dist/components/{Menu/Menu.js → menu.js} +4 -4
  208. package/dist/components/modal.d.ts +2 -0
  209. package/dist/components/modal.js +2 -0
  210. package/dist/components/navigation/Accordion/AccordionItem.js +87 -42
  211. package/dist/components/navigation/Accordion/accordion.cva.d.ts +76 -100
  212. package/dist/components/navigation/Accordion/accordion.cva.js +10 -10
  213. package/dist/components/navigation/Accordion/accordion.types.d.ts +52 -49
  214. package/dist/components/navigation/Stepper/StepperItem.js +3 -3
  215. package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
  216. package/dist/components/navigation/Stepper/stepper.cva.d.ts +73 -86
  217. package/dist/components/navigation/Stepper/stepper.cva.js +7 -7
  218. package/dist/components/navigation/Stepper/stepper.types.d.ts +29 -37
  219. package/dist/components/number-input.d.ts +27 -0
  220. package/dist/components/number-input.js +245 -0
  221. package/dist/components/number-range-input.d.ts +39 -0
  222. package/dist/components/number-range-input.js +267 -0
  223. package/dist/components/outline.clsx.d.ts +4 -2
  224. package/dist/components/outline.clsx.js +2 -2
  225. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +3 -3
  226. package/dist/components/overlays/Modal/Modal.d.ts +18 -14
  227. package/dist/components/overlays/Modal/Modal.js +4 -2
  228. package/dist/components/overlays/Modal/modal.cva.d.ts +34 -34
  229. package/dist/components/overlays/Modal/modal.cva.js +4 -4
  230. package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +39 -45
  231. package/dist/components/overlays/Tooltip/tooltip.cva.js +4 -4
  232. package/dist/components/pagination.d.ts +12 -0
  233. package/dist/components/pagination.js +131 -0
  234. package/dist/components/password-input.d.ts +10 -0
  235. package/dist/components/password-input.js +23 -0
  236. package/dist/components/pill-button.d.ts +15 -0
  237. package/dist/components/{buttons/PillButton/PillButton.js → pill-button.js} +5 -5
  238. package/dist/components/pill.d.ts +18 -0
  239. package/dist/components/{text/Pill/Pill.js → pill.js} +6 -6
  240. package/dist/components/query-autocomplete.d.ts +8 -0
  241. package/dist/components/query-autocomplete.js +105 -0
  242. package/dist/components/query-select.d.ts +19 -0
  243. package/dist/components/query-select.js +115 -0
  244. package/dist/components/radio-group.d.ts +24 -0
  245. package/dist/components/radio-group.js +165 -0
  246. package/dist/components/responsive-popover.d.ts +19 -0
  247. package/dist/components/responsive-popover.js +126 -0
  248. package/dist/components/segment/SegmentItem.js +3 -3
  249. package/dist/components/segment/segment.cva.d.ts +20 -18
  250. package/dist/components/segment/segment.cva.js +2 -2
  251. package/dist/components/segment/segment.types.d.ts +33 -30
  252. package/dist/components/segment.d.ts +7 -0
  253. package/dist/components/{segment/Segment.js → segment.js} +8 -8
  254. package/dist/components/select.d.ts +4 -0
  255. package/dist/components/select.js +2 -0
  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/slider.d.ts +22 -0
  262. package/dist/components/slider.js +103 -0
  263. package/dist/components/split-button.d.ts +15 -0
  264. package/dist/components/{buttons/SplitButton/SplitButton.js → split-button.js} +5 -5
  265. package/dist/components/status/Alert/alert.cva.d.ts +21 -18
  266. package/dist/components/status/Alert/alert.cva.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.cva.d.ts +58 -77
  270. package/dist/components/status/Toast/toast.cva.js +6 -6
  271. package/dist/components/status/Toast/useToast.d.ts +14 -11
  272. package/dist/components/status/Toast/useToast.js +2 -2
  273. package/dist/components/status/shared/status.cva.d.ts +32 -28
  274. package/dist/components/status/shared/status.cva.js +2 -2
  275. package/dist/components/stepper.d.ts +5 -0
  276. package/dist/components/stepper.js +79 -0
  277. package/dist/components/table/CellText.d.ts +10 -7
  278. package/dist/components/table/CellText.js +4 -3
  279. package/dist/components/table/ColumnConfig.d.ts +12 -9
  280. package/dist/components/table/ColumnConfig.js +8 -7
  281. package/dist/components/table/HeaderText.d.ts +10 -7
  282. package/dist/components/table/HeaderText.js +4 -3
  283. package/dist/components/table/InfiniteTable.d.ts +10 -8
  284. package/dist/components/table/InfiniteTable.js +68 -17
  285. package/dist/components/table/PaginatedTable.d.ts +12 -10
  286. package/dist/components/table/PaginatedTable.js +2 -2
  287. package/dist/components/table/Table.d.ts +34 -35
  288. package/dist/components/table/Table.js +19 -17
  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/tag.d.ts +18 -0
  292. package/dist/components/{text/Tag/Tag.js → tag.js} +6 -6
  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/Tag/tag.cva.d.ts +18 -15
  296. package/dist/components/text/Tag/tag.cva.js +1 -1
  297. package/dist/components/text/Typography/typography.cva.d.ts +51 -48
  298. package/dist/components/text/Typography/typography.cva.js +1 -1
  299. package/dist/components/text-area.d.ts +21 -0
  300. package/dist/components/text-area.js +138 -0
  301. package/dist/components/text-button.d.ts +15 -0
  302. package/dist/components/{buttons/TextButton/TextButton.js → text-button.js} +2 -2
  303. package/dist/components/text-input.d.ts +27 -0
  304. package/dist/components/text-input.js +241 -0
  305. package/dist/components/time-picker.d.ts +2 -0
  306. package/dist/components/time-picker.js +2 -0
  307. package/dist/components/toast.d.ts +17 -0
  308. package/dist/components/{status/Toast/Toast.js → toast.js} +11 -11
  309. package/dist/components/toggle-button.d.ts +12 -0
  310. package/dist/components/{buttons/ToggleButton/ToggleButton.js → toggle-button.js} +2 -2
  311. package/dist/components/toggle.d.ts +19 -0
  312. package/dist/components/toggle.js +74 -0
  313. package/dist/components/tooltip-ellipsis.d.ts +11 -0
  314. package/dist/components/{overlays/Tooltip/TooltipEllipsis.js → tooltip-ellipsis.js} +3 -3
  315. package/dist/components/tooltip.d.ts +16 -0
  316. package/dist/components/{overlays/Tooltip/Tooltip.js → tooltip.js} +9 -9
  317. package/dist/components/typography.d.ts +12 -0
  318. package/dist/components/typography.js +31 -0
  319. package/dist/config/confirmation.context.d.ts +22 -19
  320. package/dist/config/confirmation.context.js +3 -3
  321. package/dist/config/i18n.d.ts +311 -308
  322. package/dist/config/i18n.js +4 -4
  323. package/dist/config/link.context.d.ts +9 -7
  324. package/dist/config/link.context.js +2 -2
  325. package/dist/config/router.context.d.ts +11 -9
  326. package/dist/config/router.context.js +2 -2
  327. package/dist/config/theme.context.d.ts +19 -16
  328. package/dist/config/theme.context.js +99 -46
  329. package/dist/config/uiConfig.context.d.ts +80 -75
  330. package/dist/config/uiConfig.context.js +46 -9
  331. package/dist/config/uiOverrides.context.d.ts +205 -204
  332. package/dist/config/uiOverrides.context.js +2 -2
  333. package/dist/helpers/dynamicColumns.d.ts +27 -28
  334. package/dist/helpers/dynamicColumns.js +32 -31
  335. package/dist/helpers/dynamicInputs.d.ts +66 -74
  336. package/dist/helpers/dynamicInputs.js +21 -20
  337. package/dist/hooks/useAutosave.d.ts +12 -9
  338. package/dist/hooks/useAutosave.js +1 -1
  339. package/dist/hooks/useBreakpoint.d.ts +4 -2
  340. package/dist/hooks/useBreakpoint.js +37 -10
  341. package/dist/hooks/useDebounceCallback.d.ts +7 -4
  342. package/dist/hooks/useDebounceCallback.js +51 -17
  343. package/dist/hooks/useDeepCompare.d.ts +7 -4
  344. package/dist/hooks/useDeepCompare.js +4 -4
  345. package/dist/hooks/useFilters.d.ts +10 -7
  346. package/dist/hooks/useFilters.js +8 -6
  347. package/dist/hooks/useForm.d.ts +35 -35
  348. package/dist/hooks/useForm.js +6 -6
  349. package/dist/hooks/useFormAutosave.d.ts +16 -13
  350. package/dist/hooks/useFormAutosave.js +18 -17
  351. package/dist/hooks/useIntersectionObserver.d.ts +7 -5
  352. package/dist/hooks/useIntersectionObserver.js +2 -2
  353. package/dist/hooks/useKeyInteractions.d.ts +19 -16
  354. package/dist/hooks/useKeyInteractions.js +5 -5
  355. package/dist/hooks/useLocalStorage.d.ts +10 -8
  356. package/dist/hooks/useLocalStorage.js +3 -3
  357. package/dist/hooks/useLongPressRepeat.d.ts +10 -7
  358. package/dist/hooks/useLongPressRepeat.js +55 -20
  359. package/dist/hooks/usePagination.d.ts +9 -6
  360. package/dist/hooks/usePagination.js +2 -2
  361. package/dist/hooks/useQueryAutocomplete.js +2 -2
  362. package/dist/hooks/useScrollableListBox.d.ts +5 -2
  363. package/dist/hooks/useScrollableListBox.js +1 -1
  364. package/dist/hooks/useSorting.d.ts +8 -5
  365. package/dist/hooks/useSorting.js +1 -1
  366. package/dist/hooks/useStateAndRef.d.ts +5 -3
  367. package/dist/hooks/useStateAndRef.js +2 -2
  368. package/dist/hooks/useTableColumnConfig.d.ts +15 -13
  369. package/dist/hooks/useTableColumnConfig.js +1 -1
  370. package/dist/hooks/useTableNav.d.ts +79 -77
  371. package/dist/hooks/useTableNav.js +19 -37
  372. package/dist/hooks/useTranslationMemo.d.ts +5 -3
  373. package/dist/index.d.ts +145 -1
  374. package/dist/index.js +29 -29
  375. package/dist/rhf/Inputs.d.ts +55 -54
  376. package/dist/rhf/Inputs.js +62 -17
  377. package/dist/rhf/autocomplete.d.ts +3 -0
  378. package/dist/rhf/autocomplete.js +2 -0
  379. package/dist/rhf/checkbox-group.d.ts +3 -0
  380. package/dist/rhf/checkbox-group.js +2 -0
  381. package/dist/rhf/checkbox.d.ts +3 -0
  382. package/dist/rhf/checkbox.js +2 -0
  383. package/dist/rhf/components.d.ts +77 -75
  384. package/dist/rhf/components.js +43 -43
  385. package/dist/rhf/date-picker.d.ts +3 -0
  386. package/dist/rhf/date-picker.js +2 -0
  387. package/dist/rhf/date-range-picker.d.ts +3 -0
  388. package/dist/rhf/date-range-picker.js +2 -0
  389. package/dist/rhf/date-time-picker.d.ts +3 -0
  390. package/dist/rhf/date-time-picker.js +2 -0
  391. package/dist/rhf/dynamicInputs.d.ts +16 -14
  392. package/dist/rhf/dynamicInputs.js +1 -1
  393. package/dist/rhf/entry.utils.js +5 -0
  394. package/dist/rhf/fieldAdapter.d.ts +8 -6
  395. package/dist/rhf/form.types.d.ts +11 -10
  396. package/dist/rhf/number-input.d.ts +8 -0
  397. package/dist/rhf/number-input.js +7 -0
  398. package/dist/rhf/number-range-input.d.ts +8 -0
  399. package/dist/rhf/number-range-input.js +7 -0
  400. package/dist/rhf/password-input.d.ts +8 -0
  401. package/dist/rhf/password-input.js +7 -0
  402. package/dist/rhf/query-autocomplete.d.ts +2 -0
  403. package/dist/rhf/query-autocomplete.js +2 -0
  404. package/dist/rhf/query-select.d.ts +2 -0
  405. package/dist/rhf/query-select.js +2 -0
  406. package/dist/rhf/radio-group.d.ts +3 -0
  407. package/dist/rhf/radio-group.js +2 -0
  408. package/dist/rhf/segment.d.ts +3 -0
  409. package/dist/rhf/segment.js +2 -0
  410. package/dist/rhf/select.d.ts +3 -0
  411. package/dist/rhf/select.js +2 -0
  412. package/dist/rhf/slider.d.ts +3 -0
  413. package/dist/rhf/slider.js +2 -0
  414. package/dist/rhf/text-area.d.ts +8 -0
  415. package/dist/rhf/text-area.js +7 -0
  416. package/dist/rhf/text-input.d.ts +8 -0
  417. package/dist/rhf/text-input.js +7 -0
  418. package/dist/rhf/time-picker.d.ts +3 -0
  419. package/dist/rhf/time-picker.js +2 -0
  420. package/dist/rhf/toggle.d.ts +3 -0
  421. package/dist/rhf/toggle.js +2 -0
  422. package/dist/rhf/useAutosave.d.ts +12 -9
  423. package/dist/rhf/useForm.d.ts +13 -13
  424. package/dist/rhf/useFormAutosave.d.ts +17 -14
  425. package/dist/rhf/useFormAutosave.js +121 -34
  426. package/dist/rhf.d.ts +146 -225
  427. package/dist/rhf.js +120 -0
  428. package/dist/tanstack/autocomplete.d.ts +2 -0
  429. package/dist/tanstack/autocomplete.js +2 -0
  430. package/dist/tanstack/checkbox-group.d.ts +2 -0
  431. package/dist/tanstack/checkbox-group.js +2 -0
  432. package/dist/tanstack/checkbox.d.ts +2 -0
  433. package/dist/tanstack/checkbox.js +2 -0
  434. package/dist/tanstack/date-picker.d.ts +2 -0
  435. package/dist/tanstack/date-picker.js +2 -0
  436. package/dist/tanstack/date-range-picker.d.ts +2 -0
  437. package/dist/tanstack/date-range-picker.js +2 -0
  438. package/dist/tanstack/date-time-picker.d.ts +2 -0
  439. package/dist/tanstack/date-time-picker.js +2 -0
  440. package/dist/tanstack/form.d.ts +3 -0
  441. package/dist/tanstack/form.js +3 -0
  442. package/dist/tanstack/number-input.d.ts +2 -0
  443. package/dist/tanstack/number-input.js +2 -0
  444. package/dist/tanstack/number-range-input.d.ts +3 -0
  445. package/dist/tanstack/number-range-input.js +2 -0
  446. package/dist/tanstack/password-input.d.ts +2 -0
  447. package/dist/tanstack/password-input.js +2 -0
  448. package/dist/tanstack/query-autocomplete.d.ts +2 -0
  449. package/dist/tanstack/query-autocomplete.js +2 -0
  450. package/dist/tanstack/query-select.d.ts +2 -0
  451. package/dist/tanstack/query-select.js +2 -0
  452. package/dist/tanstack/radio-group.d.ts +2 -0
  453. package/dist/tanstack/radio-group.js +2 -0
  454. package/dist/tanstack/segment.d.ts +3 -0
  455. package/dist/tanstack/segment.js +2 -0
  456. package/dist/tanstack/select.d.ts +2 -0
  457. package/dist/tanstack/select.js +2 -0
  458. package/dist/tanstack/slider.d.ts +2 -0
  459. package/dist/tanstack/slider.js +2 -0
  460. package/dist/tanstack/table.d.ts +12 -0
  461. package/dist/tanstack/table.js +11 -0
  462. package/dist/tanstack/text-area.d.ts +2 -0
  463. package/dist/tanstack/text-area.js +2 -0
  464. package/dist/tanstack/text-input.d.ts +2 -0
  465. package/dist/tanstack/text-input.js +2 -0
  466. package/dist/tanstack/time-picker.d.ts +2 -0
  467. package/dist/tanstack/time-picker.js +2 -0
  468. package/dist/tanstack/toggle.d.ts +2 -0
  469. package/dist/tanstack/toggle.js +2 -0
  470. package/dist/tanstack.d.ts +151 -224
  471. package/dist/tanstack.js +45 -45
  472. package/dist/text-editor.d.ts +2 -2
  473. package/dist/tw-ui-plugin.d.ts +4 -2
  474. package/dist/tw-ui-plugin.js +1 -1
  475. package/dist/types/common.d.ts +11 -12
  476. package/dist/types/error-handling.d.ts +8 -5
  477. package/dist/utils/array.utils.d.ts +5 -2
  478. package/dist/utils/array.utils.js +1 -1
  479. package/dist/utils/compoundMapper.d.ts +12 -14
  480. package/dist/utils/compoundMapper.js +1 -1
  481. package/dist/utils/date-time.utils.d.ts +44 -41
  482. package/dist/utils/date-time.utils.js +7 -9
  483. package/dist/utils/date.utils.d.ts +6 -4
  484. package/dist/utils/date.utils.js +29 -6
  485. package/dist/utils/dom.utils.d.ts +7 -4
  486. package/dist/utils/dom.utils.js +2 -2
  487. package/dist/utils/file.utils.d.ts +20 -12
  488. package/dist/utils/file.utils.js +19 -8
  489. package/dist/utils/intl.utils.d.ts +7 -5
  490. package/dist/utils/intl.utils.js +2 -2
  491. package/dist/utils/isEqual.d.ts +4 -1
  492. package/dist/utils/isEqual.js +3 -3
  493. package/dist/utils/logger.d.ts +9 -6
  494. package/dist/utils/logger.js +1 -1
  495. package/dist/utils/object.utils.d.ts +12 -9
  496. package/dist/utils/object.utils.js +1 -1
  497. package/dist/utils/queries.utils.d.ts +6 -3
  498. package/dist/utils/queries.utils.js +1 -1
  499. package/dist/utils/query.utils.js +1 -1
  500. package/dist/utils/routing.utils.d.ts +6 -3
  501. package/dist/utils/routing.utils.js +1 -1
  502. package/dist/utils/string.utils.d.ts +6 -3
  503. package/dist/utils/string.utils.js +1 -1
  504. package/dist/utils/style-merge.util.d.ts +38 -41
  505. package/dist/utils/style-merge.util.js +7 -4
  506. package/dist/utils/zod.utils.d.ts +22 -19
  507. package/dist/utils/zod.utils.js +1 -1
  508. package/package.json +475 -8
  509. package/dist/assets/locales/en/translation.json.d.ts +0 -158
  510. package/dist/assets/locales/sl/translation.json.d.ts +0 -154
  511. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -16
  512. package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -112
  513. package/dist/components/Menu/Menu.d.ts +0 -21
  514. package/dist/components/Menu/MenuDesktop.d.ts +0 -2
  515. package/dist/components/Menu/MenuMobile.d.ts +0 -2
  516. package/dist/components/buttons/IconButton/IconButton.d.ts +0 -11
  517. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +0 -13
  518. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -15
  519. package/dist/components/buttons/PillButton/PillButton.d.ts +0 -12
  520. package/dist/components/buttons/SplitButton/SplitButton.d.ts +0 -12
  521. package/dist/components/buttons/TextButton/TextButton.d.ts +0 -12
  522. package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -9
  523. package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
  524. package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -20
  525. package/dist/components/inputs/Checkbox/Checkbox.js +0 -236
  526. package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
  527. package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +0 -26
  528. package/dist/components/inputs/Checkbox/CheckboxGroup.js +0 -392
  529. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
  530. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
  531. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
  532. package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
  533. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
  534. package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
  535. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
  536. package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
  537. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
  538. package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
  539. package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
  540. package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
  541. package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
  542. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -25
  543. package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
  544. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
  545. package/dist/components/inputs/DateTime/shared/datePickerValue.utils.d.ts +0 -1
  546. package/dist/components/inputs/DateTime/shared/datePickerValue.utils.spec.d.ts +0 -1
  547. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
  548. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
  549. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
  550. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
  551. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
  552. package/dist/components/inputs/File/FileUpload.d.ts +0 -4
  553. package/dist/components/inputs/File/FileUploadContainer.d.ts +0 -3
  554. package/dist/components/inputs/File/FileUploadContainer.js +0 -22
  555. package/dist/components/inputs/File/InputUpload.d.ts +0 -4
  556. package/dist/components/inputs/File/InputUpload.js +0 -157
  557. package/dist/components/inputs/File/index.d.ts +0 -9
  558. package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
  559. package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
  560. package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
  561. package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
  562. package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
  563. package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
  564. package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
  565. package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
  566. package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
  567. package/dist/components/inputs/FormField/FormField.d.ts +0 -20
  568. package/dist/components/inputs/FormField/FormField.js +0 -127
  569. package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
  570. package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
  571. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
  572. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +0 -23
  573. package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -494
  574. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -36
  575. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -338
  576. package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +0 -7
  577. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -61
  578. package/dist/components/inputs/Input/TextArea/TextArea.d.ts +0 -19
  579. package/dist/components/inputs/Input/TextArea/TextArea.js +0 -346
  580. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +0 -23
  581. package/dist/components/inputs/Input/TextInput/TextInput.js +0 -470
  582. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
  583. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +0 -22
  584. package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -371
  585. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +0 -12
  586. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +0 -4
  587. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -176
  588. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -15
  589. package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -172
  590. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
  591. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
  592. package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
  593. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
  594. package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
  595. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
  596. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
  597. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
  598. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
  599. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
  600. package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
  601. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
  602. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
  603. package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
  604. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -84
  605. package/dist/components/inputs/Slider/Slider.d.ts +0 -19
  606. package/dist/components/inputs/Slider/Slider.js +0 -285
  607. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
  608. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
  609. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
  610. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
  611. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
  612. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
  613. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
  614. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
  615. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
  616. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
  617. package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
  618. package/dist/components/inputs/Toggle/Toggle.d.ts +0 -16
  619. package/dist/components/inputs/Toggle/Toggle.js +0 -234
  620. package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
  621. package/dist/components/inputs/shared/InputClear.d.ts +0 -10
  622. package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
  623. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
  624. package/dist/components/navigation/Accordion/Accordion.d.ts +0 -3
  625. package/dist/components/navigation/Accordion/Accordion.js +0 -34
  626. package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
  627. package/dist/components/navigation/Stepper/Stepper.d.ts +0 -2
  628. package/dist/components/navigation/Stepper/Stepper.js +0 -34
  629. package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
  630. package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
  631. package/dist/components/overlays/ActionModal/ActionModal.d.ts +0 -24
  632. package/dist/components/overlays/ActionModal/ActionModal.js +0 -54
  633. package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +0 -32
  634. package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
  635. package/dist/components/overlays/Drawer/Drawer.d.ts +0 -15
  636. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -17
  637. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -45
  638. package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -13
  639. package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -8
  640. package/dist/components/segment/Segment.d.ts +0 -4
  641. package/dist/components/segment/SegmentItem.d.ts +0 -2
  642. package/dist/components/shared/pagination/Pagination.d.ts +0 -9
  643. package/dist/components/shared/pagination/Pagination.js +0 -45
  644. package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
  645. package/dist/components/status/Alert/Alert.d.ts +0 -11
  646. package/dist/components/status/Alert/Alert.js +0 -47
  647. package/dist/components/status/Loader/Loader.d.ts +0 -5
  648. package/dist/components/status/Toast/Toast.d.ts +0 -14
  649. package/dist/components/text/Link/Link.d.ts +0 -9
  650. package/dist/components/text/Pill/Pill.d.ts +0 -15
  651. package/dist/components/text/Tag/Tag.d.ts +0 -15
  652. package/dist/components/text/Typography/Typography.d.ts +0 -11
  653. package/dist/components/text/Typography/Typography.js +0 -16
  654. package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
  655. package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
  656. package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
  657. package/dist/rhf/entrypoints.type-test.d.ts +0 -1
  658. package/dist/types/react-query.d.ts +0 -6
  659. package/dist/utils/array.utils.spec.d.ts +0 -1
  660. package/dist/utils/compoundMapper.spec.d.ts +0 -1
  661. package/dist/utils/date-time.utils.spec.d.ts +0 -1
  662. package/dist/utils/date.utils.spec.d.ts +0 -1
  663. package/dist/utils/intl.utils.spec.d.ts +0 -1
  664. package/dist/utils/query.utils.d.ts +0 -4
  665. package/dist/utils/rest.utils.d.ts +0 -10
  666. package/dist/utils/rest.utils.js +0 -33
  667. package/dist/utils/style-merge.util.spec.d.ts +0 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@ UI Components that match Povio's Atlas Design System.
4
4
 
5
5
  ## Installation
6
6
 
7
- `pnpm add @povio/ui`
7
+ `bun add @povio/ui`
8
8
 
9
9
  ## Versioning
10
10
 
@@ -1,3 +1,4 @@
1
+ //#region src/assets/locales/en/translation.json
1
2
  var translation_default = {
2
3
  ui: {
3
4
  "openAlt": "Open",
@@ -1,3 +1,4 @@
1
+ //#region src/assets/locales/sl/translation.json
1
2
  var translation_default = {
2
3
  ui: {
3
4
  "openAlt": "Odpri",
@@ -1,45 +1,44 @@
1
- import { UIOverrides } from '../../config/uiOverrides.context';
2
- export declare const breadcrumbsDefinition: {
3
- base: string[];
4
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
1
+ import { StyleMergeUtils } from "../../utils/style-merge.util.js";
2
+ import { UIOverrides } from "../../config/uiOverrides.context.js";
3
+ //#region src/components/Breadcrumbs/breadcrumbs.cva.d.ts
4
+ declare const breadcrumbsDefinition: {
5
+ base: string[];
6
+ config?: StyleMergeUtils.Config<Record<never, never>>;
5
7
  };
6
- export type BreadcrumbsConfig = NonNullable<typeof breadcrumbsDefinition.config>;
7
- export interface BreadcrumbsVariantProps extends UIOverrides.VariantProps<BreadcrumbsConfig> {
8
- }
9
- export declare const breadcrumbSegmentDefinition: {
10
- base: string[];
11
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
8
+ type BreadcrumbsConfig = NonNullable<typeof breadcrumbsDefinition.config>;
9
+ interface BreadcrumbsVariantProps extends UIOverrides.VariantProps<BreadcrumbsConfig> {}
10
+ declare const breadcrumbSegmentDefinition: {
11
+ base: string[];
12
+ config?: StyleMergeUtils.Config<Record<never, never>>;
12
13
  };
13
- export type BreadcrumbSegmentConfig = NonNullable<typeof breadcrumbSegmentDefinition.config>;
14
- export interface BreadcrumbSegmentVariantProps extends UIOverrides.VariantProps<BreadcrumbSegmentConfig> {
15
- }
16
- export declare const breadcrumbChevronDefinition: {
17
- base: string[];
18
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
14
+ type BreadcrumbSegmentConfig = NonNullable<typeof breadcrumbSegmentDefinition.config>;
15
+ interface BreadcrumbSegmentVariantProps extends UIOverrides.VariantProps<BreadcrumbSegmentConfig> {}
16
+ declare const breadcrumbChevronDefinition: {
17
+ base: string[];
18
+ config?: StyleMergeUtils.Config<Record<never, never>>;
19
19
  };
20
- export type BreadcrumbChevronConfig = NonNullable<typeof breadcrumbChevronDefinition.config>;
21
- export interface BreadcrumbChevronVariantProps extends UIOverrides.VariantProps<BreadcrumbChevronConfig> {
22
- }
23
- export declare const breadcrumbIconDefinition: {
24
- base: string[];
25
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
20
+ type BreadcrumbChevronConfig = NonNullable<typeof breadcrumbChevronDefinition.config>;
21
+ interface BreadcrumbChevronVariantProps extends UIOverrides.VariantProps<BreadcrumbChevronConfig> {}
22
+ declare const breadcrumbIconDefinition: {
23
+ base: string[];
24
+ config?: StyleMergeUtils.Config<Record<never, never>>;
26
25
  };
27
- export type BreadcrumbIconConfig = NonNullable<typeof breadcrumbIconDefinition.config>;
28
- export interface BreadcrumbIconVariantProps extends UIOverrides.VariantProps<BreadcrumbIconConfig> {
29
- }
30
- export declare const breadcrumbItemDefinition: {
31
- base: string[];
32
- config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
33
- readonly isCurrent: {
34
- readonly true: "text-interactive-text-primary-idle";
35
- readonly false: "text-interactive-text-secondary-idle hover:text-interactive-text-secondary-hover";
36
- };
37
- readonly isEllipsis: {
38
- readonly true: "hover:text-interactive-text-primary-hover!";
39
- readonly false: "";
40
- };
41
- }>;
26
+ type BreadcrumbIconConfig = NonNullable<typeof breadcrumbIconDefinition.config>;
27
+ interface BreadcrumbIconVariantProps extends UIOverrides.VariantProps<BreadcrumbIconConfig> {}
28
+ declare const breadcrumbItemDefinition: {
29
+ base: string[];
30
+ config: StyleMergeUtils.Config<{
31
+ readonly isCurrent: {
32
+ readonly true: "text-interactive-text-primary-idle";
33
+ readonly false: "text-interactive-text-secondary-idle hover:text-interactive-text-secondary-hover";
34
+ };
35
+ readonly isEllipsis: {
36
+ readonly true: "hover:text-interactive-text-primary-hover!";
37
+ readonly false: "";
38
+ };
39
+ }>;
42
40
  };
43
- export type BreadcrumbItemConfig = NonNullable<typeof breadcrumbItemDefinition.config>;
44
- export interface BreadcrumbItemVariantProps extends UIOverrides.VariantProps<BreadcrumbItemConfig> {
45
- }
41
+ type BreadcrumbItemConfig = NonNullable<typeof breadcrumbItemDefinition.config>;
42
+ interface BreadcrumbItemVariantProps extends UIOverrides.VariantProps<BreadcrumbItemConfig> {}
43
+ //#endregion
44
+ export { BreadcrumbChevronConfig, BreadcrumbChevronVariantProps, BreadcrumbIconConfig, BreadcrumbIconVariantProps, BreadcrumbItemConfig, BreadcrumbItemVariantProps, BreadcrumbSegmentConfig, BreadcrumbSegmentVariantProps, BreadcrumbsConfig, BreadcrumbsVariantProps, breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition };
@@ -1,10 +1,10 @@
1
1
  import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  //#region src/components/Breadcrumbs/breadcrumbs.cva.ts
3
- var breadcrumbsDefinition = UIOverrides.defineConfig({ base: ["flex items-center gap-breadcrumbs-gap-segment-to-segment"] });
4
- var breadcrumbSegmentDefinition = UIOverrides.defineConfig({ base: ["flex items-center gap-breadcrumbs-gap-segment-to-segment"] });
5
- var breadcrumbChevronDefinition = UIOverrides.defineConfig({ base: ["size-6 shrink-0 text-interactive-text-secondary-idle"] });
6
- var breadcrumbIconDefinition = UIOverrides.defineConfig({ base: ["size-4 shrink-0"] });
7
- var breadcrumbItemDefinition = UIOverrides.defineConfig({
3
+ const breadcrumbsDefinition = UIOverrides.defineConfig({ base: ["flex items-center gap-breadcrumbs-gap-segment-to-segment"] });
4
+ const breadcrumbSegmentDefinition = UIOverrides.defineConfig({ base: ["flex items-center gap-breadcrumbs-gap-segment-to-segment"] });
5
+ const breadcrumbChevronDefinition = UIOverrides.defineConfig({ base: ["size-6 shrink-0 text-interactive-text-secondary-idle"] });
6
+ const breadcrumbIconDefinition = UIOverrides.defineConfig({ base: ["size-4 shrink-0"] });
7
+ const breadcrumbItemDefinition = UIOverrides.defineConfig({
8
8
  base: ["inline-flex cursor-pointer items-center gap-breadcrumbs-gap-icon-to-text whitespace-nowrap font-inter font-medium text-label-3 no-underline"],
9
9
  config: {
10
10
  variants: {
@@ -1,9 +1,9 @@
1
1
  import { MenuPopover } from "./MenuPopover.js";
2
- import { MenuTrigger } from "react-aria-components";
3
2
  import { c } from "react/compiler-runtime";
3
+ import { MenuTrigger } from "react-aria-components";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/Menu/MenuDesktop.tsx
6
- var MenuDesktop = (t0) => {
6
+ const MenuDesktop = (t0) => {
7
7
  const $ = c(12);
8
8
  let items;
9
9
  let onAction;
@@ -1,3 +1,6 @@
1
- import { MenuItem as MenuItemType } from './Menu';
2
- export type MenuListItemProps = MenuItemType;
3
- export declare const MenuItem: ({ label, content, children, className, ...item }: MenuListItemProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { MenuItem as MenuItem$1 } from "../menu.js";
2
+ //#region src/components/Menu/MenuItem.d.ts
3
+ type MenuListItemProps = MenuItem$1;
4
+ declare const MenuItem: ({ label, content, children, className, ...item }: MenuListItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ //#endregion
6
+ export { MenuItem, MenuListItemProps };
@@ -1,12 +1,12 @@
1
1
  import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  import { menuItemDefinition } from "./menu.cva.js";
3
3
  import { ArrowRight } from "lucide-react";
4
+ import { c } from "react/compiler-runtime";
4
5
  import { clsx } from "clsx";
5
6
  import { MenuItem } from "react-aria-components";
6
- import { c } from "react/compiler-runtime";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region src/components/Menu/MenuItem.tsx
9
- var MenuItem$1 = (t0) => {
9
+ const MenuItem$1 = (t0) => {
10
10
  const $ = c(9);
11
11
  const { label, content, children, className, ...item } = t0;
12
12
  const hasSubmenu = !!children && children?.length > 0;
@@ -1,15 +1,15 @@
1
1
  import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  import { menuDefinition, menuItemDefinition } from "./menu.cva.js";
3
3
  import { MenuItem as MenuItem$1 } from "./MenuItem.js";
4
- import { BottomSheet } from "../overlays/BottomSheet/BottomSheet.js";
4
+ import { BottomSheet } from "../bottom-sheet.js";
5
5
  import { ArrowLeft } from "lucide-react";
6
+ import { c } from "react/compiler-runtime";
6
7
  import { clsx } from "clsx";
7
8
  import { useRef, useState } from "react";
8
9
  import { Button, Menu } from "react-aria-components";
9
- import { c } from "react/compiler-runtime";
10
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region src/components/Menu/MenuMobile.tsx
12
- var MenuMobile = (t0) => {
12
+ const MenuMobile = (t0) => {
13
13
  const $ = c(23);
14
14
  let bottomSheetProps;
15
15
  let items;
@@ -1,5 +1,7 @@
1
- import { PopoverProps as AriaPopoverProps } from 'react-aria-components';
2
- import { MenuProps } from './Menu';
3
- export interface MenuPopoverProps extends Pick<MenuProps, "items" | "onAction">, AriaPopoverProps {
4
- }
5
- export declare const MenuPopover: ({ items, className, onAction, ...props }: MenuPopoverProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { MenuProps } from "../menu.js";
2
+ import { PopoverProps } from "react-aria-components";
3
+ //#region src/components/Menu/MenuPopover.d.ts
4
+ interface MenuPopoverProps extends Pick<MenuProps, "items" | "onAction">, PopoverProps {}
5
+ declare const MenuPopover: ({ items, className, onAction, ...props }: MenuPopoverProps) => import("react/jsx-runtime").JSX.Element;
6
+ //#endregion
7
+ export { MenuPopover, MenuPopoverProps };
@@ -1,12 +1,12 @@
1
1
  import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  import { menuDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition } from "./menu.cva.js";
3
3
  import { MenuItem as MenuItem$1 } from "./MenuItem.js";
4
+ import { c } from "react/compiler-runtime";
4
5
  import { useRef } from "react";
5
6
  import { Menu, Popover, SubmenuTrigger } from "react-aria-components";
6
- import { c } from "react/compiler-runtime";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region src/components/Menu/MenuPopover.tsx
9
- var MenuPopover = (t0) => {
9
+ const MenuPopover = (t0) => {
10
10
  const $ = c(28);
11
11
  const { items, className, onAction, ...props } = t0;
12
12
  const lastEventRef = useRef(null);
@@ -1,39 +1,39 @@
1
- import { UIOverrides } from '../../config/uiOverrides.context';
2
- export declare const menuDefinition: {
3
- base: string[];
4
- config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
5
- readonly isMobile: {
6
- readonly true: [];
7
- readonly false: [];
8
- };
9
- }>;
1
+ import { StyleMergeUtils } from "../../utils/style-merge.util.js";
2
+ import { UIOverrides } from "../../config/uiOverrides.context.js";
3
+ //#region src/components/Menu/menu.cva.d.ts
4
+ declare const menuDefinition: {
5
+ base: string[];
6
+ config: StyleMergeUtils.Config<{
7
+ readonly isMobile: {
8
+ true: [];
9
+ false: [];
10
+ };
11
+ }>;
10
12
  };
11
- export type MenuConfig = NonNullable<typeof menuDefinition.config>;
12
- export interface MenuCvaVariantProps extends UIOverrides.VariantProps<MenuConfig> {
13
- }
14
- export declare const menuItemDefinition: {
15
- base: string[];
16
- config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
17
- readonly isMobile: {
18
- readonly true: ["justify-start! w-full font-labels-default"];
19
- readonly false: [];
20
- };
21
- }>;
13
+ type MenuConfig = NonNullable<typeof menuDefinition.config>;
14
+ interface MenuCvaVariantProps extends UIOverrides.VariantProps<MenuConfig> {}
15
+ declare const menuItemDefinition: {
16
+ base: string[];
17
+ config: StyleMergeUtils.Config<{
18
+ readonly isMobile: {
19
+ true: ["justify-start! w-full font-labels-default"];
20
+ false: [];
21
+ };
22
+ }>;
22
23
  };
23
- export type MenuItemConfig = NonNullable<typeof menuItemDefinition.config>;
24
- export interface MenuItemVariantProps extends UIOverrides.VariantProps<MenuItemConfig> {
25
- }
26
- export declare const menuPopoverDefinition: {
27
- base: string[];
28
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
24
+ type MenuItemConfig = NonNullable<typeof menuItemDefinition.config>;
25
+ interface MenuItemVariantProps extends UIOverrides.VariantProps<MenuItemConfig> {}
26
+ declare const menuPopoverDefinition: {
27
+ base: string[];
28
+ config?: StyleMergeUtils.Config<Record<never, never>>;
29
29
  };
30
- export type MenuPopoverConfig = NonNullable<typeof menuPopoverDefinition.config>;
31
- export interface MenuPopoverVariantProps extends UIOverrides.VariantProps<MenuPopoverConfig> {
32
- }
33
- export declare const menuPopoverWrapperDefinition: {
34
- base: string[];
35
- config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
30
+ type MenuPopoverConfig = NonNullable<typeof menuPopoverDefinition.config>;
31
+ interface MenuPopoverVariantProps extends UIOverrides.VariantProps<MenuPopoverConfig> {}
32
+ declare const menuPopoverWrapperDefinition: {
33
+ base: string[];
34
+ config?: StyleMergeUtils.Config<Record<never, never>>;
36
35
  };
37
- export type MenuPopoverWrapperConfig = NonNullable<typeof menuPopoverWrapperDefinition.config>;
38
- export interface MenuPopoverWrapperVariantProps extends UIOverrides.VariantProps<MenuPopoverWrapperConfig> {
39
- }
36
+ type MenuPopoverWrapperConfig = NonNullable<typeof menuPopoverWrapperDefinition.config>;
37
+ interface MenuPopoverWrapperVariantProps extends UIOverrides.VariantProps<MenuPopoverWrapperConfig> {}
38
+ //#endregion
39
+ export { MenuConfig, MenuCvaVariantProps, MenuItemConfig, MenuItemVariantProps, MenuPopoverConfig, MenuPopoverVariantProps, MenuPopoverWrapperConfig, MenuPopoverWrapperVariantProps, menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition };
@@ -1,6 +1,6 @@
1
1
  import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  //#region src/components/Menu/menu.cva.ts
3
- var menuDefinition = UIOverrides.defineConfig({
3
+ const menuDefinition = UIOverrides.defineConfig({
4
4
  base: ["outline-none"],
5
5
  config: {
6
6
  variants: { isMobile: {
@@ -10,7 +10,7 @@ var menuDefinition = UIOverrides.defineConfig({
10
10
  defaultVariants: { isMobile: false }
11
11
  }
12
12
  });
13
- var menuItemDefinition = UIOverrides.defineConfig({
13
+ const menuItemDefinition = UIOverrides.defineConfig({
14
14
  base: [
15
15
  "flex cursor-pointer items-center justify-between gap-list-gap-checkbox-to-label px-list-side-item-left py-list-height-item has-submenu:pr-list-side-item-right",
16
16
  "border-b border-b-elevation-outline-default-1 outline-none last:border-b-0",
@@ -28,7 +28,7 @@ var menuItemDefinition = UIOverrides.defineConfig({
28
28
  defaultVariants: { isMobile: false }
29
29
  }
30
30
  });
31
- var menuPopoverDefinition = UIOverrides.defineConfig({ base: ["pt-2 outline-none"] });
32
- var menuPopoverWrapperDefinition = UIOverrides.defineConfig({ base: ["overflow-hidden rounded-list-rounding-dropdown border border-elevation-outline-default-1 shadow-5 outline-none"] });
31
+ const menuPopoverDefinition = UIOverrides.defineConfig({ base: ["pt-2 outline-none"] });
32
+ const menuPopoverWrapperDefinition = UIOverrides.defineConfig({ base: ["overflow-hidden rounded-list-rounding-dropdown border border-elevation-outline-default-1 shadow-5 outline-none"] });
33
33
  //#endregion
34
34
  export { menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition };
@@ -0,0 +1,5 @@
1
+ import { AccordionItemProps, AccordionProps } from "./navigation/Accordion/accordion.types.js";
2
+ //#region src/components/navigation/Accordion/Accordion.d.ts
3
+ declare const Accordion: ({ items, variant, actionPosition, allowsMultipleExpanded, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
4
+ //#endregion
5
+ export { Accordion, type AccordionItemProps, type AccordionProps };
@@ -0,0 +1,81 @@
1
+ import { UIOverrides } from "../config/uiOverrides.context.js";
2
+ import { accordionDefinition } from "./navigation/Accordion/accordion.cva.js";
3
+ import { AccordionItem } from "./navigation/Accordion/AccordionItem.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import { clsx } from "clsx";
6
+ import { DisclosureGroup } from "react-aria-components";
7
+ import { jsx } from "react/jsx-runtime";
8
+ //#region src/components/navigation/Accordion/Accordion.tsx
9
+ const Accordion = (t0) => {
10
+ const $ = c(23);
11
+ const { items, variant: t1, actionPosition: t2, allowsMultipleExpanded: t3, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled } = t0;
12
+ const variant = t1 === void 0 ? "filled" : t1;
13
+ const actionPosition = t2 === void 0 ? "right" : t2;
14
+ const allowsMultipleExpanded = t3 === void 0 ? false : t3;
15
+ const accordionCva = UIOverrides.useCva("accordion.cva", accordionDefinition);
16
+ const t4 = items.length === 1;
17
+ let t5;
18
+ if ($[0] !== accordionCva || $[1] !== className || $[2] !== t4 || $[3] !== variant) {
19
+ t5 = clsx(accordionCva({
20
+ className,
21
+ variant,
22
+ singleItem: t4
23
+ }));
24
+ $[0] = accordionCva;
25
+ $[1] = className;
26
+ $[2] = t4;
27
+ $[3] = variant;
28
+ $[4] = t5;
29
+ } else t5 = $[4];
30
+ let t6;
31
+ if ($[5] !== actionPosition || $[6] !== disabled || $[7] !== items || $[8] !== variant) {
32
+ let t7;
33
+ if ($[10] !== actionPosition || $[11] !== disabled || $[12] !== items.length || $[13] !== variant) {
34
+ t7 = (item) => /* @__PURE__ */ jsx(AccordionItem, {
35
+ id: item.id,
36
+ heading: item.heading,
37
+ subheading: item.subheading,
38
+ icon: item.icon,
39
+ variant,
40
+ actionPosition,
41
+ disabled: item.disabled || disabled,
42
+ isSingle: items.length === 1,
43
+ children: item.children
44
+ }, item.id);
45
+ $[10] = actionPosition;
46
+ $[11] = disabled;
47
+ $[12] = items.length;
48
+ $[13] = variant;
49
+ $[14] = t7;
50
+ } else t7 = $[14];
51
+ t6 = items.map(t7);
52
+ $[5] = actionPosition;
53
+ $[6] = disabled;
54
+ $[7] = items;
55
+ $[8] = variant;
56
+ $[9] = t6;
57
+ } else t6 = $[9];
58
+ let t7;
59
+ if ($[15] !== allowsMultipleExpanded || $[16] !== defaultExpandedKeys || $[17] !== disabled || $[18] !== expandedKeys || $[19] !== onExpandedChange || $[20] !== t5 || $[21] !== t6) {
60
+ t7 = /* @__PURE__ */ jsx(DisclosureGroup, {
61
+ allowsMultipleExpanded,
62
+ expandedKeys,
63
+ defaultExpandedKeys,
64
+ onExpandedChange,
65
+ className: t5,
66
+ isDisabled: disabled,
67
+ children: t6
68
+ });
69
+ $[15] = allowsMultipleExpanded;
70
+ $[16] = defaultExpandedKeys;
71
+ $[17] = disabled;
72
+ $[18] = expandedKeys;
73
+ $[19] = onExpandedChange;
74
+ $[20] = t5;
75
+ $[21] = t6;
76
+ $[22] = t7;
77
+ } else t7 = $[22];
78
+ return t7;
79
+ };
80
+ //#endregion
81
+ export { Accordion };
@@ -0,0 +1,26 @@
1
+ import { ButtonVariantProps } from "./buttons/Button/button.cva.js";
2
+ import { ModalProps } from "./overlays/Modal/Modal.js";
3
+ import { TypographyPropsCva } from "./typography.js";
4
+ //#region src/components/overlays/ActionModal/ActionModal.d.ts
5
+ interface ActionModalAction {
6
+ label: string;
7
+ onPress: () => void;
8
+ className?: string;
9
+ variant?: ButtonVariantProps["variant"];
10
+ color?: ButtonVariantProps["color"];
11
+ }
12
+ interface ActionModalProps extends ModalProps {
13
+ heading: string;
14
+ description: string;
15
+ primaryAction: ActionModalAction;
16
+ secondaryAction?: ActionModalAction;
17
+ buttonSize?: ButtonVariantProps["size"];
18
+ textAlign?: "left" | "center" | "right";
19
+ titleTypography?: TypographyPropsCva;
20
+ titleClassName?: string;
21
+ descriptionTypography?: TypographyPropsCva;
22
+ descriptionClassName?: string;
23
+ }
24
+ declare const ActionModal: ({ heading, description, primaryAction, secondaryAction, buttonSize, textAlign, modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps }: ActionModalProps) => import("react/jsx-runtime").JSX.Element;
25
+ //#endregion
26
+ export { ActionModal, ActionModalProps };
@@ -0,0 +1,188 @@
1
+ import { Typography } from "./typography.js";
2
+ import { UIConfig } from "../config/uiConfig.context.js";
3
+ import { Button } from "./buttons/Button/Button.js";
4
+ import { Modal } from "./overlays/Modal/Modal.js";
5
+ import { c } from "react/compiler-runtime";
6
+ import { clsx } from "clsx";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ //#region src/components/overlays/ActionModal/ActionModal.tsx
9
+ const textAlignClassMap = {
10
+ left: "text-left",
11
+ center: "text-center",
12
+ right: "text-right"
13
+ };
14
+ const ActionModal = (t0) => {
15
+ const $ = c(52);
16
+ let description;
17
+ let descriptionClassName;
18
+ let descriptionTypography;
19
+ let heading;
20
+ let modalClassName;
21
+ let modalProps;
22
+ let primaryAction;
23
+ let secondaryAction;
24
+ let t1;
25
+ let t2;
26
+ let titleClassName;
27
+ let titleTypography;
28
+ if ($[0] !== t0) {
29
+ ({heading, description, primaryAction, secondaryAction, buttonSize: t1, textAlign: t2, modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps} = t0);
30
+ $[0] = t0;
31
+ $[1] = description;
32
+ $[2] = descriptionClassName;
33
+ $[3] = descriptionTypography;
34
+ $[4] = heading;
35
+ $[5] = modalClassName;
36
+ $[6] = modalProps;
37
+ $[7] = primaryAction;
38
+ $[8] = secondaryAction;
39
+ $[9] = t1;
40
+ $[10] = t2;
41
+ $[11] = titleClassName;
42
+ $[12] = titleTypography;
43
+ } else {
44
+ description = $[1];
45
+ descriptionClassName = $[2];
46
+ descriptionTypography = $[3];
47
+ heading = $[4];
48
+ modalClassName = $[5];
49
+ modalProps = $[6];
50
+ primaryAction = $[7];
51
+ secondaryAction = $[8];
52
+ t1 = $[9];
53
+ t2 = $[10];
54
+ titleClassName = $[11];
55
+ titleTypography = $[12];
56
+ }
57
+ const buttonSize = t1 === void 0 ? "m" : t1;
58
+ const textAlign = t2 === void 0 ? "left" : t2;
59
+ const ui = UIConfig.useConfig();
60
+ const textAlignClass = textAlignClassMap[textAlign];
61
+ let t3;
62
+ if ($[13] !== modalClassName) {
63
+ t3 = clsx("w-modal", modalClassName);
64
+ $[13] = modalClassName;
65
+ $[14] = t3;
66
+ } else t3 = $[14];
67
+ const t4 = titleTypography ?? ui.actionModal.titleTypography;
68
+ let t5;
69
+ if ($[15] !== textAlignClass || $[16] !== titleClassName) {
70
+ t5 = clsx("text-text-default-1", textAlignClass, titleClassName);
71
+ $[15] = textAlignClass;
72
+ $[16] = titleClassName;
73
+ $[17] = t5;
74
+ } else t5 = $[17];
75
+ let t6;
76
+ if ($[18] !== heading || $[19] !== t4 || $[20] !== t5) {
77
+ t6 = /* @__PURE__ */ jsx(Typography, {
78
+ ...t4,
79
+ as: "h2",
80
+ className: t5,
81
+ children: heading
82
+ });
83
+ $[18] = heading;
84
+ $[19] = t4;
85
+ $[20] = t5;
86
+ $[21] = t6;
87
+ } else t6 = $[21];
88
+ const t7 = descriptionTypography ?? ui.actionModal.descriptionTypography;
89
+ let t8;
90
+ if ($[22] !== descriptionClassName || $[23] !== textAlignClass) {
91
+ t8 = clsx("text-text-default-1", textAlignClass, descriptionClassName);
92
+ $[22] = descriptionClassName;
93
+ $[23] = textAlignClass;
94
+ $[24] = t8;
95
+ } else t8 = $[24];
96
+ let t9;
97
+ if ($[25] !== description || $[26] !== t7 || $[27] !== t8) {
98
+ t9 = /* @__PURE__ */ jsx(Typography, {
99
+ ...t7,
100
+ className: t8,
101
+ children: description
102
+ });
103
+ $[25] = description;
104
+ $[26] = t7;
105
+ $[27] = t8;
106
+ $[28] = t9;
107
+ } else t9 = $[28];
108
+ let t10;
109
+ if ($[29] !== t6 || $[30] !== t9) {
110
+ t10 = /* @__PURE__ */ jsxs("div", {
111
+ className: "flex flex-col gap-modal-gap-text",
112
+ children: [t6, t9]
113
+ });
114
+ $[29] = t6;
115
+ $[30] = t9;
116
+ $[31] = t10;
117
+ } else t10 = $[31];
118
+ let t11;
119
+ if ($[32] !== buttonSize || $[33] !== secondaryAction) {
120
+ t11 = secondaryAction && /* @__PURE__ */ jsx(Button, {
121
+ variant: secondaryAction?.variant ?? "contained",
122
+ size: buttonSize,
123
+ color: secondaryAction?.color ?? "secondary",
124
+ width: "fill",
125
+ onPress: secondaryAction?.onPress,
126
+ className: clsx("min-w-40 flex-1 shrink-0", secondaryAction?.className),
127
+ children: secondaryAction?.label
128
+ });
129
+ $[32] = buttonSize;
130
+ $[33] = secondaryAction;
131
+ $[34] = t11;
132
+ } else t11 = $[34];
133
+ const t12 = primaryAction?.variant ?? "contained";
134
+ const t13 = primaryAction?.color ?? "primary";
135
+ const t14 = primaryAction.onPress;
136
+ const t15 = primaryAction?.className;
137
+ let t16;
138
+ if ($[35] !== t15) {
139
+ t16 = clsx("min-w-40 flex-1 shrink-0", t15);
140
+ $[35] = t15;
141
+ $[36] = t16;
142
+ } else t16 = $[36];
143
+ let t17;
144
+ if ($[37] !== buttonSize || $[38] !== primaryAction.label || $[39] !== primaryAction.onPress || $[40] !== t12 || $[41] !== t13 || $[42] !== t16) {
145
+ t17 = /* @__PURE__ */ jsx(Button, {
146
+ variant: t12,
147
+ size: buttonSize,
148
+ color: t13,
149
+ width: "fill",
150
+ onPress: t14,
151
+ className: t16,
152
+ children: primaryAction.label
153
+ });
154
+ $[37] = buttonSize;
155
+ $[38] = primaryAction.label;
156
+ $[39] = primaryAction.onPress;
157
+ $[40] = t12;
158
+ $[41] = t13;
159
+ $[42] = t16;
160
+ $[43] = t17;
161
+ } else t17 = $[43];
162
+ let t18;
163
+ if ($[44] !== t11 || $[45] !== t17) {
164
+ t18 = /* @__PURE__ */ jsxs("div", {
165
+ className: "flex w-full flex-wrap gap-modal-gap-buttons pt-1",
166
+ children: [t11, t17]
167
+ });
168
+ $[44] = t11;
169
+ $[45] = t17;
170
+ $[46] = t18;
171
+ } else t18 = $[46];
172
+ let t19;
173
+ if ($[47] !== modalProps || $[48] !== t10 || $[49] !== t18 || $[50] !== t3) {
174
+ t19 = /* @__PURE__ */ jsxs(Modal, {
175
+ modalClassName: t3,
176
+ ...modalProps,
177
+ children: [t10, t18]
178
+ });
179
+ $[47] = modalProps;
180
+ $[48] = t10;
181
+ $[49] = t18;
182
+ $[50] = t3;
183
+ $[51] = t19;
184
+ } else t19 = $[51];
185
+ return t19;
186
+ };
187
+ //#endregion
188
+ export { ActionModal };
@@ -0,0 +1,14 @@
1
+ import { AlertVariantProps } from "./status/Alert/alert.cva.js";
2
+ import { FC, ReactNode, SVGProps } from "react";
3
+ //#region src/components/status/Alert/Alert.d.ts
4
+ interface AlertProps extends AlertVariantProps {
5
+ text: string;
6
+ isLoading?: boolean;
7
+ icon?: FC<SVGProps<SVGSVGElement>>;
8
+ rightContent?: ReactNode;
9
+ hasSeparator?: boolean;
10
+ className?: string;
11
+ }
12
+ declare const Alert: ({ variant, color, text, isLoading, rightContent, hasSeparator, icon: Icon, className }: AlertProps) => import("react/jsx-runtime").JSX.Element;
13
+ //#endregion
14
+ export { Alert, AlertProps };