@cfx-dev/ui-components 4.2.24 → 4.3.0
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/dist/Combination-CSgOhzm-.js +2198 -0
- package/dist/Combination-N-vN9BB-.js +823 -0
- package/dist/Table.module-DHI1mXN2.js +17 -0
- package/dist/assets/all_css.css +1 -0
- package/dist/assets/css/Checkbox.css +1 -1
- package/dist/assets/css/DataTable.css +1 -0
- package/dist/assets/css/Table.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/cfxIcons-B9nzO6TW.js +98 -0
- package/dist/components/Accordion/Accordion.js +25 -26
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Avatar/Avatar.d.ts +2 -1
- package/dist/components/Avatar/Avatar.js +21 -20
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -1
- package/dist/components/Badge/Badge.js +29 -29
- package/dist/components/Badge/BadgeShowcase.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenu.js +2 -2
- package/dist/components/BurgerMenu/BurgerMenuButton.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
- package/dist/components/Button/Button.d.ts +5 -2
- package/dist/components/Button/Button.js +83 -81
- package/dist/components/Button/ButtonShowcase.js +2 -2
- package/dist/components/Button/LinkButton.d.ts +1 -1
- package/dist/components/Button/LinkButton.js +18 -17
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.js +7 -7
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.js +154 -242
- package/dist/components/ClipboardButton/ClipboardButton.js +7 -7
- package/dist/components/ControlBox/ControlBox.d.ts +3 -2
- package/dist/components/ControlBox/ControlBox.js +13 -10
- package/dist/components/CountryFlag/CountryFlag.d.ts +3 -2
- package/dist/components/CountryFlag/CountryFlag.js +14 -11
- package/dist/components/DataTable/DataTable.d.ts +40 -0
- package/dist/components/DataTable/DataTable.js +163 -0
- package/dist/components/DataTable/DataTableShowcase.d.ts +5 -0
- package/dist/components/DataTable/DataTableShowcase.js +60 -0
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +6 -0
- package/dist/components/Decorate/Decorate.d.ts +3 -2
- package/dist/components/Decorate/Decorate.js +19 -15
- package/dist/components/Dot/Dot.d.ts +2 -1
- package/dist/components/Dot/Dot.js +15 -13
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +2 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +665 -1836
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- package/dist/components/Flyout/Flyout.d.ts +2 -1
- package/dist/components/Flyout/Flyout.js +22 -20
- package/dist/components/Icon/Icon.d.ts +2 -1
- package/dist/components/Icon/Icon.js +19 -17
- package/dist/components/IconBig/IconBig.d.ts +2 -1
- package/dist/components/IconBig/IconBig.js +16 -14
- package/dist/components/Icons/IconsShowcase.js +1 -1
- package/dist/components/Icons/cfx-icons/Radio.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Radio.js +36 -0
- package/dist/components/Icons/cfx-icons/Square.js +15 -9
- package/dist/components/Icons/cfxIcons.d.ts +1 -0
- package/dist/components/Icons/cfxIcons.js +62 -60
- package/dist/components/Icons/index.js +1 -1
- package/dist/components/Indicator/Indicator.js +9 -10
- package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
- package/dist/components/Input/Input.d.ts +4 -1
- package/dist/components/Input/Input.js +101 -88
- package/dist/components/Input/InputShowcase.js +1 -1
- package/dist/components/Input/RichInput.d.ts +2 -1
- package/dist/components/Input/RichInput.js +37 -34
- package/dist/components/InputDropzone/InputDropzone.d.ts +1 -1
- package/dist/components/InputDropzone/InputDropzone.js +1723 -625
- package/dist/components/Interactive/Interactive.d.ts +2 -1
- package/dist/components/Interactive/Interactive.js +14 -12
- package/dist/components/Island/Island.d.ts +2 -1
- package/dist/components/Island/Island.js +24 -24
- package/dist/components/Layout/Box/Box.d.ts +8 -2
- package/dist/components/Layout/Box/Box.js +53 -51
- package/dist/components/Layout/Box/Box.types.d.ts +22 -0
- package/dist/components/Layout/Box/Box.types.js +4 -0
- package/dist/components/Layout/Box/index.d.ts +1 -1
- package/dist/components/Layout/Box/index.js +3 -3
- package/dist/components/Layout/Center/Center.d.ts +2 -1
- package/dist/components/Layout/Center/Center.js +19 -18
- package/dist/components/Layout/Flex/Flex.d.ts +6 -10
- package/dist/components/Layout/Flex/Flex.js +53 -64
- package/dist/components/Layout/Flex/FlexRestricter.d.ts +2 -1
- package/dist/components/Layout/Flex/FlexRestricter.js +13 -12
- package/dist/components/Layout/Flex/FlexShowcase.js +1 -1
- package/dist/components/Layout/Flex/index.d.ts +2 -2
- package/dist/components/Layout/Flex/index.js +8 -8
- package/dist/components/Layout/Page/Page.js +11 -12
- package/dist/components/Layout/Scrollable/Rail.d.ts +1 -1
- package/dist/components/Layout/Scrollable/Scrollable.d.ts +2 -1
- package/dist/components/Layout/Scrollable/Scrollable.js +40 -38
- package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +98 -98
- package/dist/components/Link/LinkShowcase.js +1 -1
- package/dist/components/Loaf/Loaf.d.ts +2 -1
- package/dist/components/Loaf/Loaf.js +17 -16
- package/dist/components/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/Modal.js +16 -17
- package/dist/components/Modal/ModalShowcase.js +14 -11
- package/dist/components/NavList/NavList.d.ts +2 -1
- package/dist/components/NavList/NavList.js +19 -18
- package/dist/components/OnScreenSensor.js +1 -1
- package/dist/components/Overlay/Overlay.d.ts +4 -2
- package/dist/components/Overlay/Overlay.js +31 -23
- package/dist/components/Popover/Popover.d.ts +3 -2
- package/dist/components/Popover/Popover.js +31 -30
- package/dist/components/Popover/PopoverShowcase.js +4 -4
- package/dist/components/PremiumBadge/PremiumBadge.d.ts +2 -1
- package/dist/components/PremiumBadge/PremiumBadge.js +12 -11
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +666 -1617
- package/dist/components/Select/SelectShowcase.js +1 -1
- package/dist/components/Shroud/Shroud.d.ts +2 -1
- package/dist/components/Shroud/Shroud.js +16 -14
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +26 -27
- package/dist/components/Skeleton/SkeletonShowcase.js +4 -4
- package/dist/components/Slider/Slider.d.ts +2 -1
- package/dist/components/Slider/Slider.js +326 -377
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Switch/Switch.js +109 -155
- package/dist/components/Table/TableBody.d.ts +8 -0
- package/dist/components/Table/TableBody.js +14 -0
- package/dist/components/Table/TableCell.d.ts +11 -0
- package/dist/components/Table/TableCell.js +54 -0
- package/dist/components/Table/TableCellCheckbox.d.ts +11 -0
- package/dist/components/Table/TableCellCheckbox.js +20 -0
- package/dist/components/Table/TableHeader.d.ts +9 -0
- package/dist/components/Table/TableHeader.js +24 -0
- package/dist/components/Table/TableIconButton.d.ts +6 -0
- package/dist/components/Table/TableIconButton.js +16 -0
- package/dist/components/Table/TableRoot.d.ts +8 -0
- package/dist/components/Table/TableRoot.js +23 -0
- package/dist/components/Table/TableRow.d.ts +13 -0
- package/dist/components/Table/TableRow.js +46 -0
- package/dist/components/Table/TableShowcase.js +56 -57
- package/dist/components/Table/index.d.ts +20 -2
- package/dist/components/Table/index.js +17 -5
- package/dist/components/Tabular/TabularShowcase.js +1 -1
- package/dist/components/Text/Text.d.ts +6 -3
- package/dist/components/Text/Text.js +67 -63
- package/dist/components/Text/TextShowcase.js +40 -33
- package/dist/components/Title/Title.d.ts +3 -1
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/index-BHuChyf5.js +238 -0
- package/dist/index-Cl_RnsqN.js +386 -0
- package/dist/index-DZEAOJqB.js +53 -0
- package/dist/index-HDl8nGsm.js +70 -0
- package/dist/main.d.ts +6 -4
- package/dist/main.js +66 -65
- package/dist/{medium-BA3EQDZW.js → medium-Bq5NvyU7.js} +1 -1
- package/dist/styles-scss/global.scss +1 -0
- package/dist/tslib.es6-CtHwNPxX.js +72 -0
- package/dist/utils/hooks/useClipboardComponent.d.ts +1 -1
- package/dist/utils/hooks/useOutlet.js +1 -1
- package/dist/utils/hooks/usePopoverController.d.ts +1 -1
- package/dist/utils/links.js +1 -1
- package/dist/utils/mergeRefs.d.ts +1 -1
- package/dist/utils/mergeRefs.js +1 -1
- package/dist/utils/ui/ui.d.ts +1 -0
- package/dist/utils/ui/ui.js +45 -36
- package/dist/utils/ui/ui.types.d.ts +4 -0
- package/package.json +6 -5
- package/dist/Combination-Cbiw1XRb.js +0 -792
- package/dist/cfxIcons-BNd1WgpX.js +0 -96
- package/dist/components/Table/Table.d.ts +0 -42
- package/dist/components/Table/Table.js +0 -170
- package/dist/index-2hJuj4UN.js +0 -19069
- package/dist/index-AweK2ufS.js +0 -171
- package/dist/index-BlbvKsmN.js +0 -82
- package/dist/index-ByaXH_ih.js +0 -10
- package/dist/index-Bz27DCHt.js +0 -1342
- package/dist/index-Cf5Yu9oD.js +0 -67
- package/dist/tslib.es6-CBKHJX9H.js +0 -151
|
@@ -1,169 +1,103 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { c as
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as _e } from "../../index-BZPx6jYI.js";
|
|
9
|
-
import "../../index-2hJuj4UN.js";
|
|
1
|
+
import { jsx as m, jsxs as K } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import O from "react";
|
|
4
|
+
import { c as W } from "../../index-rKs9bXHr.js";
|
|
5
|
+
import { d as fe, c as me, e as M, P as k, u as V, f as he } from "../../index-BHuChyf5.js";
|
|
6
|
+
import { c as pe, u as Se } from "../../index-DZEAOJqB.js";
|
|
7
|
+
import { u as be } from "../../index-BZPx6jYI.js";
|
|
10
8
|
import { clsx as G } from "../../utils/clsx.js";
|
|
11
|
-
var q =
|
|
12
|
-
const { children: r, ...n } = e, o = c.Children.toArray(r), a = o.find(ye);
|
|
13
|
-
if (a) {
|
|
14
|
-
const i = a.props.children, s = o.map((u) => u === a ? c.Children.count(i) > 1 ? c.Children.only(null) : c.isValidElement(i) ? i.props.children : null : u);
|
|
15
|
-
return /* @__PURE__ */ d(F, { ...n, ref: t, children: c.isValidElement(i) ? c.cloneElement(i, void 0, s) : null });
|
|
16
|
-
}
|
|
17
|
-
return /* @__PURE__ */ d(F, { ...n, ref: t, children: r });
|
|
18
|
-
});
|
|
19
|
-
q.displayName = "Slot";
|
|
20
|
-
var F = c.forwardRef((e, t) => {
|
|
21
|
-
const { children: r, ...n } = e;
|
|
22
|
-
if (c.isValidElement(r)) {
|
|
23
|
-
const o = xe(r);
|
|
24
|
-
return c.cloneElement(r, {
|
|
25
|
-
...Re(n, r.props),
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
ref: t ? pe(t, o) : o
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return c.Children.count(r) > 1 ? c.Children.only(null) : null;
|
|
31
|
-
});
|
|
32
|
-
F.displayName = "SlotClone";
|
|
33
|
-
var we = ({ children: e }) => /* @__PURE__ */ d(me, { children: e });
|
|
34
|
-
function ye(e) {
|
|
35
|
-
return c.isValidElement(e) && e.type === we;
|
|
36
|
-
}
|
|
37
|
-
function Re(e, t) {
|
|
38
|
-
const r = { ...t };
|
|
39
|
-
for (const n in t) {
|
|
40
|
-
const o = e[n], a = t[n];
|
|
41
|
-
/^on[A-Z]/.test(n) ? o && a ? r[n] = (...s) => {
|
|
42
|
-
a(...s), o(...s);
|
|
43
|
-
} : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...a } : n === "className" && (r[n] = [o, a].filter(Boolean).join(" "));
|
|
44
|
-
}
|
|
45
|
-
return { ...e, ...r };
|
|
46
|
-
}
|
|
47
|
-
function xe(e) {
|
|
48
|
-
var n, o;
|
|
49
|
-
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
50
|
-
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
51
|
-
}
|
|
52
|
-
var Pe = [
|
|
53
|
-
"a",
|
|
54
|
-
"button",
|
|
55
|
-
"div",
|
|
56
|
-
"form",
|
|
57
|
-
"h2",
|
|
58
|
-
"h3",
|
|
59
|
-
"img",
|
|
60
|
-
"input",
|
|
61
|
-
"label",
|
|
62
|
-
"li",
|
|
63
|
-
"nav",
|
|
64
|
-
"ol",
|
|
65
|
-
"p",
|
|
66
|
-
"span",
|
|
67
|
-
"svg",
|
|
68
|
-
"ul"
|
|
69
|
-
], T = Pe.reduce((e, t) => {
|
|
70
|
-
const r = c.forwardRef((n, o) => {
|
|
71
|
-
const { asChild: a, ...i } = n, s = a ? q : t;
|
|
72
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(s, { ...i, ref: o });
|
|
73
|
-
});
|
|
74
|
-
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
75
|
-
}, {}), J = ["PageUp", "PageDown"], Q = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ee = {
|
|
9
|
+
var q = ["PageUp", "PageDown"], J = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Q = {
|
|
76
10
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
77
11
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
78
12
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
79
13
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
]), [
|
|
14
|
+
}, B = "Slider", [U, ge, _e] = pe(B), [Z, Je] = me(B, [
|
|
15
|
+
_e
|
|
16
|
+
]), [ve, T] = Z(B), ee = u.forwardRef(
|
|
83
17
|
(e, t) => {
|
|
84
18
|
const {
|
|
85
|
-
name:
|
|
86
|
-
min:
|
|
87
|
-
max:
|
|
88
|
-
step:
|
|
89
|
-
orientation:
|
|
90
|
-
disabled:
|
|
91
|
-
minStepsBetweenThumbs:
|
|
92
|
-
defaultValue:
|
|
93
|
-
value:
|
|
94
|
-
onValueChange:
|
|
19
|
+
name: n,
|
|
20
|
+
min: o = 0,
|
|
21
|
+
max: s = 100,
|
|
22
|
+
step: c = 1,
|
|
23
|
+
orientation: r = "horizontal",
|
|
24
|
+
disabled: a = !1,
|
|
25
|
+
minStepsBetweenThumbs: l = 0,
|
|
26
|
+
defaultValue: h = [o],
|
|
27
|
+
value: p,
|
|
28
|
+
onValueChange: i = () => {
|
|
95
29
|
},
|
|
96
|
-
onValueCommit:
|
|
30
|
+
onValueCommit: d = () => {
|
|
97
31
|
},
|
|
98
|
-
inverted:
|
|
99
|
-
form:
|
|
100
|
-
...
|
|
101
|
-
} = e,
|
|
102
|
-
prop:
|
|
103
|
-
defaultProp:
|
|
32
|
+
inverted: g = !1,
|
|
33
|
+
form: x,
|
|
34
|
+
...S
|
|
35
|
+
} = e, b = u.useRef(/* @__PURE__ */ new Set()), f = u.useRef(0), v = r === "horizontal" ? we : xe, [_ = [], I] = fe({
|
|
36
|
+
prop: p,
|
|
37
|
+
defaultProp: h,
|
|
104
38
|
onChange: (w) => {
|
|
105
|
-
var
|
|
106
|
-
(
|
|
39
|
+
var D;
|
|
40
|
+
(D = [...b.current][f.current]) == null || D.focus(), i(w);
|
|
107
41
|
}
|
|
108
|
-
}),
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
A(w,
|
|
42
|
+
}), L = u.useRef(_);
|
|
43
|
+
function H(w) {
|
|
44
|
+
const R = De(_, w);
|
|
45
|
+
A(w, R);
|
|
112
46
|
}
|
|
113
47
|
function de(w) {
|
|
114
|
-
A(w,
|
|
48
|
+
A(w, f.current);
|
|
115
49
|
}
|
|
116
|
-
function
|
|
117
|
-
const w =
|
|
118
|
-
|
|
50
|
+
function ue() {
|
|
51
|
+
const w = L.current[f.current];
|
|
52
|
+
_[f.current] !== w && d(_);
|
|
119
53
|
}
|
|
120
|
-
function A(w,
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
const P =
|
|
124
|
-
if (
|
|
125
|
-
|
|
126
|
-
const X = String(P) !== String(
|
|
127
|
-
return X &&
|
|
54
|
+
function A(w, R, { commit: D } = { commit: !1 }) {
|
|
55
|
+
const j = Be(c), z = Ie(Math.round((w - o) / c) * c + o, j), N = W(z, [o, s]);
|
|
56
|
+
I((E = []) => {
|
|
57
|
+
const P = ye(E, N, R);
|
|
58
|
+
if (Ve(P, l * c)) {
|
|
59
|
+
f.current = P.indexOf(N);
|
|
60
|
+
const X = String(P) !== String(E);
|
|
61
|
+
return X && D && d(P), X ? P : E;
|
|
128
62
|
} else
|
|
129
|
-
return
|
|
63
|
+
return E;
|
|
130
64
|
});
|
|
131
65
|
}
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
|
|
66
|
+
return /* @__PURE__ */ m(
|
|
67
|
+
ve,
|
|
134
68
|
{
|
|
135
69
|
scope: e.__scopeSlider,
|
|
136
|
-
name:
|
|
137
|
-
disabled:
|
|
138
|
-
min:
|
|
139
|
-
max:
|
|
140
|
-
valueIndexToChangeRef:
|
|
141
|
-
thumbs:
|
|
142
|
-
values:
|
|
143
|
-
orientation:
|
|
144
|
-
form:
|
|
145
|
-
children: /* @__PURE__ */
|
|
146
|
-
|
|
70
|
+
name: n,
|
|
71
|
+
disabled: a,
|
|
72
|
+
min: o,
|
|
73
|
+
max: s,
|
|
74
|
+
valueIndexToChangeRef: f,
|
|
75
|
+
thumbs: b.current,
|
|
76
|
+
values: _,
|
|
77
|
+
orientation: r,
|
|
78
|
+
form: x,
|
|
79
|
+
children: /* @__PURE__ */ m(U.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(U.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(
|
|
80
|
+
v,
|
|
147
81
|
{
|
|
148
|
-
"aria-disabled":
|
|
149
|
-
"data-disabled":
|
|
150
|
-
...
|
|
82
|
+
"aria-disabled": a,
|
|
83
|
+
"data-disabled": a ? "" : void 0,
|
|
84
|
+
...S,
|
|
151
85
|
ref: t,
|
|
152
|
-
onPointerDown:
|
|
153
|
-
|
|
86
|
+
onPointerDown: M(S.onPointerDown, () => {
|
|
87
|
+
a || (L.current = _);
|
|
154
88
|
}),
|
|
155
|
-
min:
|
|
156
|
-
max:
|
|
157
|
-
inverted:
|
|
158
|
-
onSlideStart:
|
|
159
|
-
onSlideMove:
|
|
160
|
-
onSlideEnd:
|
|
161
|
-
onHomeKeyDown: () => !
|
|
162
|
-
onEndKeyDown: () => !
|
|
163
|
-
onStepKeyDown: ({ event: w, direction:
|
|
164
|
-
if (!
|
|
165
|
-
const z =
|
|
166
|
-
A(
|
|
89
|
+
min: o,
|
|
90
|
+
max: s,
|
|
91
|
+
inverted: g,
|
|
92
|
+
onSlideStart: a ? void 0 : H,
|
|
93
|
+
onSlideMove: a ? void 0 : de,
|
|
94
|
+
onSlideEnd: a ? void 0 : ue,
|
|
95
|
+
onHomeKeyDown: () => !a && A(o, 0, { commit: !0 }),
|
|
96
|
+
onEndKeyDown: () => !a && A(s, _.length - 1, { commit: !0 }),
|
|
97
|
+
onStepKeyDown: ({ event: w, direction: R }) => {
|
|
98
|
+
if (!a) {
|
|
99
|
+
const z = q.includes(w.key) || w.shiftKey && J.includes(w.key) ? 10 : 1, N = f.current, E = _[N], P = c * z * R;
|
|
100
|
+
A(E + P, N, { commit: !0 });
|
|
167
101
|
}
|
|
168
102
|
}
|
|
169
103
|
}
|
|
@@ -172,368 +106,383 @@ var Pe = [
|
|
|
172
106
|
);
|
|
173
107
|
}
|
|
174
108
|
);
|
|
175
|
-
|
|
176
|
-
var [
|
|
109
|
+
ee.displayName = B;
|
|
110
|
+
var [te, ne] = Z(B, {
|
|
177
111
|
startEdge: "left",
|
|
178
112
|
endEdge: "right",
|
|
179
113
|
size: "width",
|
|
180
114
|
direction: 1
|
|
181
|
-
}),
|
|
115
|
+
}), we = u.forwardRef(
|
|
182
116
|
(e, t) => {
|
|
183
117
|
const {
|
|
184
|
-
min:
|
|
185
|
-
max:
|
|
186
|
-
dir:
|
|
187
|
-
inverted:
|
|
188
|
-
onSlideStart:
|
|
189
|
-
onSlideMove:
|
|
190
|
-
onSlideEnd:
|
|
191
|
-
onStepKeyDown:
|
|
192
|
-
...
|
|
193
|
-
} = e, [
|
|
194
|
-
function
|
|
195
|
-
const
|
|
196
|
-
return
|
|
118
|
+
min: n,
|
|
119
|
+
max: o,
|
|
120
|
+
dir: s,
|
|
121
|
+
inverted: c,
|
|
122
|
+
onSlideStart: r,
|
|
123
|
+
onSlideMove: a,
|
|
124
|
+
onSlideEnd: l,
|
|
125
|
+
onStepKeyDown: h,
|
|
126
|
+
...p
|
|
127
|
+
} = e, [i, d] = u.useState(null), g = V(t, (v) => d(v)), x = u.useRef(void 0), S = Se(s), b = S === "ltr", f = b && !c || !b && c;
|
|
128
|
+
function C(v) {
|
|
129
|
+
const _ = x.current || i.getBoundingClientRect(), I = [0, _.width], H = $(I, f ? [n, o] : [o, n]);
|
|
130
|
+
return x.current = _, H(v - _.left);
|
|
197
131
|
}
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
-
|
|
132
|
+
return /* @__PURE__ */ m(
|
|
133
|
+
te,
|
|
200
134
|
{
|
|
201
135
|
scope: e.__scopeSlider,
|
|
202
|
-
startEdge:
|
|
203
|
-
endEdge:
|
|
204
|
-
direction:
|
|
136
|
+
startEdge: f ? "left" : "right",
|
|
137
|
+
endEdge: f ? "right" : "left",
|
|
138
|
+
direction: f ? 1 : -1,
|
|
205
139
|
size: "width",
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
|
|
140
|
+
children: /* @__PURE__ */ m(
|
|
141
|
+
oe,
|
|
208
142
|
{
|
|
209
|
-
dir:
|
|
143
|
+
dir: S,
|
|
210
144
|
"data-orientation": "horizontal",
|
|
211
|
-
...
|
|
212
|
-
ref:
|
|
145
|
+
...p,
|
|
146
|
+
ref: g,
|
|
213
147
|
style: {
|
|
214
|
-
...
|
|
148
|
+
...p.style,
|
|
215
149
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
216
150
|
},
|
|
217
|
-
onSlideStart: (
|
|
218
|
-
const
|
|
219
|
-
|
|
151
|
+
onSlideStart: (v) => {
|
|
152
|
+
const _ = C(v.clientX);
|
|
153
|
+
r == null || r(_);
|
|
220
154
|
},
|
|
221
|
-
onSlideMove: (
|
|
222
|
-
const
|
|
223
|
-
|
|
155
|
+
onSlideMove: (v) => {
|
|
156
|
+
const _ = C(v.clientX);
|
|
157
|
+
a == null || a(_);
|
|
224
158
|
},
|
|
225
159
|
onSlideEnd: () => {
|
|
226
|
-
|
|
160
|
+
x.current = void 0, l == null || l();
|
|
227
161
|
},
|
|
228
|
-
onStepKeyDown: (
|
|
229
|
-
const
|
|
230
|
-
|
|
162
|
+
onStepKeyDown: (v) => {
|
|
163
|
+
const I = Q[f ? "from-left" : "from-right"].includes(v.key);
|
|
164
|
+
h == null || h({ event: v, direction: I ? -1 : 1 });
|
|
231
165
|
}
|
|
232
166
|
}
|
|
233
167
|
)
|
|
234
168
|
}
|
|
235
169
|
);
|
|
236
170
|
}
|
|
237
|
-
),
|
|
171
|
+
), xe = u.forwardRef(
|
|
238
172
|
(e, t) => {
|
|
239
173
|
const {
|
|
240
|
-
min:
|
|
241
|
-
max:
|
|
242
|
-
inverted:
|
|
243
|
-
onSlideStart:
|
|
244
|
-
onSlideMove:
|
|
245
|
-
onSlideEnd:
|
|
246
|
-
onStepKeyDown:
|
|
247
|
-
...
|
|
248
|
-
} = e,
|
|
249
|
-
function
|
|
250
|
-
const
|
|
251
|
-
return
|
|
174
|
+
min: n,
|
|
175
|
+
max: o,
|
|
176
|
+
inverted: s,
|
|
177
|
+
onSlideStart: c,
|
|
178
|
+
onSlideMove: r,
|
|
179
|
+
onSlideEnd: a,
|
|
180
|
+
onStepKeyDown: l,
|
|
181
|
+
...h
|
|
182
|
+
} = e, p = u.useRef(null), i = V(t, p), d = u.useRef(void 0), g = !s;
|
|
183
|
+
function x(S) {
|
|
184
|
+
const b = d.current || p.current.getBoundingClientRect(), f = [0, b.height], v = $(f, g ? [o, n] : [n, o]);
|
|
185
|
+
return d.current = b, v(S - b.top);
|
|
252
186
|
}
|
|
253
|
-
return /* @__PURE__ */
|
|
254
|
-
|
|
187
|
+
return /* @__PURE__ */ m(
|
|
188
|
+
te,
|
|
255
189
|
{
|
|
256
190
|
scope: e.__scopeSlider,
|
|
257
|
-
startEdge:
|
|
258
|
-
endEdge:
|
|
191
|
+
startEdge: g ? "bottom" : "top",
|
|
192
|
+
endEdge: g ? "top" : "bottom",
|
|
259
193
|
size: "height",
|
|
260
|
-
direction:
|
|
261
|
-
children: /* @__PURE__ */
|
|
262
|
-
|
|
194
|
+
direction: g ? 1 : -1,
|
|
195
|
+
children: /* @__PURE__ */ m(
|
|
196
|
+
oe,
|
|
263
197
|
{
|
|
264
198
|
"data-orientation": "vertical",
|
|
265
|
-
...
|
|
266
|
-
ref:
|
|
199
|
+
...h,
|
|
200
|
+
ref: i,
|
|
267
201
|
style: {
|
|
268
|
-
...
|
|
202
|
+
...h.style,
|
|
269
203
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
270
204
|
},
|
|
271
|
-
onSlideStart: (
|
|
272
|
-
const
|
|
273
|
-
|
|
205
|
+
onSlideStart: (S) => {
|
|
206
|
+
const b = x(S.clientY);
|
|
207
|
+
c == null || c(b);
|
|
274
208
|
},
|
|
275
|
-
onSlideMove: (
|
|
276
|
-
const
|
|
277
|
-
|
|
209
|
+
onSlideMove: (S) => {
|
|
210
|
+
const b = x(S.clientY);
|
|
211
|
+
r == null || r(b);
|
|
278
212
|
},
|
|
279
213
|
onSlideEnd: () => {
|
|
280
|
-
|
|
214
|
+
d.current = void 0, a == null || a();
|
|
281
215
|
},
|
|
282
|
-
onStepKeyDown: (
|
|
283
|
-
const
|
|
284
|
-
|
|
216
|
+
onStepKeyDown: (S) => {
|
|
217
|
+
const f = Q[g ? "from-bottom" : "from-top"].includes(S.key);
|
|
218
|
+
l == null || l({ event: S, direction: f ? -1 : 1 });
|
|
285
219
|
}
|
|
286
220
|
}
|
|
287
221
|
)
|
|
288
222
|
}
|
|
289
223
|
);
|
|
290
224
|
}
|
|
291
|
-
),
|
|
225
|
+
), oe = u.forwardRef(
|
|
292
226
|
(e, t) => {
|
|
293
227
|
const {
|
|
294
|
-
__scopeSlider:
|
|
295
|
-
onSlideStart:
|
|
296
|
-
onSlideMove:
|
|
297
|
-
onSlideEnd:
|
|
298
|
-
onHomeKeyDown:
|
|
299
|
-
onEndKeyDown:
|
|
300
|
-
onStepKeyDown:
|
|
301
|
-
...
|
|
302
|
-
} = e,
|
|
303
|
-
return /* @__PURE__ */
|
|
304
|
-
|
|
228
|
+
__scopeSlider: n,
|
|
229
|
+
onSlideStart: o,
|
|
230
|
+
onSlideMove: s,
|
|
231
|
+
onSlideEnd: c,
|
|
232
|
+
onHomeKeyDown: r,
|
|
233
|
+
onEndKeyDown: a,
|
|
234
|
+
onStepKeyDown: l,
|
|
235
|
+
...h
|
|
236
|
+
} = e, p = T(B, n);
|
|
237
|
+
return /* @__PURE__ */ m(
|
|
238
|
+
k.span,
|
|
305
239
|
{
|
|
306
|
-
...
|
|
240
|
+
...h,
|
|
307
241
|
ref: t,
|
|
308
|
-
onKeyDown:
|
|
309
|
-
|
|
242
|
+
onKeyDown: M(e.onKeyDown, (i) => {
|
|
243
|
+
i.key === "Home" ? (r(i), i.preventDefault()) : i.key === "End" ? (a(i), i.preventDefault()) : q.concat(J).includes(i.key) && (l(i), i.preventDefault());
|
|
310
244
|
}),
|
|
311
|
-
onPointerDown:
|
|
312
|
-
const
|
|
313
|
-
|
|
245
|
+
onPointerDown: M(e.onPointerDown, (i) => {
|
|
246
|
+
const d = i.target;
|
|
247
|
+
d.setPointerCapture(i.pointerId), i.preventDefault(), p.thumbs.has(d) ? d.focus() : o(i);
|
|
314
248
|
}),
|
|
315
|
-
onPointerMove:
|
|
316
|
-
|
|
249
|
+
onPointerMove: M(e.onPointerMove, (i) => {
|
|
250
|
+
i.target.hasPointerCapture(i.pointerId) && s(i);
|
|
317
251
|
}),
|
|
318
|
-
onPointerUp:
|
|
319
|
-
const
|
|
320
|
-
|
|
252
|
+
onPointerUp: M(e.onPointerUp, (i) => {
|
|
253
|
+
const d = i.target;
|
|
254
|
+
d.hasPointerCapture(i.pointerId) && (d.releasePointerCapture(i.pointerId), c(i));
|
|
321
255
|
})
|
|
322
256
|
}
|
|
323
257
|
);
|
|
324
258
|
}
|
|
325
|
-
),
|
|
259
|
+
), re = "SliderTrack", ie = u.forwardRef(
|
|
326
260
|
(e, t) => {
|
|
327
|
-
const { __scopeSlider:
|
|
328
|
-
return /* @__PURE__ */
|
|
329
|
-
|
|
261
|
+
const { __scopeSlider: n, ...o } = e, s = T(re, n);
|
|
262
|
+
return /* @__PURE__ */ m(
|
|
263
|
+
k.span,
|
|
330
264
|
{
|
|
331
|
-
"data-disabled":
|
|
332
|
-
"data-orientation":
|
|
333
|
-
...
|
|
265
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
266
|
+
"data-orientation": s.orientation,
|
|
267
|
+
...o,
|
|
334
268
|
ref: t
|
|
335
269
|
}
|
|
336
270
|
);
|
|
337
271
|
}
|
|
338
272
|
);
|
|
339
|
-
|
|
340
|
-
var
|
|
273
|
+
ie.displayName = re;
|
|
274
|
+
var F = "SliderRange", ae = u.forwardRef(
|
|
341
275
|
(e, t) => {
|
|
342
|
-
const { __scopeSlider:
|
|
343
|
-
(
|
|
344
|
-
),
|
|
345
|
-
return /* @__PURE__ */
|
|
346
|
-
|
|
276
|
+
const { __scopeSlider: n, ...o } = e, s = T(F, n), c = ne(F, n), r = u.useRef(null), a = V(t, r), l = s.values.length, h = s.values.map(
|
|
277
|
+
(d) => le(d, s.min, s.max)
|
|
278
|
+
), p = l > 1 ? Math.min(...h) : 0, i = 100 - Math.max(...h);
|
|
279
|
+
return /* @__PURE__ */ m(
|
|
280
|
+
k.span,
|
|
347
281
|
{
|
|
348
|
-
"data-orientation":
|
|
349
|
-
"data-disabled":
|
|
350
|
-
...
|
|
351
|
-
ref:
|
|
282
|
+
"data-orientation": s.orientation,
|
|
283
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
284
|
+
...o,
|
|
285
|
+
ref: a,
|
|
352
286
|
style: {
|
|
353
287
|
...e.style,
|
|
354
|
-
[
|
|
355
|
-
[
|
|
288
|
+
[c.startEdge]: p + "%",
|
|
289
|
+
[c.endEdge]: i + "%"
|
|
356
290
|
}
|
|
357
291
|
}
|
|
358
292
|
);
|
|
359
293
|
}
|
|
360
294
|
);
|
|
361
|
-
|
|
362
|
-
var
|
|
295
|
+
ae.displayName = F;
|
|
296
|
+
var Y = "SliderThumb", se = u.forwardRef(
|
|
363
297
|
(e, t) => {
|
|
364
|
-
const
|
|
365
|
-
() =>
|
|
366
|
-
[
|
|
298
|
+
const n = ge(e.__scopeSlider), [o, s] = u.useState(null), c = V(t, (a) => s(a)), r = u.useMemo(
|
|
299
|
+
() => o ? n().findIndex((a) => a.ref.current === o) : -1,
|
|
300
|
+
[n, o]
|
|
367
301
|
);
|
|
368
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ m(Re, { ...e, ref: c, index: r });
|
|
369
303
|
}
|
|
370
|
-
),
|
|
304
|
+
), Re = u.forwardRef(
|
|
371
305
|
(e, t) => {
|
|
372
|
-
const { __scopeSlider:
|
|
373
|
-
return
|
|
374
|
-
if (
|
|
375
|
-
return
|
|
376
|
-
|
|
306
|
+
const { __scopeSlider: n, index: o, name: s, ...c } = e, r = T(Y, n), a = ne(Y, n), [l, h] = u.useState(null), p = V(t, (C) => h(C)), i = l ? r.form || !!l.closest("form") : !0, d = he(l), g = r.values[o], x = g === void 0 ? 0 : le(g, r.min, r.max), S = Ce(o, r.values.length), b = d == null ? void 0 : d[a.size], f = b ? Ee(b, x, a.direction) : 0;
|
|
307
|
+
return u.useEffect(() => {
|
|
308
|
+
if (l)
|
|
309
|
+
return r.thumbs.add(l), () => {
|
|
310
|
+
r.thumbs.delete(l);
|
|
377
311
|
};
|
|
378
|
-
}, [
|
|
312
|
+
}, [l, r.thumbs]), /* @__PURE__ */ K(
|
|
379
313
|
"span",
|
|
380
314
|
{
|
|
381
315
|
style: {
|
|
382
316
|
transform: "var(--radix-slider-thumb-transform)",
|
|
383
317
|
position: "absolute",
|
|
384
|
-
[
|
|
318
|
+
[a.startEdge]: `calc(${x}% + ${f}px)`
|
|
385
319
|
},
|
|
386
320
|
children: [
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
|
|
321
|
+
/* @__PURE__ */ m(U.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(
|
|
322
|
+
k.span,
|
|
389
323
|
{
|
|
390
324
|
role: "slider",
|
|
391
|
-
"aria-label": e["aria-label"] ||
|
|
392
|
-
"aria-valuemin":
|
|
393
|
-
"aria-valuenow":
|
|
394
|
-
"aria-valuemax":
|
|
395
|
-
"aria-orientation":
|
|
396
|
-
"data-orientation":
|
|
397
|
-
"data-disabled":
|
|
398
|
-
tabIndex:
|
|
399
|
-
...
|
|
400
|
-
ref:
|
|
401
|
-
style:
|
|
402
|
-
onFocus:
|
|
403
|
-
|
|
325
|
+
"aria-label": e["aria-label"] || S,
|
|
326
|
+
"aria-valuemin": r.min,
|
|
327
|
+
"aria-valuenow": g,
|
|
328
|
+
"aria-valuemax": r.max,
|
|
329
|
+
"aria-orientation": r.orientation,
|
|
330
|
+
"data-orientation": r.orientation,
|
|
331
|
+
"data-disabled": r.disabled ? "" : void 0,
|
|
332
|
+
tabIndex: r.disabled ? void 0 : 0,
|
|
333
|
+
...c,
|
|
334
|
+
ref: p,
|
|
335
|
+
style: g === void 0 ? { display: "none" } : e.style,
|
|
336
|
+
onFocus: M(e.onFocus, () => {
|
|
337
|
+
r.valueIndexToChangeRef.current = o;
|
|
404
338
|
})
|
|
405
339
|
}
|
|
406
340
|
) }),
|
|
407
|
-
|
|
408
|
-
|
|
341
|
+
i && /* @__PURE__ */ m(
|
|
342
|
+
ce,
|
|
409
343
|
{
|
|
410
|
-
name:
|
|
411
|
-
form:
|
|
412
|
-
value:
|
|
344
|
+
name: s ?? (r.name ? r.name + (r.values.length > 1 ? "[]" : "") : void 0),
|
|
345
|
+
form: r.form,
|
|
346
|
+
value: g
|
|
413
347
|
},
|
|
414
|
-
|
|
348
|
+
o
|
|
415
349
|
)
|
|
416
350
|
]
|
|
417
351
|
}
|
|
418
352
|
);
|
|
419
353
|
}
|
|
420
354
|
);
|
|
421
|
-
|
|
422
|
-
var
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
355
|
+
se.displayName = Y;
|
|
356
|
+
var Pe = "RadioBubbleInput", ce = u.forwardRef(
|
|
357
|
+
({ __scopeSlider: e, value: t, ...n }, o) => {
|
|
358
|
+
const s = u.useRef(null), c = V(s, o), r = be(t);
|
|
359
|
+
return u.useEffect(() => {
|
|
360
|
+
const a = s.current;
|
|
361
|
+
if (!a) return;
|
|
362
|
+
const l = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
363
|
+
if (r !== t && p) {
|
|
364
|
+
const i = new Event("input", { bubbles: !0 });
|
|
365
|
+
p.call(a, t), a.dispatchEvent(i);
|
|
366
|
+
}
|
|
367
|
+
}, [r, t]), /* @__PURE__ */ m(
|
|
368
|
+
k.input,
|
|
369
|
+
{
|
|
370
|
+
style: { display: "none" },
|
|
371
|
+
...n,
|
|
372
|
+
ref: c,
|
|
373
|
+
defaultValue: t
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
);
|
|
378
|
+
ce.displayName = Pe;
|
|
379
|
+
function ye(e = [], t, n) {
|
|
380
|
+
const o = [...e];
|
|
381
|
+
return o[n] = t, o.sort((s, c) => s - c);
|
|
435
382
|
}
|
|
436
|
-
function
|
|
437
|
-
const
|
|
438
|
-
return
|
|
383
|
+
function le(e, t, n) {
|
|
384
|
+
const c = 100 / (n - t) * (e - t);
|
|
385
|
+
return W(c, [0, 100]);
|
|
439
386
|
}
|
|
440
|
-
function
|
|
387
|
+
function Ce(e, t) {
|
|
441
388
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
442
389
|
}
|
|
443
|
-
function
|
|
390
|
+
function De(e, t) {
|
|
444
391
|
if (e.length === 1) return 0;
|
|
445
|
-
const
|
|
446
|
-
return
|
|
392
|
+
const n = e.map((s) => Math.abs(s - t)), o = Math.min(...n);
|
|
393
|
+
return n.indexOf(o);
|
|
447
394
|
}
|
|
448
|
-
function
|
|
449
|
-
const
|
|
450
|
-
return (
|
|
395
|
+
function Ee(e, t, n) {
|
|
396
|
+
const o = e / 2, c = $([0, 50], [0, o]);
|
|
397
|
+
return (o - c(t) * n) * n;
|
|
451
398
|
}
|
|
452
|
-
function
|
|
453
|
-
return e.slice(0, -1).map((t,
|
|
399
|
+
function Me(e) {
|
|
400
|
+
return e.slice(0, -1).map((t, n) => e[n + 1] - t);
|
|
454
401
|
}
|
|
455
|
-
function
|
|
402
|
+
function Ve(e, t) {
|
|
456
403
|
if (t > 0) {
|
|
457
|
-
const
|
|
458
|
-
return Math.min(...
|
|
404
|
+
const n = Me(e);
|
|
405
|
+
return Math.min(...n) >= t;
|
|
459
406
|
}
|
|
460
407
|
return !0;
|
|
461
408
|
}
|
|
462
|
-
function
|
|
463
|
-
return (
|
|
409
|
+
function $(e, t) {
|
|
410
|
+
return (n) => {
|
|
464
411
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
465
|
-
const
|
|
466
|
-
return t[0] +
|
|
412
|
+
const o = (t[1] - t[0]) / (e[1] - e[0]);
|
|
413
|
+
return t[0] + o * (n - e[0]);
|
|
467
414
|
};
|
|
468
415
|
}
|
|
469
|
-
function
|
|
416
|
+
function Be(e) {
|
|
470
417
|
return (String(e).split(".")[1] || "").length;
|
|
471
418
|
}
|
|
472
|
-
function
|
|
473
|
-
const
|
|
474
|
-
return Math.round(e *
|
|
419
|
+
function Ie(e, t) {
|
|
420
|
+
const n = Math.pow(10, t);
|
|
421
|
+
return Math.round(e * n) / n;
|
|
475
422
|
}
|
|
476
|
-
var
|
|
477
|
-
const
|
|
478
|
-
container:
|
|
479
|
-
labels:
|
|
480
|
-
root:
|
|
481
|
-
track:
|
|
482
|
-
range:
|
|
483
|
-
thumb:
|
|
484
|
-
valueBubble:
|
|
485
|
-
}
|
|
423
|
+
var Ae = ee, Ne = ie, ke = ae, Ke = se;
|
|
424
|
+
const Te = "cfxui__Slider__container__997ea", Le = "cfxui__Slider__labels__2a966", He = "cfxui__Slider__root__a6c1b", ze = "cfxui__Slider__track__570cb", Oe = "cfxui__Slider__range__5ae17", Ue = "cfxui__Slider__thumb__27d80", Fe = "cfxui__Slider__valueBubble__ebce8", y = {
|
|
425
|
+
container: Te,
|
|
426
|
+
labels: Le,
|
|
427
|
+
root: He,
|
|
428
|
+
track: ze,
|
|
429
|
+
range: Oe,
|
|
430
|
+
thumb: Ue,
|
|
431
|
+
valueBubble: Fe
|
|
432
|
+
};
|
|
433
|
+
function Qe(e) {
|
|
486
434
|
const {
|
|
487
|
-
value:
|
|
488
|
-
defaultValue:
|
|
489
|
-
title:
|
|
490
|
-
ariaLabel:
|
|
491
|
-
className:
|
|
492
|
-
trackClassName:
|
|
493
|
-
minLabel:
|
|
494
|
-
maxLabel:
|
|
495
|
-
min:
|
|
496
|
-
max:
|
|
497
|
-
onValueChange:
|
|
498
|
-
|
|
499
|
-
|
|
435
|
+
value: t,
|
|
436
|
+
defaultValue: n,
|
|
437
|
+
title: o,
|
|
438
|
+
ariaLabel: s,
|
|
439
|
+
className: c,
|
|
440
|
+
trackClassName: r,
|
|
441
|
+
minLabel: a,
|
|
442
|
+
maxLabel: l,
|
|
443
|
+
min: h = 0,
|
|
444
|
+
max: p,
|
|
445
|
+
onValueChange: i,
|
|
446
|
+
ref: d,
|
|
447
|
+
...g
|
|
448
|
+
} = e, [x, S] = O.useState(() => {
|
|
449
|
+
if (t)
|
|
450
|
+
return t;
|
|
500
451
|
if (n)
|
|
501
452
|
return n;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
if (S) {
|
|
506
|
-
S(R);
|
|
453
|
+
}), b = O.useCallback((f) => {
|
|
454
|
+
if (i) {
|
|
455
|
+
i(f);
|
|
507
456
|
return;
|
|
508
457
|
}
|
|
509
|
-
|
|
510
|
-
}, [
|
|
511
|
-
return
|
|
512
|
-
|
|
513
|
-
}, [
|
|
458
|
+
S(f);
|
|
459
|
+
}, [i]);
|
|
460
|
+
return O.useEffect(() => {
|
|
461
|
+
t && S(t);
|
|
462
|
+
}, [t]), /* @__PURE__ */ K("div", { className: y.container, children: [
|
|
514
463
|
/* @__PURE__ */ K(
|
|
515
|
-
|
|
464
|
+
Ae,
|
|
516
465
|
{
|
|
517
|
-
...
|
|
518
|
-
ref:
|
|
519
|
-
min:
|
|
520
|
-
max:
|
|
521
|
-
value:
|
|
522
|
-
className: G(
|
|
523
|
-
onValueChange:
|
|
466
|
+
...g,
|
|
467
|
+
ref: d,
|
|
468
|
+
min: h,
|
|
469
|
+
max: p,
|
|
470
|
+
value: t,
|
|
471
|
+
className: G(y.root, c),
|
|
472
|
+
onValueChange: b,
|
|
524
473
|
children: [
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ m(Ne, { className: G(y.track, r), children: /* @__PURE__ */ m(ke, { className: y.range }) }),
|
|
475
|
+
/* @__PURE__ */ m(Ke, { className: y.thumb, "aria-label": s, children: /* @__PURE__ */ m("div", { className: y.valueBubble, children: [x, o].join(" ") }) })
|
|
527
476
|
]
|
|
528
477
|
}
|
|
529
478
|
),
|
|
530
|
-
/* @__PURE__ */ K("div", { className:
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ K("div", { className: y.labels, children: [
|
|
480
|
+
/* @__PURE__ */ m("span", { children: typeof a < "u" ? a : h }),
|
|
481
|
+
/* @__PURE__ */ m("span", { children: typeof l < "u" ? l : p })
|
|
533
482
|
] })
|
|
534
483
|
] });
|
|
535
|
-
}
|
|
484
|
+
}
|
|
536
485
|
export {
|
|
537
|
-
|
|
538
|
-
|
|
486
|
+
Qe as Slider,
|
|
487
|
+
Qe as default
|
|
539
488
|
};
|