@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.
- package/README.md +6 -2
- package/dist/{Breadcrumbs-CbKzAq1v.js → Breadcrumbs-FF8hMfXd.js} +1 -1
- package/dist/{Calendar-CVSQH-rC.js → Calendar-BTjajO6i.js} +6 -136
- package/dist/{Checkbox-BU0d702K.js → Checkbox-CV1ILXXO.js} +1 -1
- package/dist/{CheckboxCheckmark-usHsolNj.js → CheckboxCheckmark-CpC3wlMs.js} +1 -1
- package/dist/{ComponentGallery-DIFeJqGx.js → ComponentGallery-BWiPGUL8.js} +1343 -206
- package/dist/{DatePicker-D95gDPhg.js → DatePicker-DOLL7mkc.js} +12 -12
- package/dist/{DatePickerInput-CX6NYim4.js → DatePickerInput-BLBcySA2.js} +8 -7
- package/dist/{DateRangePicker-_uTQk_ae.js → DateRangePicker-BF-1CztH.js} +13 -185
- package/dist/{DateTimePicker-BB058Z34.js → DateTimePicker-Cj0qvJUz.js} +12 -12
- package/dist/{FileInput-C0-6bw4w.js → FileInput-Br5DQaGQ.js} +3 -2
- package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
- package/dist/{FileUpload-DDpYMn8f.js → FileUpload--7ub3EZO.js} +3 -2
- package/dist/{FormField-U_-d4V_g.js → FormField-B99dLt8o.js} +1 -1
- package/dist/{FormFieldHeaderTooltip-DXbuu88v.js → FormFieldHeaderTooltip-BV2Ju4oB.js} +1 -1
- package/dist/{InlineTooltipWrapper-Bpmd--e7.js → InlineTooltipWrapper-BpApaGXV.js} +1 -1
- package/dist/{InputItem-D-KuiNSc.js → InputItem-CIxbTxZu.js} +10 -10
- package/dist/{Inputs-j3JmcLWR.js → Inputs-DJSKiaWY.js} +1 -1
- package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
- package/dist/{NumberRangeInput-C-8U05wF.js → NumberRangeInput-B8-LHfg3.js} +6 -5
- package/dist/{RadioGroup-B7_pNwn9.js → RadioGroup-DOw3PRoX.js} +1 -1
- package/dist/{RichTextEditor-D9-B1Cze.js → RichTextEditor-D4yN7Wj7.js} +2 -2
- package/dist/{Select-CkujlTjm.js → Select-UR0ec2Ux.js} +2 -2
- package/dist/{Slider-BHPl0OPy.js → Slider-CzEmKYBF.js} +1 -1
- package/dist/{Table-BDNSuEWc.js → Table-piX1SWvN.js} +1 -1
- package/dist/{TextArea-DqHDiRGJ.js → TextArea-D8WkKsGn.js} +3 -3
- package/dist/{TimePicker-DQ6JCkGB.js → TimePicker-C4taAOFQ.js} +10 -9
- package/dist/{ToggleGroup-DX0VYXwP.js → ToggleGroup-DOk27fgI.js} +5 -66
- package/dist/{Tooltip-B9DKcYvr.js → Tooltip-CpG1nz7Y.js} +2 -2
- package/dist/{TooltipWrapper-DznDgVJB.js → TooltipWrapper-3jyN0Wss.js} +1 -1
- package/dist/components/autocomplete.js +2 -2
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/input.js +4 -4
- package/dist/components/number-field.js +7 -6
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination.js +32 -28
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/config/ui-configurator-theme.js +1 -1
- package/dist/config/ui-configurator.js +1081 -257
- package/dist/config/ui-router.js +1 -1
- package/dist/{datePickerValue.utils-CUzkWie8.js → datePickerValue.utils-DCgoSrP3.js} +5 -5
- package/dist/hooks/use-filters.js +1 -1
- package/dist/index.js +15 -15
- package/dist/numberStatic.utils-BX50PSee.js +421 -0
- package/dist/rhf/checkbox.js +1 -1
- package/dist/rhf/date-picker.js +1 -1
- package/dist/rhf/date-range-picker.js +1 -1
- package/dist/rhf/date-time-picker.js +1 -1
- package/dist/rhf/file-input.js +1 -1
- package/dist/rhf/file-upload.js +1 -1
- package/dist/rhf/number-range-input.js +1 -1
- package/dist/rhf/radio-group.js +1 -1
- package/dist/rhf/rich-text-editor.js +1 -1
- package/dist/rhf/select.js +1 -1
- package/dist/rhf/slider.js +1 -1
- package/dist/rhf/text-area.js +1 -1
- package/dist/rhf/time-picker.js +1 -1
- package/dist/rhf/toggle-group.js +1 -1
- package/dist/rhf.js +15 -15
- package/dist/rich-text-editor.js +1 -1
- package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
- package/dist/staticDateTimeSegments-DtU63_dw.js +1764 -0
- package/dist/{staticSelect.utils-BemUyaaA.js → staticSelect.utils-uHa8f_c6.js} +5 -144
- package/dist/styles/configurator.css +731 -218
- package/dist/{table.cva-BikE8qJH.js → table.cva-DlMT-zLD.js} +2 -3
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/table.js +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.js +27 -27
- package/dist/theme-model-DtYPxNvH.js +406 -0
- package/dist/upload-CXU83BJ4.js +30 -0
- package/dist/useControlledState-CzXkZCX8.js +30 -0
- package/dist/{useFieldAccessibility-B4MVL6fz.js → useFieldAccessibility-ScC6Mtd5.js} +2 -2
- package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
- package/dist/{useFormAutosave-Mg-tdwMh.js → useFormAutosave-DfuP7drj.js} +1 -1
- package/dist/{useStaticInputHandoff-CvSBPUB3.js → useStaticInputHandoff-NeZVnci-.js} +3 -3
- package/dist/{useTableColumnConfig-gfVame8v.js → useTableColumnConfig-BTGZiluz.js} +3 -3
- package/package.json +1 -1
- package/src/configurator/README.md +3 -3
- package/dist/FocusScope-CO9oJ1sc.js +0 -343
- package/dist/chain-DIXr2VAT.js +0 -10
- package/dist/focusSafely-DCGrr2bb.js +0 -447
- package/dist/getScrollParent-kSR7EtoT.js +0 -47
- package/dist/numberStatic.utils-BMgRzyd3.js +0 -902
- package/dist/openLink-CQhMhfzO.js +0 -121
- package/dist/platform-BXNIIAfU.js +0 -42
- package/dist/staticDateTimeSegments-CsCE9Buo.js +0 -3604
- package/dist/theme-model-C-QMCksE.js +0 -136
- package/dist/useControlledState-DQxX6LMN.js +0 -189
- package/dist/useFocusable-Bd0UsrQ7.js +0 -63
- package/dist/useFormValidationState-D3z-gafz.js +0 -1341
- package/dist/useLayoutEffect-B2-1tbPJ.js +0 -83
- package/dist/useSyncRef-RGMv0rXK.js +0 -338
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FileUpload } from "../FileUpload
|
|
1
|
+
import { t as FileUpload } from "../FileUpload--7ub3EZO.js";
|
|
2
2
|
export { FileUpload };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FormField } from "../FormField-
|
|
1
|
+
import { t as FormField } from "../FormField-B99dLt8o.js";
|
|
2
2
|
export { FormField };
|
package/dist/components/input.js
CHANGED
|
@@ -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-
|
|
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-
|
|
10
|
-
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-
|
|
11
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-
|
|
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-
|
|
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-
|
|
12
|
-
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-
|
|
13
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-
|
|
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 } =
|
|
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-
|
|
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(
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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,
|
|
107
|
+
children: [t11, t15]
|
|
104
108
|
});
|
|
105
|
-
$[
|
|
106
|
-
$[28] = t14;
|
|
109
|
+
$[28] = t11;
|
|
107
110
|
$[29] = t15;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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,
|
|
118
|
+
children: [t9, t16]
|
|
115
119
|
});
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
} else
|
|
121
|
-
return
|
|
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-
|
|
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-
|
|
5
|
-
import { t as Select } from "../Select-
|
|
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-
|
|
1
|
+
import { t as RadioGroup } from "../RadioGroup-DOw3PRoX.js";
|
|
2
2
|
export { RadioGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Select } from "../Select-
|
|
1
|
+
import { t as Select } from "../Select-UR0ec2Ux.js";
|
|
2
2
|
export { Select };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Slider } from "../Slider-
|
|
1
|
+
import { t as Slider } from "../Slider-CzEmKYBF.js";
|
|
2
2
|
export { Slider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TextArea } from "../TextArea-
|
|
1
|
+
import { t as TextArea } from "../TextArea-D8WkKsGn.js";
|
|
2
2
|
export { TextArea };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TimePicker } from "../TimePicker-
|
|
1
|
+
import { t as TimePicker } from "../TimePicker-C4taAOFQ.js";
|
|
2
2
|
export { TimePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleGroup } from "../ToggleGroup-
|
|
1
|
+
import { t as ToggleGroup } from "../ToggleGroup-DOk27fgI.js";
|
|
2
2
|
export { ToggleGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Tooltip } from "../Tooltip-
|
|
1
|
+
import { t as Tooltip } from "../Tooltip-CpG1nz7Y.js";
|
|
2
2
|
export { Tooltip };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as parseThemeCss, i as exportCss } from "../theme-model-DtYPxNvH.js";
|
|
2
2
|
export { exportCss, parseThemeCss };
|