@povio/ui 2.2.6 → 2.2.8-rc

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 (256) hide show
  1. package/README.md +2 -0
  2. package/dist/assets/icons/AlignCenter.js +3 -1
  3. package/dist/assets/icons/AlignLeft.js +3 -1
  4. package/dist/assets/icons/AlignLeftRight.js +3 -1
  5. package/dist/assets/icons/AlignRight.js +3 -1
  6. package/dist/assets/icons/ArrowDropDown.js +3 -1
  7. package/dist/assets/icons/ArrowDropUp.js +3 -1
  8. package/dist/assets/icons/ArrowLeft.js +3 -1
  9. package/dist/assets/icons/ArrowRight.js +3 -1
  10. package/dist/assets/icons/Bold.js +3 -1
  11. package/dist/assets/icons/BulletedList.js +3 -1
  12. package/dist/assets/icons/Calendar.js +3 -1
  13. package/dist/assets/icons/Check.js +3 -1
  14. package/dist/assets/icons/CheckCircle.js +3 -1
  15. package/dist/assets/icons/CheckboxCheckmark.js +3 -1
  16. package/dist/assets/icons/CheckboxIndeterminate.js +3 -1
  17. package/dist/assets/icons/ChevronDown.js +3 -1
  18. package/dist/assets/icons/ChevronLeft.js +3 -1
  19. package/dist/assets/icons/ChevronRight.js +3 -1
  20. package/dist/assets/icons/ChevronUp.js +3 -1
  21. package/dist/assets/icons/ChevronsLeft.js +3 -1
  22. package/dist/assets/icons/ChevronsRight.js +3 -1
  23. package/dist/assets/icons/Clock.js +3 -1
  24. package/dist/assets/icons/Close.js +3 -1
  25. package/dist/assets/icons/DateTime.js +3 -1
  26. package/dist/assets/icons/DragIndicator.js +3 -1
  27. package/dist/assets/icons/File.js +3 -1
  28. package/dist/assets/icons/Highlight.js +3 -1
  29. package/dist/assets/icons/HighlightOn.js +3 -1
  30. package/dist/assets/icons/Home.js +3 -1
  31. package/dist/assets/icons/Info.js +3 -1
  32. package/dist/assets/icons/Italic.js +3 -1
  33. package/dist/assets/icons/Link.js +3 -1
  34. package/dist/assets/icons/Menu.js +3 -1
  35. package/dist/assets/icons/NumberedList.js +3 -1
  36. package/dist/assets/icons/PointerHorizontal.js +3 -1
  37. package/dist/assets/icons/PointerVertical.js +3 -1
  38. package/dist/assets/icons/Search.js +3 -1
  39. package/dist/assets/icons/Send.js +3 -1
  40. package/dist/assets/icons/Strikethrough.js +3 -1
  41. package/dist/assets/icons/TextColor.js +3 -1
  42. package/dist/assets/icons/Today.js +3 -1
  43. package/dist/assets/icons/Underlined.js +3 -1
  44. package/dist/assets/icons/Upload.js +3 -1
  45. package/dist/assets/icons/Visibility.js +3 -1
  46. package/dist/assets/icons/VisibilityOff.js +3 -1
  47. package/dist/assets/icons/WarningFilled.js +3 -1
  48. package/dist/assets/locales/en/translation.json.js +1 -0
  49. package/dist/assets/locales/sl/translation.json.js +1 -0
  50. package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -3
  51. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +7 -5
  52. package/dist/components/Menu/Menu.js +3 -1
  53. package/dist/components/Menu/MenuDesktop.js +3 -1
  54. package/dist/components/Menu/MenuItem.js +3 -1
  55. package/dist/components/Menu/MenuMobile.js +3 -1
  56. package/dist/components/Menu/MenuPopover.js +3 -1
  57. package/dist/components/Menu/menu.cva.js +6 -4
  58. package/dist/components/buttons/Button/Button.js +3 -1
  59. package/dist/components/buttons/Button/button.cva.js +7 -5
  60. package/dist/components/buttons/IconButton/IconButton.js +3 -1
  61. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +3 -1
  62. package/dist/components/buttons/PillButton/PillButton.js +3 -1
  63. package/dist/components/buttons/PillButton/pillButton.cva.js +6 -4
  64. package/dist/components/buttons/SplitButton/SplitButton.js +3 -1
  65. package/dist/components/buttons/TextButton/TextButton.js +3 -1
  66. package/dist/components/buttons/ToggleButton/ToggleButton.js +3 -1
  67. package/dist/components/buttons/shared/ButtonContent.js +3 -1
  68. package/dist/components/buttons/shared/buttonContent.cva.js +2 -1
  69. package/dist/components/inputs/Checkbox/Checkbox.js +3 -1
  70. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +3 -1
  71. package/dist/components/inputs/Checkbox/checkbox.cva.js +6 -4
  72. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +63 -4
  73. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +98 -10
  74. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +63 -4
  75. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
  76. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +64 -6
  77. package/dist/components/inputs/DateTime/shared/Calendar.js +3 -1
  78. package/dist/components/inputs/DateTime/shared/CalendarCell.js +3 -1
  79. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +3 -1
  80. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +3 -1
  81. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +4 -2
  82. package/dist/components/inputs/DateTime/shared/DateField.js +3 -1
  83. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -1
  84. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +4 -2
  85. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +3 -1
  86. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +4 -2
  87. package/dist/components/inputs/DateTime/shared/MonthPicker.js +3 -1
  88. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +3 -1
  89. package/dist/components/inputs/DateTime/shared/TimeField.js +3 -1
  90. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -1
  91. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
  92. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +6 -5
  93. package/dist/components/inputs/DateTime/shared/YearPicker.js +3 -1
  94. package/dist/components/inputs/File/FileUpload.js +6 -4
  95. package/dist/components/inputs/File/FileUploadContainer.js +3 -1
  96. package/dist/components/inputs/File/InputUpload.js +3 -1
  97. package/dist/components/inputs/File/shared/FileCard.js +3 -1
  98. package/dist/components/inputs/File/shared/FileCardList.js +3 -1
  99. package/dist/components/inputs/File/shared/FileUploadContent.js +3 -1
  100. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -1
  101. package/dist/components/inputs/File/shared/FileUploadContentError.js +4 -2
  102. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +4 -2
  103. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -2
  104. package/dist/components/inputs/File/shared/InputUploadContent.js +4 -2
  105. package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -1
  106. package/dist/components/inputs/File/shared/ProgressBar.js +3 -1
  107. package/dist/components/inputs/File/shared/fileUpload.cva.js +4 -2
  108. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +6 -3
  109. package/dist/components/inputs/FormField/FormField.js +3 -1
  110. package/dist/components/inputs/FormField/FormFieldError.js +3 -1
  111. package/dist/components/inputs/FormField/FormFieldHeader.js +3 -1
  112. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +4 -2
  113. package/dist/components/inputs/FormField/FormFieldHelper.js +3 -1
  114. package/dist/components/inputs/FormField/FormFieldLabel.js +3 -1
  115. package/dist/components/inputs/FormField/formFieldError.cva.js +3 -1
  116. package/dist/components/inputs/FormField/formFieldHelper.cva.js +3 -1
  117. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +1 -0
  118. package/dist/components/inputs/Input/NumberInput/NumberInput.js +82 -8
  119. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +4 -2
  120. package/dist/components/inputs/Input/TextArea/TextArea.js +3 -1
  121. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +1 -0
  122. package/dist/components/inputs/Input/TextInput/TextInput.js +85 -8
  123. package/dist/components/inputs/Input/shared/InputContent.js +3 -1
  124. package/dist/components/inputs/Inputs/Form.js +2 -0
  125. package/dist/components/inputs/Inputs/InputItem.js +2 -0
  126. package/dist/components/inputs/Inputs/Inputs.js +2 -0
  127. package/dist/components/inputs/RadioGroup/RadioGroup.js +3 -1
  128. package/dist/components/inputs/RadioGroup/radio.cva.js +5 -3
  129. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +64 -2
  130. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +3 -1
  131. package/dist/components/inputs/Selection/Select/Select.js +65 -2
  132. package/dist/components/inputs/Selection/shared/SelectBase.js +3 -1
  133. package/dist/components/inputs/Selection/shared/SelectDesktop.js +4 -2
  134. package/dist/components/inputs/Selection/shared/SelectInput.js +4 -2
  135. package/dist/components/inputs/Selection/shared/SelectInputTags.js +3 -1
  136. package/dist/components/inputs/Selection/shared/SelectListBox.js +4 -2
  137. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +5 -3
  138. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +4 -2
  139. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +4 -2
  140. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +4 -2
  141. package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -1
  142. package/dist/components/inputs/Selection/shared/select.context.js +20 -18
  143. package/dist/components/inputs/Selection/shared/useSelectItems.js +6 -4
  144. package/dist/components/inputs/Slider/Slider.js +3 -1
  145. package/dist/components/inputs/TextEditor/TextEditor.js +3 -1
  146. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +3 -1
  147. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -1
  148. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -2
  149. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +4 -2
  150. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -1
  151. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +3 -1
  152. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +3 -1
  153. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -2
  154. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +4 -2
  155. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +4 -2
  156. package/dist/components/inputs/TextEditor/textEditor.types.js +3 -1
  157. package/dist/components/inputs/Toggle/Toggle.js +3 -1
  158. package/dist/components/inputs/Toggle/toggle.cva.js +4 -2
  159. package/dist/components/inputs/shared/CheckContent.js +3 -1
  160. package/dist/components/inputs/shared/InputClear.js +5 -3
  161. package/dist/components/inputs/shared/StaticInput.d.ts +18 -0
  162. package/dist/components/inputs/shared/StaticInput.js +69 -0
  163. package/dist/components/inputs/shared/TooltipWrapper.js +3 -1
  164. package/dist/components/inputs/shared/input.cva.js +6 -4
  165. package/dist/components/inputs/shared/label.cva.js +4 -2
  166. package/dist/components/navigation/Accordion/Accordion.js +3 -1
  167. package/dist/components/navigation/Accordion/AccordionItem.js +3 -1
  168. package/dist/components/navigation/Accordion/accordion.cva.js +12 -10
  169. package/dist/components/navigation/Stepper/Stepper.js +3 -1
  170. package/dist/components/navigation/Stepper/StepperItem.js +3 -1
  171. package/dist/components/navigation/Stepper/StepperSeparator.js +3 -1
  172. package/dist/components/navigation/Stepper/stepper.cva.js +9 -7
  173. package/dist/components/outline.clsx.js +4 -2
  174. package/dist/components/overlays/ActionModal/ActionModal.js +3 -1
  175. package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -1
  176. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -2
  177. package/dist/components/overlays/Drawer/Drawer.js +3 -1
  178. package/dist/components/overlays/Modal/Modal.js +4 -2
  179. package/dist/components/overlays/Modal/modal.cva.js +5 -3
  180. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +3 -1
  181. package/dist/components/overlays/Tooltip/Tooltip.js +7 -2
  182. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +3 -1
  183. package/dist/components/overlays/Tooltip/tooltip.cva.js +6 -4
  184. package/dist/components/segment/Segment.js +3 -1
  185. package/dist/components/segment/SegmentItem.js +3 -1
  186. package/dist/components/segment/segment.cva.js +4 -2
  187. package/dist/components/shared/pagination/Pagination.js +4 -2
  188. package/dist/components/shared/pagination/PaginationList.js +4 -2
  189. package/dist/components/shared/pagination/minWidth.cva.js +3 -1
  190. package/dist/components/shared/popover.cva.js +3 -1
  191. package/dist/components/status/Alert/Alert.js +3 -1
  192. package/dist/components/status/Alert/alert.cva.js +3 -1
  193. package/dist/components/status/Loader/Loader.js +3 -1
  194. package/dist/components/status/Loader/loader.cva.js +4 -2
  195. package/dist/components/status/Toast/Toast.js +15 -6
  196. package/dist/components/status/Toast/toast.cva.js +6 -20
  197. package/dist/components/status/Toast/useToast.js +3 -1
  198. package/dist/components/status/shared/status.cva.js +4 -2
  199. package/dist/components/table/CellText.js +3 -1
  200. package/dist/components/table/ColumnConfig.js +3 -1
  201. package/dist/components/table/HeaderText.js +3 -1
  202. package/dist/components/table/InfiniteTable.js +3 -1
  203. package/dist/components/table/PaginatedTable.js +3 -1
  204. package/dist/components/table/Table.js +4 -2
  205. package/dist/components/table/table.cva.js +8 -6
  206. package/dist/components/text/Link/Link.js +3 -1
  207. package/dist/components/text/Link/link.cva.js +3 -1
  208. package/dist/components/text/Tag/Tag.d.ts +3 -0
  209. package/dist/components/text/Tag/Tag.js +9 -4
  210. package/dist/components/text/Tag/tag.cva.js +3 -1
  211. package/dist/components/text/Typography/Typography.js +3 -1
  212. package/dist/components/text/Typography/typography.cva.js +3 -1
  213. package/dist/config/confirmation.context.js +4 -2
  214. package/dist/config/i18n.js +4 -2
  215. package/dist/config/link.context.js +3 -1
  216. package/dist/config/router.context.js +3 -1
  217. package/dist/config/theme.context.js +8 -6
  218. package/dist/config/uiConfig.context.d.ts +5 -0
  219. package/dist/config/uiConfig.context.js +10 -2
  220. package/dist/config/uiStyle.context.js +3 -1
  221. package/dist/helpers/dynamicColumns.js +4 -2
  222. package/dist/helpers/dynamicInputs.js +5 -3
  223. package/dist/hooks/useAutosave.js +2 -0
  224. package/dist/hooks/useBreakpoint.js +5 -3
  225. package/dist/hooks/useDebounceCallback.js +2 -0
  226. package/dist/hooks/useDeepCompare.js +5 -3
  227. package/dist/hooks/useFilters.js +3 -1
  228. package/dist/hooks/useForm.js +2 -0
  229. package/dist/hooks/useFormAutosave.js +2 -0
  230. package/dist/hooks/useIntersectionObserver.js +3 -1
  231. package/dist/hooks/useLocalStorage.js +3 -1
  232. package/dist/hooks/useLongPressRepeat.js +3 -1
  233. package/dist/hooks/usePagination.js +2 -0
  234. package/dist/hooks/useScrollableListBox.js +2 -0
  235. package/dist/hooks/useSorting.js +2 -0
  236. package/dist/hooks/useStateAndRef.js +3 -1
  237. package/dist/hooks/useTableColumnConfig.js +2 -0
  238. package/dist/hooks/useTableNav.js +124 -20
  239. package/dist/hooks/useTranslationMemo.js +2 -0
  240. package/dist/tw-ui-plugin.js +4 -2
  241. package/dist/utils/array.utils.js +3 -1
  242. package/dist/utils/compoundMapper.js +3 -1
  243. package/dist/utils/date-time.utils.d.ts +10 -0
  244. package/dist/utils/date-time.utils.js +85 -2
  245. package/dist/utils/date.utils.js +3 -1
  246. package/dist/utils/dom.utils.js +3 -1
  247. package/dist/utils/file.utils.js +3 -1
  248. package/dist/utils/isEqual.js +3 -1
  249. package/dist/utils/logger.js +3 -1
  250. package/dist/utils/object.utils.js +3 -1
  251. package/dist/utils/queries.utils.js +3 -1
  252. package/dist/utils/rest.utils.js +3 -1
  253. package/dist/utils/routing.utils.js +3 -1
  254. package/dist/utils/string.utils.js +3 -1
  255. package/dist/utils/zod.utils.js +3 -1
  256. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  import { ObjectUtils } from "../utils/object.utils.js";
2
2
  import { useCallback, useRef, useState } from "react";
3
- const useStateAndRef = (initialState) => {
3
+ //#region src/hooks/useStateAndRef.ts
4
+ var useStateAndRef = (initialState) => {
4
5
  const [state, setState] = useState(initialState);
5
6
  const ref = useRef(state);
6
7
  return [
@@ -12,4 +13,5 @@ const useStateAndRef = (initialState) => {
12
13
  }, [setState])
13
14
  ];
14
15
  };
16
+ //#endregion
15
17
  export { useStateAndRef };
@@ -1,4 +1,5 @@
1
1
  import { useCallback, useEffect, useMemo, useState } from "react";
2
+ //#region src/hooks/useTableColumnConfig.ts
2
3
  function sortByKeyOrder(data, orderedKeys = []) {
3
4
  return [...data].sort((a, b) => {
4
5
  return orderedKeys.findIndex((key) => key === (a.id ?? a.accessorKey)) - orderedKeys.findIndex((key) => key === (b.id ?? b.accessorKey));
@@ -35,4 +36,5 @@ function useTableColumnConfig(defaultColumns, options = {}) {
35
36
  onOrderChange: handleOrderChange
36
37
  };
37
38
  }
39
+ //#endregion
38
40
  export { useTableColumnConfig };
@@ -1,20 +1,23 @@
1
1
  import { logger } from "../utils/logger.js";
2
- var Keys = /* @__PURE__ */ function(Keys$1) {
3
- Keys$1["Enter"] = "Enter";
4
- Keys$1["Escape"] = "Escape";
5
- Keys$1["Shift"] = "Shift";
6
- Keys$1["Control"] = "Control";
7
- Keys$1["Home"] = "Home";
8
- Keys$1["End"] = "End";
9
- Keys$1["Backspace"] = "Backspace";
10
- Keys$1["PageUp"] = "PageUp";
11
- Keys$1["PageDown"] = "PageDown";
12
- Keys$1["ArrowLeft"] = "ArrowLeft";
13
- Keys$1["ArrowUp"] = "ArrowUp";
14
- Keys$1["ArrowRight"] = "ArrowRight";
15
- Keys$1["ArrowDown"] = "ArrowDown";
16
- Keys$1["F2"] = "F2";
17
- return Keys$1;
2
+ //#region src/hooks/useTableNav.ts
3
+ var Keys = /* @__PURE__ */ function(Keys) {
4
+ Keys["Enter"] = "Enter";
5
+ Keys["Escape"] = "Escape";
6
+ Keys["Shift"] = "Shift";
7
+ Keys["Control"] = "Control";
8
+ Keys["Home"] = "Home";
9
+ Keys["End"] = "End";
10
+ Keys["Backspace"] = "Backspace";
11
+ /** Page Keys */
12
+ Keys["PageUp"] = "PageUp";
13
+ Keys["PageDown"] = "PageDown";
14
+ /** Arrow Keys */
15
+ Keys["ArrowLeft"] = "ArrowLeft";
16
+ Keys["ArrowUp"] = "ArrowUp";
17
+ Keys["ArrowRight"] = "ArrowRight";
18
+ Keys["ArrowDown"] = "ArrowDown";
19
+ Keys["F2"] = "F2";
20
+ return Keys;
18
21
  }(Keys || {});
19
22
  var Selectors = {
20
23
  Cell: "[role=\"cell\"],[role=\"gridcell\"],[role=\"columnheader\"],[role=\"rowheader\"],td,th",
@@ -39,9 +42,17 @@ var DataGridNav = class {
39
42
  this.debug = debug;
40
43
  this.disabled = false;
41
44
  }
45
+ /**
46
+ * Disables the keyboard listener in cases
47
+ * that elements inside the grid need to use
48
+ * arrows keys etc., like select dropdowns
49
+ */
42
50
  disable() {
43
51
  this.disabled = true;
44
52
  }
53
+ /**
54
+ * Enables the keyboard listeners
55
+ */
45
56
  enable() {
46
57
  this.disabled = false;
47
58
  }
@@ -51,21 +62,48 @@ var DataGridNav = class {
51
62
  getActiveCell() {
52
63
  return this.activeCell;
53
64
  }
65
+ /** Used as a keyboard listener for key up */
54
66
  tableKeyUp() {
55
67
  this.keys = [];
56
68
  }
69
+ /** Used as a keyboard listener for key down */
57
70
  tableKeyDown(e) {
58
71
  if (this.disabled) return;
72
+ /**
73
+ * Avoid page scrolling etc.
74
+ * Enable default behavior for:
75
+ * Tab, Shift + Tab
76
+ * TODO: Actually it will be better to just prevent
77
+ * in ArrowKeys and PageKeys maybe?
78
+ * Or should the consumer stop propagation?!
79
+ * Cannot work with preventDefault as it will
80
+ * first capture the event from an input in cell for example
81
+ */
59
82
  if (Keys.ArrowDown === e.key || Keys.ArrowUp === e.key || Keys.ArrowLeft === e.key || Keys.ArrowRight === e.key) e.preventDefault();
83
+ /**
84
+ * Add key to the stack if it's
85
+ * not the same with the last (long press)
86
+ */
60
87
  if (this.keys.length === 0 || this.keys[this.keys.length - 1] !== e.key) this.keys.push(e.key);
88
+ /**
89
+ * Need to check if we are inside a grid cell
90
+ * or not to enable/disable Grid Navigation
91
+ */
61
92
  if (!(e.target instanceof Element)) return;
62
93
  const cell = e.target.parentElement?.closest(`${this.selectors.Cell},${this.selectors.Row}`);
63
94
  if (!cell) return;
64
95
  if (cell.matches(this.selectors.Cell)) this.cellNavigation(e);
65
96
  else this.gridNavigation(e);
66
97
  }
98
+ /**
99
+ * Handles the navigation inside a cell
100
+ */
67
101
  cellNavigation(e) {
68
102
  if (!(e.target instanceof Element)) return;
103
+ /**
104
+ * Keys: Escape
105
+ * Restore grid navigation
106
+ */
69
107
  if (e.key === Keys.Escape) {
70
108
  const cell = e.target.closest(this.selectors.Cell);
71
109
  if (cell && this.isFocusable(cell)) {
@@ -73,6 +111,13 @@ var DataGridNav = class {
73
111
  return;
74
112
  }
75
113
  }
114
+ /**
115
+ * Keys: ArrowRight, ArrowDown
116
+ * Move to the next focusable cell, or the first one
117
+ *
118
+ * Arrow Down disabled:
119
+ * https://github.com/w3c/aria-practices/issues/2739#issuecomment-1613538972
120
+ */
76
121
  if (e.key === Keys.ArrowRight || e.key === Keys.ArrowDown) {
77
122
  const cell = e.target.closest(this.selectors.Cell);
78
123
  if (!cell) return;
@@ -82,6 +127,13 @@ var DataGridNav = class {
82
127
  if (this.isFocusable(widgetToFocus)) widgetToFocus.focus();
83
128
  return;
84
129
  }
130
+ /**
131
+ * Keys: ArrowLeft, ArrowUp
132
+ * Move to the previous focusable cell, or the last one
133
+ *
134
+ * Arrow Up disabled:
135
+ * https://github.com/w3c/aria-practices/issues/2739#issuecomment-1613538972
136
+ */
85
137
  if (e.key === Keys.ArrowLeft || e.key === Keys.ArrowUp) {
86
138
  const cell = e.target.closest(this.selectors.Cell);
87
139
  if (!cell) return;
@@ -91,11 +143,20 @@ var DataGridNav = class {
91
143
  if (this.isFocusable(widgetToFocus)) widgetToFocus.focus();
92
144
  }
93
145
  }
146
+ /**
147
+ * Handles the navigation outside a cell
148
+ * on the grid level
149
+ */
94
150
  gridNavigation(e) {
95
151
  const { target } = e;
96
152
  if (!(e.target instanceof Element)) return;
97
153
  if (!(target instanceof Element)) return;
98
154
  if (this.keys.length === 1) {
155
+ /**
156
+ * Keys: Enter
157
+ * Should move focus inside the cell to the first focusable element:
158
+ * https://www.w3.org/WAI/ARIA/apg/patterns/grid/#gridNav_inside
159
+ */
99
160
  if (/^[a-zA-Z0-9]$/.test(e.key)) {
100
161
  const cell = e.target.querySelector(this.selectors.Focusable);
101
162
  if (cell && this.isFocusable(cell) && cell instanceof HTMLInputElement) {
@@ -129,6 +190,10 @@ var DataGridNav = class {
129
190
  }
130
191
  return;
131
192
  }
193
+ /**
194
+ * Keys: ArrowLeft, ArrowRight
195
+ * Should move focus to the next/previous cell
196
+ */
132
197
  if (e.key === Keys.ArrowLeft || e.key === Keys.ArrowRight) {
133
198
  const direction = e.key === Keys.ArrowLeft ? "prev" : "next";
134
199
  const cell = e.target.closest(this.selectors.Cell);
@@ -140,20 +205,37 @@ var DataGridNav = class {
140
205
  e.preventDefault();
141
206
  }
142
207
  }
208
+ /**
209
+ * Keys: Up,Down
210
+ * Should move focus to the same column of the next/previous row
211
+ */
143
212
  if (e.key === Keys.ArrowDown || e.key === Keys.ArrowUp) {
144
213
  this.verticalCellNavigation(e);
145
214
  return;
146
215
  }
216
+ /**
217
+ * Keys: PageUp, PageDown
218
+ * Should move focus to the first/last row
219
+ * or a predefined number of rows if user provides a value
220
+ */
147
221
  if (e.key === Keys.PageUp || e.key === Keys.PageDown) {
148
222
  this.pageCellNavigation(e);
149
223
  return;
150
224
  }
225
+ /**
226
+ * Keys: Home, End
227
+ * Should move focus to the first/last cell of the current row
228
+ */
151
229
  if (e.key === Keys.Home || e.key === Keys.End) {
152
230
  const rowChildren = [...e.target.closest(this.selectors.Row)?.children || []];
153
231
  if (e.key === Keys.End) rowChildren.reverse();
154
232
  this.focusOnFirstCell(rowChildren);
155
233
  }
156
234
  } else {
235
+ /**
236
+ * Keys: Control + Home, Control + End
237
+ * Should move focus to the first/last cell of the first/last row
238
+ */
157
239
  const [firstKey, secondKey] = this.keys;
158
240
  if (firstKey === "Control" && (secondKey === Keys.Home || secondKey === Keys.End)) {
159
241
  const siblings = e.target.closest(this.selectors.Row).parentElement?.children;
@@ -200,34 +282,43 @@ var DataGridNav = class {
200
282
  const rowPosition = this.getRowIndex(row);
201
283
  if (cellPosition === void 0 || rowPosition === void 0) return;
202
284
  const direction = e.key === Keys.ArrowUp ? "prev" : "next";
285
+ /** Find previous rowgroup and focus on the proper cell */
203
286
  if (rowPosition === 0 && direction === "prev") {
204
287
  const currentRowGroup = row.parentElement?.closest(this.selectors.RowGroup);
205
288
  const siblingRowGroups = [...currentRowGroup?.parentElement?.children || []];
206
289
  const currentRowGroupIdx = siblingRowGroups.findIndex((el) => el === currentRowGroup);
207
290
  if (currentRowGroupIdx !== 0) {
208
291
  const rows = [...siblingRowGroups[currentRowGroupIdx - 1].querySelectorAll(this.selectors.Row)];
209
- const child$1 = rows[rows.length - 1].children[cellPosition];
210
- if (child$1 && this.isFocusable(child$1)) child$1.focus();
292
+ const child = rows[rows.length - 1].children[cellPosition];
293
+ if (child && this.isFocusable(child)) child.focus();
211
294
  return;
212
295
  }
213
296
  }
297
+ /** Find next rowgroup and focus on the proper cell */
214
298
  if (rowPosition === [...row.parentElement?.querySelectorAll(this.selectors.Row) || []].length - 1 && direction === "next") {
215
299
  const currentRowGroup = row.parentElement?.closest(this.selectors.RowGroup);
216
300
  const siblingRowGroups = [...currentRowGroup?.parentElement?.children || []];
217
301
  const currentRowGroupIdx = siblingRowGroups.findIndex((el) => el === currentRowGroup);
218
302
  if (currentRowGroupIdx !== siblingRowGroups.length - 1) {
219
- const child$1 = [...siblingRowGroups[currentRowGroupIdx + 1].querySelectorAll(this.selectors.Row)][0].children[cellPosition];
220
- if (child$1 && this.isFocusable(child$1)) child$1.focus();
303
+ const child = [...siblingRowGroups[currentRowGroupIdx + 1].querySelectorAll(this.selectors.Row)][0].children[cellPosition];
304
+ if (child && this.isFocusable(child)) child.focus();
221
305
  return;
222
306
  }
223
307
  return;
224
308
  }
309
+ /** Navigation in the same rowgroup */
225
310
  const destinationRow = this.findUntil(direction, row, this.selectors.Row);
226
311
  if (!destinationRow) return;
227
312
  const child = destinationRow.children[cellPosition];
228
313
  if (child && this.isFocusable(child)) child.focus();
229
314
  }
230
315
  }
316
+ /**
317
+ * Sending a row `Element` and then the first cell will be focused.
318
+ *
319
+ * If you want to focus the last cell then the row children can be passed in
320
+ * reversed order
321
+ */
231
322
  focusOnFirstCell(el) {
232
323
  for (let i = 0; i < el.length; i++) {
233
324
  const child = el[i];
@@ -237,6 +328,10 @@ var DataGridNav = class {
237
328
  }
238
329
  }
239
330
  }
331
+ /**
332
+ * Get the column index of a `cell` based on the first `row` parent.
333
+ * `cellIndex` could be used, but it's not supported in HTML tables.
334
+ */
240
335
  getColumnIndex(cell) {
241
336
  let position = 0;
242
337
  const siblings = cell?.parentNode?.children;
@@ -245,6 +340,10 @@ var DataGridNav = class {
245
340
  if (siblings[position] === void 0) return;
246
341
  return position;
247
342
  }
343
+ /**
344
+ * Get the row index of a `row` based
345
+ * on its sibling rows
346
+ */
248
347
  getRowIndex(row) {
249
348
  let position = 0;
250
349
  const siblings = row?.parentNode?.children;
@@ -253,6 +352,10 @@ var DataGridNav = class {
253
352
  if (siblings[position] === void 0) return;
254
353
  return position;
255
354
  }
355
+ /**
356
+ * Equivalent to prevUntil/nextUntil in jQuery
357
+ * https://api.jquery.com/prevUntil/
358
+ */
256
359
  findUntil(direction, el, matchSelector, exitSelector) {
257
360
  let element = el;
258
361
  const method = direction === "next" ? "nextSibling" : "previousSibling";
@@ -276,4 +379,5 @@ function useTableNav(options) {
276
379
  tableNav: nav
277
380
  };
278
381
  }
382
+ //#endregion
279
383
  export { useTableNav };
@@ -1,5 +1,6 @@
1
1
  import { useMemo } from "react";
2
2
  import { useTranslation } from "react-i18next";
3
+ //#region src/hooks/useTranslationMemo.ts
3
4
  function useTranslationMemo(func) {
4
5
  const { t } = useTranslation();
5
6
  return useMemo(() => {
@@ -7,4 +8,5 @@ function useTranslationMemo(func) {
7
8
  return func();
8
9
  }, [func, t]);
9
10
  }
11
+ //#endregion
10
12
  export { useTranslationMemo };
@@ -1,5 +1,6 @@
1
1
  import plugin from "tailwindcss/plugin";
2
- var tw_ui_plugin_default = plugin(({ addVariant }) => {
2
+ //#region src/tw-ui-plugin.ts
3
+ var uiPlugin = plugin(({ addVariant }) => {
3
4
  addVariant("input-filled", [
4
5
  "&:has(input:not(:placeholder-shown))",
5
6
  "&:is(:where(.group\\/input-content):has(:is(input:not(:placeholder-shown))) *)",
@@ -18,4 +19,5 @@ var tw_ui_plugin_default = plugin(({ addVariant }) => {
18
19
  "&:is(:where(.group\\/date-picker-content):where([data-rac])[data-disabled] *)"
19
20
  ].join(", "));
20
21
  });
21
- export { tw_ui_plugin_default as default };
22
+ //#endregion
23
+ export { uiPlugin as default };
@@ -1,8 +1,10 @@
1
- let ArrayUtils;
1
+ //#region src/utils/array.utils.ts
2
+ var ArrayUtils;
2
3
  (function(_ArrayUtils) {
3
4
  _ArrayUtils.fromCommaSeparatedStr = (str) => {
4
5
  if (!str) return [];
5
6
  return str.split(",").map((item) => item.trim());
6
7
  };
7
8
  })(ArrayUtils || (ArrayUtils = {}));
9
+ //#endregion
8
10
  export { ArrayUtils };
@@ -1,4 +1,5 @@
1
- const compoundMapper = (config) => {
1
+ //#region src/utils/compoundMapper.ts
2
+ var compoundMapper = (config) => {
2
3
  return (props) => {
3
4
  return (config.compoundVariants?.find((v) => {
4
5
  return Object.entries(v).filter(([key]) => key !== "value").every(([key, value]) => {
@@ -8,4 +9,5 @@ const compoundMapper = (config) => {
8
9
  }))?.value ?? config.default;
9
10
  };
10
11
  };
12
+ //#endregion
11
13
  export { compoundMapper };
@@ -1,5 +1,15 @@
1
1
  import { CalendarDate, CalendarDateTime, DateValue, ZonedDateTime } from '@internationalized/date';
2
2
  export declare namespace DateTimeUtils {
3
+ function getDatePlaceholder(locale?: string): string;
4
+ function getTimePlaceholder(locale?: string): string;
5
+ function getDateTimePlaceholder(locale?: string): string;
6
+ function getDateRangePlaceholder(locale?: string): string;
7
+ function formatCalendarDateLocalized(calendarDate: CalendarDate, locale?: string): string;
8
+ function formatTimeLocalized(timeValue: {
9
+ hour: number;
10
+ minute: number;
11
+ }, locale?: string): string;
12
+ function formatCalendarDateTimeLocalized(calendarDateTime: Pick<CalendarDateTime, "day" | "month" | "year" | "hour" | "minute">, locale?: string): string;
3
13
  function fromISOtoZonedDateTime(isoString: string): ZonedDateTime;
4
14
  function fromDateValueToISO(dateValue: DateValue): string;
5
15
  function fromLocalToZonedDateTime(date: Date): ZonedDateTime;
@@ -1,6 +1,88 @@
1
- import { CalendarDate, CalendarDateTime, fromDate, getLocalTimeZone, parseAbsolute, parseAbsoluteToLocal } from "@internationalized/date";
2
- let DateTimeUtils;
1
+ import { CalendarDate, CalendarDateTime, DateFormatter, fromDate, getLocalTimeZone, parseAbsolute, parseAbsoluteToLocal } from "@internationalized/date";
2
+ //#region src/utils/date-time.utils.ts
3
+ var DateTimeUtils;
3
4
  (function(_DateTimeUtils) {
5
+ const DATE_SAMPLE_DATE_UTC = new Date(Date.UTC(2e3, 10, 22));
6
+ const TIME_SAMPLE_DATE_UTC = new Date(Date.UTC(2e3, 10, 22, 13, 45));
7
+ const getDatePlaceholderFormatter = (locale) => new Intl.DateTimeFormat(locale, {
8
+ day: "2-digit",
9
+ month: "2-digit",
10
+ year: "numeric"
11
+ });
12
+ const getTimePlaceholderFormatter = (locale) => new Intl.DateTimeFormat(locale, {
13
+ hour: "2-digit",
14
+ minute: "2-digit",
15
+ hourCycle: "h23"
16
+ });
17
+ const getResolvedLocale = (locale) => {
18
+ if (locale) return locale;
19
+ return new Intl.DateTimeFormat().resolvedOptions().locale;
20
+ };
21
+ const getDateFormatter = (locale) => new DateFormatter(getResolvedLocale(locale), {
22
+ day: "2-digit",
23
+ month: "2-digit",
24
+ year: "numeric",
25
+ timeZone: "UTC"
26
+ });
27
+ const getTimeFormatter = (locale) => new DateFormatter(getResolvedLocale(locale), {
28
+ hour: "2-digit",
29
+ minute: "2-digit",
30
+ hourCycle: "h23",
31
+ timeZone: "UTC"
32
+ });
33
+ const getDateTimeFormatter = (locale) => new DateFormatter(getResolvedLocale(locale), {
34
+ day: "2-digit",
35
+ month: "2-digit",
36
+ year: "numeric",
37
+ hour: "2-digit",
38
+ minute: "2-digit",
39
+ hourCycle: "h23",
40
+ timeZone: "UTC"
41
+ });
42
+ const mapTypeToPlaceholder = (type) => {
43
+ switch (type) {
44
+ case "day": return "dd";
45
+ case "month": return "mm";
46
+ case "year": return "yyyy";
47
+ case "hour": return "hh";
48
+ case "minute": return "mm";
49
+ default: return null;
50
+ }
51
+ };
52
+ const formatPlaceholder = (formatter, sampleDate) => {
53
+ return formatter.formatToParts(sampleDate).map((part) => mapTypeToPlaceholder(part.type) ?? part.value).join("");
54
+ };
55
+ function getDatePlaceholder(locale) {
56
+ return formatPlaceholder(getDatePlaceholderFormatter(locale), DATE_SAMPLE_DATE_UTC);
57
+ }
58
+ _DateTimeUtils.getDatePlaceholder = getDatePlaceholder;
59
+ function getTimePlaceholder(locale) {
60
+ return formatPlaceholder(getTimePlaceholderFormatter(locale), TIME_SAMPLE_DATE_UTC);
61
+ }
62
+ _DateTimeUtils.getTimePlaceholder = getTimePlaceholder;
63
+ function getDateTimePlaceholder(locale) {
64
+ return `${getDatePlaceholder(locale)}, ${getTimePlaceholder(locale)}`;
65
+ }
66
+ _DateTimeUtils.getDateTimePlaceholder = getDateTimePlaceholder;
67
+ function getDateRangePlaceholder(locale) {
68
+ const datePlaceholder = getDatePlaceholder(locale);
69
+ return `${datePlaceholder} – ${datePlaceholder}`;
70
+ }
71
+ _DateTimeUtils.getDateRangePlaceholder = getDateRangePlaceholder;
72
+ function formatCalendarDateLocalized(calendarDate, locale) {
73
+ return getDateFormatter(locale).format(calendarDate.toDate("UTC"));
74
+ }
75
+ _DateTimeUtils.formatCalendarDateLocalized = formatCalendarDateLocalized;
76
+ function formatTimeLocalized(timeValue, locale) {
77
+ const dateTime = new CalendarDateTime(2e3, 11, 22, timeValue.hour, timeValue.minute);
78
+ return getTimeFormatter(locale).format(dateTime.toDate("UTC"));
79
+ }
80
+ _DateTimeUtils.formatTimeLocalized = formatTimeLocalized;
81
+ function formatCalendarDateTimeLocalized(calendarDateTime, locale) {
82
+ const normalizedValue = new CalendarDateTime(calendarDateTime.year, calendarDateTime.month, calendarDateTime.day, calendarDateTime.hour, calendarDateTime.minute);
83
+ return getDateTimeFormatter(locale).format(normalizedValue.toDate("UTC"));
84
+ }
85
+ _DateTimeUtils.formatCalendarDateTimeLocalized = formatCalendarDateTimeLocalized;
4
86
  function fromISOtoZonedDateTime(isoString) {
5
87
  return parseAbsoluteToLocal(isoString);
6
88
  }
@@ -47,4 +129,5 @@ let DateTimeUtils;
47
129
  }
48
130
  _DateTimeUtils.formatTextDateToCalendarDateTime = formatTextDateToCalendarDateTime;
49
131
  })(DateTimeUtils || (DateTimeUtils = {}));
132
+ //#endregion
50
133
  export { DateTimeUtils };
@@ -1,5 +1,6 @@
1
1
  import { DateTime } from "luxon";
2
- let DateUtils;
2
+ //#region src/utils/date.utils.ts
3
+ var DateUtils;
3
4
  (function(_DateUtils) {
4
5
  const DATE_FORMAT = "dd/MM/yyyy";
5
6
  const DATETIME_FORMAT = "dd/MM/yyyy HH:mm:ss";
@@ -14,4 +15,5 @@ let DateUtils;
14
15
  }
15
16
  _DateUtils.formatRelativeTime = formatRelativeTime;
16
17
  })(DateUtils || (DateUtils = {}));
18
+ //#endregion
17
19
  export { DateUtils };
@@ -1,4 +1,5 @@
1
- let DomUtils;
1
+ //#region src/utils/dom.utils.ts
2
+ var DomUtils;
2
3
  (function(_DomUtils) {
3
4
  const KEYBOARD_INPUTS = new Set([
4
5
  "button",
@@ -14,4 +15,5 @@ let DomUtils;
14
15
  return event.nativeEvent instanceof KeyboardEvent;
15
16
  };
16
17
  })(DomUtils || (DomUtils = {}));
18
+ //#endregion
17
19
  export { DomUtils };
@@ -1,5 +1,6 @@
1
1
  import { RestUtils } from "./rest.utils.js";
2
- let FileUtils;
2
+ //#region src/utils/file.utils.ts
3
+ var FileUtils;
3
4
  (function(_FileUtils) {
4
5
  const getObjectUrl = _FileUtils.getObjectUrl = (data, revokeTimeoutMs = 4e4) => {
5
6
  const url = URL.createObjectURL(data instanceof Blob ? data : data.data);
@@ -45,4 +46,5 @@ let FileUtils;
45
46
  return `${(size / 1024 / 1024 / 1024).toFixed(decimals)} GB`;
46
47
  };
47
48
  })(FileUtils || (FileUtils = {}));
49
+ //#endregion
48
50
  export { FileUtils };
@@ -1,5 +1,6 @@
1
1
  import { ObjectUtils } from "./object.utils.js";
2
- const isEqual = (a, b) => {
2
+ //#region src/utils/isEqual.ts
3
+ var isEqual = (a, b) => {
3
4
  return eq(a, b);
4
5
  };
5
6
  var eq = (a, b, aStack, bStack) => {
@@ -54,4 +55,5 @@ var deepEq = (a, b, aStack, bStack) => {
54
55
  bStack.pop();
55
56
  return true;
56
57
  };
58
+ //#endregion
57
59
  export { isEqual };
@@ -1,5 +1,6 @@
1
1
  import log from "loglevel";
2
2
  import prefix from "loglevel-plugin-prefix";
3
+ //#region src/utils/logger.ts
3
4
  prefix.reg(log);
4
5
  prefix.apply(log, {
5
6
  template: "[%t] %l:",
@@ -7,11 +8,12 @@ prefix.apply(log, {
7
8
  return date.toISOString();
8
9
  }
9
10
  });
10
- const logger = {
11
+ var logger = {
11
12
  info: (...args) => log.info(...args),
12
13
  debug: (...args) => log.debug(...args),
13
14
  warn: (...args) => log.warn(...args),
14
15
  error: (...args) => log.error(...args),
15
16
  trace: (...args) => log.trace(...args)
16
17
  };
18
+ //#endregion
17
19
  export { logger };
@@ -1,4 +1,5 @@
1
- let ObjectUtils;
1
+ //#region src/utils/object.utils.ts
2
+ var ObjectUtils;
2
3
  (function(_ObjectUtils) {
3
4
  _ObjectUtils.isNil = (obj) => {
4
5
  return obj === null || obj === void 0;
@@ -33,4 +34,5 @@ let ObjectUtils;
33
34
  return output;
34
35
  };
35
36
  })(ObjectUtils || (ObjectUtils = {}));
37
+ //#endregion
36
38
  export { ObjectUtils };
@@ -1,7 +1,9 @@
1
- let QueriesUtils;
1
+ //#region src/utils/queries.utils.ts
2
+ var QueriesUtils;
2
3
  (function(_QueriesUtils) {
3
4
  _QueriesUtils.prefetchMultipleQueries = (queryClient, queries) => {
4
5
  return Promise.all(queries.map((query) => query(queryClient)));
5
6
  };
6
7
  })(QueriesUtils || (QueriesUtils = {}));
8
+ //#endregion
7
9
  export { QueriesUtils };
@@ -1,6 +1,7 @@
1
1
  import axios from "axios";
2
2
  import { z } from "zod";
3
- let RestUtils;
3
+ //#region src/utils/rest.utils.ts
4
+ var RestUtils;
4
5
  (function(_RestUtils) {
5
6
  _RestUtils.extractServerResponseCode = (e) => {
6
7
  if (e instanceof z.ZodError) return "validation-exception";
@@ -28,4 +29,5 @@ let RestUtils;
28
29
  return contentDisposition ? /filename=["']?([^"';]+)/i.exec(contentDisposition)?.[1] : void 0;
29
30
  };
30
31
  })(RestUtils || (RestUtils = {}));
32
+ //#endregion
31
33
  export { RestUtils };
@@ -1,4 +1,5 @@
1
- let RoutingUtils;
1
+ //#region src/utils/routing.utils.ts
2
+ var RoutingUtils;
2
3
  (function(_RoutingUtils) {
3
4
  _RoutingUtils.addQueryParams = (path, params) => {
4
5
  const sParams = new URLSearchParams();
@@ -6,4 +7,5 @@ let RoutingUtils;
6
7
  return `${path}?${sParams.toString()}`;
7
8
  };
8
9
  })(RoutingUtils || (RoutingUtils = {}));
10
+ //#endregion
9
11
  export { RoutingUtils };
@@ -1,4 +1,5 @@
1
- let StringUtils;
1
+ //#region src/utils/string.utils.ts
2
+ var StringUtils;
2
3
  (function(_StringUtils) {
3
4
  _StringUtils.containsCaseInsensitive = (str, substr) => {
4
5
  return str.toLowerCase().includes(substr.toLowerCase());
@@ -7,4 +8,5 @@ let StringUtils;
7
8
  return str.charAt(0).toUpperCase() + str.slice(1);
8
9
  };
9
10
  })(StringUtils || (StringUtils = {}));
11
+ //#endregion
10
12
  export { StringUtils };
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
- let ZodUtils;
2
+ //#region src/utils/zod.utils.ts
3
+ var ZodUtils;
3
4
  (function(_ZodUtils) {
4
5
  const unwrapZodType = _ZodUtils.unwrapZodType = (schemaType) => {
5
6
  let unwrappedType = schemaType;
@@ -14,4 +15,5 @@ let ZodUtils;
14
15
  return unwrappedType instanceof z.ZodObject && hasZodObjectProperty(unwrappedType, "start", z.ZodISODateTime) && hasZodObjectProperty(unwrappedType, "end", z.ZodISODateTime);
15
16
  };
16
17
  })(ZodUtils || (ZodUtils = {}));
18
+ //#endregion
17
19
  export { ZodUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "2.2.6",
3
+ "version": "2.2.8-rc",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "react-responsive": "^10.0.1",
48
48
  "react-stately": "^3.44.0",
49
49
  "react-toastify": "^11.0.5",
50
- "tailwindcss": "^4.1.18",
50
+ "tailwindcss": "^4.2.1",
51
51
  "tailwindcss-react-aria-components": "^2.0.1",
52
52
  "zod": "^4.3.5"
53
53
  },