@umami/react-zen 0.203.0 → 0.205.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.js +292 -290
- package/dist/index.mjs +292 -290
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28226,9 +28226,9 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
28226
28226
|
var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
28227
28227
|
var Check = createLucideIcon("check", __iconNode);
|
|
28228
28228
|
|
|
28229
|
-
// node_modules/.pnpm/lucide-react@0.511.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-
|
|
28230
|
-
var __iconNode2 = [["path", { d: "
|
|
28231
|
-
var
|
|
28229
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
28230
|
+
var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
28231
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode2);
|
|
28232
28232
|
|
|
28233
28233
|
// node_modules/.pnpm/lucide-react@0.511.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/copy.js
|
|
28234
28234
|
var __iconNode3 = [
|
|
@@ -28310,72 +28310,6 @@ var __iconNode11 = [
|
|
|
28310
28310
|
];
|
|
28311
28311
|
var X = createLucideIcon("x", __iconNode11);
|
|
28312
28312
|
|
|
28313
|
-
// src/components/svg/EyeSlash.tsx
|
|
28314
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28315
|
-
var SvgEyeSlash = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
28316
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
28317
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
28318
|
-
"path",
|
|
28319
|
-
{
|
|
28320
|
-
fill: "none",
|
|
28321
|
-
stroke: "currentColor",
|
|
28322
|
-
strokeLinecap: "round",
|
|
28323
|
-
strokeLinejoin: "round",
|
|
28324
|
-
strokeWidth: 16,
|
|
28325
|
-
d: "m48 40 160 176M154.91 157.6a40 40 0 0 1-53.82-59.2M135.53 88.71a40 40 0 0 1 32.3 35.53"
|
|
28326
|
-
}
|
|
28327
|
-
),
|
|
28328
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
28329
|
-
"path",
|
|
28330
|
-
{
|
|
28331
|
-
fill: "none",
|
|
28332
|
-
stroke: "currentColor",
|
|
28333
|
-
strokeLinecap: "round",
|
|
28334
|
-
strokeLinejoin: "round",
|
|
28335
|
-
strokeWidth: 16,
|
|
28336
|
-
d: "M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 0 0-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0 0 54-12.6"
|
|
28337
|
-
}
|
|
28338
|
-
)
|
|
28339
|
-
] });
|
|
28340
|
-
var EyeSlash_default = SvgEyeSlash;
|
|
28341
|
-
|
|
28342
|
-
// src/components/svg/Eye.tsx
|
|
28343
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
28344
|
-
var SvgEye = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
28345
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
28346
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
28347
|
-
"path",
|
|
28348
|
-
{
|
|
28349
|
-
fill: "none",
|
|
28350
|
-
stroke: "currentColor",
|
|
28351
|
-
strokeLinecap: "round",
|
|
28352
|
-
strokeLinejoin: "round",
|
|
28353
|
-
strokeWidth: 16,
|
|
28354
|
-
d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
|
|
28355
|
-
}
|
|
28356
|
-
),
|
|
28357
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
28358
|
-
"circle",
|
|
28359
|
-
{
|
|
28360
|
-
cx: 128,
|
|
28361
|
-
cy: 128,
|
|
28362
|
-
r: 40,
|
|
28363
|
-
fill: "none",
|
|
28364
|
-
stroke: "currentColor",
|
|
28365
|
-
strokeLinecap: "round",
|
|
28366
|
-
strokeLinejoin: "round",
|
|
28367
|
-
strokeWidth: 16
|
|
28368
|
-
}
|
|
28369
|
-
)
|
|
28370
|
-
] });
|
|
28371
|
-
var Eye_default = SvgEye;
|
|
28372
|
-
|
|
28373
|
-
// src/components/svg/Github.tsx
|
|
28374
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
28375
|
-
|
|
28376
|
-
// src/components/svg/Logo.tsx
|
|
28377
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
28378
|
-
|
|
28379
28313
|
// src/components/Icon.tsx
|
|
28380
28314
|
var import_classnames = __toESM(require_classnames());
|
|
28381
28315
|
|
|
@@ -28561,7 +28495,7 @@ function Slot({
|
|
|
28561
28495
|
var Icon_default = { "icon": "Icon_icon__NzNmN", "xs": "Icon_xs__MDhiY", "sm": "Icon_sm__ZWU0N", "md": "Icon_md__YTY3Y", "lg": "Icon_lg__ZGJlZ", "xl": "Icon_xl__MDU3Y" };
|
|
28562
28496
|
|
|
28563
28497
|
// src/components/Icon.tsx
|
|
28564
|
-
var
|
|
28498
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28565
28499
|
function Icon2({
|
|
28566
28500
|
color,
|
|
28567
28501
|
size = "sm",
|
|
@@ -28580,7 +28514,7 @@ function Icon2({
|
|
|
28580
28514
|
fillColor,
|
|
28581
28515
|
color
|
|
28582
28516
|
});
|
|
28583
|
-
return /* @__PURE__ */ (0,
|
|
28517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
28584
28518
|
Slot,
|
|
28585
28519
|
{
|
|
28586
28520
|
...props,
|
|
@@ -28600,7 +28534,7 @@ function Icon2({
|
|
|
28600
28534
|
var AlertBanner_default = { "banner": "AlertBanner_banner__NDQ0Z", "message": "AlertBanner_message__MzQ3Y", "title": "AlertBanner_title__MDI0M", "close": "AlertBanner_close__YzE5M", "error": "AlertBanner_error__NDVmM", "start": "AlertBanner_start__YTlmZ", "end": "AlertBanner_end__ZmJlM", "center": "AlertBanner_center__Y2ZmN" };
|
|
28601
28535
|
|
|
28602
28536
|
// src/components/AlertBanner.tsx
|
|
28603
|
-
var
|
|
28537
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
28604
28538
|
var AlertIcons = {
|
|
28605
28539
|
error: TriangleAlert,
|
|
28606
28540
|
info: Info
|
|
@@ -28617,7 +28551,7 @@ function AlertBanner({
|
|
|
28617
28551
|
className,
|
|
28618
28552
|
...props
|
|
28619
28553
|
}) {
|
|
28620
|
-
return /* @__PURE__ */ (0,
|
|
28554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
28621
28555
|
"div",
|
|
28622
28556
|
{
|
|
28623
28557
|
...props,
|
|
@@ -28628,13 +28562,13 @@ function AlertBanner({
|
|
|
28628
28562
|
align && AlertBanner_default[align]
|
|
28629
28563
|
),
|
|
28630
28564
|
children: [
|
|
28631
|
-
(icon || variant) && /* @__PURE__ */ (0,
|
|
28632
|
-
/* @__PURE__ */ (0,
|
|
28633
|
-
title && /* @__PURE__ */ (0,
|
|
28634
|
-
description && /* @__PURE__ */ (0,
|
|
28565
|
+
(icon || variant) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon2, { size: "sm", children: variant ? (0, import_react161.createElement)(AlertIcons[variant]) : icon }),
|
|
28566
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: AlertBanner_default.message, children: [
|
|
28567
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: AlertBanner_default.title, children: title }),
|
|
28568
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: AlertBanner_default.description, children: description })
|
|
28635
28569
|
] }),
|
|
28636
28570
|
children,
|
|
28637
|
-
allowClose && /* @__PURE__ */ (0,
|
|
28571
|
+
allowClose && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon2, { className: AlertBanner_default.close, onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(X, {}) })
|
|
28638
28572
|
]
|
|
28639
28573
|
}
|
|
28640
28574
|
);
|
|
@@ -28644,7 +28578,7 @@ function AlertBanner({
|
|
|
28644
28578
|
var Form_default = { "form": "Form_form__ZTBhZ", "text": "Form_text__ZjUwN", "icon": "Form_icon__YTRiZ" };
|
|
28645
28579
|
|
|
28646
28580
|
// src/components/forms/Form.tsx
|
|
28647
|
-
var
|
|
28581
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
28648
28582
|
function Form({
|
|
28649
28583
|
autoComplete,
|
|
28650
28584
|
onSubmit,
|
|
@@ -28698,8 +28632,8 @@ function Form({
|
|
|
28698
28632
|
formValues.reset(void 0, { keepDirty: true, keepValues: true });
|
|
28699
28633
|
}
|
|
28700
28634
|
}, [error, formValues]);
|
|
28701
|
-
return /* @__PURE__ */ (0,
|
|
28702
|
-
error && /* @__PURE__ */ (0,
|
|
28635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(FormProvider, { ...formValues, children: [
|
|
28636
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
28703
28637
|
AlertBanner,
|
|
28704
28638
|
{
|
|
28705
28639
|
variant: "error",
|
|
@@ -28707,7 +28641,7 @@ function Form({
|
|
|
28707
28641
|
title: error instanceof Error ? error?.message : error
|
|
28708
28642
|
}
|
|
28709
28643
|
),
|
|
28710
|
-
/* @__PURE__ */ (0,
|
|
28644
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
28711
28645
|
"form",
|
|
28712
28646
|
{
|
|
28713
28647
|
...props,
|
|
@@ -28726,7 +28660,7 @@ var import_classnames5 = __toESM(require_classnames());
|
|
|
28726
28660
|
|
|
28727
28661
|
// src/components/Box.tsx
|
|
28728
28662
|
var import_classnames4 = __toESM(require_classnames());
|
|
28729
|
-
var
|
|
28663
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
28730
28664
|
function Box({
|
|
28731
28665
|
display,
|
|
28732
28666
|
color,
|
|
@@ -28843,7 +28777,7 @@ function Box({
|
|
|
28843
28777
|
order,
|
|
28844
28778
|
zIndex
|
|
28845
28779
|
});
|
|
28846
|
-
return /* @__PURE__ */ (0,
|
|
28780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
28847
28781
|
Component,
|
|
28848
28782
|
{
|
|
28849
28783
|
...props,
|
|
@@ -28858,7 +28792,7 @@ function Box({
|
|
|
28858
28792
|
}
|
|
28859
28793
|
|
|
28860
28794
|
// src/components/Flexbox.tsx
|
|
28861
|
-
var
|
|
28795
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
28862
28796
|
function Flexbox({
|
|
28863
28797
|
display = "flex",
|
|
28864
28798
|
direction,
|
|
@@ -28887,25 +28821,25 @@ function Flexbox({
|
|
|
28887
28821
|
gapX,
|
|
28888
28822
|
gapY
|
|
28889
28823
|
});
|
|
28890
|
-
return /* @__PURE__ */ (0,
|
|
28824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box, { ...props, className: (0, import_classnames5.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
28891
28825
|
}
|
|
28892
28826
|
|
|
28893
28827
|
// src/components/Row.tsx
|
|
28894
|
-
var
|
|
28828
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
28895
28829
|
function Row({ reverse, children, ...props }) {
|
|
28896
|
-
return /* @__PURE__ */ (0,
|
|
28830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Flexbox, { ...props, direction: reverse ? "row-reverse" : "row", children });
|
|
28897
28831
|
}
|
|
28898
28832
|
|
|
28899
28833
|
// src/components/forms/FormButtons.tsx
|
|
28900
|
-
var
|
|
28834
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
28901
28835
|
function FormButtons({ fill, children, ...props }) {
|
|
28902
|
-
return /* @__PURE__ */ (0,
|
|
28836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Row, { paddingTop: "3", gap: "3", justifyContent: "flex-end", ...props, children });
|
|
28903
28837
|
}
|
|
28904
28838
|
|
|
28905
28839
|
// src/components/forms/FormController.tsx
|
|
28906
|
-
var
|
|
28840
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
28907
28841
|
function FormController({ children, ...props }) {
|
|
28908
|
-
return /* @__PURE__ */ (0,
|
|
28842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Controller, { ...props, render: children });
|
|
28909
28843
|
}
|
|
28910
28844
|
|
|
28911
28845
|
// src/components/forms/FormField.tsx
|
|
@@ -28929,13 +28863,13 @@ var import_classnames6 = __toESM(require_classnames());
|
|
|
28929
28863
|
var Label_default = { "label": "Label_label__YWE3M" };
|
|
28930
28864
|
|
|
28931
28865
|
// src/components/Label.tsx
|
|
28932
|
-
var
|
|
28866
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
28933
28867
|
function Label2({ className, ...props }) {
|
|
28934
|
-
return /* @__PURE__ */ (0,
|
|
28868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames6.default)(Label_default.label, className) });
|
|
28935
28869
|
}
|
|
28936
28870
|
|
|
28937
28871
|
// src/components/forms/FormField.tsx
|
|
28938
|
-
var
|
|
28872
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
28939
28873
|
function FormField({
|
|
28940
28874
|
id,
|
|
28941
28875
|
name,
|
|
@@ -28950,9 +28884,9 @@ function FormField({
|
|
|
28950
28884
|
const context = useFormContext();
|
|
28951
28885
|
const { control } = context;
|
|
28952
28886
|
const { invalid, error } = context.getFieldState(name);
|
|
28953
|
-
return /* @__PURE__ */ (0,
|
|
28954
|
-
label && /* @__PURE__ */ (0,
|
|
28955
|
-
/* @__PURE__ */ (0,
|
|
28887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
|
|
28888
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Label2, { htmlFor: fieldId, children: label }),
|
|
28889
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FormController, { name, control, rules, children: ({ field }) => {
|
|
28956
28890
|
return import_react164.Children.map(
|
|
28957
28891
|
typeof children === "function" ? children({ context, field }) : children,
|
|
28958
28892
|
(child) => {
|
|
@@ -28963,14 +28897,14 @@ function FormField({
|
|
|
28963
28897
|
}
|
|
28964
28898
|
);
|
|
28965
28899
|
} }),
|
|
28966
|
-
description && /* @__PURE__ */ (0,
|
|
28967
|
-
invalid && /* @__PURE__ */ (0,
|
|
28900
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: FormField_default.description, children: description }),
|
|
28901
|
+
invalid && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: FormField_default.error, children: error?.message })
|
|
28968
28902
|
] });
|
|
28969
28903
|
}
|
|
28970
28904
|
|
|
28971
28905
|
// src/components/forms/FormFieldArray.tsx
|
|
28972
28906
|
var import_classnames8 = __toESM(require_classnames());
|
|
28973
|
-
var
|
|
28907
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
28974
28908
|
function FormFieldArray({
|
|
28975
28909
|
id,
|
|
28976
28910
|
name,
|
|
@@ -28991,10 +28925,10 @@ function FormFieldArray({
|
|
|
28991
28925
|
register(name, rules);
|
|
28992
28926
|
const errors = formState?.errors || {};
|
|
28993
28927
|
const errorMessage = errors[name]?.message;
|
|
28994
|
-
return /* @__PURE__ */ (0,
|
|
28995
|
-
label && /* @__PURE__ */ (0,
|
|
28996
|
-
description && /* @__PURE__ */ (0,
|
|
28997
|
-
errorMessage && /* @__PURE__ */ (0,
|
|
28928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ...props, className: (0, import_classnames8.default)(FormField_default.input, className), children: [
|
|
28929
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Label2, { htmlFor: fieldId, children: label }),
|
|
28930
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: FormField_default.description, children: description }),
|
|
28931
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: FormField_default.error, children: errorMessage }),
|
|
28998
28932
|
children({ ...context, ...fieldProps })
|
|
28999
28933
|
] });
|
|
29000
28934
|
}
|
|
@@ -29006,7 +28940,7 @@ var import_classnames9 = __toESM(require_classnames());
|
|
|
29006
28940
|
var Button_default = { "button": "Button_button__NGQyO", "variant-primary": "Button_variant-primary__YjU3N", "variant-outline": "Button_variant-outline__NzU3Y", "variant-quiet": "Button_variant-quiet__MzMzO", "variant-danger": "Button_variant-danger__OGZhN", "variant-zero": "Button_variant-zero__ZGViN", "sm": "Button_sm__NzE4Y", "md": "Button_md__YzYwY", "lg": "Button_lg__YTVkN", "xl": "Button_xl__ZDcyY" };
|
|
29007
28941
|
|
|
29008
28942
|
// src/components/Button.tsx
|
|
29009
|
-
var
|
|
28943
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
29010
28944
|
function Button2({
|
|
29011
28945
|
variant,
|
|
29012
28946
|
size = "md",
|
|
@@ -29018,7 +28952,7 @@ function Button2({
|
|
|
29018
28952
|
}) {
|
|
29019
28953
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
29020
28954
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
29021
|
-
return /* @__PURE__ */ (0,
|
|
28955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
29022
28956
|
Component,
|
|
29023
28957
|
{
|
|
29024
28958
|
...props,
|
|
@@ -29035,14 +28969,14 @@ function Button2({
|
|
|
29035
28969
|
}
|
|
29036
28970
|
|
|
29037
28971
|
// src/components/forms/FormResetButton.tsx
|
|
29038
|
-
var
|
|
28972
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
29039
28973
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
29040
28974
|
const { reset } = useFormContext();
|
|
29041
28975
|
const handleReset = (e) => {
|
|
29042
28976
|
reset(values);
|
|
29043
28977
|
onPress?.(e);
|
|
29044
28978
|
};
|
|
29045
|
-
return /* @__PURE__ */ (0,
|
|
28979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
29046
28980
|
}
|
|
29047
28981
|
|
|
29048
28982
|
// src/components/Spinner.tsx
|
|
@@ -29052,10 +28986,10 @@ var import_classnames10 = __toESM(require_classnames());
|
|
|
29052
28986
|
var Spinner_default = { "spinner": "Spinner_spinner__MTMxM", "spinner-rotate": "Spinner_spinner-rotate__OGQxM", "track": "Spinner_track__OTY4N", "fill": "Spinner_fill__ZTQ1Y", "spinner-dash": "Spinner_spinner-dash__OGIyZ", "size-sm": "Spinner_size-sm__NWRlY", "size-md": "Spinner_size-md__ODY2Y", "size-lg": "Spinner_size-lg__NDBhO", "quiet": "Spinner_quiet__ZDgxO", "disabled": "Spinner_disabled__YjY4N" };
|
|
29053
28987
|
|
|
29054
28988
|
// src/components/Spinner.tsx
|
|
29055
|
-
var
|
|
28989
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
29056
28990
|
function Spinner(props) {
|
|
29057
28991
|
const { size = "md", quiet, className, isDisabled, ...domProps } = props;
|
|
29058
|
-
return /* @__PURE__ */ (0,
|
|
28992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
29059
28993
|
"div",
|
|
29060
28994
|
{
|
|
29061
28995
|
...domProps,
|
|
@@ -29063,16 +28997,16 @@ function Spinner(props) {
|
|
|
29063
28997
|
[Spinner_default.quiet]: quiet,
|
|
29064
28998
|
[Spinner_default.disabled]: isDisabled
|
|
29065
28999
|
}),
|
|
29066
|
-
children: /* @__PURE__ */ (0,
|
|
29067
|
-
/* @__PURE__ */ (0,
|
|
29068
|
-
/* @__PURE__ */ (0,
|
|
29000
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { viewBox: "25 25 50 50", children: [
|
|
29001
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
29002
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
29069
29003
|
] })
|
|
29070
29004
|
}
|
|
29071
29005
|
);
|
|
29072
29006
|
}
|
|
29073
29007
|
|
|
29074
29008
|
// src/components/LoadingButton.tsx
|
|
29075
|
-
var
|
|
29009
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
29076
29010
|
function LoadingButton({
|
|
29077
29011
|
isLoading,
|
|
29078
29012
|
isDisabled,
|
|
@@ -29080,14 +29014,14 @@ function LoadingButton({
|
|
|
29080
29014
|
children,
|
|
29081
29015
|
...props
|
|
29082
29016
|
}) {
|
|
29083
|
-
return /* @__PURE__ */ (0,
|
|
29084
|
-
isLoading && /* @__PURE__ */ (0,
|
|
29017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Button2, { ...props, isDisabled, children: [
|
|
29018
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Spinner, { isDisabled }) }),
|
|
29085
29019
|
showText && children
|
|
29086
29020
|
] });
|
|
29087
29021
|
}
|
|
29088
29022
|
|
|
29089
29023
|
// src/components/forms/FormSubmitButton.tsx
|
|
29090
|
-
var
|
|
29024
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
29091
29025
|
function FormSubmitButton({
|
|
29092
29026
|
variant = "primary",
|
|
29093
29027
|
isDisabled,
|
|
@@ -29098,7 +29032,7 @@ function FormSubmitButton({
|
|
|
29098
29032
|
const {
|
|
29099
29033
|
formState: { isDirty, isValid, isSubmitting }
|
|
29100
29034
|
} = useFormContext();
|
|
29101
|
-
return /* @__PURE__ */ (0,
|
|
29035
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
29102
29036
|
LoadingButton,
|
|
29103
29037
|
{
|
|
29104
29038
|
...props,
|
|
@@ -29118,7 +29052,7 @@ var import_classnames11 = __toESM(require_classnames());
|
|
|
29118
29052
|
var Toast_default = { "toast": "Toast_toast__ODE0M", "icon": "Toast_icon__ZmRlO", "title": "Toast_title__OGFiM", "description": "Toast_description__OTAxY", "action": "Toast_action__YzYxM", "close": "Toast_close__ZmMzM", "success": "Toast_success__Y2ZhZ", "error": "Toast_error__YzE0Y" };
|
|
29119
29053
|
|
|
29120
29054
|
// src/components/toast/Toast.tsx
|
|
29121
|
-
var
|
|
29055
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
29122
29056
|
var TOAST_CLOSE_ACTION = "close";
|
|
29123
29057
|
function Toast({
|
|
29124
29058
|
id,
|
|
@@ -29133,11 +29067,11 @@ function Toast({
|
|
|
29133
29067
|
...props
|
|
29134
29068
|
}) {
|
|
29135
29069
|
const hasActions = actions?.length > 0;
|
|
29136
|
-
return /* @__PURE__ */ (0,
|
|
29137
|
-
title && /* @__PURE__ */ (0,
|
|
29138
|
-
message && /* @__PURE__ */ (0,
|
|
29070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { ...props, className: (0, import_classnames11.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
29071
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: Toast_default.title, children: title }),
|
|
29072
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: Toast_default.description, children: message }),
|
|
29139
29073
|
hasActions && actions.map((action) => {
|
|
29140
|
-
return /* @__PURE__ */ (0,
|
|
29074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
29141
29075
|
Button2,
|
|
29142
29076
|
{
|
|
29143
29077
|
variant: "outline",
|
|
@@ -29148,7 +29082,7 @@ function Toast({
|
|
|
29148
29082
|
action
|
|
29149
29083
|
);
|
|
29150
29084
|
}),
|
|
29151
|
-
!hasActions && allowClose && /* @__PURE__ */ (0,
|
|
29085
|
+
!hasActions && allowClose && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
29152
29086
|
Icon2,
|
|
29153
29087
|
{
|
|
29154
29088
|
"aria-hidden": true,
|
|
@@ -29156,7 +29090,7 @@ function Toast({
|
|
|
29156
29090
|
size: "sm",
|
|
29157
29091
|
className: Toast_default.close,
|
|
29158
29092
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
29159
|
-
children: /* @__PURE__ */ (0,
|
|
29093
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(X, {})
|
|
29160
29094
|
}
|
|
29161
29095
|
)
|
|
29162
29096
|
] });
|
|
@@ -32788,12 +32722,12 @@ var import_react181 = require("react");
|
|
|
32788
32722
|
|
|
32789
32723
|
// src/components/toast/ToastProvider.tsx
|
|
32790
32724
|
var import_react180 = require("react");
|
|
32791
|
-
var
|
|
32725
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
32792
32726
|
var ToastContext = (0, import_react180.createContext)({});
|
|
32793
32727
|
function ToastProvider({ children, ...props }) {
|
|
32794
|
-
return /* @__PURE__ */ (0,
|
|
32728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ToastContext.Provider, { value: props, children: [
|
|
32795
32729
|
children,
|
|
32796
|
-
/* @__PURE__ */ (0,
|
|
32730
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Toaster, { ...props })
|
|
32797
32731
|
] });
|
|
32798
32732
|
}
|
|
32799
32733
|
|
|
@@ -32831,7 +32765,7 @@ function useToast() {
|
|
|
32831
32765
|
var Toaster_default = { "toaster": "Toaster_toaster__OGJjM", "position-top": "Toaster_position-top__Y2YyM", "position-top-right": "Toaster_position-top-right__Y2I1Y", "position-top-left": "Toaster_position-top-left__ZGZlM", "position-bottom": "Toaster_position-bottom__NjJmM", "position-bottom-right": "Toaster_position-bottom-right__MGVjY", "position-bottom-left": "Toaster_position-bottom-left__ODBhZ", "position-left": "Toaster_position-left__MWMzM", "position-right": "Toaster_position-right__YWYzZ" };
|
|
32832
32766
|
|
|
32833
32767
|
// src/components/toast/Toaster.tsx
|
|
32834
|
-
var
|
|
32768
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
32835
32769
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
32836
32770
|
const { toasts } = useToast();
|
|
32837
32771
|
const [hovered, setHovered] = (0, import_react182.useState)(false);
|
|
@@ -32863,7 +32797,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
32863
32797
|
};
|
|
32864
32798
|
}
|
|
32865
32799
|
}, [duration, toasts, hovered]);
|
|
32866
|
-
return /* @__PURE__ */ (0,
|
|
32800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
32867
32801
|
"div",
|
|
32868
32802
|
{
|
|
32869
32803
|
className: (0, import_classnames12.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
@@ -32873,7 +32807,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
32873
32807
|
const { id, ...props } = item;
|
|
32874
32808
|
return (
|
|
32875
32809
|
// @ts-ignore
|
|
32876
|
-
/* @__PURE__ */ (0,
|
|
32810
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
32877
32811
|
);
|
|
32878
32812
|
})
|
|
32879
32813
|
}
|
|
@@ -32994,7 +32928,7 @@ var import_classnames13 = __toESM(require_classnames());
|
|
|
32994
32928
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
32995
32929
|
|
|
32996
32930
|
// src/components/Text.tsx
|
|
32997
|
-
var
|
|
32931
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
32998
32932
|
function Text({
|
|
32999
32933
|
color,
|
|
33000
32934
|
size,
|
|
@@ -33024,7 +32958,7 @@ function Text({
|
|
|
33024
32958
|
textTransform: transform,
|
|
33025
32959
|
color
|
|
33026
32960
|
});
|
|
33027
|
-
return /* @__PURE__ */ (0,
|
|
32961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
33028
32962
|
Component,
|
|
33029
32963
|
{
|
|
33030
32964
|
...props,
|
|
@@ -33047,9 +32981,9 @@ function Text({
|
|
|
33047
32981
|
var Accordion_default = { "accordion": "Accordion_accordion__ODg3O", "item": "Accordion_item__ZDU3Z", "button": "Accordion_button__MTRiY", "icon": "Accordion_icon__NDMwM", "panel": "Accordion_panel__OTQ4M", "expanded": "Accordion_expanded__ODY0N" };
|
|
33048
32982
|
|
|
33049
32983
|
// src/components/Accordion.tsx
|
|
33050
|
-
var
|
|
32984
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
33051
32985
|
function Accordion({ className, children, ...props }) {
|
|
33052
|
-
return /* @__PURE__ */ (0,
|
|
32986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames14.default)(Accordion_default.accordion, className), children });
|
|
33053
32987
|
}
|
|
33054
32988
|
function AccordionItem({
|
|
33055
32989
|
defaultExpanded,
|
|
@@ -33062,18 +32996,18 @@ function AccordionItem({
|
|
|
33062
32996
|
const handleExpandedChange = (isExpanded) => {
|
|
33063
32997
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
33064
32998
|
};
|
|
33065
|
-
return /* @__PURE__ */ (0,
|
|
32999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
33066
33000
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
33067
33001
|
{
|
|
33068
33002
|
...props,
|
|
33069
33003
|
className: (0, import_classnames14.default)(Accordion_default.item, className),
|
|
33070
33004
|
onExpandedChange: handleExpandedChange,
|
|
33071
33005
|
children: [
|
|
33072
|
-
/* @__PURE__ */ (0,
|
|
33073
|
-
/* @__PURE__ */ (0,
|
|
33074
|
-
/* @__PURE__ */ (0,
|
|
33006
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
33007
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text, { children: trigger }),
|
|
33008
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronDown, {}) })
|
|
33075
33009
|
] }),
|
|
33076
|
-
/* @__PURE__ */ (0,
|
|
33010
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames14.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
33077
33011
|
]
|
|
33078
33012
|
}
|
|
33079
33013
|
);
|
|
@@ -33092,7 +33026,7 @@ var import_classnames15 = __toESM(require_classnames());
|
|
|
33092
33026
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
33093
33027
|
|
|
33094
33028
|
// src/components/Heading.tsx
|
|
33095
|
-
var
|
|
33029
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
33096
33030
|
function Heading2({
|
|
33097
33031
|
size = "3",
|
|
33098
33032
|
weight,
|
|
@@ -33109,7 +33043,7 @@ function Heading2({
|
|
|
33109
33043
|
fontWeight: weight,
|
|
33110
33044
|
letterSpacing: spacing
|
|
33111
33045
|
});
|
|
33112
|
-
return /* @__PURE__ */ (0,
|
|
33046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
33113
33047
|
Box,
|
|
33114
33048
|
{
|
|
33115
33049
|
...props,
|
|
@@ -33121,26 +33055,26 @@ function Heading2({
|
|
|
33121
33055
|
}
|
|
33122
33056
|
|
|
33123
33057
|
// src/components/Column.tsx
|
|
33124
|
-
var
|
|
33058
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
33125
33059
|
function Column({ reverse, children, ...props }) {
|
|
33126
|
-
return /* @__PURE__ */ (0,
|
|
33060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
33127
33061
|
}
|
|
33128
33062
|
|
|
33129
33063
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
33130
33064
|
var Dialog_default = { "dialog": "Dialog_dialog__NjJlM", "title": "Dialog_title__YjdmY", "sheet": "Dialog_sheet__ZjQ1M" };
|
|
33131
33065
|
|
|
33132
33066
|
// src/components/Dialog.tsx
|
|
33133
|
-
var
|
|
33067
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
33134
33068
|
function Dialog2({ title, variant, children, className, ...props }) {
|
|
33135
|
-
return /* @__PURE__ */ (0,
|
|
33069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
33136
33070
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
33137
33071
|
{
|
|
33138
33072
|
"aria-label": "Dialog",
|
|
33139
33073
|
...props,
|
|
33140
33074
|
className: (0, import_classnames16.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
33141
33075
|
children: (dialogProps) => {
|
|
33142
|
-
return /* @__PURE__ */ (0,
|
|
33143
|
-
title && /* @__PURE__ */ (0,
|
|
33076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Column, { height: "100%", gap: true, children: [
|
|
33077
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Heading2, { size: "2", children: title }),
|
|
33144
33078
|
typeof children === "function" ? children(dialogProps) : children
|
|
33145
33079
|
] });
|
|
33146
33080
|
}
|
|
@@ -33152,7 +33086,7 @@ function Dialog2({ title, variant, children, className, ...props }) {
|
|
|
33152
33086
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
33153
33087
|
|
|
33154
33088
|
// src/components/AlertDialog.tsx
|
|
33155
|
-
var
|
|
33089
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
33156
33090
|
function AlertDialog({
|
|
33157
33091
|
title,
|
|
33158
33092
|
description,
|
|
@@ -33174,12 +33108,12 @@ function AlertDialog({
|
|
|
33174
33108
|
onCancel?.();
|
|
33175
33109
|
close();
|
|
33176
33110
|
};
|
|
33177
|
-
return /* @__PURE__ */ (0,
|
|
33178
|
-
return /* @__PURE__ */ (0,
|
|
33111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Dialog2, { ...props, title, className: (0, import_classnames17.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
33112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Column, { gap: "4", children: [
|
|
33179
33113
|
typeof children === "function" ? children({ close }) : children,
|
|
33180
|
-
/* @__PURE__ */ (0,
|
|
33181
|
-
/* @__PURE__ */ (0,
|
|
33182
|
-
/* @__PURE__ */ (0,
|
|
33114
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Row, { gap: "3", justifyContent: "end", children: [
|
|
33115
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
33116
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
33183
33117
|
Button2,
|
|
33184
33118
|
{
|
|
33185
33119
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -33197,10 +33131,10 @@ function AlertDialog({
|
|
|
33197
33131
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
33198
33132
|
|
|
33199
33133
|
// src/components/Blockquote.tsx
|
|
33200
|
-
var
|
|
33134
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
33201
33135
|
function Blockquote({ asChild, children }) {
|
|
33202
33136
|
const Component = asChild ? Slot : "blockquote";
|
|
33203
|
-
return /* @__PURE__ */ (0,
|
|
33137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Component, { className: Blockquote_default.blockquote, children });
|
|
33204
33138
|
}
|
|
33205
33139
|
|
|
33206
33140
|
// src/components/Breadcrumbs.tsx
|
|
@@ -33210,14 +33144,14 @@ var import_classnames18 = __toESM(require_classnames());
|
|
|
33210
33144
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
33211
33145
|
|
|
33212
33146
|
// src/components/Breadcrumbs.tsx
|
|
33213
|
-
var
|
|
33147
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
33214
33148
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
33215
|
-
return /* @__PURE__ */ (0,
|
|
33149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames18.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
33216
33150
|
}
|
|
33217
33151
|
function Breadcrumb2({ children, className, ...props }) {
|
|
33218
|
-
return /* @__PURE__ */ (0,
|
|
33152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames18.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
33219
33153
|
children,
|
|
33220
|
-
/* @__PURE__ */ (0,
|
|
33154
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronDown, {}) })
|
|
33221
33155
|
] });
|
|
33222
33156
|
}
|
|
33223
33157
|
|
|
@@ -33235,7 +33169,7 @@ function toCalendarDate(date) {
|
|
|
33235
33169
|
var Calendar_default = { "calendar": "Calendar_calendar__ZDMwM", "header": "Calendar_header__ZDE0Y", "heading": "Calendar_heading__MTk3Z", "button": "Calendar_button__MmIyO", "headerCell": "Calendar_headerCell__MjEwY", "cell": "Calendar_cell__MTc4M" };
|
|
33236
33170
|
|
|
33237
33171
|
// src/components/Calendar.tsx
|
|
33238
|
-
var
|
|
33172
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
33239
33173
|
function Calendar2({
|
|
33240
33174
|
className,
|
|
33241
33175
|
value,
|
|
@@ -33249,7 +33183,7 @@ function Calendar2({
|
|
|
33249
33183
|
console.log({ raw: date });
|
|
33250
33184
|
onChange?.(date.toDate($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
33251
33185
|
};
|
|
33252
|
-
return /* @__PURE__ */ (0,
|
|
33186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
33253
33187
|
$dfd62f934fc76fed$export$e1aef45b828286de,
|
|
33254
33188
|
{
|
|
33255
33189
|
...props,
|
|
@@ -33260,14 +33194,14 @@ function Calendar2({
|
|
|
33260
33194
|
className: (0, import_classnames19.default)(Calendar_default.calendar, className),
|
|
33261
33195
|
onChange: handleChange,
|
|
33262
33196
|
children: [
|
|
33263
|
-
/* @__PURE__ */ (0,
|
|
33264
|
-
/* @__PURE__ */ (0,
|
|
33265
|
-
/* @__PURE__ */ (0,
|
|
33266
|
-
/* @__PURE__ */ (0,
|
|
33197
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("header", { className: Calendar_default.header, children: [
|
|
33198
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon2, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ChevronDown, {}) }) }),
|
|
33199
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
33200
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ChevronDown, {}) }) })
|
|
33267
33201
|
] }),
|
|
33268
|
-
/* @__PURE__ */ (0,
|
|
33269
|
-
/* @__PURE__ */ (0,
|
|
33270
|
-
/* @__PURE__ */ (0,
|
|
33202
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
33203
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
33204
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
33271
33205
|
] })
|
|
33272
33206
|
]
|
|
33273
33207
|
}
|
|
@@ -33281,18 +33215,18 @@ var import_classnames20 = __toESM(require_classnames());
|
|
|
33281
33215
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
33282
33216
|
|
|
33283
33217
|
// src/components/Checkbox.tsx
|
|
33284
|
-
var
|
|
33218
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
33285
33219
|
function Checkbox2({ label, className, children, ...props }) {
|
|
33286
33220
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
33287
|
-
return /* @__PURE__ */ (0,
|
|
33221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
33288
33222
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
33289
33223
|
{
|
|
33290
33224
|
...props,
|
|
33291
33225
|
isSelected,
|
|
33292
33226
|
className: (0, import_classnames20.default)(Checkbox_default.checkbox, className),
|
|
33293
33227
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
33294
|
-
return /* @__PURE__ */ (0,
|
|
33295
|
-
/* @__PURE__ */ (0,
|
|
33228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
33229
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Check, {}) : null }) }),
|
|
33296
33230
|
children
|
|
33297
33231
|
] });
|
|
33298
33232
|
}
|
|
@@ -33352,7 +33286,7 @@ function getHighlightColor(color) {
|
|
|
33352
33286
|
var List_default = { "list": "List_list__Yzk2Y", "separator": "List_separator__ODZiZ", "section": "List_section__NTI0O", "header": "List_header__MjE1Y", "item": "List_item__MzU5Y", "checkmark": "List_checkmark__YzRiZ", "hideCheckmark": "List_hideCheckmark__NDlhN", "fullscreen": "List_fullscreen__NWMyY" };
|
|
33353
33287
|
|
|
33354
33288
|
// src/components/List.tsx
|
|
33355
|
-
var
|
|
33289
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
33356
33290
|
function List({
|
|
33357
33291
|
id,
|
|
33358
33292
|
items = [],
|
|
@@ -33380,9 +33314,9 @@ function List({
|
|
|
33380
33314
|
}
|
|
33381
33315
|
};
|
|
33382
33316
|
const fieldId = useFieldId(id);
|
|
33383
|
-
return /* @__PURE__ */ (0,
|
|
33384
|
-
label && /* @__PURE__ */ (0,
|
|
33385
|
-
/* @__PURE__ */ (0,
|
|
33317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
33318
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label2, { htmlFor: fieldId, children: label }),
|
|
33319
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
33386
33320
|
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
33387
33321
|
{
|
|
33388
33322
|
id: fieldId,
|
|
@@ -33402,9 +33336,9 @@ function List({
|
|
|
33402
33336
|
children: children || items?.map((item) => {
|
|
33403
33337
|
const id2 = item[idProperty] || item.toString();
|
|
33404
33338
|
const label2 = item[labelProperty] || item.toString();
|
|
33405
|
-
return /* @__PURE__ */ (0,
|
|
33406
|
-
item[separatorProperty] && /* @__PURE__ */ (0,
|
|
33407
|
-
/* @__PURE__ */ (0,
|
|
33339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react187.Fragment, { children: [
|
|
33340
|
+
item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
33341
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ListItem, { id: id2, className: List_default.item, children: label2 })
|
|
33408
33342
|
] }, id2);
|
|
33409
33343
|
})
|
|
33410
33344
|
}
|
|
@@ -33418,7 +33352,7 @@ function ListItem({
|
|
|
33418
33352
|
showCheckmark = true,
|
|
33419
33353
|
...props
|
|
33420
33354
|
}) {
|
|
33421
|
-
return /* @__PURE__ */ (0,
|
|
33355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
33422
33356
|
$eed445e0843c11d0$export$a11e76429ed99b4,
|
|
33423
33357
|
{
|
|
33424
33358
|
...props,
|
|
@@ -33427,24 +33361,24 @@ function ListItem({
|
|
|
33427
33361
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
33428
33362
|
children: [
|
|
33429
33363
|
children,
|
|
33430
|
-
showCheckmark && /* @__PURE__ */ (0,
|
|
33364
|
+
showCheckmark && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Check, {}) })
|
|
33431
33365
|
]
|
|
33432
33366
|
}
|
|
33433
33367
|
);
|
|
33434
33368
|
}
|
|
33435
33369
|
function ListSeparator({ className, ...props }) {
|
|
33436
|
-
return /* @__PURE__ */ (0,
|
|
33370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames21.default)(List_default.separator, className) });
|
|
33437
33371
|
}
|
|
33438
33372
|
function ListSection({ title, className, children, ...props }) {
|
|
33439
|
-
return /* @__PURE__ */ (0,
|
|
33440
|
-
title && /* @__PURE__ */ (0,
|
|
33373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames21.default)(List_default.section, className), children: [
|
|
33374
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
33441
33375
|
children
|
|
33442
33376
|
] });
|
|
33443
33377
|
}
|
|
33444
33378
|
|
|
33445
33379
|
// src/components/Grid.tsx
|
|
33446
33380
|
var import_classnames22 = __toESM(require_classnames());
|
|
33447
|
-
var
|
|
33381
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
33448
33382
|
function Grid({
|
|
33449
33383
|
display = "grid",
|
|
33450
33384
|
justifyContent,
|
|
@@ -33477,14 +33411,14 @@ function Grid({
|
|
|
33477
33411
|
gridTemplateAreas: areas,
|
|
33478
33412
|
gridAutoFlow: autoFlow
|
|
33479
33413
|
});
|
|
33480
|
-
return /* @__PURE__ */ (0,
|
|
33414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Box, { ...props, className: (0, import_classnames22.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
33481
33415
|
}
|
|
33482
33416
|
|
|
33483
33417
|
// css-modules:E:\dev\umami-react-zen\src\components\ComboBox.module.css
|
|
33484
33418
|
var ComboBox_default = { "combobox": "ComboBox_combobox__ZDYxZ", "input": "ComboBox_input__YjNkN", "button": "ComboBox_button__NTlhM", "list": "ComboBox_list__NTdiY" };
|
|
33485
33419
|
|
|
33486
33420
|
// src/components/ComboBox.tsx
|
|
33487
|
-
var
|
|
33421
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
33488
33422
|
function ComboBox2({
|
|
33489
33423
|
items,
|
|
33490
33424
|
className,
|
|
@@ -33494,18 +33428,18 @@ function ComboBox2({
|
|
|
33494
33428
|
children,
|
|
33495
33429
|
...props
|
|
33496
33430
|
}) {
|
|
33497
|
-
return /* @__PURE__ */ (0,
|
|
33431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
33498
33432
|
$d01f2c01039c0eec$export$72b9695b8216309a,
|
|
33499
33433
|
{
|
|
33500
33434
|
"aria-label": "ComboBox",
|
|
33501
33435
|
...props,
|
|
33502
33436
|
className: (0, import_classnames23.default)(ComboBox_default.combobox, className),
|
|
33503
33437
|
children: [
|
|
33504
|
-
/* @__PURE__ */ (0,
|
|
33505
|
-
/* @__PURE__ */ (0,
|
|
33506
|
-
/* @__PURE__ */ (0,
|
|
33438
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Grid, { alignItems: "center", columns: "1fr auto", width: "100%", children: [
|
|
33439
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { className: ComboBox_default.input }),
|
|
33440
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: ComboBox_default.button, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronDown, {}) }) })
|
|
33507
33441
|
] }),
|
|
33508
|
-
/* @__PURE__ */ (0,
|
|
33442
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: ComboBox_default.list, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(List, { items, renderEmptyState, ...listProps, children: children || items?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ListItem, { textValue: item, children: item }, item)) }) }) })
|
|
33509
33443
|
]
|
|
33510
33444
|
}
|
|
33511
33445
|
);
|
|
@@ -33515,10 +33449,10 @@ function ComboBox2({
|
|
|
33515
33449
|
var Code_default = { "code": "Code_code__ZTc0M" };
|
|
33516
33450
|
|
|
33517
33451
|
// src/components/Code.tsx
|
|
33518
|
-
var
|
|
33452
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
33519
33453
|
function Code({ asChild, children }) {
|
|
33520
33454
|
const Component = asChild ? Slot : "code";
|
|
33521
|
-
return /* @__PURE__ */ (0,
|
|
33455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Component, { className: Code_default.code, children });
|
|
33522
33456
|
}
|
|
33523
33457
|
|
|
33524
33458
|
// src/components/ConfirmationDialog.tsx
|
|
@@ -33537,7 +33471,7 @@ var import_classnames24 = __toESM(require_classnames());
|
|
|
33537
33471
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
33538
33472
|
|
|
33539
33473
|
// src/components/CopyButton.tsx
|
|
33540
|
-
var
|
|
33474
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
33541
33475
|
var TIMEOUT = 2e3;
|
|
33542
33476
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
33543
33477
|
const [copied, setCopied] = (0, import_react188.useState)(false);
|
|
@@ -33550,14 +33484,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
33550
33484
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
33551
33485
|
}
|
|
33552
33486
|
};
|
|
33553
|
-
return /* @__PURE__ */ (0,
|
|
33487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon2, { ...props, className: (0, import_classnames24.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Copy, {}) });
|
|
33554
33488
|
}
|
|
33555
33489
|
|
|
33556
33490
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
33557
33491
|
var TextField_default = { "field": "TextField_field__YzU1O", "icon": "TextField_icon__MDJlY", "novalue": "TextField_novalue__NDg4Y", "textarea": "TextField_textarea__NTQ3M", "resize-vertical": "TextField_resize-vertical__ZDc3N", "resize-horizontal": "TextField_resize-horizontal__MzJjY", "resize-none": "TextField_resize-none__ZmUxZ" };
|
|
33558
33492
|
|
|
33559
33493
|
// src/components/TextField.tsx
|
|
33560
|
-
var
|
|
33494
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
33561
33495
|
function TextField2({
|
|
33562
33496
|
value,
|
|
33563
33497
|
defaultValue,
|
|
@@ -33582,9 +33516,9 @@ function TextField2({
|
|
|
33582
33516
|
(0, import_react189.useEffect)(() => {
|
|
33583
33517
|
setInputValue(value);
|
|
33584
33518
|
}, [value]);
|
|
33585
|
-
return /* @__PURE__ */ (0,
|
|
33586
|
-
label && /* @__PURE__ */ (0,
|
|
33587
|
-
/* @__PURE__ */ (0,
|
|
33519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
33520
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label2, { children: label }),
|
|
33521
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
33588
33522
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
33589
33523
|
{
|
|
33590
33524
|
"aria-label": "Text",
|
|
@@ -33602,8 +33536,8 @@ function TextField2({
|
|
|
33602
33536
|
isDisabled,
|
|
33603
33537
|
onChange: handleChange,
|
|
33604
33538
|
children: [
|
|
33605
|
-
/* @__PURE__ */ (0,
|
|
33606
|
-
allowCopy && /* @__PURE__ */ (0,
|
|
33539
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, { placeholder }),
|
|
33540
|
+
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CopyButton, { value: inputValue, className: TextField_default.icon })
|
|
33607
33541
|
]
|
|
33608
33542
|
}
|
|
33609
33543
|
)
|
|
@@ -33614,7 +33548,7 @@ function TextField2({
|
|
|
33614
33548
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__YjQzN", "value": "ConfirmationDialog_value__Njg3N" };
|
|
33615
33549
|
|
|
33616
33550
|
// src/components/ConfirmationDialog.tsx
|
|
33617
|
-
var
|
|
33551
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
33618
33552
|
function ConfirmationDialog({
|
|
33619
33553
|
value,
|
|
33620
33554
|
confirmMessage,
|
|
@@ -33626,21 +33560,21 @@ function ConfirmationDialog({
|
|
|
33626
33560
|
const handleChange = (e) => {
|
|
33627
33561
|
setCanSave(e.target.value === value);
|
|
33628
33562
|
};
|
|
33629
|
-
return /* @__PURE__ */ (0,
|
|
33563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
33630
33564
|
AlertDialog,
|
|
33631
33565
|
{
|
|
33632
33566
|
...props,
|
|
33633
33567
|
className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
|
|
33634
33568
|
isConfirmDisabled: !canSave,
|
|
33635
33569
|
children: ({ close }) => {
|
|
33636
|
-
return /* @__PURE__ */ (0,
|
|
33570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
33637
33571
|
typeof children === "function" ? children({ close }) : children,
|
|
33638
|
-
/* @__PURE__ */ (0,
|
|
33572
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Text, { children: [
|
|
33639
33573
|
confirmMessage || "Type the following value to confirm",
|
|
33640
33574
|
":"
|
|
33641
33575
|
] }),
|
|
33642
|
-
/* @__PURE__ */ (0,
|
|
33643
|
-
/* @__PURE__ */ (0,
|
|
33576
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
33577
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
33644
33578
|
] });
|
|
33645
33579
|
}
|
|
33646
33580
|
}
|
|
@@ -33654,7 +33588,7 @@ var import_classnames27 = __toESM(require_classnames());
|
|
|
33654
33588
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
33655
33589
|
|
|
33656
33590
|
// src/components/Container.tsx
|
|
33657
|
-
var
|
|
33591
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
33658
33592
|
function Container({
|
|
33659
33593
|
isCentered = true,
|
|
33660
33594
|
isFluid,
|
|
@@ -33662,7 +33596,7 @@ function Container({
|
|
|
33662
33596
|
children,
|
|
33663
33597
|
...props
|
|
33664
33598
|
}) {
|
|
33665
|
-
return /* @__PURE__ */ (0,
|
|
33599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
33666
33600
|
Box,
|
|
33667
33601
|
{
|
|
33668
33602
|
...props,
|
|
@@ -33679,13 +33613,13 @@ function Container({
|
|
|
33679
33613
|
|
|
33680
33614
|
// src/components/DataCard.tsx
|
|
33681
33615
|
var import_react191 = require("react");
|
|
33682
|
-
var
|
|
33616
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
33683
33617
|
function DataCard({ data = [], labelWidth = "auto", ...props }) {
|
|
33684
33618
|
const rows = mapIdProperty(data);
|
|
33685
|
-
return /* @__PURE__ */ (0,
|
|
33686
|
-
return /* @__PURE__ */ (0,
|
|
33687
|
-
/* @__PURE__ */ (0,
|
|
33688
|
-
/* @__PURE__ */ (0,
|
|
33619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Grid, { width: "100%", columns: `${labelWidth} 1fr`, border: true, borderRadius: "3", padding: "6", ...props, children: rows.map((row, index) => {
|
|
33620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_react191.Fragment, { children: [
|
|
33621
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Row, { paddingY: "3", border: "bottom", borderColor: "4", paddingRight: "6", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, { size: "3", weight: "bold", children: row?.label }) }),
|
|
33622
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Row, { paddingY: "3", border: "bottom", borderColor: "4", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, { size: "3", children: row?.value }) })
|
|
33689
33623
|
] }, index);
|
|
33690
33624
|
}) });
|
|
33691
33625
|
}
|
|
@@ -33701,13 +33635,13 @@ var import_classnames28 = __toESM(require_classnames());
|
|
|
33701
33635
|
var Table_default = { "table": "Table_table__NWMxN", "header": "Table_header__YzdmY", "body": "Table_body__Nzg5M", "row": "Table_row__ZWFmM", "column": "Table_column__YTdhZ", "cell": "Table_cell__MjU3N", "start": "Table_start__ZGIyN", "center": "Table_center__Yzg5M", "end": "Table_end__YjA1Y" };
|
|
33702
33636
|
|
|
33703
33637
|
// src/components/Table.tsx
|
|
33704
|
-
var
|
|
33638
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
33705
33639
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
33706
33640
|
function Table2({ children, className, ...props }) {
|
|
33707
|
-
return /* @__PURE__ */ (0,
|
|
33641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames28.default)(Table_default.table, className), children });
|
|
33708
33642
|
}
|
|
33709
33643
|
function TableHeader({ children, className, style, ...props }) {
|
|
33710
|
-
return /* @__PURE__ */ (0,
|
|
33644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
33711
33645
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
33712
33646
|
{
|
|
33713
33647
|
...props,
|
|
@@ -33718,10 +33652,10 @@ function TableHeader({ children, className, style, ...props }) {
|
|
|
33718
33652
|
);
|
|
33719
33653
|
}
|
|
33720
33654
|
function TableBody({ children, className, ...props }) {
|
|
33721
|
-
return /* @__PURE__ */ (0,
|
|
33655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames28.default)(Table_default.body, className), children });
|
|
33722
33656
|
}
|
|
33723
33657
|
function TableRow({ children, className, style, ...props }) {
|
|
33724
|
-
return /* @__PURE__ */ (0,
|
|
33658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
33725
33659
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
33726
33660
|
{
|
|
33727
33661
|
...props,
|
|
@@ -33732,7 +33666,7 @@ function TableRow({ children, className, style, ...props }) {
|
|
|
33732
33666
|
);
|
|
33733
33667
|
}
|
|
33734
33668
|
function TableColumn({ children, className, align, ...props }) {
|
|
33735
|
-
return /* @__PURE__ */ (0,
|
|
33669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
33736
33670
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
33737
33671
|
{
|
|
33738
33672
|
...props,
|
|
@@ -33743,14 +33677,14 @@ function TableColumn({ children, className, align, ...props }) {
|
|
|
33743
33677
|
);
|
|
33744
33678
|
}
|
|
33745
33679
|
function TableCell({ children, className, align, ...props }) {
|
|
33746
|
-
return /* @__PURE__ */ (0,
|
|
33680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames28.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
33747
33681
|
}
|
|
33748
33682
|
|
|
33749
33683
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
33750
33684
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
33751
33685
|
|
|
33752
33686
|
// src/components/DataTable.tsx
|
|
33753
|
-
var
|
|
33687
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
33754
33688
|
var import_react193 = require("react");
|
|
33755
33689
|
function DataTable({
|
|
33756
33690
|
data = [],
|
|
@@ -33770,23 +33704,23 @@ function DataTable({
|
|
|
33770
33704
|
})?.filter((n) => n);
|
|
33771
33705
|
const gridTemplateColumns2 = widths.join(" ");
|
|
33772
33706
|
if (displayMode === "cards") {
|
|
33773
|
-
return /* @__PURE__ */ (0,
|
|
33707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Grid, { id: "grid", width: "100%", gap: "6", children: rows.map((row, index) => {
|
|
33774
33708
|
const items = columns?.filter(({ hidden }) => !hidden).map(({ id, label, children: children2 }) => {
|
|
33775
33709
|
const value = typeof children2 === "function" ? children2(row, index) : children2 ?? row[id];
|
|
33776
33710
|
return { id, label, value };
|
|
33777
33711
|
});
|
|
33778
|
-
return /* @__PURE__ */ (0,
|
|
33712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DataCard, { data: items }, `${row.id}-${index}`);
|
|
33779
33713
|
}) });
|
|
33780
33714
|
}
|
|
33781
|
-
return /* @__PURE__ */ (0,
|
|
33782
|
-
/* @__PURE__ */ (0,
|
|
33715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Table2, { ...props, className: (0, import_classnames29.default)(DataTable_default.datatable, className), children: [
|
|
33716
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
33783
33717
|
if (hidden) {
|
|
33784
33718
|
return null;
|
|
33785
33719
|
}
|
|
33786
33720
|
return /* @__PURE__ */ (0, import_react193.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
|
|
33787
33721
|
}) }),
|
|
33788
|
-
/* @__PURE__ */ (0,
|
|
33789
|
-
return /* @__PURE__ */ (0,
|
|
33722
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TableBody, { children: rows.map((row, index) => {
|
|
33723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
33790
33724
|
if (hidden) {
|
|
33791
33725
|
return null;
|
|
33792
33726
|
}
|
|
@@ -33815,12 +33749,12 @@ var import_classnames30 = __toESM(require_classnames());
|
|
|
33815
33749
|
var Dots_default = { "dots": "Dots_dots__ZTc4M", "size-sm": "Dots_size-sm__YmFiM", "size-md": "Dots_size-md__MThiY", "size-lg": "Dots_size-lg__MTNlO", "dot": "Dots_dot__YTQ4Y", "dots-blink": "Dots_dots-blink__MjFjZ" };
|
|
33816
33750
|
|
|
33817
33751
|
// src/components/Dots.tsx
|
|
33818
|
-
var
|
|
33752
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
33819
33753
|
function Dots({ size = "md", className, ...props }) {
|
|
33820
|
-
return /* @__PURE__ */ (0,
|
|
33821
|
-
/* @__PURE__ */ (0,
|
|
33822
|
-
/* @__PURE__ */ (0,
|
|
33823
|
-
/* @__PURE__ */ (0,
|
|
33754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { ...props, className: (0, import_classnames30.default)(Dots_default.dots, className, Dots_default[`size-${size}`]), children: [
|
|
33755
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: Dots_default.dot }),
|
|
33756
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: Dots_default.dot }),
|
|
33757
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: Dots_default.dot })
|
|
33824
33758
|
] });
|
|
33825
33759
|
}
|
|
33826
33760
|
|
|
@@ -33835,14 +33769,14 @@ var import_classnames31 = __toESM(require_classnames());
|
|
|
33835
33769
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
33836
33770
|
|
|
33837
33771
|
// src/components/Tooltip.tsx
|
|
33838
|
-
var
|
|
33772
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
33839
33773
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
33840
|
-
return /* @__PURE__ */ (0,
|
|
33774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames31.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipBubble, { showArrow, children }) });
|
|
33841
33775
|
}
|
|
33842
33776
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
33843
|
-
return /* @__PURE__ */ (0,
|
|
33844
|
-
showArrow && /* @__PURE__ */ (0,
|
|
33845
|
-
/* @__PURE__ */ (0,
|
|
33777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ...props, children: [
|
|
33778
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
33779
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: Tooltip_default.bubble, children })
|
|
33846
33780
|
] });
|
|
33847
33781
|
}
|
|
33848
33782
|
|
|
@@ -33850,7 +33784,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
33850
33784
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
33851
33785
|
|
|
33852
33786
|
// src/components/FloatingTooltip.tsx
|
|
33853
|
-
var
|
|
33787
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
33854
33788
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
33855
33789
|
const [position, setPosition] = (0, import_react194.useState)({ x: -1e3, y: -1e3 });
|
|
33856
33790
|
(0, import_react194.useEffect)(() => {
|
|
@@ -33862,7 +33796,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
33862
33796
|
document.removeEventListener("mousemove", handler);
|
|
33863
33797
|
};
|
|
33864
33798
|
}, []);
|
|
33865
|
-
return /* @__PURE__ */ (0,
|
|
33799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
33866
33800
|
TooltipBubble,
|
|
33867
33801
|
{
|
|
33868
33802
|
...props,
|
|
@@ -33880,7 +33814,7 @@ var import_react195 = require("react");
|
|
|
33880
33814
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
33881
33815
|
|
|
33882
33816
|
// src/components/HoverTrigger.tsx
|
|
33883
|
-
var
|
|
33817
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
33884
33818
|
var CLOSE_DELAY = 500;
|
|
33885
33819
|
function HoverTrigger({
|
|
33886
33820
|
isOpen,
|
|
@@ -33931,9 +33865,9 @@ function HoverTrigger({
|
|
|
33931
33865
|
}
|
|
33932
33866
|
}, closeDelay);
|
|
33933
33867
|
};
|
|
33934
|
-
return /* @__PURE__ */ (0,
|
|
33935
|
-
/* @__PURE__ */ (0,
|
|
33936
|
-
/* @__PURE__ */ (0,
|
|
33868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
33869
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
33870
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
33937
33871
|
"div",
|
|
33938
33872
|
{
|
|
33939
33873
|
className: HoverTrigger_default.wrapper,
|
|
@@ -33946,7 +33880,7 @@ function HoverTrigger({
|
|
|
33946
33880
|
}
|
|
33947
33881
|
|
|
33948
33882
|
// src/components/IconLabel.tsx
|
|
33949
|
-
var
|
|
33883
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
33950
33884
|
function IconLabel({
|
|
33951
33885
|
icon,
|
|
33952
33886
|
label,
|
|
@@ -33956,9 +33890,9 @@ function IconLabel({
|
|
|
33956
33890
|
children,
|
|
33957
33891
|
...props
|
|
33958
33892
|
}) {
|
|
33959
|
-
return /* @__PURE__ */ (0,
|
|
33960
|
-
/* @__PURE__ */ (0,
|
|
33961
|
-
showLabel && label && /* @__PURE__ */ (0,
|
|
33893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Row, { alignItems: "center", gap: true, width: "100%", ...props, children: [
|
|
33894
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon2, { ...iconProps, children: icon }),
|
|
33895
|
+
showLabel && label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Text, { ...labelProps, children: label }),
|
|
33962
33896
|
showLabel && children
|
|
33963
33897
|
] });
|
|
33964
33898
|
}
|
|
@@ -33970,7 +33904,7 @@ var import_classnames33 = __toESM(require_classnames());
|
|
|
33970
33904
|
var Image_default = { "image": "Image_image__M2EyN", "centered": "Image_centered__ZDFhM", "fill": "Image_fill__YWJhZ", "contain": "Image_contain__ZjAyN", "cover": "Image_cover__ODA4Y", "none": "Image_none__YTdiZ", "scale-down": "Image_scale-down__ODNlN" };
|
|
33971
33905
|
|
|
33972
33906
|
// src/components/Image.tsx
|
|
33973
|
-
var
|
|
33907
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
33974
33908
|
function Image({
|
|
33975
33909
|
src,
|
|
33976
33910
|
alt,
|
|
@@ -33983,7 +33917,7 @@ function Image({
|
|
|
33983
33917
|
...props
|
|
33984
33918
|
}) {
|
|
33985
33919
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
33986
|
-
return /* @__PURE__ */ (0,
|
|
33920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
33987
33921
|
"img",
|
|
33988
33922
|
{
|
|
33989
33923
|
...props,
|
|
@@ -34010,7 +33944,7 @@ var import_classnames34 = __toESM(require_classnames());
|
|
|
34010
33944
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
34011
33945
|
|
|
34012
33946
|
// src/components/InlineEditField.tsx
|
|
34013
|
-
var
|
|
33947
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
34014
33948
|
function InlineEditField({
|
|
34015
33949
|
name = "",
|
|
34016
33950
|
value: defaultValue = "",
|
|
@@ -34046,7 +33980,7 @@ function InlineEditField({
|
|
|
34046
33980
|
handleCancel();
|
|
34047
33981
|
}
|
|
34048
33982
|
};
|
|
34049
|
-
return /* @__PURE__ */ (0,
|
|
33983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
34050
33984
|
"div",
|
|
34051
33985
|
{
|
|
34052
33986
|
"aria-label": "Edit",
|
|
@@ -34055,8 +33989,8 @@ function InlineEditField({
|
|
|
34055
33989
|
onClick: handleEdit,
|
|
34056
33990
|
children: [
|
|
34057
33991
|
!edit && children,
|
|
34058
|
-
!edit && /* @__PURE__ */ (0,
|
|
34059
|
-
edit && /* @__PURE__ */ (0,
|
|
33992
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SquarePen, {}) }),
|
|
33993
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
34060
33994
|
TextField2,
|
|
34061
33995
|
{
|
|
34062
33996
|
name,
|
|
@@ -34079,7 +34013,7 @@ var import_classnames35 = __toESM(require_classnames());
|
|
|
34079
34013
|
var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
|
|
34080
34014
|
|
|
34081
34015
|
// src/components/Loading.tsx
|
|
34082
|
-
var
|
|
34016
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
34083
34017
|
function Loading({
|
|
34084
34018
|
size,
|
|
34085
34019
|
placement = "inline",
|
|
@@ -34087,9 +34021,9 @@ function Loading({
|
|
|
34087
34021
|
className,
|
|
34088
34022
|
...props
|
|
34089
34023
|
}) {
|
|
34090
|
-
return /* @__PURE__ */ (0,
|
|
34091
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
34092
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
34024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Box, { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
|
|
34025
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Dots, { size }),
|
|
34026
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Spinner, { size })
|
|
34093
34027
|
] });
|
|
34094
34028
|
}
|
|
34095
34029
|
|
|
@@ -34100,9 +34034,9 @@ var import_classnames36 = __toESM(require_classnames());
|
|
|
34100
34034
|
var Menu_default = { "menu": "Menu_menu__YTM5N", "separator": "Menu_separator__YjFhN", "section": "Menu_section__NWFlM", "header": "Menu_header__YzJkN", "item": "Menu_item__NGRkO", "checkmark": "Menu_checkmark__MWQ1O", "hideCheckmark": "Menu_hideCheckmark__YzBhM", "label": "Menu_label__NGMxM", "content": "Menu_content__MTA2O" };
|
|
34101
34035
|
|
|
34102
34036
|
// src/components/Menu.tsx
|
|
34103
|
-
var
|
|
34037
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
34104
34038
|
function Menu2({ className, children, ...props }) {
|
|
34105
|
-
return /* @__PURE__ */ (0,
|
|
34039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames36.default)(Menu_default.menu, className), children });
|
|
34106
34040
|
}
|
|
34107
34041
|
function MenuItem2({
|
|
34108
34042
|
icon,
|
|
@@ -34113,14 +34047,14 @@ function MenuItem2({
|
|
|
34113
34047
|
className,
|
|
34114
34048
|
...props
|
|
34115
34049
|
}) {
|
|
34116
|
-
return /* @__PURE__ */ (0,
|
|
34117
|
-
/* @__PURE__ */ (0,
|
|
34118
|
-
showChecked && /* @__PURE__ */ (0,
|
|
34119
|
-
showSubMenuIcon && /* @__PURE__ */ (0,
|
|
34050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
|
|
34051
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IconLabel, { icon, label, children }),
|
|
34052
|
+
showChecked && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon2, { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Check, {}) }),
|
|
34053
|
+
showSubMenuIcon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ChevronDown, {}) })
|
|
34120
34054
|
] });
|
|
34121
34055
|
}
|
|
34122
34056
|
function MenuSeparator({ className, ...props }) {
|
|
34123
|
-
return /* @__PURE__ */ (0,
|
|
34057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames36.default)(Menu_default.separator, className) });
|
|
34124
34058
|
}
|
|
34125
34059
|
function MenuSection({
|
|
34126
34060
|
title,
|
|
@@ -34134,9 +34068,9 @@ function MenuSection({
|
|
|
34134
34068
|
maxHeight,
|
|
34135
34069
|
overflow: maxHeight ? "auto" : void 0
|
|
34136
34070
|
};
|
|
34137
|
-
return /* @__PURE__ */ (0,
|
|
34138
|
-
title && /* @__PURE__ */ (0,
|
|
34139
|
-
/* @__PURE__ */ (0,
|
|
34071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
34072
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
34073
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
34140
34074
|
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
34141
34075
|
{
|
|
34142
34076
|
...props,
|
|
@@ -34148,7 +34082,7 @@ function MenuSection({
|
|
|
34148
34082
|
] });
|
|
34149
34083
|
}
|
|
34150
34084
|
function SubMenuTrigger({ children, ...props }) {
|
|
34151
|
-
return /* @__PURE__ */ (0,
|
|
34085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
|
|
34152
34086
|
}
|
|
34153
34087
|
|
|
34154
34088
|
// src/components/Modal.tsx
|
|
@@ -34158,7 +34092,7 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
34158
34092
|
var Modal_default = { "overlay": "Modal_overlay__MDExM", "modal-fade-in": "Modal_modal-fade-in__ZDY2M", "modal": "Modal_modal__YTc0N", "left": "Modal_left__MTJkM", "right": "Modal_right__MTgyY", "top": "Modal_top__ZjhhZ", "bottom": "Modal_bottom__NWMzZ", "fullscreen": "Modal_fullscreen__MzNlO", "center": "Modal_center__YzA4O", "modal-zoom": "Modal_modal-zoom__YjI0Z", "modal-left": "Modal_modal-left__YzdjM", "modal-right": "Modal_modal-right__MjdlN", "modal-top": "Modal_modal-top__ZTg5M", "modal-bottom": "Modal_modal-bottom__YjQ3N" };
|
|
34159
34093
|
|
|
34160
34094
|
// src/components/Modal.tsx
|
|
34161
|
-
var
|
|
34095
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
34162
34096
|
function Modal2({
|
|
34163
34097
|
placement = "center",
|
|
34164
34098
|
offset,
|
|
@@ -34170,7 +34104,7 @@ function Modal2({
|
|
|
34170
34104
|
if (offset) {
|
|
34171
34105
|
style[`--modal-offset`] = offset;
|
|
34172
34106
|
}
|
|
34173
|
-
return /* @__PURE__ */ (0,
|
|
34107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames37.default)(Modal_default.modal, placement && Modal_default[placement], className), children }) });
|
|
34174
34108
|
}
|
|
34175
34109
|
|
|
34176
34110
|
// src/components/Navbar.tsx
|
|
@@ -34181,7 +34115,7 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
34181
34115
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
34182
34116
|
|
|
34183
34117
|
// src/components/Navbar.tsx
|
|
34184
|
-
var
|
|
34118
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
34185
34119
|
var NavbarContext = (0, import_react197.createContext)(void 0);
|
|
34186
34120
|
var useNavigationContext = () => {
|
|
34187
34121
|
const context = (0, import_react197.useContext)(NavbarContext);
|
|
@@ -34192,20 +34126,20 @@ var useNavigationContext = () => {
|
|
|
34192
34126
|
};
|
|
34193
34127
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
34194
34128
|
const [activeMenu, setActiveMenu] = (0, import_react197.useState)("");
|
|
34195
|
-
return /* @__PURE__ */ (0,
|
|
34129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.nav, className), children }) });
|
|
34196
34130
|
}
|
|
34197
34131
|
function NavbarItem({ label, children, className, ...props }) {
|
|
34198
34132
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
34199
34133
|
if (label) {
|
|
34200
|
-
return /* @__PURE__ */ (0,
|
|
34201
|
-
/* @__PURE__ */ (0,
|
|
34202
|
-
/* @__PURE__ */ (0,
|
|
34203
|
-
/* @__PURE__ */ (0,
|
|
34134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
34135
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children: [
|
|
34136
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, { children: label }),
|
|
34137
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronDown, {}) })
|
|
34204
34138
|
] }),
|
|
34205
34139
|
children
|
|
34206
34140
|
] });
|
|
34207
34141
|
}
|
|
34208
|
-
return /* @__PURE__ */ (0,
|
|
34142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children });
|
|
34209
34143
|
}
|
|
34210
34144
|
|
|
34211
34145
|
// src/components/NavMenu.tsx
|
|
@@ -34216,7 +34150,7 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
34216
34150
|
var NavMenu_default = { "navmenu": "NavMenu_navmenu__MzRmN", "item": "NavMenu_item__ZWRjZ", "selected": "NavMenu_selected__ZDU1N", "muted": "NavMenu_muted__MTgxN", "title": "NavMenu_title__ZjJhN", "clickable": "NavMenu_clickable__Mjg0O" };
|
|
34217
34151
|
|
|
34218
34152
|
// src/components/NavMenu.tsx
|
|
34219
|
-
var
|
|
34153
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
34220
34154
|
var NavMenuContext = (0, import_react198.createContext)(null);
|
|
34221
34155
|
function NavMenu({
|
|
34222
34156
|
itemBackgroundColor = "2",
|
|
@@ -34226,7 +34160,7 @@ function NavMenu({
|
|
|
34226
34160
|
children,
|
|
34227
34161
|
...props
|
|
34228
34162
|
}) {
|
|
34229
|
-
return /* @__PURE__ */ (0,
|
|
34163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NavMenuContext.Provider, { value: { itemBackgroundColor, onItemClick }, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
34230
34164
|
Column,
|
|
34231
34165
|
{
|
|
34232
34166
|
...props,
|
|
@@ -34249,7 +34183,7 @@ function NavMenuGroup({
|
|
|
34249
34183
|
setMinimized((state) => !state);
|
|
34250
34184
|
}
|
|
34251
34185
|
};
|
|
34252
|
-
return /* @__PURE__ */ (0,
|
|
34186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
34253
34187
|
Column,
|
|
34254
34188
|
{
|
|
34255
34189
|
gap: true,
|
|
@@ -34260,7 +34194,7 @@ function NavMenuGroup({
|
|
|
34260
34194
|
allowMinimize && minimized && NavMenu_default.minimized
|
|
34261
34195
|
),
|
|
34262
34196
|
children: [
|
|
34263
|
-
/* @__PURE__ */ (0,
|
|
34197
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
34264
34198
|
Row,
|
|
34265
34199
|
{
|
|
34266
34200
|
className: NavMenu_default.item,
|
|
@@ -34268,8 +34202,8 @@ function NavMenuGroup({
|
|
|
34268
34202
|
justifyContent: "space-between",
|
|
34269
34203
|
onClick: handleClick,
|
|
34270
34204
|
children: [
|
|
34271
|
-
/* @__PURE__ */ (0,
|
|
34272
|
-
allowMinimize && /* @__PURE__ */ (0,
|
|
34205
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Text, { className: NavMenu_default.title, children: title }),
|
|
34206
|
+
allowMinimize && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon2, { rotate: minimized ? 0 : 90, color: "muted", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ChevronDown, {}) })
|
|
34273
34207
|
]
|
|
34274
34208
|
}
|
|
34275
34209
|
),
|
|
@@ -34280,7 +34214,7 @@ function NavMenuGroup({
|
|
|
34280
34214
|
}
|
|
34281
34215
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
34282
34216
|
const { itemBackgroundColor, onItemClick } = (0, import_react198.useContext)(NavMenuContext);
|
|
34283
|
-
return /* @__PURE__ */ (0,
|
|
34217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
34284
34218
|
Row,
|
|
34285
34219
|
{
|
|
34286
34220
|
...props,
|
|
@@ -34296,6 +34230,74 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
34296
34230
|
// src/components/PasswordField.tsx
|
|
34297
34231
|
var import_react199 = require("react");
|
|
34298
34232
|
var import_classnames40 = __toESM(require_classnames());
|
|
34233
|
+
|
|
34234
|
+
// src/components/svg/EyeSlash.tsx
|
|
34235
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
34236
|
+
var SvgEyeSlash = (props) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
34237
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
34238
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
34239
|
+
"path",
|
|
34240
|
+
{
|
|
34241
|
+
fill: "none",
|
|
34242
|
+
stroke: "currentColor",
|
|
34243
|
+
strokeLinecap: "round",
|
|
34244
|
+
strokeLinejoin: "round",
|
|
34245
|
+
strokeWidth: 16,
|
|
34246
|
+
d: "m48 40 160 176M154.91 157.6a40 40 0 0 1-53.82-59.2M135.53 88.71a40 40 0 0 1 32.3 35.53"
|
|
34247
|
+
}
|
|
34248
|
+
),
|
|
34249
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
34250
|
+
"path",
|
|
34251
|
+
{
|
|
34252
|
+
fill: "none",
|
|
34253
|
+
stroke: "currentColor",
|
|
34254
|
+
strokeLinecap: "round",
|
|
34255
|
+
strokeLinejoin: "round",
|
|
34256
|
+
strokeWidth: 16,
|
|
34257
|
+
d: "M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 0 0-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0 0 54-12.6"
|
|
34258
|
+
}
|
|
34259
|
+
)
|
|
34260
|
+
] });
|
|
34261
|
+
var EyeSlash_default = SvgEyeSlash;
|
|
34262
|
+
|
|
34263
|
+
// src/components/svg/Eye.tsx
|
|
34264
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
34265
|
+
var SvgEye = (props) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
34266
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
34267
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
34268
|
+
"path",
|
|
34269
|
+
{
|
|
34270
|
+
fill: "none",
|
|
34271
|
+
stroke: "currentColor",
|
|
34272
|
+
strokeLinecap: "round",
|
|
34273
|
+
strokeLinejoin: "round",
|
|
34274
|
+
strokeWidth: 16,
|
|
34275
|
+
d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
|
|
34276
|
+
}
|
|
34277
|
+
),
|
|
34278
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
34279
|
+
"circle",
|
|
34280
|
+
{
|
|
34281
|
+
cx: 128,
|
|
34282
|
+
cy: 128,
|
|
34283
|
+
r: 40,
|
|
34284
|
+
fill: "none",
|
|
34285
|
+
stroke: "currentColor",
|
|
34286
|
+
strokeLinecap: "round",
|
|
34287
|
+
strokeLinejoin: "round",
|
|
34288
|
+
strokeWidth: 16
|
|
34289
|
+
}
|
|
34290
|
+
)
|
|
34291
|
+
] });
|
|
34292
|
+
var Eye_default = SvgEye;
|
|
34293
|
+
|
|
34294
|
+
// src/components/svg/Github.tsx
|
|
34295
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
34296
|
+
|
|
34297
|
+
// src/components/svg/Logo.tsx
|
|
34298
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
34299
|
+
|
|
34300
|
+
// src/components/PasswordField.tsx
|
|
34299
34301
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
34300
34302
|
function PasswordField({ label, className, ...props }) {
|
|
34301
34303
|
const [show, setShow] = (0, import_react199.useState)(false);
|
|
@@ -34524,7 +34526,7 @@ function Select2({
|
|
|
34524
34526
|
className: (0, import_classnames46.default)(Select_default.button, buttonProps?.className),
|
|
34525
34527
|
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: Select_default.value, children: [
|
|
34526
34528
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
34527
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon2, { "aria-hidden": "true",
|
|
34529
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon2, { "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ChevronDown, {}) })
|
|
34528
34530
|
] })
|
|
34529
34531
|
}
|
|
34530
34532
|
),
|
|
@@ -34901,7 +34903,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
|
34901
34903
|
lucide-react/dist/esm/Icon.js:
|
|
34902
34904
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
34903
34905
|
lucide-react/dist/esm/icons/check.js:
|
|
34904
|
-
lucide-react/dist/esm/icons/chevron-
|
|
34906
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
34905
34907
|
lucide-react/dist/esm/icons/copy.js:
|
|
34906
34908
|
lucide-react/dist/esm/icons/info.js:
|
|
34907
34909
|
lucide-react/dist/esm/icons/minus.js:
|