@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.mjs
CHANGED
|
@@ -28101,9 +28101,9 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
28101
28101
|
var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
28102
28102
|
var Check = createLucideIcon("check", __iconNode);
|
|
28103
28103
|
|
|
28104
|
-
// node_modules/.pnpm/lucide-react@0.511.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-
|
|
28105
|
-
var __iconNode2 = [["path", { d: "
|
|
28106
|
-
var
|
|
28104
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
28105
|
+
var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
28106
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode2);
|
|
28107
28107
|
|
|
28108
28108
|
// node_modules/.pnpm/lucide-react@0.511.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/copy.js
|
|
28109
28109
|
var __iconNode3 = [
|
|
@@ -28185,72 +28185,6 @@ var __iconNode11 = [
|
|
|
28185
28185
|
];
|
|
28186
28186
|
var X = createLucideIcon("x", __iconNode11);
|
|
28187
28187
|
|
|
28188
|
-
// src/components/svg/EyeSlash.tsx
|
|
28189
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28190
|
-
var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
28191
|
-
/* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
28192
|
-
/* @__PURE__ */ jsx(
|
|
28193
|
-
"path",
|
|
28194
|
-
{
|
|
28195
|
-
fill: "none",
|
|
28196
|
-
stroke: "currentColor",
|
|
28197
|
-
strokeLinecap: "round",
|
|
28198
|
-
strokeLinejoin: "round",
|
|
28199
|
-
strokeWidth: 16,
|
|
28200
|
-
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"
|
|
28201
|
-
}
|
|
28202
|
-
),
|
|
28203
|
-
/* @__PURE__ */ jsx(
|
|
28204
|
-
"path",
|
|
28205
|
-
{
|
|
28206
|
-
fill: "none",
|
|
28207
|
-
stroke: "currentColor",
|
|
28208
|
-
strokeLinecap: "round",
|
|
28209
|
-
strokeLinejoin: "round",
|
|
28210
|
-
strokeWidth: 16,
|
|
28211
|
-
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"
|
|
28212
|
-
}
|
|
28213
|
-
)
|
|
28214
|
-
] });
|
|
28215
|
-
var EyeSlash_default = SvgEyeSlash;
|
|
28216
|
-
|
|
28217
|
-
// src/components/svg/Eye.tsx
|
|
28218
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
28219
|
-
var SvgEye = (props) => /* @__PURE__ */ jsxs2("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
28220
|
-
/* @__PURE__ */ jsx2("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
28221
|
-
/* @__PURE__ */ jsx2(
|
|
28222
|
-
"path",
|
|
28223
|
-
{
|
|
28224
|
-
fill: "none",
|
|
28225
|
-
stroke: "currentColor",
|
|
28226
|
-
strokeLinecap: "round",
|
|
28227
|
-
strokeLinejoin: "round",
|
|
28228
|
-
strokeWidth: 16,
|
|
28229
|
-
d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
|
|
28230
|
-
}
|
|
28231
|
-
),
|
|
28232
|
-
/* @__PURE__ */ jsx2(
|
|
28233
|
-
"circle",
|
|
28234
|
-
{
|
|
28235
|
-
cx: 128,
|
|
28236
|
-
cy: 128,
|
|
28237
|
-
r: 40,
|
|
28238
|
-
fill: "none",
|
|
28239
|
-
stroke: "currentColor",
|
|
28240
|
-
strokeLinecap: "round",
|
|
28241
|
-
strokeLinejoin: "round",
|
|
28242
|
-
strokeWidth: 16
|
|
28243
|
-
}
|
|
28244
|
-
)
|
|
28245
|
-
] });
|
|
28246
|
-
var Eye_default = SvgEye;
|
|
28247
|
-
|
|
28248
|
-
// src/components/svg/Github.tsx
|
|
28249
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
28250
|
-
|
|
28251
|
-
// src/components/svg/Logo.tsx
|
|
28252
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
28253
|
-
|
|
28254
28188
|
// src/components/Icon.tsx
|
|
28255
28189
|
var import_classnames = __toESM(require_classnames());
|
|
28256
28190
|
|
|
@@ -28436,7 +28370,7 @@ function Slot({
|
|
|
28436
28370
|
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" };
|
|
28437
28371
|
|
|
28438
28372
|
// src/components/Icon.tsx
|
|
28439
|
-
import { jsx
|
|
28373
|
+
import { jsx } from "react/jsx-runtime";
|
|
28440
28374
|
function Icon2({
|
|
28441
28375
|
color,
|
|
28442
28376
|
size = "sm",
|
|
@@ -28455,7 +28389,7 @@ function Icon2({
|
|
|
28455
28389
|
fillColor,
|
|
28456
28390
|
color
|
|
28457
28391
|
});
|
|
28458
|
-
return /* @__PURE__ */
|
|
28392
|
+
return /* @__PURE__ */ jsx(
|
|
28459
28393
|
Slot,
|
|
28460
28394
|
{
|
|
28461
28395
|
...props,
|
|
@@ -28475,7 +28409,7 @@ function Icon2({
|
|
|
28475
28409
|
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" };
|
|
28476
28410
|
|
|
28477
28411
|
// src/components/AlertBanner.tsx
|
|
28478
|
-
import { jsx as
|
|
28412
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
28479
28413
|
var AlertIcons = {
|
|
28480
28414
|
error: TriangleAlert,
|
|
28481
28415
|
info: Info
|
|
@@ -28492,7 +28426,7 @@ function AlertBanner({
|
|
|
28492
28426
|
className,
|
|
28493
28427
|
...props
|
|
28494
28428
|
}) {
|
|
28495
|
-
return /* @__PURE__ */
|
|
28429
|
+
return /* @__PURE__ */ jsxs(
|
|
28496
28430
|
"div",
|
|
28497
28431
|
{
|
|
28498
28432
|
...props,
|
|
@@ -28503,13 +28437,13 @@ function AlertBanner({
|
|
|
28503
28437
|
align && AlertBanner_default[align]
|
|
28504
28438
|
),
|
|
28505
28439
|
children: [
|
|
28506
|
-
(icon || variant) && /* @__PURE__ */
|
|
28507
|
-
/* @__PURE__ */
|
|
28508
|
-
title && /* @__PURE__ */
|
|
28509
|
-
description && /* @__PURE__ */
|
|
28440
|
+
(icon || variant) && /* @__PURE__ */ jsx2(Icon2, { size: "sm", children: variant ? createElement3(AlertIcons[variant]) : icon }),
|
|
28441
|
+
/* @__PURE__ */ jsxs("div", { className: AlertBanner_default.message, children: [
|
|
28442
|
+
title && /* @__PURE__ */ jsx2("div", { className: AlertBanner_default.title, children: title }),
|
|
28443
|
+
description && /* @__PURE__ */ jsx2("div", { className: AlertBanner_default.description, children: description })
|
|
28510
28444
|
] }),
|
|
28511
28445
|
children,
|
|
28512
|
-
allowClose && /* @__PURE__ */
|
|
28446
|
+
allowClose && /* @__PURE__ */ jsx2(Icon2, { className: AlertBanner_default.close, onClick: onClose, children: /* @__PURE__ */ jsx2(X, {}) })
|
|
28513
28447
|
]
|
|
28514
28448
|
}
|
|
28515
28449
|
);
|
|
@@ -28519,7 +28453,7 @@ function AlertBanner({
|
|
|
28519
28453
|
var Form_default = { "form": "Form_form__ZTBhZ", "text": "Form_text__ZjUwN", "icon": "Form_icon__YTRiZ" };
|
|
28520
28454
|
|
|
28521
28455
|
// src/components/forms/Form.tsx
|
|
28522
|
-
import { jsx as
|
|
28456
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
28523
28457
|
function Form({
|
|
28524
28458
|
autoComplete,
|
|
28525
28459
|
onSubmit,
|
|
@@ -28573,8 +28507,8 @@ function Form({
|
|
|
28573
28507
|
formValues.reset(void 0, { keepDirty: true, keepValues: true });
|
|
28574
28508
|
}
|
|
28575
28509
|
}, [error, formValues]);
|
|
28576
|
-
return /* @__PURE__ */
|
|
28577
|
-
error && /* @__PURE__ */
|
|
28510
|
+
return /* @__PURE__ */ jsxs2(FormProvider, { ...formValues, children: [
|
|
28511
|
+
error && /* @__PURE__ */ jsx3(
|
|
28578
28512
|
AlertBanner,
|
|
28579
28513
|
{
|
|
28580
28514
|
variant: "error",
|
|
@@ -28582,7 +28516,7 @@ function Form({
|
|
|
28582
28516
|
title: error instanceof Error ? error?.message : error
|
|
28583
28517
|
}
|
|
28584
28518
|
),
|
|
28585
|
-
/* @__PURE__ */
|
|
28519
|
+
/* @__PURE__ */ jsx3(
|
|
28586
28520
|
"form",
|
|
28587
28521
|
{
|
|
28588
28522
|
...props,
|
|
@@ -28601,7 +28535,7 @@ var import_classnames5 = __toESM(require_classnames());
|
|
|
28601
28535
|
|
|
28602
28536
|
// src/components/Box.tsx
|
|
28603
28537
|
var import_classnames4 = __toESM(require_classnames());
|
|
28604
|
-
import { jsx as
|
|
28538
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
28605
28539
|
function Box({
|
|
28606
28540
|
display,
|
|
28607
28541
|
color,
|
|
@@ -28718,7 +28652,7 @@ function Box({
|
|
|
28718
28652
|
order,
|
|
28719
28653
|
zIndex
|
|
28720
28654
|
});
|
|
28721
|
-
return /* @__PURE__ */
|
|
28655
|
+
return /* @__PURE__ */ jsx4(
|
|
28722
28656
|
Component,
|
|
28723
28657
|
{
|
|
28724
28658
|
...props,
|
|
@@ -28733,7 +28667,7 @@ function Box({
|
|
|
28733
28667
|
}
|
|
28734
28668
|
|
|
28735
28669
|
// src/components/Flexbox.tsx
|
|
28736
|
-
import { jsx as
|
|
28670
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
28737
28671
|
function Flexbox({
|
|
28738
28672
|
display = "flex",
|
|
28739
28673
|
direction,
|
|
@@ -28762,25 +28696,25 @@ function Flexbox({
|
|
|
28762
28696
|
gapX,
|
|
28763
28697
|
gapY
|
|
28764
28698
|
});
|
|
28765
|
-
return /* @__PURE__ */
|
|
28699
|
+
return /* @__PURE__ */ jsx5(Box, { ...props, className: (0, import_classnames5.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
28766
28700
|
}
|
|
28767
28701
|
|
|
28768
28702
|
// src/components/Row.tsx
|
|
28769
|
-
import { jsx as
|
|
28703
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
28770
28704
|
function Row({ reverse, children, ...props }) {
|
|
28771
|
-
return /* @__PURE__ */
|
|
28705
|
+
return /* @__PURE__ */ jsx6(Flexbox, { ...props, direction: reverse ? "row-reverse" : "row", children });
|
|
28772
28706
|
}
|
|
28773
28707
|
|
|
28774
28708
|
// src/components/forms/FormButtons.tsx
|
|
28775
|
-
import { jsx as
|
|
28709
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
28776
28710
|
function FormButtons({ fill, children, ...props }) {
|
|
28777
|
-
return /* @__PURE__ */
|
|
28711
|
+
return /* @__PURE__ */ jsx7(Row, { paddingTop: "3", gap: "3", justifyContent: "flex-end", ...props, children });
|
|
28778
28712
|
}
|
|
28779
28713
|
|
|
28780
28714
|
// src/components/forms/FormController.tsx
|
|
28781
|
-
import { jsx as
|
|
28715
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
28782
28716
|
function FormController({ children, ...props }) {
|
|
28783
|
-
return /* @__PURE__ */
|
|
28717
|
+
return /* @__PURE__ */ jsx8(Controller, { ...props, render: children });
|
|
28784
28718
|
}
|
|
28785
28719
|
|
|
28786
28720
|
// src/components/forms/FormField.tsx
|
|
@@ -28804,13 +28738,13 @@ var import_classnames6 = __toESM(require_classnames());
|
|
|
28804
28738
|
var Label_default = { "label": "Label_label__YWE3M" };
|
|
28805
28739
|
|
|
28806
28740
|
// src/components/Label.tsx
|
|
28807
|
-
import { jsx as
|
|
28741
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
28808
28742
|
function Label2({ className, ...props }) {
|
|
28809
|
-
return /* @__PURE__ */
|
|
28743
|
+
return /* @__PURE__ */ jsx9($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames6.default)(Label_default.label, className) });
|
|
28810
28744
|
}
|
|
28811
28745
|
|
|
28812
28746
|
// src/components/forms/FormField.tsx
|
|
28813
|
-
import { jsx as
|
|
28747
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
28814
28748
|
function FormField({
|
|
28815
28749
|
id,
|
|
28816
28750
|
name,
|
|
@@ -28825,9 +28759,9 @@ function FormField({
|
|
|
28825
28759
|
const context = useFormContext();
|
|
28826
28760
|
const { control } = context;
|
|
28827
28761
|
const { invalid, error } = context.getFieldState(name);
|
|
28828
|
-
return /* @__PURE__ */
|
|
28829
|
-
label && /* @__PURE__ */
|
|
28830
|
-
/* @__PURE__ */
|
|
28762
|
+
return /* @__PURE__ */ jsxs3("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
|
|
28763
|
+
label && /* @__PURE__ */ jsx10(Label2, { htmlFor: fieldId, children: label }),
|
|
28764
|
+
/* @__PURE__ */ jsx10(FormController, { name, control, rules, children: ({ field }) => {
|
|
28831
28765
|
return Children.map(
|
|
28832
28766
|
typeof children === "function" ? children({ context, field }) : children,
|
|
28833
28767
|
(child) => {
|
|
@@ -28838,14 +28772,14 @@ function FormField({
|
|
|
28838
28772
|
}
|
|
28839
28773
|
);
|
|
28840
28774
|
} }),
|
|
28841
|
-
description && /* @__PURE__ */
|
|
28842
|
-
invalid && /* @__PURE__ */
|
|
28775
|
+
description && /* @__PURE__ */ jsx10("div", { className: FormField_default.description, children: description }),
|
|
28776
|
+
invalid && /* @__PURE__ */ jsx10("div", { className: FormField_default.error, children: error?.message })
|
|
28843
28777
|
] });
|
|
28844
28778
|
}
|
|
28845
28779
|
|
|
28846
28780
|
// src/components/forms/FormFieldArray.tsx
|
|
28847
28781
|
var import_classnames8 = __toESM(require_classnames());
|
|
28848
|
-
import { jsx as
|
|
28782
|
+
import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
28849
28783
|
function FormFieldArray({
|
|
28850
28784
|
id,
|
|
28851
28785
|
name,
|
|
@@ -28866,10 +28800,10 @@ function FormFieldArray({
|
|
|
28866
28800
|
register(name, rules);
|
|
28867
28801
|
const errors = formState?.errors || {};
|
|
28868
28802
|
const errorMessage = errors[name]?.message;
|
|
28869
|
-
return /* @__PURE__ */
|
|
28870
|
-
label && /* @__PURE__ */
|
|
28871
|
-
description && /* @__PURE__ */
|
|
28872
|
-
errorMessage && /* @__PURE__ */
|
|
28803
|
+
return /* @__PURE__ */ jsxs4("div", { ...props, className: (0, import_classnames8.default)(FormField_default.input, className), children: [
|
|
28804
|
+
label && /* @__PURE__ */ jsx11(Label2, { htmlFor: fieldId, children: label }),
|
|
28805
|
+
description && /* @__PURE__ */ jsx11("div", { className: FormField_default.description, children: description }),
|
|
28806
|
+
errorMessage && /* @__PURE__ */ jsx11("div", { className: FormField_default.error, children: errorMessage }),
|
|
28873
28807
|
children({ ...context, ...fieldProps })
|
|
28874
28808
|
] });
|
|
28875
28809
|
}
|
|
@@ -28881,7 +28815,7 @@ var import_classnames9 = __toESM(require_classnames());
|
|
|
28881
28815
|
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" };
|
|
28882
28816
|
|
|
28883
28817
|
// src/components/Button.tsx
|
|
28884
|
-
import { jsx as
|
|
28818
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
28885
28819
|
function Button2({
|
|
28886
28820
|
variant,
|
|
28887
28821
|
size = "md",
|
|
@@ -28893,7 +28827,7 @@ function Button2({
|
|
|
28893
28827
|
}) {
|
|
28894
28828
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
28895
28829
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
28896
|
-
return /* @__PURE__ */
|
|
28830
|
+
return /* @__PURE__ */ jsx12(
|
|
28897
28831
|
Component,
|
|
28898
28832
|
{
|
|
28899
28833
|
...props,
|
|
@@ -28910,14 +28844,14 @@ function Button2({
|
|
|
28910
28844
|
}
|
|
28911
28845
|
|
|
28912
28846
|
// src/components/forms/FormResetButton.tsx
|
|
28913
|
-
import { jsx as
|
|
28847
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
28914
28848
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
28915
28849
|
const { reset } = useFormContext();
|
|
28916
28850
|
const handleReset = (e) => {
|
|
28917
28851
|
reset(values);
|
|
28918
28852
|
onPress?.(e);
|
|
28919
28853
|
};
|
|
28920
|
-
return /* @__PURE__ */
|
|
28854
|
+
return /* @__PURE__ */ jsx13(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
28921
28855
|
}
|
|
28922
28856
|
|
|
28923
28857
|
// src/components/Spinner.tsx
|
|
@@ -28927,10 +28861,10 @@ var import_classnames10 = __toESM(require_classnames());
|
|
|
28927
28861
|
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" };
|
|
28928
28862
|
|
|
28929
28863
|
// src/components/Spinner.tsx
|
|
28930
|
-
import { jsx as
|
|
28864
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
28931
28865
|
function Spinner(props) {
|
|
28932
28866
|
const { size = "md", quiet, className, isDisabled, ...domProps } = props;
|
|
28933
|
-
return /* @__PURE__ */
|
|
28867
|
+
return /* @__PURE__ */ jsx14(
|
|
28934
28868
|
"div",
|
|
28935
28869
|
{
|
|
28936
28870
|
...domProps,
|
|
@@ -28938,16 +28872,16 @@ function Spinner(props) {
|
|
|
28938
28872
|
[Spinner_default.quiet]: quiet,
|
|
28939
28873
|
[Spinner_default.disabled]: isDisabled
|
|
28940
28874
|
}),
|
|
28941
|
-
children: /* @__PURE__ */
|
|
28942
|
-
/* @__PURE__ */
|
|
28943
|
-
/* @__PURE__ */
|
|
28875
|
+
children: /* @__PURE__ */ jsxs5("svg", { viewBox: "25 25 50 50", children: [
|
|
28876
|
+
/* @__PURE__ */ jsx14("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
28877
|
+
/* @__PURE__ */ jsx14("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
28944
28878
|
] })
|
|
28945
28879
|
}
|
|
28946
28880
|
);
|
|
28947
28881
|
}
|
|
28948
28882
|
|
|
28949
28883
|
// src/components/LoadingButton.tsx
|
|
28950
|
-
import { jsx as
|
|
28884
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
28951
28885
|
function LoadingButton({
|
|
28952
28886
|
isLoading,
|
|
28953
28887
|
isDisabled,
|
|
@@ -28955,14 +28889,14 @@ function LoadingButton({
|
|
|
28955
28889
|
children,
|
|
28956
28890
|
...props
|
|
28957
28891
|
}) {
|
|
28958
|
-
return /* @__PURE__ */
|
|
28959
|
-
isLoading && /* @__PURE__ */
|
|
28892
|
+
return /* @__PURE__ */ jsxs6(Button2, { ...props, isDisabled, children: [
|
|
28893
|
+
isLoading && /* @__PURE__ */ jsx15(Icon2, { size: "sm", children: /* @__PURE__ */ jsx15(Spinner, { isDisabled }) }),
|
|
28960
28894
|
showText && children
|
|
28961
28895
|
] });
|
|
28962
28896
|
}
|
|
28963
28897
|
|
|
28964
28898
|
// src/components/forms/FormSubmitButton.tsx
|
|
28965
|
-
import { jsx as
|
|
28899
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
28966
28900
|
function FormSubmitButton({
|
|
28967
28901
|
variant = "primary",
|
|
28968
28902
|
isDisabled,
|
|
@@ -28973,7 +28907,7 @@ function FormSubmitButton({
|
|
|
28973
28907
|
const {
|
|
28974
28908
|
formState: { isDirty, isValid, isSubmitting }
|
|
28975
28909
|
} = useFormContext();
|
|
28976
|
-
return /* @__PURE__ */
|
|
28910
|
+
return /* @__PURE__ */ jsx16(
|
|
28977
28911
|
LoadingButton,
|
|
28978
28912
|
{
|
|
28979
28913
|
...props,
|
|
@@ -28993,7 +28927,7 @@ var import_classnames11 = __toESM(require_classnames());
|
|
|
28993
28927
|
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" };
|
|
28994
28928
|
|
|
28995
28929
|
// src/components/toast/Toast.tsx
|
|
28996
|
-
import { jsx as
|
|
28930
|
+
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
28997
28931
|
var TOAST_CLOSE_ACTION = "close";
|
|
28998
28932
|
function Toast({
|
|
28999
28933
|
id,
|
|
@@ -29008,11 +28942,11 @@ function Toast({
|
|
|
29008
28942
|
...props
|
|
29009
28943
|
}) {
|
|
29010
28944
|
const hasActions = actions?.length > 0;
|
|
29011
|
-
return /* @__PURE__ */
|
|
29012
|
-
title && /* @__PURE__ */
|
|
29013
|
-
message && /* @__PURE__ */
|
|
28945
|
+
return /* @__PURE__ */ jsxs7("div", { ...props, className: (0, import_classnames11.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
28946
|
+
title && /* @__PURE__ */ jsx17("div", { className: Toast_default.title, children: title }),
|
|
28947
|
+
message && /* @__PURE__ */ jsx17("div", { className: Toast_default.description, children: message }),
|
|
29014
28948
|
hasActions && actions.map((action) => {
|
|
29015
|
-
return /* @__PURE__ */
|
|
28949
|
+
return /* @__PURE__ */ jsx17(
|
|
29016
28950
|
Button2,
|
|
29017
28951
|
{
|
|
29018
28952
|
variant: "outline",
|
|
@@ -29023,7 +28957,7 @@ function Toast({
|
|
|
29023
28957
|
action
|
|
29024
28958
|
);
|
|
29025
28959
|
}),
|
|
29026
|
-
!hasActions && allowClose && /* @__PURE__ */
|
|
28960
|
+
!hasActions && allowClose && /* @__PURE__ */ jsx17(
|
|
29027
28961
|
Icon2,
|
|
29028
28962
|
{
|
|
29029
28963
|
"aria-hidden": true,
|
|
@@ -29031,7 +28965,7 @@ function Toast({
|
|
|
29031
28965
|
size: "sm",
|
|
29032
28966
|
className: Toast_default.close,
|
|
29033
28967
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
29034
|
-
children: /* @__PURE__ */
|
|
28968
|
+
children: /* @__PURE__ */ jsx17(X, {})
|
|
29035
28969
|
}
|
|
29036
28970
|
)
|
|
29037
28971
|
] });
|
|
@@ -32663,12 +32597,12 @@ import { useContext as useContext4 } from "react";
|
|
|
32663
32597
|
|
|
32664
32598
|
// src/components/toast/ToastProvider.tsx
|
|
32665
32599
|
import { createContext as createContext2 } from "react";
|
|
32666
|
-
import { jsx as
|
|
32600
|
+
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
32667
32601
|
var ToastContext = createContext2({});
|
|
32668
32602
|
function ToastProvider({ children, ...props }) {
|
|
32669
|
-
return /* @__PURE__ */
|
|
32603
|
+
return /* @__PURE__ */ jsxs8(ToastContext.Provider, { value: props, children: [
|
|
32670
32604
|
children,
|
|
32671
|
-
/* @__PURE__ */
|
|
32605
|
+
/* @__PURE__ */ jsx18(Toaster, { ...props })
|
|
32672
32606
|
] });
|
|
32673
32607
|
}
|
|
32674
32608
|
|
|
@@ -32706,7 +32640,7 @@ function useToast() {
|
|
|
32706
32640
|
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" };
|
|
32707
32641
|
|
|
32708
32642
|
// src/components/toast/Toaster.tsx
|
|
32709
|
-
import { jsx as
|
|
32643
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
32710
32644
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
32711
32645
|
const { toasts } = useToast();
|
|
32712
32646
|
const [hovered, setHovered] = useState5(false);
|
|
@@ -32738,7 +32672,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
32738
32672
|
};
|
|
32739
32673
|
}
|
|
32740
32674
|
}, [duration, toasts, hovered]);
|
|
32741
|
-
return /* @__PURE__ */
|
|
32675
|
+
return /* @__PURE__ */ jsx19(
|
|
32742
32676
|
"div",
|
|
32743
32677
|
{
|
|
32744
32678
|
className: (0, import_classnames12.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
@@ -32748,7 +32682,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
32748
32682
|
const { id, ...props } = item;
|
|
32749
32683
|
return (
|
|
32750
32684
|
// @ts-ignore
|
|
32751
|
-
/* @__PURE__ */
|
|
32685
|
+
/* @__PURE__ */ jsx19(animated.div, { style, children: /* @__PURE__ */ jsx19(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
32752
32686
|
);
|
|
32753
32687
|
})
|
|
32754
32688
|
}
|
|
@@ -32869,7 +32803,7 @@ var import_classnames13 = __toESM(require_classnames());
|
|
|
32869
32803
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
32870
32804
|
|
|
32871
32805
|
// src/components/Text.tsx
|
|
32872
|
-
import { jsx as
|
|
32806
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
32873
32807
|
function Text({
|
|
32874
32808
|
color,
|
|
32875
32809
|
size,
|
|
@@ -32899,7 +32833,7 @@ function Text({
|
|
|
32899
32833
|
textTransform: transform,
|
|
32900
32834
|
color
|
|
32901
32835
|
});
|
|
32902
|
-
return /* @__PURE__ */
|
|
32836
|
+
return /* @__PURE__ */ jsx20(
|
|
32903
32837
|
Component,
|
|
32904
32838
|
{
|
|
32905
32839
|
...props,
|
|
@@ -32922,9 +32856,9 @@ function Text({
|
|
|
32922
32856
|
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" };
|
|
32923
32857
|
|
|
32924
32858
|
// src/components/Accordion.tsx
|
|
32925
|
-
import { jsx as
|
|
32859
|
+
import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
32926
32860
|
function Accordion({ className, children, ...props }) {
|
|
32927
|
-
return /* @__PURE__ */
|
|
32861
|
+
return /* @__PURE__ */ jsx21($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames14.default)(Accordion_default.accordion, className), children });
|
|
32928
32862
|
}
|
|
32929
32863
|
function AccordionItem({
|
|
32930
32864
|
defaultExpanded,
|
|
@@ -32937,18 +32871,18 @@ function AccordionItem({
|
|
|
32937
32871
|
const handleExpandedChange = (isExpanded) => {
|
|
32938
32872
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
32939
32873
|
};
|
|
32940
|
-
return /* @__PURE__ */
|
|
32874
|
+
return /* @__PURE__ */ jsxs9(
|
|
32941
32875
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
32942
32876
|
{
|
|
32943
32877
|
...props,
|
|
32944
32878
|
className: (0, import_classnames14.default)(Accordion_default.item, className),
|
|
32945
32879
|
onExpandedChange: handleExpandedChange,
|
|
32946
32880
|
children: [
|
|
32947
|
-
/* @__PURE__ */
|
|
32948
|
-
/* @__PURE__ */
|
|
32949
|
-
/* @__PURE__ */
|
|
32881
|
+
/* @__PURE__ */ jsxs9(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
32882
|
+
/* @__PURE__ */ jsx21(Text, { children: trigger }),
|
|
32883
|
+
/* @__PURE__ */ jsx21(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ jsx21(ChevronDown, {}) })
|
|
32950
32884
|
] }),
|
|
32951
|
-
/* @__PURE__ */
|
|
32885
|
+
/* @__PURE__ */ jsx21($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames14.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
32952
32886
|
]
|
|
32953
32887
|
}
|
|
32954
32888
|
);
|
|
@@ -32967,7 +32901,7 @@ var import_classnames15 = __toESM(require_classnames());
|
|
|
32967
32901
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
32968
32902
|
|
|
32969
32903
|
// src/components/Heading.tsx
|
|
32970
|
-
import { jsx as
|
|
32904
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
32971
32905
|
function Heading2({
|
|
32972
32906
|
size = "3",
|
|
32973
32907
|
weight,
|
|
@@ -32984,7 +32918,7 @@ function Heading2({
|
|
|
32984
32918
|
fontWeight: weight,
|
|
32985
32919
|
letterSpacing: spacing
|
|
32986
32920
|
});
|
|
32987
|
-
return /* @__PURE__ */
|
|
32921
|
+
return /* @__PURE__ */ jsx22(
|
|
32988
32922
|
Box,
|
|
32989
32923
|
{
|
|
32990
32924
|
...props,
|
|
@@ -32996,26 +32930,26 @@ function Heading2({
|
|
|
32996
32930
|
}
|
|
32997
32931
|
|
|
32998
32932
|
// src/components/Column.tsx
|
|
32999
|
-
import { jsx as
|
|
32933
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
33000
32934
|
function Column({ reverse, children, ...props }) {
|
|
33001
|
-
return /* @__PURE__ */
|
|
32935
|
+
return /* @__PURE__ */ jsx23(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
33002
32936
|
}
|
|
33003
32937
|
|
|
33004
32938
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
33005
32939
|
var Dialog_default = { "dialog": "Dialog_dialog__NjJlM", "title": "Dialog_title__YjdmY", "sheet": "Dialog_sheet__ZjQ1M" };
|
|
33006
32940
|
|
|
33007
32941
|
// src/components/Dialog.tsx
|
|
33008
|
-
import { jsx as
|
|
32942
|
+
import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
33009
32943
|
function Dialog2({ title, variant, children, className, ...props }) {
|
|
33010
|
-
return /* @__PURE__ */
|
|
32944
|
+
return /* @__PURE__ */ jsx24(
|
|
33011
32945
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
33012
32946
|
{
|
|
33013
32947
|
"aria-label": "Dialog",
|
|
33014
32948
|
...props,
|
|
33015
32949
|
className: (0, import_classnames16.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
33016
32950
|
children: (dialogProps) => {
|
|
33017
|
-
return /* @__PURE__ */
|
|
33018
|
-
title && /* @__PURE__ */
|
|
32951
|
+
return /* @__PURE__ */ jsxs10(Column, { height: "100%", gap: true, children: [
|
|
32952
|
+
title && /* @__PURE__ */ jsx24(Heading2, { size: "2", children: title }),
|
|
33019
32953
|
typeof children === "function" ? children(dialogProps) : children
|
|
33020
32954
|
] });
|
|
33021
32955
|
}
|
|
@@ -33027,7 +32961,7 @@ function Dialog2({ title, variant, children, className, ...props }) {
|
|
|
33027
32961
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
33028
32962
|
|
|
33029
32963
|
// src/components/AlertDialog.tsx
|
|
33030
|
-
import { jsx as
|
|
32964
|
+
import { jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
33031
32965
|
function AlertDialog({
|
|
33032
32966
|
title,
|
|
33033
32967
|
description,
|
|
@@ -33049,12 +32983,12 @@ function AlertDialog({
|
|
|
33049
32983
|
onCancel?.();
|
|
33050
32984
|
close();
|
|
33051
32985
|
};
|
|
33052
|
-
return /* @__PURE__ */
|
|
33053
|
-
return /* @__PURE__ */
|
|
32986
|
+
return /* @__PURE__ */ jsx25(Dialog2, { ...props, title, className: (0, import_classnames17.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
32987
|
+
return /* @__PURE__ */ jsxs11(Column, { gap: "4", children: [
|
|
33054
32988
|
typeof children === "function" ? children({ close }) : children,
|
|
33055
|
-
/* @__PURE__ */
|
|
33056
|
-
/* @__PURE__ */
|
|
33057
|
-
/* @__PURE__ */
|
|
32989
|
+
/* @__PURE__ */ jsxs11(Row, { gap: "3", justifyContent: "end", children: [
|
|
32990
|
+
/* @__PURE__ */ jsx25(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
32991
|
+
/* @__PURE__ */ jsx25(
|
|
33058
32992
|
Button2,
|
|
33059
32993
|
{
|
|
33060
32994
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -33072,10 +33006,10 @@ function AlertDialog({
|
|
|
33072
33006
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
33073
33007
|
|
|
33074
33008
|
// src/components/Blockquote.tsx
|
|
33075
|
-
import { jsx as
|
|
33009
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
33076
33010
|
function Blockquote({ asChild, children }) {
|
|
33077
33011
|
const Component = asChild ? Slot : "blockquote";
|
|
33078
|
-
return /* @__PURE__ */
|
|
33012
|
+
return /* @__PURE__ */ jsx26(Component, { className: Blockquote_default.blockquote, children });
|
|
33079
33013
|
}
|
|
33080
33014
|
|
|
33081
33015
|
// src/components/Breadcrumbs.tsx
|
|
@@ -33085,14 +33019,14 @@ var import_classnames18 = __toESM(require_classnames());
|
|
|
33085
33019
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
33086
33020
|
|
|
33087
33021
|
// src/components/Breadcrumbs.tsx
|
|
33088
|
-
import { jsx as
|
|
33022
|
+
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
33089
33023
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
33090
|
-
return /* @__PURE__ */
|
|
33024
|
+
return /* @__PURE__ */ jsx27($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames18.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
33091
33025
|
}
|
|
33092
33026
|
function Breadcrumb2({ children, className, ...props }) {
|
|
33093
|
-
return /* @__PURE__ */
|
|
33027
|
+
return /* @__PURE__ */ jsxs12($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames18.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
33094
33028
|
children,
|
|
33095
|
-
/* @__PURE__ */
|
|
33029
|
+
/* @__PURE__ */ jsx27(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ jsx27(ChevronDown, {}) })
|
|
33096
33030
|
] });
|
|
33097
33031
|
}
|
|
33098
33032
|
|
|
@@ -33110,7 +33044,7 @@ function toCalendarDate(date) {
|
|
|
33110
33044
|
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" };
|
|
33111
33045
|
|
|
33112
33046
|
// src/components/Calendar.tsx
|
|
33113
|
-
import { jsx as
|
|
33047
|
+
import { jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
33114
33048
|
function Calendar2({
|
|
33115
33049
|
className,
|
|
33116
33050
|
value,
|
|
@@ -33124,7 +33058,7 @@ function Calendar2({
|
|
|
33124
33058
|
console.log({ raw: date });
|
|
33125
33059
|
onChange?.(date.toDate($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
33126
33060
|
};
|
|
33127
|
-
return /* @__PURE__ */
|
|
33061
|
+
return /* @__PURE__ */ jsxs13(
|
|
33128
33062
|
$dfd62f934fc76fed$export$e1aef45b828286de,
|
|
33129
33063
|
{
|
|
33130
33064
|
...props,
|
|
@@ -33135,14 +33069,14 @@ function Calendar2({
|
|
|
33135
33069
|
className: (0, import_classnames19.default)(Calendar_default.calendar, className),
|
|
33136
33070
|
onChange: handleChange,
|
|
33137
33071
|
children: [
|
|
33138
|
-
/* @__PURE__ */
|
|
33139
|
-
/* @__PURE__ */
|
|
33140
|
-
/* @__PURE__ */
|
|
33141
|
-
/* @__PURE__ */
|
|
33072
|
+
/* @__PURE__ */ jsxs13("header", { className: Calendar_default.header, children: [
|
|
33073
|
+
/* @__PURE__ */ jsx28(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx28(Icon2, { rotate: 180, children: /* @__PURE__ */ jsx28(ChevronDown, {}) }) }),
|
|
33074
|
+
/* @__PURE__ */ jsx28($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
33075
|
+
/* @__PURE__ */ jsx28(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx28(Icon2, { children: /* @__PURE__ */ jsx28(ChevronDown, {}) }) })
|
|
33142
33076
|
] }),
|
|
33143
|
-
/* @__PURE__ */
|
|
33144
|
-
/* @__PURE__ */
|
|
33145
|
-
/* @__PURE__ */
|
|
33077
|
+
/* @__PURE__ */ jsxs13($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
33078
|
+
/* @__PURE__ */ jsx28($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ jsx28($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
33079
|
+
/* @__PURE__ */ jsx28($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ jsx28($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
33146
33080
|
] })
|
|
33147
33081
|
]
|
|
33148
33082
|
}
|
|
@@ -33156,18 +33090,18 @@ var import_classnames20 = __toESM(require_classnames());
|
|
|
33156
33090
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
33157
33091
|
|
|
33158
33092
|
// src/components/Checkbox.tsx
|
|
33159
|
-
import { Fragment as Fragment2, jsx as
|
|
33093
|
+
import { Fragment as Fragment2, jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
33160
33094
|
function Checkbox2({ label, className, children, ...props }) {
|
|
33161
33095
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
33162
|
-
return /* @__PURE__ */
|
|
33096
|
+
return /* @__PURE__ */ jsx29(
|
|
33163
33097
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
33164
33098
|
{
|
|
33165
33099
|
...props,
|
|
33166
33100
|
isSelected,
|
|
33167
33101
|
className: (0, import_classnames20.default)(Checkbox_default.checkbox, className),
|
|
33168
33102
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
33169
|
-
return /* @__PURE__ */
|
|
33170
|
-
/* @__PURE__ */
|
|
33103
|
+
return /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
|
33104
|
+
/* @__PURE__ */ jsx29("div", { className: Checkbox_default.box, children: /* @__PURE__ */ jsx29(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ jsx29(Minus, {}) : isSelected2 ? /* @__PURE__ */ jsx29(Check, {}) : null }) }),
|
|
33171
33105
|
children
|
|
33172
33106
|
] });
|
|
33173
33107
|
}
|
|
@@ -33227,7 +33161,7 @@ function getHighlightColor(color) {
|
|
|
33227
33161
|
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" };
|
|
33228
33162
|
|
|
33229
33163
|
// src/components/List.tsx
|
|
33230
|
-
import { Fragment as Fragment4, jsx as
|
|
33164
|
+
import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
33231
33165
|
function List({
|
|
33232
33166
|
id,
|
|
33233
33167
|
items = [],
|
|
@@ -33255,9 +33189,9 @@ function List({
|
|
|
33255
33189
|
}
|
|
33256
33190
|
};
|
|
33257
33191
|
const fieldId = useFieldId(id);
|
|
33258
|
-
return /* @__PURE__ */
|
|
33259
|
-
label && /* @__PURE__ */
|
|
33260
|
-
/* @__PURE__ */
|
|
33192
|
+
return /* @__PURE__ */ jsxs15(Fragment4, { children: [
|
|
33193
|
+
label && /* @__PURE__ */ jsx30(Label2, { htmlFor: fieldId, children: label }),
|
|
33194
|
+
/* @__PURE__ */ jsx30(
|
|
33261
33195
|
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
33262
33196
|
{
|
|
33263
33197
|
id: fieldId,
|
|
@@ -33277,9 +33211,9 @@ function List({
|
|
|
33277
33211
|
children: children || items?.map((item) => {
|
|
33278
33212
|
const id2 = item[idProperty] || item.toString();
|
|
33279
33213
|
const label2 = item[labelProperty] || item.toString();
|
|
33280
|
-
return /* @__PURE__ */
|
|
33281
|
-
item[separatorProperty] && /* @__PURE__ */
|
|
33282
|
-
/* @__PURE__ */
|
|
33214
|
+
return /* @__PURE__ */ jsxs15(Fragment3, { children: [
|
|
33215
|
+
item[separatorProperty] && /* @__PURE__ */ jsx30($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
33216
|
+
/* @__PURE__ */ jsx30(ListItem, { id: id2, className: List_default.item, children: label2 })
|
|
33283
33217
|
] }, id2);
|
|
33284
33218
|
})
|
|
33285
33219
|
}
|
|
@@ -33293,7 +33227,7 @@ function ListItem({
|
|
|
33293
33227
|
showCheckmark = true,
|
|
33294
33228
|
...props
|
|
33295
33229
|
}) {
|
|
33296
|
-
return /* @__PURE__ */
|
|
33230
|
+
return /* @__PURE__ */ jsxs15(
|
|
33297
33231
|
$eed445e0843c11d0$export$a11e76429ed99b4,
|
|
33298
33232
|
{
|
|
33299
33233
|
...props,
|
|
@@ -33302,24 +33236,24 @@ function ListItem({
|
|
|
33302
33236
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
33303
33237
|
children: [
|
|
33304
33238
|
children,
|
|
33305
|
-
showCheckmark && /* @__PURE__ */
|
|
33239
|
+
showCheckmark && /* @__PURE__ */ jsx30(Icon2, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ jsx30(Check, {}) })
|
|
33306
33240
|
]
|
|
33307
33241
|
}
|
|
33308
33242
|
);
|
|
33309
33243
|
}
|
|
33310
33244
|
function ListSeparator({ className, ...props }) {
|
|
33311
|
-
return /* @__PURE__ */
|
|
33245
|
+
return /* @__PURE__ */ jsx30($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames21.default)(List_default.separator, className) });
|
|
33312
33246
|
}
|
|
33313
33247
|
function ListSection({ title, className, children, ...props }) {
|
|
33314
|
-
return /* @__PURE__ */
|
|
33315
|
-
title && /* @__PURE__ */
|
|
33248
|
+
return /* @__PURE__ */ jsxs15($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames21.default)(List_default.section, className), children: [
|
|
33249
|
+
title && /* @__PURE__ */ jsx30($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
33316
33250
|
children
|
|
33317
33251
|
] });
|
|
33318
33252
|
}
|
|
33319
33253
|
|
|
33320
33254
|
// src/components/Grid.tsx
|
|
33321
33255
|
var import_classnames22 = __toESM(require_classnames());
|
|
33322
|
-
import { jsx as
|
|
33256
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
33323
33257
|
function Grid({
|
|
33324
33258
|
display = "grid",
|
|
33325
33259
|
justifyContent,
|
|
@@ -33352,14 +33286,14 @@ function Grid({
|
|
|
33352
33286
|
gridTemplateAreas: areas,
|
|
33353
33287
|
gridAutoFlow: autoFlow
|
|
33354
33288
|
});
|
|
33355
|
-
return /* @__PURE__ */
|
|
33289
|
+
return /* @__PURE__ */ jsx31(Box, { ...props, className: (0, import_classnames22.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
33356
33290
|
}
|
|
33357
33291
|
|
|
33358
33292
|
// css-modules:E:\dev\umami-react-zen\src\components\ComboBox.module.css
|
|
33359
33293
|
var ComboBox_default = { "combobox": "ComboBox_combobox__ZDYxZ", "input": "ComboBox_input__YjNkN", "button": "ComboBox_button__NTlhM", "list": "ComboBox_list__NTdiY" };
|
|
33360
33294
|
|
|
33361
33295
|
// src/components/ComboBox.tsx
|
|
33362
|
-
import { jsx as
|
|
33296
|
+
import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
33363
33297
|
function ComboBox2({
|
|
33364
33298
|
items,
|
|
33365
33299
|
className,
|
|
@@ -33369,18 +33303,18 @@ function ComboBox2({
|
|
|
33369
33303
|
children,
|
|
33370
33304
|
...props
|
|
33371
33305
|
}) {
|
|
33372
|
-
return /* @__PURE__ */
|
|
33306
|
+
return /* @__PURE__ */ jsxs16(
|
|
33373
33307
|
$d01f2c01039c0eec$export$72b9695b8216309a,
|
|
33374
33308
|
{
|
|
33375
33309
|
"aria-label": "ComboBox",
|
|
33376
33310
|
...props,
|
|
33377
33311
|
className: (0, import_classnames23.default)(ComboBox_default.combobox, className),
|
|
33378
33312
|
children: [
|
|
33379
|
-
/* @__PURE__ */
|
|
33380
|
-
/* @__PURE__ */
|
|
33381
|
-
/* @__PURE__ */
|
|
33313
|
+
/* @__PURE__ */ jsxs16(Grid, { alignItems: "center", columns: "1fr auto", width: "100%", children: [
|
|
33314
|
+
/* @__PURE__ */ jsx32($3985021b0ad6602f$export$f5b8910cec6cf069, { className: ComboBox_default.input }),
|
|
33315
|
+
/* @__PURE__ */ jsx32($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: ComboBox_default.button, children: /* @__PURE__ */ jsx32(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ jsx32(ChevronDown, {}) }) })
|
|
33382
33316
|
] }),
|
|
33383
|
-
/* @__PURE__ */
|
|
33317
|
+
/* @__PURE__ */ jsx32($07b14b47974efb58$export$5b6b19405a83ff9d, { ...popoverProps, children: /* @__PURE__ */ jsx32("div", { className: ComboBox_default.list, children: /* @__PURE__ */ jsx32(List, { items, renderEmptyState, ...listProps, children: children || items?.map((item) => /* @__PURE__ */ jsx32(ListItem, { textValue: item, children: item }, item)) }) }) })
|
|
33384
33318
|
]
|
|
33385
33319
|
}
|
|
33386
33320
|
);
|
|
@@ -33390,10 +33324,10 @@ function ComboBox2({
|
|
|
33390
33324
|
var Code_default = { "code": "Code_code__ZTc0M" };
|
|
33391
33325
|
|
|
33392
33326
|
// src/components/Code.tsx
|
|
33393
|
-
import { jsx as
|
|
33327
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
33394
33328
|
function Code({ asChild, children }) {
|
|
33395
33329
|
const Component = asChild ? Slot : "code";
|
|
33396
|
-
return /* @__PURE__ */
|
|
33330
|
+
return /* @__PURE__ */ jsx33(Component, { className: Code_default.code, children });
|
|
33397
33331
|
}
|
|
33398
33332
|
|
|
33399
33333
|
// src/components/ConfirmationDialog.tsx
|
|
@@ -33412,7 +33346,7 @@ import { useState as useState9, useRef as useRef7 } from "react";
|
|
|
33412
33346
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
33413
33347
|
|
|
33414
33348
|
// src/components/CopyButton.tsx
|
|
33415
|
-
import { jsx as
|
|
33349
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
33416
33350
|
var TIMEOUT = 2e3;
|
|
33417
33351
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
33418
33352
|
const [copied, setCopied] = useState9(false);
|
|
@@ -33425,14 +33359,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
33425
33359
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
33426
33360
|
}
|
|
33427
33361
|
};
|
|
33428
|
-
return /* @__PURE__ */
|
|
33362
|
+
return /* @__PURE__ */ jsx34(Icon2, { ...props, className: (0, import_classnames24.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx34(Check, {}) : /* @__PURE__ */ jsx34(Copy, {}) });
|
|
33429
33363
|
}
|
|
33430
33364
|
|
|
33431
33365
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
33432
33366
|
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" };
|
|
33433
33367
|
|
|
33434
33368
|
// src/components/TextField.tsx
|
|
33435
|
-
import { Fragment as Fragment5, jsx as
|
|
33369
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
33436
33370
|
function TextField2({
|
|
33437
33371
|
value,
|
|
33438
33372
|
defaultValue,
|
|
@@ -33457,9 +33391,9 @@ function TextField2({
|
|
|
33457
33391
|
useEffect9(() => {
|
|
33458
33392
|
setInputValue(value);
|
|
33459
33393
|
}, [value]);
|
|
33460
|
-
return /* @__PURE__ */
|
|
33461
|
-
label && /* @__PURE__ */
|
|
33462
|
-
/* @__PURE__ */
|
|
33394
|
+
return /* @__PURE__ */ jsxs17(Fragment5, { children: [
|
|
33395
|
+
label && /* @__PURE__ */ jsx35(Label2, { children: label }),
|
|
33396
|
+
/* @__PURE__ */ jsxs17(
|
|
33463
33397
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
33464
33398
|
{
|
|
33465
33399
|
"aria-label": "Text",
|
|
@@ -33477,8 +33411,8 @@ function TextField2({
|
|
|
33477
33411
|
isDisabled,
|
|
33478
33412
|
onChange: handleChange,
|
|
33479
33413
|
children: [
|
|
33480
|
-
/* @__PURE__ */
|
|
33481
|
-
allowCopy && /* @__PURE__ */
|
|
33414
|
+
/* @__PURE__ */ jsx35(Component, { placeholder }),
|
|
33415
|
+
allowCopy && /* @__PURE__ */ jsx35(CopyButton, { value: inputValue, className: TextField_default.icon })
|
|
33482
33416
|
]
|
|
33483
33417
|
}
|
|
33484
33418
|
)
|
|
@@ -33489,7 +33423,7 @@ function TextField2({
|
|
|
33489
33423
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__YjQzN", "value": "ConfirmationDialog_value__Njg3N" };
|
|
33490
33424
|
|
|
33491
33425
|
// src/components/ConfirmationDialog.tsx
|
|
33492
|
-
import { Fragment as Fragment6, jsx as
|
|
33426
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
33493
33427
|
function ConfirmationDialog({
|
|
33494
33428
|
value,
|
|
33495
33429
|
confirmMessage,
|
|
@@ -33501,21 +33435,21 @@ function ConfirmationDialog({
|
|
|
33501
33435
|
const handleChange = (e) => {
|
|
33502
33436
|
setCanSave(e.target.value === value);
|
|
33503
33437
|
};
|
|
33504
|
-
return /* @__PURE__ */
|
|
33438
|
+
return /* @__PURE__ */ jsx36(
|
|
33505
33439
|
AlertDialog,
|
|
33506
33440
|
{
|
|
33507
33441
|
...props,
|
|
33508
33442
|
className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
|
|
33509
33443
|
isConfirmDisabled: !canSave,
|
|
33510
33444
|
children: ({ close }) => {
|
|
33511
|
-
return /* @__PURE__ */
|
|
33445
|
+
return /* @__PURE__ */ jsxs18(Fragment6, { children: [
|
|
33512
33446
|
typeof children === "function" ? children({ close }) : children,
|
|
33513
|
-
/* @__PURE__ */
|
|
33447
|
+
/* @__PURE__ */ jsxs18(Text, { children: [
|
|
33514
33448
|
confirmMessage || "Type the following value to confirm",
|
|
33515
33449
|
":"
|
|
33516
33450
|
] }),
|
|
33517
|
-
/* @__PURE__ */
|
|
33518
|
-
/* @__PURE__ */
|
|
33451
|
+
/* @__PURE__ */ jsx36("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
33452
|
+
/* @__PURE__ */ jsx36(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
33519
33453
|
] });
|
|
33520
33454
|
}
|
|
33521
33455
|
}
|
|
@@ -33529,7 +33463,7 @@ var import_classnames27 = __toESM(require_classnames());
|
|
|
33529
33463
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
33530
33464
|
|
|
33531
33465
|
// src/components/Container.tsx
|
|
33532
|
-
import { jsx as
|
|
33466
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
33533
33467
|
function Container({
|
|
33534
33468
|
isCentered = true,
|
|
33535
33469
|
isFluid,
|
|
@@ -33537,7 +33471,7 @@ function Container({
|
|
|
33537
33471
|
children,
|
|
33538
33472
|
...props
|
|
33539
33473
|
}) {
|
|
33540
|
-
return /* @__PURE__ */
|
|
33474
|
+
return /* @__PURE__ */ jsx37(
|
|
33541
33475
|
Box,
|
|
33542
33476
|
{
|
|
33543
33477
|
...props,
|
|
@@ -33554,13 +33488,13 @@ function Container({
|
|
|
33554
33488
|
|
|
33555
33489
|
// src/components/DataCard.tsx
|
|
33556
33490
|
import { Fragment as Fragment7 } from "react";
|
|
33557
|
-
import { jsx as
|
|
33491
|
+
import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
33558
33492
|
function DataCard({ data = [], labelWidth = "auto", ...props }) {
|
|
33559
33493
|
const rows = mapIdProperty(data);
|
|
33560
|
-
return /* @__PURE__ */
|
|
33561
|
-
return /* @__PURE__ */
|
|
33562
|
-
/* @__PURE__ */
|
|
33563
|
-
/* @__PURE__ */
|
|
33494
|
+
return /* @__PURE__ */ jsx38(Grid, { width: "100%", columns: `${labelWidth} 1fr`, border: true, borderRadius: "3", padding: "6", ...props, children: rows.map((row, index) => {
|
|
33495
|
+
return /* @__PURE__ */ jsxs19(Fragment7, { children: [
|
|
33496
|
+
/* @__PURE__ */ jsx38(Row, { paddingY: "3", border: "bottom", borderColor: "4", paddingRight: "6", children: /* @__PURE__ */ jsx38(Text, { size: "3", weight: "bold", children: row?.label }) }),
|
|
33497
|
+
/* @__PURE__ */ jsx38(Row, { paddingY: "3", border: "bottom", borderColor: "4", children: /* @__PURE__ */ jsx38(Text, { size: "3", children: row?.value }) })
|
|
33564
33498
|
] }, index);
|
|
33565
33499
|
}) });
|
|
33566
33500
|
}
|
|
@@ -33576,13 +33510,13 @@ var import_classnames28 = __toESM(require_classnames());
|
|
|
33576
33510
|
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" };
|
|
33577
33511
|
|
|
33578
33512
|
// src/components/Table.tsx
|
|
33579
|
-
import { jsx as
|
|
33513
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
33580
33514
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
33581
33515
|
function Table2({ children, className, ...props }) {
|
|
33582
|
-
return /* @__PURE__ */
|
|
33516
|
+
return /* @__PURE__ */ jsx39($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames28.default)(Table_default.table, className), children });
|
|
33583
33517
|
}
|
|
33584
33518
|
function TableHeader({ children, className, style, ...props }) {
|
|
33585
|
-
return /* @__PURE__ */
|
|
33519
|
+
return /* @__PURE__ */ jsx39(
|
|
33586
33520
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
33587
33521
|
{
|
|
33588
33522
|
...props,
|
|
@@ -33593,10 +33527,10 @@ function TableHeader({ children, className, style, ...props }) {
|
|
|
33593
33527
|
);
|
|
33594
33528
|
}
|
|
33595
33529
|
function TableBody({ children, className, ...props }) {
|
|
33596
|
-
return /* @__PURE__ */
|
|
33530
|
+
return /* @__PURE__ */ jsx39($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames28.default)(Table_default.body, className), children });
|
|
33597
33531
|
}
|
|
33598
33532
|
function TableRow({ children, className, style, ...props }) {
|
|
33599
|
-
return /* @__PURE__ */
|
|
33533
|
+
return /* @__PURE__ */ jsx39(
|
|
33600
33534
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
33601
33535
|
{
|
|
33602
33536
|
...props,
|
|
@@ -33607,7 +33541,7 @@ function TableRow({ children, className, style, ...props }) {
|
|
|
33607
33541
|
);
|
|
33608
33542
|
}
|
|
33609
33543
|
function TableColumn({ children, className, align, ...props }) {
|
|
33610
|
-
return /* @__PURE__ */
|
|
33544
|
+
return /* @__PURE__ */ jsx39(
|
|
33611
33545
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
33612
33546
|
{
|
|
33613
33547
|
...props,
|
|
@@ -33618,14 +33552,14 @@ function TableColumn({ children, className, align, ...props }) {
|
|
|
33618
33552
|
);
|
|
33619
33553
|
}
|
|
33620
33554
|
function TableCell({ children, className, align, ...props }) {
|
|
33621
|
-
return /* @__PURE__ */
|
|
33555
|
+
return /* @__PURE__ */ jsx39($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames28.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
33622
33556
|
}
|
|
33623
33557
|
|
|
33624
33558
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
33625
33559
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
33626
33560
|
|
|
33627
33561
|
// src/components/DataTable.tsx
|
|
33628
|
-
import { jsx as
|
|
33562
|
+
import { jsx as jsx40, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
33629
33563
|
import { createElement as createElement8 } from "react";
|
|
33630
33564
|
function DataTable({
|
|
33631
33565
|
data = [],
|
|
@@ -33645,23 +33579,23 @@ function DataTable({
|
|
|
33645
33579
|
})?.filter((n) => n);
|
|
33646
33580
|
const gridTemplateColumns2 = widths.join(" ");
|
|
33647
33581
|
if (displayMode === "cards") {
|
|
33648
|
-
return /* @__PURE__ */
|
|
33582
|
+
return /* @__PURE__ */ jsx40(Grid, { id: "grid", width: "100%", gap: "6", children: rows.map((row, index) => {
|
|
33649
33583
|
const items = columns?.filter(({ hidden }) => !hidden).map(({ id, label, children: children2 }) => {
|
|
33650
33584
|
const value = typeof children2 === "function" ? children2(row, index) : children2 ?? row[id];
|
|
33651
33585
|
return { id, label, value };
|
|
33652
33586
|
});
|
|
33653
|
-
return /* @__PURE__ */
|
|
33587
|
+
return /* @__PURE__ */ jsx40(DataCard, { data: items }, `${row.id}-${index}`);
|
|
33654
33588
|
}) });
|
|
33655
33589
|
}
|
|
33656
|
-
return /* @__PURE__ */
|
|
33657
|
-
/* @__PURE__ */
|
|
33590
|
+
return /* @__PURE__ */ jsxs20(Table2, { ...props, className: (0, import_classnames29.default)(DataTable_default.datatable, className), children: [
|
|
33591
|
+
/* @__PURE__ */ jsx40(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
33658
33592
|
if (hidden) {
|
|
33659
33593
|
return null;
|
|
33660
33594
|
}
|
|
33661
33595
|
return /* @__PURE__ */ createElement8(TableColumn, { ...columnProps, key: id, id }, label);
|
|
33662
33596
|
}) }),
|
|
33663
|
-
/* @__PURE__ */
|
|
33664
|
-
return /* @__PURE__ */
|
|
33597
|
+
/* @__PURE__ */ jsx40(TableBody, { children: rows.map((row, index) => {
|
|
33598
|
+
return /* @__PURE__ */ jsx40(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
33665
33599
|
if (hidden) {
|
|
33666
33600
|
return null;
|
|
33667
33601
|
}
|
|
@@ -33690,12 +33624,12 @@ var import_classnames30 = __toESM(require_classnames());
|
|
|
33690
33624
|
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" };
|
|
33691
33625
|
|
|
33692
33626
|
// src/components/Dots.tsx
|
|
33693
|
-
import { jsx as
|
|
33627
|
+
import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
33694
33628
|
function Dots({ size = "md", className, ...props }) {
|
|
33695
|
-
return /* @__PURE__ */
|
|
33696
|
-
/* @__PURE__ */
|
|
33697
|
-
/* @__PURE__ */
|
|
33698
|
-
/* @__PURE__ */
|
|
33629
|
+
return /* @__PURE__ */ jsxs21("div", { ...props, className: (0, import_classnames30.default)(Dots_default.dots, className, Dots_default[`size-${size}`]), children: [
|
|
33630
|
+
/* @__PURE__ */ jsx41("div", { className: Dots_default.dot }),
|
|
33631
|
+
/* @__PURE__ */ jsx41("div", { className: Dots_default.dot }),
|
|
33632
|
+
/* @__PURE__ */ jsx41("div", { className: Dots_default.dot })
|
|
33699
33633
|
] });
|
|
33700
33634
|
}
|
|
33701
33635
|
|
|
@@ -33710,14 +33644,14 @@ var import_classnames31 = __toESM(require_classnames());
|
|
|
33710
33644
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
33711
33645
|
|
|
33712
33646
|
// src/components/Tooltip.tsx
|
|
33713
|
-
import { jsx as
|
|
33647
|
+
import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
33714
33648
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
33715
|
-
return /* @__PURE__ */
|
|
33649
|
+
return /* @__PURE__ */ jsx42($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames31.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ jsx42(TooltipBubble, { showArrow, children }) });
|
|
33716
33650
|
}
|
|
33717
33651
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
33718
|
-
return /* @__PURE__ */
|
|
33719
|
-
showArrow && /* @__PURE__ */
|
|
33720
|
-
/* @__PURE__ */
|
|
33652
|
+
return /* @__PURE__ */ jsxs22("div", { ...props, children: [
|
|
33653
|
+
showArrow && /* @__PURE__ */ jsx42($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx42("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx42("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
33654
|
+
/* @__PURE__ */ jsx42("div", { className: Tooltip_default.bubble, children })
|
|
33721
33655
|
] });
|
|
33722
33656
|
}
|
|
33723
33657
|
|
|
@@ -33725,7 +33659,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
33725
33659
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
33726
33660
|
|
|
33727
33661
|
// src/components/FloatingTooltip.tsx
|
|
33728
|
-
import { jsx as
|
|
33662
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
33729
33663
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
33730
33664
|
const [position, setPosition] = useState12({ x: -1e3, y: -1e3 });
|
|
33731
33665
|
useEffect10(() => {
|
|
@@ -33737,7 +33671,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
33737
33671
|
document.removeEventListener("mousemove", handler);
|
|
33738
33672
|
};
|
|
33739
33673
|
}, []);
|
|
33740
|
-
return /* @__PURE__ */
|
|
33674
|
+
return /* @__PURE__ */ jsx43(
|
|
33741
33675
|
TooltipBubble,
|
|
33742
33676
|
{
|
|
33743
33677
|
...props,
|
|
@@ -33755,7 +33689,7 @@ import { useRef as useRef8, useState as useState13, useEffect as useEffect11 } f
|
|
|
33755
33689
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
33756
33690
|
|
|
33757
33691
|
// src/components/HoverTrigger.tsx
|
|
33758
|
-
import { Fragment as Fragment8, jsx as
|
|
33692
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
33759
33693
|
var CLOSE_DELAY = 500;
|
|
33760
33694
|
function HoverTrigger({
|
|
33761
33695
|
isOpen,
|
|
@@ -33806,9 +33740,9 @@ function HoverTrigger({
|
|
|
33806
33740
|
}
|
|
33807
33741
|
}, closeDelay);
|
|
33808
33742
|
};
|
|
33809
|
-
return /* @__PURE__ */
|
|
33810
|
-
/* @__PURE__ */
|
|
33811
|
-
/* @__PURE__ */
|
|
33743
|
+
return /* @__PURE__ */ jsxs23(Fragment8, { children: [
|
|
33744
|
+
/* @__PURE__ */ jsx44("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
33745
|
+
/* @__PURE__ */ jsx44(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx44(
|
|
33812
33746
|
"div",
|
|
33813
33747
|
{
|
|
33814
33748
|
className: HoverTrigger_default.wrapper,
|
|
@@ -33821,7 +33755,7 @@ function HoverTrigger({
|
|
|
33821
33755
|
}
|
|
33822
33756
|
|
|
33823
33757
|
// src/components/IconLabel.tsx
|
|
33824
|
-
import { jsx as
|
|
33758
|
+
import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
33825
33759
|
function IconLabel({
|
|
33826
33760
|
icon,
|
|
33827
33761
|
label,
|
|
@@ -33831,9 +33765,9 @@ function IconLabel({
|
|
|
33831
33765
|
children,
|
|
33832
33766
|
...props
|
|
33833
33767
|
}) {
|
|
33834
|
-
return /* @__PURE__ */
|
|
33835
|
-
/* @__PURE__ */
|
|
33836
|
-
showLabel && label && /* @__PURE__ */
|
|
33768
|
+
return /* @__PURE__ */ jsxs24(Row, { alignItems: "center", gap: true, width: "100%", ...props, children: [
|
|
33769
|
+
/* @__PURE__ */ jsx45(Icon2, { ...iconProps, children: icon }),
|
|
33770
|
+
showLabel && label && /* @__PURE__ */ jsx45(Text, { ...labelProps, children: label }),
|
|
33837
33771
|
showLabel && children
|
|
33838
33772
|
] });
|
|
33839
33773
|
}
|
|
@@ -33845,7 +33779,7 @@ var import_classnames33 = __toESM(require_classnames());
|
|
|
33845
33779
|
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" };
|
|
33846
33780
|
|
|
33847
33781
|
// src/components/Image.tsx
|
|
33848
|
-
import { jsx as
|
|
33782
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
33849
33783
|
function Image({
|
|
33850
33784
|
src,
|
|
33851
33785
|
alt,
|
|
@@ -33858,7 +33792,7 @@ function Image({
|
|
|
33858
33792
|
...props
|
|
33859
33793
|
}) {
|
|
33860
33794
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
33861
|
-
return /* @__PURE__ */
|
|
33795
|
+
return /* @__PURE__ */ jsx46(
|
|
33862
33796
|
"img",
|
|
33863
33797
|
{
|
|
33864
33798
|
...props,
|
|
@@ -33885,7 +33819,7 @@ import { useState as useState14, useCallback as useCallback3 } from "react";
|
|
|
33885
33819
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
33886
33820
|
|
|
33887
33821
|
// src/components/InlineEditField.tsx
|
|
33888
|
-
import { jsx as
|
|
33822
|
+
import { jsx as jsx47, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
33889
33823
|
function InlineEditField({
|
|
33890
33824
|
name = "",
|
|
33891
33825
|
value: defaultValue = "",
|
|
@@ -33921,7 +33855,7 @@ function InlineEditField({
|
|
|
33921
33855
|
handleCancel();
|
|
33922
33856
|
}
|
|
33923
33857
|
};
|
|
33924
|
-
return /* @__PURE__ */
|
|
33858
|
+
return /* @__PURE__ */ jsxs25(
|
|
33925
33859
|
"div",
|
|
33926
33860
|
{
|
|
33927
33861
|
"aria-label": "Edit",
|
|
@@ -33930,8 +33864,8 @@ function InlineEditField({
|
|
|
33930
33864
|
onClick: handleEdit,
|
|
33931
33865
|
children: [
|
|
33932
33866
|
!edit && children,
|
|
33933
|
-
!edit && /* @__PURE__ */
|
|
33934
|
-
edit && /* @__PURE__ */
|
|
33867
|
+
!edit && /* @__PURE__ */ jsx47(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx47(SquarePen, {}) }),
|
|
33868
|
+
edit && /* @__PURE__ */ jsx47(
|
|
33935
33869
|
TextField2,
|
|
33936
33870
|
{
|
|
33937
33871
|
name,
|
|
@@ -33954,7 +33888,7 @@ var import_classnames35 = __toESM(require_classnames());
|
|
|
33954
33888
|
var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
|
|
33955
33889
|
|
|
33956
33890
|
// src/components/Loading.tsx
|
|
33957
|
-
import { jsx as
|
|
33891
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
33958
33892
|
function Loading({
|
|
33959
33893
|
size,
|
|
33960
33894
|
placement = "inline",
|
|
@@ -33962,9 +33896,9 @@ function Loading({
|
|
|
33962
33896
|
className,
|
|
33963
33897
|
...props
|
|
33964
33898
|
}) {
|
|
33965
|
-
return /* @__PURE__ */
|
|
33966
|
-
icon === "dots" && /* @__PURE__ */
|
|
33967
|
-
icon === "spinner" && /* @__PURE__ */
|
|
33899
|
+
return /* @__PURE__ */ jsxs26(Box, { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
|
|
33900
|
+
icon === "dots" && /* @__PURE__ */ jsx48(Dots, { size }),
|
|
33901
|
+
icon === "spinner" && /* @__PURE__ */ jsx48(Spinner, { size })
|
|
33968
33902
|
] });
|
|
33969
33903
|
}
|
|
33970
33904
|
|
|
@@ -33975,9 +33909,9 @@ var import_classnames36 = __toESM(require_classnames());
|
|
|
33975
33909
|
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" };
|
|
33976
33910
|
|
|
33977
33911
|
// src/components/Menu.tsx
|
|
33978
|
-
import { Fragment as Fragment9, jsx as
|
|
33912
|
+
import { Fragment as Fragment9, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
33979
33913
|
function Menu2({ className, children, ...props }) {
|
|
33980
|
-
return /* @__PURE__ */
|
|
33914
|
+
return /* @__PURE__ */ jsx49($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames36.default)(Menu_default.menu, className), children });
|
|
33981
33915
|
}
|
|
33982
33916
|
function MenuItem2({
|
|
33983
33917
|
icon,
|
|
@@ -33988,14 +33922,14 @@ function MenuItem2({
|
|
|
33988
33922
|
className,
|
|
33989
33923
|
...props
|
|
33990
33924
|
}) {
|
|
33991
|
-
return /* @__PURE__ */
|
|
33992
|
-
/* @__PURE__ */
|
|
33993
|
-
showChecked && /* @__PURE__ */
|
|
33994
|
-
showSubMenuIcon && /* @__PURE__ */
|
|
33925
|
+
return /* @__PURE__ */ jsxs27($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
|
|
33926
|
+
/* @__PURE__ */ jsx49(IconLabel, { icon, label, children }),
|
|
33927
|
+
showChecked && /* @__PURE__ */ jsx49(Icon2, { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx49(Check, {}) }),
|
|
33928
|
+
showSubMenuIcon && /* @__PURE__ */ jsx49(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ jsx49(ChevronDown, {}) })
|
|
33995
33929
|
] });
|
|
33996
33930
|
}
|
|
33997
33931
|
function MenuSeparator({ className, ...props }) {
|
|
33998
|
-
return /* @__PURE__ */
|
|
33932
|
+
return /* @__PURE__ */ jsx49($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames36.default)(Menu_default.separator, className) });
|
|
33999
33933
|
}
|
|
34000
33934
|
function MenuSection({
|
|
34001
33935
|
title,
|
|
@@ -34009,9 +33943,9 @@ function MenuSection({
|
|
|
34009
33943
|
maxHeight,
|
|
34010
33944
|
overflow: maxHeight ? "auto" : void 0
|
|
34011
33945
|
};
|
|
34012
|
-
return /* @__PURE__ */
|
|
34013
|
-
title && /* @__PURE__ */
|
|
34014
|
-
/* @__PURE__ */
|
|
33946
|
+
return /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
33947
|
+
title && /* @__PURE__ */ jsx49($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
33948
|
+
/* @__PURE__ */ jsx49(
|
|
34015
33949
|
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
34016
33950
|
{
|
|
34017
33951
|
...props,
|
|
@@ -34023,7 +33957,7 @@ function MenuSection({
|
|
|
34023
33957
|
] });
|
|
34024
33958
|
}
|
|
34025
33959
|
function SubMenuTrigger({ children, ...props }) {
|
|
34026
|
-
return /* @__PURE__ */
|
|
33960
|
+
return /* @__PURE__ */ jsx49($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
|
|
34027
33961
|
}
|
|
34028
33962
|
|
|
34029
33963
|
// src/components/Modal.tsx
|
|
@@ -34033,7 +33967,7 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
34033
33967
|
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" };
|
|
34034
33968
|
|
|
34035
33969
|
// src/components/Modal.tsx
|
|
34036
|
-
import { jsx as
|
|
33970
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
34037
33971
|
function Modal2({
|
|
34038
33972
|
placement = "center",
|
|
34039
33973
|
offset,
|
|
@@ -34045,7 +33979,7 @@ function Modal2({
|
|
|
34045
33979
|
if (offset) {
|
|
34046
33980
|
style[`--modal-offset`] = offset;
|
|
34047
33981
|
}
|
|
34048
|
-
return /* @__PURE__ */
|
|
33982
|
+
return /* @__PURE__ */ jsx50($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ jsx50($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames37.default)(Modal_default.modal, placement && Modal_default[placement], className), children }) });
|
|
34049
33983
|
}
|
|
34050
33984
|
|
|
34051
33985
|
// src/components/Navbar.tsx
|
|
@@ -34060,7 +33994,7 @@ import {
|
|
|
34060
33994
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
34061
33995
|
|
|
34062
33996
|
// src/components/Navbar.tsx
|
|
34063
|
-
import { jsx as
|
|
33997
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
34064
33998
|
var NavbarContext = createContext3(void 0);
|
|
34065
33999
|
var useNavigationContext = () => {
|
|
34066
34000
|
const context = useContext5(NavbarContext);
|
|
@@ -34071,20 +34005,20 @@ var useNavigationContext = () => {
|
|
|
34071
34005
|
};
|
|
34072
34006
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
34073
34007
|
const [activeMenu, setActiveMenu] = useState15("");
|
|
34074
|
-
return /* @__PURE__ */
|
|
34008
|
+
return /* @__PURE__ */ jsx51(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ jsx51("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.nav, className), children }) });
|
|
34075
34009
|
}
|
|
34076
34010
|
function NavbarItem({ label, children, className, ...props }) {
|
|
34077
34011
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
34078
34012
|
if (label) {
|
|
34079
|
-
return /* @__PURE__ */
|
|
34080
|
-
/* @__PURE__ */
|
|
34081
|
-
/* @__PURE__ */
|
|
34082
|
-
/* @__PURE__ */
|
|
34013
|
+
return /* @__PURE__ */ jsxs28(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
34014
|
+
/* @__PURE__ */ jsxs28("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children: [
|
|
34015
|
+
/* @__PURE__ */ jsx51(Text, { children: label }),
|
|
34016
|
+
/* @__PURE__ */ jsx51(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ jsx51(ChevronDown, {}) })
|
|
34083
34017
|
] }),
|
|
34084
34018
|
children
|
|
34085
34019
|
] });
|
|
34086
34020
|
}
|
|
34087
|
-
return /* @__PURE__ */
|
|
34021
|
+
return /* @__PURE__ */ jsx51("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children });
|
|
34088
34022
|
}
|
|
34089
34023
|
|
|
34090
34024
|
// src/components/NavMenu.tsx
|
|
@@ -34095,7 +34029,7 @@ import { createContext as createContext4, useContext as useContext6, useState as
|
|
|
34095
34029
|
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" };
|
|
34096
34030
|
|
|
34097
34031
|
// src/components/NavMenu.tsx
|
|
34098
|
-
import { jsx as
|
|
34032
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
34099
34033
|
var NavMenuContext = createContext4(null);
|
|
34100
34034
|
function NavMenu({
|
|
34101
34035
|
itemBackgroundColor = "2",
|
|
@@ -34105,7 +34039,7 @@ function NavMenu({
|
|
|
34105
34039
|
children,
|
|
34106
34040
|
...props
|
|
34107
34041
|
}) {
|
|
34108
|
-
return /* @__PURE__ */
|
|
34042
|
+
return /* @__PURE__ */ jsx52(NavMenuContext.Provider, { value: { itemBackgroundColor, onItemClick }, children: /* @__PURE__ */ jsx52(
|
|
34109
34043
|
Column,
|
|
34110
34044
|
{
|
|
34111
34045
|
...props,
|
|
@@ -34128,7 +34062,7 @@ function NavMenuGroup({
|
|
|
34128
34062
|
setMinimized((state) => !state);
|
|
34129
34063
|
}
|
|
34130
34064
|
};
|
|
34131
|
-
return /* @__PURE__ */
|
|
34065
|
+
return /* @__PURE__ */ jsxs29(
|
|
34132
34066
|
Column,
|
|
34133
34067
|
{
|
|
34134
34068
|
gap: true,
|
|
@@ -34139,7 +34073,7 @@ function NavMenuGroup({
|
|
|
34139
34073
|
allowMinimize && minimized && NavMenu_default.minimized
|
|
34140
34074
|
),
|
|
34141
34075
|
children: [
|
|
34142
|
-
/* @__PURE__ */
|
|
34076
|
+
/* @__PURE__ */ jsxs29(
|
|
34143
34077
|
Row,
|
|
34144
34078
|
{
|
|
34145
34079
|
className: NavMenu_default.item,
|
|
@@ -34147,8 +34081,8 @@ function NavMenuGroup({
|
|
|
34147
34081
|
justifyContent: "space-between",
|
|
34148
34082
|
onClick: handleClick,
|
|
34149
34083
|
children: [
|
|
34150
|
-
/* @__PURE__ */
|
|
34151
|
-
allowMinimize && /* @__PURE__ */
|
|
34084
|
+
/* @__PURE__ */ jsx52(Text, { className: NavMenu_default.title, children: title }),
|
|
34085
|
+
allowMinimize && /* @__PURE__ */ jsx52(Icon2, { rotate: minimized ? 0 : 90, color: "muted", children: /* @__PURE__ */ jsx52(ChevronDown, {}) })
|
|
34152
34086
|
]
|
|
34153
34087
|
}
|
|
34154
34088
|
),
|
|
@@ -34159,7 +34093,7 @@ function NavMenuGroup({
|
|
|
34159
34093
|
}
|
|
34160
34094
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
34161
34095
|
const { itemBackgroundColor, onItemClick } = useContext6(NavMenuContext);
|
|
34162
|
-
return /* @__PURE__ */
|
|
34096
|
+
return /* @__PURE__ */ jsx52(
|
|
34163
34097
|
Row,
|
|
34164
34098
|
{
|
|
34165
34099
|
...props,
|
|
@@ -34175,6 +34109,74 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
34175
34109
|
// src/components/PasswordField.tsx
|
|
34176
34110
|
import { useState as useState17 } from "react";
|
|
34177
34111
|
var import_classnames40 = __toESM(require_classnames());
|
|
34112
|
+
|
|
34113
|
+
// src/components/svg/EyeSlash.tsx
|
|
34114
|
+
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
34115
|
+
var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs30("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
34116
|
+
/* @__PURE__ */ jsx53("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
34117
|
+
/* @__PURE__ */ jsx53(
|
|
34118
|
+
"path",
|
|
34119
|
+
{
|
|
34120
|
+
fill: "none",
|
|
34121
|
+
stroke: "currentColor",
|
|
34122
|
+
strokeLinecap: "round",
|
|
34123
|
+
strokeLinejoin: "round",
|
|
34124
|
+
strokeWidth: 16,
|
|
34125
|
+
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"
|
|
34126
|
+
}
|
|
34127
|
+
),
|
|
34128
|
+
/* @__PURE__ */ jsx53(
|
|
34129
|
+
"path",
|
|
34130
|
+
{
|
|
34131
|
+
fill: "none",
|
|
34132
|
+
stroke: "currentColor",
|
|
34133
|
+
strokeLinecap: "round",
|
|
34134
|
+
strokeLinejoin: "round",
|
|
34135
|
+
strokeWidth: 16,
|
|
34136
|
+
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"
|
|
34137
|
+
}
|
|
34138
|
+
)
|
|
34139
|
+
] });
|
|
34140
|
+
var EyeSlash_default = SvgEyeSlash;
|
|
34141
|
+
|
|
34142
|
+
// src/components/svg/Eye.tsx
|
|
34143
|
+
import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
34144
|
+
var SvgEye = (props) => /* @__PURE__ */ jsxs31("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
34145
|
+
/* @__PURE__ */ jsx54("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
34146
|
+
/* @__PURE__ */ jsx54(
|
|
34147
|
+
"path",
|
|
34148
|
+
{
|
|
34149
|
+
fill: "none",
|
|
34150
|
+
stroke: "currentColor",
|
|
34151
|
+
strokeLinecap: "round",
|
|
34152
|
+
strokeLinejoin: "round",
|
|
34153
|
+
strokeWidth: 16,
|
|
34154
|
+
d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
|
|
34155
|
+
}
|
|
34156
|
+
),
|
|
34157
|
+
/* @__PURE__ */ jsx54(
|
|
34158
|
+
"circle",
|
|
34159
|
+
{
|
|
34160
|
+
cx: 128,
|
|
34161
|
+
cy: 128,
|
|
34162
|
+
r: 40,
|
|
34163
|
+
fill: "none",
|
|
34164
|
+
stroke: "currentColor",
|
|
34165
|
+
strokeLinecap: "round",
|
|
34166
|
+
strokeLinejoin: "round",
|
|
34167
|
+
strokeWidth: 16
|
|
34168
|
+
}
|
|
34169
|
+
)
|
|
34170
|
+
] });
|
|
34171
|
+
var Eye_default = SvgEye;
|
|
34172
|
+
|
|
34173
|
+
// src/components/svg/Github.tsx
|
|
34174
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
34175
|
+
|
|
34176
|
+
// src/components/svg/Logo.tsx
|
|
34177
|
+
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
34178
|
+
|
|
34179
|
+
// src/components/PasswordField.tsx
|
|
34178
34180
|
import { Fragment as Fragment10, jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
34179
34181
|
function PasswordField({ label, className, ...props }) {
|
|
34180
34182
|
const [show, setShow] = useState17(false);
|
|
@@ -34403,7 +34405,7 @@ function Select2({
|
|
|
34403
34405
|
className: (0, import_classnames46.default)(Select_default.button, buttonProps?.className),
|
|
34404
34406
|
children: /* @__PURE__ */ jsxs38("div", { className: Select_default.value, children: [
|
|
34405
34407
|
/* @__PURE__ */ jsx63($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
34406
|
-
/* @__PURE__ */ jsx63(Icon2, { "aria-hidden": "true",
|
|
34408
|
+
/* @__PURE__ */ jsx63(Icon2, { "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ jsx63(ChevronDown, {}) })
|
|
34407
34409
|
] })
|
|
34408
34410
|
}
|
|
34409
34411
|
),
|
|
@@ -34895,7 +34897,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
|
34895
34897
|
lucide-react/dist/esm/Icon.js:
|
|
34896
34898
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
34897
34899
|
lucide-react/dist/esm/icons/check.js:
|
|
34898
|
-
lucide-react/dist/esm/icons/chevron-
|
|
34900
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
34899
34901
|
lucide-react/dist/esm/icons/copy.js:
|
|
34900
34902
|
lucide-react/dist/esm/icons/info.js:
|
|
34901
34903
|
lucide-react/dist/esm/icons/minus.js:
|