kdpa-components 1.1.0 → 1.2.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/CHANGELOG.md +2 -2
- package/dist/Accordion/index.js +14 -14
- package/dist/Alert/index.js +17 -17
- package/dist/{ArrowDropDown-ea2f6035.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +6 -6
- package/dist/Badge/index.js +19 -19
- package/dist/{Box-06b8bc37.js → Box-032e9a1d.js} +23 -24
- package/dist/{Button-28699d65.js → Button-9d9cc0bd.js} +11 -12
- package/dist/{ButtonBase-e4d95755.js → ButtonBase-fa4630c8.js} +9 -10
- package/dist/Buttons/index.js +24 -24
- package/dist/{CSSTransition-2d7d1f1e.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +12 -12
- package/dist/Chip/index.js +16 -16
- package/dist/{Chip-95532a41.js → Chip-e5751770.js} +7 -8
- package/dist/{CircularProgress-6e67e3d8.js → CircularProgress-01a8929e.js} +15 -16
- package/dist/{Close-70f0ad0d.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +9 -9
- package/dist/{Collapse-c7000672.js → Collapse-547e6c7a.js} +35 -36
- package/dist/CopyToClipboard/index.js +23 -23
- package/dist/{Dialog-185ee62e.js → Dialog-652a3ad4.js} +15 -16
- package/dist/Divider/index.js +6 -6
- package/dist/DropZone/index.js +33 -33
- package/dist/{Fade-e6cc07e5.js → Fade-7ee2c0a4.js} +11 -12
- package/dist/FormControl/index.js +10 -10
- package/dist/{FormControl-3d1d38fe.js → FormControl-ca7447ab.js} +5 -6
- package/dist/FullScreenDialog/index.js +16 -16
- package/dist/Grid/index.js +8 -8
- package/dist/{Grid-b29d871f.js → Grid-9708b9ca.js} +59 -60
- package/dist/{Grow-bcd47732.js → Grow-55d0786d.js} +16 -17
- package/dist/{IconButton-eace4b91.js → IconButton-48d87778.js} +12 -13
- package/dist/Input/index.js +22 -22
- package/dist/{KdpaAccordions-39a4ed6e.js → KdpaAccordions-2ae65dd1.js} +125 -113
- package/dist/{KdpaAlertTitle-85b3b759.js → KdpaAlertTitle-f1549035.js} +103 -91
- package/dist/{KdpaAutoComplete-e2ccab34.js → KdpaAutoComplete-8a11974a.js} +225 -221
- package/dist/{KdpaAvatar-798f595f.js → KdpaAvatar-d297ef8a.js} +75 -71
- package/dist/{KdpaCheckBox-ca4f09b9.js → KdpaCheckBox-84d56486.js} +31 -27
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2168fb05.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-f6810c38.js → KdpaDateTimePicker-cb4a16d0.js} +10531 -13197
- package/dist/{KdpaDivider-8da2e22f.js → KdpaDivider-1c62c65a.js} +93 -81
- package/dist/{KdpaDropZone-3abdf72d.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-e993132d.js → KdpaFormControlLabel-249b7622.js} +53 -49
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-544999b0.js → KdpaGridBadge-65b88a7a.js} +121 -101
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-3f3eb039.js → KdpaLazyDrop-1985fc75.js} +253 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaModalImage-f3b07c33.js → KdpaModalImage-eb732bf0.js} +69 -61
- package/dist/{KdpaPaginationGrid-281683fd.js → KdpaPaginationGrid-97a5b164.js} +307 -247
- package/dist/{KdpaRadioGroup-123a09aa.js → KdpaRadioGroup-87122ec7.js} +101 -93
- package/dist/{KdpaRtlProvider-120dff80.js → KdpaRtlProvider-495e4bb0.js} +142 -134
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-40a1807a.js → KdpaSlider-b7226e20.js} +190 -182
- package/dist/{KdpaSwitch-603cd217.js → KdpaSwitch-b2ba7c23.js} +39 -31
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-20c42ab8.js → KdpaTooltip-653424c7.js} +96 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +23 -23
- package/dist/{ListItem-8c33bc78.js → ListItem-ddec0b28.js} +8 -9
- package/dist/Loading/KdpaProgress/index.js +11 -11
- package/dist/Loading/index.js +8 -8
- package/dist/{MenuItem-db67ec92.js → MenuItem-057c85a3.js} +14 -15
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-8739c755.js → Modal-daf2a588.js} +10 -11
- package/dist/PaginationGrid/index.js +31 -31
- package/dist/{Paper-726cd077.js → Paper-00aea968.js} +15 -16
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +38 -38
- package/dist/{Popper-708e355f.js → Popper-7adcd815.js} +8 -9
- package/dist/{Portal-90cf7ba4.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +12 -12
- package/dist/Selects/index.js +33 -33
- package/dist/{Slide-107d0b58.js → Slide-803fd098.js} +11 -12
- package/dist/Slider/index.js +7 -7
- package/dist/Switch/index.js +11 -11
- package/dist/{SwitchBase-0a37f2eb.js → SwitchBase-64e5662e.js} +7 -8
- package/dist/Tabs/index.js +14 -14
- package/dist/{Tabs-1caed6d0.js → Tabs-1140d353.js} +77 -78
- package/dist/{TextField-092190de.js → TextField-57c51dbe.js} +15 -16
- package/dist/ThemeProvider/index.js +5 -5
- package/dist/Tooltips/index.js +15 -15
- package/dist/{TransitionGroup-a1dcb75a.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +15 -15
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +7 -7
- package/dist/{Typography-644bd1d9.js → Typography-db7e5ea2.js} +18 -19
- package/dist/{Zoom-39a63b9e.js → Zoom-36a189bb.js} +11 -12
- package/dist/{createSvgIcon-5491f07a.js → createSvgIcon-1aa1b2b2.js} +5 -6
- package/dist/{dividerClasses-6fed9b68.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-f1cfc912.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-d599eee7.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-7120a510.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-ee27a957.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-e017d9bf.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +82 -82
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/{listItemTextClasses-29c5c497.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-0b7ad6f5.js → refType-450337d6.js} +1 -1
- package/dist/{useSlotProps-615f7694.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-948a6d35.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-0f6826f6.js → useThemeProps-ea792506.js} +2 -2
- package/dist/{utils-765dc524.js → utils-acd98a68.js} +2 -2
- package/package.json +4 -1
- package/dist/KdpaChip-1bb449f1.js +0 -31
- package/dist/KdpaCircularProgress-18524b3d.js +0 -44
- package/dist/KdpaCollapse-0d001d1f.js +0 -11
- package/dist/KdpaCollapse-db70c13b.js +0 -8
- package/dist/KdpaFormControl-5136bd3a.js +0 -6
- package/dist/KdpaFullScreenDialog-6c8bc817.js +0 -16
- package/dist/KdpaGrid-c32b342e.js +0 -8
- package/dist/KdpaIconButton-d4c623d6.js +0 -23
- package/dist/KdpaInputMultiline-9f5ee3f0.js +0 -48
- package/dist/KdpaMenuItem-ec7a72c8.js +0 -36
- package/dist/KdpaSecondaryButton-ea9f2aeb.js +0 -28
- package/dist/KdpaSkeleton-872821e6.js +0 -540
- package/dist/KdpaTabs-8a087fe4.js +0 -38
- package/dist/KdpaTypography-0aab42ce.js +0 -6
- package/dist/KdpaZoom-dcf1dd78.js +0 -10
- package/dist/KpdaPrimaryButton-4e76c06b.js +0 -47
- package/dist/identifier-878ccaef.js +0 -3147
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/yarn-error.log +0 -7875
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
1
|
+
import { j as $t } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { a as c, _ as Et } from "./extends-135d7828.js";
|
|
3
3
|
import * as T from "react";
|
|
4
|
-
import { g as Rt, P as t, c as U, l as
|
|
5
|
-
import { g as
|
|
6
|
-
import { u as
|
|
7
|
-
import { i as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
4
|
+
import { g as Rt, j as N, P as t, c as U, l as _t, d as Vt, a as rt } from "./identifier-2647f844.js";
|
|
5
|
+
import { g as jt, c as ce, s as ee, j as ct, u as wt, a as At } from "./useThemeProps-ea792506.js";
|
|
6
|
+
import { u as It } from "./useTheme-6ea322ec.js";
|
|
7
|
+
import { i as Re, u as B } from "./useSlotProps-3b927bcb.js";
|
|
8
|
+
import { u as Mt } from "./useControlled-cc2d41cb.js";
|
|
9
|
+
import { u as zt } from "./useIsFocusVisible-4693b580.js";
|
|
10
10
|
import { u as at } from "./useForkRef-0781dda0.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as Dt, a as Ke } from "./useEventCallback-83a2883c.js";
|
|
12
12
|
import { o as _e } from "./ownerDocument-5430cd5b.js";
|
|
13
13
|
import { c as nt } from "./chainPropTypes-004bf492.js";
|
|
14
14
|
const Ft = {
|
|
@@ -21,11 +21,11 @@ const Ft = {
|
|
|
21
21
|
position: "absolute",
|
|
22
22
|
whiteSpace: "nowrap",
|
|
23
23
|
width: "1px"
|
|
24
|
-
},
|
|
25
|
-
function
|
|
24
|
+
}, Ht = Ft;
|
|
25
|
+
function Yt(e, o, a = (s, d) => s === d) {
|
|
26
26
|
return e.length === o.length && e.every((s, d) => a(s, o[d]));
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Bt = 2;
|
|
29
29
|
function ut(e, o) {
|
|
30
30
|
return e - o;
|
|
31
31
|
}
|
|
@@ -36,11 +36,11 @@ function lt(e, o) {
|
|
|
36
36
|
var a;
|
|
37
37
|
const {
|
|
38
38
|
index: s
|
|
39
|
-
} = (a = e.reduce((d, L,
|
|
40
|
-
const
|
|
41
|
-
return d === null ||
|
|
42
|
-
distance:
|
|
43
|
-
index:
|
|
39
|
+
} = (a = e.reduce((d, L, $) => {
|
|
40
|
+
const f = Math.abs(o - L);
|
|
41
|
+
return d === null || f < d.distance || f === d.distance ? {
|
|
42
|
+
distance: f,
|
|
43
|
+
index: $
|
|
44
44
|
} : d;
|
|
45
45
|
}, null)) != null ? a : {};
|
|
46
46
|
return s;
|
|
@@ -66,10 +66,10 @@ function Ce(e, o) {
|
|
|
66
66
|
function Ve(e, o, a) {
|
|
67
67
|
return (e - o) * 100 / (a - o);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ut(e, o, a) {
|
|
70
70
|
return (a - o) * e + o;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function qt(e) {
|
|
73
73
|
if (Math.abs(e) < 1) {
|
|
74
74
|
const a = e.toExponential().split("e-"), s = a[0].split(".")[1];
|
|
75
75
|
return (s ? s.length : 0) + parseInt(a[1], 10);
|
|
@@ -77,9 +77,9 @@ function Ut(e) {
|
|
|
77
77
|
const o = e.toString().split(".")[1];
|
|
78
78
|
return o ? o.length : 0;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Xt(e, o, a) {
|
|
81
81
|
const s = Math.round((e - a) / o) * o + a;
|
|
82
|
-
return Number(s.toFixed(
|
|
82
|
+
return Number(s.toFixed(qt(o)));
|
|
83
83
|
}
|
|
84
84
|
function st({
|
|
85
85
|
values: e,
|
|
@@ -89,7 +89,7 @@ function st({
|
|
|
89
89
|
const s = e.slice();
|
|
90
90
|
return s[a] = o, s.sort(ut);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ne({
|
|
93
93
|
sliderRef: e,
|
|
94
94
|
activeIndex: o,
|
|
95
95
|
setActive: a
|
|
@@ -97,15 +97,15 @@ function $e({
|
|
|
97
97
|
var s, d;
|
|
98
98
|
const L = _e(e.current);
|
|
99
99
|
if (!((s = e.current) != null && s.contains(L.activeElement)) || Number(L == null || (d = L.activeElement) == null ? void 0 : d.getAttribute("data-index")) !== o) {
|
|
100
|
-
var
|
|
101
|
-
(
|
|
100
|
+
var $;
|
|
101
|
+
($ = e.current) == null || $.querySelector(`[type="range"][data-index="${o}"]`).focus();
|
|
102
102
|
}
|
|
103
103
|
a && a(o);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return typeof e == "number" && typeof o == "number" ? e === o : typeof e == "object" && typeof o == "object" ?
|
|
105
|
+
function $e(e, o) {
|
|
106
|
+
return typeof e == "number" && typeof o == "number" ? e === o : typeof e == "object" && typeof o == "object" ? Yt(e, o) : !1;
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const Kt = {
|
|
109
109
|
horizontal: {
|
|
110
110
|
offset: (e) => ({
|
|
111
111
|
left: `${e}%`
|
|
@@ -131,19 +131,19 @@ const Xt = {
|
|
|
131
131
|
})
|
|
132
132
|
}
|
|
133
133
|
}, Wt = (e) => e;
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
return
|
|
134
|
+
let Ee;
|
|
135
|
+
function We() {
|
|
136
|
+
return Ee === void 0 && (typeof CSS < "u" && typeof CSS.supports == "function" ? Ee = CSS.supports("touch-action", "none") : Ee = !0), Ee;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Gt(e) {
|
|
139
139
|
const {
|
|
140
140
|
"aria-labelledby": o,
|
|
141
141
|
defaultValue: a,
|
|
142
142
|
disabled: s = !1,
|
|
143
143
|
disableSwap: d = !1,
|
|
144
144
|
isRtl: L = !1,
|
|
145
|
-
marks:
|
|
146
|
-
max:
|
|
145
|
+
marks: $ = !1,
|
|
146
|
+
max: f = 100,
|
|
147
147
|
min: b = 0,
|
|
148
148
|
name: q,
|
|
149
149
|
onChange: ue,
|
|
@@ -154,7 +154,7 @@ function Kt(e) {
|
|
|
154
154
|
step: _ = 1,
|
|
155
155
|
tabIndex: ye,
|
|
156
156
|
value: ke
|
|
157
|
-
} = e, M = T.useRef(), [pe,
|
|
157
|
+
} = e, M = T.useRef(), [pe, F] = T.useState(-1), [xe, H] = T.useState(-1), [me, fe] = T.useState(!1), K = T.useRef(0), [V, Y] = Mt({
|
|
158
158
|
controlled: ke,
|
|
159
159
|
default: a ?? b,
|
|
160
160
|
name: "Slider"
|
|
@@ -167,40 +167,40 @@ function Kt(e) {
|
|
|
167
167
|
name: q
|
|
168
168
|
}
|
|
169
169
|
}), ue(y, n, l);
|
|
170
|
-
}),
|
|
171
|
-
let g =
|
|
172
|
-
g = g.map((r) => he(r, b,
|
|
173
|
-
const oe =
|
|
170
|
+
}), W = Array.isArray(V);
|
|
171
|
+
let g = W ? V.slice().sort(ut) : [V];
|
|
172
|
+
g = g.map((r) => he(r, b, f));
|
|
173
|
+
const oe = $ === !0 && _ !== null ? [...Array(Math.floor((f - b) / _) + 1)].map((r, n) => ({
|
|
174
174
|
value: b + _ * n
|
|
175
|
-
})) :
|
|
175
|
+
})) : $ || [], j = oe.map((r) => r.value), {
|
|
176
176
|
isFocusVisibleRef: Te,
|
|
177
|
-
onBlur:
|
|
177
|
+
onBlur: w,
|
|
178
178
|
onFocus: A,
|
|
179
|
-
ref:
|
|
180
|
-
} =
|
|
179
|
+
ref: je
|
|
180
|
+
} = zt(), [Le, re] = T.useState(-1), S = T.useRef(), Se = at(je, S), be = at(ge, Se), Pe = (r) => (n) => {
|
|
181
181
|
var l;
|
|
182
182
|
const i = Number(n.currentTarget.getAttribute("data-index"));
|
|
183
183
|
A(n), Te.current === !0 && re(i), H(i), r == null || (l = r.onFocus) == null || l.call(r, n);
|
|
184
|
-
},
|
|
184
|
+
}, we = (r) => (n) => {
|
|
185
185
|
var l;
|
|
186
|
-
|
|
186
|
+
w(n), Te.current === !1 && re(-1), H(-1), r == null || (l = r.onBlur) == null || l.call(r, n);
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
Dt(() => {
|
|
189
189
|
if (s && S.current.contains(document.activeElement)) {
|
|
190
190
|
var r;
|
|
191
191
|
(r = document.activeElement) == null || r.blur();
|
|
192
192
|
}
|
|
193
|
-
}, [s]), s && pe !== -1 &&
|
|
193
|
+
}, [s]), s && pe !== -1 && F(-1), s && Le !== -1 && re(-1);
|
|
194
194
|
const ae = (r) => (n) => {
|
|
195
195
|
var l;
|
|
196
196
|
(l = r.onChange) == null || l.call(r, n);
|
|
197
|
-
const i = Number(n.currentTarget.getAttribute("data-index")), y = g[i], P =
|
|
197
|
+
const i = Number(n.currentTarget.getAttribute("data-index")), y = g[i], P = j.indexOf(y);
|
|
198
198
|
let p = n.target.valueAsNumber;
|
|
199
|
-
if (oe && _ == null && (p = p < y ?
|
|
200
|
-
const O =
|
|
201
|
-
p = p < g[i] ?
|
|
199
|
+
if (oe && _ == null && (p = p < y ? j[P - 1] : j[P + 1]), p = he(p, b, f), oe && _ == null) {
|
|
200
|
+
const O = j.indexOf(g[i]);
|
|
201
|
+
p = p < g[i] ? j[O - 1] : j[O + 1];
|
|
202
202
|
}
|
|
203
|
-
if (
|
|
203
|
+
if (W) {
|
|
204
204
|
d && (p = he(p, g[i - 1] || -1 / 0, g[i + 1] || 1 / 0));
|
|
205
205
|
const O = p;
|
|
206
206
|
p = st({
|
|
@@ -209,12 +209,12 @@ function Kt(e) {
|
|
|
209
209
|
index: i
|
|
210
210
|
});
|
|
211
211
|
let u = i;
|
|
212
|
-
d || (u = p.indexOf(O)),
|
|
212
|
+
d || (u = p.indexOf(O)), Ne({
|
|
213
213
|
sliderRef: S,
|
|
214
214
|
activeIndex: u
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
Y(p), re(i), z &&
|
|
217
|
+
Y(p), re(i), z && !$e(p, V) && z(n, p, i), X && X(n, p);
|
|
218
218
|
}, G = T.useRef();
|
|
219
219
|
let ne = te;
|
|
220
220
|
L && te === "horizontal" && (ne += "-reverse");
|
|
@@ -233,15 +233,15 @@ function Kt(e) {
|
|
|
233
233
|
let O;
|
|
234
234
|
ne.indexOf("vertical") === 0 ? O = (P - r.y) / y : O = (r.x - p) / i, ne.indexOf("-reverse") !== -1 && (O = 1 - O);
|
|
235
235
|
let u;
|
|
236
|
-
if (u =
|
|
237
|
-
u =
|
|
236
|
+
if (u = Ut(O, b, f), _)
|
|
237
|
+
u = Xt(u, _, b);
|
|
238
238
|
else {
|
|
239
|
-
const ve = lt(
|
|
240
|
-
u =
|
|
239
|
+
const ve = lt(j, u);
|
|
240
|
+
u = j[ve];
|
|
241
241
|
}
|
|
242
|
-
u = he(u, b,
|
|
242
|
+
u = he(u, b, f);
|
|
243
243
|
let I = 0;
|
|
244
|
-
if (
|
|
244
|
+
if (W) {
|
|
245
245
|
n ? I = G.current : I = lt(g, u), d && (u = he(u, g[I - 1] || -1 / 0, g[I + 1] || 1 / 0));
|
|
246
246
|
const ve = u;
|
|
247
247
|
u = st({
|
|
@@ -254,12 +254,12 @@ function Kt(e) {
|
|
|
254
254
|
newValue: u,
|
|
255
255
|
activeIndex: I
|
|
256
256
|
};
|
|
257
|
-
}, J =
|
|
257
|
+
}, J = Ke((r) => {
|
|
258
258
|
const n = Ce(r, M);
|
|
259
259
|
if (!n)
|
|
260
260
|
return;
|
|
261
|
-
if (
|
|
262
|
-
|
|
261
|
+
if (K.current += 1, r.type === "mousemove" && r.buttons === 0) {
|
|
262
|
+
E(r);
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
265
|
const {
|
|
@@ -269,14 +269,14 @@ function Kt(e) {
|
|
|
269
269
|
finger: n,
|
|
270
270
|
move: !0
|
|
271
271
|
});
|
|
272
|
-
|
|
272
|
+
Ne({
|
|
273
273
|
sliderRef: S,
|
|
274
274
|
activeIndex: i,
|
|
275
|
-
setActive:
|
|
276
|
-
}), Y(l), !
|
|
277
|
-
}),
|
|
275
|
+
setActive: F
|
|
276
|
+
}), Y(l), !me && K.current > Bt && fe(!0), z && !$e(l, V) && z(r, l, i);
|
|
277
|
+
}), E = Ke((r) => {
|
|
278
278
|
const n = Ce(r, M);
|
|
279
|
-
if (
|
|
279
|
+
if (fe(!1), !n)
|
|
280
280
|
return;
|
|
281
281
|
const {
|
|
282
282
|
newValue: l
|
|
@@ -284,11 +284,11 @@ function Kt(e) {
|
|
|
284
284
|
finger: n,
|
|
285
285
|
move: !0
|
|
286
286
|
});
|
|
287
|
-
|
|
288
|
-
}), v =
|
|
287
|
+
F(-1), r.type === "touchend" && H(-1), X && X(r, l), M.current = void 0, m();
|
|
288
|
+
}), v = Ke((r) => {
|
|
289
289
|
if (s)
|
|
290
290
|
return;
|
|
291
|
-
|
|
291
|
+
We() || r.preventDefault();
|
|
292
292
|
const n = r.changedTouches[0];
|
|
293
293
|
n != null && (M.current = n.identifier);
|
|
294
294
|
const l = Ce(r, M);
|
|
@@ -299,33 +299,33 @@ function Kt(e) {
|
|
|
299
299
|
} = le({
|
|
300
300
|
finger: l
|
|
301
301
|
});
|
|
302
|
-
|
|
302
|
+
Ne({
|
|
303
303
|
sliderRef: S,
|
|
304
304
|
activeIndex: P,
|
|
305
|
-
setActive:
|
|
306
|
-
}), Y(y), z &&
|
|
305
|
+
setActive: F
|
|
306
|
+
}), Y(y), z && !$e(y, V) && z(r, y, P);
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
K.current = 0;
|
|
309
309
|
const i = _e(S.current);
|
|
310
|
-
i.addEventListener("touchmove", J), i.addEventListener("touchend",
|
|
311
|
-
}),
|
|
310
|
+
i.addEventListener("touchmove", J), i.addEventListener("touchend", E);
|
|
311
|
+
}), m = T.useCallback(() => {
|
|
312
312
|
const r = _e(S.current);
|
|
313
|
-
r.removeEventListener("mousemove", J), r.removeEventListener("mouseup",
|
|
314
|
-
}, [
|
|
313
|
+
r.removeEventListener("mousemove", J), r.removeEventListener("mouseup", E), r.removeEventListener("touchmove", J), r.removeEventListener("touchend", E);
|
|
314
|
+
}, [E, J]);
|
|
315
315
|
T.useEffect(() => {
|
|
316
316
|
const {
|
|
317
317
|
current: r
|
|
318
318
|
} = S;
|
|
319
319
|
return r.addEventListener("touchstart", v, {
|
|
320
|
-
passive:
|
|
320
|
+
passive: We()
|
|
321
321
|
}), () => {
|
|
322
322
|
r.removeEventListener("touchstart", v, {
|
|
323
|
-
passive:
|
|
324
|
-
}),
|
|
323
|
+
passive: We()
|
|
324
|
+
}), m();
|
|
325
325
|
};
|
|
326
|
-
}, [
|
|
327
|
-
s &&
|
|
328
|
-
}, [s,
|
|
326
|
+
}, [m, v]), T.useEffect(() => {
|
|
327
|
+
s && m();
|
|
328
|
+
}, [s, m]);
|
|
329
329
|
const se = (r) => (n) => {
|
|
330
330
|
var l;
|
|
331
331
|
if ((l = r.onMouseDown) == null || l.call(r, n), s || n.defaultPrevented || n.button !== 0)
|
|
@@ -339,16 +339,16 @@ function Kt(e) {
|
|
|
339
339
|
} = le({
|
|
340
340
|
finger: i
|
|
341
341
|
});
|
|
342
|
-
|
|
342
|
+
Ne({
|
|
343
343
|
sliderRef: S,
|
|
344
344
|
activeIndex: p,
|
|
345
|
-
setActive:
|
|
346
|
-
}), Y(P), z &&
|
|
345
|
+
setActive: F
|
|
346
|
+
}), Y(P), z && !$e(P, V) && z(n, P, p);
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
K.current = 0;
|
|
349
349
|
const y = _e(S.current);
|
|
350
|
-
y.addEventListener("mousemove", J), y.addEventListener("mouseup",
|
|
351
|
-
}, Q = Ve(
|
|
350
|
+
y.addEventListener("mousemove", J), y.addEventListener("mouseup", E);
|
|
351
|
+
}, Q = Ve(W ? g[0] : b, b, f), Z = Ve(g[g.length - 1], b, f) - Q, Ae = (r = {}) => {
|
|
352
352
|
const n = {
|
|
353
353
|
onMouseDown: se(r || {})
|
|
354
354
|
}, l = c({}, r, n);
|
|
@@ -367,21 +367,21 @@ function Kt(e) {
|
|
|
367
367
|
return {
|
|
368
368
|
active: pe,
|
|
369
369
|
axis: ne,
|
|
370
|
-
axisProps:
|
|
371
|
-
dragging:
|
|
370
|
+
axisProps: Kt,
|
|
371
|
+
dragging: me,
|
|
372
372
|
focusedThumbIndex: Le,
|
|
373
373
|
getHiddenInputProps: (r = {}) => {
|
|
374
374
|
var n;
|
|
375
375
|
const l = {
|
|
376
376
|
onChange: ae(r || {}),
|
|
377
377
|
onFocus: Pe(r || {}),
|
|
378
|
-
onBlur:
|
|
378
|
+
onBlur: we(r || {})
|
|
379
379
|
}, i = c({}, r, l);
|
|
380
380
|
return c({
|
|
381
381
|
tabIndex: ye,
|
|
382
382
|
"aria-labelledby": o,
|
|
383
383
|
"aria-orientation": te,
|
|
384
|
-
"aria-valuemax": de(
|
|
384
|
+
"aria-valuemax": de(f),
|
|
385
385
|
"aria-valuemin": de(b),
|
|
386
386
|
name: q,
|
|
387
387
|
type: "range",
|
|
@@ -390,7 +390,7 @@ function Kt(e) {
|
|
|
390
390
|
step: (n = e.step) != null ? n : void 0,
|
|
391
391
|
disabled: s
|
|
392
392
|
}, i, {
|
|
393
|
-
style: c({},
|
|
393
|
+
style: c({}, Ht, {
|
|
394
394
|
direction: L ? "rtl" : "ltr",
|
|
395
395
|
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
396
396
|
width: "100%",
|
|
@@ -408,25 +408,25 @@ function Kt(e) {
|
|
|
408
408
|
},
|
|
409
409
|
marks: oe,
|
|
410
410
|
open: xe,
|
|
411
|
-
range:
|
|
411
|
+
range: W,
|
|
412
412
|
rootRef: be,
|
|
413
413
|
trackLeap: Z,
|
|
414
414
|
trackOffset: Q,
|
|
415
415
|
values: g
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
const
|
|
419
|
-
function
|
|
418
|
+
const Jt = (e) => !e || !Re(e), Qt = Jt;
|
|
419
|
+
function Zt(e) {
|
|
420
420
|
return Rt("MuiSlider", e);
|
|
421
421
|
}
|
|
422
|
-
const
|
|
422
|
+
const eo = jt("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "thumbColorPrimary", "thumbColorSecondary", "track", "trackInverted", "trackFalse", "thumbSizeSmall", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]), R = eo, to = (e) => {
|
|
423
423
|
const {
|
|
424
424
|
open: o
|
|
425
425
|
} = e;
|
|
426
426
|
return {
|
|
427
|
-
offset: ce(o &&
|
|
428
|
-
circle:
|
|
429
|
-
label:
|
|
427
|
+
offset: ce(o && R.valueLabelOpen),
|
|
428
|
+
circle: R.valueLabelCircle,
|
|
429
|
+
label: R.valueLabelLabel
|
|
430
430
|
};
|
|
431
431
|
};
|
|
432
432
|
function dt(e) {
|
|
@@ -434,16 +434,16 @@ function dt(e) {
|
|
|
434
434
|
children: o,
|
|
435
435
|
className: a,
|
|
436
436
|
value: s
|
|
437
|
-
} = e, d =
|
|
437
|
+
} = e, d = to(e);
|
|
438
438
|
return o ? /* @__PURE__ */ T.cloneElement(o, {
|
|
439
439
|
className: ce(o.props.className)
|
|
440
|
-
}, /* @__PURE__ */
|
|
441
|
-
children: [o.props.children, /* @__PURE__ */
|
|
440
|
+
}, /* @__PURE__ */ N.jsxs(T.Fragment, {
|
|
441
|
+
children: [o.props.children, /* @__PURE__ */ N.jsx("span", {
|
|
442
442
|
className: ce(d.offset, a),
|
|
443
443
|
"aria-hidden": !0,
|
|
444
|
-
children: /* @__PURE__ */
|
|
444
|
+
children: /* @__PURE__ */ N.jsx("span", {
|
|
445
445
|
className: d.circle,
|
|
446
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ N.jsx("span", {
|
|
447
447
|
className: d.label,
|
|
448
448
|
children: s
|
|
449
449
|
})
|
|
@@ -456,7 +456,7 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
|
456
456
|
className: t.string,
|
|
457
457
|
value: t.node
|
|
458
458
|
});
|
|
459
|
-
const
|
|
459
|
+
const oo = ["aria-label", "aria-valuetext", "aria-labelledby", "component", "components", "componentsProps", "color", "classes", "className", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "orientation", "size", "step", "scale", "slotProps", "slots", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat"];
|
|
460
460
|
function it(e) {
|
|
461
461
|
return e;
|
|
462
462
|
}
|
|
@@ -511,13 +511,13 @@ const pt = ee("span", {
|
|
|
511
511
|
"@media print": {
|
|
512
512
|
colorAdjust: "exact"
|
|
513
513
|
},
|
|
514
|
-
[`&.${
|
|
514
|
+
[`&.${R.disabled}`]: {
|
|
515
515
|
pointerEvents: "none",
|
|
516
516
|
cursor: "default",
|
|
517
517
|
color: (e.vars || e).palette.grey[400]
|
|
518
518
|
},
|
|
519
|
-
[`&.${
|
|
520
|
-
[`& .${
|
|
519
|
+
[`&.${R.dragging}`]: {
|
|
520
|
+
[`& .${R.thumb}, & .${R.track}`]: {
|
|
521
521
|
transition: "none"
|
|
522
522
|
}
|
|
523
523
|
}
|
|
@@ -532,7 +532,7 @@ process.env.NODE_ENV !== "production" && (pt.propTypes = {
|
|
|
532
532
|
*/
|
|
533
533
|
children: t.node
|
|
534
534
|
});
|
|
535
|
-
const
|
|
535
|
+
const mt = ee("span", {
|
|
536
536
|
name: "MuiSlider",
|
|
537
537
|
slot: "Rail",
|
|
538
538
|
overridesResolver: (e, o) => o.rail
|
|
@@ -557,7 +557,7 @@ const ft = ee("span", {
|
|
|
557
557
|
}, e.track === "inverted" && {
|
|
558
558
|
opacity: 1
|
|
559
559
|
}));
|
|
560
|
-
process.env.NODE_ENV !== "production" && (
|
|
560
|
+
process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
561
561
|
// ----------------------------- Warning --------------------------------
|
|
562
562
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
563
563
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -567,7 +567,7 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
|
567
567
|
*/
|
|
568
568
|
children: t.node
|
|
569
569
|
});
|
|
570
|
-
const
|
|
570
|
+
const ft = ee("span", {
|
|
571
571
|
name: "MuiSlider",
|
|
572
572
|
slot: "Track",
|
|
573
573
|
overridesResolver: (e, o) => o.track
|
|
@@ -577,7 +577,7 @@ const mt = ee("span", {
|
|
|
577
577
|
}) => {
|
|
578
578
|
const a = (
|
|
579
579
|
// Same logic as the LinearProgress track color
|
|
580
|
-
e.palette.mode === "light" ?
|
|
580
|
+
e.palette.mode === "light" ? _t(e.palette[o.color].main, 0.62) : Vt(e.palette[o.color].main, 0.5)
|
|
581
581
|
);
|
|
582
582
|
return c({
|
|
583
583
|
display: "block",
|
|
@@ -605,7 +605,7 @@ const mt = ee("span", {
|
|
|
605
605
|
borderColor: e.vars ? e.vars.palette.Slider[`${o.color}Track`] : a
|
|
606
606
|
});
|
|
607
607
|
});
|
|
608
|
-
process.env.NODE_ENV !== "production" && (
|
|
608
|
+
process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
609
609
|
// ----------------------------- Warning --------------------------------
|
|
610
610
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
611
611
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -672,16 +672,16 @@ const bt = ee("span", {
|
|
|
672
672
|
left: "50%",
|
|
673
673
|
transform: "translate(-50%, -50%)"
|
|
674
674
|
},
|
|
675
|
-
[`&:hover, &.${
|
|
675
|
+
[`&:hover, &.${R.focusVisible}`]: {
|
|
676
676
|
boxShadow: `0px 0px 0px 8px ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.16)` : rt(e.palette[o.color].main, 0.16)}`,
|
|
677
677
|
"@media (hover: none)": {
|
|
678
678
|
boxShadow: "none"
|
|
679
679
|
}
|
|
680
680
|
},
|
|
681
|
-
[`&.${
|
|
681
|
+
[`&.${R.active}`]: {
|
|
682
682
|
boxShadow: `0px 0px 0px 14px ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.16)` : rt(e.palette[o.color].main, 0.16)}`
|
|
683
683
|
},
|
|
684
|
-
[`&.${
|
|
684
|
+
[`&.${R.disabled}`]: {
|
|
685
685
|
"&:hover": {
|
|
686
686
|
boxShadow: "none"
|
|
687
687
|
}
|
|
@@ -705,7 +705,7 @@ const vt = ee(dt, {
|
|
|
705
705
|
theme: e,
|
|
706
706
|
ownerState: o
|
|
707
707
|
}) => c({
|
|
708
|
-
[`&.${
|
|
708
|
+
[`&.${R.valueLabelOpen}`]: {
|
|
709
709
|
transform: `${o.orientation === "vertical" ? "translateY(-50%)" : "translateY(-100%)"} scale(1)`
|
|
710
710
|
},
|
|
711
711
|
zIndex: 1,
|
|
@@ -843,18 +843,18 @@ process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
|
843
843
|
*/
|
|
844
844
|
children: t.node
|
|
845
845
|
});
|
|
846
|
-
const
|
|
846
|
+
const ro = (e) => {
|
|
847
847
|
const {
|
|
848
848
|
disabled: o,
|
|
849
849
|
dragging: a,
|
|
850
850
|
marked: s,
|
|
851
851
|
orientation: d,
|
|
852
852
|
track: L,
|
|
853
|
-
classes:
|
|
854
|
-
color:
|
|
853
|
+
classes: $,
|
|
854
|
+
color: f,
|
|
855
855
|
size: b
|
|
856
856
|
} = e, q = {
|
|
857
|
-
root: ["root", o && "disabled", a && "dragging", s && "marked", d === "vertical" && "vertical", L === "inverted" && "trackInverted", L === !1 && "trackFalse",
|
|
857
|
+
root: ["root", o && "disabled", a && "dragging", s && "marked", d === "vertical" && "vertical", L === "inverted" && "trackInverted", L === !1 && "trackFalse", f && `color${U(f)}`, b && `size${U(b)}`],
|
|
858
858
|
rail: ["rail"],
|
|
859
859
|
track: ["track"],
|
|
860
860
|
mark: ["mark"],
|
|
@@ -862,59 +862,59 @@ const oo = (e) => {
|
|
|
862
862
|
markLabel: ["markLabel"],
|
|
863
863
|
markLabelActive: ["markLabelActive"],
|
|
864
864
|
valueLabel: ["valueLabel"],
|
|
865
|
-
thumb: ["thumb", o && "disabled", b && `thumbSize${U(b)}`,
|
|
865
|
+
thumb: ["thumb", o && "disabled", b && `thumbSize${U(b)}`, f && `thumbColor${U(f)}`],
|
|
866
866
|
active: ["active"],
|
|
867
867
|
disabled: ["disabled"],
|
|
868
868
|
focusVisible: ["focusVisible"]
|
|
869
869
|
};
|
|
870
|
-
return
|
|
871
|
-
},
|
|
870
|
+
return At(q, Zt, $);
|
|
871
|
+
}, ao = ({
|
|
872
872
|
children: e
|
|
873
873
|
}) => e, yt = /* @__PURE__ */ T.forwardRef(function(o, a) {
|
|
874
|
-
var s, d, L,
|
|
874
|
+
var s, d, L, $, f, b, q, ue, X, te, ge, de, _, ye, ke, M, pe, F, xe, H, me, fe, K, V;
|
|
875
875
|
const Y = wt({
|
|
876
876
|
props: o,
|
|
877
877
|
name: "MuiSlider"
|
|
878
|
-
}),
|
|
878
|
+
}), W = It().direction === "rtl", {
|
|
879
879
|
"aria-label": g,
|
|
880
880
|
"aria-valuetext": oe,
|
|
881
|
-
"aria-labelledby":
|
|
881
|
+
"aria-labelledby": j,
|
|
882
882
|
// eslint-disable-next-line react/prop-types
|
|
883
883
|
component: Te = "span",
|
|
884
|
-
components:
|
|
884
|
+
components: w = {},
|
|
885
885
|
componentsProps: A = {},
|
|
886
|
-
color:
|
|
886
|
+
color: je = "primary",
|
|
887
887
|
classes: Le,
|
|
888
888
|
className: re,
|
|
889
889
|
disableSwap: S = !1,
|
|
890
890
|
disabled: Se = !1,
|
|
891
891
|
getAriaLabel: be,
|
|
892
892
|
getAriaValueText: Pe,
|
|
893
|
-
marks:
|
|
893
|
+
marks: we = !1,
|
|
894
894
|
max: ae = 100,
|
|
895
895
|
min: G = 0,
|
|
896
896
|
orientation: ne = "horizontal",
|
|
897
897
|
size: le = "medium",
|
|
898
898
|
step: J = 1,
|
|
899
|
-
scale:
|
|
899
|
+
scale: E = it,
|
|
900
900
|
slotProps: v,
|
|
901
|
-
slots:
|
|
901
|
+
slots: m,
|
|
902
902
|
track: se = "normal",
|
|
903
903
|
valueLabelDisplay: Q = "off",
|
|
904
904
|
valueLabelFormat: Z = it
|
|
905
|
-
} = Y, Ae =
|
|
906
|
-
isRtl:
|
|
905
|
+
} = Y, Ae = Et(Y, oo), x = c({}, Y, {
|
|
906
|
+
isRtl: W,
|
|
907
907
|
max: ae,
|
|
908
908
|
min: G,
|
|
909
909
|
classes: Le,
|
|
910
910
|
disabled: Se,
|
|
911
911
|
disableSwap: S,
|
|
912
912
|
orientation: ne,
|
|
913
|
-
marks:
|
|
914
|
-
color:
|
|
913
|
+
marks: we,
|
|
914
|
+
color: je,
|
|
915
915
|
size: le,
|
|
916
916
|
step: J,
|
|
917
|
-
scale:
|
|
917
|
+
scale: E,
|
|
918
918
|
track: se,
|
|
919
919
|
valueLabelDisplay: Q,
|
|
920
920
|
valueLabelFormat: Z
|
|
@@ -933,110 +933,110 @@ const oo = (e) => {
|
|
|
933
933
|
values: u,
|
|
934
934
|
trackOffset: I,
|
|
935
935
|
trackLeap: ve
|
|
936
|
-
} =
|
|
936
|
+
} = Gt(c({}, x, {
|
|
937
937
|
rootRef: a
|
|
938
938
|
}));
|
|
939
939
|
x.marked = O.length > 0 && O.some((h) => h.label), x.dragging = p, x.focusedThumbIndex = y;
|
|
940
|
-
const
|
|
940
|
+
const C = ro(x), Ie = (s = (d = m == null ? void 0 : m.root) != null ? d : w.Root) != null ? s : pt, Qe = (L = ($ = m == null ? void 0 : m.rail) != null ? $ : w.Rail) != null ? L : mt, Ze = (f = (b = m == null ? void 0 : m.track) != null ? b : w.Track) != null ? f : ft, et = (q = (ue = m == null ? void 0 : m.thumb) != null ? ue : w.Thumb) != null ? q : bt, tt = (X = (te = m == null ? void 0 : m.valueLabel) != null ? te : w.ValueLabel) != null ? X : vt, Me = (ge = (de = m == null ? void 0 : m.mark) != null ? de : w.Mark) != null ? ge : ht, ze = (_ = (ye = m == null ? void 0 : m.markLabel) != null ? ye : w.MarkLabel) != null ? _ : gt, ot = (ke = (M = m == null ? void 0 : m.input) != null ? M : w.Input) != null ? ke : "input", De = (pe = v == null ? void 0 : v.root) != null ? pe : A.root, kt = (F = v == null ? void 0 : v.rail) != null ? F : A.rail, Fe = (xe = v == null ? void 0 : v.track) != null ? xe : A.track, He = (H = v == null ? void 0 : v.thumb) != null ? H : A.thumb, Ye = (me = v == null ? void 0 : v.valueLabel) != null ? me : A.valueLabel, xt = (fe = v == null ? void 0 : v.mark) != null ? fe : A.mark, Tt = (K = v == null ? void 0 : v.markLabel) != null ? K : A.markLabel, Lt = (V = v == null ? void 0 : v.input) != null ? V : A.input, St = B({
|
|
941
941
|
elementType: Ie,
|
|
942
942
|
getSlotProps: Ge,
|
|
943
|
-
externalSlotProps:
|
|
943
|
+
externalSlotProps: De,
|
|
944
944
|
externalForwardedProps: Ae,
|
|
945
|
-
additionalProps: c({},
|
|
945
|
+
additionalProps: c({}, Qt(Ie) && {
|
|
946
946
|
as: Te
|
|
947
947
|
}),
|
|
948
|
-
ownerState: c({}, x,
|
|
949
|
-
className: [
|
|
948
|
+
ownerState: c({}, x, De == null ? void 0 : De.ownerState),
|
|
949
|
+
className: [C.root, re]
|
|
950
950
|
}), Pt = B({
|
|
951
951
|
elementType: Qe,
|
|
952
952
|
externalSlotProps: kt,
|
|
953
953
|
ownerState: x,
|
|
954
|
-
className:
|
|
954
|
+
className: C.rail
|
|
955
955
|
}), Ot = B({
|
|
956
956
|
elementType: Ze,
|
|
957
|
-
externalSlotProps:
|
|
957
|
+
externalSlotProps: Fe,
|
|
958
958
|
additionalProps: {
|
|
959
959
|
style: c({}, ie[i].offset(I), ie[i].leap(ve))
|
|
960
960
|
},
|
|
961
|
-
ownerState: c({}, x,
|
|
962
|
-
className:
|
|
961
|
+
ownerState: c({}, x, Fe == null ? void 0 : Fe.ownerState),
|
|
962
|
+
className: C.track
|
|
963
963
|
}), Be = B({
|
|
964
964
|
elementType: et,
|
|
965
965
|
getSlotProps: r,
|
|
966
966
|
externalSlotProps: He,
|
|
967
967
|
ownerState: c({}, x, He == null ? void 0 : He.ownerState),
|
|
968
|
-
className:
|
|
968
|
+
className: C.thumb
|
|
969
969
|
}), Ct = B({
|
|
970
970
|
elementType: tt,
|
|
971
971
|
externalSlotProps: Ye,
|
|
972
972
|
ownerState: c({}, x, Ye == null ? void 0 : Ye.ownerState),
|
|
973
|
-
className:
|
|
973
|
+
className: C.valueLabel
|
|
974
974
|
}), Ue = B({
|
|
975
975
|
elementType: Me,
|
|
976
976
|
externalSlotProps: xt,
|
|
977
977
|
ownerState: x,
|
|
978
|
-
className:
|
|
978
|
+
className: C.mark
|
|
979
979
|
}), qe = B({
|
|
980
980
|
elementType: ze,
|
|
981
981
|
externalSlotProps: Tt,
|
|
982
982
|
ownerState: x,
|
|
983
|
-
className:
|
|
984
|
-
}),
|
|
983
|
+
className: C.markLabel
|
|
984
|
+
}), Nt = B({
|
|
985
985
|
elementType: ot,
|
|
986
986
|
getSlotProps: Je,
|
|
987
987
|
externalSlotProps: Lt,
|
|
988
988
|
ownerState: x
|
|
989
989
|
});
|
|
990
|
-
return /* @__PURE__ */
|
|
991
|
-
children: [/* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ N.jsxs(Ie, c({}, St, {
|
|
991
|
+
children: [/* @__PURE__ */ N.jsx(Qe, c({}, Pt)), /* @__PURE__ */ N.jsx(Ze, c({}, Ot)), O.filter((h) => h.value >= G && h.value <= ae).map((h, k) => {
|
|
992
992
|
const Xe = Ve(h.value, G, ae), Oe = ie[i].offset(Xe);
|
|
993
|
-
let
|
|
994
|
-
return se === !1 ?
|
|
995
|
-
children: [/* @__PURE__ */
|
|
993
|
+
let D;
|
|
994
|
+
return se === !1 ? D = u.indexOf(h.value) !== -1 : D = se === "normal" && (P ? h.value >= u[0] && h.value <= u[u.length - 1] : h.value <= u[0]) || se === "inverted" && (P ? h.value <= u[0] || h.value >= u[u.length - 1] : h.value >= u[0]), /* @__PURE__ */ N.jsxs(T.Fragment, {
|
|
995
|
+
children: [/* @__PURE__ */ N.jsx(Me, c({
|
|
996
996
|
"data-index": k
|
|
997
|
-
}, Ue, !
|
|
998
|
-
markActive:
|
|
997
|
+
}, Ue, !Re(Me) && {
|
|
998
|
+
markActive: D
|
|
999
999
|
}, {
|
|
1000
1000
|
style: c({}, Oe, Ue.style),
|
|
1001
|
-
className: ce(Ue.className,
|
|
1002
|
-
})), h.label != null ? /* @__PURE__ */
|
|
1001
|
+
className: ce(Ue.className, D && C.markActive)
|
|
1002
|
+
})), h.label != null ? /* @__PURE__ */ N.jsx(ze, c({
|
|
1003
1003
|
"aria-hidden": !0,
|
|
1004
1004
|
"data-index": k
|
|
1005
|
-
}, qe, !
|
|
1006
|
-
markLabelActive:
|
|
1005
|
+
}, qe, !Re(ze) && {
|
|
1006
|
+
markLabelActive: D
|
|
1007
1007
|
}, {
|
|
1008
1008
|
style: c({}, Oe, qe.style),
|
|
1009
|
-
className: ce(
|
|
1009
|
+
className: ce(C.markLabel, qe.className, D && C.markLabelActive),
|
|
1010
1010
|
children: h.label
|
|
1011
1011
|
})) : null]
|
|
1012
1012
|
}, k);
|
|
1013
1013
|
}), u.map((h, k) => {
|
|
1014
|
-
const Xe = Ve(h, G, ae), Oe = ie[i].offset(Xe),
|
|
1014
|
+
const Xe = Ve(h, G, ae), Oe = ie[i].offset(Xe), D = Q === "off" ? ao : tt;
|
|
1015
1015
|
return (
|
|
1016
1016
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
1017
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ N.jsx(D, c({}, !Re(D) && {
|
|
1018
1018
|
valueLabelFormat: Z,
|
|
1019
1019
|
valueLabelDisplay: Q,
|
|
1020
|
-
value: typeof Z == "function" ? Z(
|
|
1020
|
+
value: typeof Z == "function" ? Z(E(h), k) : Z,
|
|
1021
1021
|
index: k,
|
|
1022
1022
|
open: n === k || l === k || Q === "on",
|
|
1023
1023
|
disabled: Se
|
|
1024
1024
|
}, Ct, {
|
|
1025
|
-
children: /* @__PURE__ */
|
|
1025
|
+
children: /* @__PURE__ */ N.jsx(et, c({
|
|
1026
1026
|
"data-index": k
|
|
1027
1027
|
}, Be, {
|
|
1028
|
-
className: ce(
|
|
1028
|
+
className: ce(C.thumb, Be.className, l === k && C.active, y === k && C.focusVisible),
|
|
1029
1029
|
style: c({}, Oe, {
|
|
1030
1030
|
pointerEvents: S && l !== k ? "none" : void 0
|
|
1031
1031
|
}, Be.style),
|
|
1032
|
-
children: /* @__PURE__ */
|
|
1032
|
+
children: /* @__PURE__ */ N.jsx(ot, c({
|
|
1033
1033
|
"data-index": k,
|
|
1034
1034
|
"aria-label": be ? be(k) : g,
|
|
1035
|
-
"aria-valuenow":
|
|
1036
|
-
"aria-labelledby":
|
|
1037
|
-
"aria-valuetext": Pe ? Pe(
|
|
1035
|
+
"aria-valuenow": E(h),
|
|
1036
|
+
"aria-labelledby": j,
|
|
1037
|
+
"aria-valuetext": Pe ? Pe(E(h), k) : oe,
|
|
1038
1038
|
value: u[k]
|
|
1039
|
-
},
|
|
1039
|
+
}, Nt))
|
|
1040
1040
|
}))
|
|
1041
1041
|
}), k)
|
|
1042
1042
|
);
|
|
@@ -1305,15 +1305,23 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
1305
1305
|
*/
|
|
1306
1306
|
valueLabelFormat: t.oneOfType([t.func, t.string])
|
|
1307
1307
|
});
|
|
1308
|
-
const
|
|
1309
|
-
const
|
|
1310
|
-
|
|
1308
|
+
const no = yt;
|
|
1309
|
+
const yo = ({ ...e }) => /* @__PURE__ */ $t.jsxDEV(
|
|
1310
|
+
no,
|
|
1311
1311
|
{
|
|
1312
1312
|
className: "kdpa-slider",
|
|
1313
1313
|
"aria-labelledby": "discrete-slider",
|
|
1314
1314
|
...e
|
|
1315
|
-
}
|
|
1315
|
+
},
|
|
1316
|
+
void 0,
|
|
1317
|
+
!1,
|
|
1318
|
+
{
|
|
1319
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Slider/KdpaSlider.tsx",
|
|
1320
|
+
lineNumber: 8,
|
|
1321
|
+
columnNumber: 5
|
|
1322
|
+
},
|
|
1323
|
+
globalThis
|
|
1316
1324
|
);
|
|
1317
1325
|
export {
|
|
1318
|
-
|
|
1326
|
+
yo as K
|
|
1319
1327
|
};
|