@umami/react-zen 0.3.0 → 0.4.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/index.d.ts +675 -624
- package/dist/index.js +623 -445
- package/dist/index.mjs +582 -404
- package/package.json +7 -4
- /package/dist/{styles.css → index.css} +0 -0
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;
|
|
@@ -23674,6 +23674,7 @@ var Icon_default = {
|
|
|
23674
23674
|
};
|
|
23675
23675
|
|
|
23676
23676
|
// src/components/Icon.tsx
|
|
23677
|
+
import { jsx } from "react/jsx-runtime";
|
|
23677
23678
|
function Icon({
|
|
23678
23679
|
size = "sm",
|
|
23679
23680
|
variant,
|
|
@@ -23683,22 +23684,22 @@ function Icon({
|
|
|
23683
23684
|
children,
|
|
23684
23685
|
...props
|
|
23685
23686
|
}) {
|
|
23686
|
-
return /* @__PURE__ */
|
|
23687
|
+
return /* @__PURE__ */ jsx(
|
|
23687
23688
|
$5e63c961fc1ce211$export$8c6ed5c666ac1360,
|
|
23688
23689
|
{
|
|
23689
23690
|
...props,
|
|
23690
23691
|
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
|
-
|
|
23692
|
+
style: { ...style, transform: rotate ? `rotate(${rotate}deg)` : void 0 },
|
|
23693
|
+
children
|
|
23694
|
+
}
|
|
23694
23695
|
);
|
|
23695
23696
|
}
|
|
23696
23697
|
|
|
23697
23698
|
// node_modules/react-icons/lib/iconBase.mjs
|
|
23698
|
-
import
|
|
23699
|
+
import React2 from "react";
|
|
23699
23700
|
|
|
23700
23701
|
// node_modules/react-icons/lib/iconContext.mjs
|
|
23701
|
-
import
|
|
23702
|
+
import React from "react";
|
|
23702
23703
|
var DefaultContext = {
|
|
23703
23704
|
color: void 0,
|
|
23704
23705
|
size: void 0,
|
|
@@ -23706,7 +23707,7 @@ var DefaultContext = {
|
|
|
23706
23707
|
style: void 0,
|
|
23707
23708
|
attr: void 0
|
|
23708
23709
|
};
|
|
23709
|
-
var IconContext =
|
|
23710
|
+
var IconContext = React.createContext && /* @__PURE__ */ React.createContext(DefaultContext);
|
|
23710
23711
|
|
|
23711
23712
|
// node_modules/react-icons/lib/iconBase.mjs
|
|
23712
23713
|
var _excluded = ["attr", "size", "title"];
|
|
@@ -23795,12 +23796,12 @@ function _toPrimitive(t, r2) {
|
|
|
23795
23796
|
return ("string" === r2 ? String : Number)(t);
|
|
23796
23797
|
}
|
|
23797
23798
|
function Tree2Element(tree) {
|
|
23798
|
-
return tree && tree.map((node, i) => /* @__PURE__ */
|
|
23799
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ React2.createElement(node.tag, _objectSpread({
|
|
23799
23800
|
key: i
|
|
23800
23801
|
}, node.attr), Tree2Element(node.child)));
|
|
23801
23802
|
}
|
|
23802
23803
|
function GenIcon(data) {
|
|
23803
|
-
return (props) => /* @__PURE__ */
|
|
23804
|
+
return (props) => /* @__PURE__ */ React2.createElement(IconBase, _extends2({
|
|
23804
23805
|
attr: _objectSpread({}, data.attr)
|
|
23805
23806
|
}, props), Tree2Element(data.child));
|
|
23806
23807
|
}
|
|
@@ -23815,7 +23816,7 @@ function IconBase(props) {
|
|
|
23815
23816
|
var className;
|
|
23816
23817
|
if (conf.className) className = conf.className;
|
|
23817
23818
|
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
23818
|
-
return /* @__PURE__ */
|
|
23819
|
+
return /* @__PURE__ */ React2.createElement("svg", _extends2({
|
|
23819
23820
|
stroke: "currentColor",
|
|
23820
23821
|
fill: "currentColor",
|
|
23821
23822
|
strokeWidth: "0"
|
|
@@ -23827,9 +23828,9 @@ function IconBase(props) {
|
|
|
23827
23828
|
height: computedSize,
|
|
23828
23829
|
width: computedSize,
|
|
23829
23830
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23830
|
-
}), title && /* @__PURE__ */
|
|
23831
|
+
}), title && /* @__PURE__ */ React2.createElement("title", null, title), props.children);
|
|
23831
23832
|
};
|
|
23832
|
-
return IconContext !== void 0 ? /* @__PURE__ */
|
|
23833
|
+
return IconContext !== void 0 ? /* @__PURE__ */ React2.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
23833
23834
|
}
|
|
23834
23835
|
|
|
23835
23836
|
// node_modules/react-icons/pi/index.mjs
|
|
@@ -23943,22 +23944,26 @@ var Accordion_default = {
|
|
|
23943
23944
|
};
|
|
23944
23945
|
|
|
23945
23946
|
// src/components/Accordion.tsx
|
|
23947
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
23946
23948
|
function Accordion({ className, children, ...props }) {
|
|
23947
|
-
return /* @__PURE__ */
|
|
23949
|
+
return /* @__PURE__ */ jsx2($1bf158f521e1b1b4$export$be92b6f5f03c0fe9, { ...props, className: (0, import_classnames2.default)(Accordion_default.accordion, className), children });
|
|
23948
23950
|
}
|
|
23949
23951
|
function AccordionItem({ className, children, ...props }) {
|
|
23950
|
-
return /* @__PURE__ */
|
|
23952
|
+
return /* @__PURE__ */ jsx2($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { ...props, className: (0, import_classnames2.default)(Accordion_default.item, className), children });
|
|
23951
23953
|
}
|
|
23952
23954
|
function AccordionHeader({ children, className, ...props }) {
|
|
23953
|
-
return /* @__PURE__ */
|
|
23955
|
+
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: [
|
|
23956
|
+
children,
|
|
23957
|
+
/* @__PURE__ */ jsx2(Icon, { className: Accordion_default.icon, size: "sm", children: /* @__PURE__ */ jsx2(Icons.Chevron, {}) })
|
|
23958
|
+
] }) });
|
|
23954
23959
|
}
|
|
23955
23960
|
function AccordionContent({ children, className, ...props }) {
|
|
23956
|
-
return /* @__PURE__ */
|
|
23961
|
+
return /* @__PURE__ */ jsx2($1bf158f521e1b1b4$export$7c6e2c02157bb7d2, { ...props, className: (0, import_classnames2.default)(Accordion_default.content, className), children });
|
|
23957
23962
|
}
|
|
23958
23963
|
|
|
23959
23964
|
// src/components/AlertBanner.tsx
|
|
23960
23965
|
var import_classnames3 = __toESM(require_classnames());
|
|
23961
|
-
import
|
|
23966
|
+
import { createElement } from "react";
|
|
23962
23967
|
|
|
23963
23968
|
// src/components/AlertBanner.module.css
|
|
23964
23969
|
var AlertBanner_default = {
|
|
@@ -23971,6 +23976,7 @@ var AlertBanner_default = {
|
|
|
23971
23976
|
};
|
|
23972
23977
|
|
|
23973
23978
|
// src/components/AlertBanner.tsx
|
|
23979
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
23974
23980
|
function AlertBanner({
|
|
23975
23981
|
title,
|
|
23976
23982
|
description,
|
|
@@ -23982,7 +23988,15 @@ function AlertBanner({
|
|
|
23982
23988
|
className,
|
|
23983
23989
|
...props
|
|
23984
23990
|
}) {
|
|
23985
|
-
return /* @__PURE__ */
|
|
23991
|
+
return /* @__PURE__ */ jsxs2("div", { ...props, className: (0, import_classnames3.default)(AlertBanner_default.banner, className, variant && AlertBanner_default[variant]), children: [
|
|
23992
|
+
(icon || variant) && /* @__PURE__ */ jsx3(Icon, { size: "md", children: variant ? createElement(AlertIcons[variant]) : icon }),
|
|
23993
|
+
/* @__PURE__ */ jsxs2("div", { className: AlertBanner_default.message, children: [
|
|
23994
|
+
/* @__PURE__ */ jsx3("div", { className: AlertBanner_default.title, children: title }),
|
|
23995
|
+
description && /* @__PURE__ */ jsx3("div", { className: AlertBanner_default.description, children: description })
|
|
23996
|
+
] }),
|
|
23997
|
+
children,
|
|
23998
|
+
allowClose && /* @__PURE__ */ jsx3(Icon, { className: AlertBanner_default.close, onClick: onClose, children: /* @__PURE__ */ jsx3(Icons.Close, {}) })
|
|
23999
|
+
] });
|
|
23986
24000
|
}
|
|
23987
24001
|
var AlertIcons = {
|
|
23988
24002
|
error: Icons.Alert,
|
|
@@ -24002,10 +24016,14 @@ var Dialog_default = {
|
|
|
24002
24016
|
};
|
|
24003
24017
|
|
|
24004
24018
|
// src/components/Dialog.tsx
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
|
|
24008
|
-
|
|
24019
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
24020
|
+
function Dialog({ title, children, className, ...props }) {
|
|
24021
|
+
return /* @__PURE__ */ jsx4($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames4.default)(Dialog_default.dialog, className), children: ({ close }) => {
|
|
24022
|
+
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
24023
|
+
title && /* @__PURE__ */ jsx4("div", { className: Dialog_default.title, children: title }),
|
|
24024
|
+
typeof children === "function" ? children({ close }) : children
|
|
24025
|
+
] });
|
|
24026
|
+
} });
|
|
24009
24027
|
}
|
|
24010
24028
|
|
|
24011
24029
|
// src/components/Flexbox.tsx
|
|
@@ -24105,6 +24123,7 @@ var Flexbox_default = {
|
|
|
24105
24123
|
};
|
|
24106
24124
|
|
|
24107
24125
|
// src/components/Flexbox.tsx
|
|
24126
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
24108
24127
|
function Flexbox({
|
|
24109
24128
|
inline,
|
|
24110
24129
|
direction,
|
|
@@ -24125,7 +24144,7 @@ function Flexbox({
|
|
|
24125
24144
|
children,
|
|
24126
24145
|
...attributes
|
|
24127
24146
|
}) {
|
|
24128
|
-
return /* @__PURE__ */
|
|
24147
|
+
return /* @__PURE__ */ jsx5(
|
|
24129
24148
|
"div",
|
|
24130
24149
|
{
|
|
24131
24150
|
...attributes,
|
|
@@ -24142,9 +24161,9 @@ function Flexbox({
|
|
|
24142
24161
|
inline && Flexbox_default.inline,
|
|
24143
24162
|
spacing && Flexbox_default[`spacing${spacing}`]
|
|
24144
24163
|
),
|
|
24145
|
-
style: { order, gap, flexBasis: basis, flexGrow: grow, flexShrink: shrink, ...style }
|
|
24146
|
-
|
|
24147
|
-
|
|
24164
|
+
style: { order, gap, flexBasis: basis, flexGrow: grow, flexShrink: shrink, ...style },
|
|
24165
|
+
children
|
|
24166
|
+
}
|
|
24148
24167
|
);
|
|
24149
24168
|
}
|
|
24150
24169
|
function replace(s) {
|
|
@@ -24152,17 +24171,18 @@ function replace(s) {
|
|
|
24152
24171
|
}
|
|
24153
24172
|
|
|
24154
24173
|
// src/components/Column.tsx
|
|
24174
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
24155
24175
|
function Column({ reverse, children, ...props }) {
|
|
24156
|
-
return /* @__PURE__ */
|
|
24176
|
+
return /* @__PURE__ */ jsx6(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
24157
24177
|
}
|
|
24158
24178
|
|
|
24159
24179
|
// src/components/Row.tsx
|
|
24180
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
24160
24181
|
function Row({ reverse, children, ...props }) {
|
|
24161
|
-
return /* @__PURE__ */
|
|
24182
|
+
return /* @__PURE__ */ jsx7(Flexbox, { ...props, direction: reverse ? "row-reverse" : "row", children });
|
|
24162
24183
|
}
|
|
24163
24184
|
|
|
24164
24185
|
// src/components/Button.tsx
|
|
24165
|
-
import React5 from "react";
|
|
24166
24186
|
var import_classnames6 = __toESM(require_classnames());
|
|
24167
24187
|
|
|
24168
24188
|
// src/components/Button.module.css
|
|
@@ -24180,7 +24200,8 @@ var Button_default = {
|
|
|
24180
24200
|
};
|
|
24181
24201
|
|
|
24182
24202
|
// src/components/Button.tsx
|
|
24183
|
-
|
|
24203
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
24204
|
+
function Button({
|
|
24184
24205
|
variant = "secondary",
|
|
24185
24206
|
size = "md",
|
|
24186
24207
|
preventFocusOnPress = true,
|
|
@@ -24190,19 +24211,19 @@ function _Button({
|
|
|
24190
24211
|
...props
|
|
24191
24212
|
}) {
|
|
24192
24213
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
24193
|
-
return /* @__PURE__ */
|
|
24214
|
+
return /* @__PURE__ */ jsx8(
|
|
24194
24215
|
Component,
|
|
24195
24216
|
{
|
|
24196
24217
|
...props,
|
|
24197
|
-
preventFocusOnPress,
|
|
24218
|
+
preventFocusOnPress: Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? preventFocusOnPress : void 0,
|
|
24198
24219
|
className: (0, import_classnames6.default)(
|
|
24199
24220
|
Button_default.button,
|
|
24200
24221
|
className,
|
|
24201
24222
|
variant && Button_default[variant],
|
|
24202
24223
|
size && Button_default[size]
|
|
24203
|
-
)
|
|
24204
|
-
|
|
24205
|
-
|
|
24224
|
+
),
|
|
24225
|
+
children
|
|
24226
|
+
}
|
|
24206
24227
|
);
|
|
24207
24228
|
}
|
|
24208
24229
|
|
|
@@ -24213,6 +24234,7 @@ var AlertDialog_default = {
|
|
|
24213
24234
|
};
|
|
24214
24235
|
|
|
24215
24236
|
// src/components/AlertDialog.tsx
|
|
24237
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
24216
24238
|
function AlertDialog({
|
|
24217
24239
|
title,
|
|
24218
24240
|
description,
|
|
@@ -24234,17 +24256,23 @@ function AlertDialog({
|
|
|
24234
24256
|
onCancel?.();
|
|
24235
24257
|
close();
|
|
24236
24258
|
};
|
|
24237
|
-
return /* @__PURE__ */
|
|
24238
|
-
return /* @__PURE__ */
|
|
24239
|
-
|
|
24240
|
-
{
|
|
24241
|
-
|
|
24242
|
-
|
|
24243
|
-
|
|
24244
|
-
|
|
24245
|
-
|
|
24246
|
-
|
|
24247
|
-
|
|
24259
|
+
return /* @__PURE__ */ jsx9(Dialog, { ...props, title, className: (0, import_classnames7.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
24260
|
+
return /* @__PURE__ */ jsxs4(Column, { spacing: 6, children: [
|
|
24261
|
+
typeof children === "function" ? children({ close }) : children,
|
|
24262
|
+
/* @__PURE__ */ jsxs4(Row, { spacing: 3, justifyContent: "end", children: [
|
|
24263
|
+
/* @__PURE__ */ jsx9(Button, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
24264
|
+
/* @__PURE__ */ jsx9(
|
|
24265
|
+
Button,
|
|
24266
|
+
{
|
|
24267
|
+
variant: isDanger ? "danger" : "primary",
|
|
24268
|
+
isDisabled: isConfirmDisabled,
|
|
24269
|
+
onPress: () => handleConfirm(close),
|
|
24270
|
+
children: confirmLabel
|
|
24271
|
+
}
|
|
24272
|
+
)
|
|
24273
|
+
] })
|
|
24274
|
+
] });
|
|
24275
|
+
} });
|
|
24248
24276
|
}
|
|
24249
24277
|
|
|
24250
24278
|
// src/components/Breadcrumbs.tsx
|
|
@@ -24258,11 +24286,15 @@ var Breadcrumbs_default = {
|
|
|
24258
24286
|
};
|
|
24259
24287
|
|
|
24260
24288
|
// src/components/Breadcrumbs.tsx
|
|
24261
|
-
|
|
24262
|
-
|
|
24289
|
+
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
24290
|
+
function Breadcrumbs({ children, className, ...props }) {
|
|
24291
|
+
return /* @__PURE__ */ jsx10($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames8.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
24263
24292
|
}
|
|
24264
|
-
function
|
|
24265
|
-
return /* @__PURE__ */
|
|
24293
|
+
function Breadcrumb2({ children, className, ...props }) {
|
|
24294
|
+
return /* @__PURE__ */ jsxs5($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames8.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
24295
|
+
children,
|
|
24296
|
+
/* @__PURE__ */ jsx10(Icon, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ jsx10(Icons.Chevron, {}) })
|
|
24297
|
+
] });
|
|
24266
24298
|
}
|
|
24267
24299
|
|
|
24268
24300
|
// src/components/Calendar.tsx
|
|
@@ -24279,8 +24311,19 @@ var Calendar_default = {
|
|
|
24279
24311
|
};
|
|
24280
24312
|
|
|
24281
24313
|
// src/components/Calendar.tsx
|
|
24282
|
-
|
|
24283
|
-
|
|
24314
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
24315
|
+
function Calendar({ className, ...props }) {
|
|
24316
|
+
return /* @__PURE__ */ jsxs6($dfd62f934fc76fed$export$e1aef45b828286de, { ...props, className: (0, import_classnames9.default)(Calendar_default.calendar, className), children: [
|
|
24317
|
+
/* @__PURE__ */ jsxs6("header", { className: Calendar_default.header, children: [
|
|
24318
|
+
/* @__PURE__ */ jsx11(Button, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx11(Icon, { rotate: 180, children: /* @__PURE__ */ jsx11(Icons.Chevron, {}) }) }),
|
|
24319
|
+
/* @__PURE__ */ jsx11($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
24320
|
+
/* @__PURE__ */ jsx11(Button, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx11(Icon, { children: /* @__PURE__ */ jsx11(Icons.Chevron, {}) }) })
|
|
24321
|
+
] }),
|
|
24322
|
+
/* @__PURE__ */ jsxs6($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
24323
|
+
/* @__PURE__ */ jsx11($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ jsx11($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
24324
|
+
/* @__PURE__ */ jsx11($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ jsx11($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
24325
|
+
] })
|
|
24326
|
+
] });
|
|
24284
24327
|
}
|
|
24285
24328
|
|
|
24286
24329
|
// src/components/Checkbox.tsx
|
|
@@ -24294,10 +24337,14 @@ var Checkbox_default = {
|
|
|
24294
24337
|
};
|
|
24295
24338
|
|
|
24296
24339
|
// src/components/Checkbox.tsx
|
|
24297
|
-
|
|
24298
|
-
|
|
24299
|
-
|
|
24300
|
-
|
|
24340
|
+
import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
24341
|
+
function Checkbox({ className, children, ...props }) {
|
|
24342
|
+
return /* @__PURE__ */ jsx12($bc237834342dbd75$export$48513f6b9f8ce62d, { ...props, className: (0, import_classnames10.default)(Checkbox_default.checkbox, className), children: ({ isIndeterminate, isSelected }) => {
|
|
24343
|
+
return /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
24344
|
+
/* @__PURE__ */ jsx12("div", { className: Checkbox_default.box, children: /* @__PURE__ */ jsx12(Icon, { className: Checkbox_default.icon, size: "xs", children: isIndeterminate ? /* @__PURE__ */ jsx12(Icons.Minus, {}) : isSelected ? /* @__PURE__ */ jsx12(Icons.Check, {}) : null }) }),
|
|
24345
|
+
children
|
|
24346
|
+
] });
|
|
24347
|
+
} });
|
|
24301
24348
|
}
|
|
24302
24349
|
|
|
24303
24350
|
// src/components/Combobox.tsx
|
|
@@ -24316,8 +24363,12 @@ var ListItem_default = {
|
|
|
24316
24363
|
};
|
|
24317
24364
|
|
|
24318
24365
|
// src/components/ListItem.tsx
|
|
24366
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
24319
24367
|
function ListItem({ children, className, ...props }) {
|
|
24320
|
-
return /* @__PURE__ */
|
|
24368
|
+
return /* @__PURE__ */ jsxs8($eed445e0843c11d0$export$a11e76429ed99b4, { ...props, className: (0, import_classnames11.default)(ListItem_default.item, className), children: [
|
|
24369
|
+
children,
|
|
24370
|
+
/* @__PURE__ */ jsx13("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx13(Icon, { size: "sm", className: ListItem_default.check, children: /* @__PURE__ */ jsx13(Icons.Check, {}) }) })
|
|
24371
|
+
] });
|
|
24321
24372
|
}
|
|
24322
24373
|
var ListItem_default2 = ListItem;
|
|
24323
24374
|
|
|
@@ -24328,13 +24379,14 @@ var List_default = {
|
|
|
24328
24379
|
};
|
|
24329
24380
|
|
|
24330
24381
|
// src/components/List.tsx
|
|
24382
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
24331
24383
|
function List({ items, className, children, ...props }) {
|
|
24332
|
-
return /* @__PURE__ */
|
|
24384
|
+
return /* @__PURE__ */ jsx14($eed445e0843c11d0$export$41f133550aa26f48, { ...props, items, className: (0, import_classnames12.default)(List_default.list, className), children: children || items?.map((item, index) => {
|
|
24333
24385
|
if (item === null) {
|
|
24334
|
-
return /* @__PURE__ */
|
|
24386
|
+
return /* @__PURE__ */ jsx14($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }, index);
|
|
24335
24387
|
}
|
|
24336
|
-
return /* @__PURE__ */
|
|
24337
|
-
}));
|
|
24388
|
+
return /* @__PURE__ */ jsx14(ListItem_default2, { id: item, children: item }, index);
|
|
24389
|
+
}) });
|
|
24338
24390
|
}
|
|
24339
24391
|
|
|
24340
24392
|
// src/components/Popover.tsx
|
|
@@ -24347,8 +24399,9 @@ var Popover_default = {
|
|
|
24347
24399
|
};
|
|
24348
24400
|
|
|
24349
24401
|
// src/components/Popover.tsx
|
|
24350
|
-
|
|
24351
|
-
|
|
24402
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
24403
|
+
function Popover({ children, className, ...props }) {
|
|
24404
|
+
return /* @__PURE__ */ jsx15($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames13.default)(Popover_default.popover, className), children });
|
|
24352
24405
|
}
|
|
24353
24406
|
|
|
24354
24407
|
// src/components/Combobox.module.css
|
|
@@ -24362,8 +24415,15 @@ var Combobox_default = {
|
|
|
24362
24415
|
};
|
|
24363
24416
|
|
|
24364
24417
|
// src/components/Combobox.tsx
|
|
24418
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
24365
24419
|
function Combobox({ items, className, ...props }) {
|
|
24366
|
-
return /* @__PURE__ */
|
|
24420
|
+
return /* @__PURE__ */ jsxs9($d01f2c01039c0eec$export$72b9695b8216309a, { ...props, className: (0, import_classnames14.default)(Combobox_default.combobox, className), children: [
|
|
24421
|
+
/* @__PURE__ */ jsxs9("div", { className: Combobox_default.field, children: [
|
|
24422
|
+
/* @__PURE__ */ jsx16($3985021b0ad6602f$export$f5b8910cec6cf069, { className: Combobox_default.input }),
|
|
24423
|
+
/* @__PURE__ */ jsx16($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: Combobox_default.button, children: /* @__PURE__ */ jsx16(Icon, { rotate: 90, size: "xs", className: Combobox_default.icon, children: /* @__PURE__ */ jsx16(Icons.Chevron, {}) }) })
|
|
24424
|
+
] }),
|
|
24425
|
+
/* @__PURE__ */ jsx16(Popover, { children: /* @__PURE__ */ jsx16(List, { items, className: Combobox_default.list, children: items.map((item) => /* @__PURE__ */ jsx16(ListItem, { textValue: item, children: item }, item)) }) })
|
|
24426
|
+
] });
|
|
24367
24427
|
}
|
|
24368
24428
|
|
|
24369
24429
|
// src/components/ConfirmationDialog.tsx
|
|
@@ -24385,6 +24445,7 @@ var CopyButton_default = {
|
|
|
24385
24445
|
};
|
|
24386
24446
|
|
|
24387
24447
|
// src/components/CopyButton.tsx
|
|
24448
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
24388
24449
|
var TIMEOUT = 2e3;
|
|
24389
24450
|
function CopyButton({ value, className, children, ...props }) {
|
|
24390
24451
|
const [copied, setCopied] = useState3(false);
|
|
@@ -24397,7 +24458,7 @@ function CopyButton({ value, className, children, ...props }) {
|
|
|
24397
24458
|
timeout.current = +setTimeout(() => setCopied(false), TIMEOUT);
|
|
24398
24459
|
}
|
|
24399
24460
|
};
|
|
24400
|
-
return /* @__PURE__ */
|
|
24461
|
+
return /* @__PURE__ */ jsx17(Icon, { ...props, className: (0, import_classnames15.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx17(Icons.Check, {}) : /* @__PURE__ */ jsx17(Icons.Copy, {}) });
|
|
24401
24462
|
}
|
|
24402
24463
|
|
|
24403
24464
|
// src/components/Field.module.css
|
|
@@ -24414,7 +24475,8 @@ var TextField_default = {
|
|
|
24414
24475
|
};
|
|
24415
24476
|
|
|
24416
24477
|
// src/components/TextField.tsx
|
|
24417
|
-
|
|
24478
|
+
import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
24479
|
+
function TextField({
|
|
24418
24480
|
value,
|
|
24419
24481
|
defaultValue,
|
|
24420
24482
|
asTextArea,
|
|
@@ -24429,14 +24491,17 @@ function _TextField({
|
|
|
24429
24491
|
setInputValue(e.target.value);
|
|
24430
24492
|
return onChange?.(e);
|
|
24431
24493
|
};
|
|
24432
|
-
return /* @__PURE__ */
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24494
|
+
return /* @__PURE__ */ jsxs10($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, className: (0, import_classnames16.default)(Field_default.field, className), children: [
|
|
24495
|
+
/* @__PURE__ */ jsx18(
|
|
24496
|
+
Component,
|
|
24497
|
+
{
|
|
24498
|
+
value: inputValue,
|
|
24499
|
+
className: (0, import_classnames16.default)(Field_default.input, asTextArea && TextField_default.textarea),
|
|
24500
|
+
onChange: handleChange
|
|
24501
|
+
}
|
|
24502
|
+
),
|
|
24503
|
+
allowCopy && /* @__PURE__ */ jsx18(CopyButton, { className: TextField_default.copy, value: inputValue })
|
|
24504
|
+
] });
|
|
24440
24505
|
}
|
|
24441
24506
|
|
|
24442
24507
|
// src/components/Text.tsx
|
|
@@ -24463,9 +24528,10 @@ var Text_default = {
|
|
|
24463
24528
|
};
|
|
24464
24529
|
|
|
24465
24530
|
// src/components/Text.tsx
|
|
24531
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
24466
24532
|
function Text({ children, type, size, spacing, weight, asChild, className, ...props }) {
|
|
24467
24533
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "span";
|
|
24468
|
-
return /* @__PURE__ */
|
|
24534
|
+
return /* @__PURE__ */ jsx19(
|
|
24469
24535
|
Component,
|
|
24470
24536
|
{
|
|
24471
24537
|
...props,
|
|
@@ -24476,9 +24542,9 @@ function Text({ children, type, size, spacing, weight, asChild, className, ...pr
|
|
|
24476
24542
|
spacing && Text_default[spacing],
|
|
24477
24543
|
type && Text_default[type],
|
|
24478
24544
|
weight && Text_default[weight]
|
|
24479
|
-
)
|
|
24480
|
-
|
|
24481
|
-
|
|
24545
|
+
),
|
|
24546
|
+
children
|
|
24547
|
+
}
|
|
24482
24548
|
);
|
|
24483
24549
|
}
|
|
24484
24550
|
|
|
@@ -24489,6 +24555,7 @@ var ConfirmationDialog_default = {
|
|
|
24489
24555
|
};
|
|
24490
24556
|
|
|
24491
24557
|
// src/components/ConfirmationDialog.tsx
|
|
24558
|
+
import { Fragment as Fragment3, jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
24492
24559
|
function ConfirmationDialog({
|
|
24493
24560
|
value,
|
|
24494
24561
|
confirmMessage,
|
|
@@ -24500,15 +24567,23 @@ function ConfirmationDialog({
|
|
|
24500
24567
|
const handleChange = (e) => {
|
|
24501
24568
|
setCanSave(e.target.value === value);
|
|
24502
24569
|
};
|
|
24503
|
-
return /* @__PURE__ */
|
|
24570
|
+
return /* @__PURE__ */ jsx20(
|
|
24504
24571
|
AlertDialog,
|
|
24505
24572
|
{
|
|
24506
24573
|
...props,
|
|
24507
24574
|
className: (0, import_classnames18.default)(ConfirmationDialog_default.dialog, className),
|
|
24508
|
-
isConfirmDisabled: !canSave
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24575
|
+
isConfirmDisabled: !canSave,
|
|
24576
|
+
children: ({ close }) => {
|
|
24577
|
+
return /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
24578
|
+
typeof children === "function" ? children({ close }) : children,
|
|
24579
|
+
/* @__PURE__ */ jsxs11(Text, { children: [
|
|
24580
|
+
confirmMessage || "Type the following value to confirm",
|
|
24581
|
+
":"
|
|
24582
|
+
] }),
|
|
24583
|
+
/* @__PURE__ */ jsx20("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
24584
|
+
/* @__PURE__ */ jsx20(TextField, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
24585
|
+
] });
|
|
24586
|
+
}
|
|
24512
24587
|
}
|
|
24513
24588
|
);
|
|
24514
24589
|
}
|
|
@@ -24534,31 +24609,32 @@ var Table_default = {
|
|
|
24534
24609
|
};
|
|
24535
24610
|
|
|
24536
24611
|
// src/components/Table.tsx
|
|
24537
|
-
|
|
24538
|
-
|
|
24612
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
24613
|
+
function Table({ children, className, ...props }) {
|
|
24614
|
+
return /* @__PURE__ */ jsx21($1910c06f0ca9905e$export$54ec01a60f47d33d, { ...props, className: (0, import_classnames19.default)(Table_default.table, className), "aria-label": "Table", children });
|
|
24539
24615
|
}
|
|
24540
|
-
function
|
|
24541
|
-
return /* @__PURE__ */
|
|
24616
|
+
function TableHeader({ children, className, ...props }) {
|
|
24617
|
+
return /* @__PURE__ */ jsx21($1910c06f0ca9905e$export$f850895b287ef28e, { ...props, className: (0, import_classnames19.default)(Table_default.header, className), children });
|
|
24542
24618
|
}
|
|
24543
|
-
function
|
|
24544
|
-
return /* @__PURE__ */
|
|
24619
|
+
function TableBody({ children, className, ...props }) {
|
|
24620
|
+
return /* @__PURE__ */ jsx21($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames19.default)(Table_default.body, className), children });
|
|
24545
24621
|
}
|
|
24546
24622
|
function TableRow({ children, className, ...props }) {
|
|
24547
|
-
return /* @__PURE__ */
|
|
24623
|
+
return /* @__PURE__ */ jsx21($1910c06f0ca9905e$export$b59bdbef9ce70de2, { ...props, className: (0, import_classnames19.default)(Table_default.row, className), children });
|
|
24548
24624
|
}
|
|
24549
24625
|
function TableColumn({ children, className, alignment, ...props }) {
|
|
24550
|
-
return /* @__PURE__ */
|
|
24626
|
+
return /* @__PURE__ */ jsx21(
|
|
24551
24627
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
24552
24628
|
{
|
|
24553
24629
|
...props,
|
|
24554
24630
|
className: (0, import_classnames19.default)(Table_default.column, className, alignment && Table_default[alignment]),
|
|
24555
|
-
isRowHeader: true
|
|
24556
|
-
|
|
24557
|
-
|
|
24631
|
+
isRowHeader: true,
|
|
24632
|
+
children
|
|
24633
|
+
}
|
|
24558
24634
|
);
|
|
24559
24635
|
}
|
|
24560
24636
|
function TableCell({ children, className, alignment, ...props }) {
|
|
24561
|
-
return /* @__PURE__ */
|
|
24637
|
+
return /* @__PURE__ */ jsx21($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames19.default)(Table_default.cell, className, alignment && Table_default[alignment]), children });
|
|
24562
24638
|
}
|
|
24563
24639
|
|
|
24564
24640
|
// src/components/DataTable.module.css
|
|
@@ -24568,20 +24644,25 @@ var DataTable_default = {
|
|
|
24568
24644
|
};
|
|
24569
24645
|
|
|
24570
24646
|
// src/components/DataTable.tsx
|
|
24647
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
24648
|
+
import { createElement as createElement2 } from "react";
|
|
24571
24649
|
function DataTable({ data = [], className, children, ...props }) {
|
|
24572
24650
|
const columns = Children.map(children, (child) => {
|
|
24573
24651
|
return { ...child.props, value: child.props.children };
|
|
24574
24652
|
});
|
|
24575
|
-
return /* @__PURE__ */
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24653
|
+
return /* @__PURE__ */ jsxs12(Table, { ...props, className: (0, import_classnames20.default)(DataTable_default.datatable, className), children: [
|
|
24654
|
+
/* @__PURE__ */ jsx22(TableHeader, { children: columns.map(({ id, label, hidden, ...columnProps }) => {
|
|
24655
|
+
if (hidden) {
|
|
24656
|
+
return null;
|
|
24657
|
+
}
|
|
24658
|
+
return /* @__PURE__ */ createElement2(TableColumn, { ...columnProps, key: id, id }, label);
|
|
24659
|
+
}) }),
|
|
24660
|
+
/* @__PURE__ */ jsx22(TableBody, { items: data, children: (row) => {
|
|
24661
|
+
return /* @__PURE__ */ jsx22(TableRow, { children: columns.map(({ id, value, className: className2, ...cellProps }) => {
|
|
24662
|
+
return /* @__PURE__ */ createElement2(TableCell, { ...cellProps, key: id, className: (0, import_classnames20.default)(DataTable_default.cell, className2) }, !value && row[id], typeof value === "function" ? value(row, id) : value);
|
|
24663
|
+
}) });
|
|
24664
|
+
} })
|
|
24665
|
+
] });
|
|
24585
24666
|
}
|
|
24586
24667
|
function DataColumn(props) {
|
|
24587
24668
|
return null;
|
|
@@ -24598,8 +24679,13 @@ var Dots_default = {
|
|
|
24598
24679
|
};
|
|
24599
24680
|
|
|
24600
24681
|
// src/components/Dots.tsx
|
|
24682
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
24601
24683
|
function Dots({ className, ...props }) {
|
|
24602
|
-
return /* @__PURE__ */
|
|
24684
|
+
return /* @__PURE__ */ jsxs13("div", { ...props, className: (0, import_classnames21.default)(Dots_default.dots, className), children: [
|
|
24685
|
+
/* @__PURE__ */ jsx23("div", { className: Dots_default.dot }),
|
|
24686
|
+
/* @__PURE__ */ jsx23("div", { className: Dots_default.dot }),
|
|
24687
|
+
/* @__PURE__ */ jsx23("div", { className: Dots_default.dot })
|
|
24688
|
+
] });
|
|
24603
24689
|
}
|
|
24604
24690
|
|
|
24605
24691
|
// src/components/Heading.tsx
|
|
@@ -24620,15 +24706,16 @@ var Heading_default = {
|
|
|
24620
24706
|
};
|
|
24621
24707
|
|
|
24622
24708
|
// src/components/Heading.tsx
|
|
24709
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
24623
24710
|
function Heading({ size = 5, className, children, asChild, ...props }) {
|
|
24624
24711
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "h1";
|
|
24625
|
-
return /* @__PURE__ */
|
|
24712
|
+
return /* @__PURE__ */ jsx24(
|
|
24626
24713
|
Component,
|
|
24627
24714
|
{
|
|
24628
24715
|
...props,
|
|
24629
|
-
className: (0, import_classnames22.default)(Heading_default.heading, className, size && Heading_default[`size${size}`])
|
|
24630
|
-
|
|
24631
|
-
|
|
24716
|
+
className: (0, import_classnames22.default)(Heading_default.heading, className, size && Heading_default[`size${size}`]),
|
|
24717
|
+
children
|
|
24718
|
+
}
|
|
24632
24719
|
);
|
|
24633
24720
|
}
|
|
24634
24721
|
|
|
@@ -24643,6 +24730,7 @@ var InlineEditField_default = {
|
|
|
24643
24730
|
};
|
|
24644
24731
|
|
|
24645
24732
|
// src/components/InlineEditField.tsx
|
|
24733
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
24646
24734
|
function InlineEditField({
|
|
24647
24735
|
value: defaultValue = "",
|
|
24648
24736
|
defaultEdit,
|
|
@@ -24677,26 +24765,28 @@ function InlineEditField({
|
|
|
24677
24765
|
handleCancel();
|
|
24678
24766
|
}
|
|
24679
24767
|
};
|
|
24680
|
-
return /* @__PURE__ */
|
|
24768
|
+
return /* @__PURE__ */ jsxs14(
|
|
24681
24769
|
"div",
|
|
24682
24770
|
{
|
|
24683
24771
|
"aria-label": "Edit",
|
|
24684
24772
|
...props,
|
|
24685
24773
|
className: (0, import_classnames23.default)(InlineEditField_default.edit, className),
|
|
24686
|
-
onClick: handleEdit
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24698
|
-
|
|
24699
|
-
|
|
24774
|
+
onClick: handleEdit,
|
|
24775
|
+
children: [
|
|
24776
|
+
!edit && children,
|
|
24777
|
+
!edit && /* @__PURE__ */ jsx25(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx25(Icons.Edit, {}) }),
|
|
24778
|
+
edit && /* @__PURE__ */ jsx25(
|
|
24779
|
+
TextField,
|
|
24780
|
+
{
|
|
24781
|
+
value,
|
|
24782
|
+
onKeyDown: handleKeyDown,
|
|
24783
|
+
onBlur: handleCommit,
|
|
24784
|
+
onChange: handleChange,
|
|
24785
|
+
autoFocus: true
|
|
24786
|
+
}
|
|
24787
|
+
)
|
|
24788
|
+
]
|
|
24789
|
+
}
|
|
24700
24790
|
);
|
|
24701
24791
|
}
|
|
24702
24792
|
|
|
@@ -24709,8 +24799,9 @@ var Label_default = {
|
|
|
24709
24799
|
};
|
|
24710
24800
|
|
|
24711
24801
|
// src/components/Label.tsx
|
|
24712
|
-
|
|
24713
|
-
|
|
24802
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
24803
|
+
function Label({ asChild, className, ...props }) {
|
|
24804
|
+
return /* @__PURE__ */ jsx26($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames24.default)(Label_default.label, className) });
|
|
24714
24805
|
}
|
|
24715
24806
|
|
|
24716
24807
|
// src/components/Loading.tsx
|
|
@@ -24734,17 +24825,21 @@ var Spinner_default = {
|
|
|
24734
24825
|
};
|
|
24735
24826
|
|
|
24736
24827
|
// src/components/Spinner.tsx
|
|
24828
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
24737
24829
|
function Spinner(props) {
|
|
24738
24830
|
const { size = "lg", quiet, className, ...domProps } = props;
|
|
24739
|
-
return /* @__PURE__ */
|
|
24831
|
+
return /* @__PURE__ */ jsx27(
|
|
24740
24832
|
"div",
|
|
24741
24833
|
{
|
|
24742
24834
|
...domProps,
|
|
24743
24835
|
className: (0, import_classnames25.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
24744
24836
|
[Spinner_default.quiet]: quiet
|
|
24745
|
-
})
|
|
24746
|
-
|
|
24747
|
-
|
|
24837
|
+
}),
|
|
24838
|
+
children: /* @__PURE__ */ jsxs15("svg", { viewBox: "25 25 50 50", children: [
|
|
24839
|
+
/* @__PURE__ */ jsx27("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
24840
|
+
/* @__PURE__ */ jsx27("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
24841
|
+
] })
|
|
24842
|
+
}
|
|
24748
24843
|
);
|
|
24749
24844
|
}
|
|
24750
24845
|
|
|
@@ -24757,14 +24852,22 @@ var Loading_default = {
|
|
|
24757
24852
|
};
|
|
24758
24853
|
|
|
24759
24854
|
// src/components/Loading.tsx
|
|
24855
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
24760
24856
|
function Loading(props) {
|
|
24761
24857
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
24762
|
-
return /* @__PURE__ */
|
|
24858
|
+
return /* @__PURE__ */ jsxs16("div", { ...domProps, className: (0, import_classnames26.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
24859
|
+
icon === "dots" && /* @__PURE__ */ jsx28(Dots, {}),
|
|
24860
|
+
icon === "spinner" && /* @__PURE__ */ jsx28(Spinner, { size })
|
|
24861
|
+
] });
|
|
24763
24862
|
}
|
|
24764
24863
|
|
|
24765
24864
|
// src/components/LoadingButton.tsx
|
|
24865
|
+
import { jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
24766
24866
|
function LoadingButton({ isLoading, children, ...props }) {
|
|
24767
|
-
return /* @__PURE__ */
|
|
24867
|
+
return /* @__PURE__ */ jsxs17(Button, { ...props, children: [
|
|
24868
|
+
isLoading && /* @__PURE__ */ jsx29(Icon, { size: "sm", children: /* @__PURE__ */ jsx29(Spinner, {}) }),
|
|
24869
|
+
children
|
|
24870
|
+
] });
|
|
24768
24871
|
}
|
|
24769
24872
|
|
|
24770
24873
|
// src/components/Menu.tsx
|
|
@@ -24780,8 +24883,12 @@ var MenuItem_default = {
|
|
|
24780
24883
|
};
|
|
24781
24884
|
|
|
24782
24885
|
// src/components/MenuItem.tsx
|
|
24783
|
-
|
|
24784
|
-
|
|
24886
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
24887
|
+
function MenuItem2({ children, className, ...props }) {
|
|
24888
|
+
return /* @__PURE__ */ jsxs18($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames27.default)(MenuItem_default.item, className), children: [
|
|
24889
|
+
children,
|
|
24890
|
+
/* @__PURE__ */ jsx30("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx30(Icon, { className: MenuItem_default.check, children: /* @__PURE__ */ jsx30(Icons.Check, {}) }) })
|
|
24891
|
+
] });
|
|
24785
24892
|
}
|
|
24786
24893
|
|
|
24787
24894
|
// src/components/Menu.module.css
|
|
@@ -24791,13 +24898,14 @@ var Menu_default = {
|
|
|
24791
24898
|
};
|
|
24792
24899
|
|
|
24793
24900
|
// src/components/Menu.tsx
|
|
24794
|
-
|
|
24795
|
-
|
|
24901
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
24902
|
+
function Menu({ items, className, children, ...props }) {
|
|
24903
|
+
return /* @__PURE__ */ jsx31($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames28.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
|
|
24796
24904
|
if (item === null) {
|
|
24797
|
-
return /* @__PURE__ */
|
|
24905
|
+
return /* @__PURE__ */ jsx31($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
|
|
24798
24906
|
}
|
|
24799
|
-
return /* @__PURE__ */
|
|
24800
|
-
}));
|
|
24907
|
+
return /* @__PURE__ */ jsx31(MenuItem2, { id: item, children: item }, index);
|
|
24908
|
+
}) });
|
|
24801
24909
|
}
|
|
24802
24910
|
|
|
24803
24911
|
// src/components/Modal.tsx
|
|
@@ -24812,16 +24920,17 @@ var Modal_default = {
|
|
|
24812
24920
|
};
|
|
24813
24921
|
|
|
24814
24922
|
// src/components/Modal.tsx
|
|
24815
|
-
|
|
24816
|
-
|
|
24923
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
24924
|
+
function Modal({ children, className, ...props }) {
|
|
24925
|
+
return /* @__PURE__ */ jsx32($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, children: /* @__PURE__ */ jsx32(
|
|
24817
24926
|
$f3f84453ead64de5$export$2b77a92f1a5ad772,
|
|
24818
24927
|
{
|
|
24819
24928
|
className: (0, import_classnames29.default)(Modal_default.modal, className),
|
|
24820
24929
|
isDismissable: true,
|
|
24821
|
-
isKeyboardDismissDisabled: true
|
|
24822
|
-
|
|
24823
|
-
|
|
24824
|
-
));
|
|
24930
|
+
isKeyboardDismissDisabled: true,
|
|
24931
|
+
children
|
|
24932
|
+
}
|
|
24933
|
+
) });
|
|
24825
24934
|
}
|
|
24826
24935
|
|
|
24827
24936
|
// src/components/PasswordField.tsx
|
|
@@ -24835,11 +24944,15 @@ var PasswordField_default = {
|
|
|
24835
24944
|
};
|
|
24836
24945
|
|
|
24837
24946
|
// src/components/PasswordField.tsx
|
|
24947
|
+
import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
24838
24948
|
function PasswordField({ ...props }) {
|
|
24839
24949
|
const [show, setShow] = useState7(false);
|
|
24840
24950
|
const type = show ? "text" : "password";
|
|
24841
24951
|
const handleShowPassword = () => setShow((state) => !state);
|
|
24842
|
-
return /* @__PURE__ */
|
|
24952
|
+
return /* @__PURE__ */ jsxs19($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, className: PasswordField_default.field, children: [
|
|
24953
|
+
/* @__PURE__ */ jsx33($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: PasswordField_default.input }),
|
|
24954
|
+
/* @__PURE__ */ jsx33(Icon, { onClick: handleShowPassword, className: PasswordField_default.icon, children: show ? /* @__PURE__ */ jsx33(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx33(Icons.Eye, {}) })
|
|
24955
|
+
] });
|
|
24843
24956
|
}
|
|
24844
24957
|
|
|
24845
24958
|
// src/components/Page.tsx
|
|
@@ -24851,8 +24964,9 @@ var Page_default = {
|
|
|
24851
24964
|
};
|
|
24852
24965
|
|
|
24853
24966
|
// src/components/Page.tsx
|
|
24967
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
24854
24968
|
function Page({ className, children, ...props }) {
|
|
24855
|
-
return /* @__PURE__ */
|
|
24969
|
+
return /* @__PURE__ */ jsx34("div", { ...props, className: (0, import_classnames30.default)(Page_default.page, className), children });
|
|
24856
24970
|
}
|
|
24857
24971
|
|
|
24858
24972
|
// src/components/ProgressBar.tsx
|
|
@@ -24867,10 +24981,14 @@ var ProgressBar_default = {
|
|
|
24867
24981
|
};
|
|
24868
24982
|
|
|
24869
24983
|
// src/components/ProgressBar.tsx
|
|
24870
|
-
|
|
24871
|
-
|
|
24872
|
-
|
|
24873
|
-
|
|
24984
|
+
import { Fragment as Fragment4, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
24985
|
+
function ProgressBar({ className, showValue, ...props }) {
|
|
24986
|
+
return /* @__PURE__ */ jsx35($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames31.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
24987
|
+
return /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
24988
|
+
/* @__PURE__ */ jsx35("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx35("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
24989
|
+
showValue && /* @__PURE__ */ jsx35("div", { className: ProgressBar_default.value, children: valueText })
|
|
24990
|
+
] });
|
|
24991
|
+
} });
|
|
24874
24992
|
}
|
|
24875
24993
|
|
|
24876
24994
|
// src/components/ProgressCircle.tsx
|
|
@@ -24885,23 +25003,30 @@ var ProgressCircle_default = {
|
|
|
24885
25003
|
};
|
|
24886
25004
|
|
|
24887
25005
|
// src/components/ProgressCircle.tsx
|
|
25006
|
+
import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
24888
25007
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
24889
|
-
return /* @__PURE__ */
|
|
25008
|
+
return /* @__PURE__ */ jsx36($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames32.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
24890
25009
|
const radius = 45;
|
|
24891
25010
|
const circumference = radius * 2 * Math.PI;
|
|
24892
25011
|
const offset = circumference - percentage / 100 * circumference;
|
|
24893
|
-
return /* @__PURE__ */
|
|
24894
|
-
"
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
|
|
24904
|
-
|
|
25012
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
25013
|
+
/* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
25014
|
+
/* @__PURE__ */ jsx36("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
25015
|
+
/* @__PURE__ */ jsx36(
|
|
25016
|
+
"circle",
|
|
25017
|
+
{
|
|
25018
|
+
className: ProgressCircle_default.fill,
|
|
25019
|
+
cx: "50",
|
|
25020
|
+
cy: "50",
|
|
25021
|
+
r: "45",
|
|
25022
|
+
strokeDasharray: `${circumference} ${circumference}`,
|
|
25023
|
+
strokeDashoffset: offset
|
|
25024
|
+
}
|
|
25025
|
+
)
|
|
25026
|
+
] }),
|
|
25027
|
+
showValue && /* @__PURE__ */ jsx36("label", { className: ProgressCircle_default.value, children: valueText })
|
|
25028
|
+
] });
|
|
25029
|
+
} });
|
|
24905
25030
|
}
|
|
24906
25031
|
|
|
24907
25032
|
// src/components/RadioGroup.tsx
|
|
@@ -24914,11 +25039,12 @@ var RadioGroup_default = {
|
|
|
24914
25039
|
};
|
|
24915
25040
|
|
|
24916
25041
|
// src/components/RadioGroup.tsx
|
|
24917
|
-
|
|
24918
|
-
|
|
25042
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
25043
|
+
function RadioGroup({ children, className, ...props }) {
|
|
25044
|
+
return /* @__PURE__ */ jsx37($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, className: (0, import_classnames33.default)(RadioGroup_default.radiogroup, className), children });
|
|
24919
25045
|
}
|
|
24920
|
-
function
|
|
24921
|
-
return /* @__PURE__ */
|
|
25046
|
+
function Radio({ children, className, ...props }) {
|
|
25047
|
+
return /* @__PURE__ */ jsx37($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames33.default)(RadioGroup_default.radio, className), children });
|
|
24922
25048
|
}
|
|
24923
25049
|
|
|
24924
25050
|
// src/components/SearchField.tsx
|
|
@@ -24932,7 +25058,8 @@ var SearchField_default = {
|
|
|
24932
25058
|
};
|
|
24933
25059
|
|
|
24934
25060
|
// src/components/SearchField.tsx
|
|
24935
|
-
|
|
25061
|
+
import { Fragment as Fragment6, jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
25062
|
+
function SearchField({ value, delay = 0, onSearch, className, ...props }) {
|
|
24936
25063
|
const [search, setSearch] = useState8(value ?? "");
|
|
24937
25064
|
const searchValue = useDebounce(search, delay);
|
|
24938
25065
|
const handleChange = (e) => {
|
|
@@ -24951,9 +25078,13 @@ function _SearchField({ value, delay = 0, onSearch, className, ...props }) {
|
|
|
24951
25078
|
onSearch?.(searchValue);
|
|
24952
25079
|
}
|
|
24953
25080
|
}, [searchValue, delay, onSearch]);
|
|
24954
|
-
return /* @__PURE__ */
|
|
24955
|
-
return /* @__PURE__ */
|
|
24956
|
-
|
|
25081
|
+
return /* @__PURE__ */ jsx38($440f4836bcb56932$export$b94867ecbd698f21, { ...props, className: (0, import_classnames34.default)(Field_default.field, className), children: ({ state }) => {
|
|
25082
|
+
return /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
25083
|
+
/* @__PURE__ */ jsx38(Icons.MagnifyingGlass, { className: (0, import_classnames34.default)(Field_default.icon, SearchField_default.icon) }),
|
|
25084
|
+
/* @__PURE__ */ jsx38($3985021b0ad6602f$export$f5b8910cec6cf069, { className: Field_default.input, onChange: handleChange }),
|
|
25085
|
+
state.value && /* @__PURE__ */ jsx38($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: SearchField_default.button, onPress: resetSearch, children: /* @__PURE__ */ jsx38(Icon, { children: /* @__PURE__ */ jsx38(Icons.Close, {}) }) })
|
|
25086
|
+
] });
|
|
25087
|
+
} });
|
|
24957
25088
|
}
|
|
24958
25089
|
|
|
24959
25090
|
// src/components/Select.tsx
|
|
@@ -24968,8 +25099,15 @@ var Select_default = {
|
|
|
24968
25099
|
};
|
|
24969
25100
|
|
|
24970
25101
|
// src/components/Select.tsx
|
|
24971
|
-
|
|
24972
|
-
|
|
25102
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
25103
|
+
function Select({ children, items = [], value, className, ...props }) {
|
|
25104
|
+
return /* @__PURE__ */ jsxs23($82d7e5349645de74$export$ef9b1a59e592288f, { ...props, className: (0, import_classnames35.default)(Select_default.select, className), children: [
|
|
25105
|
+
/* @__PURE__ */ jsxs23($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: Select_default.button, children: [
|
|
25106
|
+
/* @__PURE__ */ jsx39($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
25107
|
+
/* @__PURE__ */ jsx39("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx39(Icon, { rotate: 90, size: "xs", className: Select_default.icon, children: /* @__PURE__ */ jsx39(Icons.Chevron, {}) }) })
|
|
25108
|
+
] }),
|
|
25109
|
+
/* @__PURE__ */ jsx39(Popover, { children: /* @__PURE__ */ jsx39(List, { items, className: Select_default.list, children: children || items.map((item) => /* @__PURE__ */ jsx39(ListItem_default2, { id: item, className: Select_default.item, children: item }, item)) }) })
|
|
25110
|
+
] });
|
|
24973
25111
|
}
|
|
24974
25112
|
|
|
24975
25113
|
// src/components/Slider.tsx
|
|
@@ -24986,19 +25124,27 @@ var Slider_default = {
|
|
|
24986
25124
|
};
|
|
24987
25125
|
|
|
24988
25126
|
// src/components/Slider.tsx
|
|
24989
|
-
|
|
24990
|
-
|
|
24991
|
-
|
|
24992
|
-
|
|
24993
|
-
|
|
24994
|
-
|
|
24995
|
-
|
|
24996
|
-
|
|
24997
|
-
|
|
24998
|
-
|
|
24999
|
-
|
|
25000
|
-
|
|
25001
|
-
|
|
25127
|
+
import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
25128
|
+
function Slider({ className, showValue = true, label, ...props }) {
|
|
25129
|
+
return /* @__PURE__ */ jsxs24($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames36.default)(Slider_default.slider, className), children: [
|
|
25130
|
+
label && /* @__PURE__ */ jsx40(Label, { className: Slider_default.label, children: label }),
|
|
25131
|
+
showValue && /* @__PURE__ */ jsx40($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output }),
|
|
25132
|
+
/* @__PURE__ */ jsx40($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
25133
|
+
const isHorizontal = state.orientation === "horizontal";
|
|
25134
|
+
return /* @__PURE__ */ jsxs24(Fragment7, { children: [
|
|
25135
|
+
/* @__PURE__ */ jsx40(
|
|
25136
|
+
"div",
|
|
25137
|
+
{
|
|
25138
|
+
className: Slider_default.fill,
|
|
25139
|
+
style: {
|
|
25140
|
+
[isHorizontal ? "width" : "height"]: (isHorizontal ? state.getThumbPercent(0) : 1 - state.getThumbPercent(0)) * 100 + "%"
|
|
25141
|
+
}
|
|
25142
|
+
}
|
|
25143
|
+
),
|
|
25144
|
+
/* @__PURE__ */ jsx40($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
25145
|
+
] });
|
|
25146
|
+
} })
|
|
25147
|
+
] });
|
|
25002
25148
|
}
|
|
25003
25149
|
|
|
25004
25150
|
// src/components/StatusLight.tsx
|
|
@@ -25017,15 +25163,19 @@ var StatusLight_default = {
|
|
|
25017
25163
|
};
|
|
25018
25164
|
|
|
25019
25165
|
// src/components/StatusLight.tsx
|
|
25166
|
+
import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
25020
25167
|
function StatusLight(props) {
|
|
25021
25168
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
25022
|
-
return /* @__PURE__ */
|
|
25023
|
-
"div",
|
|
25024
|
-
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
25169
|
+
return /* @__PURE__ */ jsxs25("div", { ...domProps, className: (0, import_classnames37.default)(StatusLight_default.statuslight, className), children: [
|
|
25170
|
+
/* @__PURE__ */ jsx41("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx41(
|
|
25171
|
+
"div",
|
|
25172
|
+
{
|
|
25173
|
+
className: (0, import_classnames37.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
25174
|
+
style: { backgroundColor: color }
|
|
25175
|
+
}
|
|
25176
|
+
) }),
|
|
25177
|
+
children
|
|
25178
|
+
] });
|
|
25029
25179
|
}
|
|
25030
25180
|
|
|
25031
25181
|
// src/components/Switch.tsx
|
|
@@ -25039,8 +25189,12 @@ var Switch_default = {
|
|
|
25039
25189
|
};
|
|
25040
25190
|
|
|
25041
25191
|
// src/components/Switch.tsx
|
|
25042
|
-
|
|
25043
|
-
|
|
25192
|
+
import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
25193
|
+
function Switch({ children, className, ...props }) {
|
|
25194
|
+
return /* @__PURE__ */ jsxs26($8e59e948500a8fe1$export$b5d5cf8927ab7262, { ...props, className: (0, import_classnames38.default)(Switch_default.switch, className), children: [
|
|
25195
|
+
/* @__PURE__ */ jsx42("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx42("div", { className: Switch_default.knob }) }),
|
|
25196
|
+
children
|
|
25197
|
+
] });
|
|
25044
25198
|
}
|
|
25045
25199
|
|
|
25046
25200
|
// src/components/Tabs.module.css
|
|
@@ -25052,17 +25206,18 @@ var Tabs_default = {
|
|
|
25052
25206
|
};
|
|
25053
25207
|
|
|
25054
25208
|
// src/components/Tabs.tsx
|
|
25055
|
-
|
|
25056
|
-
|
|
25209
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
25210
|
+
function Tabs({ children, ...props }) {
|
|
25211
|
+
return /* @__PURE__ */ jsx43($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
25057
25212
|
}
|
|
25058
|
-
function
|
|
25059
|
-
return /* @__PURE__ */
|
|
25213
|
+
function TabList({ children, ...props }) {
|
|
25214
|
+
return /* @__PURE__ */ jsx43($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
25060
25215
|
}
|
|
25061
|
-
function
|
|
25062
|
-
return /* @__PURE__ */
|
|
25216
|
+
function Tab({ children, ...props }) {
|
|
25217
|
+
return /* @__PURE__ */ jsx43($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
25063
25218
|
}
|
|
25064
|
-
function
|
|
25065
|
-
return /* @__PURE__ */
|
|
25219
|
+
function TabPanel({ children, ...props }) {
|
|
25220
|
+
return /* @__PURE__ */ jsx43($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
25066
25221
|
}
|
|
25067
25222
|
|
|
25068
25223
|
// src/components/TextOverflow.tsx
|
|
@@ -25075,9 +25230,10 @@ var TextOverflow_default = {
|
|
|
25075
25230
|
};
|
|
25076
25231
|
|
|
25077
25232
|
// src/components/TextOverflow.tsx
|
|
25233
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
25078
25234
|
function TextOverflow({ asChild, children, className, ...props }) {
|
|
25079
25235
|
const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "div";
|
|
25080
|
-
return /* @__PURE__ */
|
|
25236
|
+
return /* @__PURE__ */ jsx44("div", { ...props, className: (0, import_classnames39.default)(TextOverflow_default.wrapper, className), children: /* @__PURE__ */ jsx44(Component, { className: TextOverflow_default.overflow, children }) });
|
|
25081
25237
|
}
|
|
25082
25238
|
|
|
25083
25239
|
// src/components/TextArea.tsx
|
|
@@ -25091,16 +25247,17 @@ var TextArea_default = {
|
|
|
25091
25247
|
};
|
|
25092
25248
|
|
|
25093
25249
|
// src/components/TextArea.tsx
|
|
25250
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
25094
25251
|
function TextArea({ resize, className, ...props }) {
|
|
25095
|
-
return /* @__PURE__ */
|
|
25252
|
+
return /* @__PURE__ */ jsx45(TextField, { ...props, className: (0, import_classnames40.default)(resize && TextArea_default[resize]), asTextArea: true });
|
|
25096
25253
|
}
|
|
25097
25254
|
|
|
25098
25255
|
// src/components/Toast.tsx
|
|
25099
25256
|
var import_classnames41 = __toESM(require_classnames());
|
|
25100
|
-
import { createElement as
|
|
25257
|
+
import { createElement as createElement3 } from "react";
|
|
25101
25258
|
|
|
25102
25259
|
// node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
25103
|
-
import * as
|
|
25260
|
+
import * as React17 from "react";
|
|
25104
25261
|
import * as ReactDOM4 from "react-dom";
|
|
25105
25262
|
|
|
25106
25263
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
@@ -25114,7 +25271,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
25114
25271
|
}
|
|
25115
25272
|
|
|
25116
25273
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
25117
|
-
import * as
|
|
25274
|
+
import * as React4 from "react";
|
|
25118
25275
|
function setRef(ref, value) {
|
|
25119
25276
|
if (typeof ref === "function") {
|
|
25120
25277
|
ref(value);
|
|
@@ -25126,30 +25283,30 @@ function composeRefs(...refs) {
|
|
|
25126
25283
|
return (node) => refs.forEach((ref) => setRef(ref, node));
|
|
25127
25284
|
}
|
|
25128
25285
|
function useComposedRefs(...refs) {
|
|
25129
|
-
return
|
|
25286
|
+
return React4.useCallback(composeRefs(...refs), refs);
|
|
25130
25287
|
}
|
|
25131
25288
|
|
|
25132
25289
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
25133
|
-
import
|
|
25290
|
+
import React7 from "react";
|
|
25134
25291
|
|
|
25135
25292
|
// 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";
|
|
25293
|
+
import * as React5 from "react";
|
|
25294
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
25138
25295
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
25139
25296
|
let defaultContexts = [];
|
|
25140
25297
|
function createContext3(rootComponentName, defaultContext) {
|
|
25141
|
-
const BaseContext =
|
|
25298
|
+
const BaseContext = React5.createContext(defaultContext);
|
|
25142
25299
|
const index = defaultContexts.length;
|
|
25143
25300
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
25144
25301
|
function Provider(props) {
|
|
25145
25302
|
const { scope, children, ...context } = props;
|
|
25146
25303
|
const Context = scope?.[scopeName][index] || BaseContext;
|
|
25147
|
-
const value =
|
|
25148
|
-
return /* @__PURE__ */
|
|
25304
|
+
const value = React5.useMemo(() => context, Object.values(context));
|
|
25305
|
+
return /* @__PURE__ */ jsx46(Context.Provider, { value, children });
|
|
25149
25306
|
}
|
|
25150
25307
|
function useContext22(consumerName, scope) {
|
|
25151
25308
|
const Context = scope?.[scopeName][index] || BaseContext;
|
|
25152
|
-
const context =
|
|
25309
|
+
const context = React5.useContext(Context);
|
|
25153
25310
|
if (context) return context;
|
|
25154
25311
|
if (defaultContext !== void 0) return defaultContext;
|
|
25155
25312
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
@@ -25159,11 +25316,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
25159
25316
|
}
|
|
25160
25317
|
const createScope = () => {
|
|
25161
25318
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
25162
|
-
return
|
|
25319
|
+
return React5.createContext(defaultContext);
|
|
25163
25320
|
});
|
|
25164
25321
|
return function useScope(scope) {
|
|
25165
25322
|
const contexts = scope?.[scopeName] || scopeContexts;
|
|
25166
|
-
return
|
|
25323
|
+
return React5.useMemo(
|
|
25167
25324
|
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
25168
25325
|
[scope, contexts]
|
|
25169
25326
|
);
|
|
@@ -25186,7 +25343,7 @@ function composeContextScopes(...scopes) {
|
|
|
25186
25343
|
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
25187
25344
|
return { ...nextScopes2, ...currentScope };
|
|
25188
25345
|
}, {});
|
|
25189
|
-
return
|
|
25346
|
+
return React5.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
25190
25347
|
};
|
|
25191
25348
|
};
|
|
25192
25349
|
createScope.scopeName = baseScope.scopeName;
|
|
@@ -25194,45 +25351,45 @@ function composeContextScopes(...scopes) {
|
|
|
25194
25351
|
}
|
|
25195
25352
|
|
|
25196
25353
|
// 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 =
|
|
25354
|
+
import * as React6 from "react";
|
|
25355
|
+
import { Fragment as Fragment8, jsx as jsx47 } from "react/jsx-runtime";
|
|
25356
|
+
var Slot = React6.forwardRef((props, forwardedRef) => {
|
|
25200
25357
|
const { children, ...slotProps } = props;
|
|
25201
|
-
const childrenArray =
|
|
25358
|
+
const childrenArray = React6.Children.toArray(children);
|
|
25202
25359
|
const slottable = childrenArray.find(isSlottable);
|
|
25203
25360
|
if (slottable) {
|
|
25204
25361
|
const newElement = slottable.props.children;
|
|
25205
25362
|
const newChildren = childrenArray.map((child) => {
|
|
25206
25363
|
if (child === slottable) {
|
|
25207
|
-
if (
|
|
25208
|
-
return
|
|
25364
|
+
if (React6.Children.count(newElement) > 1) return React6.Children.only(null);
|
|
25365
|
+
return React6.isValidElement(newElement) ? newElement.props.children : null;
|
|
25209
25366
|
} else {
|
|
25210
25367
|
return child;
|
|
25211
25368
|
}
|
|
25212
25369
|
});
|
|
25213
|
-
return /* @__PURE__ */
|
|
25370
|
+
return /* @__PURE__ */ jsx47(SlotClone, { ...slotProps, ref: forwardedRef, children: React6.isValidElement(newElement) ? React6.cloneElement(newElement, void 0, newChildren) : null });
|
|
25214
25371
|
}
|
|
25215
|
-
return /* @__PURE__ */
|
|
25372
|
+
return /* @__PURE__ */ jsx47(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
25216
25373
|
});
|
|
25217
25374
|
Slot.displayName = "Slot";
|
|
25218
|
-
var SlotClone =
|
|
25375
|
+
var SlotClone = React6.forwardRef((props, forwardedRef) => {
|
|
25219
25376
|
const { children, ...slotProps } = props;
|
|
25220
|
-
if (
|
|
25377
|
+
if (React6.isValidElement(children)) {
|
|
25221
25378
|
const childrenRef = getElementRef(children);
|
|
25222
|
-
return
|
|
25379
|
+
return React6.cloneElement(children, {
|
|
25223
25380
|
...mergeProps(slotProps, children.props),
|
|
25224
25381
|
// @ts-ignore
|
|
25225
25382
|
ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
|
|
25226
25383
|
});
|
|
25227
25384
|
}
|
|
25228
|
-
return
|
|
25385
|
+
return React6.Children.count(children) > 1 ? React6.Children.only(null) : null;
|
|
25229
25386
|
});
|
|
25230
25387
|
SlotClone.displayName = "SlotClone";
|
|
25231
25388
|
var Slottable = ({ children }) => {
|
|
25232
|
-
return /* @__PURE__ */
|
|
25389
|
+
return /* @__PURE__ */ jsx47(Fragment8, { children });
|
|
25233
25390
|
};
|
|
25234
25391
|
function isSlottable(child) {
|
|
25235
|
-
return
|
|
25392
|
+
return React6.isValidElement(child) && child.type === Slottable;
|
|
25236
25393
|
}
|
|
25237
25394
|
function mergeProps(slotProps, childProps) {
|
|
25238
25395
|
const overrideProps = { ...childProps };
|
|
@@ -25272,7 +25429,7 @@ function getElementRef(element) {
|
|
|
25272
25429
|
}
|
|
25273
25430
|
|
|
25274
25431
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
25275
|
-
import { jsx as
|
|
25432
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
25276
25433
|
function createCollection(name) {
|
|
25277
25434
|
const PROVIDER_NAME2 = name + "CollectionProvider";
|
|
25278
25435
|
const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME2);
|
|
@@ -25282,40 +25439,40 @@ function createCollection(name) {
|
|
|
25282
25439
|
);
|
|
25283
25440
|
const CollectionProvider = (props) => {
|
|
25284
25441
|
const { scope, children } = props;
|
|
25285
|
-
const ref =
|
|
25286
|
-
const itemMap =
|
|
25287
|
-
return /* @__PURE__ */
|
|
25442
|
+
const ref = React7.useRef(null);
|
|
25443
|
+
const itemMap = React7.useRef(/* @__PURE__ */ new Map()).current;
|
|
25444
|
+
return /* @__PURE__ */ jsx48(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
25288
25445
|
};
|
|
25289
25446
|
CollectionProvider.displayName = PROVIDER_NAME2;
|
|
25290
25447
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
25291
|
-
const CollectionSlot =
|
|
25448
|
+
const CollectionSlot = React7.forwardRef(
|
|
25292
25449
|
(props, forwardedRef) => {
|
|
25293
25450
|
const { scope, children } = props;
|
|
25294
25451
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
25295
25452
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
25296
|
-
return /* @__PURE__ */
|
|
25453
|
+
return /* @__PURE__ */ jsx48(Slot, { ref: composedRefs, children });
|
|
25297
25454
|
}
|
|
25298
25455
|
);
|
|
25299
25456
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
25300
25457
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
25301
25458
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
25302
|
-
const CollectionItemSlot =
|
|
25459
|
+
const CollectionItemSlot = React7.forwardRef(
|
|
25303
25460
|
(props, forwardedRef) => {
|
|
25304
25461
|
const { scope, children, ...itemData } = props;
|
|
25305
|
-
const ref =
|
|
25462
|
+
const ref = React7.useRef(null);
|
|
25306
25463
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
25307
25464
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
25308
|
-
|
|
25465
|
+
React7.useEffect(() => {
|
|
25309
25466
|
context.itemMap.set(ref, { ref, ...itemData });
|
|
25310
25467
|
return () => void context.itemMap.delete(ref);
|
|
25311
25468
|
});
|
|
25312
|
-
return /* @__PURE__ */
|
|
25469
|
+
return /* @__PURE__ */ jsx48(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
25313
25470
|
}
|
|
25314
25471
|
);
|
|
25315
25472
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
25316
25473
|
function useCollection2(scope) {
|
|
25317
25474
|
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
25318
|
-
const getItems =
|
|
25475
|
+
const getItems = React7.useCallback(() => {
|
|
25319
25476
|
const collectionNode = context.collectionRef.current;
|
|
25320
25477
|
if (!collectionNode) return [];
|
|
25321
25478
|
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
@@ -25335,12 +25492,12 @@ function createCollection(name) {
|
|
|
25335
25492
|
}
|
|
25336
25493
|
|
|
25337
25494
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
25338
|
-
import * as
|
|
25495
|
+
import * as React11 from "react";
|
|
25339
25496
|
|
|
25340
25497
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
25341
|
-
import * as
|
|
25498
|
+
import * as React8 from "react";
|
|
25342
25499
|
import * as ReactDOM from "react-dom";
|
|
25343
|
-
import { jsx as
|
|
25500
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
25344
25501
|
var NODES = [
|
|
25345
25502
|
"a",
|
|
25346
25503
|
"button",
|
|
@@ -25360,13 +25517,13 @@ var NODES = [
|
|
|
25360
25517
|
"ul"
|
|
25361
25518
|
];
|
|
25362
25519
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
25363
|
-
const Node2 =
|
|
25520
|
+
const Node2 = React8.forwardRef((props, forwardedRef) => {
|
|
25364
25521
|
const { asChild, ...primitiveProps } = props;
|
|
25365
25522
|
const Comp = asChild ? Slot : node;
|
|
25366
25523
|
if (typeof window !== "undefined") {
|
|
25367
25524
|
window[Symbol.for("radix-ui")] = true;
|
|
25368
25525
|
}
|
|
25369
|
-
return /* @__PURE__ */
|
|
25526
|
+
return /* @__PURE__ */ jsx49(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
25370
25527
|
});
|
|
25371
25528
|
Node2.displayName = `Primitive.${node}`;
|
|
25372
25529
|
return { ...primitive, [node]: Node2 };
|
|
@@ -25376,20 +25533,20 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
25376
25533
|
}
|
|
25377
25534
|
|
|
25378
25535
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
25379
|
-
import * as
|
|
25536
|
+
import * as React9 from "react";
|
|
25380
25537
|
function useCallbackRef(callback) {
|
|
25381
|
-
const callbackRef =
|
|
25382
|
-
|
|
25538
|
+
const callbackRef = React9.useRef(callback);
|
|
25539
|
+
React9.useEffect(() => {
|
|
25383
25540
|
callbackRef.current = callback;
|
|
25384
25541
|
});
|
|
25385
|
-
return
|
|
25542
|
+
return React9.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
25386
25543
|
}
|
|
25387
25544
|
|
|
25388
25545
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
25389
|
-
import * as
|
|
25546
|
+
import * as React10 from "react";
|
|
25390
25547
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
25391
25548
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
25392
|
-
|
|
25549
|
+
React10.useEffect(() => {
|
|
25393
25550
|
const handleKeyDown = (event) => {
|
|
25394
25551
|
if (event.key === "Escape") {
|
|
25395
25552
|
onEscapeKeyDown(event);
|
|
@@ -25401,18 +25558,18 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
25401
25558
|
}
|
|
25402
25559
|
|
|
25403
25560
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
25404
|
-
import { jsx as
|
|
25561
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
25405
25562
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
25406
25563
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
25407
25564
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
25408
25565
|
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
25409
25566
|
var originalBodyPointerEvents;
|
|
25410
|
-
var DismissableLayerContext =
|
|
25567
|
+
var DismissableLayerContext = React11.createContext({
|
|
25411
25568
|
layers: /* @__PURE__ */ new Set(),
|
|
25412
25569
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
25413
25570
|
branches: /* @__PURE__ */ new Set()
|
|
25414
25571
|
});
|
|
25415
|
-
var DismissableLayer =
|
|
25572
|
+
var DismissableLayer = React11.forwardRef(
|
|
25416
25573
|
(props, forwardedRef) => {
|
|
25417
25574
|
const {
|
|
25418
25575
|
disableOutsidePointerEvents = false,
|
|
@@ -25423,10 +25580,10 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25423
25580
|
onDismiss,
|
|
25424
25581
|
...layerProps
|
|
25425
25582
|
} = props;
|
|
25426
|
-
const context =
|
|
25427
|
-
const [node, setNode] =
|
|
25583
|
+
const context = React11.useContext(DismissableLayerContext);
|
|
25584
|
+
const [node, setNode] = React11.useState(null);
|
|
25428
25585
|
const ownerDocument = node?.ownerDocument ?? globalThis?.document;
|
|
25429
|
-
const [, force] =
|
|
25586
|
+
const [, force] = React11.useState({});
|
|
25430
25587
|
const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
|
|
25431
25588
|
const layers = Array.from(context.layers);
|
|
25432
25589
|
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
@@ -25459,7 +25616,7 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25459
25616
|
onDismiss();
|
|
25460
25617
|
}
|
|
25461
25618
|
}, ownerDocument);
|
|
25462
|
-
|
|
25619
|
+
React11.useEffect(() => {
|
|
25463
25620
|
if (!node) return;
|
|
25464
25621
|
if (disableOutsidePointerEvents) {
|
|
25465
25622
|
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
@@ -25476,7 +25633,7 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25476
25633
|
}
|
|
25477
25634
|
};
|
|
25478
25635
|
}, [node, ownerDocument, disableOutsidePointerEvents, context]);
|
|
25479
|
-
|
|
25636
|
+
React11.useEffect(() => {
|
|
25480
25637
|
return () => {
|
|
25481
25638
|
if (!node) return;
|
|
25482
25639
|
context.layers.delete(node);
|
|
@@ -25484,12 +25641,12 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25484
25641
|
dispatchUpdate();
|
|
25485
25642
|
};
|
|
25486
25643
|
}, [node, context]);
|
|
25487
|
-
|
|
25644
|
+
React11.useEffect(() => {
|
|
25488
25645
|
const handleUpdate = () => force({});
|
|
25489
25646
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
25490
25647
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
25491
25648
|
}, []);
|
|
25492
|
-
return /* @__PURE__ */
|
|
25649
|
+
return /* @__PURE__ */ jsx50(
|
|
25493
25650
|
Primitive.div,
|
|
25494
25651
|
{
|
|
25495
25652
|
...layerProps,
|
|
@@ -25510,11 +25667,11 @@ var DismissableLayer = React13.forwardRef(
|
|
|
25510
25667
|
);
|
|
25511
25668
|
DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
|
|
25512
25669
|
var BRANCH_NAME = "DismissableLayerBranch";
|
|
25513
|
-
var DismissableLayerBranch =
|
|
25514
|
-
const context =
|
|
25515
|
-
const ref =
|
|
25670
|
+
var DismissableLayerBranch = React11.forwardRef((props, forwardedRef) => {
|
|
25671
|
+
const context = React11.useContext(DismissableLayerContext);
|
|
25672
|
+
const ref = React11.useRef(null);
|
|
25516
25673
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
25517
|
-
|
|
25674
|
+
React11.useEffect(() => {
|
|
25518
25675
|
const node = ref.current;
|
|
25519
25676
|
if (node) {
|
|
25520
25677
|
context.branches.add(node);
|
|
@@ -25523,15 +25680,15 @@ var DismissableLayerBranch = React13.forwardRef((props, forwardedRef) => {
|
|
|
25523
25680
|
};
|
|
25524
25681
|
}
|
|
25525
25682
|
}, [context.branches]);
|
|
25526
|
-
return /* @__PURE__ */
|
|
25683
|
+
return /* @__PURE__ */ jsx50(Primitive.div, { ...props, ref: composedRefs });
|
|
25527
25684
|
});
|
|
25528
25685
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
25529
25686
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
25530
25687
|
const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
|
|
25531
|
-
const isPointerInsideReactTreeRef =
|
|
25532
|
-
const handleClickRef =
|
|
25688
|
+
const isPointerInsideReactTreeRef = React11.useRef(false);
|
|
25689
|
+
const handleClickRef = React11.useRef(() => {
|
|
25533
25690
|
});
|
|
25534
|
-
|
|
25691
|
+
React11.useEffect(() => {
|
|
25535
25692
|
const handlePointerDown = (event) => {
|
|
25536
25693
|
if (event.target && !isPointerInsideReactTreeRef.current) {
|
|
25537
25694
|
let handleAndDispatchPointerDownOutsideEvent2 = function() {
|
|
@@ -25572,8 +25729,8 @@ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?
|
|
|
25572
25729
|
}
|
|
25573
25730
|
function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
|
|
25574
25731
|
const handleFocusOutside = useCallbackRef(onFocusOutside);
|
|
25575
|
-
const isFocusInsideReactTreeRef =
|
|
25576
|
-
|
|
25732
|
+
const isFocusInsideReactTreeRef = React11.useRef(false);
|
|
25733
|
+
React11.useEffect(() => {
|
|
25577
25734
|
const handleFocus = (event) => {
|
|
25578
25735
|
if (event.target && !isFocusInsideReactTreeRef.current) {
|
|
25579
25736
|
const eventDetail = { originalEvent: event };
|
|
@@ -25608,32 +25765,32 @@ var Root = DismissableLayer;
|
|
|
25608
25765
|
var Branch = DismissableLayerBranch;
|
|
25609
25766
|
|
|
25610
25767
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
25611
|
-
import * as
|
|
25768
|
+
import * as React13 from "react";
|
|
25612
25769
|
import ReactDOM2 from "react-dom";
|
|
25613
25770
|
|
|
25614
25771
|
// 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) ?
|
|
25772
|
+
import * as React12 from "react";
|
|
25773
|
+
var useLayoutEffect2 = Boolean(globalThis?.document) ? React12.useLayoutEffect : () => {
|
|
25617
25774
|
};
|
|
25618
25775
|
|
|
25619
25776
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
25620
|
-
import { jsx as
|
|
25777
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
25621
25778
|
var PORTAL_NAME = "Portal";
|
|
25622
|
-
var Portal =
|
|
25779
|
+
var Portal = React13.forwardRef((props, forwardedRef) => {
|
|
25623
25780
|
const { container: containerProp, ...portalProps } = props;
|
|
25624
|
-
const [mounted, setMounted] =
|
|
25781
|
+
const [mounted, setMounted] = React13.useState(false);
|
|
25625
25782
|
useLayoutEffect2(() => setMounted(true), []);
|
|
25626
25783
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
25627
|
-
return container ? ReactDOM2.createPortal(/* @__PURE__ */
|
|
25784
|
+
return container ? ReactDOM2.createPortal(/* @__PURE__ */ jsx51(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
25628
25785
|
});
|
|
25629
25786
|
Portal.displayName = PORTAL_NAME;
|
|
25630
25787
|
|
|
25631
25788
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
25632
25789
|
import * as React22 from "react";
|
|
25633
25790
|
import * as ReactDOM3 from "react-dom";
|
|
25634
|
-
import * as
|
|
25791
|
+
import * as React14 from "react";
|
|
25635
25792
|
function useStateMachine(initialState3, machine) {
|
|
25636
|
-
return
|
|
25793
|
+
return React14.useReducer((state, event) => {
|
|
25637
25794
|
const nextState = machine[state][event];
|
|
25638
25795
|
return nextState ?? state;
|
|
25639
25796
|
}, initialState3);
|
|
@@ -25744,7 +25901,7 @@ function getElementRef2(element) {
|
|
|
25744
25901
|
}
|
|
25745
25902
|
|
|
25746
25903
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
25747
|
-
import * as
|
|
25904
|
+
import * as React15 from "react";
|
|
25748
25905
|
function useControllableState({
|
|
25749
25906
|
prop,
|
|
25750
25907
|
defaultProp,
|
|
@@ -25755,7 +25912,7 @@ function useControllableState({
|
|
|
25755
25912
|
const isControlled = prop !== void 0;
|
|
25756
25913
|
const value = isControlled ? prop : uncontrolledProp;
|
|
25757
25914
|
const handleChange = useCallbackRef(onChange);
|
|
25758
|
-
const setValue =
|
|
25915
|
+
const setValue = React15.useCallback(
|
|
25759
25916
|
(nextValue) => {
|
|
25760
25917
|
if (isControlled) {
|
|
25761
25918
|
const setter = nextValue;
|
|
@@ -25773,11 +25930,11 @@ function useUncontrolledState({
|
|
|
25773
25930
|
defaultProp,
|
|
25774
25931
|
onChange
|
|
25775
25932
|
}) {
|
|
25776
|
-
const uncontrolledState =
|
|
25933
|
+
const uncontrolledState = React15.useState(defaultProp);
|
|
25777
25934
|
const [value] = uncontrolledState;
|
|
25778
|
-
const prevValueRef =
|
|
25935
|
+
const prevValueRef = React15.useRef(value);
|
|
25779
25936
|
const handleChange = useCallbackRef(onChange);
|
|
25780
|
-
|
|
25937
|
+
React15.useEffect(() => {
|
|
25781
25938
|
if (prevValueRef.current !== value) {
|
|
25782
25939
|
handleChange(value);
|
|
25783
25940
|
prevValueRef.current = value;
|
|
@@ -25787,12 +25944,12 @@ function useUncontrolledState({
|
|
|
25787
25944
|
}
|
|
25788
25945
|
|
|
25789
25946
|
// node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
25790
|
-
import * as
|
|
25791
|
-
import { jsx as
|
|
25947
|
+
import * as React16 from "react";
|
|
25948
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
25792
25949
|
var NAME = "VisuallyHidden";
|
|
25793
|
-
var VisuallyHidden =
|
|
25950
|
+
var VisuallyHidden = React16.forwardRef(
|
|
25794
25951
|
(props, forwardedRef) => {
|
|
25795
|
-
return /* @__PURE__ */
|
|
25952
|
+
return /* @__PURE__ */ jsx52(
|
|
25796
25953
|
Primitive.span,
|
|
25797
25954
|
{
|
|
25798
25955
|
...props,
|
|
@@ -25818,7 +25975,7 @@ var VisuallyHidden = React18.forwardRef(
|
|
|
25818
25975
|
VisuallyHidden.displayName = NAME;
|
|
25819
25976
|
|
|
25820
25977
|
// node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
25821
|
-
import { Fragment as
|
|
25978
|
+
import { Fragment as Fragment9, jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
25822
25979
|
var PROVIDER_NAME = "ToastProvider";
|
|
25823
25980
|
var [Collection, useCollection, createCollectionScope] = createCollection("Toast");
|
|
25824
25981
|
var [createToastContext, createToastScope] = createContextScope("Toast", [createCollectionScope]);
|
|
@@ -25832,16 +25989,16 @@ var ToastProvider = (props) => {
|
|
|
25832
25989
|
swipeThreshold = 50,
|
|
25833
25990
|
children
|
|
25834
25991
|
} = props;
|
|
25835
|
-
const [viewport, setViewport] =
|
|
25836
|
-
const [toastCount, setToastCount] =
|
|
25837
|
-
const isFocusedToastEscapeKeyDownRef =
|
|
25838
|
-
const isClosePausedRef =
|
|
25992
|
+
const [viewport, setViewport] = React17.useState(null);
|
|
25993
|
+
const [toastCount, setToastCount] = React17.useState(0);
|
|
25994
|
+
const isFocusedToastEscapeKeyDownRef = React17.useRef(false);
|
|
25995
|
+
const isClosePausedRef = React17.useRef(false);
|
|
25839
25996
|
if (!label.trim()) {
|
|
25840
25997
|
console.error(
|
|
25841
25998
|
`Invalid prop \`label\` supplied to \`${PROVIDER_NAME}\`. Expected non-empty \`string\`.`
|
|
25842
25999
|
);
|
|
25843
26000
|
}
|
|
25844
|
-
return /* @__PURE__ */
|
|
26001
|
+
return /* @__PURE__ */ jsx53(Collection.Provider, { scope: __scopeToast, children: /* @__PURE__ */ jsx53(
|
|
25845
26002
|
ToastProviderProvider,
|
|
25846
26003
|
{
|
|
25847
26004
|
scope: __scopeToast,
|
|
@@ -25852,8 +26009,8 @@ var ToastProvider = (props) => {
|
|
|
25852
26009
|
toastCount,
|
|
25853
26010
|
viewport,
|
|
25854
26011
|
onViewportChange: setViewport,
|
|
25855
|
-
onToastAdd:
|
|
25856
|
-
onToastRemove:
|
|
26012
|
+
onToastAdd: React17.useCallback(() => setToastCount((prevCount) => prevCount + 1), []),
|
|
26013
|
+
onToastRemove: React17.useCallback(() => setToastCount((prevCount) => prevCount - 1), []),
|
|
25857
26014
|
isFocusedToastEscapeKeyDownRef,
|
|
25858
26015
|
isClosePausedRef,
|
|
25859
26016
|
children
|
|
@@ -25865,7 +26022,7 @@ var VIEWPORT_NAME = "ToastViewport";
|
|
|
25865
26022
|
var VIEWPORT_DEFAULT_HOTKEY = ["F8"];
|
|
25866
26023
|
var VIEWPORT_PAUSE = "toast.viewportPause";
|
|
25867
26024
|
var VIEWPORT_RESUME = "toast.viewportResume";
|
|
25868
|
-
var ToastViewport =
|
|
26025
|
+
var ToastViewport = React17.forwardRef(
|
|
25869
26026
|
(props, forwardedRef) => {
|
|
25870
26027
|
const {
|
|
25871
26028
|
__scopeToast,
|
|
@@ -25875,14 +26032,14 @@ var ToastViewport = React19.forwardRef(
|
|
|
25875
26032
|
} = props;
|
|
25876
26033
|
const context = useToastProviderContext(VIEWPORT_NAME, __scopeToast);
|
|
25877
26034
|
const getItems = useCollection(__scopeToast);
|
|
25878
|
-
const wrapperRef =
|
|
25879
|
-
const headFocusProxyRef =
|
|
25880
|
-
const tailFocusProxyRef =
|
|
25881
|
-
const ref =
|
|
26035
|
+
const wrapperRef = React17.useRef(null);
|
|
26036
|
+
const headFocusProxyRef = React17.useRef(null);
|
|
26037
|
+
const tailFocusProxyRef = React17.useRef(null);
|
|
26038
|
+
const ref = React17.useRef(null);
|
|
25882
26039
|
const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
|
|
25883
26040
|
const hotkeyLabel = hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
|
|
25884
26041
|
const hasToasts = context.toastCount > 0;
|
|
25885
|
-
|
|
26042
|
+
React17.useEffect(() => {
|
|
25886
26043
|
const handleKeyDown = (event) => {
|
|
25887
26044
|
const isHotkeyPressed = hotkey.every((key) => event[key] || event.code === key);
|
|
25888
26045
|
if (isHotkeyPressed) ref.current?.focus();
|
|
@@ -25890,7 +26047,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25890
26047
|
document.addEventListener("keydown", handleKeyDown);
|
|
25891
26048
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
25892
26049
|
}, [hotkey]);
|
|
25893
|
-
|
|
26050
|
+
React17.useEffect(() => {
|
|
25894
26051
|
const wrapper = wrapperRef.current;
|
|
25895
26052
|
const viewport = ref.current;
|
|
25896
26053
|
if (hasToasts && wrapper && viewport) {
|
|
@@ -25932,7 +26089,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25932
26089
|
};
|
|
25933
26090
|
}
|
|
25934
26091
|
}, [hasToasts, context.isClosePausedRef]);
|
|
25935
|
-
const getSortedTabbableCandidates =
|
|
26092
|
+
const getSortedTabbableCandidates = React17.useCallback(
|
|
25936
26093
|
({ tabbingDirection }) => {
|
|
25937
26094
|
const toastItems = getItems();
|
|
25938
26095
|
const tabbableCandidates = toastItems.map((toastItem) => {
|
|
@@ -25944,7 +26101,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25944
26101
|
},
|
|
25945
26102
|
[getItems]
|
|
25946
26103
|
);
|
|
25947
|
-
|
|
26104
|
+
React17.useEffect(() => {
|
|
25948
26105
|
const viewport = ref.current;
|
|
25949
26106
|
if (viewport) {
|
|
25950
26107
|
const handleKeyDown = (event) => {
|
|
@@ -25972,7 +26129,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25972
26129
|
return () => viewport.removeEventListener("keydown", handleKeyDown);
|
|
25973
26130
|
}
|
|
25974
26131
|
}, [getItems, getSortedTabbableCandidates]);
|
|
25975
|
-
return /* @__PURE__ */
|
|
26132
|
+
return /* @__PURE__ */ jsxs27(
|
|
25976
26133
|
Branch,
|
|
25977
26134
|
{
|
|
25978
26135
|
ref: wrapperRef,
|
|
@@ -25981,7 +26138,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
25981
26138
|
tabIndex: -1,
|
|
25982
26139
|
style: { pointerEvents: hasToasts ? void 0 : "none" },
|
|
25983
26140
|
children: [
|
|
25984
|
-
hasToasts && /* @__PURE__ */
|
|
26141
|
+
hasToasts && /* @__PURE__ */ jsx53(
|
|
25985
26142
|
FocusProxy,
|
|
25986
26143
|
{
|
|
25987
26144
|
ref: headFocusProxyRef,
|
|
@@ -25993,8 +26150,8 @@ var ToastViewport = React19.forwardRef(
|
|
|
25993
26150
|
}
|
|
25994
26151
|
}
|
|
25995
26152
|
),
|
|
25996
|
-
/* @__PURE__ */
|
|
25997
|
-
hasToasts && /* @__PURE__ */
|
|
26153
|
+
/* @__PURE__ */ jsx53(Collection.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx53(Primitive.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),
|
|
26154
|
+
hasToasts && /* @__PURE__ */ jsx53(
|
|
25998
26155
|
FocusProxy,
|
|
25999
26156
|
{
|
|
26000
26157
|
ref: tailFocusProxyRef,
|
|
@@ -26013,11 +26170,11 @@ var ToastViewport = React19.forwardRef(
|
|
|
26013
26170
|
);
|
|
26014
26171
|
ToastViewport.displayName = VIEWPORT_NAME;
|
|
26015
26172
|
var FOCUS_PROXY_NAME = "ToastFocusProxy";
|
|
26016
|
-
var FocusProxy =
|
|
26173
|
+
var FocusProxy = React17.forwardRef(
|
|
26017
26174
|
(props, forwardedRef) => {
|
|
26018
26175
|
const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;
|
|
26019
26176
|
const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);
|
|
26020
|
-
return /* @__PURE__ */
|
|
26177
|
+
return /* @__PURE__ */ jsx53(
|
|
26021
26178
|
VisuallyHidden,
|
|
26022
26179
|
{
|
|
26023
26180
|
"aria-hidden": true,
|
|
@@ -26040,7 +26197,7 @@ var TOAST_SWIPE_START = "toast.swipeStart";
|
|
|
26040
26197
|
var TOAST_SWIPE_MOVE = "toast.swipeMove";
|
|
26041
26198
|
var TOAST_SWIPE_CANCEL = "toast.swipeCancel";
|
|
26042
26199
|
var TOAST_SWIPE_END = "toast.swipeEnd";
|
|
26043
|
-
var Toast =
|
|
26200
|
+
var Toast = React17.forwardRef(
|
|
26044
26201
|
(props, forwardedRef) => {
|
|
26045
26202
|
const { forceMount, open: openProp, defaultOpen, onOpenChange, ...toastProps } = props;
|
|
26046
26203
|
const [open = true, setOpen] = useControllableState({
|
|
@@ -26048,7 +26205,7 @@ var Toast = React19.forwardRef(
|
|
|
26048
26205
|
defaultProp: defaultOpen,
|
|
26049
26206
|
onChange: onOpenChange
|
|
26050
26207
|
});
|
|
26051
|
-
return /* @__PURE__ */
|
|
26208
|
+
return /* @__PURE__ */ jsx53(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx53(
|
|
26052
26209
|
ToastImpl,
|
|
26053
26210
|
{
|
|
26054
26211
|
open,
|
|
@@ -26091,7 +26248,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
26091
26248
|
onClose() {
|
|
26092
26249
|
}
|
|
26093
26250
|
});
|
|
26094
|
-
var ToastImpl =
|
|
26251
|
+
var ToastImpl = React17.forwardRef(
|
|
26095
26252
|
(props, forwardedRef) => {
|
|
26096
26253
|
const {
|
|
26097
26254
|
__scopeToast,
|
|
@@ -26109,21 +26266,21 @@ var ToastImpl = React19.forwardRef(
|
|
|
26109
26266
|
...toastProps
|
|
26110
26267
|
} = props;
|
|
26111
26268
|
const context = useToastProviderContext(TOAST_NAME, __scopeToast);
|
|
26112
|
-
const [node, setNode] =
|
|
26269
|
+
const [node, setNode] = React17.useState(null);
|
|
26113
26270
|
const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
|
|
26114
|
-
const pointerStartRef =
|
|
26115
|
-
const swipeDeltaRef =
|
|
26271
|
+
const pointerStartRef = React17.useRef(null);
|
|
26272
|
+
const swipeDeltaRef = React17.useRef(null);
|
|
26116
26273
|
const duration = durationProp || context.duration;
|
|
26117
|
-
const closeTimerStartTimeRef =
|
|
26118
|
-
const closeTimerRemainingTimeRef =
|
|
26119
|
-
const closeTimerRef =
|
|
26274
|
+
const closeTimerStartTimeRef = React17.useRef(0);
|
|
26275
|
+
const closeTimerRemainingTimeRef = React17.useRef(duration);
|
|
26276
|
+
const closeTimerRef = React17.useRef(0);
|
|
26120
26277
|
const { onToastAdd, onToastRemove } = context;
|
|
26121
26278
|
const handleClose = useCallbackRef(() => {
|
|
26122
26279
|
const isFocusInToast = node?.contains(document.activeElement);
|
|
26123
26280
|
if (isFocusInToast) context.viewport?.focus();
|
|
26124
26281
|
onClose();
|
|
26125
26282
|
});
|
|
26126
|
-
const startTimer =
|
|
26283
|
+
const startTimer = React17.useCallback(
|
|
26127
26284
|
(duration2) => {
|
|
26128
26285
|
if (!duration2 || duration2 === Infinity) return;
|
|
26129
26286
|
window.clearTimeout(closeTimerRef.current);
|
|
@@ -26132,7 +26289,7 @@ var ToastImpl = React19.forwardRef(
|
|
|
26132
26289
|
},
|
|
26133
26290
|
[handleClose]
|
|
26134
26291
|
);
|
|
26135
|
-
|
|
26292
|
+
React17.useEffect(() => {
|
|
26136
26293
|
const viewport = context.viewport;
|
|
26137
26294
|
if (viewport) {
|
|
26138
26295
|
const handleResume = () => {
|
|
@@ -26153,19 +26310,19 @@ var ToastImpl = React19.forwardRef(
|
|
|
26153
26310
|
};
|
|
26154
26311
|
}
|
|
26155
26312
|
}, [context.viewport, duration, onPause, onResume, startTimer]);
|
|
26156
|
-
|
|
26313
|
+
React17.useEffect(() => {
|
|
26157
26314
|
if (open && !context.isClosePausedRef.current) startTimer(duration);
|
|
26158
26315
|
}, [open, duration, context.isClosePausedRef, startTimer]);
|
|
26159
|
-
|
|
26316
|
+
React17.useEffect(() => {
|
|
26160
26317
|
onToastAdd();
|
|
26161
26318
|
return () => onToastRemove();
|
|
26162
26319
|
}, [onToastAdd, onToastRemove]);
|
|
26163
|
-
const announceTextContent =
|
|
26320
|
+
const announceTextContent = React17.useMemo(() => {
|
|
26164
26321
|
return node ? getAnnounceTextContent(node) : null;
|
|
26165
26322
|
}, [node]);
|
|
26166
26323
|
if (!context.viewport) return null;
|
|
26167
|
-
return /* @__PURE__ */
|
|
26168
|
-
announceTextContent && /* @__PURE__ */
|
|
26324
|
+
return /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
26325
|
+
announceTextContent && /* @__PURE__ */ jsx53(
|
|
26169
26326
|
ToastAnnounce,
|
|
26170
26327
|
{
|
|
26171
26328
|
__scopeToast,
|
|
@@ -26175,8 +26332,8 @@ var ToastImpl = React19.forwardRef(
|
|
|
26175
26332
|
children: announceTextContent
|
|
26176
26333
|
}
|
|
26177
26334
|
),
|
|
26178
|
-
/* @__PURE__ */
|
|
26179
|
-
/* @__PURE__ */
|
|
26335
|
+
/* @__PURE__ */ jsx53(ToastInteractiveProvider, { scope: __scopeToast, onClose: handleClose, children: ReactDOM4.createPortal(
|
|
26336
|
+
/* @__PURE__ */ jsx53(Collection.ItemSlot, { scope: __scopeToast, children: /* @__PURE__ */ jsx53(
|
|
26180
26337
|
Root,
|
|
26181
26338
|
{
|
|
26182
26339
|
asChild: true,
|
|
@@ -26184,7 +26341,7 @@ var ToastImpl = React19.forwardRef(
|
|
|
26184
26341
|
if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();
|
|
26185
26342
|
context.isFocusedToastEscapeKeyDownRef.current = false;
|
|
26186
26343
|
}),
|
|
26187
|
-
children: /* @__PURE__ */
|
|
26344
|
+
children: /* @__PURE__ */ jsx53(
|
|
26188
26345
|
Primitive.li,
|
|
26189
26346
|
{
|
|
26190
26347
|
role: "status",
|
|
@@ -26277,37 +26434,37 @@ var ToastImpl = React19.forwardRef(
|
|
|
26277
26434
|
var ToastAnnounce = (props) => {
|
|
26278
26435
|
const { __scopeToast, children, ...announceProps } = props;
|
|
26279
26436
|
const context = useToastProviderContext(TOAST_NAME, __scopeToast);
|
|
26280
|
-
const [renderAnnounceText, setRenderAnnounceText] =
|
|
26281
|
-
const [isAnnounced, setIsAnnounced] =
|
|
26437
|
+
const [renderAnnounceText, setRenderAnnounceText] = React17.useState(false);
|
|
26438
|
+
const [isAnnounced, setIsAnnounced] = React17.useState(false);
|
|
26282
26439
|
useNextFrame(() => setRenderAnnounceText(true));
|
|
26283
|
-
|
|
26440
|
+
React17.useEffect(() => {
|
|
26284
26441
|
const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);
|
|
26285
26442
|
return () => window.clearTimeout(timer);
|
|
26286
26443
|
}, []);
|
|
26287
|
-
return isAnnounced ? null : /* @__PURE__ */
|
|
26444
|
+
return isAnnounced ? null : /* @__PURE__ */ jsx53(Portal, { asChild: true, children: /* @__PURE__ */ jsx53(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
26288
26445
|
context.label,
|
|
26289
26446
|
" ",
|
|
26290
26447
|
children
|
|
26291
26448
|
] }) }) });
|
|
26292
26449
|
};
|
|
26293
26450
|
var TITLE_NAME = "ToastTitle";
|
|
26294
|
-
var ToastTitle =
|
|
26451
|
+
var ToastTitle = React17.forwardRef(
|
|
26295
26452
|
(props, forwardedRef) => {
|
|
26296
26453
|
const { __scopeToast, ...titleProps } = props;
|
|
26297
|
-
return /* @__PURE__ */
|
|
26454
|
+
return /* @__PURE__ */ jsx53(Primitive.div, { ...titleProps, ref: forwardedRef });
|
|
26298
26455
|
}
|
|
26299
26456
|
);
|
|
26300
26457
|
ToastTitle.displayName = TITLE_NAME;
|
|
26301
26458
|
var DESCRIPTION_NAME = "ToastDescription";
|
|
26302
|
-
var ToastDescription =
|
|
26459
|
+
var ToastDescription = React17.forwardRef(
|
|
26303
26460
|
(props, forwardedRef) => {
|
|
26304
26461
|
const { __scopeToast, ...descriptionProps } = props;
|
|
26305
|
-
return /* @__PURE__ */
|
|
26462
|
+
return /* @__PURE__ */ jsx53(Primitive.div, { ...descriptionProps, ref: forwardedRef });
|
|
26306
26463
|
}
|
|
26307
26464
|
);
|
|
26308
26465
|
ToastDescription.displayName = DESCRIPTION_NAME;
|
|
26309
26466
|
var ACTION_NAME = "ToastAction";
|
|
26310
|
-
var ToastAction =
|
|
26467
|
+
var ToastAction = React17.forwardRef(
|
|
26311
26468
|
(props, forwardedRef) => {
|
|
26312
26469
|
const { altText, ...actionProps } = props;
|
|
26313
26470
|
if (!altText.trim()) {
|
|
@@ -26316,16 +26473,16 @@ var ToastAction = React19.forwardRef(
|
|
|
26316
26473
|
);
|
|
26317
26474
|
return null;
|
|
26318
26475
|
}
|
|
26319
|
-
return /* @__PURE__ */
|
|
26476
|
+
return /* @__PURE__ */ jsx53(ToastAnnounceExclude, { altText, asChild: true, children: /* @__PURE__ */ jsx53(ToastClose, { ...actionProps, ref: forwardedRef }) });
|
|
26320
26477
|
}
|
|
26321
26478
|
);
|
|
26322
26479
|
ToastAction.displayName = ACTION_NAME;
|
|
26323
26480
|
var CLOSE_NAME = "ToastClose";
|
|
26324
|
-
var ToastClose =
|
|
26481
|
+
var ToastClose = React17.forwardRef(
|
|
26325
26482
|
(props, forwardedRef) => {
|
|
26326
26483
|
const { __scopeToast, ...closeProps } = props;
|
|
26327
26484
|
const interactiveContext = useToastInteractiveContext(CLOSE_NAME, __scopeToast);
|
|
26328
|
-
return /* @__PURE__ */
|
|
26485
|
+
return /* @__PURE__ */ jsx53(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ jsx53(
|
|
26329
26486
|
Primitive.button,
|
|
26330
26487
|
{
|
|
26331
26488
|
type: "button",
|
|
@@ -26337,9 +26494,9 @@ var ToastClose = React19.forwardRef(
|
|
|
26337
26494
|
}
|
|
26338
26495
|
);
|
|
26339
26496
|
ToastClose.displayName = CLOSE_NAME;
|
|
26340
|
-
var ToastAnnounceExclude =
|
|
26497
|
+
var ToastAnnounceExclude = React17.forwardRef((props, forwardedRef) => {
|
|
26341
26498
|
const { __scopeToast, altText, ...announceExcludeProps } = props;
|
|
26342
|
-
return /* @__PURE__ */
|
|
26499
|
+
return /* @__PURE__ */ jsx53(
|
|
26343
26500
|
Primitive.div,
|
|
26344
26501
|
{
|
|
26345
26502
|
"data-radix-toast-announce-exclude": "",
|
|
@@ -26445,6 +26602,8 @@ var Toast_default = {
|
|
|
26445
26602
|
};
|
|
26446
26603
|
|
|
26447
26604
|
// src/components/Toast.tsx
|
|
26605
|
+
import { Fragment as Fragment10, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
26606
|
+
import { createElement as createElement4 } from "react";
|
|
26448
26607
|
var icons = {
|
|
26449
26608
|
info: Icons.Info,
|
|
26450
26609
|
error: Icons.Alert
|
|
@@ -26459,13 +26618,22 @@ function Toast2({
|
|
|
26459
26618
|
children,
|
|
26460
26619
|
...props
|
|
26461
26620
|
}) {
|
|
26462
|
-
return /* @__PURE__ */
|
|
26621
|
+
return /* @__PURE__ */ jsxs28(Root2, { ...props, className: (0, import_classnames41.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26622
|
+
/* @__PURE__ */ jsx54(Icon, { className: Toast_default.icon, size: "md", children: variant && createElement3(icons[variant]) }),
|
|
26623
|
+
title && /* @__PURE__ */ jsx54(ToastTitle, { className: Toast_default.title, children: title }),
|
|
26624
|
+
description && /* @__PURE__ */ jsx54(ToastDescription, { className: Toast_default.description, children: description }),
|
|
26625
|
+
children && /* @__PURE__ */ jsx54(ToastAction, { className: Toast_default.action, altText: actionText || "Action", asChild: true, children }),
|
|
26626
|
+
!children && allowClose && /* @__PURE__ */ jsx54(ToastClose, { className: Toast_default.close, "aria-label": "Close", children: /* @__PURE__ */ jsx54(Icon, { size: "sm", "aria-hidden": true, children: /* @__PURE__ */ jsx54(Icons.Close, {}) }) })
|
|
26627
|
+
] });
|
|
26463
26628
|
}
|
|
26464
26629
|
function Toaster(props) {
|
|
26465
26630
|
const { toasts } = useToast();
|
|
26466
|
-
return /* @__PURE__ */
|
|
26467
|
-
|
|
26468
|
-
|
|
26631
|
+
return /* @__PURE__ */ jsxs28(Fragment10, { children: [
|
|
26632
|
+
toasts.map(({ id, message, props: props2 }) => {
|
|
26633
|
+
return /* @__PURE__ */ createElement4(Toast2, { ...props2, key: id, description: message });
|
|
26634
|
+
}),
|
|
26635
|
+
/* @__PURE__ */ jsx54(Viewport, { className: Toast_default.viewport, ...props })
|
|
26636
|
+
] });
|
|
26469
26637
|
}
|
|
26470
26638
|
|
|
26471
26639
|
// src/components/Toggle.tsx
|
|
@@ -26477,8 +26645,9 @@ var Toggle_default = {
|
|
|
26477
26645
|
};
|
|
26478
26646
|
|
|
26479
26647
|
// src/components/Toggle.tsx
|
|
26648
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
26480
26649
|
function Toggle({ children, className, ...props }) {
|
|
26481
|
-
return /* @__PURE__ */
|
|
26650
|
+
return /* @__PURE__ */ jsx55($efde0372d7a700fe$export$d2b052e7b4be1756, { ...props, className: (0, import_classnames42.default)(Toggle_default.toggle, className), children });
|
|
26482
26651
|
}
|
|
26483
26652
|
|
|
26484
26653
|
// src/components/ToggleGroup.tsx
|
|
@@ -26899,11 +27068,12 @@ var ToggleGroup_default = {
|
|
|
26899
27068
|
};
|
|
26900
27069
|
|
|
26901
27070
|
// src/components/ToggleGroup.tsx
|
|
26902
|
-
|
|
26903
|
-
|
|
27071
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
27072
|
+
function ToggleGroup({ className, children, ...props }) {
|
|
27073
|
+
return /* @__PURE__ */ jsx56($6c1fd9e6a8969628$export$af3ec21f6cfb5e30, { ...props, className: (0, import_classnames43.default)(ToggleGroup_default.group, className), children });
|
|
26904
27074
|
}
|
|
26905
|
-
function
|
|
26906
|
-
return /* @__PURE__ */
|
|
27075
|
+
function ToggleGroupItem({ className, children, ...props }) {
|
|
27076
|
+
return /* @__PURE__ */ jsx56($6c1fd9e6a8969628$export$b453109e13abe10b, { ...props, className: (0, import_classnames43.default)(ToggleGroup_default.item, className), children });
|
|
26907
27077
|
}
|
|
26908
27078
|
|
|
26909
27079
|
// src/components/Tooltip.tsx
|
|
@@ -26917,14 +27087,22 @@ var Tooltip_default = {
|
|
|
26917
27087
|
};
|
|
26918
27088
|
|
|
26919
27089
|
// src/components/Tooltip.tsx
|
|
26920
|
-
|
|
26921
|
-
|
|
27090
|
+
import { jsx as jsx57, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
27091
|
+
function Tooltip({ children, className, ...props }) {
|
|
27092
|
+
return /* @__PURE__ */ jsxs29($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames44.default)(Tooltip_default.tooltip, className), children: [
|
|
27093
|
+
/* @__PURE__ */ jsx57($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx57("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx57("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
27094
|
+
children
|
|
27095
|
+
] });
|
|
26922
27096
|
}
|
|
26923
27097
|
|
|
26924
27098
|
// src/components/ZenProvider.tsx
|
|
27099
|
+
import { jsx as jsx58, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
26925
27100
|
function ZenProvider({ config = {}, children }) {
|
|
26926
27101
|
const { toast: toast2 } = config;
|
|
26927
|
-
return /* @__PURE__ */
|
|
27102
|
+
return /* @__PURE__ */ jsxs30(ToastProvider, { ...toast2, children: [
|
|
27103
|
+
children,
|
|
27104
|
+
/* @__PURE__ */ jsx58(Toaster, {})
|
|
27105
|
+
] });
|
|
26928
27106
|
}
|
|
26929
27107
|
export {
|
|
26930
27108
|
Accordion,
|
|
@@ -26933,17 +27111,17 @@ export {
|
|
|
26933
27111
|
AccordionItem,
|
|
26934
27112
|
AlertBanner,
|
|
26935
27113
|
AlertDialog,
|
|
26936
|
-
|
|
26937
|
-
|
|
26938
|
-
|
|
26939
|
-
|
|
26940
|
-
|
|
27114
|
+
Breadcrumb2 as Breadcrumb,
|
|
27115
|
+
Breadcrumbs,
|
|
27116
|
+
Button,
|
|
27117
|
+
Calendar,
|
|
27118
|
+
Checkbox,
|
|
26941
27119
|
Column,
|
|
26942
27120
|
Combobox,
|
|
26943
27121
|
ConfirmationDialog,
|
|
26944
27122
|
DataColumn,
|
|
26945
27123
|
DataTable,
|
|
26946
|
-
|
|
27124
|
+
Dialog,
|
|
26947
27125
|
$de32f1b87079253c$export$2e1e1122cf0cba88 as DialogTrigger,
|
|
26948
27126
|
Dots,
|
|
26949
27127
|
$1e2864c73f66a4da$export$6fb4a10d2c950550 as FileTrigger,
|
|
@@ -26952,50 +27130,50 @@ export {
|
|
|
26952
27130
|
Icon,
|
|
26953
27131
|
Icons,
|
|
26954
27132
|
InlineEditField,
|
|
26955
|
-
|
|
27133
|
+
Label,
|
|
26956
27134
|
List,
|
|
26957
27135
|
ListItem,
|
|
26958
27136
|
Loading,
|
|
26959
27137
|
LoadingButton,
|
|
26960
|
-
|
|
26961
|
-
|
|
27138
|
+
Menu,
|
|
27139
|
+
MenuItem2 as MenuItem,
|
|
26962
27140
|
$3674c52c6b3c5bce$export$27d2ad3c5815583e as MenuTrigger,
|
|
26963
|
-
|
|
27141
|
+
Modal,
|
|
26964
27142
|
Page,
|
|
26965
27143
|
PasswordField,
|
|
26966
|
-
|
|
26967
|
-
|
|
27144
|
+
Popover,
|
|
27145
|
+
ProgressBar,
|
|
26968
27146
|
ProgressCircle,
|
|
26969
|
-
|
|
26970
|
-
|
|
27147
|
+
Radio,
|
|
27148
|
+
RadioGroup,
|
|
26971
27149
|
Row,
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
|
|
27150
|
+
SearchField,
|
|
27151
|
+
Select,
|
|
27152
|
+
Slider,
|
|
26975
27153
|
Spinner,
|
|
26976
27154
|
StatusLight,
|
|
26977
|
-
|
|
26978
|
-
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
27155
|
+
Switch,
|
|
27156
|
+
Tab,
|
|
27157
|
+
TabList,
|
|
27158
|
+
TabPanel,
|
|
27159
|
+
Table,
|
|
27160
|
+
TableBody,
|
|
26983
27161
|
TableCell,
|
|
26984
27162
|
TableColumn,
|
|
26985
|
-
|
|
27163
|
+
TableHeader,
|
|
26986
27164
|
TableRow,
|
|
26987
|
-
|
|
27165
|
+
Tabs,
|
|
26988
27166
|
Text,
|
|
26989
27167
|
TextArea,
|
|
26990
|
-
|
|
27168
|
+
TextField,
|
|
26991
27169
|
TextOverflow,
|
|
26992
27170
|
Toast2 as Toast,
|
|
26993
27171
|
ToastProvider,
|
|
26994
27172
|
Toaster,
|
|
26995
27173
|
Toggle,
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
27174
|
+
ToggleGroup,
|
|
27175
|
+
ToggleGroupItem,
|
|
27176
|
+
Tooltip,
|
|
26999
27177
|
$4e3b923658d69c60$export$8c610744efcf8a1d as TooltipTrigger,
|
|
27000
27178
|
ZenProvider,
|
|
27001
27179
|
useDebounce,
|