@povio/ui 2.3.2 → 3.0.0-rc.1

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 (352) hide show
  1. package/dist/assets/icons/AlignCenter.js +26 -11
  2. package/dist/assets/icons/AlignLeft.js +26 -11
  3. package/dist/assets/icons/AlignLeftRight.js +26 -11
  4. package/dist/assets/icons/AlignRight.js +26 -11
  5. package/dist/assets/icons/ArrowDropDown.js +26 -11
  6. package/dist/assets/icons/ArrowDropUp.js +26 -11
  7. package/dist/assets/icons/ArrowLeft.js +26 -11
  8. package/dist/assets/icons/ArrowRight.js +26 -11
  9. package/dist/assets/icons/Bold.js +26 -11
  10. package/dist/assets/icons/BulletedList.js +26 -11
  11. package/dist/assets/icons/Calendar.js +28 -13
  12. package/dist/assets/icons/Check.js +28 -13
  13. package/dist/assets/icons/CheckCircle.js +26 -11
  14. package/dist/assets/icons/CheckboxCheckmark.js +29 -14
  15. package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
  16. package/dist/assets/icons/ChevronDown.js +28 -13
  17. package/dist/assets/icons/ChevronLeft.js +28 -13
  18. package/dist/assets/icons/ChevronRight.js +28 -13
  19. package/dist/assets/icons/ChevronUp.js +28 -13
  20. package/dist/assets/icons/ChevronsLeft.js +28 -13
  21. package/dist/assets/icons/ChevronsRight.js +28 -13
  22. package/dist/assets/icons/Clock.js +26 -11
  23. package/dist/assets/icons/Close.js +26 -11
  24. package/dist/assets/icons/DateTime.js +35 -14
  25. package/dist/assets/icons/DragIndicator.js +26 -11
  26. package/dist/assets/icons/File.js +28 -13
  27. package/dist/assets/icons/Highlight.js +26 -11
  28. package/dist/assets/icons/HighlightOn.js +49 -15
  29. package/dist/assets/icons/Home.js +26 -11
  30. package/dist/assets/icons/Info.js +37 -16
  31. package/dist/assets/icons/Italic.js +26 -11
  32. package/dist/assets/icons/Link.js +26 -11
  33. package/dist/assets/icons/Menu.js +26 -11
  34. package/dist/assets/icons/NumberedList.js +26 -11
  35. package/dist/assets/icons/PointerHorizontal.js +26 -11
  36. package/dist/assets/icons/PointerVertical.js +26 -11
  37. package/dist/assets/icons/Search.js +26 -11
  38. package/dist/assets/icons/Send.js +28 -13
  39. package/dist/assets/icons/Strikethrough.js +26 -11
  40. package/dist/assets/icons/TextColor.js +48 -14
  41. package/dist/assets/icons/Today.js +26 -11
  42. package/dist/assets/icons/Underlined.js +28 -13
  43. package/dist/assets/icons/Upload.js +35 -14
  44. package/dist/assets/icons/Visibility.js +26 -11
  45. package/dist/assets/icons/VisibilityOff.js +26 -11
  46. package/dist/assets/icons/WarningFilled.js +28 -13
  47. package/dist/assets/locales/sl/translation.json.js +2 -2
  48. package/dist/components/Breadcrumbs/Breadcrumbs.js +215 -64
  49. package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +40 -14
  50. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +21 -18
  51. package/dist/components/Menu/Menu.js +18 -2
  52. package/dist/components/Menu/MenuDesktop.js +41 -7
  53. package/dist/components/Menu/MenuItem.js +35 -12
  54. package/dist/components/Menu/MenuMobile.js +103 -44
  55. package/dist/components/Menu/MenuPopover.js +110 -34
  56. package/dist/components/Menu/menu.cva.d.ts +35 -13
  57. package/dist/components/Menu/menu.cva.js +30 -24
  58. package/dist/components/buttons/Button/Button.js +7 -7
  59. package/dist/components/buttons/Button/button.cva.d.ts +95 -26
  60. package/dist/components/buttons/Button/button.cva.js +601 -589
  61. package/dist/components/buttons/IconButton/IconButton.js +40 -8
  62. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
  63. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
  64. package/dist/components/buttons/PillButton/PillButton.js +59 -21
  65. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +33 -9
  66. package/dist/components/buttons/PillButton/pillButton.cva.js +247 -239
  67. package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
  68. package/dist/components/buttons/TextButton/TextButton.js +30 -8
  69. package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
  70. package/dist/components/buttons/shared/ButtonContent.js +83 -25
  71. package/dist/components/buttons/shared/buttonContent.cva.d.ts +3 -5
  72. package/dist/components/buttons/shared/buttonContent.cva.js +1 -8
  73. package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
  74. package/dist/components/inputs/Checkbox/Checkbox.js +203 -37
  75. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +28 -14
  76. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +26 -10
  77. package/dist/components/inputs/Checkbox/checkbox.cva.js +47 -40
  78. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +12 -5
  79. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +371 -75
  80. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
  81. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +596 -218
  82. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +13 -5
  83. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +267 -47
  84. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +7 -3
  85. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +611 -121
  86. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
  87. package/dist/components/inputs/DateTime/shared/Calendar.js +338 -119
  88. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +4 -2
  89. package/dist/components/inputs/DateTime/shared/CalendarCell.js +310 -103
  90. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +4 -2
  91. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -33
  92. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +249 -93
  93. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
  94. package/dist/components/inputs/DateTime/shared/DateField.js +286 -112
  95. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +13 -3
  96. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +387 -143
  97. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +15 -0
  98. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +96 -11
  99. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +84 -30
  100. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
  101. package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
  102. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
  103. package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
  104. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
  105. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
  106. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +214 -69
  107. package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
  108. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +5 -0
  109. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +27 -0
  110. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +15 -0
  111. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +15 -0
  112. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +32 -0
  113. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
  114. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
  115. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +40 -0
  116. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +85 -0
  117. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
  118. package/dist/components/inputs/File/FileUpload.js +87 -44
  119. package/dist/components/inputs/File/FileUploadContainer.js +15 -7
  120. package/dist/components/inputs/File/InputUpload.js +317 -79
  121. package/dist/components/inputs/File/shared/FileCard.js +104 -41
  122. package/dist/components/inputs/File/shared/FileCardList.js +47 -12
  123. package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
  124. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
  125. package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
  126. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
  127. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
  128. package/dist/components/inputs/File/shared/InputUploadContent.js +151 -37
  129. package/dist/components/inputs/File/shared/InputUploadFilled.js +51 -10
  130. package/dist/components/inputs/File/shared/ProgressBar.js +48 -9
  131. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +26 -9
  132. package/dist/components/inputs/File/shared/fileUpload.cva.js +48 -40
  133. package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +23 -6
  134. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +29 -20
  135. package/dist/components/inputs/FormField/FormField.d.ts +3 -3
  136. package/dist/components/inputs/FormField/FormField.js +119 -37
  137. package/dist/components/inputs/FormField/FormFieldError.js +27 -7
  138. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
  139. package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
  140. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
  141. package/dist/components/inputs/FormField/FormFieldHelper.js +28 -8
  142. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
  143. package/dist/components/inputs/FormField/FormFieldLabel.js +46 -15
  144. package/dist/components/inputs/FormField/formFieldError.cva.d.ts +12 -5
  145. package/dist/components/inputs/FormField/formFieldError.cva.js +11 -8
  146. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +22 -0
  147. package/dist/components/inputs/FormField/formFieldHeader.cva.js +13 -0
  148. package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +12 -5
  149. package/dist/components/inputs/FormField/formFieldHelper.cva.js +11 -8
  150. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
  151. package/dist/components/inputs/Input/NumberInput/NumberInput.js +450 -100
  152. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
  153. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
  154. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
  155. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +575 -0
  156. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
  157. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +12 -0
  158. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +4 -0
  159. package/dist/components/inputs/Input/TextArea/TextArea.js +309 -94
  160. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
  161. package/dist/components/inputs/Input/TextInput/TextInput.js +422 -93
  162. package/dist/components/inputs/Input/shared/InputContent.js +196 -63
  163. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
  164. package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
  165. package/dist/components/inputs/Inputs/Form.js +40 -11
  166. package/dist/components/inputs/Inputs/InputItem.d.ts +15 -21
  167. package/dist/components/inputs/Inputs/InputItem.js +69 -14
  168. package/dist/components/inputs/Inputs/Inputs.js +37 -11
  169. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
  170. package/dist/components/inputs/RadioGroup/RadioGroup.js +356 -64
  171. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +101 -6
  172. package/dist/components/inputs/RadioGroup/radio.cva.js +74 -24
  173. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
  174. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +214 -22
  175. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
  176. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +104 -8
  177. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +36 -0
  178. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
  179. package/dist/components/inputs/Selection/Select/QuerySelect.js +173 -0
  180. package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
  181. package/dist/components/inputs/Selection/Select/Select.js +225 -18
  182. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
  183. package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
  184. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
  185. package/dist/components/inputs/Selection/shared/SelectDesktop.js +396 -141
  186. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  187. package/dist/components/inputs/Selection/shared/SelectInput.js +398 -119
  188. package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
  189. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
  190. package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
  191. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +88 -38
  192. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +72 -19
  193. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +73 -24
  194. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
  195. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
  196. package/dist/components/inputs/Selection/shared/SelectMobile.js +9 -3
  197. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
  198. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
  199. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +12 -0
  200. package/dist/components/inputs/Selection/shared/querySelect.utils.js +36 -0
  201. package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
  202. package/dist/components/inputs/Selection/shared/select.context.js +67 -36
  203. package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
  204. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +10 -0
  205. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +4 -0
  206. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +5 -0
  207. package/dist/components/inputs/Selection/shared/selectInput.cva.js +5 -0
  208. package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +16 -6
  209. package/dist/components/inputs/Selection/shared/selectItem.cva.js +21 -18
  210. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
  211. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +37 -0
  212. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
  213. package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
  214. package/dist/components/inputs/Skeleton/InputFrame.d.ts +82 -0
  215. package/dist/components/inputs/Skeleton/InputFrame.js +548 -0
  216. package/dist/components/inputs/Slider/Slider.d.ts +2 -1
  217. package/dist/components/inputs/Slider/Slider.js +265 -76
  218. package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
  219. package/dist/components/inputs/TextEditor/TextEditor.js +450 -101
  220. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
  221. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +105 -33
  222. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
  223. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
  224. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
  225. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
  226. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
  227. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
  228. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
  229. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
  230. package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
  231. package/dist/components/inputs/Toggle/Toggle.js +217 -40
  232. package/dist/components/inputs/Toggle/toggle.cva.d.ts +15 -6
  233. package/dist/components/inputs/Toggle/toggle.cva.js +25 -21
  234. package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
  235. package/dist/components/inputs/shared/CheckContent.js +23 -13
  236. package/dist/components/inputs/shared/InputClear.d.ts +2 -1
  237. package/dist/components/inputs/shared/InputClear.js +88 -12
  238. package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
  239. package/dist/components/inputs/shared/input.cva.d.ts +137 -16
  240. package/dist/components/inputs/shared/input.cva.js +317 -273
  241. package/dist/components/inputs/shared/label.cva.d.ts +15 -6
  242. package/dist/components/inputs/shared/label.cva.js +28 -25
  243. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +12 -0
  244. package/dist/components/inputs/shared/tooltipWrapper.cva.js +4 -0
  245. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +14 -0
  246. package/dist/components/inputs/shared/useStaticInputHandoff.js +100 -0
  247. package/dist/components/navigation/Accordion/Accordion.js +71 -24
  248. package/dist/components/navigation/Accordion/AccordionItem.js +97 -52
  249. package/dist/components/navigation/Accordion/accordion.cva.d.ts +109 -44
  250. package/dist/components/navigation/Accordion/accordion.cva.js +114 -84
  251. package/dist/components/navigation/Stepper/Stepper.js +69 -24
  252. package/dist/components/navigation/Stepper/StepperItem.js +112 -39
  253. package/dist/components/navigation/Stepper/StepperSeparator.js +25 -7
  254. package/dist/components/navigation/Stepper/stepper.cva.d.ts +86 -30
  255. package/dist/components/navigation/Stepper/stepper.cva.js +104 -83
  256. package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
  257. package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
  258. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
  259. package/dist/components/overlays/Drawer/Drawer.js +62 -20
  260. package/dist/components/overlays/Modal/Modal.js +5 -5
  261. package/dist/components/overlays/Modal/modal.cva.d.ts +34 -9
  262. package/dist/components/overlays/Modal/modal.cva.js +38 -27
  263. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +86 -30
  264. package/dist/components/overlays/Tooltip/Tooltip.js +143 -34
  265. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
  266. package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +45 -17
  267. package/dist/components/overlays/Tooltip/tooltip.cva.js +38 -26
  268. package/dist/components/segment/Segment.js +221 -60
  269. package/dist/components/segment/SegmentItem.js +70 -13
  270. package/dist/components/segment/segment.cva.d.ts +18 -7
  271. package/dist/components/segment/segment.cva.js +24 -21
  272. package/dist/components/shared/pagination/Pagination.js +108 -22
  273. package/dist/components/shared/pagination/PaginationList.js +167 -64
  274. package/dist/components/shared/popover.cva.d.ts +7 -3
  275. package/dist/components/shared/popover.cva.js +3 -3
  276. package/dist/components/status/Alert/Alert.js +103 -36
  277. package/dist/components/status/Alert/alert.cva.d.ts +18 -6
  278. package/dist/components/status/Alert/alert.cva.js +60 -57
  279. package/dist/components/status/Loader/Loader.js +77 -22
  280. package/dist/components/status/Loader/loader.cva.d.ts +23 -4
  281. package/dist/components/status/Loader/loader.cva.js +22 -13
  282. package/dist/components/status/Toast/Toast.js +27 -20
  283. package/dist/components/status/Toast/toast.cva.d.ts +61 -10
  284. package/dist/components/status/Toast/toast.cva.js +129 -64
  285. package/dist/components/status/Toast/useToast.js +62 -57
  286. package/dist/components/status/shared/status.cva.d.ts +30 -8
  287. package/dist/components/status/shared/status.cva.js +56 -50
  288. package/dist/components/table/CellText.js +3 -3
  289. package/dist/components/table/ColumnConfig.js +158 -54
  290. package/dist/components/table/HeaderText.js +3 -3
  291. package/dist/components/table/InfiniteTable.js +67 -16
  292. package/dist/components/table/PaginatedTable.js +84 -18
  293. package/dist/components/table/Table.js +34 -33
  294. package/dist/components/table/table.cva.d.ts +52 -19
  295. package/dist/components/table/table.cva.js +44 -35
  296. package/dist/components/text/Link/Link.js +22 -10
  297. package/dist/components/text/Link/link.cva.d.ts +11 -5
  298. package/dist/components/text/Link/link.cva.js +8 -5
  299. package/dist/components/text/Tag/Tag.js +3 -3
  300. package/dist/components/text/Tag/tag.cva.d.ts +15 -5
  301. package/dist/components/text/Tag/tag.cva.js +51 -48
  302. package/dist/components/text/Typography/Typography.js +25 -10
  303. package/dist/components/text/Typography/typography.cva.d.ts +93 -7
  304. package/dist/components/text/Typography/typography.cva.js +126 -122
  305. package/dist/config/confirmation.context.js +1 -1
  306. package/dist/config/link.context.js +23 -9
  307. package/dist/config/router.context.js +42 -16
  308. package/dist/config/theme.context.js +98 -45
  309. package/dist/config/uiConfig.context.d.ts +20 -6
  310. package/dist/config/uiConfig.context.js +68 -14
  311. package/dist/config/uiOverrides.context.d.ts +192 -0
  312. package/dist/config/uiOverrides.context.js +113 -0
  313. package/dist/helpers/dynamicInputs.d.ts +5 -5
  314. package/dist/helpers/dynamicInputs.js +3 -0
  315. package/dist/hooks/useAutosave.d.ts +2 -1
  316. package/dist/hooks/useAutosave.js +12 -4
  317. package/dist/hooks/useAutosave.spec.d.ts +1 -0
  318. package/dist/hooks/useBreakpoint.js +16 -3
  319. package/dist/hooks/useDebounceCallback.js +51 -17
  320. package/dist/hooks/useFilters.js +125 -64
  321. package/dist/hooks/useForm.js +42 -8
  322. package/dist/hooks/useFormAutosave.d.ts +3 -1
  323. package/dist/hooks/useFormAutosave.js +122 -30
  324. package/dist/hooks/useFormAutosave.spec.d.ts +1 -0
  325. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  326. package/dist/hooks/useIntersectionObserver.js +91 -24
  327. package/dist/hooks/useKeyInteractions.d.ts +20 -0
  328. package/dist/hooks/useKeyInteractions.js +54 -0
  329. package/dist/hooks/useKeyInteractions.spec.d.ts +1 -0
  330. package/dist/hooks/useLocalStorage.js +43 -10
  331. package/dist/hooks/useLongPressRepeat.js +55 -20
  332. package/dist/hooks/usePagination.js +49 -19
  333. package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
  334. package/dist/hooks/useQueryAutocomplete.js +57 -0
  335. package/dist/hooks/useScrollableListBox.js +37 -16
  336. package/dist/hooks/useSorting.js +69 -28
  337. package/dist/hooks/useStateAndRef.js +21 -7
  338. package/dist/hooks/useTableColumnConfig.js +124 -31
  339. package/dist/hooks/useTranslationMemo.js +25 -5
  340. package/dist/index.d.ts +37 -1
  341. package/dist/index.js +34 -3
  342. package/dist/tw-ui-plugin.js +6 -0
  343. package/dist/utils/date-time.utils.d.ts +38 -10
  344. package/dist/utils/date-time.utils.js +136 -22
  345. package/dist/utils/query.utils.d.ts +4 -0
  346. package/dist/utils/query.utils.js +8 -0
  347. package/dist/utils/style-merge.util.d.ts +43 -0
  348. package/dist/utils/style-merge.util.js +233 -0
  349. package/dist/utils/style-merge.util.spec.d.ts +1 -0
  350. package/package.json +1 -1
  351. package/dist/config/uiStyle.context.d.ts +0 -162
  352. package/dist/config/uiStyle.context.js +0 -30
@@ -1,28 +1,94 @@
1
1
  import { Pagination } from "../shared/pagination/Pagination.js";
2
2
  import { Table } from "./Table.js";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
5
  //#region src/components/table/PaginatedTable.tsx
5
- var PaginatedTable = ({ pagination, setPagination, items, totalItems, ...rest }) => {
6
- return /* @__PURE__ */ jsxs("div", {
7
- className: "flex flex-col gap-4",
8
- children: [/* @__PURE__ */ jsx(Table, {
6
+ var PaginatedTable = (t0) => {
7
+ const $ = c(24);
8
+ let items;
9
+ let pagination;
10
+ let rest;
11
+ let setPagination;
12
+ let totalItems;
13
+ if ($[0] !== t0) {
14
+ ({pagination, setPagination, items, totalItems, ...rest} = t0);
15
+ $[0] = t0;
16
+ $[1] = items;
17
+ $[2] = pagination;
18
+ $[3] = rest;
19
+ $[4] = setPagination;
20
+ $[5] = totalItems;
21
+ } else {
22
+ items = $[1];
23
+ pagination = $[2];
24
+ rest = $[3];
25
+ setPagination = $[4];
26
+ totalItems = $[5];
27
+ }
28
+ let t1;
29
+ if ($[6] !== items) {
30
+ t1 = items ?? [];
31
+ $[6] = items;
32
+ $[7] = t1;
33
+ } else t1 = $[7];
34
+ let t2;
35
+ if ($[8] !== rest || $[9] !== t1) {
36
+ t2 = /* @__PURE__ */ jsx(Table, {
9
37
  ...rest,
10
- items: items ?? []
11
- }), /* @__PURE__ */ jsx(Pagination, {
38
+ items: t1
39
+ });
40
+ $[8] = rest;
41
+ $[9] = t1;
42
+ $[10] = t2;
43
+ } else t2 = $[10];
44
+ const t3 = totalItems ?? 0;
45
+ let t4;
46
+ let t5;
47
+ if ($[11] !== pagination || $[12] !== setPagination) {
48
+ t4 = (page) => setPagination({
49
+ ...pagination,
50
+ pageIndex: page
51
+ });
52
+ t5 = (pageSize) => setPagination({
53
+ ...pagination,
54
+ pageSize,
55
+ pageIndex: 1
56
+ });
57
+ $[11] = pagination;
58
+ $[12] = setPagination;
59
+ $[13] = t4;
60
+ $[14] = t5;
61
+ } else {
62
+ t4 = $[13];
63
+ t5 = $[14];
64
+ }
65
+ let t6;
66
+ if ($[15] !== pagination.pageIndex || $[16] !== pagination.pageSize || $[17] !== t3 || $[18] !== t4 || $[19] !== t5) {
67
+ t6 = /* @__PURE__ */ jsx(Pagination, {
12
68
  page: pagination.pageIndex,
13
69
  pageSize: pagination.pageSize,
14
- totalItems: totalItems ?? 0,
15
- onPageChange: (page) => setPagination({
16
- ...pagination,
17
- pageIndex: page
18
- }),
19
- onPageSizeChange: (pageSize) => setPagination({
20
- ...pagination,
21
- pageSize,
22
- pageIndex: 1
23
- })
24
- })]
25
- });
70
+ totalItems: t3,
71
+ onPageChange: t4,
72
+ onPageSizeChange: t5
73
+ });
74
+ $[15] = pagination.pageIndex;
75
+ $[16] = pagination.pageSize;
76
+ $[17] = t3;
77
+ $[18] = t4;
78
+ $[19] = t5;
79
+ $[20] = t6;
80
+ } else t6 = $[20];
81
+ let t7;
82
+ if ($[21] !== t2 || $[22] !== t6) {
83
+ t7 = /* @__PURE__ */ jsxs("div", {
84
+ className: "flex flex-col gap-4",
85
+ children: [t2, t6]
86
+ });
87
+ $[21] = t2;
88
+ $[22] = t6;
89
+ $[23] = t7;
90
+ } else t7 = $[23];
91
+ return t7;
26
92
  };
27
93
  //#endregion
28
94
  export { PaginatedTable };
@@ -1,9 +1,10 @@
1
+ "use no memo";
1
2
  import { ChevronDownIcon } from "../../assets/icons/ChevronDown.js";
2
3
  import { ChevronUpIcon } from "../../assets/icons/ChevronUp.js";
3
- import { UIStyle } from "../../config/uiStyle.context.js";
4
+ import { UIOverrides } from "../../config/uiOverrides.context.js";
4
5
  import { InlineIconButton } from "../buttons/InlineIconButton/InlineIconButton.js";
5
6
  import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
6
- import { tableData, tableHeadData, tableHeadRow, tableRow } from "./table.cva.js";
7
+ import { tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableRowDefinition } from "./table.cva.js";
7
8
  import { CellText } from "./CellText.js";
8
9
  import { DragIndicatorIcon } from "../../assets/icons/DragIndicator.js";
9
10
  import { HeaderText } from "./HeaderText.js";
@@ -26,8 +27,8 @@ var CustomCellContext = (context) => {
26
27
  value: context.getValue()
27
28
  };
28
29
  };
29
- var CellRender = (Comp, props) => {
30
- const rendered = typeof Comp === "function" ? Comp(props) : Comp;
30
+ var renderCell = (Comp, props) => {
31
+ const rendered = flexRender(Comp, props);
31
32
  return typeof rendered === "string" ? /* @__PURE__ */ jsx(CellText, { children: rendered }) : rendered;
32
33
  };
33
34
  var RowDragHandleCell = ({ rowId }) => {
@@ -68,16 +69,16 @@ var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCv
68
69
  return /* @__PURE__ */ jsx("td", {
69
70
  tabIndex: -1,
70
71
  className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta.cellClass, columnMeta.width),
71
- children: CellRender(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
72
+ children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
72
73
  }, cell.id);
73
74
  })
74
75
  });
75
76
  };
76
77
  var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
77
- const tableRowCva = UIStyle.useCva("table.rowCva", tableRow);
78
- const tableHeadRowCva = UIStyle.useCva("table.headRowCva", tableHeadRow);
79
- const tableHeadDataCva = UIStyle.useCva("table.headDataCva", tableHeadData);
80
- const tableDataCva = UIStyle.useCva("table.dataCva", tableData);
78
+ const tableRowCva = UIOverrides.useCva("table.rowCva", tableRowDefinition);
79
+ const tableHeadRowCva = UIOverrides.useCva("table.headRowCva", tableHeadRowDefinition);
80
+ const tableHeadDataCva = UIOverrides.useCva("table.headDataCva", tableHeadDataDefinition);
81
+ const tableDataCva = UIOverrides.useCva("table.dataCva", tableDataDefinition);
81
82
  const ref = useRef(null);
82
83
  const { listeners } = useTableNav();
83
84
  const getCoreRowModelCallback = useCallback(getCoreRowModel, []);
@@ -154,8 +155,8 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
154
155
  if (!active || !over || active.id === over.id) return;
155
156
  if (getRowId && (onReorder || onDragEnd)) {
156
157
  if (onReorder) {
157
- const oldIndex = items.findIndex((item) => getRowId(item) === active.id);
158
- const newIndex = items.findIndex((item) => getRowId(item) === over.id);
158
+ const oldIndex = items.findIndex((item_0) => getRowId(item_0) === active.id);
159
+ const newIndex = items.findIndex((item_1) => getRowId(item_1) === over.id);
159
160
  if (oldIndex !== -1 && newIndex !== -1) onReorder(arrayMove(items, oldIndex, newIndex));
160
161
  }
161
162
  onDragEnd?.(event);
@@ -185,18 +186,18 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
185
186
  children: headerGroup.headers.filter((header) => {
186
187
  if (isAnyRowSelected && header.index > 0) return false;
187
188
  return header.column.getIsVisible();
188
- }).map((header, index) => {
189
- const columnMeta = header.column.columnDef.meta ?? {};
189
+ }).map((header_0, index) => {
190
+ const columnMeta = header_0.column.columnDef.meta ?? {};
190
191
  return /* @__PURE__ */ jsx("th", {
191
- colSpan: isAnyRowSelected ? columnCount : header.colSpan,
192
+ colSpan: isAnyRowSelected ? columnCount : header_0.colSpan,
192
193
  tabIndex: -1,
193
194
  className: clsx(tableHeadDataCva({ hasRightBorder: index > 0 && showCellBorder }), columnMeta.headerClass, columnMeta.width),
194
195
  children: isAnyRowSelected ? /* @__PURE__ */ jsx(ActionHeader, { table }) : /* @__PURE__ */ jsxs("button", {
195
196
  type: "button",
196
197
  "aria-label": "Sort column",
197
- className: clsx("flex select-none items-center gap-1 text-text-default-1", header.column.getCanSort() ? "h-6 cursor-pointer rounded-xs px-1 hover:bg-elevation-fill-default-2" : "cursor-default", columnMeta.sortClass),
198
- onClick: header.column.getToggleSortingHandler(),
199
- children: [typeof header.column.columnDef.header === "function" ? flexRender(header.column.columnDef.header, header.getContext()) : /* @__PURE__ */ jsx(HeaderText, { children: header.column.columnDef.header }), {
198
+ className: clsx("flex select-none items-center gap-1 text-text-default-1", header_0.column.getCanSort() ? "h-6 cursor-pointer rounded-xs px-1 hover:bg-elevation-fill-default-2" : "cursor-default", columnMeta.sortClass),
199
+ onClick: header_0.column.getToggleSortingHandler(),
200
+ children: [typeof header_0.column.columnDef.header === "function" ? flexRender(header_0.column.columnDef.header, header_0.getContext()) : /* @__PURE__ */ jsx(HeaderText, { children: header_0.column.columnDef.header }), {
200
201
  asc: /* @__PURE__ */ jsx(ChevronUpIcon, {
201
202
  width: 18,
202
203
  height: 18
@@ -205,9 +206,9 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
205
206
  width: 18,
206
207
  height: 18
207
208
  })
208
- }[header.column.getIsSorted()] ?? null]
209
+ }[header_0.column.getIsSorted()] ?? null]
209
210
  })
210
- }, header.id);
211
+ }, header_0.id);
211
212
  })
212
213
  }, headerGroup.id))]
213
214
  }), /* @__PURE__ */ jsx("tbody", {
@@ -216,8 +217,8 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
216
217
  children: enableDragDrop ? /* @__PURE__ */ jsx(SortableContext, {
217
218
  items: dataIds,
218
219
  strategy: verticalListSortingStrategy,
219
- children: table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx(DraggableRow, {
220
- row,
220
+ children: table.getRowModel().rows.map((row_0) => /* @__PURE__ */ jsx(DraggableRow, {
221
+ row: row_0,
221
222
  showCellBorder,
222
223
  onRowClick,
223
224
  onDoubleClick,
@@ -226,29 +227,29 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
226
227
  tableDataCva,
227
228
  hasOnClick,
228
229
  ...props
229
- }, row.id))
230
- }) : table.getRowModel().rows.map((row) => {
230
+ }, row_0.id))
231
+ }) : table.getRowModel().rows.map((row_1) => {
231
232
  return /* @__PURE__ */ jsx("tr", {
232
233
  className: clsx(tableRowCva({ ...props })),
233
234
  onClick: () => {
234
235
  if (onRowClick) {
235
- onRowClick(row.original);
236
+ onRowClick(row_1.original);
236
237
  return;
237
238
  }
238
- if (row.getCanSelect()) row.toggleSelected();
239
+ if (row_1.getCanSelect()) row_1.toggleSelected();
239
240
  },
240
- onDoubleClick: () => onDoubleClick?.(row.original),
241
- "data-clickable": hasOnClick || row.getCanSelect() || void 0,
242
- "data-selected": row.getIsSelected() || void 0,
243
- children: row.getVisibleCells().map((cell, cellIndex) => {
244
- const columnMeta = cell.column.columnDef.meta ?? {};
241
+ onDoubleClick: () => onDoubleClick?.(row_1.original),
242
+ "data-clickable": hasOnClick || row_1.getCanSelect() || void 0,
243
+ "data-selected": row_1.getIsSelected() || void 0,
244
+ children: row_1.getVisibleCells().map((cell, cellIndex) => {
245
+ const columnMeta_0 = cell.column.columnDef.meta ?? {};
245
246
  return /* @__PURE__ */ jsx("td", {
246
247
  tabIndex: -1,
247
- className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta.cellClass, columnMeta.width),
248
- children: CellRender(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
248
+ className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta_0.cellClass, columnMeta_0.width),
249
+ children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
249
250
  }, cell.id);
250
251
  })
251
- }, row.id);
252
+ }, row_1.id);
252
253
  })
253
254
  })]
254
255
  });
@@ -1,25 +1,58 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- export declare const tableRow: (props?: ({
3
- alternatingBackground?: "even" | "odd" | null | undefined;
4
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
- export interface TableRowVariantProps extends VariantProps<typeof tableRow> {
1
+ import { UIOverrides } from '../../config/uiOverrides.context';
2
+ export declare const tableRowDefinition: {
3
+ base: string[];
4
+ config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
5
+ readonly alternatingBackground: {
6
+ readonly even: "even:bg-elevation-fill-inverted-4/5";
7
+ readonly odd: "odd:bg-elevation-fill-inverted-4/5";
8
+ };
9
+ }>;
10
+ };
11
+ export type TableRowConfig = NonNullable<typeof tableRowDefinition.config>;
12
+ export interface TableRowVariantProps extends UIOverrides.VariantProps<TableRowConfig> {
6
13
  }
7
- export declare const tableHeadRow: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
8
- export interface TableHeadRowVariantProps extends VariantProps<typeof tableHeadRow> {
14
+ export declare const tableHeadRowDefinition: {
15
+ base: string[];
16
+ config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
17
+ };
18
+ export type TableHeadRowConfig = NonNullable<typeof tableHeadRowDefinition.config>;
19
+ export interface TableHeadRowVariantProps extends UIOverrides.VariantProps<TableHeadRowConfig> {
9
20
  }
10
- export declare const tableHeadData: (props?: ({
11
- hasRightBorder?: boolean | null | undefined;
12
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
- export interface TableHeadDataVariantProps extends VariantProps<typeof tableHeadData> {
21
+ export declare const tableHeadDataDefinition: {
22
+ base: string[];
23
+ config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
24
+ readonly hasRightBorder: {
25
+ readonly true: "border-l border-l-elevation-outline-default-1 border-solid";
26
+ readonly false: "";
27
+ };
28
+ }>;
29
+ };
30
+ export type TableHeadDataConfig = NonNullable<typeof tableHeadDataDefinition.config>;
31
+ export interface TableHeadDataVariantProps extends UIOverrides.VariantProps<TableHeadDataConfig> {
14
32
  }
15
- export declare const tableData: (props?: ({
16
- hasRightBorder?: boolean | null | undefined;
17
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
18
- export interface TableDataVariantProps extends VariantProps<typeof tableData> {
33
+ export declare const tableDataDefinition: {
34
+ base: string[];
35
+ config: import("../../utils/style-merge.util").StyleMergeUtils.Config<{
36
+ readonly hasRightBorder: {
37
+ readonly true: "border-l border-l-elevation-outline-default-1";
38
+ readonly false: "";
39
+ };
40
+ }>;
41
+ };
42
+ export type TableDataConfig = NonNullable<typeof tableDataDefinition.config>;
43
+ export interface TableDataVariantProps extends UIOverrides.VariantProps<TableDataConfig> {
19
44
  }
20
- export declare const tableHeaderText: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
21
- export interface TableHeaderTextVariantProps extends VariantProps<typeof tableHeaderText> {
45
+ export declare const tableHeaderTextDefinition: {
46
+ base: string[];
47
+ config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
48
+ };
49
+ export type TableHeaderTextConfig = NonNullable<typeof tableHeaderTextDefinition.config>;
50
+ export interface TableHeaderTextVariantProps extends UIOverrides.VariantProps<TableHeaderTextConfig> {
22
51
  }
23
- export declare const tableCellText: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
24
- export interface TableCellTextVariantProps extends VariantProps<typeof tableCellText> {
52
+ export declare const tableCellTextDefinition: {
53
+ base: string[];
54
+ config?: import("../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
55
+ };
56
+ export type TableCellTextConfig = NonNullable<typeof tableCellTextDefinition.config>;
57
+ export interface TableCellTextVariantProps extends UIOverrides.VariantProps<TableCellTextConfig> {
25
58
  }
@@ -1,39 +1,48 @@
1
- import { cva } from "class-variance-authority";
1
+ import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  //#region src/components/table/table.cva.ts
3
- var tableRow = cva([
4
- "h-9 max-h-12",
5
- "hover:bg-elevation-fill-default-2",
6
- "disabled:opacity-50",
7
- "selected:bg-elevation-fill-default-2",
8
- "hover:selected:bg-interactive-subtle-secondary-hover",
9
- "data-clickable:cursor-pointer",
10
- "focus-within:bg-elevation-fill-default-2"
11
- ], { variants: { alternatingBackground: {
12
- even: "even:bg-elevation-fill-inverted-4/5",
13
- odd: "odd:bg-elevation-fill-inverted-4/5"
14
- } } });
15
- var tableHeadRow = cva(["h-8 w-full"]);
16
- var tableHeadData = cva(["border-b border-b-elevation-outline-default-1 border-solid px-table-header-cell-container-side-default py-table-header-cell-container-height-default text-left", "group-data-[is-sticky=true]/table-head:bg-elevation-fill-default-1"], {
17
- variants: { hasRightBorder: {
18
- true: "border-l border-l-elevation-outline-default-1 border-solid",
19
- false: ""
20
- } },
21
- defaultVariants: { hasRightBorder: true }
3
+ var tableRowDefinition = UIOverrides.defineConfig({
4
+ base: [
5
+ "h-9 max-h-12",
6
+ "hover:bg-elevation-fill-default-2",
7
+ "disabled:opacity-50",
8
+ "selected:bg-elevation-fill-default-2",
9
+ "hover:selected:bg-interactive-subtle-secondary-hover",
10
+ "data-clickable:cursor-pointer",
11
+ "focus-within:bg-elevation-fill-default-2"
12
+ ],
13
+ config: { variants: { alternatingBackground: {
14
+ even: "even:bg-elevation-fill-inverted-4/5",
15
+ odd: "odd:bg-elevation-fill-inverted-4/5"
16
+ } } }
22
17
  });
23
- var tableData = cva([
24
- "relative h-0-5 overflow-hidden text-ellipsis whitespace-nowrap border-t border-t-transparent px-2",
25
- "border-b border-b-elevation-outline-default-1",
26
- "has-[*>[data-hovered]:not([data-disabled])]:hover:border-b-input-outlined-outline-hover",
27
- "has-[*>[data-invalid]]:border-b-input-outlined-outline-error!",
28
- "has-[*>[data-focused]]:border-b-input-outlined-outline-active"
29
- ], {
30
- variants: { hasRightBorder: {
31
- true: "border-l border-l-elevation-outline-default-1",
32
- false: ""
33
- } },
34
- defaultVariants: { hasRightBorder: true }
18
+ var tableHeadRowDefinition = UIOverrides.defineConfig({ base: ["h-8 w-full"] });
19
+ var tableHeadDataDefinition = UIOverrides.defineConfig({
20
+ base: ["border-b border-b-elevation-outline-default-1 border-solid px-table-header-cell-container-side-default py-table-header-cell-container-height-default text-left", "group-data-[is-sticky=true]/table-head:bg-elevation-fill-default-1"],
21
+ config: {
22
+ variants: { hasRightBorder: {
23
+ true: "border-l border-l-elevation-outline-default-1 border-solid",
24
+ false: ""
25
+ } },
26
+ defaultVariants: { hasRightBorder: true }
27
+ }
35
28
  });
36
- var tableHeaderText = cva(["overflow-hidden text-ellipsis px-table-cell-content-side-m py-table-cell-content-height-m text-text-default-1"]);
37
- var tableCellText = cva(["block overflow-hidden text-ellipsis text-text-default-2"]);
29
+ var tableDataDefinition = UIOverrides.defineConfig({
30
+ base: [
31
+ "relative h-0-5 overflow-hidden text-ellipsis whitespace-nowrap border-t border-t-transparent px-2",
32
+ "border-b border-b-elevation-outline-default-1",
33
+ "has-[*>[data-hovered]:not([data-disabled])]:hover:border-b-input-outlined-outline-hover",
34
+ "has-[*>[data-invalid]]:border-b-input-outlined-outline-error!",
35
+ "has-[*>[data-focused]]:border-b-input-outlined-outline-active"
36
+ ],
37
+ config: {
38
+ variants: { hasRightBorder: {
39
+ true: "border-l border-l-elevation-outline-default-1",
40
+ false: ""
41
+ } },
42
+ defaultVariants: { hasRightBorder: true }
43
+ }
44
+ });
45
+ var tableHeaderTextDefinition = UIOverrides.defineConfig({ base: ["overflow-hidden text-ellipsis px-table-cell-content-side-m py-table-cell-content-height-m text-text-default-1"] });
46
+ var tableCellTextDefinition = UIOverrides.defineConfig({ base: ["block overflow-hidden text-ellipsis text-text-default-2"] });
38
47
  //#endregion
39
- export { tableCellText, tableData, tableHeadData, tableHeadRow, tableHeaderText, tableRow };
48
+ export { tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition };
@@ -1,21 +1,33 @@
1
- import { UIStyle } from "../../../config/uiStyle.context.js";
1
+ import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { LinkContext } from "../../../config/link.context.js";
3
- import { link } from "./link.cva.js";
3
+ import { linkDefinition } from "./link.cva.js";
4
+ import { c } from "react/compiler-runtime";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
  import { Link } from "react-aria-components";
6
7
  //#region src/components/text/Link/Link.tsx
7
- var Link$1 = ({ variant, ...props }) => {
8
+ var Link$1 = (t0) => {
9
+ const $ = c(4);
10
+ const { variant, ...props } = t0;
8
11
  const linkContext = LinkContext.useLinkContext();
9
- const linkCva = UIStyle.useCva("link.cva", link);
12
+ const linkCva = UIOverrides.useCva("link.cva", linkDefinition);
10
13
  const LinkComponent = linkContext?.LinkComponent ?? Link;
11
14
  if (!props.to && props.href) props.to = props.href;
12
- return /* @__PURE__ */ jsx(LinkComponent, {
13
- ...props,
14
- className: linkCva({
15
- variant,
16
- className: props.className
17
- })
15
+ const t1 = linkCva({
16
+ variant,
17
+ className: props.className
18
18
  });
19
+ let t2;
20
+ if ($[0] !== LinkComponent || $[1] !== props || $[2] !== t1) {
21
+ t2 = /* @__PURE__ */ jsx(LinkComponent, {
22
+ ...props,
23
+ className: t1
24
+ });
25
+ $[0] = LinkComponent;
26
+ $[1] = props;
27
+ $[2] = t1;
28
+ $[3] = t2;
29
+ } else t2 = $[3];
30
+ return t2;
19
31
  };
20
32
  //#endregion
21
33
  export { Link$1 as Link };
@@ -1,6 +1,12 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- export declare const link: (props?: ({
3
- variant?: "default" | null | undefined;
4
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
- export interface LinkVariantProps extends VariantProps<typeof link> {
1
+ import { UIOverrides } from '../../../config/uiOverrides.context';
2
+ export declare const linkDefinition: {
3
+ base: string[];
4
+ config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
5
+ readonly variant: {
6
+ readonly default: ["text-interactive-text-primary-idle focus-visible:outline-interactive-text-primary-focus", "hover:text-interactive-text-primary-hover focus-visible:text-interactive-text-primary-focus active:text-interactive-text-primary-pressed"];
7
+ };
8
+ }>;
9
+ };
10
+ export type LinkConfig = NonNullable<typeof linkDefinition.config>;
11
+ export interface LinkVariantProps extends UIOverrides.VariantProps<LinkConfig> {
6
12
  }
@@ -1,9 +1,12 @@
1
+ import { UIOverrides } from "../../../config/uiOverrides.context.js";
1
2
  import { uiOutlineClass } from "../../outline.clsx.js";
2
- import { cva } from "class-variance-authority";
3
3
  //#region src/components/text/Link/link.cva.ts
4
- var link = cva(["underline", uiOutlineClass], {
5
- variants: { variant: { default: ["text-interactive-text-primary-idle focus-visible:outline-interactive-text-primary-focus", "hover:text-interactive-text-primary-hover focus-visible:text-interactive-text-primary-focus active:text-interactive-text-primary-pressed"] } },
6
- defaultVariants: { variant: "default" }
4
+ var linkDefinition = UIOverrides.defineConfig({
5
+ base: ["underline", uiOutlineClass],
6
+ config: {
7
+ variants: { variant: { default: ["text-interactive-text-primary-idle focus-visible:outline-interactive-text-primary-focus", "hover:text-interactive-text-primary-hover focus-visible:text-interactive-text-primary-focus active:text-interactive-text-primary-pressed"] } },
8
+ defaultVariants: { variant: "default" }
9
+ }
7
10
  });
8
11
  //#endregion
9
- export { link };
12
+ export { linkDefinition };
@@ -1,9 +1,9 @@
1
1
  import { CloseIcon } from "../../../assets/icons/Close.js";
2
- import { UIStyle } from "../../../config/uiStyle.context.js";
2
+ import { UIOverrides } from "../../../config/uiOverrides.context.js";
3
3
  import { Typography } from "../Typography/Typography.js";
4
4
  import { UIConfig } from "../../../config/uiConfig.context.js";
5
5
  import "../../../config/i18n.js";
6
- import { tag } from "./tag.cva.js";
6
+ import { tagDefinition } from "./tag.cva.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { clsx } from "clsx";
9
9
  import { Button } from "react-aria-components";
@@ -12,7 +12,7 @@ import { useTranslation } from "react-i18next";
12
12
  var Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
13
13
  const uiConfig = UIConfig.useConfig();
14
14
  const { textVariant = uiConfig.tag.textVariant, textSize = uiConfig.tag.textSize } = props;
15
- const tagCva = UIStyle.useCva("tag.cva", tag);
15
+ const tagCva = UIOverrides.useCva("tag.cva", tagDefinition);
16
16
  const { t } = useTranslation("ui");
17
17
  const buttonProps = {
18
18
  isDisabled,
@@ -1,6 +1,16 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- export declare const tag: (props?: ({
3
- color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
4
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
- export interface TagVariantProps extends VariantProps<typeof tag> {
1
+ import { UIOverrides } from '../../../config/uiOverrides.context';
2
+ export declare const tagDefinition: {
3
+ base: string[];
4
+ config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
5
+ readonly color: {
6
+ readonly primary: ["bg-interactive-subtle-primary-idle text-interactive-subtle-primary-on-idle", "hover:bg-interactive-subtle-primary-hover hover:text-interactive-subtle-primary-on-hover", "pressed:bg-interactive-subtle-primary-pressed pressed:text-interactive-subtle-primary-on-pressed", "disabled:bg-interactive-subtle-primary-disabled disabled:text-interactive-subtle-primary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
7
+ readonly secondary: ["bg-interactive-subtle-secondary-idle text-interactive-subtle-secondary-on-idle", "hover:bg-interactive-subtle-secondary-hover hover:text-interactive-subtle-secondary-on-hover", "pressed:bg-interactive-subtle-secondary-pressed pressed:text-interactive-subtle-secondary-on-pressed", "disabled:bg-interactive-subtle-secondary-disabled disabled:text-interactive-subtle-secondary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
8
+ readonly success: ["bg-interactive-subtle-success-idle text-interactive-subtle-success-on-idle", "hover:bg-interactive-subtle-success-hover hover:text-interactive-subtle-success-on-hover", "pressed:bg-interactive-subtle-success-pressed pressed:text-interactive-subtle-success-on-pressed", "disabled:bg-interactive-subtle-success-disabled disabled:text-interactive-subtle-success-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
9
+ readonly warning: ["bg-interactive-subtle-warning-idle text-interactive-subtle-warning-on-idle", "hover:bg-interactive-subtle-warning-hover hover:text-interactive-subtle-warning-on-hover", "pressed:bg-interactive-subtle-warning-pressed pressed:text-interactive-subtle-warning-on-pressed", "disabled:bg-interactive-subtle-warning-disabled disabled:text-interactive-subtle-warning-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
10
+ readonly error: ["bg-interactive-subtle-error-idle text-interactive-subtle-error-on-idle", "hover:bg-interactive-subtle-error-hover hover:text-interactive-subtle-error-on-hover", "pressed:bg-interactive-subtle-error-pressed pressed:text-interactive-subtle-error-on-pressed", "disabled:bg-interactive-subtle-error-disabled disabled:text-interactive-subtle-error-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
11
+ };
12
+ }>;
13
+ };
14
+ export type TagConfig = NonNullable<typeof tagDefinition.config>;
15
+ export interface TagVariantProps extends UIOverrides.VariantProps<TagConfig> {
6
16
  }