@konstructio/ui 0.1.0-alpha.3 → 0.1.0-alpha.5
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-b348x__d.js → Combination-Cvr3uETz.js} +102 -102
- package/dist/{Modal-B2ujmsSW.js → Modal-DXYBiafI.js} +3 -3
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +3 -3
- package/dist/components/Dropdown/components/List/List.js +48 -15
- package/dist/components/Dropdown/components/List/List.variants.js +6 -4
- package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -17
- package/dist/components/Dropdown/components/Wrapper.js +78 -70
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Toast/Toast.js +6 -6
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +1 -1
- package/dist/{createLucideIcon-BA2PlKw1.js → createLucideIcon-vyksFS6P.js} +4 -4
- package/dist/{index-BRcC_VTj.js → index--EmNlyHx.js} +1 -1
- package/dist/{index-Ud3-A7-K.js → index-1RDo-S_f.js} +5 -5
- package/dist/index-B5MIi2tR.js +83 -0
- package/dist/{index-ObZsP5Eh.js → index-BCGvACM9.js} +1 -1
- package/dist/{index-xPmNHv1y.js → index-BuxebbOg.js} +2 -2
- package/dist/{index-55GVbfLI.js → index-BvCZBMfr.js} +3 -3
- package/dist/{index-C2xwUZXm.js → index-CvfCCTEO.js} +4 -4
- package/dist/{index-DmCJ8fIR.js → index-Cz09twLl.js} +3 -3
- package/dist/{index-CQ6ORxI_.js → index-DNRcvRTB.js} +2 -2
- package/dist/{index-Y44iCJcQ.js → index-Dm-ooN_M.js} +1 -1
- package/dist/{index-B-qIIQlg.js → index-rUBNhTeF.js} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/package.json +28 -28
- package/dist/styles.css +1 -1
- package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/package.json +28 -28
- package/dist/index-tIydFizp.js +0 -83
- package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import { useState as ee } from "react";
|
|
3
|
-
var
|
|
4
|
-
return
|
|
3
|
+
var b = function() {
|
|
4
|
+
return b = Object.assign || function(t) {
|
|
5
5
|
for (var n, r = 1, a = arguments.length; r < a; r++) {
|
|
6
6
|
n = arguments[r];
|
|
7
|
-
for (var
|
|
7
|
+
for (var c in n) Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
|
|
8
8
|
}
|
|
9
9
|
return t;
|
|
10
|
-
},
|
|
10
|
+
}, b.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
function Z(e, t) {
|
|
13
13
|
var n = {};
|
|
@@ -18,11 +18,11 @@ function Z(e, t) {
|
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
20
20
|
function te(e, t, n) {
|
|
21
|
-
if (n || arguments.length === 2) for (var r = 0, a = t.length,
|
|
22
|
-
(
|
|
23
|
-
return e.concat(
|
|
21
|
+
if (n || arguments.length === 2) for (var r = 0, a = t.length, c; r < a; r++)
|
|
22
|
+
(c || !(r in t)) && (c || (c = Array.prototype.slice.call(t, 0, r)), c[r] = t[r]);
|
|
23
|
+
return e.concat(c || Array.prototype.slice.call(t));
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var x = "right-scroll-bar-position", O = "width-before-scroll-bar", re = "with-scroll-bars-hidden", ne = "--removed-body-scroll-bar-size";
|
|
26
26
|
function I(e, t) {
|
|
27
27
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
28
28
|
}
|
|
@@ -57,11 +57,11 @@ function ce(e, t) {
|
|
|
57
57
|
return oe(function() {
|
|
58
58
|
var r = D.get(n);
|
|
59
59
|
if (r) {
|
|
60
|
-
var a = new Set(r),
|
|
61
|
-
a.forEach(function(
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
a.has(
|
|
60
|
+
var a = new Set(r), c = new Set(e), u = n.current;
|
|
61
|
+
a.forEach(function(i) {
|
|
62
|
+
c.has(i) || I(i, null);
|
|
63
|
+
}), c.forEach(function(i) {
|
|
64
|
+
a.has(i) || I(i, u);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
D.set(n, e);
|
|
@@ -78,38 +78,38 @@ function Q(e, t) {
|
|
|
78
78
|
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
79
79
|
return n.length ? n[n.length - 1] : e;
|
|
80
80
|
},
|
|
81
|
-
useMedium: function(
|
|
82
|
-
var u = t(
|
|
81
|
+
useMedium: function(c) {
|
|
82
|
+
var u = t(c, r);
|
|
83
83
|
return n.push(u), function() {
|
|
84
|
-
n = n.filter(function(
|
|
85
|
-
return
|
|
84
|
+
n = n.filter(function(i) {
|
|
85
|
+
return i !== u;
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
},
|
|
89
|
-
assignSyncMedium: function(
|
|
89
|
+
assignSyncMedium: function(c) {
|
|
90
90
|
for (r = !0; n.length; ) {
|
|
91
91
|
var u = n;
|
|
92
|
-
n = [], u.forEach(
|
|
92
|
+
n = [], u.forEach(c);
|
|
93
93
|
}
|
|
94
94
|
n = {
|
|
95
|
-
push: function(
|
|
96
|
-
return i
|
|
95
|
+
push: function(i) {
|
|
96
|
+
return c(i);
|
|
97
97
|
},
|
|
98
98
|
filter: function() {
|
|
99
99
|
return n;
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
},
|
|
103
|
-
assignMedium: function(
|
|
103
|
+
assignMedium: function(c) {
|
|
104
104
|
r = !0;
|
|
105
105
|
var u = [];
|
|
106
106
|
if (n.length) {
|
|
107
|
-
var
|
|
108
|
-
n = [],
|
|
107
|
+
var i = n;
|
|
108
|
+
n = [], i.forEach(c), u = n;
|
|
109
109
|
}
|
|
110
110
|
var h = function() {
|
|
111
111
|
var d = u;
|
|
112
|
-
u = [], d.forEach(
|
|
112
|
+
u = [], d.forEach(c);
|
|
113
113
|
}, m = function() {
|
|
114
114
|
return Promise.resolve().then(h);
|
|
115
115
|
};
|
|
@@ -131,7 +131,7 @@ function Xe(e, t) {
|
|
|
131
131
|
function ie(e) {
|
|
132
132
|
e === void 0 && (e = {});
|
|
133
133
|
var t = Q(null);
|
|
134
|
-
return t.options =
|
|
134
|
+
return t.options = b({ async: !0, ssr: !1 }, e), t;
|
|
135
135
|
}
|
|
136
136
|
var G = function(e) {
|
|
137
137
|
var t = e.sideCar, n = Z(e, ["sideCar"]);
|
|
@@ -140,7 +140,7 @@ var G = function(e) {
|
|
|
140
140
|
var r = t.read();
|
|
141
141
|
if (!r)
|
|
142
142
|
throw new Error("Sidecar medium not found");
|
|
143
|
-
return l.createElement(r,
|
|
143
|
+
return l.createElement(r, b({}, n));
|
|
144
144
|
};
|
|
145
145
|
G.isSideCarExport = !0;
|
|
146
146
|
function le(e, t) {
|
|
@@ -152,12 +152,12 @@ var K = ie(), W = function() {
|
|
|
152
152
|
onScrollCapture: W,
|
|
153
153
|
onWheelCapture: W,
|
|
154
154
|
onTouchMoveCapture: W
|
|
155
|
-
}), a = r[0],
|
|
155
|
+
}), a = r[0], c = r[1], u = e.forwardProps, i = e.children, h = e.className, m = e.removeScrollBar, d = e.enabled, p = e.shards, R = e.sideCar, C = e.noRelative, E = e.noIsolation, o = e.inert, f = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, g = e.gapMode, S = Z(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), s = R, k = ce([n, t]), w = b(b({}, S), a);
|
|
156
156
|
return l.createElement(
|
|
157
157
|
l.Fragment,
|
|
158
158
|
null,
|
|
159
|
-
d && l.createElement(
|
|
160
|
-
u ? l.cloneElement(l.Children.only(
|
|
159
|
+
d && l.createElement(s, { sideCar: K, removeScrollBar: m, shards: p, noRelative: C, noIsolation: E, inert: o, setCallbacks: c, allowPinchZoom: !!f, lockRef: n, gapMode: g }),
|
|
160
|
+
u ? l.cloneElement(l.Children.only(i), b(b({}, w), { ref: k })) : l.createElement(y, b({}, w, { className: h, ref: k }), i)
|
|
161
161
|
);
|
|
162
162
|
});
|
|
163
163
|
A.defaultProps = {
|
|
@@ -167,7 +167,7 @@ A.defaultProps = {
|
|
|
167
167
|
};
|
|
168
168
|
A.classNames = {
|
|
169
169
|
fullWidth: O,
|
|
170
|
-
zeroRight:
|
|
170
|
+
zeroRight: x
|
|
171
171
|
};
|
|
172
172
|
var ue = function() {
|
|
173
173
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -233,39 +233,39 @@ var ve = function() {
|
|
|
233
233
|
right: t[2],
|
|
234
234
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
235
235
|
};
|
|
236
|
-
},
|
|
237
|
-
var a = e.left,
|
|
236
|
+
}, be = U(), L = "data-scroll-locked", Se = function(e, t, n, r) {
|
|
237
|
+
var a = e.left, c = e.top, u = e.right, i = e.gap;
|
|
238
238
|
return n === void 0 && (n = "margin"), `
|
|
239
239
|
.`.concat(re, ` {
|
|
240
240
|
overflow: hidden `).concat(r, `;
|
|
241
|
-
padding-right: `).concat(
|
|
241
|
+
padding-right: `).concat(i, "px ").concat(r, `;
|
|
242
242
|
}
|
|
243
|
-
body[`).concat(
|
|
243
|
+
body[`).concat(L, `] {
|
|
244
244
|
overflow: hidden `).concat(r, `;
|
|
245
245
|
overscroll-behavior: contain;
|
|
246
246
|
`).concat([
|
|
247
247
|
t && "position: relative ".concat(r, ";"),
|
|
248
248
|
n === "margin" && `
|
|
249
249
|
padding-left: `.concat(a, `px;
|
|
250
|
-
padding-top: `).concat(
|
|
250
|
+
padding-top: `).concat(c, `px;
|
|
251
251
|
padding-right: `).concat(u, `px;
|
|
252
252
|
margin-left:0;
|
|
253
253
|
margin-top:0;
|
|
254
|
-
margin-right: `).concat(
|
|
254
|
+
margin-right: `).concat(i, "px ").concat(r, `;
|
|
255
255
|
`),
|
|
256
|
-
n === "padding" && "padding-right: ".concat(
|
|
256
|
+
n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
|
|
257
257
|
].filter(Boolean).join(""), `
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
.`).concat(
|
|
261
|
-
right: `).concat(
|
|
260
|
+
.`).concat(x, ` {
|
|
261
|
+
right: `).concat(i, "px ").concat(r, `;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.`).concat(O, ` {
|
|
265
|
-
margin-right: `).concat(
|
|
265
|
+
margin-right: `).concat(i, "px ").concat(r, `;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
.`).concat(
|
|
268
|
+
.`).concat(x, " .").concat(x, ` {
|
|
269
269
|
right: 0 `).concat(r, `;
|
|
270
270
|
}
|
|
271
271
|
|
|
@@ -273,27 +273,27 @@ var ve = function() {
|
|
|
273
273
|
margin-right: 0 `).concat(r, `;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
body[`).concat(
|
|
277
|
-
`).concat(ne, ": ").concat(
|
|
276
|
+
body[`).concat(L, `] {
|
|
277
|
+
`).concat(ne, ": ").concat(i, `px;
|
|
278
278
|
}
|
|
279
279
|
`);
|
|
280
280
|
}, V = function() {
|
|
281
|
-
var e = parseInt(document.body.getAttribute(
|
|
281
|
+
var e = parseInt(document.body.getAttribute(L) || "0", 10);
|
|
282
282
|
return isFinite(e) ? e : 0;
|
|
283
283
|
}, we = function() {
|
|
284
284
|
l.useEffect(function() {
|
|
285
|
-
return document.body.setAttribute(
|
|
285
|
+
return document.body.setAttribute(L, (V() + 1).toString()), function() {
|
|
286
286
|
var e = V() - 1;
|
|
287
|
-
e <= 0 ? document.body.removeAttribute(
|
|
287
|
+
e <= 0 ? document.body.removeAttribute(L) : document.body.setAttribute(L, e.toString());
|
|
288
288
|
};
|
|
289
289
|
}, []);
|
|
290
290
|
}, pe = function(e) {
|
|
291
291
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
|
|
292
292
|
we();
|
|
293
|
-
var
|
|
293
|
+
var c = l.useMemo(function() {
|
|
294
294
|
return ye(a);
|
|
295
295
|
}, [a]);
|
|
296
|
-
return l.createElement(
|
|
296
|
+
return l.createElement(be, { styles: Se(c, !t, a, n ? "" : "!important") });
|
|
297
297
|
}, Y = !1;
|
|
298
298
|
if (typeof window < "u")
|
|
299
299
|
try {
|
|
@@ -306,7 +306,7 @@ if (typeof window < "u")
|
|
|
306
306
|
} catch {
|
|
307
307
|
Y = !1;
|
|
308
308
|
}
|
|
309
|
-
var
|
|
309
|
+
var P = Y ? { passive: !1 } : !1, Ce = function(e) {
|
|
310
310
|
return e.tagName === "TEXTAREA";
|
|
311
311
|
}, $ = function(e, t) {
|
|
312
312
|
if (!(e instanceof Element))
|
|
@@ -327,8 +327,8 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
|
|
|
327
327
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
328
328
|
var a = q(e, r);
|
|
329
329
|
if (a) {
|
|
330
|
-
var
|
|
331
|
-
if (u >
|
|
330
|
+
var c = J(e, r), u = c[1], i = c[2];
|
|
331
|
+
if (u > i)
|
|
332
332
|
return !0;
|
|
333
333
|
}
|
|
334
334
|
r = r.parentNode;
|
|
@@ -355,17 +355,17 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
|
|
|
355
355
|
}, Me = function(e, t) {
|
|
356
356
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
357
357
|
}, Le = function(e, t, n, r, a) {
|
|
358
|
-
var
|
|
358
|
+
var c = Me(e, window.getComputedStyle(t).direction), u = c * r, i = n.target, h = t.contains(i), m = !1, d = u > 0, p = 0, R = 0;
|
|
359
359
|
do {
|
|
360
|
-
var
|
|
361
|
-
(
|
|
360
|
+
var C = J(e, i), E = C[0], o = C[1], f = C[2], v = o - f - c * E;
|
|
361
|
+
(E || v) && q(e, i) && (p += v, R += E), i = i.parentNode.host || i.parentNode;
|
|
362
362
|
} while (
|
|
363
363
|
// portaled content
|
|
364
|
-
!h &&
|
|
365
|
-
h && (t.contains(
|
|
364
|
+
!h && i !== document.body || // self content
|
|
365
|
+
h && (t.contains(i) || t === i)
|
|
366
366
|
);
|
|
367
|
-
return (d && Math.abs(
|
|
368
|
-
},
|
|
367
|
+
return (d && Math.abs(p) < 1 || !d && Math.abs(R) < 1) && (m = !0), m;
|
|
368
|
+
}, N = function(e) {
|
|
369
369
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
370
370
|
}, z = function(e) {
|
|
371
371
|
return [e.deltaX, e.deltaY];
|
|
@@ -378,43 +378,43 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
|
|
|
378
378
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
379
379
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
380
380
|
`);
|
|
381
|
-
},
|
|
382
|
-
function
|
|
383
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(
|
|
381
|
+
}, Ne = 0, M = [];
|
|
382
|
+
function xe(e) {
|
|
383
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(Ne++)[0], c = l.useState(U)[0], u = l.useRef(e);
|
|
384
384
|
l.useEffect(function() {
|
|
385
385
|
u.current = e;
|
|
386
386
|
}, [e]), l.useEffect(function() {
|
|
387
387
|
if (e.inert) {
|
|
388
388
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
389
|
-
var
|
|
390
|
-
return
|
|
389
|
+
var o = te([e.lockRef.current], (e.shards || []).map(F), !0).filter(Boolean);
|
|
390
|
+
return o.forEach(function(f) {
|
|
391
391
|
return f.classList.add("allow-interactivity-".concat(a));
|
|
392
392
|
}), function() {
|
|
393
|
-
document.body.classList.remove("block-interactivity-".concat(a)),
|
|
393
|
+
document.body.classList.remove("block-interactivity-".concat(a)), o.forEach(function(f) {
|
|
394
394
|
return f.classList.remove("allow-interactivity-".concat(a));
|
|
395
395
|
});
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
398
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
399
|
-
var
|
|
400
|
-
if ("touches" in
|
|
399
|
+
var i = l.useCallback(function(o, f) {
|
|
400
|
+
if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
|
|
401
401
|
return !u.current.allowPinchZoom;
|
|
402
|
-
var v =
|
|
403
|
-
if ("touches" in
|
|
402
|
+
var v = N(o), y = n.current, g = "deltaX" in o ? o.deltaX : y[0] - v[0], S = "deltaY" in o ? o.deltaY : y[1] - v[1], s, k = o.target, w = Math.abs(g) > Math.abs(S) ? "h" : "v";
|
|
403
|
+
if ("touches" in o && w === "h" && k.type === "range")
|
|
404
404
|
return !1;
|
|
405
|
-
var T = H(
|
|
405
|
+
var T = H(w, k);
|
|
406
406
|
if (!T)
|
|
407
407
|
return !0;
|
|
408
|
-
if (T ? s =
|
|
408
|
+
if (T ? s = w : (s = w === "v" ? "h" : "v", T = H(w, k)), !T)
|
|
409
409
|
return !1;
|
|
410
|
-
if (!r.current && "changedTouches" in
|
|
410
|
+
if (!r.current && "changedTouches" in o && (g || S) && (r.current = s), !s)
|
|
411
411
|
return !0;
|
|
412
412
|
var j = r.current || s;
|
|
413
|
-
return Le(j, f,
|
|
414
|
-
}, []), h = l.useCallback(function(
|
|
415
|
-
var f =
|
|
416
|
-
if (!(!
|
|
417
|
-
var v = "deltaY" in f ? z(f) :
|
|
413
|
+
return Le(j, f, o, j === "h" ? g : S);
|
|
414
|
+
}, []), h = l.useCallback(function(o) {
|
|
415
|
+
var f = o;
|
|
416
|
+
if (!(!M.length || M[M.length - 1] !== c)) {
|
|
417
|
+
var v = "deltaY" in f ? z(f) : N(f), y = t.current.filter(function(s) {
|
|
418
418
|
return s.name === f.type && (s.target === f.target || f.target === s.shadowParent) && Te(s.delta, v);
|
|
419
419
|
})[0];
|
|
420
420
|
if (y && y.should) {
|
|
@@ -424,41 +424,41 @@ function Ne(e) {
|
|
|
424
424
|
if (!y) {
|
|
425
425
|
var g = (u.current.shards || []).map(F).filter(Boolean).filter(function(s) {
|
|
426
426
|
return s.contains(f.target);
|
|
427
|
-
}),
|
|
428
|
-
|
|
427
|
+
}), S = g.length > 0 ? i(f, g[0]) : !u.current.noIsolation;
|
|
428
|
+
S && f.cancelable && f.preventDefault();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
}, []), m = l.useCallback(function(
|
|
432
|
-
var g = { name:
|
|
431
|
+
}, []), m = l.useCallback(function(o, f, v, y) {
|
|
432
|
+
var g = { name: o, delta: f, target: v, should: y, shadowParent: Oe(v) };
|
|
433
433
|
t.current.push(g), setTimeout(function() {
|
|
434
|
-
t.current = t.current.filter(function(
|
|
435
|
-
return
|
|
434
|
+
t.current = t.current.filter(function(S) {
|
|
435
|
+
return S !== g;
|
|
436
436
|
});
|
|
437
437
|
}, 1);
|
|
438
|
-
}, []), d = l.useCallback(function(
|
|
439
|
-
n.current =
|
|
440
|
-
}, []),
|
|
441
|
-
m(
|
|
442
|
-
}, []),
|
|
443
|
-
m(
|
|
438
|
+
}, []), d = l.useCallback(function(o) {
|
|
439
|
+
n.current = N(o), r.current = void 0;
|
|
440
|
+
}, []), p = l.useCallback(function(o) {
|
|
441
|
+
m(o.type, z(o), o.target, i(o, e.lockRef.current));
|
|
442
|
+
}, []), R = l.useCallback(function(o) {
|
|
443
|
+
m(o.type, N(o), o.target, i(o, e.lockRef.current));
|
|
444
444
|
}, []);
|
|
445
445
|
l.useEffect(function() {
|
|
446
|
-
return
|
|
447
|
-
onScrollCapture:
|
|
448
|
-
onWheelCapture:
|
|
449
|
-
onTouchMoveCapture:
|
|
450
|
-
}), document.addEventListener("wheel", h,
|
|
451
|
-
|
|
452
|
-
return
|
|
453
|
-
}), document.removeEventListener("wheel", h,
|
|
446
|
+
return M.push(c), e.setCallbacks({
|
|
447
|
+
onScrollCapture: p,
|
|
448
|
+
onWheelCapture: p,
|
|
449
|
+
onTouchMoveCapture: R
|
|
450
|
+
}), document.addEventListener("wheel", h, P), document.addEventListener("touchmove", h, P), document.addEventListener("touchstart", d, P), function() {
|
|
451
|
+
M = M.filter(function(o) {
|
|
452
|
+
return o !== c;
|
|
453
|
+
}), document.removeEventListener("wheel", h, P), document.removeEventListener("touchmove", h, P), document.removeEventListener("touchstart", d, P);
|
|
454
454
|
};
|
|
455
455
|
}, []);
|
|
456
|
-
var
|
|
456
|
+
var C = e.removeScrollBar, E = e.inert;
|
|
457
457
|
return l.createElement(
|
|
458
458
|
l.Fragment,
|
|
459
459
|
null,
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
E ? l.createElement(c, { styles: Be(a) }) : null,
|
|
461
|
+
C ? l.createElement(pe, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
464
|
function Oe(e) {
|
|
@@ -466,9 +466,9 @@ function Oe(e) {
|
|
|
466
466
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
467
467
|
return t;
|
|
468
468
|
}
|
|
469
|
-
const Ae = le(K,
|
|
469
|
+
const Ae = le(K, xe);
|
|
470
470
|
var Ie = l.forwardRef(function(e, t) {
|
|
471
|
-
return l.createElement(A,
|
|
471
|
+
return l.createElement(A, b({}, e, { ref: t, sideCar: Ae }));
|
|
472
472
|
});
|
|
473
473
|
Ie.classNames = A.classNames;
|
|
474
474
|
export {
|
|
@@ -3,10 +3,10 @@ import { Footer as _r } from "./components/Modal/components/Footer/Footer.js";
|
|
|
3
3
|
import { Header as kr } from "./components/Modal/components/Header/Header.js";
|
|
4
4
|
import { jsx as k, jsxs as ee } from "react/jsx-runtime";
|
|
5
5
|
import S, { createContext as Lr, forwardRef as Ue, useState as re, useRef as ne, useCallback as W, useEffect as Ge, useMemo as Rr, Fragment as Cr, PureComponent as Wr, Children as K, isValidElement as X } from "react";
|
|
6
|
-
import { r as Br } from "./index-
|
|
7
|
-
import { R as Ur } from "./index
|
|
6
|
+
import { r as Br } from "./index-BCGvACM9.js";
|
|
7
|
+
import { R as Ur } from "./index--EmNlyHx.js";
|
|
8
8
|
import { p as l } from "./index-C5psggHV.js";
|
|
9
|
-
import { c as le, a as Gr, u as Hr, R as jr } from "./Combination-
|
|
9
|
+
import { c as le, a as Gr, u as Hr, R as jr } from "./Combination-Cvr3uETz.js";
|
|
10
10
|
import { cn as Me } from "./utils/index.js";
|
|
11
11
|
import { buttonCloseVariants as Vr, modalVariants as qr } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
12
12
|
import { X as $r } from "./x-DU-Zw-L_.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as b, useState as C, useMemo as V, isValidElement as v, useCallback as k, useEffect as w } from "react";
|
|
3
|
-
import { V as x } from "../../index
|
|
3
|
+
import { V as x } from "../../index--EmNlyHx.js";
|
|
4
4
|
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { closeButtonVariants as y, alertVariants as A } from "./Alert.variants.js";
|
|
6
6
|
import { X as E } from "../../x-DU-Zw-L_.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as A, A as D, P as v, O as j, C as k, T, D as w, a as P, b as R } from "../../index-
|
|
2
|
+
import { R as A, A as D, P as v, O as j, C as k, T, D as w, a as P, b as R } from "../../index-BuxebbOg.js";
|
|
3
3
|
import { Button as l } from "../Button/Button.js";
|
|
4
4
|
import { cn as t } from "../../utils/index.js";
|
|
5
5
|
import { useAlertDialog as z } from "./hooks/useAlertDialog.js";
|
|
@@ -2,9 +2,9 @@ import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as v, useState as w, useCallback as x, useEffect as y } from "react";
|
|
3
3
|
import { cn as u } from "../../utils/index.js";
|
|
4
4
|
import { buttonDismissVariants as M, badgeVariants as Z } from "./Badge.variants.js";
|
|
5
|
-
import { c as N } from "../../createLucideIcon-
|
|
5
|
+
import { c as N } from "../../createLucideIcon-vyksFS6P.js";
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-react v0.
|
|
7
|
+
* @license lucide-react v0.511.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import { cn as i } from "../../../../utils/index.js";
|
|
3
|
-
import { u as f, L as h } from "../../../../useBreadcrumb-
|
|
3
|
+
import { u as f, L as h } from "../../../../useBreadcrumb-DMERrNkJ.js";
|
|
4
4
|
import { breadcrumbLinkVariants as d, breadcrumbLabelVariants as p } from "./Item.variants.js";
|
|
5
5
|
const x = ({
|
|
6
6
|
isActive: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
|
-
import { S as l } from "../../index-
|
|
3
|
+
import { S as l } from "../../index-B5MIi2tR.js";
|
|
4
4
|
import { cn as x } from "../../utils/index.js";
|
|
5
5
|
import { buttonVariants as B } from "./Button.variants.js";
|
|
6
6
|
const C = c(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as u, jsxs as B, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import S, { forwardRef as z, useId as V, useCallback as X } from "react";
|
|
4
|
-
import { u as L } from "../../index-
|
|
4
|
+
import { u as L } from "../../index-B5MIi2tR.js";
|
|
5
5
|
import { c as J, a as Q, b as j } from "../../index-Cq1I1cG9.js";
|
|
6
6
|
import { u as Y, a as Z } from "../../index-Bc1LNrRD.js";
|
|
7
|
-
import { P as ee } from "../../index-
|
|
8
|
-
import { P as w } from "../../index-
|
|
7
|
+
import { P as ee } from "../../index-Dm-ooN_M.js";
|
|
8
|
+
import { P as w } from "../../index-BCGvACM9.js";
|
|
9
9
|
import { cn as T } from "../../utils/index.js";
|
|
10
10
|
import { checkboxVariants as te, labelVariants as re } from "./Checkbox.variants.js";
|
|
11
11
|
import { useToggle as oe } from "../../hooks/useToggle.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { R as s, D as p } from "../../index-
|
|
3
|
-
import { V as l } from "../../index
|
|
2
|
+
import { R as s, D as p } from "../../index-1RDo-S_f.js";
|
|
3
|
+
import { V as l } from "../../index--EmNlyHx.js";
|
|
4
4
|
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { wrapperVariants as f } from "./Command.variants.js";
|
|
6
6
|
import { DialogContent as c } from "./components/DialogContent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-Cz09twLl.js";
|
|
4
4
|
const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
|
|
5
5
|
s.displayName = o.displayName;
|
|
6
6
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-Cz09twLl.js";
|
|
4
4
|
import { cn as a } from "../../../utils/index.js";
|
|
5
5
|
const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
|
|
6
6
|
o.Group,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { _ as m } from "../../../index-
|
|
2
|
+
import { _ as m } from "../../../index-Cz09twLl.js";
|
|
3
3
|
import s, { forwardRef as u } from "react";
|
|
4
4
|
import { cn as f } from "../../../utils/index.js";
|
|
5
5
|
import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i, useContext as p, useCallback as c } from "react";
|
|
3
|
-
import { _ as r } from "../../../index-
|
|
3
|
+
import { _ as r } from "../../../index-Cz09twLl.js";
|
|
4
4
|
import { cn as l } from "../../../utils/index.js";
|
|
5
5
|
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
6
|
const f = i(({ className: a, onSelect: e, ...s }, o) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-Cz09twLl.js";
|
|
4
4
|
import { cn as t } from "../../../utils/index.js";
|
|
5
5
|
const e = s(({ className: m, ...r }, a) => /* @__PURE__ */ i(
|
|
6
6
|
o.List,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as r } from "../../../index-
|
|
3
|
+
import { _ as r } from "../../../index-Cz09twLl.js";
|
|
4
4
|
import { cn as t } from "../../../utils/index.js";
|
|
5
5
|
const s = p(({ className: o, ...a }, m) => /* @__PURE__ */ e(
|
|
6
6
|
r.Separator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i } from "react";
|
|
3
|
-
import { a as r, C as o, b as l } from "../../../index-
|
|
3
|
+
import { a as r, C as o, b as l } from "../../../index-1RDo-S_f.js";
|
|
4
4
|
import { cn as m } from "../../../utils/index.js";
|
|
5
5
|
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
6
6
|
import { X as c } from "../../../x-DU-Zw-L_.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
|
-
import { O as a } from "../../../index-
|
|
3
|
+
import { O as a } from "../../../index-1RDo-S_f.js";
|
|
4
4
|
import { cn as i } from "../../../utils/index.js";
|
|
5
5
|
const m = d(({ className: t, ...e }, o) => /* @__PURE__ */ s(
|
|
6
6
|
a,
|
|
@@ -2,16 +2,16 @@ import { jsx as Ee } from "react/jsx-runtime";
|
|
|
2
2
|
import h, { createContext as fn, useContext as ln, useCallback as A, useRef as Oe, useLayoutEffect as hn, useState as We, useEffect as mn, useMemo as Pe } from "react";
|
|
3
3
|
import { cn as _e } from "../../utils/index.js";
|
|
4
4
|
import { datePickerVariants as yn } from "./DatePicker.variants.js";
|
|
5
|
-
import { c as dt } from "../../createLucideIcon-
|
|
5
|
+
import { c as dt } from "../../createLucideIcon-vyksFS6P.js";
|
|
6
6
|
import '../../DatePicker.css';/**
|
|
7
|
-
* @license lucide-react v0.
|
|
7
|
+
* @license lucide-react v0.511.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
12
|
const gn = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], wn = dt("chevron-left", gn);
|
|
13
13
|
/**
|
|
14
|
-
* @license lucide-react v0.
|
|
14
|
+
* @license lucide-react v0.511.0 - ISC
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the ISC license.
|
|
17
17
|
* See the LICENSE file in the root directory of this source tree.
|