@povio/ui 5.0.0-rc.3 → 5.0.0-rc.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 (126) hide show
  1. package/README.md +6 -2
  2. package/dist/{Breadcrumbs-CbKzAq1v.js → Breadcrumbs-FF8hMfXd.js} +1 -1
  3. package/dist/{Calendar-CVSQH-rC.js → Calendar-BTjajO6i.js} +6 -136
  4. package/dist/{Checkbox-BU0d702K.js → Checkbox-CV1ILXXO.js} +1 -1
  5. package/dist/{CheckboxCheckmark-usHsolNj.js → CheckboxCheckmark-CpC3wlMs.js} +1 -1
  6. package/dist/{ComponentGallery-DIFeJqGx.js → ComponentGallery-BWiPGUL8.js} +1343 -206
  7. package/dist/{DatePicker-D95gDPhg.js → DatePicker-DOLL7mkc.js} +12 -12
  8. package/dist/{DatePickerInput-CX6NYim4.js → DatePickerInput-BLBcySA2.js} +8 -7
  9. package/dist/{DateRangePicker-_uTQk_ae.js → DateRangePicker-BF-1CztH.js} +13 -185
  10. package/dist/{DateTimePicker-BB058Z34.js → DateTimePicker-Cj0qvJUz.js} +12 -12
  11. package/dist/{FileInput-C0-6bw4w.js → FileInput-Br5DQaGQ.js} +3 -2
  12. package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
  13. package/dist/{FileUpload-DDpYMn8f.js → FileUpload--7ub3EZO.js} +3 -2
  14. package/dist/{FormField-U_-d4V_g.js → FormField-B99dLt8o.js} +1 -1
  15. package/dist/{FormFieldHeaderTooltip-DXbuu88v.js → FormFieldHeaderTooltip-BV2Ju4oB.js} +1 -1
  16. package/dist/{InlineTooltipWrapper-Bpmd--e7.js → InlineTooltipWrapper-BpApaGXV.js} +1 -1
  17. package/dist/{InputItem-D-KuiNSc.js → InputItem-CIxbTxZu.js} +10 -10
  18. package/dist/{Inputs-j3JmcLWR.js → Inputs-DJSKiaWY.js} +1 -1
  19. package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
  20. package/dist/{NumberRangeInput-C-8U05wF.js → NumberRangeInput-B8-LHfg3.js} +6 -5
  21. package/dist/{RadioGroup-B7_pNwn9.js → RadioGroup-DOw3PRoX.js} +1 -1
  22. package/dist/{RichTextEditor-D9-B1Cze.js → RichTextEditor-D4yN7Wj7.js} +2 -2
  23. package/dist/{Select-CkujlTjm.js → Select-UR0ec2Ux.js} +2 -2
  24. package/dist/{Slider-BHPl0OPy.js → Slider-CzEmKYBF.js} +1 -1
  25. package/dist/{Table-BDNSuEWc.js → Table-piX1SWvN.js} +1 -1
  26. package/dist/{TextArea-DqHDiRGJ.js → TextArea-D8WkKsGn.js} +3 -3
  27. package/dist/{TimePicker-DQ6JCkGB.js → TimePicker-C4taAOFQ.js} +10 -9
  28. package/dist/{ToggleGroup-DX0VYXwP.js → ToggleGroup-DOk27fgI.js} +5 -66
  29. package/dist/{Tooltip-B9DKcYvr.js → Tooltip-CpG1nz7Y.js} +2 -2
  30. package/dist/{TooltipWrapper-DznDgVJB.js → TooltipWrapper-3jyN0Wss.js} +1 -1
  31. package/dist/components/autocomplete.js +2 -2
  32. package/dist/components/breadcrumbs.js +1 -1
  33. package/dist/components/checkbox-group.js +3 -3
  34. package/dist/components/checkbox.js +1 -1
  35. package/dist/components/date-picker.js +1 -1
  36. package/dist/components/date-range-picker.js +1 -1
  37. package/dist/components/date-time-picker.js +1 -1
  38. package/dist/components/file-input.js +1 -1
  39. package/dist/components/file-upload-container.js +1 -1
  40. package/dist/components/file-upload.js +1 -1
  41. package/dist/components/form-field.js +1 -1
  42. package/dist/components/icon-button.js +1 -1
  43. package/dist/components/input.js +4 -4
  44. package/dist/components/number-field.js +7 -6
  45. package/dist/components/number-range-input.js +1 -1
  46. package/dist/components/pagination.js +32 -28
  47. package/dist/components/query-autocomplete.js +1 -1
  48. package/dist/components/query-select.js +2 -2
  49. package/dist/components/radio-group.js +1 -1
  50. package/dist/components/select.js +1 -1
  51. package/dist/components/slider.js +1 -1
  52. package/dist/components/text-area.js +1 -1
  53. package/dist/components/time-picker.js +1 -1
  54. package/dist/components/toggle-group.js +1 -1
  55. package/dist/components/tooltip-ellipsis.js +1 -1
  56. package/dist/components/tooltip.js +1 -1
  57. package/dist/config/ui-configurator-theme.js +1 -1
  58. package/dist/config/ui-configurator.js +1081 -257
  59. package/dist/config/ui-router.js +1 -1
  60. package/dist/{datePickerValue.utils-CUzkWie8.js → datePickerValue.utils-DCgoSrP3.js} +5 -5
  61. package/dist/hooks/use-filters.js +1 -1
  62. package/dist/index.js +15 -15
  63. package/dist/numberStatic.utils-BX50PSee.js +421 -0
  64. package/dist/rhf/checkbox.js +1 -1
  65. package/dist/rhf/date-picker.js +1 -1
  66. package/dist/rhf/date-range-picker.js +1 -1
  67. package/dist/rhf/date-time-picker.js +1 -1
  68. package/dist/rhf/file-input.js +1 -1
  69. package/dist/rhf/file-upload.js +1 -1
  70. package/dist/rhf/number-range-input.js +1 -1
  71. package/dist/rhf/radio-group.js +1 -1
  72. package/dist/rhf/rich-text-editor.js +1 -1
  73. package/dist/rhf/select.js +1 -1
  74. package/dist/rhf/slider.js +1 -1
  75. package/dist/rhf/text-area.js +1 -1
  76. package/dist/rhf/time-picker.js +1 -1
  77. package/dist/rhf/toggle-group.js +1 -1
  78. package/dist/rhf.js +15 -15
  79. package/dist/rich-text-editor.js +1 -1
  80. package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
  81. package/dist/staticDateTimeSegments-DtU63_dw.js +1764 -0
  82. package/dist/{staticSelect.utils-BemUyaaA.js → staticSelect.utils-uHa8f_c6.js} +5 -144
  83. package/dist/styles/configurator.css +731 -218
  84. package/dist/{table.cva-BikE8qJH.js → table.cva-DlMT-zLD.js} +2 -3
  85. package/dist/tanstack/checkbox.js +1 -1
  86. package/dist/tanstack/date-picker.js +1 -1
  87. package/dist/tanstack/date-range-picker.js +1 -1
  88. package/dist/tanstack/date-time-picker.js +1 -1
  89. package/dist/tanstack/file-input.js +1 -1
  90. package/dist/tanstack/file-upload.js +1 -1
  91. package/dist/tanstack/form.js +1 -1
  92. package/dist/tanstack/inputs.js +1 -1
  93. package/dist/tanstack/number-range-input.js +1 -1
  94. package/dist/tanstack/radio-group.js +1 -1
  95. package/dist/tanstack/rich-text-editor.js +1 -1
  96. package/dist/tanstack/select.js +1 -1
  97. package/dist/tanstack/slider.js +1 -1
  98. package/dist/tanstack/table.js +2 -2
  99. package/dist/tanstack/text-area.js +1 -1
  100. package/dist/tanstack/time-picker.js +1 -1
  101. package/dist/tanstack/toggle-group.js +1 -1
  102. package/dist/tanstack.js +27 -27
  103. package/dist/theme-model-DtYPxNvH.js +406 -0
  104. package/dist/upload-CXU83BJ4.js +30 -0
  105. package/dist/useControlledState-CzXkZCX8.js +30 -0
  106. package/dist/{useFieldAccessibility-B4MVL6fz.js → useFieldAccessibility-ScC6Mtd5.js} +2 -2
  107. package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
  108. package/dist/{useFormAutosave-Mg-tdwMh.js → useFormAutosave-DfuP7drj.js} +1 -1
  109. package/dist/{useStaticInputHandoff-CvSBPUB3.js → useStaticInputHandoff-NeZVnci-.js} +3 -3
  110. package/dist/{useTableColumnConfig-gfVame8v.js → useTableColumnConfig-BTGZiluz.js} +3 -3
  111. package/package.json +1 -1
  112. package/src/configurator/README.md +3 -3
  113. package/dist/FocusScope-CO9oJ1sc.js +0 -343
  114. package/dist/chain-DIXr2VAT.js +0 -10
  115. package/dist/focusSafely-DCGrr2bb.js +0 -447
  116. package/dist/getScrollParent-kSR7EtoT.js +0 -47
  117. package/dist/numberStatic.utils-BMgRzyd3.js +0 -902
  118. package/dist/openLink-CQhMhfzO.js +0 -121
  119. package/dist/platform-BXNIIAfU.js +0 -42
  120. package/dist/staticDateTimeSegments-CsCE9Buo.js +0 -3604
  121. package/dist/theme-model-C-QMCksE.js +0 -136
  122. package/dist/useControlledState-DQxX6LMN.js +0 -189
  123. package/dist/useFocusable-Bd0UsrQ7.js +0 -63
  124. package/dist/useFormValidationState-D3z-gafz.js +0 -1341
  125. package/dist/useLayoutEffect-B2-1tbPJ.js +0 -83
  126. package/dist/useSyncRef-RGMv0rXK.js +0 -338
@@ -1,2 +1,2 @@
1
- import { t as FileUpload } from "../FileUpload-DDpYMn8f.js";
1
+ import { t as FileUpload } from "../FileUpload--7ub3EZO.js";
2
2
  export { FileUpload };
@@ -1,2 +1,2 @@
1
- import { t as FormField } from "../FormField-U_-d4V_g.js";
1
+ import { t as FormField } from "../FormField-B99dLt8o.js";
2
2
  export { FormField };
@@ -1,4 +1,4 @@
1
- import { t as Tooltip } from "../Tooltip-B9DKcYvr.js";
1
+ import { t as Tooltip } from "../Tooltip-CpG1nz7Y.js";
2
2
  import { t as Button } from "../Button-C5rv4Cr2.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -4,11 +4,11 @@ import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
4
4
  import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDtC.js";
5
5
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
6
6
  import { t as FieldController } from "../form.binding-CG1RPv6o.js";
7
- import { t as FormField } from "../FormField-U_-d4V_g.js";
7
+ import { t as FormField } from "../FormField-B99dLt8o.js";
8
8
  import { t as inputBaseDefinition } from "../input.cva-DJA8ovm_.js";
9
- import { t as TooltipWrapper } from "../TooltipWrapper-DznDgVJB.js";
10
- import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-B4MVL6fz.js";
11
- import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-CvSBPUB3.js";
9
+ import { t as TooltipWrapper } from "../TooltipWrapper-3jyN0Wss.js";
10
+ import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-ScC6Mtd5.js";
11
+ import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-NeZVnci-.js";
12
12
  import { memo, useEffect, useRef, useState } from "react";
13
13
  import { jsx } from "react/jsx-runtime";
14
14
  import { useFocusVisible } from "@react-aria/interactions";
@@ -3,17 +3,18 @@ import { t as clsx } from "../clsx-CnD0nOiA.js";
3
3
  import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
4
4
  import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDtC.js";
5
5
  import { a as $a3be900807531178$re_export$useLocale } from "../exports-BNrTn8Tj.js";
6
- import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, r as $cd2fa56213693c5e$export$23f548e970bdf099, t as getStaticNumberDisplayValue } from "../numberStatic.utils-BMgRzyd3.js";
7
6
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
8
7
  import { t as FieldController } from "../form.binding-CG1RPv6o.js";
9
- import { t as FormField } from "../FormField-U_-d4V_g.js";
8
+ import { t as FormField } from "../FormField-B99dLt8o.js";
10
9
  import { t as inputBaseDefinition } from "../input.cva-DJA8ovm_.js";
11
- import { t as TooltipWrapper } from "../TooltipWrapper-DznDgVJB.js";
12
- import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-B4MVL6fz.js";
13
- import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-CvSBPUB3.js";
10
+ import { t as TooltipWrapper } from "../TooltipWrapper-3jyN0Wss.js";
11
+ import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-ScC6Mtd5.js";
12
+ import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-NeZVnci-.js";
13
+ import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "../numberStatic.utils-BX50PSee.js";
14
14
  import { t as IntlUtils } from "../intl.utils-zwAFoZ0U.js";
15
15
  import { memo, useCallback, useEffect, useRef, useState } from "react";
16
16
  import { jsx } from "react/jsx-runtime";
17
+ import { useNumberField } from "react-aria";
17
18
  import { useFocusVisible } from "@react-aria/interactions";
18
19
  //#region src/components/inputs/Input/NumberField/NumberField.tsx
19
20
  const NumberFieldBase = (props) => {
@@ -48,7 +49,7 @@ const NumberFieldBase = (props) => {
48
49
  formatOptions
49
50
  };
50
51
  const state = $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c(numberProps);
51
- const { labelProps, inputProps } = $cd2fa56213693c5e$export$23f548e970bdf099(numberProps, state, numberFieldRef);
52
+ const { labelProps, inputProps } = useNumberField(numberProps, state, numberFieldRef);
52
53
  const { describedBy, errorMessageId, helperTextId } = useFieldAccessibility({
53
54
  describedBy: inputProps["aria-describedby"],
54
55
  error,
@@ -1,2 +1,2 @@
1
- import { t as NumberRangeInput } from "../NumberRangeInput-C-8U05wF.js";
1
+ import { t as NumberRangeInput } from "../NumberRangeInput-B8-LHfg3.js";
2
2
  export { NumberRangeInput };
@@ -8,7 +8,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { useTranslation } from "react-i18next";
9
9
  //#region src/components/shared/pagination/Pagination.tsx
10
10
  const Pagination = (t0) => {
11
- const $ = c(34);
11
+ const $ = c(35);
12
12
  const { size: t1, variant: t2, color: t3, page, totalItems, totalPages, pageSize, hideText: t4, hideFirstLast: t5, hidePrevNext: t6, hideNumbers: t7, className, onPageChange, onPageSizeChange } = t0;
13
13
  const size = t1 === void 0 ? "s" : t1;
14
14
  const variant = t2 === void 0 ? "subtle" : t2;
@@ -81,44 +81,48 @@ const Pagination = (t0) => {
81
81
  $[21] = t;
82
82
  $[22] = t13;
83
83
  } else t13 = $[22];
84
- let t14;
85
- if ($[23] !== pageSize || $[24] !== t12 || $[25] !== t13) {
86
- t14 = /* @__PURE__ */ jsx(NumberField, {
87
- value: pageSize,
88
- onChange: t12,
89
- label: t13,
90
- hideLabel: true,
91
- className: "w-min",
92
- inputClassName: "min-w-12 !px-3 !py-0.5"
84
+ const t14 = size === "default" ? "default" : "small";
85
+ let t15;
86
+ if ($[23] !== pageSize || $[24] !== t12 || $[25] !== t13 || $[26] !== t14) {
87
+ t15 = /* @__PURE__ */ jsx("div", {
88
+ className: "w-20 shrink-0",
89
+ children: /* @__PURE__ */ jsx(NumberField, {
90
+ value: pageSize,
91
+ onChange: t12,
92
+ label: t13,
93
+ hideLabel: true,
94
+ size: t14
95
+ })
93
96
  });
94
97
  $[23] = pageSize;
95
98
  $[24] = t12;
96
99
  $[25] = t13;
97
100
  $[26] = t14;
98
- } else t14 = $[26];
99
- let t15;
100
- if ($[27] !== t11 || $[28] !== t14) {
101
- t15 = /* @__PURE__ */ jsxs("div", {
101
+ $[27] = t15;
102
+ } else t15 = $[27];
103
+ let t16;
104
+ if ($[28] !== t11 || $[29] !== t15) {
105
+ t16 = /* @__PURE__ */ jsxs("div", {
102
106
  className: "flex items-center gap-2",
103
- children: [t11, t14]
107
+ children: [t11, t15]
104
108
  });
105
- $[27] = t11;
106
- $[28] = t14;
109
+ $[28] = t11;
107
110
  $[29] = t15;
108
- } else t15 = $[29];
109
- let t16;
110
- if ($[30] !== t15 || $[31] !== t8 || $[32] !== t9) {
111
- t16 = /* @__PURE__ */ jsxs("nav", {
111
+ $[30] = t16;
112
+ } else t16 = $[30];
113
+ let t17;
114
+ if ($[31] !== t16 || $[32] !== t8 || $[33] !== t9) {
115
+ t17 = /* @__PURE__ */ jsxs("nav", {
112
116
  id: "pagination",
113
117
  className: t8,
114
- children: [t9, t15]
118
+ children: [t9, t16]
115
119
  });
116
- $[30] = t15;
117
- $[31] = t8;
118
- $[32] = t9;
119
- $[33] = t16;
120
- } else t16 = $[33];
121
- return t16;
120
+ $[31] = t16;
121
+ $[32] = t8;
122
+ $[33] = t9;
123
+ $[34] = t17;
124
+ } else t17 = $[34];
125
+ return t17;
122
126
  };
123
127
  function _temp($) {
124
128
  return $.ui.pagination.resultsPerPage;
@@ -1,7 +1,7 @@
1
1
  import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
2
2
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
3
3
  import { t as FieldController } from "../form.binding-CG1RPv6o.js";
4
- import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-CvSBPUB3.js";
4
+ import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-NeZVnci-.js";
5
5
  import { Autocomplete } from "./autocomplete.js";
6
6
  import { n as getQueryItems, r as getSelectionIdsToResolve, t as useQueryAutocomplete } from "../useQueryAutocomplete-CraXvRm_.js";
7
7
  import { memo, useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
@@ -1,8 +1,8 @@
1
1
  import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
2
2
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
3
3
  import { t as FieldController } from "../form.binding-CG1RPv6o.js";
4
- import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-CvSBPUB3.js";
5
- import { t as Select } from "../Select-CkujlTjm.js";
4
+ import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-NeZVnci-.js";
5
+ import { t as Select } from "../Select-UR0ec2Ux.js";
6
6
  import { n as getQueryItems, r as getSelectionIdsToResolve, t as useQueryAutocomplete } from "../useQueryAutocomplete-CraXvRm_.js";
7
7
  import { memo, useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as RadioGroup } from "../RadioGroup-B7_pNwn9.js";
1
+ import { t as RadioGroup } from "../RadioGroup-DOw3PRoX.js";
2
2
  export { RadioGroup };
@@ -1,2 +1,2 @@
1
- import { t as Select } from "../Select-CkujlTjm.js";
1
+ import { t as Select } from "../Select-UR0ec2Ux.js";
2
2
  export { Select };
@@ -1,2 +1,2 @@
1
- import { t as Slider } from "../Slider-BHPl0OPy.js";
1
+ import { t as Slider } from "../Slider-CzEmKYBF.js";
2
2
  export { Slider };
@@ -1,2 +1,2 @@
1
- import { t as TextArea } from "../TextArea-DqHDiRGJ.js";
1
+ import { t as TextArea } from "../TextArea-D8WkKsGn.js";
2
2
  export { TextArea };
@@ -1,2 +1,2 @@
1
- import { t as TimePicker } from "../TimePicker-DQ6JCkGB.js";
1
+ import { t as TimePicker } from "../TimePicker-C4taAOFQ.js";
2
2
  export { TimePicker };
@@ -1,2 +1,2 @@
1
- import { t as ToggleGroup } from "../ToggleGroup-DX0VYXwP.js";
1
+ import { t as ToggleGroup } from "../ToggleGroup-DOk27fgI.js";
2
2
  export { ToggleGroup };
@@ -1,4 +1,4 @@
1
- import { t as Tooltip } from "../Tooltip-B9DKcYvr.js";
1
+ import { t as Tooltip } from "../Tooltip-CpG1nz7Y.js";
2
2
  import { useState } from "react";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as Tooltip } from "../Tooltip-B9DKcYvr.js";
1
+ import { t as Tooltip } from "../Tooltip-CpG1nz7Y.js";
2
2
  export { Tooltip };
@@ -1,2 +1,2 @@
1
- import { l as parseThemeCss, r as exportCss } from "../theme-model-C-QMCksE.js";
1
+ import { _ as parseThemeCss, i as exportCss } from "../theme-model-DtYPxNvH.js";
2
2
  export { exportCss, parseThemeCss };