@povio/ui 0.0.2 → 0.0.4

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 (485) hide show
  1. package/package.json +70 -9
  2. package/src/assets/icons/AlignCenter.tsx +16 -0
  3. package/src/assets/icons/AlignLeft.tsx +16 -0
  4. package/src/assets/icons/AlignLeftRight.tsx +16 -0
  5. package/src/assets/icons/AlignRight.tsx +16 -0
  6. package/src/assets/icons/ArrowDropDown.tsx +16 -0
  7. package/src/assets/icons/ArrowDropUp.tsx +16 -0
  8. package/src/assets/icons/ArrowLeft.tsx +16 -0
  9. package/src/assets/icons/ArrowRight.tsx +16 -0
  10. package/src/assets/icons/Bold.tsx +16 -0
  11. package/src/assets/icons/BulletedList.tsx +16 -0
  12. package/src/assets/icons/Calendar.tsx +18 -0
  13. package/src/assets/icons/Check.tsx +18 -0
  14. package/src/assets/icons/CheckCircle.tsx +16 -0
  15. package/src/assets/icons/CheckboxCheckmark.tsx +19 -0
  16. package/src/assets/icons/CheckboxIndeterminate.tsx +19 -0
  17. package/src/assets/icons/ChevronDown.tsx +18 -0
  18. package/src/assets/icons/ChevronLeft.tsx +18 -0
  19. package/src/assets/icons/ChevronRight.tsx +18 -0
  20. package/src/assets/icons/ChevronUp.tsx +18 -0
  21. package/src/assets/icons/ChevronsLeft.tsx +24 -0
  22. package/src/assets/icons/ChevronsRight.tsx +24 -0
  23. package/src/assets/icons/Clock.tsx +16 -0
  24. package/src/assets/icons/Close.tsx +16 -0
  25. package/src/assets/icons/DateTime.tsx +20 -0
  26. package/src/assets/icons/Drag.tsx +16 -0
  27. package/src/assets/icons/File.tsx +18 -0
  28. package/src/assets/icons/Highlight.tsx +16 -0
  29. package/src/assets/icons/HighlightOn.tsx +26 -0
  30. package/src/assets/icons/Info.tsx +24 -0
  31. package/src/assets/icons/Italic.tsx +16 -0
  32. package/src/assets/icons/Link.tsx +16 -0
  33. package/src/assets/icons/Menu.tsx +18 -0
  34. package/src/assets/icons/NumberedList.tsx +16 -0
  35. package/src/assets/icons/PointerHorizontal.tsx +16 -0
  36. package/src/assets/icons/PointerVertical.tsx +16 -0
  37. package/src/assets/icons/Send.tsx +18 -0
  38. package/src/assets/icons/Strikethrough.tsx +16 -0
  39. package/src/assets/icons/TextColor.tsx +24 -0
  40. package/src/assets/icons/Today.tsx +16 -0
  41. package/src/assets/icons/Underlined.tsx +18 -0
  42. package/src/assets/icons/Upload.tsx +20 -0
  43. package/src/assets/icons/View.tsx +16 -0
  44. package/src/assets/icons/ViewOff.tsx +16 -0
  45. package/src/assets/icons/Warningfilled.tsx +18 -0
  46. package/src/assets/locales/en/translation.json +156 -0
  47. package/src/assets/locales/sl/translation.json +152 -0
  48. package/src/components/Menu/Menu.tsx +29 -0
  49. package/src/components/Menu/MenuDesktop.tsx +68 -0
  50. package/src/components/Menu/MenuItem.tsx +33 -0
  51. package/src/components/Menu/MenuMobile.tsx +81 -0
  52. package/src/components/Menu/MenuPopover.tsx +45 -0
  53. package/src/components/buttons/Button/Button.tsx +108 -0
  54. package/src/components/buttons/Button/button.cva.ts +678 -0
  55. package/src/components/buttons/IconButton/IconButton.tsx +25 -0
  56. package/src/components/buttons/InlineIconButton/InlineIconButton.tsx +27 -0
  57. package/src/components/buttons/PillButton/PillButton.tsx +70 -0
  58. package/src/components/buttons/PillButton/pillButton.cva.ts +88 -0
  59. package/src/components/buttons/SplitButton/SplitButton.tsx +61 -0
  60. package/src/components/buttons/TextButton/TextButton.tsx +29 -0
  61. package/src/components/buttons/ToggleButton/ToggleButton.tsx +28 -0
  62. package/src/components/buttons/shared/ButtonContent.tsx +61 -0
  63. package/src/components/buttons/shared/buttonContent.cva.ts +18 -0
  64. package/src/components/inputs/Checkbox/Checkbox.tsx +101 -0
  65. package/src/components/inputs/Checkbox/CheckboxCheckmark.tsx +47 -0
  66. package/src/components/inputs/Checkbox/checkbox.cva.ts +51 -0
  67. package/src/components/inputs/DateTime/DatePicker/DatePicker.tsx +269 -0
  68. package/src/components/inputs/DateTime/DateRangePicker/DateRangePicker.tsx +808 -0
  69. package/src/components/inputs/DateTime/DateTimePicker/DateTimePicker.tsx +291 -0
  70. package/src/components/inputs/DateTime/TimePicker/TimePicker.tsx +255 -0
  71. package/src/components/inputs/DateTime/shared/Calendar.tsx +104 -0
  72. package/src/components/inputs/DateTime/shared/CalendarCell.tsx +247 -0
  73. package/src/components/inputs/DateTime/shared/CalendarGrid.tsx +102 -0
  74. package/src/components/inputs/DateTime/shared/CalendarHeader.tsx +110 -0
  75. package/src/components/inputs/DateTime/shared/CalendarSelectHeader.tsx +228 -0
  76. package/src/components/inputs/DateTime/shared/DateField.tsx +83 -0
  77. package/src/components/inputs/DateTime/shared/DatePickerInput.tsx +170 -0
  78. package/src/components/inputs/DateTime/shared/DateSegmentItem.tsx +65 -0
  79. package/src/components/inputs/DateTime/shared/DateTimeDialog.tsx +87 -0
  80. package/src/components/inputs/DateTime/shared/DateTimeDialogFooter.tsx +42 -0
  81. package/src/components/inputs/DateTime/shared/MonthPicker.tsx +91 -0
  82. package/src/components/inputs/DateTime/shared/RangeCalendar.tsx +160 -0
  83. package/src/components/inputs/DateTime/shared/TimeField.tsx +36 -0
  84. package/src/components/inputs/DateTime/shared/TimePickerForm.tsx +222 -0
  85. package/src/components/inputs/DateTime/shared/TimePickerInput.tsx +114 -0
  86. package/src/components/inputs/DateTime/shared/YearPicker.tsx +100 -0
  87. package/src/components/inputs/File/FileUpload.tsx +285 -0
  88. package/src/components/inputs/File/FileUploadContainer.tsx +16 -0
  89. package/src/components/inputs/File/InputUpload.tsx +196 -0
  90. package/src/components/inputs/File/fileUpload.types.ts +100 -0
  91. package/src/components/inputs/File/index.ts +15 -0
  92. package/src/components/inputs/File/inputUpload.types.ts +41 -0
  93. package/src/components/inputs/File/shared/FileCard.tsx +72 -0
  94. package/src/components/inputs/File/shared/FileCardList.tsx +30 -0
  95. package/src/components/inputs/File/shared/FileProgressBar.tsx +25 -0
  96. package/src/components/inputs/File/shared/FileUploadContent.tsx +99 -0
  97. package/src/components/inputs/File/shared/FileUploadContentEmpty.tsx +94 -0
  98. package/src/components/inputs/File/shared/FileUploadContentError.tsx +170 -0
  99. package/src/components/inputs/File/shared/FileUploadContentFilled.tsx +179 -0
  100. package/src/components/inputs/File/shared/FileUploadContentLoading.tsx +115 -0
  101. package/src/components/inputs/File/shared/InputUploadContent.tsx +68 -0
  102. package/src/components/inputs/File/shared/InputUploadFilled.tsx +32 -0
  103. package/src/components/inputs/File/shared/fileUpload.cva.ts +59 -0
  104. package/src/components/inputs/File/shared/inputUploadButton.cva.ts +48 -0
  105. package/src/components/inputs/FormField/FormField.tsx +69 -0
  106. package/src/components/inputs/FormField/FormFieldError.tsx +21 -0
  107. package/src/components/inputs/FormField/FormFieldHeader.tsx +75 -0
  108. package/src/components/inputs/FormField/FormFieldHeaderClose.tsx +23 -0
  109. package/src/components/inputs/FormField/FormFieldLabel.tsx +41 -0
  110. package/src/components/inputs/Input/NumberInput/NumberInput.tsx +180 -0
  111. package/src/components/inputs/Input/PasswordInput/PasswordInput.tsx +34 -0
  112. package/src/components/inputs/Input/TextArea/TextArea.tsx +166 -0
  113. package/src/components/inputs/Input/TextInput/TextInput.tsx +181 -0
  114. package/src/components/inputs/Input/shared/InputContent.tsx +154 -0
  115. package/src/components/inputs/Inputs/Form.tsx +129 -0
  116. package/src/components/inputs/Inputs/InputItem.tsx +127 -0
  117. package/src/components/inputs/Inputs/Inputs.tsx +43 -0
  118. package/src/components/inputs/RadioGroup/RadioGroup.tsx +139 -0
  119. package/src/components/inputs/RadioGroup/radio.cva.ts +51 -0
  120. package/src/components/inputs/Selection/Autocomplete/Autocomplete.tsx +61 -0
  121. package/src/components/inputs/Selection/Autocomplete/QueryAutocomplete.tsx +58 -0
  122. package/src/components/inputs/Selection/Select/Select.tsx +59 -0
  123. package/src/components/inputs/Selection/shared/SelectBase.tsx +69 -0
  124. package/src/components/inputs/Selection/shared/SelectDesktop.tsx +236 -0
  125. package/src/components/inputs/Selection/shared/SelectInput.tsx +278 -0
  126. package/src/components/inputs/Selection/shared/SelectListBox.tsx +121 -0
  127. package/src/components/inputs/Selection/shared/SelectListBoxItem.tsx +79 -0
  128. package/src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx +40 -0
  129. package/src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx +52 -0
  130. package/src/components/inputs/Selection/shared/SelectListBoxSelectionBar.tsx +39 -0
  131. package/src/components/inputs/Selection/shared/SelectMobile.tsx +169 -0
  132. package/src/components/inputs/Selection/shared/select.context.tsx +316 -0
  133. package/src/components/inputs/Selection/shared/select.types.ts +75 -0
  134. package/src/components/inputs/Selection/shared/useSelectItems.tsx +127 -0
  135. package/src/components/inputs/Slider/Slider.tsx +174 -0
  136. package/src/components/inputs/TextEditor/TextEditor.tsx +239 -0
  137. package/src/components/inputs/TextEditor/Toolbar/ColorPicker.tsx +34 -0
  138. package/src/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.tsx +74 -0
  139. package/src/components/inputs/TextEditor/Toolbar/HyperlinkAction.tsx +87 -0
  140. package/src/components/inputs/TextEditor/Toolbar/TextAlignSelect.tsx +64 -0
  141. package/src/components/inputs/TextEditor/Toolbar/TextColorSelect.tsx +30 -0
  142. package/src/components/inputs/TextEditor/Toolbar/TextEditorToolbar.tsx +40 -0
  143. package/src/components/inputs/TextEditor/Toolbar/TextHighlightSelect.tsx +39 -0
  144. package/src/components/inputs/TextEditor/Toolbar/TextListActions.tsx +57 -0
  145. package/src/components/inputs/TextEditor/Toolbar/TextMarksActions.tsx +79 -0
  146. package/src/components/inputs/TextEditor/Toolbar/TextStyleSelect.tsx +73 -0
  147. package/src/components/inputs/TextEditor/textEditor.types.ts +43 -0
  148. package/src/components/inputs/Toggle/Toggle.tsx +80 -0
  149. package/src/components/inputs/Toggle/toggle.cva.ts +48 -0
  150. package/src/components/inputs/shared/CheckContent.tsx +26 -0
  151. package/src/components/inputs/shared/InputClear.tsx +29 -0
  152. package/src/components/inputs/shared/form.types.ts +28 -0
  153. package/src/components/inputs/shared/input.cva.ts +182 -0
  154. package/src/components/inputs/shared/label.cva.ts +146 -0
  155. package/src/components/outline.clsx.ts +9 -0
  156. package/src/components/overlays/ActionModal/ActionModal.tsx +93 -0
  157. package/src/components/overlays/BottomSheet/BottomSheet.tsx +270 -0
  158. package/src/components/overlays/Drawer/Drawer.tsx +93 -0
  159. package/src/components/overlays/Modal/Modal.tsx +63 -0
  160. package/src/components/overlays/Modal/modal.cva.ts +55 -0
  161. package/src/components/overlays/ResponsivePopover/ResponsivePopover.tsx +77 -0
  162. package/src/components/overlays/Tooltip/Tooltip.tsx +47 -0
  163. package/src/components/overlays/Tooltip/TooltipEllipsis.tsx +35 -0
  164. package/src/components/segment/Segment.tsx +121 -0
  165. package/src/components/segment/SegmentItem.tsx +41 -0
  166. package/src/components/segment/segment.types.ts +44 -0
  167. package/src/components/shared/pagination/Pagination.tsx +75 -0
  168. package/src/components/shared/pagination/PaginationList.tsx +174 -0
  169. package/src/components/shared/pagination/minWidth.cva.ts +13 -0
  170. package/src/components/status/Alert/Alert.tsx +58 -0
  171. package/src/components/status/Alert/alert.cva.ts +66 -0
  172. package/src/components/status/Loader/Loader.tsx +32 -0
  173. package/src/components/status/Loader/loader.cva.ts +29 -0
  174. package/src/components/status/Toast/Toast.tsx +86 -0
  175. package/src/components/status/Toast/toast.cva.ts +154 -0
  176. package/src/components/status/Toast/useToast.tsx +77 -0
  177. package/src/components/status/shared/status.cva.ts +60 -0
  178. package/src/components/table/CellText.tsx +23 -0
  179. package/src/components/table/ColumnConfig.tsx +145 -0
  180. package/src/components/table/HeaderText.tsx +18 -0
  181. package/src/components/table/InfiniteTable.tsx +51 -0
  182. package/src/components/table/PaginatedTable.tsx +38 -0
  183. package/src/components/table/Table.tsx +456 -0
  184. package/src/components/table/table.cva.ts +47 -0
  185. package/src/components/text/Link/Link.tsx +21 -0
  186. package/src/components/text/Link/link.cva.ts +21 -0
  187. package/src/components/text/Tag/Tag.tsx +59 -0
  188. package/src/components/text/Tag/tag.cva.ts +62 -0
  189. package/src/components/text/Typography/Typography.tsx +33 -0
  190. package/src/components/text/Typography/typography.cva.ts +102 -0
  191. package/src/config/confirmation.context.tsx +133 -0
  192. package/src/config/i18n.ts +12 -0
  193. package/src/config/router.context.tsx +66 -0
  194. package/src/config/uiConfig.context.tsx +89 -0
  195. package/src/config/uiStyle.context.tsx +100 -0
  196. package/src/helpers/dynamicColumns.ts +567 -0
  197. package/src/helpers/dynamicInputs.ts +392 -0
  198. package/src/hooks/useAutosave.ts +109 -0
  199. package/src/hooks/useBreakpoint.ts +26 -0
  200. package/src/hooks/useDebounceCallback.ts +35 -0
  201. package/src/hooks/useDeepCompare.ts +27 -0
  202. package/src/hooks/useFilters.ts +154 -0
  203. package/src/hooks/useForm.ts +54 -0
  204. package/src/hooks/useFormAutosave.ts +100 -0
  205. package/src/hooks/useIntersectionObserver.ts +33 -0
  206. package/src/hooks/useLocalStorage.ts +81 -0
  207. package/src/hooks/useLongPressRepeat.ts +40 -0
  208. package/src/hooks/usePagination.ts +41 -0
  209. package/src/hooks/useScrollableListBox.ts +35 -0
  210. package/src/hooks/useSingletonMutation.ts +30 -0
  211. package/src/hooks/useSorting.ts +39 -0
  212. package/src/hooks/useStateAndRef.ts +20 -0
  213. package/src/hooks/useTableColumnConfig.ts +86 -0
  214. package/src/hooks/useTableNav.ts +615 -0
  215. package/src/hooks/useTranslationMemo.ts +17 -0
  216. package/src/index.ts +252 -0
  217. package/src/types/{common.d.ts → common.ts} +15 -4
  218. package/src/types/i18next.d.ts +11 -0
  219. package/src/types/react-query.ts +48 -0
  220. package/src/types/table.d.ts +17 -0
  221. package/src/utils/array.utils.spec.ts +16 -0
  222. package/src/utils/array.utils.ts +9 -0
  223. package/src/utils/compoundMapper.spec.ts +91 -0
  224. package/src/utils/compoundMapper.ts +42 -0
  225. package/src/utils/date-time.utils.spec.ts +48 -0
  226. package/src/utils/date-time.utils.ts +85 -0
  227. package/src/utils/date.utils.spec.ts +12 -0
  228. package/src/utils/date.utils.ts +9 -0
  229. package/src/utils/dom.utils.ts +16 -0
  230. package/src/utils/file.utils.ts +73 -0
  231. package/src/utils/isEqual.ts +153 -0
  232. package/src/utils/logger.ts +19 -0
  233. package/src/utils/object.utils.ts +62 -0
  234. package/src/utils/queries.utils.ts +10 -0
  235. package/src/utils/rest/interceptors/logging.interceptor.ts +16 -0
  236. package/src/utils/rest/interceptors/response.interceptor.ts +27 -0
  237. package/src/utils/rest/interceptors/rest-interceptor.ts +22 -0
  238. package/src/utils/rest/rest-client.ts +125 -0
  239. package/src/utils/rest/rest.utils.ts +65 -0
  240. package/src/utils/routing.utils.ts +12 -0
  241. package/src/utils/string.utils.ts +9 -0
  242. package/src/utils/vendor/error-handling.ts +170 -0
  243. package/src/utils/zod.utils.ts +95 -0
  244. package/index.js +0 -61206
  245. package/povio-ui-0.0.2.tgz +0 -0
  246. package/src/assets/icons/AlignCenter.d.ts +0 -2
  247. package/src/assets/icons/AlignLeft.d.ts +0 -2
  248. package/src/assets/icons/AlignLeftRight.d.ts +0 -2
  249. package/src/assets/icons/AlignRight.d.ts +0 -2
  250. package/src/assets/icons/ArrowDropDown.d.ts +0 -2
  251. package/src/assets/icons/ArrowDropUp.d.ts +0 -2
  252. package/src/assets/icons/ArrowLeft.d.ts +0 -2
  253. package/src/assets/icons/ArrowRight.d.ts +0 -2
  254. package/src/assets/icons/Bold.d.ts +0 -2
  255. package/src/assets/icons/BulletedList.d.ts +0 -2
  256. package/src/assets/icons/Calendar.d.ts +0 -2
  257. package/src/assets/icons/Check.d.ts +0 -2
  258. package/src/assets/icons/CheckCircle.d.ts +0 -2
  259. package/src/assets/icons/CheckboxCheckmark.d.ts +0 -2
  260. package/src/assets/icons/CheckboxIndeterminate.d.ts +0 -2
  261. package/src/assets/icons/ChevronDown.d.ts +0 -2
  262. package/src/assets/icons/ChevronLeft.d.ts +0 -2
  263. package/src/assets/icons/ChevronRight.d.ts +0 -2
  264. package/src/assets/icons/ChevronUp.d.ts +0 -2
  265. package/src/assets/icons/ChevronsLeft.d.ts +0 -2
  266. package/src/assets/icons/ChevronsRight.d.ts +0 -2
  267. package/src/assets/icons/Clock.d.ts +0 -2
  268. package/src/assets/icons/Close.d.ts +0 -2
  269. package/src/assets/icons/DateTime.d.ts +0 -2
  270. package/src/assets/icons/Drag.d.ts +0 -2
  271. package/src/assets/icons/File.d.ts +0 -2
  272. package/src/assets/icons/Highlight.d.ts +0 -2
  273. package/src/assets/icons/HighlightOn.d.ts +0 -6
  274. package/src/assets/icons/Info.d.ts +0 -2
  275. package/src/assets/icons/Italic.d.ts +0 -2
  276. package/src/assets/icons/Link.d.ts +0 -2
  277. package/src/assets/icons/Menu.d.ts +0 -2
  278. package/src/assets/icons/NumberedList.d.ts +0 -2
  279. package/src/assets/icons/PointerHorizontal.d.ts +0 -2
  280. package/src/assets/icons/PointerVertical.d.ts +0 -2
  281. package/src/assets/icons/Send.d.ts +0 -2
  282. package/src/assets/icons/Strikethrough.d.ts +0 -2
  283. package/src/assets/icons/TextColor.d.ts +0 -6
  284. package/src/assets/icons/Today.d.ts +0 -2
  285. package/src/assets/icons/Underlined.d.ts +0 -2
  286. package/src/assets/icons/Upload.d.ts +0 -2
  287. package/src/assets/icons/View.d.ts +0 -2
  288. package/src/assets/icons/ViewOff.d.ts +0 -2
  289. package/src/assets/icons/Warningfilled.d.ts +0 -2
  290. package/src/components/Menu/Menu.d.ts +0 -14
  291. package/src/components/Menu/MenuDesktop.d.ts +0 -2
  292. package/src/components/Menu/MenuItem.d.ts +0 -5
  293. package/src/components/Menu/MenuMobile.d.ts +0 -2
  294. package/src/components/Menu/MenuPopover.d.ts +0 -5
  295. package/src/components/buttons/Button/Button.d.ts +0 -27
  296. package/src/components/buttons/Button/button.cva.d.ts +0 -30
  297. package/src/components/buttons/IconButton/IconButton.d.ts +0 -10
  298. package/src/components/buttons/InlineIconButton/InlineIconButton.d.ts +0 -11
  299. package/src/components/buttons/PillButton/PillButton.d.ts +0 -11
  300. package/src/components/buttons/PillButton/pillButton.cva.d.ts +0 -14
  301. package/src/components/buttons/SplitButton/SplitButton.d.ts +0 -10
  302. package/src/components/buttons/TextButton/TextButton.d.ts +0 -11
  303. package/src/components/buttons/ToggleButton/ToggleButton.d.ts +0 -9
  304. package/src/components/buttons/shared/ButtonContent.d.ts +0 -16
  305. package/src/components/buttons/shared/buttonContent.cva.d.ts +0 -6
  306. package/src/components/inputs/Checkbox/Checkbox.d.ts +0 -17
  307. package/src/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
  308. package/src/components/inputs/Checkbox/checkbox.cva.d.ts +0 -11
  309. package/src/components/inputs/DateTime/DatePicker/DatePicker.d.ts +0 -24
  310. package/src/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +0 -32
  311. package/src/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +0 -22
  312. package/src/components/inputs/DateTime/TimePicker/TimePicker.d.ts +0 -20
  313. package/src/components/inputs/DateTime/shared/Calendar.d.ts +0 -20
  314. package/src/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -20
  315. package/src/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -25
  316. package/src/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -16
  317. package/src/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
  318. package/src/components/inputs/DateTime/shared/DateField.d.ts +0 -12
  319. package/src/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -20
  320. package/src/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -11
  321. package/src/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -15
  322. package/src/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -7
  323. package/src/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -7
  324. package/src/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
  325. package/src/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
  326. package/src/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
  327. package/src/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -18
  328. package/src/components/inputs/DateTime/shared/YearPicker.d.ts +0 -8
  329. package/src/components/inputs/File/FileUpload.d.ts +0 -4
  330. package/src/components/inputs/File/FileUploadContainer.d.ts +0 -3
  331. package/src/components/inputs/File/InputUpload.d.ts +0 -4
  332. package/src/components/inputs/File/fileUpload.types.d.ts +0 -79
  333. package/src/components/inputs/File/index.d.ts +0 -9
  334. package/src/components/inputs/File/inputUpload.types.d.ts +0 -30
  335. package/src/components/inputs/File/shared/FileCard.d.ts +0 -9
  336. package/src/components/inputs/File/shared/FileCardList.d.ts +0 -9
  337. package/src/components/inputs/File/shared/FileProgressBar.d.ts +0 -3
  338. package/src/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
  339. package/src/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
  340. package/src/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
  341. package/src/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
  342. package/src/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
  343. package/src/components/inputs/File/shared/InputUploadContent.d.ts +0 -8
  344. package/src/components/inputs/File/shared/InputUploadFilled.d.ts +0 -7
  345. package/src/components/inputs/File/shared/fileUpload.cva.d.ts +0 -11
  346. package/src/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -10
  347. package/src/components/inputs/FormField/FormField.d.ts +0 -17
  348. package/src/components/inputs/FormField/FormFieldError.d.ts +0 -7
  349. package/src/components/inputs/FormField/FormFieldHeader.d.ts +0 -14
  350. package/src/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
  351. package/src/components/inputs/FormField/FormFieldLabel.d.ts +0 -11
  352. package/src/components/inputs/Input/NumberInput/NumberInput.d.ts +0 -18
  353. package/src/components/inputs/Input/PasswordInput/PasswordInput.d.ts +0 -7
  354. package/src/components/inputs/Input/TextArea/TextArea.d.ts +0 -17
  355. package/src/components/inputs/Input/TextInput/TextInput.d.ts +0 -19
  356. package/src/components/inputs/Input/shared/InputContent.d.ts +0 -27
  357. package/src/components/inputs/Inputs/Form.d.ts +0 -26
  358. package/src/components/inputs/Inputs/InputItem.d.ts +0 -73
  359. package/src/components/inputs/Inputs/Inputs.d.ts +0 -10
  360. package/src/components/inputs/RadioGroup/RadioGroup.d.ts +0 -18
  361. package/src/components/inputs/RadioGroup/radio.cva.d.ts +0 -11
  362. package/src/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +0 -8
  363. package/src/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +0 -19
  364. package/src/components/inputs/Selection/Select/Select.d.ts +0 -8
  365. package/src/components/inputs/Selection/shared/SelectBase.d.ts +0 -24
  366. package/src/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
  367. package/src/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
  368. package/src/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
  369. package/src/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -8
  370. package/src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
  371. package/src/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
  372. package/src/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
  373. package/src/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
  374. package/src/components/inputs/Selection/shared/select.context.d.ts +0 -30
  375. package/src/components/inputs/Selection/shared/select.types.d.ts +0 -55
  376. package/src/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
  377. package/src/components/inputs/Slider/Slider.d.ts +0 -18
  378. package/src/components/inputs/TextEditor/TextEditor.d.ts +0 -20
  379. package/src/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
  380. package/src/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
  381. package/src/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
  382. package/src/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
  383. package/src/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
  384. package/src/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
  385. package/src/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
  386. package/src/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
  387. package/src/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
  388. package/src/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
  389. package/src/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
  390. package/src/components/inputs/Toggle/Toggle.d.ts +0 -14
  391. package/src/components/inputs/Toggle/toggle.cva.d.ts +0 -10
  392. package/src/components/inputs/shared/CheckContent.d.ts +0 -7
  393. package/src/components/inputs/shared/InputClear.d.ts +0 -6
  394. package/src/components/inputs/shared/form.types.d.ts +0 -12
  395. package/src/components/inputs/shared/input.cva.d.ts +0 -22
  396. package/src/components/inputs/shared/label.cva.d.ts +0 -10
  397. package/src/components/outline.clsx.d.ts +0 -2
  398. package/src/components/overlays/ActionModal/ActionModal.d.ts +0 -19
  399. package/src/components/overlays/BottomSheet/BottomSheet.d.ts +0 -21
  400. package/src/components/overlays/Drawer/Drawer.d.ts +0 -13
  401. package/src/components/overlays/Modal/Modal.d.ts +0 -11
  402. package/src/components/overlays/Modal/modal.cva.d.ts +0 -12
  403. package/src/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -10
  404. package/src/components/overlays/Tooltip/Tooltip.d.ts +0 -9
  405. package/src/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -7
  406. package/src/components/segment/Segment.d.ts +0 -4
  407. package/src/components/segment/SegmentItem.d.ts +0 -2
  408. package/src/components/segment/segment.types.d.ts +0 -34
  409. package/src/components/shared/pagination/Pagination.d.ts +0 -9
  410. package/src/components/shared/pagination/PaginationList.d.ts +0 -15
  411. package/src/components/shared/pagination/minWidth.cva.d.ts +0 -3
  412. package/src/components/status/Alert/Alert.d.ts +0 -11
  413. package/src/components/status/Alert/alert.cva.d.ts +0 -7
  414. package/src/components/status/Loader/Loader.d.ts +0 -5
  415. package/src/components/status/Loader/loader.cva.d.ts +0 -9
  416. package/src/components/status/Toast/Toast.d.ts +0 -14
  417. package/src/components/status/Toast/toast.cva.d.ts +0 -18
  418. package/src/components/status/Toast/useToast.d.ts +0 -12
  419. package/src/components/status/shared/status.cva.d.ts +0 -8
  420. package/src/components/table/CellText.d.ts +0 -7
  421. package/src/components/table/ColumnConfig.d.ts +0 -10
  422. package/src/components/table/HeaderText.d.ts +0 -5
  423. package/src/components/table/InfiniteTable.d.ts +0 -9
  424. package/src/components/table/PaginatedTable.d.ts +0 -11
  425. package/src/components/table/Table.d.ts +0 -37
  426. package/src/components/table/table.cva.d.ts +0 -15
  427. package/src/components/text/Link/Link.d.ts +0 -7
  428. package/src/components/text/Link/link.cva.d.ts +0 -6
  429. package/src/components/text/Tag/Tag.d.ts +0 -10
  430. package/src/components/text/Tag/tag.cva.d.ts +0 -6
  431. package/src/components/text/Typography/Typography.d.ts +0 -11
  432. package/src/components/text/Typography/typography.cva.d.ts +0 -8
  433. package/src/config/confirmation.context.d.ts +0 -20
  434. package/src/config/i18n.d.ts +0 -315
  435. package/src/config/router.context.d.ts +0 -20
  436. package/src/config/uiConfig.context.d.ts +0 -28
  437. package/src/config/uiStyle.context.d.ts +0 -84
  438. package/src/helpers/dynamicColumns.d.ts +0 -44
  439. package/src/helpers/dynamicInputs.d.ts +0 -83
  440. package/src/hooks/useAutosave.d.ts +0 -9
  441. package/src/hooks/useBreakpoint.d.ts +0 -3
  442. package/src/hooks/useDebounceCallback.d.ts +0 -6
  443. package/src/hooks/useDeepCompare.d.ts +0 -4
  444. package/src/hooks/useFilters.d.ts +0 -7
  445. package/src/hooks/useForm.d.ts +0 -18
  446. package/src/hooks/useFormAutosave.d.ts +0 -13
  447. package/src/hooks/useIntersectionObserver.d.ts +0 -7
  448. package/src/hooks/useLocalStorage.d.ts +0 -13
  449. package/src/hooks/useLongPressRepeat.d.ts +0 -9
  450. package/src/hooks/usePagination.d.ts +0 -7
  451. package/src/hooks/useScrollableListBox.d.ts +0 -3
  452. package/src/hooks/useSingletonMutation.d.ts +0 -2
  453. package/src/hooks/useSorting.d.ts +0 -6
  454. package/src/hooks/useStateAndRef.d.ts +0 -4
  455. package/src/hooks/useTableColumnConfig.d.ts +0 -16
  456. package/src/hooks/useTableNav.d.ts +0 -84
  457. package/src/hooks/useTranslationMemo.d.ts +0 -4
  458. package/src/index.d.ts +0 -205
  459. package/src/types/react-query.d.ts +0 -6
  460. package/src/utils/array.utils.d.ts +0 -3
  461. package/src/utils/array.utils.spec.d.ts +0 -1
  462. package/src/utils/compoundMapper.d.ts +0 -19
  463. package/src/utils/compoundMapper.spec.d.ts +0 -1
  464. package/src/utils/date-time.utils.d.ts +0 -14
  465. package/src/utils/date-time.utils.spec.d.ts +0 -1
  466. package/src/utils/date.utils.d.ts +0 -3
  467. package/src/utils/date.utils.spec.d.ts +0 -1
  468. package/src/utils/dom.utils.d.ts +0 -5
  469. package/src/utils/file.utils.d.ts +0 -9
  470. package/src/utils/isEqual.d.ts +0 -1
  471. package/src/utils/logger.d.ts +0 -7
  472. package/src/utils/object.utils.d.ts +0 -10
  473. package/src/utils/queries.utils.d.ts +0 -4
  474. package/src/utils/rest/interceptors/logging.interceptor.d.ts +0 -2
  475. package/src/utils/rest/interceptors/response.interceptor.d.ts +0 -2
  476. package/src/utils/rest/interceptors/rest-interceptor.d.ts +0 -8
  477. package/src/utils/rest/rest-client.d.ts +0 -29
  478. package/src/utils/rest/rest.utils.d.ts +0 -10
  479. package/src/utils/routing.utils.d.ts +0 -3
  480. package/src/utils/string.utils.d.ts +0 -4
  481. package/src/utils/vendor/error-handling.d.ts +0 -21
  482. package/src/utils/zod.utils.d.ts +0 -19
  483. package/vite.config.d.ts +0 -2
  484. /package/{styles → src/styles}/editor.css +0 -0
  485. /package/{styles → src/styles}/index.css +0 -0
@@ -0,0 +1,24 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const InfoIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ fillRule="evenodd"
14
+ d="M12 5a7 7 0 1 0 0 14 7 7 0 0 0 0-14m-9 7a9 9 0 1 1 18 0 9 9 0 0 1-18 0"
15
+ clipRule="evenodd"
16
+ />
17
+ <path
18
+ fill="currentColor"
19
+ fillRule="evenodd"
20
+ d="M12 7.8a1 1 0 0 1 1 1V12a1 1 0 1 1-2 0V8.8a1 1 0 0 1 1-1M11 15.2a1 1 0 0 1 1-1h.008a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1"
21
+ clipRule="evenodd"
22
+ />
23
+ </svg>
24
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const ItalicIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 25 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M6.743 19a.92.92 0 0 1-.678-.277.92.92 0 0 1-.277-.679q0-.401.277-.678a.92.92 0 0 1 .678-.276H9.82l3.424-10.18h-3.078a.92.92 0 0 1-.678-.277.92.92 0 0 1-.277-.679.92.92 0 0 1 .277-.678.92.92 0 0 1 .678-.276h7.762q.4 0 .678.277a.92.92 0 0 1 .277.679.92.92 0 0 1-.277.678.92.92 0 0 1-.678.276h-2.754l-3.423 10.18h2.753q.4 0 .678.277.277.277.277.679a.92.92 0 0 1-.277.678.92.92 0 0 1-.678.276z"
14
+ />
15
+ </svg>
16
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const LinkIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M7.039 16.538q-1.884 0-3.211-1.327Q2.5 13.883 2.5 12q0-1.883 1.328-3.212 1.328-1.328 3.21-1.328h3.02q.318 0 .534.216a.73.73 0 0 1 .216.535q0 .318-.216.534a.73.73 0 0 1-.534.215h-3.02q-1.26 0-2.149.89A2.93 2.93 0 0 0 4 12q0 1.26.89 2.149.888.89 2.147.89h3.02q.32 0 .535.215a.73.73 0 0 1 .216.535q0 .318-.216.534a.73.73 0 0 1-.534.215zM9 12.75a.73.73 0 0 1-.534-.216A.73.73 0 0 1 8.25 12q0-.32.216-.535A.73.73 0 0 1 9 11.25h6q.319 0 .534.216a.73.73 0 0 1 .216.534q0 .319-.216.534a.73.73 0 0 1-.534.216zm4.942 3.788a.73.73 0 0 1-.534-.215.73.73 0 0 1-.216-.535q0-.319.216-.534a.73.73 0 0 1 .534-.216h3.02q1.26 0 2.148-.89Q20 13.26 20 12t-.89-2.15a2.93 2.93 0 0 0-2.147-.889h-3.02a.73.73 0 0 1-.535-.215.73.73 0 0 1-.216-.535q0-.318.216-.534a.73.73 0 0 1 .534-.216h3.02q1.883 0 3.21 1.328 1.328 1.328 1.328 3.21 0 1.884-1.328 3.211-1.327 1.328-3.21 1.328z"
14
+ />
15
+ </svg>
16
+ );
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const MenuIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ fillRule="evenodd"
14
+ d="M2 12a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1M2 18a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1"
15
+ clipRule="evenodd"
16
+ />
17
+ </svg>
18
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const NumberedListIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 25 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M4.432 21.5a.58.58 0 0 1-.596-.596.58.58 0 0 1 .596-.596h1.904V19.25h-.904a.58.58 0 0 1-.596-.596.58.58 0 0 1 .596-.596h.904V17H4.432a.58.58 0 0 1-.596-.596.58.58 0 0 1 .596-.596h2.25q.36 0 .603.243a.82.82 0 0 1 .243.603v1.192q0 .36-.243.603a.82.82 0 0 1-.603.243q.36 0 .603.244a.82.82 0 0 1 .243.602v1.116q0 .36-.243.603a.82.82 0 0 1-.603.243zm.087-6.654a.66.66 0 0 1-.485-.198.66.66 0 0 1-.198-.484V12.25q0-.36.243-.603a.82.82 0 0 1 .603-.243h1.654v-1.058H4.432a.58.58 0 0 1-.596-.595.58.58 0 0 1 .596-.597h2.25q.36 0 .603.243a.82.82 0 0 1 .243.603v1.75a.82.82 0 0 1-.243.603.82.82 0 0 1-.603.243H5.028v1.058h1.904a.58.58 0 0 1 .596.595.58.58 0 0 1-.596.597zm1.414-6.654a.58.58 0 0 1-.597-.596V3.692h-.904a.58.58 0 0 1-.596-.595.58.58 0 0 1 .596-.597h1.423q.286 0 .48.193a.65.65 0 0 1 .193.48v4.423a.58.58 0 0 1-.595.596m4.46 10.558a.73.73 0 0 1-.534-.216.73.73 0 0 1-.215-.534q0-.32.215-.535a.73.73 0 0 1 .535-.215h9.692q.318 0 .534.216a.73.73 0 0 1 .216.534q0 .32-.216.535a.73.73 0 0 1-.534.215zm0-6a.73.73 0 0 1-.534-.216.73.73 0 0 1-.215-.534q0-.32.215-.534a.73.73 0 0 1 .535-.216h9.692q.318 0 .534.216a.73.73 0 0 1 .216.534q0 .32-.216.534a.73.73 0 0 1-.534.216zm0-6a.73.73 0 0 1-.534-.216A.73.73 0 0 1 9.644 6q0-.32.215-.535a.73.73 0 0 1 .535-.215h9.692q.318 0 .534.216a.73.73 0 0 1 .216.534q0 .32-.216.535a.73.73 0 0 1-.534.215z"
14
+ />
15
+ </svg>
16
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const PointerHorizontalIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 20 10"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M8.586 1.414a2 2 0 0 1 2.828 0L20 10H0z"
14
+ />
15
+ </svg>
16
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const PointerVerticalIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 10 20"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M1.414 11.414a2 2 0 0 1 0-2.828L10 0v20z"
14
+ />
15
+ </svg>
16
+ );
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const SendIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ fillRule="evenodd"
14
+ d="M5.105 7.59c-1.092-1.712.764-3.773 2.58-2.865l10.973 5.486c1.474.737 1.474 2.84 0 3.578L7.685 19.276c-1.816.907-3.672-1.154-2.58-2.865L7.92 12zM17.764 12 6.79 6.513l2.815 4.411a2 2 0 0 1 0 2.152l-2.815 4.41z"
15
+ clipRule="evenodd"
16
+ />
17
+ </svg>
18
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const StrikethroughIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M3.833 13.624a.68.68 0 0 1-.498-.2.68.68 0 0 1-.202-.5q0-.297.202-.499.201-.2.498-.2h16.334q.297 0 .498.2.202.202.202.5a.68.68 0 0 1-.202.498q-.201.201-.498.201zm7.18-3.248V6.983H6.929a.95.95 0 0 1-.699-.288.95.95 0 0 1-.288-.7q0-.412.288-.703A.95.95 0 0 1 6.93 5h10.15q.411 0 .699.288a.95.95 0 0 1 .288.7q0 .413-.288.704a.95.95 0 0 1-.7.291h-4.083v3.393zm0 5.097h1.983v2.54a.95.95 0 0 1-.288.7.95.95 0 0 1-.7.287.96.96 0 0 1-.703-.29.96.96 0 0 1-.292-.706z"
14
+ />
15
+ </svg>
16
+ );
@@ -0,0 +1,24 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ interface Props extends SVGProps<SVGSVGElement> {
4
+ textColor?: string;
5
+ }
6
+
7
+ export const TextColorIcon = ({ textColor, ...props }: Props) => (
8
+ <svg
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ fill="none"
11
+ viewBox="0 0 25 24"
12
+ className="fill-current"
13
+ {...props}
14
+ >
15
+ <path
16
+ d="M7.40305 17C7.11588 17 6.8903 16.8807 6.7263 16.6423C6.56213 16.4039 6.53072 16.1495 6.63205 15.879L11.282 4.01925C11.3397 3.86292 11.4365 3.73725 11.5723 3.64225C11.7083 3.54742 11.8577 3.5 12.0205 3.5H12.651C12.8242 3.5 12.9762 3.54742 13.107 3.64225C13.2377 3.73725 13.3319 3.86292 13.3896 4.01925L18.0453 15.8655C18.1466 16.1423 18.1136 16.4007 17.9463 16.6405C17.779 16.8802 17.5517 17 17.2646 17C17.0891 17 16.9269 16.951 16.778 16.853C16.6294 16.7548 16.523 16.6179 16.4588 16.4423L15.3205 13.3808H9.34355L8.1743 16.4672C8.11013 16.6366 8.00947 16.7677 7.8723 16.8605C7.73513 16.9535 7.57872 17 7.40305 17ZM9.8703 11.9H14.7628L12.3858 5.6H12.2666L9.8703 11.9Z"
17
+ fill="currentColor"
18
+ />
19
+ <path
20
+ d="M3.09457 23.741C3.2669 23.9135 3.48198 23.9998 3.73982 23.9998H20.9318C21.1896 23.9998 21.4047 23.9135 21.5771 23.741C21.7496 23.5687 21.8358 23.3537 21.8358 23.096V21.1728C21.8358 20.9151 21.7496 20.7001 21.5771 20.5278C21.4047 20.3553 21.1896 20.269 20.9318 20.269H3.73982C3.48198 20.269 3.2669 20.3553 3.09457 20.5278C2.92207 20.7001 2.83582 20.9151 2.83582 21.1728V23.096C2.83582 23.3537 2.92207 23.5687 3.09457 23.741Z"
21
+ fill={textColor || "black"}
22
+ />
23
+ </svg>
24
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const TodayIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M9.184 9.672v-.945h5.628v.945h-2.27V16H11.45V9.672z"
14
+ />
15
+ </svg>
16
+ );
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const UnderlinedIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 25 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ stroke="currentColor"
14
+ strokeWidth={0.2}
15
+ d="M6.872 18.89q.212.21.518.21h9.892q.306 0 .518-.21.21-.212.21-.518a.7.7 0 0 0-.21-.518.7.7 0 0 0-.518-.21H7.39a.7.7 0 0 0-.518.209.7.7 0 0 0-.21.518q0 .308.21.519ZM8.353 5.155a.83.83 0 0 0-.264.615v5.851c0 1.348.371 2.434 1.123 3.248.754.815 1.8 1.218 3.124 1.218s2.37-.403 3.124-1.218c.752-.814 1.123-1.9 1.123-3.248v-5.85a.84.84 0 0 0-.255-.615.84.84 0 0 0-.613-.256.87.87 0 0 0-.62.255.83.83 0 0 0-.265.615V11.7c0 .828-.22 1.48-.65 1.968-.427.484-1.037.732-1.844.732s-1.417-.248-1.844-.732c-.43-.487-.65-1.14-.65-1.968V5.77a.84.84 0 0 0-.255-.614.84.84 0 0 0-.613-.256.87.87 0 0 0-.62.255Z"
16
+ />
17
+ </svg>
18
+ );
@@ -0,0 +1,20 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const UploadIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ d="M19.502 13.6a.9.9 0 0 1 .9.9v3.333a2.57 2.57 0 0 1-2.567 2.567H6.169a2.57 2.57 0 0 1-2.555-2.313l-.012-.254V14.5a.9.9 0 0 1 1.795-.092l.005.092v3.333l.015.15a.766.766 0 0 0 .752.617h11.666a.766.766 0 0 0 .767-.767V14.5a.9.9 0 0 1 .9-.9"
14
+ />
15
+ <path
16
+ fill="currentColor"
17
+ d="M12.041 3.602h.008q.078.003.151.02.006 0 .01.003c.17.04.32.127.436.247l4.159 4.158.061.069a.9.9 0 0 1-1.265 1.266l-.069-.062-2.63-2.63V14.5a.9.9 0 0 1-1.8 0V6.672l-2.63 2.63-.069.063A.901.901 0 0 1 7.198 8.03l4.167-4.167.069-.061a.9.9 0 0 1 .432-.192l.027-.004a1 1 0 0 1 .109-.006z"
18
+ />
19
+ </svg>
20
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const ViewIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <g fill="currentColor">
12
+ <path d="M21.338 11.788A10.43 10.43 0 0 0 12 5.124a10.43 10.43 0 0 0-9.337 6.663.63.63 0 0 0 0 .425A10.43 10.43 0 0 0 12 18.875a10.43 10.43 0 0 0 9.337-6.662.62.62 0 0 0 0-.425M12 17.624c-3.312 0-6.812-2.456-8.081-5.625C5.188 8.831 8.688 6.375 12 6.375c3.313 0 6.813 2.456 8.081 5.625-1.268 3.169-4.768 5.625-8.081 5.625" />
13
+ <path d="M12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5m0 6.25a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5" />
14
+ </g>
15
+ </svg>
16
+ );
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const ViewOffIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <g fill="currentColor">
12
+ <path d="m5.275 16.069.894-.888A8.8 8.8 0 0 1 3.919 12C5.188 8.831 8.688 6.375 12 6.375a7.7 7.7 0 0 1 2.5.45l.969-.975A9.2 9.2 0 0 0 12 5.125a10.43 10.43 0 0 0-9.337 6.663.63.63 0 0 0 0 .425 10 10 0 0 0 2.612 3.856" />
13
+ <path d="M9.5 11.831a2.5 2.5 0 0 1 2.313-2.312l1.13-1.138a3.75 3.75 0 0 0-4.58 4.582zM21.338 11.788a10.25 10.25 0 0 0-3.588-4.65l3-3.007-.881-.881L3.25 19.869l.881.881 3.188-3.187A9.56 9.56 0 0 0 12 18.875a10.43 10.43 0 0 0 9.337-6.662.62.62 0 0 0 0-.425M14.5 12a2.5 2.5 0 0 1-3.75 2.15l3.4-3.4A2.5 2.5 0 0 1 14.5 12M12 17.625a8.16 8.16 0 0 1-3.75-.988l1.588-1.587a3.75 3.75 0 0 0 5.218-5.219l1.794-1.793A9.1 9.1 0 0 1 20.081 12c-1.268 3.169-4.768 5.625-8.081 5.625" />
14
+ </g>
15
+ </svg>
16
+ );
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const WarningFilledIcon = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ fill="none"
7
+ viewBox="0 0 24 24"
8
+ className="fill-current"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="currentColor"
13
+ fillRule="evenodd"
14
+ d="M12.163 3.52a2.57 2.57 0 0 1 1.94 1.091l.09.139.001.004 7.059 11.783.008.013.079.147a2.57 2.57 0 0 1-2.274 3.702H4.93a2.568 2.568 0 0 1-2.195-3.85l.007-.012L9.801 4.754l.002-.004.09-.139a2.57 2.57 0 0 1 2.105-1.097zm-.165 11.747a.9.9 0 0 0 0 1.8h.008l.092-.005a.9.9 0 0 0 0-1.79l-.092-.005zm0-6.667a.9.9 0 0 0-.9.9v3.333l.004.093a.9.9 0 0 0 1.792 0l.004-.093V9.5l-.004-.092a.9.9 0 0 0-.896-.808"
15
+ clipRule="evenodd"
16
+ />
17
+ </svg>
18
+ );
@@ -0,0 +1,156 @@
1
+ {
2
+ "ui": {
3
+ "openAlt": "Open",
4
+ "closeAlt": "Close",
5
+ "clearAlt": "Clear",
6
+ "loadingState": {
7
+ "text": "Loading..."
8
+ },
9
+ "select": {
10
+ "closeAlt": "Close the menu",
11
+ "selectAll": "Select all",
12
+ "clearSelection": "Clear",
13
+ "allOption": "All",
14
+ "search": "Search",
15
+ "clearSearch": "Clear search"
16
+ },
17
+ "datePicker": {
18
+ "today": "Today",
19
+ "clear": "Clear",
20
+ "save": "Save",
21
+ "presets": {
22
+ "thisWeek": "This week",
23
+ "lastWeek": "Last week",
24
+ "thisAndLastWeek": "This & Last week",
25
+ "thisMonth": "This month",
26
+ "thisAndLastMonth": "This & Last month",
27
+ "thisYear": "This year",
28
+ "lastYear": "Last year",
29
+ "thisAndLastYear": "This & Last year",
30
+ "soFar": "So far"
31
+ },
32
+ "errors": {
33
+ "endDateBeforeStart": "End date cannot be before start date"
34
+ }
35
+ },
36
+ "modal": {
37
+ "closeBtn": "Close"
38
+ },
39
+ "autocomplete": {
40
+ "createNewBtn": "Create"
41
+ },
42
+ "password": {
43
+ "reveal": "Reveal password",
44
+ "hide": "Hide password"
45
+ },
46
+ "textEditor": {
47
+ "textStyle": {
48
+ "label": "Text style",
49
+ "normal": "Normal text",
50
+ "heading1": "Heading 1",
51
+ "heading2": "Heading 2",
52
+ "heading3": "Heading 3",
53
+ "heading4": "Heading 4",
54
+ "heading5": "Heading 5",
55
+ "heading6": "Heading 6"
56
+ },
57
+ "marks": {
58
+ "bold": "Bold",
59
+ "italic": "Italic",
60
+ "underline": "Underline",
61
+ "strikethrough": "Strikethrough"
62
+ },
63
+ "textAlign": {
64
+ "label": "Text align",
65
+ "left": "Left",
66
+ "center": "Center",
67
+ "right": "Right",
68
+ "justify": "Justify"
69
+ },
70
+ "link": {
71
+ "label": "Hyperlink",
72
+ "apply": "Apply",
73
+ "remove": "Remove",
74
+ "urlLabel": "URL",
75
+ "urlPlaceholder": "Enter the URL"
76
+ }
77
+ },
78
+ "tag": {
79
+ "dismiss": "Dismiss"
80
+ },
81
+ "clearInput": "Clear input",
82
+ "pagination": {
83
+ "nextBtn": "Next",
84
+ "backBtn": "Previous",
85
+ "firstBtn": "First",
86
+ "lastBtn": "Last",
87
+ "resultsPerPage": "Results per page"
88
+ },
89
+ "confirmation": {
90
+ "cancel": "Cancel",
91
+ "confirm": "Confirm"
92
+ },
93
+ "fileUpload": {
94
+ "emptyText": "Upload file",
95
+ "uploadText": "Drag & drop files here or",
96
+ "browse": "Browse",
97
+ "noFileUploaded": "No file uploaded",
98
+ "upload": "Upload",
99
+ "uploadFile": "Upload file",
100
+ "or": "or",
101
+ "removeFile": "Remove file",
102
+ "cancel": "Cancel"
103
+ },
104
+ "table": {
105
+ "column": "Column",
106
+ "show": "Show",
107
+ "configureColumns": "Configure columns"
108
+ }
109
+ },
110
+ "zodErrors": {
111
+ "required": "Required",
112
+ "invalid": "Invalid",
113
+ "string": {
114
+ "includes": "Must include \"{{text}}\"",
115
+ "startsWith": "Must start with \"{{text}}\"",
116
+ "endsWith": "Must end with \"{{text}}\"",
117
+ "constraint": "Invalid {{text}}",
118
+ "contains": "Must contain exactly {{count}} character(s)",
119
+ "containsAtLeast": "Must contain at least {{count}} character(s)",
120
+ "containsOver": "Must contain over {{count}} character(s)",
121
+ "containsAtMost": "Must contain at most {{count}} character(s)",
122
+ "containsUnder": "Must contain under {{count}} character(s)"
123
+ },
124
+ "array": {
125
+ "contains": "Array must contain exactly {{count}} element(s)",
126
+ "containsAtLeast": "Array must contain at least {{count}} element(s)",
127
+ "containsMoreThan": "Array must contain more than {{count}} element(s)",
128
+ "containsAtMost": "Array must contain at most {{count}} element(s)",
129
+ "containsLessThan": "Array must contain less than {{count}} element(s)"
130
+ },
131
+ "number": {
132
+ "exact": "Number must be exactly equal to {{number}}",
133
+ "greaterThanOrEqual": "Number must be greater than or equal to {{number}}",
134
+ "greaterThan": "Number must be greater than {{number}}",
135
+ "over": "Number must be over {{number}}",
136
+ "lessThanOrEqual": "Number must be less than or equal to {{number}}",
137
+ "lessThan": "Number must be less than {{number}}",
138
+ "multipleOf": "Number must be a multiple of {{multipleOf}}"
139
+ },
140
+ "date": {
141
+ "invalid": "Invalid date",
142
+ "exact": "Date must be exactly equal to {{date}}",
143
+ "greaterThanOrEqual": "Date must be greater than or equal to {{date}}",
144
+ "greaterThan": "Date must be greater than {{date}}",
145
+ "smallerThanOrEqual": "Date must be smaller than or equal to {{date}}",
146
+ "smallerThan": "Date must be smaller than {{date}}"
147
+ }
148
+ },
149
+ "sharedErrors": {
150
+ "dataValidation": "An error occurred while validating the data",
151
+ "internalError": "An internal error occurred. This is most likely a bug on our end. Please try again later.",
152
+ "networkError": "A network error occurred. Are you connected to the internet?",
153
+ "canceledError": "The request was canceled.",
154
+ "unknownError": "An unknown error occurred. Please try again later."
155
+ }
156
+ }
@@ -0,0 +1,152 @@
1
+ {
2
+ "ui": {
3
+ "openAlt": "Odpri",
4
+ "closeAlt": "Zapri",
5
+ "clearAlt": "Sprazni",
6
+ "loadingState": {
7
+ "text": "Nalaganje..."
8
+ },
9
+ "select": {
10
+ "closeAlt": "Zapri meni",
11
+ "selectAll": "Izberi vse",
12
+ "clearSelection": "Sprazni",
13
+ "allOption": "Vse",
14
+ "search": "Išči",
15
+ "clearSearch": "Sprazni iskanje"
16
+ },
17
+ "datePicker": {
18
+ "today": "Danes",
19
+ "clear": "Sprazni",
20
+ "save": "Shrani",
21
+ "presets": {
22
+ "thisWeek": "Ta teden",
23
+ "lastWeek": "Prejšnji teden",
24
+ "thisAndLastWeek": "Ta in prejšnji teden",
25
+ "thisMonth": "Ta mesec",
26
+ "thisAndLastMonth": "Ta in prejšnji mesec",
27
+ "thisYear": "Ta leto",
28
+ "lastYear": "Prejšnje leto",
29
+ "thisAndLastYear": "Ta in prejšnje leto",
30
+ "soFar": "Od začetka"
31
+ },
32
+ "errors": {
33
+ "endDateBeforeStart": "Datum konca ne more biti pred datumom začetka"
34
+ }
35
+ },
36
+ "modal": {
37
+ "closeBtn": "Zapri"
38
+ },
39
+ "autocomplete": {
40
+ "createNewBtn": "Ustvari"
41
+ },
42
+ "password": {
43
+ "reveal": "Prikaži geslo",
44
+ "hide": "Skrij geslo"
45
+ },
46
+ "textEditor": {
47
+ "textStyle": {
48
+ "label": "Vrsta besedila",
49
+ "normal": "Normalni tekst",
50
+ "heading1": "Naslov 1",
51
+ "heading2": "Naslov 2",
52
+ "heading3": "Naslov 3",
53
+ "heading4": "Naslov 4",
54
+ "heading5": "Naslov 5",
55
+ "heading6": "Naslov 6"
56
+ },
57
+ "marks": {
58
+ "bold": "Krepko",
59
+ "italic": "Poševno",
60
+ "underline": "Podčrtano",
61
+ "strikethrough": "Prečrtano"
62
+ },
63
+ "textAlign": {
64
+ "label": "Poravnava besedila",
65
+ "left": "Levo",
66
+ "center": "Sredina",
67
+ "right": "Desno",
68
+ "justify": "Obojestransko"
69
+ },
70
+ "link": {
71
+ "label": "Povezava",
72
+ "apply": "Ustvari",
73
+ "remove": "Odstrani",
74
+ "urlLabel": "URL",
75
+ "urlPlaceholder": "Vnesite URL"
76
+ }
77
+ },
78
+ "pagination": {
79
+ "nextBtn": "Naprej",
80
+ "backBtn": "Nazaj",
81
+ "firstBtn": "Prva",
82
+ "lastBtn": "Zadnja",
83
+ "resultsPerPage": "Rezultatov na stran"
84
+ },
85
+ "confirmation": {
86
+ "cancel": "Prekliči",
87
+ "confirm": "Potrdi"
88
+ },
89
+ "fileUpload": {
90
+ "emptyText": "Naloži datoteko",
91
+ "uploadText": "Povlecite datoteke sem ali",
92
+ "browse": "Izberi",
93
+ "noFileUploaded": "Ni datotek",
94
+ "upload": "Naloži",
95
+ "uploadFile": "Naloži datoteko",
96
+ "or": "ali",
97
+ "removeFile": "Odstrani datoteko",
98
+ "cancel": "Prekliči"
99
+ },
100
+ "table": {
101
+ "column": "Stolpec",
102
+ "show": "Prikaži",
103
+ "configureColumns": "Nastavi stolpce"
104
+ }
105
+ },
106
+ "zodErrors": {
107
+ "required": "Obvezno",
108
+ "invalid": "Neveljavno",
109
+ "string": {
110
+ "includes": "Mora vključevati \"{{text}}\"",
111
+ "startsWith": "Se mora začeti z \"{{text}}\"",
112
+ "endsWith": "Se mora končati z \"{{text}}\"",
113
+ "constraint": "Neveljaven {{text}}",
114
+ "contains": "Mora vsebovati natančno {{count}} znak(ov)",
115
+ "containsAtLeast": "Mora vsebovati vsaj {{count}} znak(ov)",
116
+ "containsOver": "Mora vsebovati več kot {{count}} znak(ov)",
117
+ "containsAtMost": "Mora vsebovati največ {{count}} znak(ov)",
118
+ "containsUnder": "Mora vsebovati manj kot {{count}} znak(ov)"
119
+ },
120
+ "array": {
121
+ "contains": "Polje mora vsebovati natančno {{count}} element(ov)",
122
+ "containsAtLeast": "Polje mora vsebovati vsaj {{count}} element(ov)",
123
+ "containsMoreThan": "Polje mora vsebovati več kot {{count}} element(ov)",
124
+ "containsAtMost": "Polje mora vsebovati največ {{count}} element(ov)",
125
+ "containsLessThan": "Polje mora vsebovati manj kot {{count}} element(ov)"
126
+ },
127
+ "number": {
128
+ "exact": "Število mora biti natančno enako {{number}}",
129
+ "greaterThanOrEqual": "Število mora biti večje ali enako {{number}}",
130
+ "greaterThan": "Število mora biti večje od {{number}}",
131
+ "over": "Število mora biti nad {{number}}",
132
+ "lessThanOrEqual": "Število mora biti manjše ali enako {{number}}",
133
+ "lessThan": "Število mora biti manjše od {{number}}",
134
+ "multipleOf": "Število mora biti večkratnik števila {{multipleOf}}"
135
+ },
136
+ "date": {
137
+ "invalid": "Neveljaven datum",
138
+ "exact": "Datum mora biti natančno enak {{date}}",
139
+ "greaterThanOrEqual": "Datum mora biti večji ali enak {{date}}",
140
+ "greaterThan": "Datum mora biti večji od {{date}}",
141
+ "smallerThanOrEqual": "Datum mora biti manjši ali enak {{date}}",
142
+ "smallerThan": "Datum mora biti manjši od {{date}}"
143
+ }
144
+ },
145
+ "sharedErrors": {
146
+ "dataValidation": "Pri preverjanju podatkov je prišlo do napake",
147
+ "internalError": "Prišlo je do notranje napake. ",
148
+ "networkError": "Prišlo je do napake v omrežju. ",
149
+ "canceledError": "Zahteva je bila preklicana.",
150
+ "unknownError": "Prišlo je do neznane napake. "
151
+ }
152
+ }
@@ -0,0 +1,29 @@
1
+ import type { ReactElement } from "react";
2
+ import type { MenuItemProps } from "react-aria-components";
3
+
4
+ import { MenuDesktop } from "#ui/components/Menu/MenuDesktop";
5
+ import { MenuMobile } from "#ui/components/Menu/MenuMobile";
6
+ import { useBreakpoint } from "#ui/hooks/useBreakpoint";
7
+
8
+ export interface MenuItem extends Omit<MenuItemProps, "aria-label" | "textValue" | "children"> {
9
+ label: string;
10
+ content?: string | ReactElement;
11
+ children?: MenuItem[];
12
+ }
13
+
14
+ export interface MenuProps {
15
+ trigger: ReactElement;
16
+ items: MenuItem[];
17
+ triggerOnHover?: boolean;
18
+ closeDelay?: number;
19
+ }
20
+
21
+ export const Menu = (props: MenuProps) => {
22
+ const isDesktop = useBreakpoint("md");
23
+
24
+ if (isDesktop) {
25
+ return <MenuDesktop {...props} />;
26
+ }
27
+
28
+ return <MenuMobile {...props} />;
29
+ };