@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,121 +0,0 @@
|
|
|
1
|
-
import { i as $2add3ce32c6007eb$export$9ac100e40613ea10, n as $2add3ce32c6007eb$export$78551043582a6a98, o as $2add3ce32c6007eb$export$b7d78993b74f766d, r as $2add3ce32c6007eb$export$7bef049ce92e4224 } from "./platform-BXNIIAfU.js";
|
|
2
|
-
import $ahdqC$react, { createContext, useMemo } from "react";
|
|
3
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
|
|
4
|
-
function $1969ac565cfec8d0$export$de79e2c695e052f3(element) {
|
|
5
|
-
if ($1969ac565cfec8d0$var$supportsPreventScroll()) element.focus({ preventScroll: true });
|
|
6
|
-
else {
|
|
7
|
-
let scrollableElements = $1969ac565cfec8d0$var$getScrollableElements(element);
|
|
8
|
-
element.focus();
|
|
9
|
-
$1969ac565cfec8d0$var$restoreScrollPosition(scrollableElements);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
let $1969ac565cfec8d0$var$supportsPreventScrollCached = null;
|
|
13
|
-
function $1969ac565cfec8d0$var$supportsPreventScroll() {
|
|
14
|
-
if ($1969ac565cfec8d0$var$supportsPreventScrollCached == null) {
|
|
15
|
-
$1969ac565cfec8d0$var$supportsPreventScrollCached = false;
|
|
16
|
-
try {
|
|
17
|
-
document.createElement("div").focus({ get preventScroll() {
|
|
18
|
-
$1969ac565cfec8d0$var$supportsPreventScrollCached = true;
|
|
19
|
-
return true;
|
|
20
|
-
} });
|
|
21
|
-
} catch {}
|
|
22
|
-
}
|
|
23
|
-
return $1969ac565cfec8d0$var$supportsPreventScrollCached;
|
|
24
|
-
}
|
|
25
|
-
function $1969ac565cfec8d0$var$getScrollableElements(element) {
|
|
26
|
-
let parent = element.parentNode;
|
|
27
|
-
let scrollableElements = [];
|
|
28
|
-
let rootScrollingElement = document.scrollingElement || document.documentElement;
|
|
29
|
-
while (parent instanceof HTMLElement && parent !== rootScrollingElement) {
|
|
30
|
-
if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
|
|
31
|
-
element: parent,
|
|
32
|
-
scrollTop: parent.scrollTop,
|
|
33
|
-
scrollLeft: parent.scrollLeft
|
|
34
|
-
});
|
|
35
|
-
parent = parent.parentNode;
|
|
36
|
-
}
|
|
37
|
-
if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
|
|
38
|
-
element: rootScrollingElement,
|
|
39
|
-
scrollTop: rootScrollingElement.scrollTop,
|
|
40
|
-
scrollLeft: rootScrollingElement.scrollLeft
|
|
41
|
-
});
|
|
42
|
-
return scrollableElements;
|
|
43
|
-
}
|
|
44
|
-
function $1969ac565cfec8d0$var$restoreScrollPosition(scrollableElements) {
|
|
45
|
-
for (let { element, scrollTop, scrollLeft } of scrollableElements) {
|
|
46
|
-
element.scrollTop = scrollTop;
|
|
47
|
-
element.scrollLeft = scrollLeft;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/openLink.mjs
|
|
52
|
-
const $caaf0dd3060ed57c$var$RouterContext = /*#__PURE__*/ createContext({
|
|
53
|
-
isNative: true,
|
|
54
|
-
open: $caaf0dd3060ed57c$var$openSyntheticLink,
|
|
55
|
-
useHref: (href) => href
|
|
56
|
-
});
|
|
57
|
-
function $caaf0dd3060ed57c$export$323e4fc2fa4753fb(props) {
|
|
58
|
-
let { children, navigate, useHref } = props;
|
|
59
|
-
let ctx = useMemo(() => ({
|
|
60
|
-
isNative: false,
|
|
61
|
-
open: (target, modifiers, href, routerOptions) => {
|
|
62
|
-
$caaf0dd3060ed57c$var$getSyntheticLink(target, (link) => {
|
|
63
|
-
if ($caaf0dd3060ed57c$export$efa8c9099e530235(link, modifiers)) navigate(href, routerOptions);
|
|
64
|
-
else $caaf0dd3060ed57c$export$95185d699e05d4d7(link, modifiers);
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
useHref: useHref || ((href) => href)
|
|
68
|
-
}), [navigate, useHref]);
|
|
69
|
-
return /*#__PURE__*/ $ahdqC$react.createElement($caaf0dd3060ed57c$var$RouterContext.Provider, { value: ctx }, children);
|
|
70
|
-
}
|
|
71
|
-
function $caaf0dd3060ed57c$export$efa8c9099e530235(link, modifiers) {
|
|
72
|
-
let target = link.getAttribute("target");
|
|
73
|
-
return (!target || target === "_self") && link.origin === location.origin && !link.hasAttribute("download") && !modifiers.metaKey && !modifiers.ctrlKey && !modifiers.altKey && !modifiers.shiftKey;
|
|
74
|
-
}
|
|
75
|
-
function $caaf0dd3060ed57c$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
|
76
|
-
let { metaKey, ctrlKey, altKey, shiftKey } = modifiers;
|
|
77
|
-
if (!$2add3ce32c6007eb$export$78551043582a6a98() && $2add3ce32c6007eb$export$b7d78993b74f766d() && window.event?.type?.startsWith("key") && target.target === "_blank") {
|
|
78
|
-
if ($2add3ce32c6007eb$export$9ac100e40613ea10()) metaKey = true;
|
|
79
|
-
else ctrlKey = true;
|
|
80
|
-
}
|
|
81
|
-
let event = $2add3ce32c6007eb$export$78551043582a6a98() && $2add3ce32c6007eb$export$9ac100e40613ea10() && !$2add3ce32c6007eb$export$7bef049ce92e4224() && true ? new KeyboardEvent("keydown", {
|
|
82
|
-
keyIdentifier: "Enter",
|
|
83
|
-
metaKey,
|
|
84
|
-
ctrlKey,
|
|
85
|
-
altKey,
|
|
86
|
-
shiftKey
|
|
87
|
-
}) : new MouseEvent("click", {
|
|
88
|
-
metaKey,
|
|
89
|
-
ctrlKey,
|
|
90
|
-
altKey,
|
|
91
|
-
shiftKey,
|
|
92
|
-
detail: 1,
|
|
93
|
-
bubbles: true,
|
|
94
|
-
cancelable: true
|
|
95
|
-
});
|
|
96
|
-
$caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening = setOpening;
|
|
97
|
-
$1969ac565cfec8d0$export$de79e2c695e052f3(target);
|
|
98
|
-
target.dispatchEvent(event);
|
|
99
|
-
$caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening = false;
|
|
100
|
-
}
|
|
101
|
-
$caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening = false;
|
|
102
|
-
function $caaf0dd3060ed57c$var$getSyntheticLink(target, open) {
|
|
103
|
-
if (target instanceof HTMLAnchorElement) open(target);
|
|
104
|
-
else if (target.hasAttribute("data-href")) {
|
|
105
|
-
let link = document.createElement("a");
|
|
106
|
-
link.href = target.getAttribute("data-href");
|
|
107
|
-
if (target.hasAttribute("data-target")) link.target = target.getAttribute("data-target");
|
|
108
|
-
if (target.hasAttribute("data-rel")) link.rel = target.getAttribute("data-rel");
|
|
109
|
-
if (target.hasAttribute("data-download")) link.download = target.getAttribute("data-download");
|
|
110
|
-
if (target.hasAttribute("data-ping")) link.ping = target.getAttribute("data-ping");
|
|
111
|
-
if (target.hasAttribute("data-referrer-policy")) link.referrerPolicy = target.getAttribute("data-referrer-policy");
|
|
112
|
-
target.appendChild(link);
|
|
113
|
-
open(link);
|
|
114
|
-
target.removeChild(link);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
function $caaf0dd3060ed57c$var$openSyntheticLink(target, modifiers) {
|
|
118
|
-
$caaf0dd3060ed57c$var$getSyntheticLink(target, (link) => $caaf0dd3060ed57c$export$95185d699e05d4d7(link, modifiers));
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
|
-
export { $caaf0dd3060ed57c$export$95185d699e05d4d7 as n, $1969ac565cfec8d0$export$de79e2c695e052f3 as r, $caaf0dd3060ed57c$export$323e4fc2fa4753fb as t };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/platform.mjs
|
|
2
|
-
function $2add3ce32c6007eb$var$testUserAgent(re) {
|
|
3
|
-
if (typeof window === "undefined" || window.navigator == null) return false;
|
|
4
|
-
let brands = window.navigator["userAgentData"]?.brands;
|
|
5
|
-
return Array.isArray(brands) && brands.some((brand) => re.test(brand.brand)) || re.test(window.navigator.userAgent);
|
|
6
|
-
}
|
|
7
|
-
function $2add3ce32c6007eb$var$testPlatform(re) {
|
|
8
|
-
return typeof window !== "undefined" && window.navigator != null ? re.test(window.navigator["userAgentData"]?.platform || window.navigator.platform) : false;
|
|
9
|
-
}
|
|
10
|
-
function $2add3ce32c6007eb$var$cached(fn) {
|
|
11
|
-
let res = null;
|
|
12
|
-
return () => {
|
|
13
|
-
if (res == null) res = fn();
|
|
14
|
-
return res;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const $2add3ce32c6007eb$export$9ac100e40613ea10 = $2add3ce32c6007eb$var$cached(function() {
|
|
18
|
-
return $2add3ce32c6007eb$var$testPlatform(/^Mac/i);
|
|
19
|
-
});
|
|
20
|
-
const $2add3ce32c6007eb$export$186c6964ca17d99 = $2add3ce32c6007eb$var$cached(function() {
|
|
21
|
-
return $2add3ce32c6007eb$var$testPlatform(/^iPhone/i);
|
|
22
|
-
});
|
|
23
|
-
const $2add3ce32c6007eb$export$7bef049ce92e4224 = $2add3ce32c6007eb$var$cached(function() {
|
|
24
|
-
return $2add3ce32c6007eb$var$testPlatform(/^iPad/i) || $2add3ce32c6007eb$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
25
|
-
});
|
|
26
|
-
const $2add3ce32c6007eb$export$fedb369cb70207f1 = $2add3ce32c6007eb$var$cached(function() {
|
|
27
|
-
return $2add3ce32c6007eb$export$186c6964ca17d99() || $2add3ce32c6007eb$export$7bef049ce92e4224();
|
|
28
|
-
});
|
|
29
|
-
const $2add3ce32c6007eb$export$78551043582a6a98 = $2add3ce32c6007eb$var$cached(function() {
|
|
30
|
-
return $2add3ce32c6007eb$var$testUserAgent(/AppleWebKit/i) && ($2add3ce32c6007eb$export$fedb369cb70207f1() || !$2add3ce32c6007eb$export$6446a186d09e379e());
|
|
31
|
-
});
|
|
32
|
-
const $2add3ce32c6007eb$export$6446a186d09e379e = $2add3ce32c6007eb$var$cached(function() {
|
|
33
|
-
return $2add3ce32c6007eb$var$testUserAgent(/Chrome|CriOS|CrMo/i);
|
|
34
|
-
});
|
|
35
|
-
const $2add3ce32c6007eb$export$a11b0059900ceec8 = $2add3ce32c6007eb$var$cached(function() {
|
|
36
|
-
return $2add3ce32c6007eb$var$testUserAgent(/Android/i);
|
|
37
|
-
});
|
|
38
|
-
const $2add3ce32c6007eb$export$b7d78993b74f766d = $2add3ce32c6007eb$var$cached(function() {
|
|
39
|
-
return $2add3ce32c6007eb$var$testUserAgent(/(Firefox|FxiOS)/i);
|
|
40
|
-
});
|
|
41
|
-
//#endregion
|
|
42
|
-
export { $2add3ce32c6007eb$export$a11b0059900ceec8 as a, $2add3ce32c6007eb$export$9ac100e40613ea10 as i, $2add3ce32c6007eb$export$78551043582a6a98 as n, $2add3ce32c6007eb$export$b7d78993b74f766d as o, $2add3ce32c6007eb$export$7bef049ce92e4224 as r, $2add3ce32c6007eb$export$fedb369cb70207f1 as s, $2add3ce32c6007eb$export$186c6964ca17d99 as t };
|