@umami/react-zen 0.3.0 → 0.5.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/{styles.css → index.css} +69 -0
- package/dist/index.d.ts +694 -624
- package/dist/index.js +1912 -1313
- package/dist/index.mjs +1165 -566
- package/dist/zen.css +15 -6
- package/package.json +8 -5
package/dist/index.mjs
CHANGED
|
@@ -82,8 +82,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
82
82
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
83
83
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
84
84
|
}
|
|
85
|
-
var
|
|
86
|
-
var ReactSharedInternals =
|
|
85
|
+
var React18 = __import_react2;
|
|
86
|
+
var ReactSharedInternals = React18.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
87
87
|
function error(format) {
|
|
88
88
|
{
|
|
89
89
|
{
|
|
@@ -113,13 +113,13 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
113
113
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
114
114
|
}
|
|
115
115
|
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
116
|
-
var useState14 =
|
|
116
|
+
var useState14 = React18.useState, useEffect9 = React18.useEffect, useLayoutEffect3 = React18.useLayoutEffect, useDebugValue2 = React18.useDebugValue;
|
|
117
117
|
var didWarnOld18Alpha = false;
|
|
118
118
|
var didWarnUncachedGetSnapshot = false;
|
|
119
119
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
120
120
|
{
|
|
121
121
|
if (!didWarnOld18Alpha) {
|
|
122
|
-
if (
|
|
122
|
+
if (React18.startTransition !== void 0) {
|
|
123
123
|
didWarnOld18Alpha = true;
|
|
124
124
|
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
125
125
|
}
|
|
@@ -184,7 +184,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
184
184
|
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
185
185
|
var isServerEnvironment = !canUseDOM;
|
|
186
186
|
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
187
|
-
var useSyncExternalStore$2 =
|
|
187
|
+
var useSyncExternalStore$2 = React18.useSyncExternalStore !== void 0 ? React18.useSyncExternalStore : shim;
|
|
188
188
|
exports.useSyncExternalStore = useSyncExternalStore$2;
|
|
189
189
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
190
190
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
@@ -264,8 +264,8 @@ var require_use_sync_external_store_shim_development2 = __commonJS({
|
|
|
264
264
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
265
265
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
266
266
|
}
|
|
267
|
-
var
|
|
268
|
-
var ReactSharedInternals =
|
|
267
|
+
var React18 = __import_react4;
|
|
268
|
+
var ReactSharedInternals = React18.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
269
269
|
function error(format) {
|
|
270
270
|
{
|
|
271
271
|
{
|
|
@@ -295,13 +295,13 @@ var require_use_sync_external_store_shim_development2 = __commonJS({
|
|
|
295
295
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
296
296
|
}
|
|
297
297
|
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
298
|
-
var useState14 =
|
|
298
|
+
var useState14 = React18.useState, useEffect9 = React18.useEffect, useLayoutEffect3 = React18.useLayoutEffect, useDebugValue2 = React18.useDebugValue;
|
|
299
299
|
var didWarnOld18Alpha = false;
|
|
300
300
|
var didWarnUncachedGetSnapshot = false;
|
|
301
301
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
302
302
|
{
|
|
303
303
|
if (!didWarnOld18Alpha) {
|
|
304
|
-
if (
|
|
304
|
+
if (React18.startTransition !== void 0) {
|
|
305
305
|
didWarnOld18Alpha = true;
|
|
306
306
|
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
307
307
|
}
|
|
@@ -366,7 +366,7 @@ var require_use_sync_external_store_shim_development2 = __commonJS({
|
|
|
366
366
|
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
367
367
|
var isServerEnvironment = !canUseDOM;
|
|
368
368
|
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
369
|
-
var useSyncExternalStore$2 =
|
|
369
|
+
var useSyncExternalStore$2 = React18.useSyncExternalStore !== void 0 ? React18.useSyncExternalStore : shim;
|
|
370
370
|
exports.useSyncExternalStore = useSyncExternalStore$2;
|
|
371
371
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
372
372
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
@@ -459,14 +459,14 @@ var require_with_selector_development = __commonJS({
|
|
|
459
459
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
460
460
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var React18 = __import_react6;
|
|
463
463
|
var shim = import_shim2.default;
|
|
464
464
|
function is(x, y) {
|
|
465
465
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
466
466
|
}
|
|
467
467
|
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
468
468
|
var useSyncExternalStore = shim.useSyncExternalStore;
|
|
469
|
-
var useRef7 =
|
|
469
|
+
var useRef7 = React18.useRef, useEffect9 = React18.useEffect, useMemo4 = React18.useMemo, useDebugValue2 = React18.useDebugValue;
|
|
470
470
|
function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
471
471
|
var instRef = useRef7(null);
|
|
472
472
|
var inst;
|
|
@@ -558,7 +558,7 @@ var require_classnames = __commonJS({
|
|
|
558
558
|
(function() {
|
|
559
559
|
"use strict";
|
|
560
560
|
var hasOwn = {}.hasOwnProperty;
|
|
561
|
-
function
|
|
561
|
+
function classNames46() {
|
|
562
562
|
var classes = "";
|
|
563
563
|
for (var i = 0; i < arguments.length; i++) {
|
|
564
564
|
var arg = arguments[i];
|
|
@@ -576,7 +576,7 @@ var require_classnames = __commonJS({
|
|
|
576
576
|
return "";
|
|
577
577
|
}
|
|
578
578
|
if (Array.isArray(arg)) {
|
|
579
|
-
return
|
|
579
|
+
return classNames46.apply(null, arg);
|
|
580
580
|
}
|
|
581
581
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
582
582
|
return arg.toString();
|
|
@@ -599,14 +599,14 @@ var require_classnames = __commonJS({
|
|
|
599
599
|
return value + newClass;
|
|
600
600
|
}
|
|
601
601
|
if (typeof module !== "undefined" && module.exports) {
|
|
602
|
-
|
|
603
|
-
module.exports =
|
|
602
|
+
classNames46.default = classNames46;
|
|
603
|
+
module.exports = classNames46;
|
|
604
604
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
605
605
|
define("classnames", [], function() {
|
|
606
|
-
return
|
|
606
|
+
return classNames46;
|
|
607
607
|
});
|
|
608
608
|
} else {
|
|
609
|
-
window.classNames =
|
|
609
|
+
window.classNames = classNames46;
|
|
610
610
|
}
|
|
611
611
|
})();
|
|
612
612
|
}
|
|
@@ -13209,6 +13209,259 @@ function $3e5eb2498db5b506$export$73f7a44322579622(props) {
|
|
|
13209
13209
|
};
|
|
13210
13210
|
}
|
|
13211
13211
|
|
|
13212
|
+
// node_modules/@react-aria/menu/dist/useSafelyMouseToSubmenu.mjs
|
|
13213
|
+
import { useRef as $fUfeP$useRef, useState as $fUfeP$useState, useEffect as $fUfeP$useEffect } from "react";
|
|
13214
|
+
var $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS = 2;
|
|
13215
|
+
var $d275435c250248f8$var$THROTTLE_TIME = 50;
|
|
13216
|
+
var $d275435c250248f8$var$TIMEOUT_TIME = 1e3;
|
|
13217
|
+
var $d275435c250248f8$var$ANGLE_PADDING = Math.PI / 12;
|
|
13218
|
+
function $d275435c250248f8$export$85ec83e04c95f50a(options) {
|
|
13219
|
+
let { menuRef, submenuRef, isOpen, isDisabled } = options;
|
|
13220
|
+
let prevPointerPos = (0, $fUfeP$useRef)(void 0);
|
|
13221
|
+
let submenuRect = (0, $fUfeP$useRef)(void 0);
|
|
13222
|
+
let lastProcessedTime = (0, $fUfeP$useRef)(0);
|
|
13223
|
+
let timeout = (0, $fUfeP$useRef)(void 0);
|
|
13224
|
+
let autoCloseTimeout = (0, $fUfeP$useRef)(void 0);
|
|
13225
|
+
let submenuSide = (0, $fUfeP$useRef)(void 0);
|
|
13226
|
+
let movementsTowardsSubmenuCount = (0, $fUfeP$useRef)(2);
|
|
13227
|
+
let [preventPointerEvents, setPreventPointerEvents] = (0, $fUfeP$useState)(false);
|
|
13228
|
+
let updateSubmenuRect = () => {
|
|
13229
|
+
if (submenuRef.current) {
|
|
13230
|
+
submenuRect.current = submenuRef.current.getBoundingClientRect();
|
|
13231
|
+
submenuSide.current = void 0;
|
|
13232
|
+
}
|
|
13233
|
+
};
|
|
13234
|
+
(0, $9daab02d461809db$export$683480f191c0e3ea)({
|
|
13235
|
+
ref: submenuRef,
|
|
13236
|
+
onResize: updateSubmenuRect
|
|
13237
|
+
});
|
|
13238
|
+
let reset = () => {
|
|
13239
|
+
setPreventPointerEvents(false);
|
|
13240
|
+
movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS;
|
|
13241
|
+
prevPointerPos.current = void 0;
|
|
13242
|
+
};
|
|
13243
|
+
let modality = (0, $507fabe10e71c6fb$export$98e20ec92f614cfe)();
|
|
13244
|
+
(0, $fUfeP$useEffect)(() => {
|
|
13245
|
+
if (preventPointerEvents && menuRef.current) menuRef.current.style.pointerEvents = "none";
|
|
13246
|
+
else menuRef.current.style.pointerEvents = "";
|
|
13247
|
+
}, [
|
|
13248
|
+
menuRef,
|
|
13249
|
+
preventPointerEvents
|
|
13250
|
+
]);
|
|
13251
|
+
(0, $fUfeP$useEffect)(() => {
|
|
13252
|
+
let submenu = submenuRef.current;
|
|
13253
|
+
let menu = menuRef.current;
|
|
13254
|
+
if (isDisabled || !submenu || !isOpen || modality !== "pointer") {
|
|
13255
|
+
reset();
|
|
13256
|
+
return;
|
|
13257
|
+
}
|
|
13258
|
+
submenuRect.current = submenu.getBoundingClientRect();
|
|
13259
|
+
let onPointerMove = (e) => {
|
|
13260
|
+
if (e.pointerType === "touch" || e.pointerType === "pen") return;
|
|
13261
|
+
let currentTime = Date.now();
|
|
13262
|
+
if (currentTime - lastProcessedTime.current < $d275435c250248f8$var$THROTTLE_TIME) return;
|
|
13263
|
+
clearTimeout(timeout.current);
|
|
13264
|
+
clearTimeout(autoCloseTimeout.current);
|
|
13265
|
+
let { clientX: mouseX, clientY: mouseY } = e;
|
|
13266
|
+
if (!prevPointerPos.current) {
|
|
13267
|
+
prevPointerPos.current = {
|
|
13268
|
+
x: mouseX,
|
|
13269
|
+
y: mouseY
|
|
13270
|
+
};
|
|
13271
|
+
return;
|
|
13272
|
+
}
|
|
13273
|
+
if (!submenuRect.current) return;
|
|
13274
|
+
if (!submenuSide.current) submenuSide.current = mouseX > submenuRect.current.right ? "left" : "right";
|
|
13275
|
+
if (mouseX < menu.getBoundingClientRect().left || mouseX > menu.getBoundingClientRect().right || mouseY < menu.getBoundingClientRect().top || mouseY > menu.getBoundingClientRect().bottom) {
|
|
13276
|
+
reset();
|
|
13277
|
+
return;
|
|
13278
|
+
}
|
|
13279
|
+
let prevMouseX = prevPointerPos.current.x;
|
|
13280
|
+
let prevMouseY = prevPointerPos.current.y;
|
|
13281
|
+
let toSubmenuX = submenuSide.current === "right" ? submenuRect.current.left - prevMouseX : prevMouseX - submenuRect.current.right;
|
|
13282
|
+
let angleTop = Math.atan2(prevMouseY - submenuRect.current.top, toSubmenuX) + $d275435c250248f8$var$ANGLE_PADDING;
|
|
13283
|
+
let angleBottom = Math.atan2(prevMouseY - submenuRect.current.bottom, toSubmenuX) - $d275435c250248f8$var$ANGLE_PADDING;
|
|
13284
|
+
let anglePointer = Math.atan2(prevMouseY - mouseY, submenuSide.current === "left" ? -(mouseX - prevMouseX) : mouseX - prevMouseX);
|
|
13285
|
+
let isMovingTowardsSubmenu = anglePointer < angleTop && anglePointer > angleBottom;
|
|
13286
|
+
movementsTowardsSubmenuCount.current = isMovingTowardsSubmenu ? Math.min(movementsTowardsSubmenuCount.current + 1, $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) : Math.max(movementsTowardsSubmenuCount.current - 1, 0);
|
|
13287
|
+
if (movementsTowardsSubmenuCount.current >= $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) setPreventPointerEvents(true);
|
|
13288
|
+
else setPreventPointerEvents(false);
|
|
13289
|
+
lastProcessedTime.current = currentTime;
|
|
13290
|
+
prevPointerPos.current = {
|
|
13291
|
+
x: mouseX,
|
|
13292
|
+
y: mouseY
|
|
13293
|
+
};
|
|
13294
|
+
if (isMovingTowardsSubmenu) timeout.current = setTimeout(() => {
|
|
13295
|
+
reset();
|
|
13296
|
+
autoCloseTimeout.current = setTimeout(() => {
|
|
13297
|
+
let target = document.elementFromPoint(mouseX, mouseY);
|
|
13298
|
+
if (target && menu.contains(target)) target.dispatchEvent(new PointerEvent("pointerover", {
|
|
13299
|
+
bubbles: true,
|
|
13300
|
+
cancelable: true
|
|
13301
|
+
}));
|
|
13302
|
+
}, 100);
|
|
13303
|
+
}, $d275435c250248f8$var$TIMEOUT_TIME);
|
|
13304
|
+
};
|
|
13305
|
+
window.addEventListener("pointermove", onPointerMove);
|
|
13306
|
+
return () => {
|
|
13307
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
13308
|
+
clearTimeout(timeout.current);
|
|
13309
|
+
clearTimeout(autoCloseTimeout.current);
|
|
13310
|
+
movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS;
|
|
13311
|
+
};
|
|
13312
|
+
}, [
|
|
13313
|
+
isDisabled,
|
|
13314
|
+
isOpen,
|
|
13315
|
+
menuRef,
|
|
13316
|
+
modality,
|
|
13317
|
+
setPreventPointerEvents,
|
|
13318
|
+
submenuRef
|
|
13319
|
+
]);
|
|
13320
|
+
}
|
|
13321
|
+
|
|
13322
|
+
// node_modules/@react-aria/menu/dist/useSubmenuTrigger.mjs
|
|
13323
|
+
import { useRef as $dXlYe$useRef, useCallback as $dXlYe$useCallback } from "react";
|
|
13324
|
+
function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
13325
|
+
let { parentMenuRef, submenuRef, type = "menu", isDisabled, delay = 200 } = props;
|
|
13326
|
+
let submenuTriggerId = (0, $bdb11010cef70236$export$f680877a34711e37)();
|
|
13327
|
+
let overlayId = (0, $bdb11010cef70236$export$f680877a34711e37)();
|
|
13328
|
+
let { direction } = (0, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
13329
|
+
let openTimeout = (0, $dXlYe$useRef)(void 0);
|
|
13330
|
+
let cancelOpenTimeout = (0, $dXlYe$useCallback)(() => {
|
|
13331
|
+
if (openTimeout.current) {
|
|
13332
|
+
clearTimeout(openTimeout.current);
|
|
13333
|
+
openTimeout.current = void 0;
|
|
13334
|
+
}
|
|
13335
|
+
}, [
|
|
13336
|
+
openTimeout
|
|
13337
|
+
]);
|
|
13338
|
+
let onSubmenuOpen = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)((focusStrategy) => {
|
|
13339
|
+
cancelOpenTimeout();
|
|
13340
|
+
state.open(focusStrategy);
|
|
13341
|
+
});
|
|
13342
|
+
let onSubmenuClose = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)(() => {
|
|
13343
|
+
cancelOpenTimeout();
|
|
13344
|
+
state.close();
|
|
13345
|
+
});
|
|
13346
|
+
(0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(() => {
|
|
13347
|
+
return () => {
|
|
13348
|
+
cancelOpenTimeout();
|
|
13349
|
+
};
|
|
13350
|
+
}, [
|
|
13351
|
+
cancelOpenTimeout
|
|
13352
|
+
]);
|
|
13353
|
+
let submenuKeyDown = (e) => {
|
|
13354
|
+
switch (e.key) {
|
|
13355
|
+
case "ArrowLeft":
|
|
13356
|
+
if (direction === "ltr" && e.currentTarget.contains(e.target)) {
|
|
13357
|
+
e.stopPropagation();
|
|
13358
|
+
onSubmenuClose();
|
|
13359
|
+
ref.current.focus();
|
|
13360
|
+
}
|
|
13361
|
+
break;
|
|
13362
|
+
case "ArrowRight":
|
|
13363
|
+
if (direction === "rtl" && e.currentTarget.contains(e.target)) {
|
|
13364
|
+
e.stopPropagation();
|
|
13365
|
+
onSubmenuClose();
|
|
13366
|
+
ref.current.focus();
|
|
13367
|
+
}
|
|
13368
|
+
break;
|
|
13369
|
+
case "Escape":
|
|
13370
|
+
e.stopPropagation();
|
|
13371
|
+
state.closeAll();
|
|
13372
|
+
break;
|
|
13373
|
+
}
|
|
13374
|
+
};
|
|
13375
|
+
let submenuProps = {
|
|
13376
|
+
id: overlayId,
|
|
13377
|
+
"aria-labelledby": submenuTriggerId,
|
|
13378
|
+
submenuLevel: state.submenuLevel,
|
|
13379
|
+
...type === "menu" && {
|
|
13380
|
+
onClose: state.closeAll,
|
|
13381
|
+
autoFocus: state.focusStrategy,
|
|
13382
|
+
onKeyDown: submenuKeyDown
|
|
13383
|
+
}
|
|
13384
|
+
};
|
|
13385
|
+
let submenuTriggerKeyDown = (e) => {
|
|
13386
|
+
switch (e.key) {
|
|
13387
|
+
case "ArrowRight":
|
|
13388
|
+
if (!isDisabled) {
|
|
13389
|
+
if (direction === "ltr") {
|
|
13390
|
+
if (!state.isOpen) onSubmenuOpen("first");
|
|
13391
|
+
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current)) submenuRef.current.focus();
|
|
13392
|
+
} else if (state.isOpen) onSubmenuClose();
|
|
13393
|
+
else e.continuePropagation();
|
|
13394
|
+
}
|
|
13395
|
+
break;
|
|
13396
|
+
case "ArrowLeft":
|
|
13397
|
+
if (!isDisabled) {
|
|
13398
|
+
if (direction === "rtl") {
|
|
13399
|
+
if (!state.isOpen) onSubmenuOpen("first");
|
|
13400
|
+
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current)) submenuRef.current.focus();
|
|
13401
|
+
} else if (state.isOpen) onSubmenuClose();
|
|
13402
|
+
else e.continuePropagation();
|
|
13403
|
+
}
|
|
13404
|
+
break;
|
|
13405
|
+
case "Escape":
|
|
13406
|
+
state.closeAll();
|
|
13407
|
+
break;
|
|
13408
|
+
default:
|
|
13409
|
+
e.continuePropagation();
|
|
13410
|
+
break;
|
|
13411
|
+
}
|
|
13412
|
+
};
|
|
13413
|
+
let onPressStart = (e) => {
|
|
13414
|
+
if (!isDisabled && (e.pointerType === "virtual" || e.pointerType === "keyboard"))
|
|
13415
|
+
onSubmenuOpen("first");
|
|
13416
|
+
};
|
|
13417
|
+
let onPress = (e) => {
|
|
13418
|
+
if (!isDisabled && (e.pointerType === "touch" || e.pointerType === "mouse"))
|
|
13419
|
+
onSubmenuOpen();
|
|
13420
|
+
};
|
|
13421
|
+
let onHoverChange = (isHovered) => {
|
|
13422
|
+
if (!isDisabled) {
|
|
13423
|
+
if (isHovered && !state.isOpen) {
|
|
13424
|
+
if (!openTimeout.current) openTimeout.current = setTimeout(() => {
|
|
13425
|
+
onSubmenuOpen();
|
|
13426
|
+
}, delay);
|
|
13427
|
+
} else if (!isHovered) cancelOpenTimeout();
|
|
13428
|
+
}
|
|
13429
|
+
};
|
|
13430
|
+
let onBlur = (e) => {
|
|
13431
|
+
if (state.isOpen && parentMenuRef.current.contains(e.relatedTarget)) onSubmenuClose();
|
|
13432
|
+
};
|
|
13433
|
+
let shouldCloseOnInteractOutside = (target) => {
|
|
13434
|
+
if (target !== ref.current) return true;
|
|
13435
|
+
return false;
|
|
13436
|
+
};
|
|
13437
|
+
(0, $d275435c250248f8$export$85ec83e04c95f50a)({
|
|
13438
|
+
menuRef: parentMenuRef,
|
|
13439
|
+
submenuRef,
|
|
13440
|
+
isOpen: state.isOpen,
|
|
13441
|
+
isDisabled
|
|
13442
|
+
});
|
|
13443
|
+
return {
|
|
13444
|
+
submenuTriggerProps: {
|
|
13445
|
+
id: submenuTriggerId,
|
|
13446
|
+
"aria-controls": state.isOpen ? overlayId : void 0,
|
|
13447
|
+
"aria-haspopup": !isDisabled ? type : void 0,
|
|
13448
|
+
"aria-expanded": state.isOpen ? "true" : "false",
|
|
13449
|
+
onPressStart,
|
|
13450
|
+
onPress,
|
|
13451
|
+
onHoverChange,
|
|
13452
|
+
onKeyDown: submenuTriggerKeyDown,
|
|
13453
|
+
onBlur,
|
|
13454
|
+
isOpen: state.isOpen
|
|
13455
|
+
},
|
|
13456
|
+
submenuProps,
|
|
13457
|
+
popoverProps: {
|
|
13458
|
+
isNonModal: true,
|
|
13459
|
+
disableFocusManagement: true,
|
|
13460
|
+
shouldCloseOnInteractOutside
|
|
13461
|
+
}
|
|
13462
|
+
};
|
|
13463
|
+
}
|
|
13464
|
+
|
|
13212
13465
|
// node_modules/@react-aria/combobox/dist/useComboBox.mjs
|
|
13213
13466
|
function $parcel$interopDefault7(a) {
|
|
13214
13467
|
return a && a.__esModule ? a.default : a;
|
|
@@ -17948,6 +18201,66 @@ function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
|
|
|
17948
18201
|
};
|
|
17949
18202
|
}
|
|
17950
18203
|
|
|
18204
|
+
// node_modules/@react-stately/menu/dist/useSubmenuTriggerState.mjs
|
|
18205
|
+
import { useState as $7exkJ$useState, useMemo as $7exkJ$useMemo, useCallback as $7exkJ$useCallback } from "react";
|
|
18206
|
+
function $e5614764aa47eb35$export$cfc51cf86138bf98(props, state) {
|
|
18207
|
+
let { triggerKey } = props;
|
|
18208
|
+
let { expandedKeysStack, openSubmenu, closeSubmenu, close: closeAll } = state;
|
|
18209
|
+
let [submenuLevel] = (0, $7exkJ$useState)(expandedKeysStack === null || expandedKeysStack === void 0 ? void 0 : expandedKeysStack.length);
|
|
18210
|
+
let isOpen = (0, $7exkJ$useMemo)(() => expandedKeysStack[submenuLevel] === triggerKey, [
|
|
18211
|
+
expandedKeysStack,
|
|
18212
|
+
triggerKey,
|
|
18213
|
+
submenuLevel
|
|
18214
|
+
]);
|
|
18215
|
+
let [focusStrategy, setFocusStrategy] = (0, $7exkJ$useState)(null);
|
|
18216
|
+
let open = (0, $7exkJ$useCallback)((focusStrategy2 = null) => {
|
|
18217
|
+
setFocusStrategy(focusStrategy2);
|
|
18218
|
+
openSubmenu(triggerKey, submenuLevel);
|
|
18219
|
+
}, [
|
|
18220
|
+
openSubmenu,
|
|
18221
|
+
submenuLevel,
|
|
18222
|
+
triggerKey
|
|
18223
|
+
]);
|
|
18224
|
+
let close = (0, $7exkJ$useCallback)(() => {
|
|
18225
|
+
setFocusStrategy(null);
|
|
18226
|
+
closeSubmenu(triggerKey, submenuLevel);
|
|
18227
|
+
}, [
|
|
18228
|
+
closeSubmenu,
|
|
18229
|
+
submenuLevel,
|
|
18230
|
+
triggerKey
|
|
18231
|
+
]);
|
|
18232
|
+
let toggle = (0, $7exkJ$useCallback)((focusStrategy2 = null) => {
|
|
18233
|
+
setFocusStrategy(focusStrategy2);
|
|
18234
|
+
if (isOpen) close();
|
|
18235
|
+
else open(focusStrategy2);
|
|
18236
|
+
}, [
|
|
18237
|
+
close,
|
|
18238
|
+
open,
|
|
18239
|
+
isOpen
|
|
18240
|
+
]);
|
|
18241
|
+
return (0, $7exkJ$useMemo)(() => ({
|
|
18242
|
+
focusStrategy,
|
|
18243
|
+
isOpen,
|
|
18244
|
+
open,
|
|
18245
|
+
close,
|
|
18246
|
+
closeAll,
|
|
18247
|
+
submenuLevel,
|
|
18248
|
+
// TODO: Placeholders that aren't used but give us parity with OverlayTriggerState so we can use this in Popover. Refactor if we update Popover via
|
|
18249
|
+
// https://github.com/adobe/react-spectrum/pull/4976#discussion_r1336472863
|
|
18250
|
+
setOpen: () => {
|
|
18251
|
+
},
|
|
18252
|
+
toggle
|
|
18253
|
+
}), [
|
|
18254
|
+
isOpen,
|
|
18255
|
+
open,
|
|
18256
|
+
close,
|
|
18257
|
+
closeAll,
|
|
18258
|
+
focusStrategy,
|
|
18259
|
+
toggle,
|
|
18260
|
+
submenuLevel
|
|
18261
|
+
]);
|
|
18262
|
+
}
|
|
18263
|
+
|
|
17951
18264
|
// node_modules/@react-stately/radio/dist/useRadioGroupState.mjs
|
|
17952
18265
|
import { useMemo as $l55kx$useMemo, useState as $l55kx$useState } from "react";
|
|
17953
18266
|
var $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 1e10);
|
|
@@ -20540,6 +20853,57 @@ function $3674c52c6b3c5bce$export$27d2ad3c5815583e(props) {
|
|
|
20540
20853
|
}, props.children));
|
|
20541
20854
|
}
|
|
20542
20855
|
var $3674c52c6b3c5bce$var$SubmenuTriggerContext = /* @__PURE__ */ (0, $kM2ZM$createContext)(null);
|
|
20856
|
+
var $3674c52c6b3c5bce$export$ecabc99eeffab7ca = /* @__PURE__ */ (0, $e1995378a142960e$export$e953bb1cd0f19726)("submenutrigger", (props, ref, item) => {
|
|
20857
|
+
let { CollectionBranch } = (0, $kM2ZM$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));
|
|
20858
|
+
let state = (0, $kM2ZM$useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b);
|
|
20859
|
+
let rootMenuTriggerState = (0, $kM2ZM$useContext)($3674c52c6b3c5bce$export$795aec4671cbae19);
|
|
20860
|
+
let submenuTriggerState = (0, $e5614764aa47eb35$export$cfc51cf86138bf98)({
|
|
20861
|
+
triggerKey: item.key
|
|
20862
|
+
}, rootMenuTriggerState);
|
|
20863
|
+
let submenuRef = (0, $kM2ZM$useRef)(null);
|
|
20864
|
+
let itemRef = (0, $df56164dff5785e2$export$4338b53315abf666)(ref);
|
|
20865
|
+
let popoverContext = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $07b14b47974efb58$export$9b9a0cd73afb7ca4));
|
|
20866
|
+
let { parentMenuRef } = (0, $kM2ZM$useContext)($3674c52c6b3c5bce$var$SubmenuTriggerContext);
|
|
20867
|
+
let { submenuTriggerProps, submenuProps, popoverProps } = (0, $0065b146e7192841$export$7138b0d059a6e743)({
|
|
20868
|
+
parentMenuRef,
|
|
20869
|
+
submenuRef,
|
|
20870
|
+
delay: props.delay
|
|
20871
|
+
}, submenuTriggerState, itemRef);
|
|
20872
|
+
return /* @__PURE__ */ (0, $kM2ZM$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
20873
|
+
values: [
|
|
20874
|
+
[
|
|
20875
|
+
$3674c52c6b3c5bce$var$MenuItemContext,
|
|
20876
|
+
{
|
|
20877
|
+
...submenuTriggerProps,
|
|
20878
|
+
onAction: void 0,
|
|
20879
|
+
ref: itemRef
|
|
20880
|
+
}
|
|
20881
|
+
],
|
|
20882
|
+
[
|
|
20883
|
+
$3674c52c6b3c5bce$export$c7e742effb1c51e2,
|
|
20884
|
+
submenuProps
|
|
20885
|
+
],
|
|
20886
|
+
[
|
|
20887
|
+
(0, $de32f1b87079253c$export$d2f961adcb0afbe),
|
|
20888
|
+
submenuTriggerState
|
|
20889
|
+
],
|
|
20890
|
+
[
|
|
20891
|
+
(0, $07b14b47974efb58$export$9b9a0cd73afb7ca4),
|
|
20892
|
+
{
|
|
20893
|
+
ref: submenuRef,
|
|
20894
|
+
trigger: "SubmenuTrigger",
|
|
20895
|
+
triggerRef: itemRef,
|
|
20896
|
+
placement: "end top",
|
|
20897
|
+
UNSTABLE_portalContainer: popoverContext.UNSTABLE_portalContainer || void 0,
|
|
20898
|
+
...popoverProps
|
|
20899
|
+
}
|
|
20900
|
+
]
|
|
20901
|
+
]
|
|
20902
|
+
}, /* @__PURE__ */ (0, $kM2ZM$react).createElement(CollectionBranch, {
|
|
20903
|
+
collection: state.collection,
|
|
20904
|
+
parent: item
|
|
20905
|
+
}), props.children[1]);
|
|
20906
|
+
}, (props) => props.children[0]);
|
|
20543
20907
|
function $3674c52c6b3c5bce$var$Menu(props, ref) {
|
|
20544
20908
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $3674c52c6b3c5bce$export$c7e742effb1c51e2);
|
|
20545
20909
|
return /* @__PURE__ */ (0, $kM2ZM$react).createElement((0, $e1995378a142960e$export$bf788dd355e3a401), {
|
|
@@ -22594,6 +22958,106 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
22594
22958
|
}, renderProps.children));
|
|
22595
22959
|
}
|
|
22596
22960
|
|
|
22961
|
+
// node_modules/@babel/runtime/helpers/esm/extends.js
|
|
22962
|
+
function _extends() {
|
|
22963
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
22964
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
22965
|
+
var source = arguments[i];
|
|
22966
|
+
for (var key in source) {
|
|
22967
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
22968
|
+
target[key] = source[key];
|
|
22969
|
+
}
|
|
22970
|
+
}
|
|
22971
|
+
}
|
|
22972
|
+
return target;
|
|
22973
|
+
};
|
|
22974
|
+
return _extends.apply(this, arguments);
|
|
22975
|
+
}
|
|
22976
|
+
|
|
22977
|
+
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
22978
|
+
import { forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment } from "react";
|
|
22979
|
+
|
|
22980
|
+
// node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
22981
|
+
import { useCallback as $3vqmr$useCallback } from "react";
|
|
22982
|
+
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
22983
|
+
if (typeof ref === "function") ref(value);
|
|
22984
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
22985
|
+
}
|
|
22986
|
+
function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
22987
|
+
return (node) => refs.forEach(
|
|
22988
|
+
(ref) => $6ed0406888f73fc4$var$setRef(ref, node)
|
|
22989
|
+
);
|
|
22990
|
+
}
|
|
22991
|
+
function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
22992
|
+
return $3vqmr$useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
22993
|
+
}
|
|
22994
|
+
|
|
22995
|
+
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
22996
|
+
var $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ $9IrjX$forwardRef((props, forwardedRef) => {
|
|
22997
|
+
const { children, ...slotProps } = props;
|
|
22998
|
+
const childrenArray = $9IrjX$Children.toArray(children);
|
|
22999
|
+
const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
|
|
23000
|
+
if (slottable) {
|
|
23001
|
+
const newElement = slottable.props.children;
|
|
23002
|
+
const newChildren = childrenArray.map((child) => {
|
|
23003
|
+
if (child === slottable) {
|
|
23004
|
+
if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);
|
|
23005
|
+
return /* @__PURE__ */ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;
|
|
23006
|
+
} else return child;
|
|
23007
|
+
});
|
|
23008
|
+
return /* @__PURE__ */ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
23009
|
+
ref: forwardedRef
|
|
23010
|
+
}), /* @__PURE__ */ $9IrjX$isValidElement(newElement) ? /* @__PURE__ */ $9IrjX$cloneElement(newElement, void 0, newChildren) : null);
|
|
23011
|
+
}
|
|
23012
|
+
return /* @__PURE__ */ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
23013
|
+
ref: forwardedRef
|
|
23014
|
+
}), children);
|
|
23015
|
+
});
|
|
23016
|
+
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
|
|
23017
|
+
var $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ $9IrjX$forwardRef((props, forwardedRef) => {
|
|
23018
|
+
const { children, ...slotProps } = props;
|
|
23019
|
+
if (/* @__PURE__ */ $9IrjX$isValidElement(children)) return /* @__PURE__ */ $9IrjX$cloneElement(children, {
|
|
23020
|
+
...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
|
|
23021
|
+
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
23022
|
+
});
|
|
23023
|
+
return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;
|
|
23024
|
+
});
|
|
23025
|
+
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
23026
|
+
var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children }) => {
|
|
23027
|
+
return /* @__PURE__ */ $9IrjX$createElement($9IrjX$Fragment, null, children);
|
|
23028
|
+
};
|
|
23029
|
+
function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
23030
|
+
return /* @__PURE__ */ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
|
|
23031
|
+
}
|
|
23032
|
+
function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
23033
|
+
const overrideProps = {
|
|
23034
|
+
...childProps
|
|
23035
|
+
};
|
|
23036
|
+
for (const propName in childProps) {
|
|
23037
|
+
const slotPropValue = slotProps[propName];
|
|
23038
|
+
const childPropValue = childProps[propName];
|
|
23039
|
+
const isHandler = /^on[A-Z]/.test(propName);
|
|
23040
|
+
if (isHandler) {
|
|
23041
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
23042
|
+
childPropValue(...args);
|
|
23043
|
+
slotPropValue(...args);
|
|
23044
|
+
};
|
|
23045
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
23046
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
23047
|
+
...slotPropValue,
|
|
23048
|
+
...childPropValue
|
|
23049
|
+
};
|
|
23050
|
+
else if (propName === "className") overrideProps[propName] = [
|
|
23051
|
+
slotPropValue,
|
|
23052
|
+
childPropValue
|
|
23053
|
+
].filter(Boolean).join(" ");
|
|
23054
|
+
}
|
|
23055
|
+
return {
|
|
23056
|
+
...slotProps,
|
|
23057
|
+
...overrideProps
|
|
23058
|
+
};
|
|
23059
|
+
}
|
|
23060
|
+
|
|
22597
23061
|
// src/components/hooks/useDebounce.ts
|
|
22598
23062
|
import { useState, useEffect } from "react";
|
|
22599
23063
|
function useDebounce(value, delay) {
|
|
@@ -22722,22 +23186,6 @@ function useToast() {
|
|
|
22722
23186
|
return { toast, toasts };
|
|
22723
23187
|
}
|
|
22724
23188
|
|
|
22725
|
-
// node_modules/@babel/runtime/helpers/esm/extends.js
|
|
22726
|
-
function _extends() {
|
|
22727
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
22728
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
22729
|
-
var source = arguments[i];
|
|
22730
|
-
for (var key in source) {
|
|
22731
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
22732
|
-
target[key] = source[key];
|
|
22733
|
-
}
|
|
22734
|
-
}
|
|
22735
|
-
}
|
|
22736
|
-
return target;
|
|
22737
|
-
};
|
|
22738
|
-
return _extends.apply(this, arguments);
|
|
22739
|
-
}
|
|
22740
|
-
|
|
22741
23189
|
// node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
22742
23190
|
import $3DjNB$react from "react";
|
|
22743
23191
|
|
|
@@ -22837,90 +23285,6 @@ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
|
22837
23285
|
|
|
22838
23286
|
// node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
22839
23287
|
import $6vYhU$react from "react";
|
|
22840
|
-
|
|
22841
|
-
// node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
22842
|
-
import { useCallback as $3vqmr$useCallback } from "react";
|
|
22843
|
-
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
22844
|
-
if (typeof ref === "function") ref(value);
|
|
22845
|
-
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
22846
|
-
}
|
|
22847
|
-
function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
22848
|
-
return (node) => refs.forEach(
|
|
22849
|
-
(ref) => $6ed0406888f73fc4$var$setRef(ref, node)
|
|
22850
|
-
);
|
|
22851
|
-
}
|
|
22852
|
-
function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
22853
|
-
return $3vqmr$useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
22854
|
-
}
|
|
22855
|
-
|
|
22856
|
-
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
22857
|
-
import { forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment } from "react";
|
|
22858
|
-
var $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ $9IrjX$forwardRef((props, forwardedRef) => {
|
|
22859
|
-
const { children, ...slotProps } = props;
|
|
22860
|
-
const childrenArray = $9IrjX$Children.toArray(children);
|
|
22861
|
-
const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
|
|
22862
|
-
if (slottable) {
|
|
22863
|
-
const newElement = slottable.props.children;
|
|
22864
|
-
const newChildren = childrenArray.map((child) => {
|
|
22865
|
-
if (child === slottable) {
|
|
22866
|
-
if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);
|
|
22867
|
-
return /* @__PURE__ */ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;
|
|
22868
|
-
} else return child;
|
|
22869
|
-
});
|
|
22870
|
-
return /* @__PURE__ */ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
22871
|
-
ref: forwardedRef
|
|
22872
|
-
}), /* @__PURE__ */ $9IrjX$isValidElement(newElement) ? /* @__PURE__ */ $9IrjX$cloneElement(newElement, void 0, newChildren) : null);
|
|
22873
|
-
}
|
|
22874
|
-
return /* @__PURE__ */ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
22875
|
-
ref: forwardedRef
|
|
22876
|
-
}), children);
|
|
22877
|
-
});
|
|
22878
|
-
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
|
|
22879
|
-
var $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ $9IrjX$forwardRef((props, forwardedRef) => {
|
|
22880
|
-
const { children, ...slotProps } = props;
|
|
22881
|
-
if (/* @__PURE__ */ $9IrjX$isValidElement(children)) return /* @__PURE__ */ $9IrjX$cloneElement(children, {
|
|
22882
|
-
...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
|
|
22883
|
-
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
22884
|
-
});
|
|
22885
|
-
return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;
|
|
22886
|
-
});
|
|
22887
|
-
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
22888
|
-
var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children }) => {
|
|
22889
|
-
return /* @__PURE__ */ $9IrjX$createElement($9IrjX$Fragment, null, children);
|
|
22890
|
-
};
|
|
22891
|
-
function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
22892
|
-
return /* @__PURE__ */ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
|
|
22893
|
-
}
|
|
22894
|
-
function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
22895
|
-
const overrideProps = {
|
|
22896
|
-
...childProps
|
|
22897
|
-
};
|
|
22898
|
-
for (const propName in childProps) {
|
|
22899
|
-
const slotPropValue = slotProps[propName];
|
|
22900
|
-
const childPropValue = childProps[propName];
|
|
22901
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
22902
|
-
if (isHandler) {
|
|
22903
|
-
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
22904
|
-
childPropValue(...args);
|
|
22905
|
-
slotPropValue(...args);
|
|
22906
|
-
};
|
|
22907
|
-
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
22908
|
-
} else if (propName === "style") overrideProps[propName] = {
|
|
22909
|
-
...slotPropValue,
|
|
22910
|
-
...childPropValue
|
|
22911
|
-
};
|
|
22912
|
-
else if (propName === "className") overrideProps[propName] = [
|
|
22913
|
-
slotPropValue,
|
|
22914
|
-
childPropValue
|
|
22915
|
-
].filter(Boolean).join(" ");
|
|
22916
|
-
}
|
|
22917
|
-
return {
|
|
22918
|
-
...slotProps,
|
|
22919
|
-
...overrideProps
|
|
22920
|
-
};
|
|
22921
|
-
}
|
|
22922
|
-
|
|
22923
|
-
// node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
22924
23288
|
function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
22925
23289
|
const PROVIDER_NAME2 = name + "CollectionProvider";
|
|
22926
23290
|
const [createCollectionContext, createCollectionScope2] = $c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME2);
|
|
@@ -23674,6 +24038,7 @@ var Icon_default = {
|
|
|
23674
24038
|
};
|
|
23675
24039
|
|
|
23676
24040
|
// src/components/Icon.tsx
|
|
24041
|
+
import { jsx } from "react/jsx-runtime";
|
|
23677
24042
|
function Icon({
|
|
23678
24043
|
size = "sm",
|
|
23679
24044
|
variant,
|
|
@@ -23683,22 +24048,22 @@ function Icon({
|
|
|
23683
24048
|
children,
|
|
23684
24049
|
...props
|
|
23685
24050
|
}) {
|
|
23686
|
-
return /* @__PURE__ */
|
|
24051
|
+
return /* @__PURE__ */ jsx(
|
|
23687
24052
|
$5e63c961fc1ce211$export$8c6ed5c666ac1360,
|
|
23688
24053
|
{
|
|
23689
24054
|
...props,
|
|
23690
24055
|
className: (0, import_classnames.default)(Icon_default.icon, className, size && Icon_default[size]),
|
|
23691
|
-
style: { ...style, transform: rotate ? `rotate(${rotate}deg)` : void 0 }
|
|
23692
|
-
|
|
23693
|
-
|
|
24056
|
+
style: { ...style, transform: rotate ? `rotate(${rotate}deg)` : void 0 },
|
|
24057
|
+
children
|
|
24058
|
+
}
|
|
23694
24059
|
);
|
|
23695
24060
|
}
|
|
23696
24061
|
|
|
23697
24062
|
// node_modules/react-icons/lib/iconBase.mjs
|
|
23698
|
-
import
|
|
24063
|
+
import React2 from "react";
|
|
23699
24064
|
|
|
23700
24065
|
// node_modules/react-icons/lib/iconContext.mjs
|
|
23701
|
-
import
|
|
24066
|
+
import React from "react";
|
|
23702
24067
|
var DefaultContext = {
|
|
23703
24068
|
color: void 0,
|
|
23704
24069
|
size: void 0,
|
|
@@ -23706,7 +24071,7 @@ var DefaultContext = {
|
|
|
23706
24071
|
style: void 0,
|
|
23707
24072
|
attr: void 0
|
|
23708
24073
|
};
|
|
23709
|
-
var IconContext =
|
|
24074
|
+
var IconContext = React.createContext && /* @__PURE__ */ React.createContext(DefaultContext);
|
|
23710
24075
|
|
|
23711
24076
|
// node_modules/react-icons/lib/iconBase.mjs
|
|
23712
24077
|
var _excluded = ["attr", "size", "title"];
|
|
@@ -23795,12 +24160,12 @@ function _toPrimitive(t, r2) {
|
|
|
23795
24160
|
return ("string" === r2 ? String : Number)(t);
|
|
23796
24161
|
}
|
|
23797
24162
|
function Tree2Element(tree) {
|
|
23798
|
-
return tree && tree.map((node, i) => /* @__PURE__ */
|
|
24163
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ React2.createElement(node.tag, _objectSpread({
|
|
23799
24164
|
key: i
|
|
23800
24165
|
}, node.attr), Tree2Element(node.child)));
|
|
23801
24166
|
}
|
|
23802
24167
|
function GenIcon(data) {
|
|
23803
|
-
return (props) => /* @__PURE__ */
|
|
24168
|
+
return (props) => /* @__PURE__ */ React2.createElement(IconBase, _extends2({
|
|
23804
24169
|
attr: _objectSpread({}, data.attr)
|
|
23805
24170
|
}, props), Tree2Element(data.child));
|
|
23806
24171
|
}
|
|
@@ -23815,7 +24180,7 @@ function IconBase(props) {
|
|
|
23815
24180
|
var className;
|
|
23816
24181
|
if (conf.className) className = conf.className;
|
|
23817
24182
|
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
23818
|
-
return /* @__PURE__ */
|
|
24183
|
+
return /* @__PURE__ */ React2.createElement("svg", _extends2({
|
|
23819
24184
|
stroke: "currentColor",
|
|
23820
24185
|
fill: "currentColor",
|
|
23821
24186
|
strokeWidth: "0"
|
|
@@ -23827,9 +24192,9 @@ function IconBase(props) {
|
|
|
23827
24192
|
height: computedSize,
|
|
23828
24193
|
width: computedSize,
|
|
23829
24194
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23830
|
-
}), title && /* @__PURE__ */
|
|
24195
|
+
}), title && /* @__PURE__ */ React2.createElement("title", null, title), props.children);
|
|
23831
24196
|
};
|
|
23832
|
-
return IconContext !== void 0 ? /* @__PURE__ */
|
|
24197
|
+
return IconContext !== void 0 ? /* @__PURE__ */ React2.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
23833
24198
|
}
|
|
23834
24199
|
|
|
23835
24200
|
// node_modules/react-icons/pi/index.mjs
|
|
@@ -23943,22 +24308,26 @@ var Accordion_default = {
|
|
|
23943
24308
|
};
|
|
23944
24309
|
|
|
23945
24310
|
// src/components/Accordion.tsx
|
|
24311
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
23946
24312
|
function Accordion({ className, children, ...props }) {
|
|
23947
|
-
return /* @__PURE__ */
|
|
24313
|
+
return /* @__PURE__ */ jsx2($1bf158f521e1b1b4$export$be92b6f5f03c0fe9, { ...props, className: (0, import_classnames2.default)(Accordion_default.accordion, className), children });
|
|
23948
24314
|
}
|
|
23949
24315
|
function AccordionItem({ className, children, ...props }) {
|
|
23950
|
-
return /* @__PURE__ */
|
|
24316
|
+
return /* @__PURE__ */ jsx2($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { ...props, className: (0, import_classnames2.default)(Accordion_default.item, className), children });
|
|
23951
24317
|
}
|
|
23952
24318
|
function AccordionHeader({ children, className, ...props }) {
|
|
23953
|
-
return /* @__PURE__ */
|
|
24319
|
+
return /* @__PURE__ */ jsx2($1bf158f521e1b1b4$export$8b251419efc915eb, { ...props, className: (0, import_classnames2.default)(Accordion_default.header, className), children: /* @__PURE__ */ jsxs($1bf158f521e1b1b4$export$41fb9f06171c75f4, { className: Accordion_default.trigger, children: [
|
|
24320
|
+
children,
|
|
24321
|
+
/* @__PURE__ */ jsx2(Icon, { className: Accordion_default.icon, size: "sm", children: /* @__PURE__ */ jsx2(Icons.Chevron, {}) })
|
|
24322
|
+
] }) });
|
|
23954
24323
|
}
|
|
23955
24324
|
function AccordionContent({ children, className, ...props }) {
|
|
23956
|
-
return /* @__PURE__ */
|
|
24325
|
+
return /* @__PURE__ */ jsx2($1bf158f521e1b1b4$export$7c6e2c02157bb7d2, { ...props, className: (0, import_classnames2.default)(Accordion_default.content, className), children });
|
|
23957
24326
|
}
|
|
23958
24327
|
|
|
23959
24328
|
// src/components/AlertBanner.tsx
|
|
23960
24329
|
var import_classnames3 = __toESM(require_classnames());
|
|
23961
|
-
import
|
|
24330
|
+
import { createElement } from "react";
|
|
23962
24331
|
|
|
23963
24332
|
// src/components/AlertBanner.module.css
|
|
23964
24333
|
var AlertBanner_default = {
|
|
@@ -23971,6 +24340,7 @@ var AlertBanner_default = {
|
|
|
23971
24340
|
};
|
|
23972
24341
|
|
|
23973
24342
|
// src/components/AlertBanner.tsx
|
|
24343
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
23974
24344
|
function AlertBanner({
|
|
23975
24345
|
title,
|
|
23976
24346
|
description,
|
|
@@ -23982,7 +24352,15 @@ function AlertBanner({
|
|
|
23982
24352
|
className,
|
|
23983
24353
|
...props
|
|
23984
24354
|
}) {
|
|
23985
|
-
return /* @__PURE__ */
|
|
24355
|
+
return /* @__PURE__ */ jsxs2("div", { ...props, className: (0, import_classnames3.default)(AlertBanner_default.banner, className, variant && AlertBanner_default[variant]), children: [
|
|
24356
|
+
(icon || variant) && /* @__PURE__ */ jsx3(Icon, { size: "md", children: variant ? createElement(AlertIcons[variant]) : icon }),
|
|
24357
|
+
/* @__PURE__ */ jsxs2("div", { className: AlertBanner_default.message, children: [
|
|
24358
|
+
/* @__PURE__ */ jsx3("div", { className: AlertBanner_default.title, children: title }),
|
|
24359
|
+
description && /* @__PURE__ */ jsx3("div", { className: AlertBanner_default.description, children: description })
|
|
24360
|
+
] }),
|
|
24361
|
+
children,
|
|
24362
|
+
allowClose && /* @__PURE__ */ jsx3(Icon, { className: AlertBanner_default.close, onClick: onClose, children: /* @__PURE__ */ jsx3(Icons.Close, {}) })
|
|
24363
|
+
] });
|
|
23986
24364
|
}
|
|
23987
24365
|
var AlertIcons = {
|
|
23988
24366
|
error: Icons.Alert,
|
|
@@ -23990,7 +24368,7 @@ var AlertIcons = {
|
|
|
23990
24368
|
};
|
|
23991
24369
|
|
|
23992
24370
|
// src/components/AlertDialog.tsx
|
|
23993
|
-
var
|
|
24371
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
23994
24372
|
|
|
23995
24373
|
// src/components/Dialog.tsx
|
|
23996
24374
|
var import_classnames4 = __toESM(require_classnames());
|
|
@@ -24002,15 +24380,76 @@ var Dialog_default = {
|
|
|
24002
24380
|
};
|
|
24003
24381
|
|
|
24004
24382
|
// src/components/Dialog.tsx
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
|
|
24008
|
-
|
|
24383
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
24384
|
+
function Dialog({ title, children, className, ...props }) {
|
|
24385
|
+
return /* @__PURE__ */ jsx4($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames4.default)(Dialog_default.dialog, className), children: ({ close }) => {
|
|
24386
|
+
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
24387
|
+
title && /* @__PURE__ */ jsx4("div", { className: Dialog_default.title, children: title }),
|
|
24388
|
+
typeof children === "function" ? children({ close }) : children
|
|
24389
|
+
] });
|
|
24390
|
+
} });
|
|
24009
24391
|
}
|
|
24010
24392
|
|
|
24011
24393
|
// src/components/Flexbox.tsx
|
|
24394
|
+
var import_classnames6 = __toESM(require_classnames());
|
|
24395
|
+
|
|
24396
|
+
// src/components/Box.tsx
|
|
24012
24397
|
var import_classnames5 = __toESM(require_classnames());
|
|
24013
24398
|
|
|
24399
|
+
// src/components/Box.module.css
|
|
24400
|
+
var Box_default = {
|
|
24401
|
+
"font-size-xs": "Box_font-size-xs",
|
|
24402
|
+
"font-size-sm": "Box_font-size-sm",
|
|
24403
|
+
"font-size-md": "Box_font-size-md",
|
|
24404
|
+
"font-size-lg": "Box_font-size-lg",
|
|
24405
|
+
"font-size-xl": "Box_font-size-xl",
|
|
24406
|
+
"border-radius-sm": "Box_border-radius-sm",
|
|
24407
|
+
"border-radius-md": "Box_border-radius-md",
|
|
24408
|
+
"border-radius-lg": "Box_border-radius-lg",
|
|
24409
|
+
"border-radius-full": "Box_border-radius-full",
|
|
24410
|
+
"gap-xs": "Box_gap-xs",
|
|
24411
|
+
"gap-sm": "Box_gap-sm",
|
|
24412
|
+
"gap-md": "Box_gap-md",
|
|
24413
|
+
"gap-lg": "Box_gap-lg",
|
|
24414
|
+
"gap-xl": "Box_gap-xl",
|
|
24415
|
+
"shadow-1": "Box_shadow-1",
|
|
24416
|
+
"shadow-2": "Box_shadow-2",
|
|
24417
|
+
"shadow-3": "Box_shadow-3",
|
|
24418
|
+
"shadow-4": "Box_shadow-4",
|
|
24419
|
+
"shadow-5": "Box_shadow-5",
|
|
24420
|
+
"shadow-6": "Box_shadow-6"
|
|
24421
|
+
};
|
|
24422
|
+
|
|
24423
|
+
// src/components/Box.tsx
|
|
24424
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
24425
|
+
function Box({
|
|
24426
|
+
className,
|
|
24427
|
+
spacing,
|
|
24428
|
+
fontSize,
|
|
24429
|
+
borderRadius,
|
|
24430
|
+
shadow,
|
|
24431
|
+
gap,
|
|
24432
|
+
asChild,
|
|
24433
|
+
children,
|
|
24434
|
+
...props
|
|
24435
|
+
}) {
|
|
24436
|
+
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "div";
|
|
24437
|
+
return /* @__PURE__ */ jsx5(
|
|
24438
|
+
Component,
|
|
24439
|
+
{
|
|
24440
|
+
...props,
|
|
24441
|
+
className: (0, import_classnames5.default)(
|
|
24442
|
+
className,
|
|
24443
|
+
fontSize && Box_default[`font-size-${fontSize}`],
|
|
24444
|
+
gap && Box_default[`gap-${gap}`],
|
|
24445
|
+
shadow && Box_default[`shadow-${shadow}`],
|
|
24446
|
+
spacing && Box_default[`spacing-${spacing}`]
|
|
24447
|
+
),
|
|
24448
|
+
children
|
|
24449
|
+
}
|
|
24450
|
+
);
|
|
24451
|
+
}
|
|
24452
|
+
|
|
24014
24453
|
// src/components/Flexbox.module.css
|
|
24015
24454
|
var Flexbox_default = {
|
|
24016
24455
|
flexbox: "Flexbox_flexbox",
|
|
@@ -24105,6 +24544,7 @@ var Flexbox_default = {
|
|
|
24105
24544
|
};
|
|
24106
24545
|
|
|
24107
24546
|
// src/components/Flexbox.tsx
|
|
24547
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
24108
24548
|
function Flexbox({
|
|
24109
24549
|
inline,
|
|
24110
24550
|
direction,
|
|
@@ -24114,8 +24554,6 @@ function Flexbox({
|
|
|
24114
24554
|
alignContent,
|
|
24115
24555
|
alignItems,
|
|
24116
24556
|
alignSelf,
|
|
24117
|
-
gap,
|
|
24118
|
-
order,
|
|
24119
24557
|
grow,
|
|
24120
24558
|
shrink,
|
|
24121
24559
|
basis,
|
|
@@ -24123,13 +24561,13 @@ function Flexbox({
|
|
|
24123
24561
|
style,
|
|
24124
24562
|
className,
|
|
24125
24563
|
children,
|
|
24126
|
-
...
|
|
24564
|
+
...props
|
|
24127
24565
|
}) {
|
|
24128
|
-
return /* @__PURE__ */
|
|
24129
|
-
|
|
24566
|
+
return /* @__PURE__ */ jsx6(
|
|
24567
|
+
Box,
|
|
24130
24568
|
{
|
|
24131
|
-
...
|
|
24132
|
-
className: (0,
|
|
24569
|
+
...props,
|
|
24570
|
+
className: (0, import_classnames6.default)(
|
|
24133
24571
|
Flexbox_default.flexbox,
|
|
24134
24572
|
className,
|
|
24135
24573
|
direction && Flexbox_default[direction],
|
|
@@ -24139,12 +24577,11 @@ function Flexbox({
|
|
|
24139
24577
|
alignContent && Flexbox_default[`align-content-${replace(alignContent)}`],
|
|
24140
24578
|
alignItems && Flexbox_default[`align-items-${replace(alignItems)}`],
|
|
24141
24579
|
alignSelf && Flexbox_default[`align-self-${replace(alignSelf)}`],
|
|
24142
|
-
inline && Flexbox_default.inline
|
|
24143
|
-
spacing && Flexbox_default[`spacing${spacing}`]
|
|
24580
|
+
inline && Flexbox_default.inline
|
|
24144
24581
|
),
|
|
24145
|
-
style: {
|
|
24146
|
-
|
|
24147
|
-
|
|
24582
|
+
style: { flexBasis: basis, flexGrow: grow, flexShrink: shrink, ...style },
|
|
24583
|
+
children
|
|
24584
|
+
}
|
|
24148
24585
|
);
|
|
24149
24586
|
}
|
|
24150
24587
|
function replace(s) {
|
|
@@ -24152,18 +24589,19 @@ function replace(s) {
|
|
|
24152
24589
|
}
|
|
24153
24590
|
|
|
24154
24591
|
// src/components/Column.tsx
|
|
24592
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
24155
24593
|
function Column({ reverse, children, ...props }) {
|
|
24156
|
-
return /* @__PURE__ */
|
|
24594
|
+
return /* @__PURE__ */ jsx7(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
24157
24595
|
}
|
|
24158
24596
|
|
|
24159
24597
|
// src/components/Row.tsx
|
|
24598
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
24160
24599
|
function Row({ reverse, children, ...props }) {
|
|
24161
|
-
return /* @__PURE__ */
|
|
24600
|
+
return /* @__PURE__ */ jsx8(Flexbox, { ...props, direction: reverse ? "row-reverse" : "row", children });
|
|
24162
24601
|
}
|
|
24163
24602
|
|
|
24164
24603
|
// src/components/Button.tsx
|
|
24165
|
-
|
|
24166
|
-
var import_classnames6 = __toESM(require_classnames());
|
|
24604
|
+
var import_classnames7 = __toESM(require_classnames());
|
|
24167
24605
|
|
|
24168
24606
|
// src/components/Button.module.css
|
|
24169
24607
|
var Button_default = {
|
|
@@ -24176,11 +24614,13 @@ var Button_default = {
|
|
|
24176
24614
|
xs: "Button_xs",
|
|
24177
24615
|
sm: "Button_sm",
|
|
24178
24616
|
md: "Button_md",
|
|
24179
|
-
lg: "Button_lg"
|
|
24617
|
+
lg: "Button_lg",
|
|
24618
|
+
xl: "Button_xl"
|
|
24180
24619
|
};
|
|
24181
24620
|
|
|
24182
24621
|
// src/components/Button.tsx
|
|
24183
|
-
|
|
24622
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
24623
|
+
function Button({
|
|
24184
24624
|
variant = "secondary",
|
|
24185
24625
|
size = "md",
|
|
24186
24626
|
preventFocusOnPress = true,
|
|
@@ -24190,19 +24630,19 @@ function _Button({
|
|
|
24190
24630
|
...props
|
|
24191
24631
|
}) {
|
|
24192
24632
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
24193
|
-
return /* @__PURE__ */
|
|
24633
|
+
return /* @__PURE__ */ jsx9(
|
|
24194
24634
|
Component,
|
|
24195
24635
|
{
|
|
24196
24636
|
...props,
|
|
24197
|
-
preventFocusOnPress,
|
|
24198
|
-
className: (0,
|
|
24637
|
+
preventFocusOnPress: Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? preventFocusOnPress : void 0,
|
|
24638
|
+
className: (0, import_classnames7.default)(
|
|
24199
24639
|
Button_default.button,
|
|
24200
24640
|
className,
|
|
24201
24641
|
variant && Button_default[variant],
|
|
24202
24642
|
size && Button_default[size]
|
|
24203
|
-
)
|
|
24204
|
-
|
|
24205
|
-
|
|
24643
|
+
),
|
|
24644
|
+
children
|
|
24645
|
+
}
|
|
24206
24646
|
);
|
|
24207
24647
|
}
|
|
24208
24648
|
|
|
@@ -24213,6 +24653,7 @@ var AlertDialog_default = {
|
|
|
24213
24653
|
};
|
|
24214
24654
|
|
|
24215
24655
|
// src/components/AlertDialog.tsx
|
|
24656
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
24216
24657
|
function AlertDialog({
|
|
24217
24658
|
title,
|
|
24218
24659
|
description,
|
|
@@ -24234,21 +24675,27 @@ function AlertDialog({
|
|
|
24234
24675
|
onCancel?.();
|
|
24235
24676
|
close();
|
|
24236
24677
|
};
|
|
24237
|
-
return /* @__PURE__ */
|
|
24238
|
-
return /* @__PURE__ */
|
|
24239
|
-
|
|
24240
|
-
{
|
|
24241
|
-
|
|
24242
|
-
|
|
24243
|
-
|
|
24244
|
-
|
|
24245
|
-
|
|
24246
|
-
|
|
24247
|
-
|
|
24678
|
+
return /* @__PURE__ */ jsx10(Dialog, { ...props, title, className: (0, import_classnames8.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
24679
|
+
return /* @__PURE__ */ jsxs4(Column, { spacing: 6, children: [
|
|
24680
|
+
typeof children === "function" ? children({ close }) : children,
|
|
24681
|
+
/* @__PURE__ */ jsxs4(Row, { spacing: 3, justifyContent: "end", children: [
|
|
24682
|
+
/* @__PURE__ */ jsx10(Button, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
24683
|
+
/* @__PURE__ */ jsx10(
|
|
24684
|
+
Button,
|
|
24685
|
+
{
|
|
24686
|
+
variant: isDanger ? "danger" : "primary",
|
|
24687
|
+
isDisabled: isConfirmDisabled,
|
|
24688
|
+
onPress: () => handleConfirm(close),
|
|
24689
|
+
children: confirmLabel
|
|
24690
|
+
}
|
|
24691
|
+
)
|
|
24692
|
+
] })
|
|
24693
|
+
] });
|
|
24694
|
+
} });
|
|
24248
24695
|
}
|
|
24249
24696
|
|
|
24250
24697
|
// src/components/Breadcrumbs.tsx
|
|
24251
|
-
var
|
|
24698
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
24252
24699
|
|
|
24253
24700
|
// src/components/Breadcrumbs.module.css
|
|
24254
24701
|
var Breadcrumbs_default = {
|
|
@@ -24258,15 +24705,19 @@ var Breadcrumbs_default = {
|
|
|
24258
24705
|
};
|
|
24259
24706
|
|
|
24260
24707
|
// src/components/Breadcrumbs.tsx
|
|
24261
|
-
|
|
24262
|
-
|
|
24708
|
+
import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
24709
|
+
function Breadcrumbs({ children, className, ...props }) {
|
|
24710
|
+
return /* @__PURE__ */ jsx11($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames9.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
24263
24711
|
}
|
|
24264
|
-
function
|
|
24265
|
-
return /* @__PURE__ */
|
|
24712
|
+
function Breadcrumb2({ children, className, ...props }) {
|
|
24713
|
+
return /* @__PURE__ */ jsxs5($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames9.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
24714
|
+
children,
|
|
24715
|
+
/* @__PURE__ */ jsx11(Icon, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ jsx11(Icons.Chevron, {}) })
|
|
24716
|
+
] });
|
|
24266
24717
|
}
|
|
24267
24718
|
|
|
24268
24719
|
// src/components/Calendar.tsx
|
|
24269
|
-
var
|
|
24720
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
24270
24721
|
|
|
24271
24722
|
// src/components/Calendar.module.css
|
|
24272
24723
|
var Calendar_default = {
|
|
@@ -24279,12 +24730,23 @@ var Calendar_default = {
|
|
|
24279
24730
|
};
|
|
24280
24731
|
|
|
24281
24732
|
// src/components/Calendar.tsx
|
|
24282
|
-
|
|
24283
|
-
|
|
24733
|
+
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
24734
|
+
function Calendar({ className, ...props }) {
|
|
24735
|
+
return /* @__PURE__ */ jsxs6($dfd62f934fc76fed$export$e1aef45b828286de, { ...props, className: (0, import_classnames10.default)(Calendar_default.calendar, className), children: [
|
|
24736
|
+
/* @__PURE__ */ jsxs6("header", { className: Calendar_default.header, children: [
|
|
24737
|
+
/* @__PURE__ */ jsx12(Button, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx12(Icon, { rotate: 180, children: /* @__PURE__ */ jsx12(Icons.Chevron, {}) }) }),
|
|
24738
|
+
/* @__PURE__ */ jsx12($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
24739
|
+
/* @__PURE__ */ jsx12(Button, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx12(Icon, { children: /* @__PURE__ */ jsx12(Icons.Chevron, {}) }) })
|
|
24740
|
+
] }),
|
|
24741
|
+
/* @__PURE__ */ jsxs6($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
24742
|
+
/* @__PURE__ */ jsx12($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ jsx12($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
24743
|
+
/* @__PURE__ */ jsx12($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ jsx12($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
24744
|
+
] })
|
|
24745
|
+
] });
|
|
24284
24746
|
}
|
|
24285
24747
|
|
|
24286
24748
|
// src/components/Checkbox.tsx
|
|
24287
|
-
var
|
|
24749
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
24288
24750
|
|
|
24289
24751
|
// src/components/Checkbox.module.css
|
|
24290
24752
|
var Checkbox_default = {
|
|
@@ -24294,20 +24756,24 @@ var Checkbox_default = {
|
|
|
24294
24756
|
};
|
|
24295
24757
|
|
|
24296
24758
|
// src/components/Checkbox.tsx
|
|
24297
|
-
|
|
24298
|
-
|
|
24299
|
-
|
|
24300
|
-
|
|
24759
|
+
import { Fragment as Fragment2, jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
24760
|
+
function Checkbox({ className, children, ...props }) {
|
|
24761
|
+
return /* @__PURE__ */ jsx13($bc237834342dbd75$export$48513f6b9f8ce62d, { ...props, className: (0, import_classnames11.default)(Checkbox_default.checkbox, className), children: ({ isIndeterminate, isSelected }) => {
|
|
24762
|
+
return /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
24763
|
+
/* @__PURE__ */ jsx13("div", { className: Checkbox_default.box, children: /* @__PURE__ */ jsx13(Icon, { className: Checkbox_default.icon, size: "xs", children: isIndeterminate ? /* @__PURE__ */ jsx13(Icons.Minus, {}) : isSelected ? /* @__PURE__ */ jsx13(Icons.Check, {}) : null }) }),
|
|
24764
|
+
children
|
|
24765
|
+
] });
|
|
24766
|
+
} });
|
|
24301
24767
|
}
|
|
24302
24768
|
|
|
24303
24769
|
// src/components/Combobox.tsx
|
|
24304
|
-
var
|
|
24770
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
24305
24771
|
|
|
24306
24772
|
// src/components/List.tsx
|
|
24307
|
-
var
|
|
24773
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
24308
24774
|
|
|
24309
24775
|
// src/components/ListItem.tsx
|
|
24310
|
-
var
|
|
24776
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
24311
24777
|
|
|
24312
24778
|
// src/components/ListItem.module.css
|
|
24313
24779
|
var ListItem_default = {
|
|
@@ -24316,10 +24782,13 @@ var ListItem_default = {
|
|
|
24316
24782
|
};
|
|
24317
24783
|
|
|
24318
24784
|
// src/components/ListItem.tsx
|
|
24785
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
24319
24786
|
function ListItem({ children, className, ...props }) {
|
|
24320
|
-
return /* @__PURE__ */
|
|
24787
|
+
return /* @__PURE__ */ jsxs8($eed445e0843c11d0$export$a11e76429ed99b4, { ...props, className: (0, import_classnames12.default)(ListItem_default.item, className), children: [
|
|
24788
|
+
children,
|
|
24789
|
+
/* @__PURE__ */ jsx14("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx14(Icon, { size: "sm", className: ListItem_default.check, children: /* @__PURE__ */ jsx14(Icons.Check, {}) }) })
|
|
24790
|
+
] });
|
|
24321
24791
|
}
|
|
24322
|
-
var ListItem_default2 = ListItem;
|
|
24323
24792
|
|
|
24324
24793
|
// src/components/List.module.css
|
|
24325
24794
|
var List_default = {
|
|
@@ -24328,17 +24797,18 @@ var List_default = {
|
|
|
24328
24797
|
};
|
|
24329
24798
|
|
|
24330
24799
|
// src/components/List.tsx
|
|
24800
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
24331
24801
|
function List({ items, className, children, ...props }) {
|
|
24332
|
-
return /* @__PURE__ */
|
|
24802
|
+
return /* @__PURE__ */ jsx15($eed445e0843c11d0$export$41f133550aa26f48, { ...props, items, className: (0, import_classnames13.default)(List_default.list, className), children: children || items?.map((item, index) => {
|
|
24333
24803
|
if (item === null) {
|
|
24334
|
-
return /* @__PURE__ */
|
|
24804
|
+
return /* @__PURE__ */ jsx15($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }, index);
|
|
24335
24805
|
}
|
|
24336
|
-
return /* @__PURE__ */
|
|
24337
|
-
}));
|
|
24806
|
+
return /* @__PURE__ */ jsx15(ListItem, { id: item, children: item }, index);
|
|
24807
|
+
}) });
|
|
24338
24808
|
}
|
|
24339
24809
|
|
|
24340
24810
|
// src/components/Popover.tsx
|
|
24341
|
-
var
|
|
24811
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
24342
24812
|
|
|
24343
24813
|
// src/components/Popover.module.css
|
|
24344
24814
|
var Popover_default = {
|
|
@@ -24347,8 +24817,9 @@ var Popover_default = {
|
|
|
24347
24817
|
};
|
|
24348
24818
|
|
|
24349
24819
|
// src/components/Popover.tsx
|
|
24350
|
-
|
|
24351
|
-
|
|
24820
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
24821
|
+
function Popover({ children, className, ...props }) {
|
|
24822
|
+
return /* @__PURE__ */ jsx16($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames14.default)(Popover_default.popover, className), children });
|
|
24352
24823
|
}
|
|
24353
24824
|
|
|
24354
24825
|
// src/components/Combobox.module.css
|
|
@@ -24362,20 +24833,27 @@ var Combobox_default = {
|
|
|
24362
24833
|
};
|
|
24363
24834
|
|
|
24364
24835
|
// src/components/Combobox.tsx
|
|
24836
|
+
import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
24365
24837
|
function Combobox({ items, className, ...props }) {
|
|
24366
|
-
return /* @__PURE__ */
|
|
24838
|
+
return /* @__PURE__ */ jsxs9($d01f2c01039c0eec$export$72b9695b8216309a, { ...props, className: (0, import_classnames15.default)(Combobox_default.combobox, className), children: [
|
|
24839
|
+
/* @__PURE__ */ jsxs9("div", { className: Combobox_default.field, children: [
|
|
24840
|
+
/* @__PURE__ */ jsx17($3985021b0ad6602f$export$f5b8910cec6cf069, { className: Combobox_default.input }),
|
|
24841
|
+
/* @__PURE__ */ jsx17($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: Combobox_default.button, children: /* @__PURE__ */ jsx17(Icon, { rotate: 90, size: "xs", className: Combobox_default.icon, children: /* @__PURE__ */ jsx17(Icons.Chevron, {}) }) })
|
|
24842
|
+
] }),
|
|
24843
|
+
/* @__PURE__ */ jsx17(Popover, { children: /* @__PURE__ */ jsx17(List, { items, className: Combobox_default.list, children: items.map((item) => /* @__PURE__ */ jsx17(ListItem, { textValue: item, children: item }, item)) }) })
|
|
24844
|
+
] });
|
|
24367
24845
|
}
|
|
24368
24846
|
|
|
24369
24847
|
// src/components/ConfirmationDialog.tsx
|
|
24370
|
-
var
|
|
24848
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
24371
24849
|
import { useState as useState5 } from "react";
|
|
24372
24850
|
|
|
24373
24851
|
// src/components/TextField.tsx
|
|
24374
24852
|
import { useState as useState4 } from "react";
|
|
24375
|
-
var
|
|
24853
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
24376
24854
|
|
|
24377
24855
|
// src/components/CopyButton.tsx
|
|
24378
|
-
var
|
|
24856
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
24379
24857
|
import { useState as useState3, useRef } from "react";
|
|
24380
24858
|
|
|
24381
24859
|
// src/components/CopyButton.module.css
|
|
@@ -24385,6 +24863,7 @@ var CopyButton_default = {
|
|
|
24385
24863
|
};
|
|
24386
24864
|
|
|
24387
24865
|
// src/components/CopyButton.tsx
|
|
24866
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
24388
24867
|
var TIMEOUT = 2e3;
|
|
24389
24868
|
function CopyButton({ value, className, children, ...props }) {
|
|
24390
24869
|
const [copied, setCopied] = useState3(false);
|
|
@@ -24397,7 +24876,7 @@ function CopyButton({ value, className, children, ...props }) {
|
|
|
24397
24876
|
timeout.current = +setTimeout(() => setCopied(false), TIMEOUT);
|
|
24398
24877
|
}
|
|
24399
24878
|
};
|
|
24400
|
-
return /* @__PURE__ */
|
|
24879
|
+
return /* @__PURE__ */ jsx18(Icon, { ...props, className: (0, import_classnames16.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx18(Icons.Check, {}) : /* @__PURE__ */ jsx18(Icons.Copy, {}) });
|
|
24401
24880
|
}
|
|
24402
24881
|
|
|
24403
24882
|
// src/components/Field.module.css
|
|
@@ -24414,7 +24893,8 @@ var TextField_default = {
|
|
|
24414
24893
|
};
|
|
24415
24894
|
|
|
24416
24895
|
// src/components/TextField.tsx
|
|
24417
|
-
|
|
24896
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
24897
|
+
function TextField({
|
|
24418
24898
|
value,
|
|
24419
24899
|
defaultValue,
|
|
24420
24900
|
asTextArea,
|
|
@@ -24429,18 +24909,21 @@ function _TextField({
|
|
|
24429
24909
|
setInputValue(e.target.value);
|
|
24430
24910
|
return onChange?.(e);
|
|
24431
24911
|
};
|
|
24432
|
-
return /* @__PURE__ */
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24912
|
+
return /* @__PURE__ */ jsxs10($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, className: (0, import_classnames17.default)(Field_default.field, className), children: [
|
|
24913
|
+
/* @__PURE__ */ jsx19(
|
|
24914
|
+
Component,
|
|
24915
|
+
{
|
|
24916
|
+
value: inputValue,
|
|
24917
|
+
className: (0, import_classnames17.default)(Field_default.input, asTextArea && TextField_default.textarea),
|
|
24918
|
+
onChange: handleChange
|
|
24919
|
+
}
|
|
24920
|
+
),
|
|
24921
|
+
allowCopy && /* @__PURE__ */ jsx19(CopyButton, { className: TextField_default.copy, value: inputValue })
|
|
24922
|
+
] });
|
|
24440
24923
|
}
|
|
24441
24924
|
|
|
24442
24925
|
// src/components/Text.tsx
|
|
24443
|
-
var
|
|
24926
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
24444
24927
|
|
|
24445
24928
|
// src/components/Text.module.css
|
|
24446
24929
|
var Text_default = {
|
|
@@ -24463,22 +24946,23 @@ var Text_default = {
|
|
|
24463
24946
|
};
|
|
24464
24947
|
|
|
24465
24948
|
// src/components/Text.tsx
|
|
24949
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
24466
24950
|
function Text({ children, type, size, spacing, weight, asChild, className, ...props }) {
|
|
24467
24951
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "span";
|
|
24468
|
-
return /* @__PURE__ */
|
|
24952
|
+
return /* @__PURE__ */ jsx20(
|
|
24469
24953
|
Component,
|
|
24470
24954
|
{
|
|
24471
24955
|
...props,
|
|
24472
|
-
className: (0,
|
|
24956
|
+
className: (0, import_classnames18.default)(
|
|
24473
24957
|
Text_default.text,
|
|
24474
24958
|
className,
|
|
24475
24959
|
size && Text_default[size],
|
|
24476
24960
|
spacing && Text_default[spacing],
|
|
24477
24961
|
type && Text_default[type],
|
|
24478
24962
|
weight && Text_default[weight]
|
|
24479
|
-
)
|
|
24480
|
-
|
|
24481
|
-
|
|
24963
|
+
),
|
|
24964
|
+
children
|
|
24965
|
+
}
|
|
24482
24966
|
);
|
|
24483
24967
|
}
|
|
24484
24968
|
|
|
@@ -24489,6 +24973,7 @@ var ConfirmationDialog_default = {
|
|
|
24489
24973
|
};
|
|
24490
24974
|
|
|
24491
24975
|
// src/components/ConfirmationDialog.tsx
|
|
24976
|
+
import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
24492
24977
|
function ConfirmationDialog({
|
|
24493
24978
|
value,
|
|
24494
24979
|
confirmMessage,
|
|
@@ -24500,25 +24985,33 @@ function ConfirmationDialog({
|
|
|
24500
24985
|
const handleChange = (e) => {
|
|
24501
24986
|
setCanSave(e.target.value === value);
|
|
24502
24987
|
};
|
|
24503
|
-
return /* @__PURE__ */
|
|
24988
|
+
return /* @__PURE__ */ jsx21(
|
|
24504
24989
|
AlertDialog,
|
|
24505
24990
|
{
|
|
24506
24991
|
...props,
|
|
24507
|
-
className: (0,
|
|
24508
|
-
isConfirmDisabled: !canSave
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24992
|
+
className: (0, import_classnames19.default)(ConfirmationDialog_default.dialog, className),
|
|
24993
|
+
isConfirmDisabled: !canSave,
|
|
24994
|
+
children: ({ close }) => {
|
|
24995
|
+
return /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
24996
|
+
typeof children === "function" ? children({ close }) : children,
|
|
24997
|
+
/* @__PURE__ */ jsxs11(Text, { children: [
|
|
24998
|
+
confirmMessage || "Type the following value to confirm",
|
|
24999
|
+
":"
|
|
25000
|
+
] }),
|
|
25001
|
+
/* @__PURE__ */ jsx21("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
25002
|
+
/* @__PURE__ */ jsx21(TextField, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
25003
|
+
] });
|
|
25004
|
+
}
|
|
24512
25005
|
}
|
|
24513
25006
|
);
|
|
24514
25007
|
}
|
|
24515
25008
|
|
|
24516
25009
|
// src/components/DataTable.tsx
|
|
24517
|
-
var
|
|
25010
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
24518
25011
|
import { Children } from "react";
|
|
24519
25012
|
|
|
24520
25013
|
// src/components/Table.tsx
|
|
24521
|
-
var
|
|
25014
|
+
var import_classnames20 = __toESM(require_classnames());
|
|
24522
25015
|
|
|
24523
25016
|
// src/components/Table.module.css
|
|
24524
25017
|
var Table_default = {
|
|
@@ -24534,31 +25027,32 @@ var Table_default = {
|
|
|
24534
25027
|
};
|
|
24535
25028
|
|
|
24536
25029
|
// src/components/Table.tsx
|
|
24537
|
-
|
|
24538
|
-
|
|
25030
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
25031
|
+
function Table({ children, className, ...props }) {
|
|
25032
|
+
return /* @__PURE__ */ jsx22($1910c06f0ca9905e$export$54ec01a60f47d33d, { ...props, className: (0, import_classnames20.default)(Table_default.table, className), "aria-label": "Table", children });
|
|
24539
25033
|
}
|
|
24540
|
-
function
|
|
24541
|
-
return /* @__PURE__ */
|
|
25034
|
+
function TableHeader({ children, className, ...props }) {
|
|
25035
|
+
return /* @__PURE__ */ jsx22($1910c06f0ca9905e$export$f850895b287ef28e, { ...props, className: (0, import_classnames20.default)(Table_default.header, className), children });
|
|
24542
25036
|
}
|
|
24543
|
-
function
|
|
24544
|
-
return /* @__PURE__ */
|
|
25037
|
+
function TableBody({ children, className, ...props }) {
|
|
25038
|
+
return /* @__PURE__ */ jsx22($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames20.default)(Table_default.body, className), children });
|
|
24545
25039
|
}
|
|
24546
25040
|
function TableRow({ children, className, ...props }) {
|
|
24547
|
-
return /* @__PURE__ */
|
|
25041
|
+
return /* @__PURE__ */ jsx22($1910c06f0ca9905e$export$b59bdbef9ce70de2, { ...props, className: (0, import_classnames20.default)(Table_default.row, className), children });
|
|
24548
25042
|
}
|
|
24549
25043
|
function TableColumn({ children, className, alignment, ...props }) {
|
|
24550
|
-
return /* @__PURE__ */
|
|
25044
|
+
return /* @__PURE__ */ jsx22(
|
|
24551
25045
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
24552
25046
|
{
|
|
24553
25047
|
...props,
|
|
24554
|
-
className: (0,
|
|
24555
|
-
isRowHeader: true
|
|
24556
|
-
|
|
24557
|
-
|
|
25048
|
+
className: (0, import_classnames20.default)(Table_default.column, className, alignment && Table_default[alignment]),
|
|
25049
|
+
isRowHeader: true,
|
|
25050
|
+
children
|
|
25051
|
+
}
|
|
24558
25052
|
);
|
|
24559
25053
|
}
|
|
24560
25054
|
function TableCell({ children, className, alignment, ...props }) {
|
|
24561
|
-
return /* @__PURE__ */
|
|
25055
|
+
return /* @__PURE__ */ jsx22($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames20.default)(Table_default.cell, className, alignment && Table_default[alignment]), children });
|
|
24562
25056
|
}
|
|
24563
25057
|
|
|
24564
25058
|
// src/components/DataTable.module.css
|
|
@@ -24568,27 +25062,32 @@ var DataTable_default = {
|
|
|
24568
25062
|
};
|
|
24569
25063
|
|
|
24570
25064
|
// src/components/DataTable.tsx
|
|
25065
|
+
import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
25066
|
+
import { createElement as createElement2 } from "react";
|
|
24571
25067
|
function DataTable({ data = [], className, children, ...props }) {
|
|
24572
25068
|
const columns = Children.map(children, (child) => {
|
|
24573
25069
|
return { ...child.props, value: child.props.children };
|
|
24574
25070
|
});
|
|
24575
|
-
return /* @__PURE__ */
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
25071
|
+
return /* @__PURE__ */ jsxs12(Table, { ...props, className: (0, import_classnames21.default)(DataTable_default.datatable, className), children: [
|
|
25072
|
+
/* @__PURE__ */ jsx23(TableHeader, { children: columns.map(({ id, label, hidden, ...columnProps }) => {
|
|
25073
|
+
if (hidden) {
|
|
25074
|
+
return null;
|
|
25075
|
+
}
|
|
25076
|
+
return /* @__PURE__ */ createElement2(TableColumn, { ...columnProps, key: id, id }, label);
|
|
25077
|
+
}) }),
|
|
25078
|
+
/* @__PURE__ */ jsx23(TableBody, { items: data, children: (row) => {
|
|
25079
|
+
return /* @__PURE__ */ jsx23(TableRow, { children: columns.map(({ id, value, className: className2, ...cellProps }) => {
|
|
25080
|
+
return /* @__PURE__ */ createElement2(TableCell, { ...cellProps, key: id, className: (0, import_classnames21.default)(DataTable_default.cell, className2) }, !value && row[id], typeof value === "function" ? value(row, id) : value);
|
|
25081
|
+
}) });
|
|
25082
|
+
} })
|
|
25083
|
+
] });
|
|
24585
25084
|
}
|
|
24586
25085
|
function DataColumn(props) {
|
|
24587
25086
|
return null;
|
|
24588
25087
|
}
|
|
24589
25088
|
|
|
24590
25089
|
// src/components/Dots.tsx
|
|
24591
|
-
var
|
|
25090
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
24592
25091
|
|
|
24593
25092
|
// src/components/Dots.module.css
|
|
24594
25093
|
var Dots_default = {
|
|
@@ -24598,12 +25097,17 @@ var Dots_default = {
|
|
|
24598
25097
|
};
|
|
24599
25098
|
|
|
24600
25099
|
// src/components/Dots.tsx
|
|
25100
|
+
import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
24601
25101
|
function Dots({ className, ...props }) {
|
|
24602
|
-
return /* @__PURE__ */
|
|
25102
|
+
return /* @__PURE__ */ jsxs13("div", { ...props, className: (0, import_classnames22.default)(Dots_default.dots, className), children: [
|
|
25103
|
+
/* @__PURE__ */ jsx24("div", { className: Dots_default.dot }),
|
|
25104
|
+
/* @__PURE__ */ jsx24("div", { className: Dots_default.dot }),
|
|
25105
|
+
/* @__PURE__ */ jsx24("div", { className: Dots_default.dot })
|
|
25106
|
+
] });
|
|
24603
25107
|
}
|
|
24604
25108
|
|
|
24605
25109
|
// src/components/Heading.tsx
|
|
24606
|
-
var
|
|
25110
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
24607
25111
|
|
|
24608
25112
|
// src/components/Heading.module.css
|
|
24609
25113
|
var Heading_default = {
|
|
@@ -24620,20 +25124,21 @@ var Heading_default = {
|
|
|
24620
25124
|
};
|
|
24621
25125
|
|
|
24622
25126
|
// src/components/Heading.tsx
|
|
25127
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
24623
25128
|
function Heading({ size = 5, className, children, asChild, ...props }) {
|
|
24624
25129
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "h1";
|
|
24625
|
-
return /* @__PURE__ */
|
|
25130
|
+
return /* @__PURE__ */ jsx25(
|
|
24626
25131
|
Component,
|
|
24627
25132
|
{
|
|
24628
25133
|
...props,
|
|
24629
|
-
className: (0,
|
|
24630
|
-
|
|
24631
|
-
|
|
25134
|
+
className: (0, import_classnames23.default)(Heading_default.heading, className, size && Heading_default[`size${size}`]),
|
|
25135
|
+
children
|
|
25136
|
+
}
|
|
24632
25137
|
);
|
|
24633
25138
|
}
|
|
24634
25139
|
|
|
24635
25140
|
// src/components/InlineEditField.tsx
|
|
24636
|
-
var
|
|
25141
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
24637
25142
|
import { useState as useState6, useCallback } from "react";
|
|
24638
25143
|
|
|
24639
25144
|
// src/components/InlineEditField.module.css
|
|
@@ -24643,6 +25148,7 @@ var InlineEditField_default = {
|
|
|
24643
25148
|
};
|
|
24644
25149
|
|
|
24645
25150
|
// src/components/InlineEditField.tsx
|
|
25151
|
+
import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
24646
25152
|
function InlineEditField({
|
|
24647
25153
|
value: defaultValue = "",
|
|
24648
25154
|
defaultEdit,
|
|
@@ -24677,31 +25183,33 @@ function InlineEditField({
|
|
|
24677
25183
|
handleCancel();
|
|
24678
25184
|
}
|
|
24679
25185
|
};
|
|
24680
|
-
return /* @__PURE__ */
|
|
25186
|
+
return /* @__PURE__ */ jsxs14(
|
|
24681
25187
|
"div",
|
|
24682
25188
|
{
|
|
24683
25189
|
"aria-label": "Edit",
|
|
24684
25190
|
...props,
|
|
24685
|
-
className: (0,
|
|
24686
|
-
onClick: handleEdit
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24698
|
-
|
|
24699
|
-
|
|
25191
|
+
className: (0, import_classnames24.default)(InlineEditField_default.edit, className),
|
|
25192
|
+
onClick: handleEdit,
|
|
25193
|
+
children: [
|
|
25194
|
+
!edit && children,
|
|
25195
|
+
!edit && /* @__PURE__ */ jsx26(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx26(Icons.Edit, {}) }),
|
|
25196
|
+
edit && /* @__PURE__ */ jsx26(
|
|
25197
|
+
TextField,
|
|
25198
|
+
{
|
|
25199
|
+
value,
|
|
25200
|
+
onKeyDown: handleKeyDown,
|
|
25201
|
+
onBlur: handleCommit,
|
|
25202
|
+
onChange: handleChange,
|
|
25203
|
+
autoFocus: true
|
|
25204
|
+
}
|
|
25205
|
+
)
|
|
25206
|
+
]
|
|
25207
|
+
}
|
|
24700
25208
|
);
|
|
24701
25209
|
}
|
|
24702
25210
|
|
|
24703
25211
|
// src/components/Label.tsx
|
|
24704
|
-
var
|
|
25212
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
24705
25213
|
|
|
24706
25214
|
// src/components/Label.module.css
|
|
24707
25215
|
var Label_default = {
|
|
@@ -24709,15 +25217,16 @@ var Label_default = {
|
|
|
24709
25217
|
};
|
|
24710
25218
|
|
|
24711
25219
|
// src/components/Label.tsx
|
|
24712
|
-
|
|
24713
|
-
|
|
25220
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
25221
|
+
function Label({ asChild, className, ...props }) {
|
|
25222
|
+
return /* @__PURE__ */ jsx27($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames25.default)(Label_default.label, className) });
|
|
24714
25223
|
}
|
|
24715
25224
|
|
|
24716
25225
|
// src/components/Loading.tsx
|
|
24717
|
-
var
|
|
25226
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
24718
25227
|
|
|
24719
25228
|
// src/components/Spinner.tsx
|
|
24720
|
-
var
|
|
25229
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
24721
25230
|
|
|
24722
25231
|
// src/components/Spinner.module.css
|
|
24723
25232
|
var Spinner_default = {
|
|
@@ -24734,17 +25243,21 @@ var Spinner_default = {
|
|
|
24734
25243
|
};
|
|
24735
25244
|
|
|
24736
25245
|
// src/components/Spinner.tsx
|
|
25246
|
+
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
24737
25247
|
function Spinner(props) {
|
|
24738
25248
|
const { size = "lg", quiet, className, ...domProps } = props;
|
|
24739
|
-
return /* @__PURE__ */
|
|
25249
|
+
return /* @__PURE__ */ jsx28(
|
|
24740
25250
|
"div",
|
|
24741
25251
|
{
|
|
24742
25252
|
...domProps,
|
|
24743
|
-
className: (0,
|
|
25253
|
+
className: (0, import_classnames26.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
24744
25254
|
[Spinner_default.quiet]: quiet
|
|
24745
|
-
})
|
|
24746
|
-
|
|
24747
|
-
|
|
25255
|
+
}),
|
|
25256
|
+
children: /* @__PURE__ */ jsxs15("svg", { viewBox: "25 25 50 50", children: [
|
|
25257
|
+
/* @__PURE__ */ jsx28("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
25258
|
+
/* @__PURE__ */ jsx28("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
25259
|
+
] })
|
|
25260
|
+
}
|
|
24748
25261
|
);
|
|
24749
25262
|
}
|
|
24750
25263
|
|
|
@@ -24757,21 +25270,29 @@ var Loading_default = {
|
|
|
24757
25270
|
};
|
|
24758
25271
|
|
|
24759
25272
|
// src/components/Loading.tsx
|
|
25273
|
+
import { jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
24760
25274
|
function Loading(props) {
|
|
24761
25275
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
24762
|
-
return /* @__PURE__ */
|
|
25276
|
+
return /* @__PURE__ */ jsxs16("div", { ...domProps, className: (0, import_classnames27.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
25277
|
+
icon === "dots" && /* @__PURE__ */ jsx29(Dots, {}),
|
|
25278
|
+
icon === "spinner" && /* @__PURE__ */ jsx29(Spinner, { size })
|
|
25279
|
+
] });
|
|
24763
25280
|
}
|
|
24764
25281
|
|
|
24765
25282
|
// src/components/LoadingButton.tsx
|
|
25283
|
+
import { jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
24766
25284
|
function LoadingButton({ isLoading, children, ...props }) {
|
|
24767
|
-
return /* @__PURE__ */
|
|
25285
|
+
return /* @__PURE__ */ jsxs17(Button, { ...props, children: [
|
|
25286
|
+
isLoading && /* @__PURE__ */ jsx30(Icon, { size: "sm", children: /* @__PURE__ */ jsx30(Spinner, {}) }),
|
|
25287
|
+
children
|
|
25288
|
+
] });
|
|
24768
25289
|
}
|
|
24769
25290
|
|
|
24770
25291
|
// src/components/Menu.tsx
|
|
24771
|
-
var
|
|
25292
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
24772
25293
|
|
|
24773
25294
|
// src/components/MenuItem.tsx
|
|
24774
|
-
var
|
|
25295
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
24775
25296
|
|
|
24776
25297
|
// src/components/MenuItem.module.css
|
|
24777
25298
|
var MenuItem_default = {
|
|
@@ -24780,8 +25301,12 @@ var MenuItem_default = {
|
|
|
24780
25301
|
};
|
|
24781
25302
|
|
|
24782
25303
|
// src/components/MenuItem.tsx
|
|
24783
|
-
|
|
24784
|
-
|
|
25304
|
+
import { jsx as jsx31, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
25305
|
+
function MenuItem2({ children, className, ...props }) {
|
|
25306
|
+
return /* @__PURE__ */ jsxs18($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames28.default)(MenuItem_default.item, className), children: [
|
|
25307
|
+
children,
|
|
25308
|
+
/* @__PURE__ */ jsx31("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx31(Icon, { className: MenuItem_default.check, children: /* @__PURE__ */ jsx31(Icons.Check, {}) }) })
|
|
25309
|
+
] });
|
|
24785
25310
|
}
|
|
24786
25311
|
|
|
24787
25312
|
// src/components/Menu.module.css
|
|
@@ -24791,17 +25316,18 @@ var Menu_default = {
|
|
|
24791
25316
|
};
|
|
24792
25317
|
|
|
24793
25318
|
// src/components/Menu.tsx
|
|
24794
|
-
|
|
24795
|
-
|
|
25319
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
25320
|
+
function Menu({ items, className, children, ...props }) {
|
|
25321
|
+
return /* @__PURE__ */ jsx32($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames29.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
|
|
24796
25322
|
if (item === null) {
|
|
24797
|
-
return /* @__PURE__ */
|
|
25323
|
+
return /* @__PURE__ */ jsx32($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
|
|
24798
25324
|
}
|
|
24799
|
-
return /* @__PURE__ */
|
|
24800
|
-
}));
|
|
25325
|
+
return /* @__PURE__ */ jsx32(MenuItem2, { id: item, children: item }, index);
|
|
25326
|
+
}) });
|
|
24801
25327
|
}
|
|
24802
25328
|
|
|
24803
25329
|
// src/components/Modal.tsx
|
|
24804
|
-
var
|
|
25330
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
24805
25331
|
|
|
24806
25332
|
// src/components/Modal.module.css
|
|
24807
25333
|
var Modal_default = {
|
|
@@ -24812,16 +25338,17 @@ var Modal_default = {
|
|
|
24812
25338
|
};
|
|
24813
25339
|
|
|
24814
25340
|
// src/components/Modal.tsx
|
|
24815
|
-
|
|
24816
|
-
|
|
25341
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
25342
|
+
function Modal({ children, className, ...props }) {
|
|
25343
|
+
return /* @__PURE__ */ jsx33($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, children: /* @__PURE__ */ jsx33(
|
|
24817
25344
|
$f3f84453ead64de5$export$2b77a92f1a5ad772,
|
|
24818
25345
|
{
|
|
24819
|
-
className: (0,
|
|
25346
|
+
className: (0, import_classnames30.default)(Modal_default.modal, className),
|
|
24820
25347
|
isDismissable: true,
|
|
24821
|
-
isKeyboardDismissDisabled: true
|
|
24822
|
-
|
|
24823
|
-
|
|
24824
|
-
));
|
|
25348
|
+
isKeyboardDismissDisabled: true,
|
|
25349
|
+
children
|
|
25350
|
+
}
|
|
25351
|
+
) });
|
|
24825
25352
|
}
|
|
24826
25353
|
|
|
24827
25354
|
// src/components/PasswordField.tsx
|
|
@@ -24835,15 +25362,19 @@ var PasswordField_default = {
|
|
|
24835
25362
|
};
|
|
24836
25363
|
|
|
24837
25364
|
// src/components/PasswordField.tsx
|
|
25365
|
+
import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
24838
25366
|
function PasswordField({ ...props }) {
|
|
24839
25367
|
const [show, setShow] = useState7(false);
|
|
24840
25368
|
const type = show ? "text" : "password";
|
|
24841
25369
|
const handleShowPassword = () => setShow((state) => !state);
|
|
24842
|
-
return /* @__PURE__ */
|
|
25370
|
+
return /* @__PURE__ */ jsxs19($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, className: PasswordField_default.field, children: [
|
|
25371
|
+
/* @__PURE__ */ jsx34($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: PasswordField_default.input }),
|
|
25372
|
+
/* @__PURE__ */ jsx34(Icon, { onClick: handleShowPassword, className: PasswordField_default.icon, children: show ? /* @__PURE__ */ jsx34(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx34(Icons.Eye, {}) })
|
|
25373
|
+
] });
|
|
24843
25374
|
}
|
|
24844
25375
|
|
|
24845
25376
|
// src/components/Page.tsx
|
|
24846
|
-
var
|
|
25377
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
24847
25378
|
|
|
24848
25379
|
// src/components/Page.module.css
|
|
24849
25380
|
var Page_default = {
|
|
@@ -24851,12 +25382,13 @@ var Page_default = {
|
|
|
24851
25382
|
};
|
|
24852
25383
|
|
|
24853
25384
|
// src/components/Page.tsx
|
|
25385
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
24854
25386
|
function Page({ className, children, ...props }) {
|
|
24855
|
-
return /* @__PURE__ */
|
|
25387
|
+
return /* @__PURE__ */ jsx35("div", { ...props, className: (0, import_classnames31.default)(Page_default.page, className), children });
|
|
24856
25388
|
}
|
|
24857
25389
|
|
|
24858
25390
|
// src/components/ProgressBar.tsx
|
|
24859
|
-
var
|
|
25391
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
24860
25392
|
|
|
24861
25393
|
// src/components/ProgressBar.module.css
|
|
24862
25394
|
var ProgressBar_default = {
|
|
@@ -24867,14 +25399,18 @@ var ProgressBar_default = {
|
|
|
24867
25399
|
};
|
|
24868
25400
|
|
|
24869
25401
|
// src/components/ProgressBar.tsx
|
|
24870
|
-
|
|
24871
|
-
|
|
24872
|
-
|
|
24873
|
-
|
|
25402
|
+
import { Fragment as Fragment4, jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
25403
|
+
function ProgressBar({ className, showValue, ...props }) {
|
|
25404
|
+
return /* @__PURE__ */ jsx36($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames32.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
25405
|
+
return /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
25406
|
+
/* @__PURE__ */ jsx36("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx36("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
25407
|
+
showValue && /* @__PURE__ */ jsx36("div", { className: ProgressBar_default.value, children: valueText })
|
|
25408
|
+
] });
|
|
25409
|
+
} });
|
|
24874
25410
|
}
|
|
24875
25411
|
|
|
24876
25412
|
// src/components/ProgressCircle.tsx
|
|
24877
|
-
var
|
|
25413
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
24878
25414
|
|
|
24879
25415
|
// src/components/ProgressCircle.module.css
|
|
24880
25416
|
var ProgressCircle_default = {
|
|
@@ -24885,27 +25421,34 @@ var ProgressCircle_default = {
|
|
|
24885
25421
|
};
|
|
24886
25422
|
|
|
24887
25423
|
// src/components/ProgressCircle.tsx
|
|
25424
|
+
import { Fragment as Fragment5, jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
24888
25425
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
24889
|
-
return /* @__PURE__ */
|
|
25426
|
+
return /* @__PURE__ */ jsx37($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames33.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
24890
25427
|
const radius = 45;
|
|
24891
25428
|
const circumference = radius * 2 * Math.PI;
|
|
24892
25429
|
const offset = circumference - percentage / 100 * circumference;
|
|
24893
|
-
return /* @__PURE__ */
|
|
24894
|
-
"
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
|
|
24904
|
-
|
|
25430
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
25431
|
+
/* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
25432
|
+
/* @__PURE__ */ jsx37("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
25433
|
+
/* @__PURE__ */ jsx37(
|
|
25434
|
+
"circle",
|
|
25435
|
+
{
|
|
25436
|
+
className: ProgressCircle_default.fill,
|
|
25437
|
+
cx: "50",
|
|
25438
|
+
cy: "50",
|
|
25439
|
+
r: "45",
|
|
25440
|
+
strokeDasharray: `${circumference} ${circumference}`,
|
|
25441
|
+
strokeDashoffset: offset
|
|
25442
|
+
}
|
|
25443
|
+
)
|
|
25444
|
+
] }),
|
|
25445
|
+
showValue && /* @__PURE__ */ jsx37("label", { className: ProgressCircle_default.value, children: valueText })
|
|
25446
|
+
] });
|
|
25447
|
+
} });
|
|
24905
25448
|
}
|
|
24906
25449
|
|
|
24907
25450
|
// src/components/RadioGroup.tsx
|
|
24908
|
-
var
|
|
25451
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
24909
25452
|
|
|
24910
25453
|
// src/components/RadioGroup.module.css
|
|
24911
25454
|
var RadioGroup_default = {
|
|
@@ -24914,16 +25457,17 @@ var RadioGroup_default = {
|
|
|
24914
25457
|
};
|
|
24915
25458
|
|
|
24916
25459
|
// src/components/RadioGroup.tsx
|
|
24917
|
-
|
|
24918
|
-
|
|
25460
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
25461
|
+
function RadioGroup({ children, className, ...props }) {
|
|
25462
|
+
return /* @__PURE__ */ jsx38($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, className: (0, import_classnames34.default)(RadioGroup_default.radiogroup, className), children });
|
|
24919
25463
|
}
|
|
24920
|
-
function
|
|
24921
|
-
return /* @__PURE__ */
|
|
25464
|
+
function Radio({ children, className, ...props }) {
|
|
25465
|
+
return /* @__PURE__ */ jsx38($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames34.default)(RadioGroup_default.radio, className), children });
|
|
24922
25466
|
}
|
|
24923
25467
|
|
|
24924
25468
|
// src/components/SearchField.tsx
|
|
24925
25469
|
import { useState as useState8, useEffect as useEffect2 } from "react";
|
|
24926
|
-
var
|
|
25470
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
24927
25471
|
|
|
24928
25472
|
// src/components/SearchField.module.css
|
|
24929
25473
|
var SearchField_default = {
|
|
@@ -24932,7 +25476,8 @@ var SearchField_default = {
|
|
|
24932
25476
|
};
|
|
24933
25477
|
|
|
24934
25478
|
// src/components/SearchField.tsx
|
|
24935
|
-
|
|
25479
|
+
import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
25480
|
+
function SearchField({ value, delay = 0, onSearch, className, ...props }) {
|
|
24936
25481
|
const [search, setSearch] = useState8(value ?? "");
|
|
24937
25482
|
const searchValue = useDebounce(search, delay);
|
|
24938
25483
|
const handleChange = (e) => {
|
|
@@ -24951,13 +25496,17 @@ function _SearchField({ value, delay = 0, onSearch, className, ...props }) {
|
|
|
24951
25496
|
onSearch?.(searchValue);
|
|
24952
25497
|
}
|
|
24953
25498
|
}, [searchValue, delay, onSearch]);
|
|
24954
|
-
return /* @__PURE__ */
|
|
24955
|
-
return /* @__PURE__ */
|
|
24956
|
-
|
|
25499
|
+
return /* @__PURE__ */ jsx39($440f4836bcb56932$export$b94867ecbd698f21, { ...props, className: (0, import_classnames35.default)(Field_default.field, className), children: ({ state }) => {
|
|
25500
|
+
return /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
25501
|
+
/* @__PURE__ */ jsx39(Icons.MagnifyingGlass, { className: (0, import_classnames35.default)(Field_default.icon, SearchField_default.icon) }),
|
|
25502
|
+
/* @__PURE__ */ jsx39($3985021b0ad6602f$export$f5b8910cec6cf069, { className: Field_default.input, onChange: handleChange }),
|
|
25503
|
+
state.value && /* @__PURE__ */ jsx39($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: SearchField_default.button, onPress: resetSearch, children: /* @__PURE__ */ jsx39(Icon, { children: /* @__PURE__ */ jsx39(Icons.Close, {}) }) })
|
|
25504
|
+
] });
|
|
25505
|
+
} });
|
|
24957
25506
|
}
|
|
24958
25507
|
|
|
24959
25508
|
// src/components/Select.tsx
|
|
24960
|
-
var
|
|
25509
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
24961
25510
|
|
|
24962
25511
|
// src/components/Select.module.css
|
|
24963
25512
|
var Select_default = {
|
|
@@ -24968,12 +25517,19 @@ var Select_default = {
|
|
|
24968
25517
|
};
|
|
24969
25518
|
|
|
24970
25519
|
// src/components/Select.tsx
|
|
24971
|
-
|
|
24972
|
-
|
|
25520
|
+
import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
25521
|
+
function Select({ children, items = [], value, className, ...props }) {
|
|
25522
|
+
return /* @__PURE__ */ jsxs23($82d7e5349645de74$export$ef9b1a59e592288f, { ...props, className: (0, import_classnames36.default)(Select_default.select, className), children: [
|
|
25523
|
+
/* @__PURE__ */ jsxs23($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: Select_default.button, children: [
|
|
25524
|
+
/* @__PURE__ */ jsx40($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
25525
|
+
/* @__PURE__ */ jsx40("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx40(Icon, { rotate: 90, size: "xs", className: Select_default.icon, children: /* @__PURE__ */ jsx40(Icons.Chevron, {}) }) })
|
|
25526
|
+
] }),
|
|
25527
|
+
/* @__PURE__ */ jsx40(Popover, { children: /* @__PURE__ */ jsx40(List, { items, className: Select_default.list, children: children || items.map((item) => /* @__PURE__ */ jsx40(ListItem, { id: item, className: Select_default.item, children: item }, item)) }) })
|
|
25528
|
+
] });
|
|
24973
25529
|
}
|
|
24974
25530
|
|
|
24975
25531
|
// src/components/Slider.tsx
|
|
24976
|
-
var
|
|
25532
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
24977
25533
|
|
|
24978
25534
|
// src/components/Slider.module.css
|
|
24979
25535
|
var Slider_default = {
|
|
@@ -24986,23 +25542,31 @@ var Slider_default = {
|
|
|
24986
25542
|
};
|
|
24987
25543
|
|
|
24988
25544
|
// src/components/Slider.tsx
|
|
24989
|
-
|
|
24990
|
-
|
|
24991
|
-
|
|
24992
|
-
|
|
24993
|
-
|
|
24994
|
-
|
|
24995
|
-
|
|
24996
|
-
|
|
24997
|
-
|
|
24998
|
-
|
|
24999
|
-
|
|
25000
|
-
|
|
25001
|
-
|
|
25545
|
+
import { Fragment as Fragment7, jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
25546
|
+
function Slider({ className, showValue = true, label, ...props }) {
|
|
25547
|
+
return /* @__PURE__ */ jsxs24($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames37.default)(Slider_default.slider, className), children: [
|
|
25548
|
+
label && /* @__PURE__ */ jsx41(Label, { className: Slider_default.label, children: label }),
|
|
25549
|
+
showValue && /* @__PURE__ */ jsx41($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output }),
|
|
25550
|
+
/* @__PURE__ */ jsx41($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
25551
|
+
const isHorizontal = state.orientation === "horizontal";
|
|
25552
|
+
return /* @__PURE__ */ jsxs24(Fragment7, { children: [
|
|
25553
|
+
/* @__PURE__ */ jsx41(
|
|
25554
|
+
"div",
|
|
25555
|
+
{
|
|
25556
|
+
className: Slider_default.fill,
|
|
25557
|
+
style: {
|
|
25558
|
+
[isHorizontal ? "width" : "height"]: (isHorizontal ? state.getThumbPercent(0) : 1 - state.getThumbPercent(0)) * 100 + "%"
|
|
25559
|
+
}
|
|
25560
|
+
}
|
|
25561
|
+
),
|
|
25562
|
+
/* @__PURE__ */ jsx41($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
25563
|
+
] });
|
|
25564
|
+
} })
|
|
25565
|
+
] });
|
|
25002
25566
|
}
|
|
25003
25567
|
|
|
25004
25568
|
// src/components/StatusLight.tsx
|
|
25005
|
-
var
|
|
25569
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
25006
25570
|
|
|
25007
25571
|
// src/components/StatusLight.module.css
|
|
25008
25572
|
var StatusLight_default = {
|
|
@@ -25017,19 +25581,23 @@ var StatusLight_default = {
|
|
|
25017
25581
|
};
|
|
25018
25582
|
|
|
25019
25583
|
// src/components/StatusLight.tsx
|
|
25584
|
+
import { jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
25020
25585
|
function StatusLight(props) {
|
|
25021
25586
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
25022
|
-
return /* @__PURE__ */
|
|
25023
|
-
"div",
|
|
25024
|
-
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
25587
|
+
return /* @__PURE__ */ jsxs25("div", { ...domProps, className: (0, import_classnames38.default)(StatusLight_default.statuslight, className), children: [
|
|
25588
|
+
/* @__PURE__ */ jsx42("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx42(
|
|
25589
|
+
"div",
|
|
25590
|
+
{
|
|
25591
|
+
className: (0, import_classnames38.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
25592
|
+
style: { backgroundColor: color }
|
|
25593
|
+
}
|
|
25594
|
+
) }),
|
|
25595
|
+
children
|
|
25596
|
+
] });
|
|
25029
25597
|
}
|
|
25030
25598
|
|
|
25031
25599
|
// src/components/Switch.tsx
|
|
25032
|
-
var
|
|
25600
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
25033
25601
|
|
|
25034
25602
|
// src/components/Switch.module.css
|
|
25035
25603
|
var Switch_default = {
|
|
@@ -25039,8 +25607,12 @@ var Switch_default = {
|
|
|
25039
25607
|
};
|
|
25040
25608
|
|
|
25041
25609
|
// src/components/Switch.tsx
|
|
25042
|
-
|
|
25043
|
-
|
|
25610
|
+
import { jsx as jsx43, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
25611
|
+
function Switch({ children, className, ...props }) {
|
|
25612
|
+
return /* @__PURE__ */ jsxs26($8e59e948500a8fe1$export$b5d5cf8927ab7262, { ...props, className: (0, import_classnames39.default)(Switch_default.switch, className), children: [
|
|
25613
|
+
/* @__PURE__ */ jsx43("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx43("div", { className: Switch_default.knob }) }),
|
|
25614
|
+
children
|
|
25615
|
+
] });
|
|
25044
25616
|
}
|
|
25045
25617
|
|
|
25046
25618
|
// src/components/Tabs.module.css
|
|
@@ -25052,21 +25624,22 @@ var Tabs_default = {
|
|
|
25052
25624
|
};
|
|
25053
25625
|
|
|
25054
25626
|
// src/components/Tabs.tsx
|
|
25055
|
-
|
|
25056
|
-
|
|
25627
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
25628
|
+
function Tabs({ children, ...props }) {
|
|
25629
|
+
return /* @__PURE__ */ jsx44($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
25057
25630
|
}
|
|
25058
|
-
function
|
|
25059
|
-
return /* @__PURE__ */
|
|
25631
|
+
function TabList({ children, ...props }) {
|
|
25632
|
+
return /* @__PURE__ */ jsx44($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
25060
25633
|
}
|
|
25061
|
-
function
|
|
25062
|
-
return /* @__PURE__ */
|
|
25634
|
+
function Tab({ children, ...props }) {
|
|
25635
|
+
return /* @__PURE__ */ jsx44($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
25063
25636
|
}
|
|
25064
|
-
function
|
|
25065
|
-
return /* @__PURE__ */
|
|
25637
|
+
function TabPanel({ children, ...props }) {
|
|
25638
|
+
return /* @__PURE__ */ jsx44($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
25066
25639
|
}
|
|
25067
25640
|
|
|
25068
25641
|
// src/components/TextOverflow.tsx
|
|
25069
|
-
var
|
|
25642
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
25070
25643
|
|
|
25071
25644
|
// src/components/TextOverflow.module.css
|
|
25072
25645
|
var TextOverflow_default = {
|
|
@@ -25075,13 +25648,14 @@ var TextOverflow_default = {
|
|
|
25075
25648
|
};
|
|
25076
25649
|
|
|
25077
25650
|
// src/components/TextOverflow.tsx
|
|
25651
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
25078
25652
|
function TextOverflow({ asChild, children, className, ...props }) {
|
|
25079
25653
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "div";
|
|
25080
|
-
return /* @__PURE__ */
|
|
25654
|
+
return /* @__PURE__ */ jsx45("div", { ...props, className: (0, import_classnames40.default)(TextOverflow_default.wrapper, className), children: /* @__PURE__ */ jsx45(Component, { className: TextOverflow_default.overflow, children }) });
|
|
25081
25655
|
}
|
|
25082
25656
|
|
|
25083
25657
|
// src/components/TextArea.tsx
|
|
25084
|
-
var
|
|
25658
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
25085
25659
|
|
|
25086
25660
|
// src/components/TextArea.module.css
|
|
25087
25661
|
var TextArea_default = {
|
|
@@ -25091,16 +25665,17 @@ var TextArea_default = {
|
|
|
25091
25665
|
};
|
|
25092
25666
|
|
|
25093
25667
|
// src/components/TextArea.tsx
|
|
25668
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
25094
25669
|
function TextArea({ resize, className, ...props }) {
|
|
25095
|
-
return /* @__PURE__ */
|
|
25670
|
+
return /* @__PURE__ */ jsx46(TextField, { ...props, className: (0, import_classnames41.default)(resize && TextArea_default[resize]), asTextArea: true });
|
|
25096
25671
|
}
|
|
25097
25672
|
|
|
25098
25673
|
// src/components/Toast.tsx
|
|
25099
|
-
var
|
|
25100
|
-
import { createElement as
|
|
25674
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
25675
|
+
import { createElement as createElement3 } from "react";
|
|
25101
25676
|
|
|
25102
25677
|
// node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
25103
|
-
import * as
|
|
25678
|
+
import * as React17 from "react";
|
|
25104
25679
|
import * as ReactDOM4 from "react-dom";
|
|
25105
25680
|
|
|
25106
25681
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
@@ -25114,7 +25689,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
25114
25689
|
}
|
|
25115
25690
|
|
|
25116
25691
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
25117
|
-
import * as
|
|
25692
|
+
import * as React4 from "react";
|
|
25118
25693
|
function setRef(ref, value) {
|
|
25119
25694
|
if (typeof ref === "function") {
|
|
25120
25695
|
ref(value);
|
|
@@ -25126,30 +25701,30 @@ function composeRefs(...refs) {
|
|
|
25126
25701
|
return (node) => refs.forEach((ref) => setRef(ref, node));
|
|
25127
25702
|
}
|
|
25128
25703
|
function useComposedRefs(...refs) {
|
|
25129
|
-
return
|
|
25704
|
+
return React4.useCallback(composeRefs(...refs), refs);
|
|
25130
25705
|
}
|
|
25131
25706
|
|
|
25132
25707
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
25133
|
-
import
|
|
25708
|
+
import React7 from "react";
|
|
25134
25709
|
|
|
25135
25710
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
25136
|
-
import * as
|
|
25137
|
-
import { jsx } from "react/jsx-runtime";
|
|
25711
|
+
import * as React5 from "react";
|
|
25712
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
25138
25713
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
25139
25714
|
let defaultContexts = [];
|
|
25140
25715
|
function createContext3(rootComponentName, defaultContext) {
|
|
25141
|
-
const BaseContext =
|
|
25716
|
+
const BaseContext = React5.createContext(defaultContext);
|
|
25142
25717
|
const index = defaultContexts.length;
|
|
25143
25718
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
25144
25719
|
function Provider(props) {
|
|
25145
25720
|
const { scope, children, ...context } = props;
|
|
25146
25721
|
const Context = scope?.[scopeName][index] || BaseContext;
|
|
25147
|
-
const value =
|
|
25148
|
-
return /* @__PURE__ */
|
|
25722
|
+
const value = React5.useMemo(() => context, Object.values(context));
|
|
25723
|
+
return /* @__PURE__ */ jsx47(Context.Provider, { value, children });
|
|
25149
25724
|
}
|
|
25150
25725
|
function useContext22(consumerName, scope) {
|
|
25151
25726
|
const Context = scope?.[scopeName][index] || BaseContext;
|
|
25152
|
-
const context =
|
|
25727
|
+
const context = React5.useContext(Context);
|
|
25153
25728
|
if (context) return context;
|
|
25154
25729
|
if (defaultContext !== void 0) return defaultContext;
|
|
25155
25730
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
@@ -25159,11 +25734,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
25159
25734
|
}
|
|
25160
25735
|
const createScope = () => {
|
|
25161
25736
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
25162
|
-
return
|
|
25737
|
+
return React5.createContext(defaultContext);
|
|
25163
25738
|
});
|
|
25164
25739
|
return function useScope(scope) {
|
|
25165
25740
|
const contexts = scope?.[scopeName] || scopeContexts;
|
|
25166
|
-
return
|
|
25741
|
+
return React5.useMemo(
|
|
25167
25742
|
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
25168
25743
|
[scope, contexts]
|
|
25169
25744
|
);
|
|
@@ -25186,7 +25761,7 @@ function composeContextScopes(...scopes) {
|
|
|
25186
25761
|
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
25187
25762
|
return { ...nextScopes2, ...currentScope };
|
|
25188
25763
|
}, {});
|
|
25189
|
-
return
|
|
25764
|
+
return React5.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
25190
25765
|
};
|
|
25191
25766
|
};
|
|
25192
25767
|
createScope.scopeName = baseScope.scopeName;
|
|
@@ -25194,45 +25769,45 @@ function composeContextScopes(...scopes) {
|
|
|
25194
25769
|
}
|
|
25195
25770
|
|
|
25196
25771
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
25197
|
-
import * as
|
|
25198
|
-
import { Fragment, jsx as
|
|
25199
|
-
var Slot =
|
|
25772
|
+
import * as React6 from "react";
|
|
25773
|
+
import { Fragment as Fragment8, jsx as jsx48 } from "react/jsx-runtime";
|
|
25774
|
+
var Slot = React6.forwardRef((props, forwardedRef) => {
|
|
25200
25775
|
const { children, ...slotProps } = props;
|
|
25201
|
-
const childrenArray =
|
|
25776
|
+
const childrenArray = React6.Children.toArray(children);
|
|
25202
25777
|
const slottable = childrenArray.find(isSlottable);
|
|
25203
25778
|
if (slottable) {
|
|
25204
25779
|
const newElement = slottable.props.children;
|
|
25205
25780
|
const newChildren = childrenArray.map((child) => {
|
|
25206
25781
|
if (child === slottable) {
|
|
25207
|
-
if (
|
|
25208
|
-
return
|
|
25782
|
+
if (React6.Children.count(newElement) > 1) return React6.Children.only(null);
|
|
25783
|
+
return React6.isValidElement(newElement) ? newElement.props.children : null;
|
|
25209
25784
|
} else {
|
|
25210
25785
|
return child;
|
|
25211
25786
|
}
|
|
25212
25787
|
});
|
|
25213
|
-
return /* @__PURE__ */
|
|
25788
|
+
return /* @__PURE__ */ jsx48(SlotClone, { ...slotProps, ref: forwardedRef, children: React6.isValidElement(newElement) ? React6.cloneElement(newElement, void 0, newChildren) : null });
|
|
25214
25789
|
}
|
|
25215
|
-
return /* @__PURE__ */
|
|
25790
|
+
return /* @__PURE__ */ jsx48(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
25216
25791
|
});
|
|
25217
25792
|
Slot.displayName = "Slot";
|
|
25218
|
-
var SlotClone =
|
|
25793
|
+
var SlotClone = React6.forwardRef((props, forwardedRef) => {
|
|
25219
25794
|
const { children, ...slotProps } = props;
|
|
25220
|
-
if (
|
|
25795
|
+
if (React6.isValidElement(children)) {
|
|
25221
25796
|
const childrenRef = getElementRef(children);
|
|
25222
|
-
return
|
|
25797
|
+
return React6.cloneElement(children, {
|
|
25223
25798
|
...mergeProps(slotProps, children.props),
|
|
25224
25799
|
// @ts-ignore
|
|
25225
25800
|
ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
|
|
25226
25801
|
});
|
|
25227
25802
|
}
|
|
25228
|
-
return
|
|
25803
|
+
return React6.Children.count(children) > 1 ? React6.Children.only(null) : null;
|
|
25229
25804
|
});
|
|
25230
25805
|
SlotClone.displayName = "SlotClone";
|
|
25231
25806
|
var Slottable = ({ children }) => {
|
|
25232
|
-
return /* @__PURE__ */
|
|
25807
|
+
return /* @__PURE__ */ jsx48(Fragment8, { children });
|
|
25233
25808
|
};
|
|
25234
25809
|
function isSlottable(child) {
|
|
25235
|
-
return
|
|
25810
|
+
return React6.isValidElement(child) && child.type === Slottable;
|
|
25236
25811
|
}
|
|
25237
25812
|
function mergeProps(slotProps, childProps) {
|
|
25238
25813
|
const overrideProps = { ...childProps };
|
|
@@ -25272,7 +25847,7 @@ function getElementRef(element) {
|
|
|
25272
25847
|
}
|
|
25273
25848
|
|
|
25274
25849
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
25275
|
-
import { jsx as
|
|
25850
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
25276
25851
|
function createCollection(name) {
|
|
25277
25852
|
const PROVIDER_NAME2 = name + "CollectionProvider";
|
|
25278
25853
|
const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME2);
|
|
@@ -25282,40 +25857,40 @@ function createCollection(name) {
|
|
|
25282
25857
|
);
|
|
25283
25858
|
const CollectionProvider = (props) => {
|
|
25284
25859
|
const { scope, children } = props;
|
|
25285
|
-
const ref =
|
|
25286
|
-
const itemMap =
|
|
25287
|
-
return /* @__PURE__ */
|
|
25860
|
+
const ref = React7.useRef(null);
|
|
25861
|
+
const itemMap = React7.useRef(/* @__PURE__ */ new Map()).current;
|
|
25862
|
+
return /* @__PURE__ */ jsx49(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
25288
25863
|
};
|
|
25289
25864
|
CollectionProvider.displayName = PROVIDER_NAME2;
|
|
25290
25865
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
25291
|
-
const CollectionSlot =
|
|
25866
|
+
const CollectionSlot = React7.forwardRef(
|
|
25292
25867
|
(props, forwardedRef) => {
|
|
25293
25868
|
const { scope, children } = props;
|
|
25294
25869
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
25295
25870
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
25296
|
-
return /* @__PURE__ */
|
|
25871
|
+
return /* @__PURE__ */ jsx49(Slot, { ref: composedRefs, children });
|
|
25297
25872
|
}
|
|
25298
25873
|
);
|
|
25299
25874
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
25300
25875
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
25301
25876
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
25302
|
-
const CollectionItemSlot =
|
|
25877
|
+
const CollectionItemSlot = React7.forwardRef(
|
|
25303
25878
|
(props, forwardedRef) => {
|
|
25304
25879
|
const { scope, children, ...itemData } = props;
|
|
25305
|
-
const ref =
|
|
25880
|
+
const ref = React7.useRef(null);
|
|
25306
25881
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
25307
25882
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
25308
|
-
|
|
25883
|
+
React7.useEffect(() => {
|
|
25309
25884
|
context.itemMap.set(ref, { ref, ...itemData });
|
|
25310
25885
|
return () => void context.itemMap.delete(ref);
|
|
25311
25886
|
});
|
|
25312
|
-
return /* @__PURE__ */
|
|
25887
|
+
return /* @__PURE__ */ jsx49(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
25313
25888
|
}
|
|
25314
25889
|
);
|
|
25315
25890
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
25316
25891
|
function useCollection2(scope) {
|
|
25317
25892
|
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
25318
|
-
const getItems =
|
|
25893
|
+
const getItems = React7.useCallback(() => {
|
|
25319
25894
|
const collectionNode = context.collectionRef.current;
|
|
25320
25895
|
if (!collectionNode) return [];
|
|
25321
25896
|
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
@@ -25335,12 +25910,12 @@ function createCollection(name) {
|
|
|
25335
25910
|
}
|
|
25336
25911
|
|
|
25337
25912
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
25338
|
-
import * as
|
|
25913
|
+
import * as React11 from "react";
|
|
25339
25914
|
|
|
25340
25915
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
25341
|
-
import * as
|
|
25916
|
+
import * as React8 from "react";
|
|
25342
25917
|
import * as ReactDOM from "react-dom";
|
|
25343
|
-
import { jsx as
|
|
25918
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
25344
25919
|
var NODES = [
|
|
25345
25920
|
"a",
|
|
25346
25921
|
"button",
|
|
@@ -25360,13 +25935,13 @@ var NODES = [
|
|
|
25360
25935
|
"ul"
|
|
25361
25936
|
];
|
|
25362
25937
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
25363
|
-
const Node2 =
|
|
25938
|
+
const Node2 = React8.forwardRef((props, forwardedRef) => {
|
|
25364
25939
|
const { asChild, ...primitiveProps } = props;
|
|
25365
25940
|
const Comp = asChild ? Slot : node;
|
|
25366
25941
|
if (typeof window !== "undefined") {
|
|
25367
25942
|
window[Symbol.for("radix-ui")] = true;
|
|
25368
25943
|
}
|
|
25369
|
-
return /* @__PURE__ */
|
|
25944
|
+
return /* @__PURE__ */ jsx50(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
25370
25945
|
});
|
|
25371
25946
|
Node2.displayName = `Primitive.${node}`;
|
|
25372
25947
|
return { ...primitive, [node]: Node2 };
|
|
@@ -25376,20 +25951,20 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
25376
25951
|
}
|
|
25377
25952
|
|
|
25378
25953
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
25379
|
-
import * as
|
|
25954
|
+
import * as React9 from "react";
|
|
25380
25955
|
function useCallbackRef(callback) {
|
|
25381
|
-
const callbackRef =
|
|
25382
|
-
|
|
25956
|
+
const callbackRef = React9.useRef(callback);
|
|
25957
|
+
React9.useEffect(() => {
|
|
25383
25958
|
callbackRef.current = callback;
|
|
25384
25959
|
});
|
|
25385
|
-
return
|
|
25960
|
+
return React9.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
25386
25961
|
}
|
|
25387
25962
|
|
|
25388
25963
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
25389
|
-
import * as
|
|
25964
|
+
import * as React10 from "react";
|
|
25390
25965
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
25391
25966
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
25392
|
-
|
|
25967
|
+
React10.useEffect(() => {
|
|
25393
25968
|
const handleKeyDown = (event) => {
|
|
25394
25969
|
if (event.key === "Escape") {
|
|
25395
25970
|
onEscapeKeyDown(event);
|
|
@@ -25401,18 +25976,18 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
25401
25976
|
}
|
|
25402
25977
|
|
|
25403
25978
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
25404
|
-
import { jsx as
|
|
25979
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
25405
25980
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
25406
25981
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
25407
25982
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
25408
25983
|
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
25409
25984
|
var originalBodyPointerEvents;
|
|
25410
|
-
var DismissableLayerContext =
|
|
25985
|
+
var DismissableLayerContext = React11.createContext({
|
|
25411
25986
|
layers: /* @__PURE__ */ new Set(),
|
|
25412
25987
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
25413
25988
|
branches: /* @__PURE__ */ new Set()
|
|
25414
25989
|
});
|
|
25415
|
-
var DismissableLayer =
|
|
25990
|
+
var DismissableLayer = React11.forwardRef(
|
|
25416
25991
|
(props, forwardedRef) => {
|
|
25417
25992
|
const {
|
|
25418
25993
|
disableOutsidePointerEvents = false,
|
|
@@ -25423,10 +25998,10 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25423
25998
|
onDismiss,
|
|
25424
25999
|
...layerProps
|
|
25425
26000
|
} = props;
|
|
25426
|
-
const context =
|
|
25427
|
-
const [node, setNode] =
|
|
26001
|
+
const context = React11.useContext(DismissableLayerContext);
|
|
26002
|
+
const [node, setNode] = React11.useState(null);
|
|
25428
26003
|
const ownerDocument = node?.ownerDocument ?? globalThis?.document;
|
|
25429
|
-
const [, force] =
|
|
26004
|
+
const [, force] = React11.useState({});
|
|
25430
26005
|
const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
|
|
25431
26006
|
const layers = Array.from(context.layers);
|
|
25432
26007
|
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
@@ -25459,7 +26034,7 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25459
26034
|
onDismiss();
|
|
25460
26035
|
}
|
|
25461
26036
|
}, ownerDocument);
|
|
25462
|
-
|
|
26037
|
+
React11.useEffect(() => {
|
|
25463
26038
|
if (!node) return;
|
|
25464
26039
|
if (disableOutsidePointerEvents) {
|
|
25465
26040
|
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
@@ -25476,7 +26051,7 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25476
26051
|
}
|
|
25477
26052
|
};
|
|
25478
26053
|
}, [node, ownerDocument, disableOutsidePointerEvents, context]);
|
|
25479
|
-
|
|
26054
|
+
React11.useEffect(() => {
|
|
25480
26055
|
return () => {
|
|
25481
26056
|
if (!node) return;
|
|
25482
26057
|
context.layers.delete(node);
|
|
@@ -25484,12 +26059,12 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25484
26059
|
dispatchUpdate();
|
|
25485
26060
|
};
|
|
25486
26061
|
}, [node, context]);
|
|
25487
|
-
|
|
26062
|
+
React11.useEffect(() => {
|
|
25488
26063
|
const handleUpdate = () => force({});
|
|
25489
26064
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
25490
26065
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
25491
26066
|
}, []);
|
|
25492
|
-
return /* @__PURE__ */
|
|
26067
|
+
return /* @__PURE__ */ jsx51(
|
|
25493
26068
|
Primitive.div,
|
|
25494
26069
|
{
|
|
25495
26070
|
...layerProps,
|
|
@@ -25510,11 +26085,11 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25510
26085
|
);
|
|
25511
26086
|
DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
|
|
25512
26087
|
var BRANCH_NAME = "DismissableLayerBranch";
|
|
25513
|
-
var DismissableLayerBranch =
|
|
25514
|
-
const context =
|
|
25515
|
-
const ref =
|
|
26088
|
+
var DismissableLayerBranch = React11.forwardRef((props, forwardedRef) => {
|
|
26089
|
+
const context = React11.useContext(DismissableLayerContext);
|
|
26090
|
+
const ref = React11.useRef(null);
|
|
25516
26091
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
25517
|
-
|
|
26092
|
+
React11.useEffect(() => {
|
|
25518
26093
|
const node = ref.current;
|
|
25519
26094
|
if (node) {
|
|
25520
26095
|
context.branches.add(node);
|
|
@@ -25523,15 +26098,15 @@ var DismissableLayerBranch = React13.forwardRef((props, forwardedRef) => {
|
|
|
25523
26098
|
};
|
|
25524
26099
|
}
|
|
25525
26100
|
}, [context.branches]);
|
|
25526
|
-
return /* @__PURE__ */
|
|
26101
|
+
return /* @__PURE__ */ jsx51(Primitive.div, { ...props, ref: composedRefs });
|
|
25527
26102
|
});
|
|
25528
26103
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
25529
26104
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
25530
26105
|
const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
|
|
25531
|
-
const isPointerInsideReactTreeRef =
|
|
25532
|
-
const handleClickRef =
|
|
26106
|
+
const isPointerInsideReactTreeRef = React11.useRef(false);
|
|
26107
|
+
const handleClickRef = React11.useRef(() => {
|
|
25533
26108
|
});
|
|
25534
|
-
|
|
26109
|
+
React11.useEffect(() => {
|
|
25535
26110
|
const handlePointerDown = (event) => {
|
|
25536
26111
|
if (event.target && !isPointerInsideReactTreeRef.current) {
|
|
25537
26112
|
let handleAndDispatchPointerDownOutsideEvent2 = function() {
|
|
@@ -25572,8 +26147,8 @@ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?
|
|
|
25572
26147
|
}
|
|
25573
26148
|
function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
|
|
25574
26149
|
const handleFocusOutside = useCallbackRef(onFocusOutside);
|
|
25575
|
-
const isFocusInsideReactTreeRef =
|
|
25576
|
-
|
|
26150
|
+
const isFocusInsideReactTreeRef = React11.useRef(false);
|
|
26151
|
+
React11.useEffect(() => {
|
|
25577
26152
|
const handleFocus = (event) => {
|
|
25578
26153
|
if (event.target && !isFocusInsideReactTreeRef.current) {
|
|
25579
26154
|
const eventDetail = { originalEvent: event };
|
|
@@ -25608,32 +26183,32 @@ var Root = DismissableLayer;
|
|
|
25608
26183
|
var Branch = DismissableLayerBranch;
|
|
25609
26184
|
|
|
25610
26185
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
25611
|
-
import * as
|
|
26186
|
+
import * as React13 from "react";
|
|
25612
26187
|
import ReactDOM2 from "react-dom";
|
|
25613
26188
|
|
|
25614
26189
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
25615
|
-
import * as
|
|
25616
|
-
var useLayoutEffect2 = Boolean(globalThis?.document) ?
|
|
26190
|
+
import * as React12 from "react";
|
|
26191
|
+
var useLayoutEffect2 = Boolean(globalThis?.document) ? React12.useLayoutEffect : () => {
|
|
25617
26192
|
};
|
|
25618
26193
|
|
|
25619
26194
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
25620
|
-
import { jsx as
|
|
26195
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
25621
26196
|
var PORTAL_NAME = "Portal";
|
|
25622
|
-
var Portal =
|
|
26197
|
+
var Portal = React13.forwardRef((props, forwardedRef) => {
|
|
25623
26198
|
const { container: containerProp, ...portalProps } = props;
|
|
25624
|
-
const [mounted, setMounted] =
|
|
26199
|
+
const [mounted, setMounted] = React13.useState(false);
|
|
25625
26200
|
useLayoutEffect2(() => setMounted(true), []);
|
|
25626
26201
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
25627
|
-
return container ? ReactDOM2.createPortal(/* @__PURE__ */
|
|
26202
|
+
return container ? ReactDOM2.createPortal(/* @__PURE__ */ jsx52(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
25628
26203
|
});
|
|
25629
26204
|
Portal.displayName = PORTAL_NAME;
|
|
25630
26205
|
|
|
25631
26206
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
25632
26207
|
import * as React22 from "react";
|
|
25633
26208
|
import * as ReactDOM3 from "react-dom";
|
|
25634
|
-
import * as
|
|
26209
|
+
import * as React14 from "react";
|
|
25635
26210
|
function useStateMachine(initialState3, machine) {
|
|
25636
|
-
return
|
|
26211
|
+
return React14.useReducer((state, event) => {
|
|
25637
26212
|
const nextState = machine[state][event];
|
|
25638
26213
|
return nextState ?? state;
|
|
25639
26214
|
}, initialState3);
|
|
@@ -25744,7 +26319,7 @@ function getElementRef2(element) {
|
|
|
25744
26319
|
}
|
|
25745
26320
|
|
|
25746
26321
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
25747
|
-
import * as
|
|
26322
|
+
import * as React15 from "react";
|
|
25748
26323
|
function useControllableState({
|
|
25749
26324
|
prop,
|
|
25750
26325
|
defaultProp,
|
|
@@ -25755,7 +26330,7 @@ function useControllableState({
|
|
|
25755
26330
|
const isControlled = prop !== void 0;
|
|
25756
26331
|
const value = isControlled ? prop : uncontrolledProp;
|
|
25757
26332
|
const handleChange = useCallbackRef(onChange);
|
|
25758
|
-
const setValue =
|
|
26333
|
+
const setValue = React15.useCallback(
|
|
25759
26334
|
(nextValue) => {
|
|
25760
26335
|
if (isControlled) {
|
|
25761
26336
|
const setter = nextValue;
|
|
@@ -25773,11 +26348,11 @@ function useUncontrolledState({
|
|
|
25773
26348
|
defaultProp,
|
|
25774
26349
|
onChange
|
|
25775
26350
|
}) {
|
|
25776
|
-
const uncontrolledState =
|
|
26351
|
+
const uncontrolledState = React15.useState(defaultProp);
|
|
25777
26352
|
const [value] = uncontrolledState;
|
|
25778
|
-
const prevValueRef =
|
|
26353
|
+
const prevValueRef = React15.useRef(value);
|
|
25779
26354
|
const handleChange = useCallbackRef(onChange);
|
|
25780
|
-
|
|
26355
|
+
React15.useEffect(() => {
|
|
25781
26356
|
if (prevValueRef.current !== value) {
|
|
25782
26357
|
handleChange(value);
|
|
25783
26358
|
prevValueRef.current = value;
|
|
@@ -25787,12 +26362,12 @@ function useUncontrolledState({
|
|
|
25787
26362
|
}
|
|
25788
26363
|
|
|
25789
26364
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
25790
|
-
import * as
|
|
25791
|
-
import { jsx as
|
|
26365
|
+
import * as React16 from "react";
|
|
26366
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
25792
26367
|
var NAME = "VisuallyHidden";
|
|
25793
|
-
var VisuallyHidden =
|
|
26368
|
+
var VisuallyHidden = React16.forwardRef(
|
|
25794
26369
|
(props, forwardedRef) => {
|
|
25795
|
-
return /* @__PURE__ */
|
|
26370
|
+
return /* @__PURE__ */ jsx53(
|
|
25796
26371
|
Primitive.span,
|
|
25797
26372
|
{
|
|
25798
26373
|
...props,
|
|
@@ -25818,7 +26393,7 @@ var VisuallyHidden = React18.forwardRef(
|
|
|
25818
26393
|
VisuallyHidden.displayName = NAME;
|
|
25819
26394
|
|
|
25820
26395
|
// node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
25821
|
-
import { Fragment as
|
|
26396
|
+
import { Fragment as Fragment9, jsx as jsx54, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
25822
26397
|
var PROVIDER_NAME = "ToastProvider";
|
|
25823
26398
|
var [Collection, useCollection, createCollectionScope] = createCollection("Toast");
|
|
25824
26399
|
var [createToastContext, createToastScope] = createContextScope("Toast", [createCollectionScope]);
|
|
@@ -25832,16 +26407,16 @@ var ToastProvider = (props) => {
|
|
|
25832
26407
|
swipeThreshold = 50,
|
|
25833
26408
|
children
|
|
25834
26409
|
} = props;
|
|
25835
|
-
const [viewport, setViewport] =
|
|
25836
|
-
const [toastCount, setToastCount] =
|
|
25837
|
-
const isFocusedToastEscapeKeyDownRef =
|
|
25838
|
-
const isClosePausedRef =
|
|
26410
|
+
const [viewport, setViewport] = React17.useState(null);
|
|
26411
|
+
const [toastCount, setToastCount] = React17.useState(0);
|
|
26412
|
+
const isFocusedToastEscapeKeyDownRef = React17.useRef(false);
|
|
26413
|
+
const isClosePausedRef = React17.useRef(false);
|
|
25839
26414
|
if (!label.trim()) {
|
|
25840
26415
|
console.error(
|
|
25841
26416
|
`Invalid prop \`label\` supplied to \`${PROVIDER_NAME}\`. Expected non-empty \`string\`.`
|
|
25842
26417
|
);
|
|
25843
26418
|
}
|
|
25844
|
-
return /* @__PURE__ */
|
|
26419
|
+
return /* @__PURE__ */ jsx54(Collection.Provider, { scope: __scopeToast, children: /* @__PURE__ */ jsx54(
|
|
25845
26420
|
ToastProviderProvider,
|
|
25846
26421
|
{
|
|
25847
26422
|
scope: __scopeToast,
|
|
@@ -25852,8 +26427,8 @@ var ToastProvider = (props) => {
|
|
|
25852
26427
|
toastCount,
|
|
25853
26428
|
viewport,
|
|
25854
26429
|
onViewportChange: setViewport,
|
|
25855
|
-
onToastAdd:
|
|
25856
|
-
onToastRemove:
|
|
26430
|
+
onToastAdd: React17.useCallback(() => setToastCount((prevCount) => prevCount + 1), []),
|
|
26431
|
+
onToastRemove: React17.useCallback(() => setToastCount((prevCount) => prevCount - 1), []),
|
|
25857
26432
|
isFocusedToastEscapeKeyDownRef,
|
|
25858
26433
|
isClosePausedRef,
|
|
25859
26434
|
children
|
|
@@ -25865,7 +26440,7 @@ var VIEWPORT_NAME = "ToastViewport";
|
|
|
25865
26440
|
var VIEWPORT_DEFAULT_HOTKEY = ["F8"];
|
|
25866
26441
|
var VIEWPORT_PAUSE = "toast.viewportPause";
|
|
25867
26442
|
var VIEWPORT_RESUME = "toast.viewportResume";
|
|
25868
|
-
var ToastViewport =
|
|
26443
|
+
var ToastViewport = React17.forwardRef(
|
|
25869
26444
|
(props, forwardedRef) => {
|
|
25870
26445
|
const {
|
|
25871
26446
|
__scopeToast,
|
|
@@ -25875,14 +26450,14 @@ var ToastViewport = React19.forwardRef(
|
|
|
25875
26450
|
} = props;
|
|
25876
26451
|
const context = useToastProviderContext(VIEWPORT_NAME, __scopeToast);
|
|
25877
26452
|
const getItems = useCollection(__scopeToast);
|
|
25878
|
-
const wrapperRef =
|
|
25879
|
-
const headFocusProxyRef =
|
|
25880
|
-
const tailFocusProxyRef =
|
|
25881
|
-
const ref =
|
|
26453
|
+
const wrapperRef = React17.useRef(null);
|
|
26454
|
+
const headFocusProxyRef = React17.useRef(null);
|
|
26455
|
+
const tailFocusProxyRef = React17.useRef(null);
|
|
26456
|
+
const ref = React17.useRef(null);
|
|
25882
26457
|
const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
|
|
25883
26458
|
const hotkeyLabel = hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
|
|
25884
26459
|
const hasToasts = context.toastCount > 0;
|
|
25885
|
-
|
|
26460
|
+
React17.useEffect(() => {
|
|
25886
26461
|
const handleKeyDown = (event) => {
|
|
25887
26462
|
const isHotkeyPressed = hotkey.every((key) => event[key] || event.code === key);
|
|
25888
26463
|
if (isHotkeyPressed) ref.current?.focus();
|
|
@@ -25890,7 +26465,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25890
26465
|
document.addEventListener("keydown", handleKeyDown);
|
|
25891
26466
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
25892
26467
|
}, [hotkey]);
|
|
25893
|
-
|
|
26468
|
+
React17.useEffect(() => {
|
|
25894
26469
|
const wrapper = wrapperRef.current;
|
|
25895
26470
|
const viewport = ref.current;
|
|
25896
26471
|
if (hasToasts && wrapper && viewport) {
|
|
@@ -25932,7 +26507,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25932
26507
|
};
|
|
25933
26508
|
}
|
|
25934
26509
|
}, [hasToasts, context.isClosePausedRef]);
|
|
25935
|
-
const getSortedTabbableCandidates =
|
|
26510
|
+
const getSortedTabbableCandidates = React17.useCallback(
|
|
25936
26511
|
({ tabbingDirection }) => {
|
|
25937
26512
|
const toastItems = getItems();
|
|
25938
26513
|
const tabbableCandidates = toastItems.map((toastItem) => {
|
|
@@ -25944,7 +26519,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25944
26519
|
},
|
|
25945
26520
|
[getItems]
|
|
25946
26521
|
);
|
|
25947
|
-
|
|
26522
|
+
React17.useEffect(() => {
|
|
25948
26523
|
const viewport = ref.current;
|
|
25949
26524
|
if (viewport) {
|
|
25950
26525
|
const handleKeyDown = (event) => {
|
|
@@ -25972,7 +26547,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25972
26547
|
return () => viewport.removeEventListener("keydown", handleKeyDown);
|
|
25973
26548
|
}
|
|
25974
26549
|
}, [getItems, getSortedTabbableCandidates]);
|
|
25975
|
-
return /* @__PURE__ */
|
|
26550
|
+
return /* @__PURE__ */ jsxs27(
|
|
25976
26551
|
Branch,
|
|
25977
26552
|
{
|
|
25978
26553
|
ref: wrapperRef,
|
|
@@ -25981,7 +26556,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25981
26556
|
tabIndex: -1,
|
|
25982
26557
|
style: { pointerEvents: hasToasts ? void 0 : "none" },
|
|
25983
26558
|
children: [
|
|
25984
|
-
hasToasts && /* @__PURE__ */
|
|
26559
|
+
hasToasts && /* @__PURE__ */ jsx54(
|
|
25985
26560
|
FocusProxy,
|
|
25986
26561
|
{
|
|
25987
26562
|
ref: headFocusProxyRef,
|
|
@@ -25993,8 +26568,8 @@ var ToastViewport = React19.forwardRef(
|
|
|
25993
26568
|
}
|
|
25994
26569
|
}
|
|
25995
26570
|
),
|
|
25996
|
-
/* @__PURE__ */
|
|
25997
|
-
hasToasts && /* @__PURE__ */
|
|
26571
|
+
/* @__PURE__ */ jsx54(Collection.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx54(Primitive.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),
|
|
26572
|
+
hasToasts && /* @__PURE__ */ jsx54(
|
|
25998
26573
|
FocusProxy,
|
|
25999
26574
|
{
|
|
26000
26575
|
ref: tailFocusProxyRef,
|
|
@@ -26013,11 +26588,11 @@ var ToastViewport = React19.forwardRef(
|
|
|
26013
26588
|
);
|
|
26014
26589
|
ToastViewport.displayName = VIEWPORT_NAME;
|
|
26015
26590
|
var FOCUS_PROXY_NAME = "ToastFocusProxy";
|
|
26016
|
-
var FocusProxy =
|
|
26591
|
+
var FocusProxy = React17.forwardRef(
|
|
26017
26592
|
(props, forwardedRef) => {
|
|
26018
26593
|
const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;
|
|
26019
26594
|
const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);
|
|
26020
|
-
return /* @__PURE__ */
|
|
26595
|
+
return /* @__PURE__ */ jsx54(
|
|
26021
26596
|
VisuallyHidden,
|
|
26022
26597
|
{
|
|
26023
26598
|
"aria-hidden": true,
|
|
@@ -26040,7 +26615,7 @@ var TOAST_SWIPE_START = "toast.swipeStart";
|
|
|
26040
26615
|
var TOAST_SWIPE_MOVE = "toast.swipeMove";
|
|
26041
26616
|
var TOAST_SWIPE_CANCEL = "toast.swipeCancel";
|
|
26042
26617
|
var TOAST_SWIPE_END = "toast.swipeEnd";
|
|
26043
|
-
var Toast =
|
|
26618
|
+
var Toast = React17.forwardRef(
|
|
26044
26619
|
(props, forwardedRef) => {
|
|
26045
26620
|
const { forceMount, open: openProp, defaultOpen, onOpenChange, ...toastProps } = props;
|
|
26046
26621
|
const [open = true, setOpen] = useControllableState({
|
|
@@ -26048,7 +26623,7 @@ var Toast = React19.forwardRef(
|
|
|
26048
26623
|
defaultProp: defaultOpen,
|
|
26049
26624
|
onChange: onOpenChange
|
|
26050
26625
|
});
|
|
26051
|
-
return /* @__PURE__ */
|
|
26626
|
+
return /* @__PURE__ */ jsx54(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx54(
|
|
26052
26627
|
ToastImpl,
|
|
26053
26628
|
{
|
|
26054
26629
|
open,
|
|
@@ -26091,7 +26666,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
26091
26666
|
onClose() {
|
|
26092
26667
|
}
|
|
26093
26668
|
});
|
|
26094
|
-
var ToastImpl =
|
|
26669
|
+
var ToastImpl = React17.forwardRef(
|
|
26095
26670
|
(props, forwardedRef) => {
|
|
26096
26671
|
const {
|
|
26097
26672
|
__scopeToast,
|
|
@@ -26109,21 +26684,21 @@ var ToastImpl = React19.forwardRef(
|
|
|
26109
26684
|
...toastProps
|
|
26110
26685
|
} = props;
|
|
26111
26686
|
const context = useToastProviderContext(TOAST_NAME, __scopeToast);
|
|
26112
|
-
const [node, setNode] =
|
|
26687
|
+
const [node, setNode] = React17.useState(null);
|
|
26113
26688
|
const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
|
|
26114
|
-
const pointerStartRef =
|
|
26115
|
-
const swipeDeltaRef =
|
|
26689
|
+
const pointerStartRef = React17.useRef(null);
|
|
26690
|
+
const swipeDeltaRef = React17.useRef(null);
|
|
26116
26691
|
const duration = durationProp || context.duration;
|
|
26117
|
-
const closeTimerStartTimeRef =
|
|
26118
|
-
const closeTimerRemainingTimeRef =
|
|
26119
|
-
const closeTimerRef =
|
|
26692
|
+
const closeTimerStartTimeRef = React17.useRef(0);
|
|
26693
|
+
const closeTimerRemainingTimeRef = React17.useRef(duration);
|
|
26694
|
+
const closeTimerRef = React17.useRef(0);
|
|
26120
26695
|
const { onToastAdd, onToastRemove } = context;
|
|
26121
26696
|
const handleClose = useCallbackRef(() => {
|
|
26122
26697
|
const isFocusInToast = node?.contains(document.activeElement);
|
|
26123
26698
|
if (isFocusInToast) context.viewport?.focus();
|
|
26124
26699
|
onClose();
|
|
26125
26700
|
});
|
|
26126
|
-
const startTimer =
|
|
26701
|
+
const startTimer = React17.useCallback(
|
|
26127
26702
|
(duration2) => {
|
|
26128
26703
|
if (!duration2 || duration2 === Infinity) return;
|
|
26129
26704
|
window.clearTimeout(closeTimerRef.current);
|
|
@@ -26132,7 +26707,7 @@ var ToastImpl = React19.forwardRef(
|
|
|
26132
26707
|
},
|
|
26133
26708
|
[handleClose]
|
|
26134
26709
|
);
|
|
26135
|
-
|
|
26710
|
+
React17.useEffect(() => {
|
|
26136
26711
|
const viewport = context.viewport;
|
|
26137
26712
|
if (viewport) {
|
|
26138
26713
|
const handleResume = () => {
|
|
@@ -26153,19 +26728,19 @@ var ToastImpl = React19.forwardRef(
|
|
|
26153
26728
|
};
|
|
26154
26729
|
}
|
|
26155
26730
|
}, [context.viewport, duration, onPause, onResume, startTimer]);
|
|
26156
|
-
|
|
26731
|
+
React17.useEffect(() => {
|
|
26157
26732
|
if (open && !context.isClosePausedRef.current) startTimer(duration);
|
|
26158
26733
|
}, [open, duration, context.isClosePausedRef, startTimer]);
|
|
26159
|
-
|
|
26734
|
+
React17.useEffect(() => {
|
|
26160
26735
|
onToastAdd();
|
|
26161
26736
|
return () => onToastRemove();
|
|
26162
26737
|
}, [onToastAdd, onToastRemove]);
|
|
26163
|
-
const announceTextContent =
|
|
26738
|
+
const announceTextContent = React17.useMemo(() => {
|
|
26164
26739
|
return node ? getAnnounceTextContent(node) : null;
|
|
26165
26740
|
}, [node]);
|
|
26166
26741
|
if (!context.viewport) return null;
|
|
26167
|
-
return /* @__PURE__ */
|
|
26168
|
-
announceTextContent && /* @__PURE__ */
|
|
26742
|
+
return /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
26743
|
+
announceTextContent && /* @__PURE__ */ jsx54(
|
|
26169
26744
|
ToastAnnounce,
|
|
26170
26745
|
{
|
|
26171
26746
|
__scopeToast,
|
|
@@ -26175,8 +26750,8 @@ var ToastImpl = React19.forwardRef(
|
|
|
26175
26750
|
children: announceTextContent
|
|
26176
26751
|
}
|
|
26177
26752
|
),
|
|
26178
|
-
/* @__PURE__ */
|
|
26179
|
-
/* @__PURE__ */
|
|
26753
|
+
/* @__PURE__ */ jsx54(ToastInteractiveProvider, { scope: __scopeToast, onClose: handleClose, children: ReactDOM4.createPortal(
|
|
26754
|
+
/* @__PURE__ */ jsx54(Collection.ItemSlot, { scope: __scopeToast, children: /* @__PURE__ */ jsx54(
|
|
26180
26755
|
Root,
|
|
26181
26756
|
{
|
|
26182
26757
|
asChild: true,
|
|
@@ -26184,7 +26759,7 @@ var ToastImpl = React19.forwardRef(
|
|
|
26184
26759
|
if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();
|
|
26185
26760
|
context.isFocusedToastEscapeKeyDownRef.current = false;
|
|
26186
26761
|
}),
|
|
26187
|
-
children: /* @__PURE__ */
|
|
26762
|
+
children: /* @__PURE__ */ jsx54(
|
|
26188
26763
|
Primitive.li,
|
|
26189
26764
|
{
|
|
26190
26765
|
role: "status",
|
|
@@ -26277,37 +26852,37 @@ var ToastImpl = React19.forwardRef(
|
|
|
26277
26852
|
var ToastAnnounce = (props) => {
|
|
26278
26853
|
const { __scopeToast, children, ...announceProps } = props;
|
|
26279
26854
|
const context = useToastProviderContext(TOAST_NAME, __scopeToast);
|
|
26280
|
-
const [renderAnnounceText, setRenderAnnounceText] =
|
|
26281
|
-
const [isAnnounced, setIsAnnounced] =
|
|
26855
|
+
const [renderAnnounceText, setRenderAnnounceText] = React17.useState(false);
|
|
26856
|
+
const [isAnnounced, setIsAnnounced] = React17.useState(false);
|
|
26282
26857
|
useNextFrame(() => setRenderAnnounceText(true));
|
|
26283
|
-
|
|
26858
|
+
React17.useEffect(() => {
|
|
26284
26859
|
const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);
|
|
26285
26860
|
return () => window.clearTimeout(timer);
|
|
26286
26861
|
}, []);
|
|
26287
|
-
return isAnnounced ? null : /* @__PURE__ */
|
|
26862
|
+
return isAnnounced ? null : /* @__PURE__ */ jsx54(Portal, { asChild: true, children: /* @__PURE__ */ jsx54(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
26288
26863
|
context.label,
|
|
26289
26864
|
" ",
|
|
26290
26865
|
children
|
|
26291
26866
|
] }) }) });
|
|
26292
26867
|
};
|
|
26293
26868
|
var TITLE_NAME = "ToastTitle";
|
|
26294
|
-
var ToastTitle =
|
|
26869
|
+
var ToastTitle = React17.forwardRef(
|
|
26295
26870
|
(props, forwardedRef) => {
|
|
26296
26871
|
const { __scopeToast, ...titleProps } = props;
|
|
26297
|
-
return /* @__PURE__ */
|
|
26872
|
+
return /* @__PURE__ */ jsx54(Primitive.div, { ...titleProps, ref: forwardedRef });
|
|
26298
26873
|
}
|
|
26299
26874
|
);
|
|
26300
26875
|
ToastTitle.displayName = TITLE_NAME;
|
|
26301
26876
|
var DESCRIPTION_NAME = "ToastDescription";
|
|
26302
|
-
var ToastDescription =
|
|
26877
|
+
var ToastDescription = React17.forwardRef(
|
|
26303
26878
|
(props, forwardedRef) => {
|
|
26304
26879
|
const { __scopeToast, ...descriptionProps } = props;
|
|
26305
|
-
return /* @__PURE__ */
|
|
26880
|
+
return /* @__PURE__ */ jsx54(Primitive.div, { ...descriptionProps, ref: forwardedRef });
|
|
26306
26881
|
}
|
|
26307
26882
|
);
|
|
26308
26883
|
ToastDescription.displayName = DESCRIPTION_NAME;
|
|
26309
26884
|
var ACTION_NAME = "ToastAction";
|
|
26310
|
-
var ToastAction =
|
|
26885
|
+
var ToastAction = React17.forwardRef(
|
|
26311
26886
|
(props, forwardedRef) => {
|
|
26312
26887
|
const { altText, ...actionProps } = props;
|
|
26313
26888
|
if (!altText.trim()) {
|
|
@@ -26316,16 +26891,16 @@ var ToastAction = React19.forwardRef(
|
|
|
26316
26891
|
);
|
|
26317
26892
|
return null;
|
|
26318
26893
|
}
|
|
26319
|
-
return /* @__PURE__ */
|
|
26894
|
+
return /* @__PURE__ */ jsx54(ToastAnnounceExclude, { altText, asChild: true, children: /* @__PURE__ */ jsx54(ToastClose, { ...actionProps, ref: forwardedRef }) });
|
|
26320
26895
|
}
|
|
26321
26896
|
);
|
|
26322
26897
|
ToastAction.displayName = ACTION_NAME;
|
|
26323
26898
|
var CLOSE_NAME = "ToastClose";
|
|
26324
|
-
var ToastClose =
|
|
26899
|
+
var ToastClose = React17.forwardRef(
|
|
26325
26900
|
(props, forwardedRef) => {
|
|
26326
26901
|
const { __scopeToast, ...closeProps } = props;
|
|
26327
26902
|
const interactiveContext = useToastInteractiveContext(CLOSE_NAME, __scopeToast);
|
|
26328
|
-
return /* @__PURE__ */
|
|
26903
|
+
return /* @__PURE__ */ jsx54(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ jsx54(
|
|
26329
26904
|
Primitive.button,
|
|
26330
26905
|
{
|
|
26331
26906
|
type: "button",
|
|
@@ -26337,9 +26912,9 @@ var ToastClose = React19.forwardRef(
|
|
|
26337
26912
|
}
|
|
26338
26913
|
);
|
|
26339
26914
|
ToastClose.displayName = CLOSE_NAME;
|
|
26340
|
-
var ToastAnnounceExclude =
|
|
26915
|
+
var ToastAnnounceExclude = React17.forwardRef((props, forwardedRef) => {
|
|
26341
26916
|
const { __scopeToast, altText, ...announceExcludeProps } = props;
|
|
26342
|
-
return /* @__PURE__ */
|
|
26917
|
+
return /* @__PURE__ */ jsx54(
|
|
26343
26918
|
Primitive.div,
|
|
26344
26919
|
{
|
|
26345
26920
|
"data-radix-toast-announce-exclude": "",
|
|
@@ -26445,6 +27020,8 @@ var Toast_default = {
|
|
|
26445
27020
|
};
|
|
26446
27021
|
|
|
26447
27022
|
// src/components/Toast.tsx
|
|
27023
|
+
import { Fragment as Fragment10, jsx as jsx55, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
27024
|
+
import { createElement as createElement4 } from "react";
|
|
26448
27025
|
var icons = {
|
|
26449
27026
|
info: Icons.Info,
|
|
26450
27027
|
error: Icons.Alert
|
|
@@ -26459,17 +27036,26 @@ function Toast2({
|
|
|
26459
27036
|
children,
|
|
26460
27037
|
...props
|
|
26461
27038
|
}) {
|
|
26462
|
-
return /* @__PURE__ */
|
|
27039
|
+
return /* @__PURE__ */ jsxs28(Root2, { ...props, className: (0, import_classnames42.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
27040
|
+
/* @__PURE__ */ jsx55(Icon, { className: Toast_default.icon, size: "md", children: variant && createElement3(icons[variant]) }),
|
|
27041
|
+
title && /* @__PURE__ */ jsx55(ToastTitle, { className: Toast_default.title, children: title }),
|
|
27042
|
+
description && /* @__PURE__ */ jsx55(ToastDescription, { className: Toast_default.description, children: description }),
|
|
27043
|
+
children && /* @__PURE__ */ jsx55(ToastAction, { className: Toast_default.action, altText: actionText || "Action", asChild: true, children }),
|
|
27044
|
+
!children && allowClose && /* @__PURE__ */ jsx55(ToastClose, { className: Toast_default.close, "aria-label": "Close", children: /* @__PURE__ */ jsx55(Icon, { size: "sm", "aria-hidden": true, children: /* @__PURE__ */ jsx55(Icons.Close, {}) }) })
|
|
27045
|
+
] });
|
|
26463
27046
|
}
|
|
26464
27047
|
function Toaster(props) {
|
|
26465
27048
|
const { toasts } = useToast();
|
|
26466
|
-
return /* @__PURE__ */
|
|
26467
|
-
|
|
26468
|
-
|
|
27049
|
+
return /* @__PURE__ */ jsxs28(Fragment10, { children: [
|
|
27050
|
+
toasts.map(({ id, message, props: props2 }) => {
|
|
27051
|
+
return /* @__PURE__ */ createElement4(Toast2, { ...props2, key: id, description: message });
|
|
27052
|
+
}),
|
|
27053
|
+
/* @__PURE__ */ jsx55(Viewport, { className: Toast_default.viewport, ...props })
|
|
27054
|
+
] });
|
|
26469
27055
|
}
|
|
26470
27056
|
|
|
26471
27057
|
// src/components/Toggle.tsx
|
|
26472
|
-
var
|
|
27058
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
26473
27059
|
|
|
26474
27060
|
// src/components/Toggle.module.css
|
|
26475
27061
|
var Toggle_default = {
|
|
@@ -26477,12 +27063,13 @@ var Toggle_default = {
|
|
|
26477
27063
|
};
|
|
26478
27064
|
|
|
26479
27065
|
// src/components/Toggle.tsx
|
|
27066
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
26480
27067
|
function Toggle({ children, className, ...props }) {
|
|
26481
|
-
return /* @__PURE__ */
|
|
27068
|
+
return /* @__PURE__ */ jsx56($efde0372d7a700fe$export$d2b052e7b4be1756, { ...props, className: (0, import_classnames43.default)(Toggle_default.toggle, className), children });
|
|
26482
27069
|
}
|
|
26483
27070
|
|
|
26484
27071
|
// src/components/ToggleGroup.tsx
|
|
26485
|
-
var
|
|
27072
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
26486
27073
|
|
|
26487
27074
|
// node_modules/@radix-ui/react-toggle-group/dist/index.mjs
|
|
26488
27075
|
import $jFibJ$react from "react";
|
|
@@ -26899,15 +27486,16 @@ var ToggleGroup_default = {
|
|
|
26899
27486
|
};
|
|
26900
27487
|
|
|
26901
27488
|
// src/components/ToggleGroup.tsx
|
|
26902
|
-
|
|
26903
|
-
|
|
27489
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
27490
|
+
function ToggleGroup({ className, children, ...props }) {
|
|
27491
|
+
return /* @__PURE__ */ jsx57($6c1fd9e6a8969628$export$af3ec21f6cfb5e30, { ...props, className: (0, import_classnames44.default)(ToggleGroup_default.group, className), children });
|
|
26904
27492
|
}
|
|
26905
|
-
function
|
|
26906
|
-
return /* @__PURE__ */
|
|
27493
|
+
function ToggleGroupItem({ className, children, ...props }) {
|
|
27494
|
+
return /* @__PURE__ */ jsx57($6c1fd9e6a8969628$export$b453109e13abe10b, { ...props, className: (0, import_classnames44.default)(ToggleGroup_default.item, className), children });
|
|
26907
27495
|
}
|
|
26908
27496
|
|
|
26909
27497
|
// src/components/Tooltip.tsx
|
|
26910
|
-
var
|
|
27498
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
26911
27499
|
|
|
26912
27500
|
// src/components/Tooltip.module.css
|
|
26913
27501
|
var Tooltip_default = {
|
|
@@ -26917,14 +27505,22 @@ var Tooltip_default = {
|
|
|
26917
27505
|
};
|
|
26918
27506
|
|
|
26919
27507
|
// src/components/Tooltip.tsx
|
|
26920
|
-
|
|
26921
|
-
|
|
27508
|
+
import { jsx as jsx58, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
27509
|
+
function Tooltip({ children, className, ...props }) {
|
|
27510
|
+
return /* @__PURE__ */ jsxs29($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames45.default)(Tooltip_default.tooltip, className), children: [
|
|
27511
|
+
/* @__PURE__ */ jsx58($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx58("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx58("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
27512
|
+
children
|
|
27513
|
+
] });
|
|
26922
27514
|
}
|
|
26923
27515
|
|
|
26924
27516
|
// src/components/ZenProvider.tsx
|
|
27517
|
+
import { jsx as jsx59, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
26925
27518
|
function ZenProvider({ config = {}, children }) {
|
|
26926
27519
|
const { toast: toast2 } = config;
|
|
26927
|
-
return /* @__PURE__ */
|
|
27520
|
+
return /* @__PURE__ */ jsxs30(ToastProvider, { ...toast2, children: [
|
|
27521
|
+
children,
|
|
27522
|
+
/* @__PURE__ */ jsx59(Toaster, {})
|
|
27523
|
+
] });
|
|
26928
27524
|
}
|
|
26929
27525
|
export {
|
|
26930
27526
|
Accordion,
|
|
@@ -26933,17 +27529,18 @@ export {
|
|
|
26933
27529
|
AccordionItem,
|
|
26934
27530
|
AlertBanner,
|
|
26935
27531
|
AlertDialog,
|
|
26936
|
-
|
|
26937
|
-
|
|
26938
|
-
|
|
26939
|
-
|
|
26940
|
-
|
|
27532
|
+
Box,
|
|
27533
|
+
Breadcrumb2 as Breadcrumb,
|
|
27534
|
+
Breadcrumbs,
|
|
27535
|
+
Button,
|
|
27536
|
+
Calendar,
|
|
27537
|
+
Checkbox,
|
|
26941
27538
|
Column,
|
|
26942
27539
|
Combobox,
|
|
26943
27540
|
ConfirmationDialog,
|
|
26944
27541
|
DataColumn,
|
|
26945
27542
|
DataTable,
|
|
26946
|
-
|
|
27543
|
+
Dialog,
|
|
26947
27544
|
$de32f1b87079253c$export$2e1e1122cf0cba88 as DialogTrigger,
|
|
26948
27545
|
Dots,
|
|
26949
27546
|
$1e2864c73f66a4da$export$6fb4a10d2c950550 as FileTrigger,
|
|
@@ -26952,50 +27549,52 @@ export {
|
|
|
26952
27549
|
Icon,
|
|
26953
27550
|
Icons,
|
|
26954
27551
|
InlineEditField,
|
|
26955
|
-
|
|
27552
|
+
Label,
|
|
26956
27553
|
List,
|
|
26957
27554
|
ListItem,
|
|
26958
27555
|
Loading,
|
|
26959
27556
|
LoadingButton,
|
|
26960
|
-
|
|
26961
|
-
|
|
27557
|
+
Menu,
|
|
27558
|
+
MenuItem2 as MenuItem,
|
|
26962
27559
|
$3674c52c6b3c5bce$export$27d2ad3c5815583e as MenuTrigger,
|
|
26963
|
-
|
|
27560
|
+
Modal,
|
|
26964
27561
|
Page,
|
|
26965
27562
|
PasswordField,
|
|
26966
|
-
|
|
26967
|
-
|
|
27563
|
+
Popover,
|
|
27564
|
+
ProgressBar,
|
|
26968
27565
|
ProgressCircle,
|
|
26969
|
-
|
|
26970
|
-
|
|
27566
|
+
Radio,
|
|
27567
|
+
RadioGroup,
|
|
26971
27568
|
Row,
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
|
|
27569
|
+
SearchField,
|
|
27570
|
+
Select,
|
|
27571
|
+
Slider,
|
|
27572
|
+
$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot,
|
|
26975
27573
|
Spinner,
|
|
26976
27574
|
StatusLight,
|
|
26977
|
-
|
|
26978
|
-
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
27575
|
+
$3674c52c6b3c5bce$export$ecabc99eeffab7ca as SubmenuTrigger,
|
|
27576
|
+
Switch,
|
|
27577
|
+
Tab,
|
|
27578
|
+
TabList,
|
|
27579
|
+
TabPanel,
|
|
27580
|
+
Table,
|
|
27581
|
+
TableBody,
|
|
26983
27582
|
TableCell,
|
|
26984
27583
|
TableColumn,
|
|
26985
|
-
|
|
27584
|
+
TableHeader,
|
|
26986
27585
|
TableRow,
|
|
26987
|
-
|
|
27586
|
+
Tabs,
|
|
26988
27587
|
Text,
|
|
26989
27588
|
TextArea,
|
|
26990
|
-
|
|
27589
|
+
TextField,
|
|
26991
27590
|
TextOverflow,
|
|
26992
27591
|
Toast2 as Toast,
|
|
26993
27592
|
ToastProvider,
|
|
26994
27593
|
Toaster,
|
|
26995
27594
|
Toggle,
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
27595
|
+
ToggleGroup,
|
|
27596
|
+
ToggleGroupItem,
|
|
27597
|
+
Tooltip,
|
|
26999
27598
|
$4e3b923658d69c60$export$8c610744efcf8a1d as TooltipTrigger,
|
|
27000
27599
|
ZenProvider,
|
|
27001
27600
|
useDebounce,
|