@umami/react-zen 0.64.0 → 0.66.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.css +202 -148
- package/dist/index.d.ts +124 -104
- package/dist/index.js +330 -245
- package/dist/index.mjs +279 -194
- package/package.json +4 -4
- package/styles.css +202 -148
package/dist/index.mjs
CHANGED
|
@@ -161,7 +161,7 @@ var require_classnames = __commonJS({
|
|
|
161
161
|
(function() {
|
|
162
162
|
"use strict";
|
|
163
163
|
var hasOwn = {}.hasOwnProperty;
|
|
164
|
-
function
|
|
164
|
+
function classNames54() {
|
|
165
165
|
var classes = "";
|
|
166
166
|
for (var i = 0; i < arguments.length; i++) {
|
|
167
167
|
var arg = arguments[i];
|
|
@@ -179,7 +179,7 @@ var require_classnames = __commonJS({
|
|
|
179
179
|
return "";
|
|
180
180
|
}
|
|
181
181
|
if (Array.isArray(arg)) {
|
|
182
|
-
return
|
|
182
|
+
return classNames54.apply(null, arg);
|
|
183
183
|
}
|
|
184
184
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
185
185
|
return arg.toString();
|
|
@@ -202,14 +202,14 @@ var require_classnames = __commonJS({
|
|
|
202
202
|
return value + newClass;
|
|
203
203
|
}
|
|
204
204
|
if (typeof module !== "undefined" && module.exports) {
|
|
205
|
-
|
|
206
|
-
module.exports =
|
|
205
|
+
classNames54.default = classNames54;
|
|
206
|
+
module.exports = classNames54;
|
|
207
207
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
208
208
|
define("classnames", [], function() {
|
|
209
|
-
return
|
|
209
|
+
return classNames54;
|
|
210
210
|
});
|
|
211
211
|
} else {
|
|
212
|
-
window.classNames =
|
|
212
|
+
window.classNames = classNames54;
|
|
213
213
|
}
|
|
214
214
|
})();
|
|
215
215
|
}
|
|
@@ -27002,6 +27002,8 @@ function Box({
|
|
|
27002
27002
|
display,
|
|
27003
27003
|
color,
|
|
27004
27004
|
backgroundColor,
|
|
27005
|
+
fontSize,
|
|
27006
|
+
fontWeight,
|
|
27005
27007
|
borderSize,
|
|
27006
27008
|
borderRadius,
|
|
27007
27009
|
shadow,
|
|
@@ -27053,6 +27055,8 @@ function Box({
|
|
|
27053
27055
|
display,
|
|
27054
27056
|
color,
|
|
27055
27057
|
backgroundColor,
|
|
27058
|
+
fontSize,
|
|
27059
|
+
fontWeight,
|
|
27056
27060
|
borderSize,
|
|
27057
27061
|
borderRadius,
|
|
27058
27062
|
shadow,
|
|
@@ -27269,7 +27273,7 @@ import { forwardRef as forwardRef2 } from "react";
|
|
|
27269
27273
|
var import_classnames7 = __toESM(require_classnames());
|
|
27270
27274
|
|
|
27271
27275
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
27272
|
-
var Button_default = { "button": "
|
|
27276
|
+
var Button_default = { "button": "Button_button__NDYwM", "primary": "Button_primary__OWE0M", "outline": "Button_outline__NTQyN", "quiet": "Button_quiet__NDFjM", "danger": "Button_danger__NDUzM", "sm": "Button_sm__NTVjM", "md": "Button_md__NDE4O", "lg": "Button_lg__NTU4O", "xl": "Button_xl__NjFkM" };
|
|
27273
27277
|
|
|
27274
27278
|
// src/components/Button.tsx
|
|
27275
27279
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
@@ -27277,8 +27281,8 @@ var Button2 = forwardRef2(
|
|
|
27277
27281
|
({
|
|
27278
27282
|
variant = "secondary",
|
|
27279
27283
|
size = "md",
|
|
27280
|
-
preventFocusOnPress = true,
|
|
27281
27284
|
asChild,
|
|
27285
|
+
preventFocusOnPress = true,
|
|
27282
27286
|
className,
|
|
27283
27287
|
children,
|
|
27284
27288
|
...props
|
|
@@ -27318,18 +27322,19 @@ function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
|
27318
27322
|
var import_classnames8 = __toESM(require_classnames());
|
|
27319
27323
|
|
|
27320
27324
|
// css-modules:E:\dev\umami-react-zen\src\components\Spinner.module.css
|
|
27321
|
-
var Spinner_default = { "spinner": "
|
|
27325
|
+
var Spinner_default = { "spinner": "Spinner_spinner__MmRhN", "spinner-rotate": "Spinner_spinner-rotate__MDI2M", "track": "Spinner_track__ODIyN", "fill": "Spinner_fill__OGY5Y", "spinner-dash": "Spinner_spinner-dash__ZDE2N", "size-sm": "Spinner_size-sm__YWEwM", "size-md": "Spinner_size-md__NThiM", "size-lg": "Spinner_size-lg__MDEzN", "size-xl": "Spinner_size-xl__ZTNkN", "quiet": "Spinner_quiet__ZGJlM", "disabled": "Spinner_disabled__YjdjY" };
|
|
27322
27326
|
|
|
27323
27327
|
// src/components/Spinner.tsx
|
|
27324
27328
|
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
27325
27329
|
function Spinner(props) {
|
|
27326
|
-
const { size = "lg", quiet, className, ...domProps } = props;
|
|
27330
|
+
const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
|
|
27327
27331
|
return /* @__PURE__ */ jsx12(
|
|
27328
27332
|
"div",
|
|
27329
27333
|
{
|
|
27330
27334
|
...domProps,
|
|
27331
27335
|
className: (0, import_classnames8.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
27332
|
-
[Spinner_default.quiet]: quiet
|
|
27336
|
+
[Spinner_default.quiet]: quiet,
|
|
27337
|
+
[Spinner_default.disabled]: isDisabled
|
|
27333
27338
|
}),
|
|
27334
27339
|
children: /* @__PURE__ */ jsxs4("svg", { viewBox: "25 25 50 50", children: [
|
|
27335
27340
|
/* @__PURE__ */ jsx12("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
@@ -27341,10 +27346,16 @@ function Spinner(props) {
|
|
|
27341
27346
|
|
|
27342
27347
|
// src/components/LoadingButton.tsx
|
|
27343
27348
|
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
27344
|
-
function LoadingButton({
|
|
27345
|
-
|
|
27346
|
-
|
|
27347
|
-
|
|
27349
|
+
function LoadingButton({
|
|
27350
|
+
isLoading,
|
|
27351
|
+
isDisabled,
|
|
27352
|
+
showText = true,
|
|
27353
|
+
children,
|
|
27354
|
+
...props
|
|
27355
|
+
}) {
|
|
27356
|
+
return /* @__PURE__ */ jsxs5(Button2, { ...props, isDisabled, children: [
|
|
27357
|
+
isLoading && /* @__PURE__ */ jsx13(Icon, { size: "sm", children: /* @__PURE__ */ jsx13(Spinner, { isDisabled }) }),
|
|
27358
|
+
showText && children
|
|
27348
27359
|
] });
|
|
27349
27360
|
}
|
|
27350
27361
|
|
|
@@ -27360,7 +27371,6 @@ function FormSubmitButton({
|
|
|
27360
27371
|
const {
|
|
27361
27372
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
27362
27373
|
} = useFormContext();
|
|
27363
|
-
console.log({ isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful });
|
|
27364
27374
|
return /* @__PURE__ */ jsx14(
|
|
27365
27375
|
LoadingButton,
|
|
27366
27376
|
{
|
|
@@ -31437,19 +31447,30 @@ function Code({ asChild, children }) {
|
|
|
31437
31447
|
var import_classnames21 = __toESM(require_classnames());
|
|
31438
31448
|
|
|
31439
31449
|
// src/components/List.tsx
|
|
31450
|
+
import { Fragment as Fragment4 } from "react";
|
|
31440
31451
|
var import_classnames19 = __toESM(require_classnames());
|
|
31441
31452
|
|
|
31442
31453
|
// css-modules:E:\dev\umami-react-zen\src\components\List.module.css
|
|
31443
|
-
var List_default = { "list": "
|
|
31454
|
+
var List_default = { "list": "List_list__MDIxN", "separator": "List_separator__YWY4N", "section": "List_section__NWU0Y", "header": "List_header__Yzg0Y", "item": "List_item__NjEyN", "check": "List_check__MTNlZ" };
|
|
31444
31455
|
|
|
31445
31456
|
// src/components/List.tsx
|
|
31446
31457
|
import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
31447
|
-
function List({
|
|
31448
|
-
|
|
31449
|
-
|
|
31450
|
-
|
|
31451
|
-
|
|
31452
|
-
|
|
31458
|
+
function List({
|
|
31459
|
+
items,
|
|
31460
|
+
idProperty = "id",
|
|
31461
|
+
labelProperty = "label",
|
|
31462
|
+
separatorProperty = "separatpr",
|
|
31463
|
+
className,
|
|
31464
|
+
children,
|
|
31465
|
+
...props
|
|
31466
|
+
}) {
|
|
31467
|
+
return /* @__PURE__ */ jsx28($eed445e0843c11d0$export$41f133550aa26f48, { ...props, items, className: (0, import_classnames19.default)(List_default.list, className), children: children || items?.map((item) => {
|
|
31468
|
+
const id = item[idProperty] || item.toString();
|
|
31469
|
+
const label = item[labelProperty] || item.toString();
|
|
31470
|
+
return /* @__PURE__ */ jsxs14(Fragment4, { children: [
|
|
31471
|
+
item[separatorProperty] && /* @__PURE__ */ jsx28($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31472
|
+
/* @__PURE__ */ jsx28(ListItem, { id, className: List_default.item, children: label })
|
|
31473
|
+
] }, id);
|
|
31453
31474
|
}) });
|
|
31454
31475
|
}
|
|
31455
31476
|
function ListItem({ children, className, ...props }) {
|
|
@@ -31575,7 +31596,7 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
31575
31596
|
}
|
|
31576
31597
|
|
|
31577
31598
|
// css-modules:E:\dev\umami-react-zen\src\components\styles\input.module.css
|
|
31578
|
-
var input_default = { "field": "
|
|
31599
|
+
var input_default = { "field": "input_field__ZGEyY", "row": "input_row__YTllZ", "input": "input_input__ZTAzN", "icon": "input_icon__YjcxZ" };
|
|
31579
31600
|
|
|
31580
31601
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
31581
31602
|
var TextField_default = { "allowCopy": "TextField_allowCopy__Y2RhY", "icon": "TextField_icon__MWVlN" };
|
|
@@ -31635,7 +31656,7 @@ var TextField2 = forwardRef5(
|
|
|
31635
31656
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__Mzg4M", "value": "ConfirmationDialog_value__YzhjZ" };
|
|
31636
31657
|
|
|
31637
31658
|
// src/components/ConfirmationDialog.tsx
|
|
31638
|
-
import { Fragment as
|
|
31659
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
31639
31660
|
function ConfirmationDialog({
|
|
31640
31661
|
value,
|
|
31641
31662
|
confirmMessage,
|
|
@@ -31654,7 +31675,7 @@ function ConfirmationDialog({
|
|
|
31654
31675
|
className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
|
|
31655
31676
|
isConfirmDisabled: !canSave,
|
|
31656
31677
|
children: ({ close }) => {
|
|
31657
|
-
return /* @__PURE__ */ jsxs17(
|
|
31678
|
+
return /* @__PURE__ */ jsxs17(Fragment5, { children: [
|
|
31658
31679
|
typeof children === "function" ? children({ close }) : children,
|
|
31659
31680
|
/* @__PURE__ */ jsxs17(Text, { children: [
|
|
31660
31681
|
confirmMessage || "Type the following value to confirm",
|
|
@@ -31762,14 +31783,33 @@ function Dots({ className, ...props }) {
|
|
|
31762
31783
|
}
|
|
31763
31784
|
|
|
31764
31785
|
// src/components/FloatingTooltip.tsx
|
|
31786
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
31765
31787
|
import { useEffect as useEffect10, useState as useState11 } from "react";
|
|
31766
31788
|
|
|
31789
|
+
// src/components/Tooltip.tsx
|
|
31790
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
31791
|
+
|
|
31792
|
+
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
31793
|
+
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
31794
|
+
|
|
31795
|
+
// src/components/Tooltip.tsx
|
|
31796
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
31797
|
+
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
31798
|
+
return /* @__PURE__ */ jsx39($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames30.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ jsx39(TooltipBubble, { showArrow, children }) });
|
|
31799
|
+
}
|
|
31800
|
+
function TooltipBubble({ showArrow, children, ...props }) {
|
|
31801
|
+
return /* @__PURE__ */ jsxs20("div", { ...props, children: [
|
|
31802
|
+
showArrow && /* @__PURE__ */ jsx39($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx39("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx39("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
31803
|
+
/* @__PURE__ */ jsx39("div", { className: Tooltip_default.bubble, children })
|
|
31804
|
+
] });
|
|
31805
|
+
}
|
|
31806
|
+
|
|
31767
31807
|
// css-modules:E:\dev\umami-react-zen\src\components\FloatingTooltip.module.css
|
|
31768
|
-
var FloatingTooltip_default = { "
|
|
31808
|
+
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
31769
31809
|
|
|
31770
31810
|
// src/components/FloatingTooltip.tsx
|
|
31771
|
-
import { jsx as
|
|
31772
|
-
function FloatingTooltip({ children }) {
|
|
31811
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
31812
|
+
function FloatingTooltip({ className, style, children, ...props }) {
|
|
31773
31813
|
const [position, setPosition] = useState11({ x: -1e3, y: -1e3 });
|
|
31774
31814
|
useEffect10(() => {
|
|
31775
31815
|
const handler = (e) => {
|
|
@@ -31780,12 +31820,20 @@ function FloatingTooltip({ children }) {
|
|
|
31780
31820
|
document.removeEventListener("mousemove", handler);
|
|
31781
31821
|
};
|
|
31782
31822
|
}, []);
|
|
31783
|
-
return /* @__PURE__ */
|
|
31823
|
+
return /* @__PURE__ */ jsx40(
|
|
31824
|
+
TooltipBubble,
|
|
31825
|
+
{
|
|
31826
|
+
...props,
|
|
31827
|
+
className: (0, import_classnames31.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
31828
|
+
style: { ...style, left: position.x, top: position.y },
|
|
31829
|
+
children
|
|
31830
|
+
}
|
|
31831
|
+
);
|
|
31784
31832
|
}
|
|
31785
31833
|
|
|
31786
31834
|
// src/components/Grid.tsx
|
|
31787
|
-
var
|
|
31788
|
-
import { jsx as
|
|
31835
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
31836
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
31789
31837
|
function Grid({
|
|
31790
31838
|
display = "grid",
|
|
31791
31839
|
justifyContent,
|
|
@@ -31818,17 +31866,17 @@ function Grid({
|
|
|
31818
31866
|
gridTemplateAreas: areas,
|
|
31819
31867
|
gridAutoFlow: autoFlow
|
|
31820
31868
|
});
|
|
31821
|
-
return /* @__PURE__ */
|
|
31869
|
+
return /* @__PURE__ */ jsx41(Box, { ...props, className: (0, import_classnames32.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
31822
31870
|
}
|
|
31823
31871
|
|
|
31824
31872
|
// src/components/Heading.tsx
|
|
31825
|
-
var
|
|
31873
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
31826
31874
|
|
|
31827
31875
|
// css-modules:E:\dev\umami-react-zen\src\components\Heading.module.css
|
|
31828
31876
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
31829
31877
|
|
|
31830
31878
|
// src/components/Heading.tsx
|
|
31831
|
-
import { jsx as
|
|
31879
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
31832
31880
|
function Heading2({
|
|
31833
31881
|
size = "3",
|
|
31834
31882
|
weight,
|
|
@@ -31845,11 +31893,11 @@ function Heading2({
|
|
|
31845
31893
|
fontWeight: weight,
|
|
31846
31894
|
letterSpacing: spacing
|
|
31847
31895
|
});
|
|
31848
|
-
return /* @__PURE__ */
|
|
31896
|
+
return /* @__PURE__ */ jsx42(
|
|
31849
31897
|
Box,
|
|
31850
31898
|
{
|
|
31851
31899
|
...props,
|
|
31852
|
-
className: (0,
|
|
31900
|
+
className: (0, import_classnames33.default)(Heading_default.heading, className, classes),
|
|
31853
31901
|
style: { ...styleProps, ...style },
|
|
31854
31902
|
children
|
|
31855
31903
|
}
|
|
@@ -31863,7 +31911,7 @@ import { useRef as useRef8, useState as useState12, useEffect as useEffect11 } f
|
|
|
31863
31911
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
31864
31912
|
|
|
31865
31913
|
// src/components/HoverTrigger.tsx
|
|
31866
|
-
import { Fragment as
|
|
31914
|
+
import { Fragment as Fragment6, jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
31867
31915
|
var CLOSE_DELAY = 500;
|
|
31868
31916
|
function HoverTrigger({
|
|
31869
31917
|
isOpen,
|
|
@@ -31914,9 +31962,9 @@ function HoverTrigger({
|
|
|
31914
31962
|
}
|
|
31915
31963
|
}, closeDelay);
|
|
31916
31964
|
};
|
|
31917
|
-
return /* @__PURE__ */
|
|
31918
|
-
/* @__PURE__ */
|
|
31919
|
-
/* @__PURE__ */
|
|
31965
|
+
return /* @__PURE__ */ jsxs21(Fragment6, { children: [
|
|
31966
|
+
/* @__PURE__ */ jsx43("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
31967
|
+
/* @__PURE__ */ jsx43(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx43(
|
|
31920
31968
|
"div",
|
|
31921
31969
|
{
|
|
31922
31970
|
className: HoverTrigger_default.wrapper,
|
|
@@ -31929,13 +31977,13 @@ function HoverTrigger({
|
|
|
31929
31977
|
}
|
|
31930
31978
|
|
|
31931
31979
|
// src/components/Image.tsx
|
|
31932
|
-
var
|
|
31980
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
31933
31981
|
|
|
31934
31982
|
// css-modules:E:\dev\umami-react-zen\src\components\Image.module.css
|
|
31935
31983
|
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" };
|
|
31936
31984
|
|
|
31937
31985
|
// src/components/Image.tsx
|
|
31938
|
-
import { jsx as
|
|
31986
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
31939
31987
|
function Image({
|
|
31940
31988
|
src,
|
|
31941
31989
|
alt,
|
|
@@ -31948,11 +31996,11 @@ function Image({
|
|
|
31948
31996
|
...props
|
|
31949
31997
|
}) {
|
|
31950
31998
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
31951
|
-
return /* @__PURE__ */
|
|
31999
|
+
return /* @__PURE__ */ jsx44(
|
|
31952
32000
|
"img",
|
|
31953
32001
|
{
|
|
31954
32002
|
...props,
|
|
31955
|
-
className: (0,
|
|
32003
|
+
className: (0, import_classnames34.default)(
|
|
31956
32004
|
Image_default.image,
|
|
31957
32005
|
className,
|
|
31958
32006
|
classes,
|
|
@@ -31968,14 +32016,14 @@ function Image({
|
|
|
31968
32016
|
}
|
|
31969
32017
|
|
|
31970
32018
|
// src/components/InlineEditField.tsx
|
|
31971
|
-
var
|
|
32019
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
31972
32020
|
import { useState as useState13, useCallback as useCallback2 } from "react";
|
|
31973
32021
|
|
|
31974
32022
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
31975
32023
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
31976
32024
|
|
|
31977
32025
|
// src/components/InlineEditField.tsx
|
|
31978
|
-
import { jsx as
|
|
32026
|
+
import { jsx as jsx45, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
31979
32027
|
function InlineEditField({
|
|
31980
32028
|
name = "",
|
|
31981
32029
|
value: defaultValue = "",
|
|
@@ -32011,17 +32059,17 @@ function InlineEditField({
|
|
|
32011
32059
|
handleCancel();
|
|
32012
32060
|
}
|
|
32013
32061
|
};
|
|
32014
|
-
return /* @__PURE__ */
|
|
32062
|
+
return /* @__PURE__ */ jsxs22(
|
|
32015
32063
|
"div",
|
|
32016
32064
|
{
|
|
32017
32065
|
"aria-label": "Edit",
|
|
32018
32066
|
...props,
|
|
32019
|
-
className: (0,
|
|
32067
|
+
className: (0, import_classnames35.default)(InlineEditField_default.edit, className),
|
|
32020
32068
|
onClick: handleEdit,
|
|
32021
32069
|
children: [
|
|
32022
32070
|
!edit && children,
|
|
32023
|
-
!edit && /* @__PURE__ */
|
|
32024
|
-
edit && /* @__PURE__ */
|
|
32071
|
+
!edit && /* @__PURE__ */ jsx45(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx45(Icons.Edit, {}) }),
|
|
32072
|
+
edit && /* @__PURE__ */ jsx45(
|
|
32025
32073
|
TextField2,
|
|
32026
32074
|
{
|
|
32027
32075
|
name,
|
|
@@ -32038,45 +32086,40 @@ function InlineEditField({
|
|
|
32038
32086
|
}
|
|
32039
32087
|
|
|
32040
32088
|
// src/components/Loading.tsx
|
|
32041
|
-
var
|
|
32089
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
32042
32090
|
|
|
32043
32091
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
32044
32092
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
32045
32093
|
|
|
32046
32094
|
// src/components/Loading.tsx
|
|
32047
|
-
import { jsx as
|
|
32095
|
+
import { jsx as jsx46, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
32048
32096
|
function Loading(props) {
|
|
32049
32097
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
32050
|
-
return /* @__PURE__ */
|
|
32051
|
-
icon === "dots" && /* @__PURE__ */
|
|
32052
|
-
icon === "spinner" && /* @__PURE__ */
|
|
32098
|
+
return /* @__PURE__ */ jsxs23("div", { ...domProps, className: (0, import_classnames36.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
32099
|
+
icon === "dots" && /* @__PURE__ */ jsx46(Dots, {}),
|
|
32100
|
+
icon === "spinner" && /* @__PURE__ */ jsx46(Spinner, { size })
|
|
32053
32101
|
] });
|
|
32054
32102
|
}
|
|
32055
32103
|
|
|
32056
32104
|
// src/components/Menu.tsx
|
|
32057
|
-
var
|
|
32105
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
32058
32106
|
|
|
32059
32107
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
32060
32108
|
var Menu_default = { "menu": "Menu_menu__YmUyN", "separator": "Menu_separator__NDFlO", "section": "Menu_section__YjJjY", "header": "Menu_header__NDVjN", "item": "Menu_item__YjBiN", "check": "Menu_check__YmVhZ" };
|
|
32061
32109
|
|
|
32062
32110
|
// src/components/Menu.tsx
|
|
32063
|
-
import { jsx as
|
|
32111
|
+
import { jsx as jsx47, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
32064
32112
|
function Menu2({ items, className, children, ...props }) {
|
|
32065
|
-
return /* @__PURE__ */
|
|
32066
|
-
if (item === null) {
|
|
32067
|
-
return /* @__PURE__ */ jsx46($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
|
|
32068
|
-
}
|
|
32069
|
-
return /* @__PURE__ */ jsx46(MenuItem2, { id: item, children: item }, index);
|
|
32070
|
-
}) });
|
|
32113
|
+
return /* @__PURE__ */ jsx47($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames37.default)(Menu_default.menu, className), children });
|
|
32071
32114
|
}
|
|
32072
32115
|
function MenuItem2({ children, className, ...props }) {
|
|
32073
|
-
return /* @__PURE__ */
|
|
32116
|
+
return /* @__PURE__ */ jsxs24($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames37.default)(Menu_default.item, className), children: [
|
|
32074
32117
|
children,
|
|
32075
|
-
/* @__PURE__ */
|
|
32118
|
+
/* @__PURE__ */ jsx47("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ jsx47(Icon, { children: /* @__PURE__ */ jsx47(Icons.Check, {}) }) })
|
|
32076
32119
|
] });
|
|
32077
32120
|
}
|
|
32078
32121
|
function MenuSeparator({ className, ...props }) {
|
|
32079
|
-
return /* @__PURE__ */
|
|
32122
|
+
return /* @__PURE__ */ jsx47($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames37.default)(Menu_default.separator, className) });
|
|
32080
32123
|
}
|
|
32081
32124
|
function MenuSection({
|
|
32082
32125
|
title,
|
|
@@ -32084,20 +32127,20 @@ function MenuSection({
|
|
|
32084
32127
|
children,
|
|
32085
32128
|
...props
|
|
32086
32129
|
}) {
|
|
32087
|
-
return /* @__PURE__ */
|
|
32088
|
-
title && /* @__PURE__ */
|
|
32130
|
+
return /* @__PURE__ */ jsxs24($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames37.default)(Menu_default.section, className), children: [
|
|
32131
|
+
title && /* @__PURE__ */ jsx47($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
32089
32132
|
children
|
|
32090
32133
|
] });
|
|
32091
32134
|
}
|
|
32092
32135
|
|
|
32093
32136
|
// src/components/Modal.tsx
|
|
32094
|
-
var
|
|
32137
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
32095
32138
|
|
|
32096
32139
|
// css-modules:E:\dev\umami-react-zen\src\components\Modal.module.css
|
|
32097
32140
|
var Modal_default = { "overlay": "Modal_overlay__OGJmN", "modal-fade-in": "Modal_modal-fade-in__MzJiZ", "modal": "Modal_modal__OTZjZ", "left": "Modal_left__Mzg1Z", "right": "Modal_right__YmRmZ", "top": "Modal_top__ZDUzY", "bottom": "Modal_bottom__ZDRhZ", "fullscreen": "Modal_fullscreen__NTU4O", "center": "Modal_center__NmI1N", "modal-zoom": "Modal_modal-zoom__ZWRlM", "modal-left": "Modal_modal-left__ODA0M", "modal-right": "Modal_modal-right__ZjYwM", "modal-top": "Modal_modal-top__N2VhY", "modal-bottom": "Modal_modal-bottom__ZTQ3Y" };
|
|
32098
32141
|
|
|
32099
32142
|
// src/components/Modal.tsx
|
|
32100
|
-
import { jsx as
|
|
32143
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
32101
32144
|
function Modal2({
|
|
32102
32145
|
position = "center",
|
|
32103
32146
|
offset,
|
|
@@ -32109,11 +32152,11 @@ function Modal2({
|
|
|
32109
32152
|
if (offset) {
|
|
32110
32153
|
style[`--modal-offset`] = offset;
|
|
32111
32154
|
}
|
|
32112
|
-
return /* @__PURE__ */
|
|
32155
|
+
return /* @__PURE__ */ jsx48($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ jsx48($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames38.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
32113
32156
|
}
|
|
32114
32157
|
|
|
32115
32158
|
// src/components/NavBar.tsx
|
|
32116
|
-
var
|
|
32159
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
32117
32160
|
import {
|
|
32118
32161
|
createContext as createContext3,
|
|
32119
32162
|
useContext as useContext5,
|
|
@@ -32124,7 +32167,7 @@ import {
|
|
|
32124
32167
|
var NavBar_default = { "nav": "NavBar_nav__NDgxZ", "item": "NavBar_item__OGRlN", "icon": "NavBar_icon__NWFiY" };
|
|
32125
32168
|
|
|
32126
32169
|
// src/components/NavBar.tsx
|
|
32127
|
-
import { jsx as
|
|
32170
|
+
import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
32128
32171
|
var NavBarContext = createContext3(void 0);
|
|
32129
32172
|
var useNavigationContext = () => {
|
|
32130
32173
|
const context = useContext5(NavBarContext);
|
|
@@ -32135,80 +32178,80 @@ var useNavigationContext = () => {
|
|
|
32135
32178
|
};
|
|
32136
32179
|
function NavBar({ showArrow = true, className, children, ...props }) {
|
|
32137
32180
|
const [activeMenu, setActiveMenu] = useState14("");
|
|
32138
|
-
return /* @__PURE__ */
|
|
32181
|
+
return /* @__PURE__ */ jsx49(NavBarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.nav, className), children }) });
|
|
32139
32182
|
}
|
|
32140
32183
|
function NavBarItem({ label, children, className, ...props }) {
|
|
32141
32184
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
32142
32185
|
if (label) {
|
|
32143
|
-
return /* @__PURE__ */
|
|
32144
|
-
/* @__PURE__ */
|
|
32145
|
-
/* @__PURE__ */
|
|
32146
|
-
/* @__PURE__ */
|
|
32186
|
+
return /* @__PURE__ */ jsxs25(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
32187
|
+
/* @__PURE__ */ jsxs25("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children: [
|
|
32188
|
+
/* @__PURE__ */ jsx49(Text, { children: label }),
|
|
32189
|
+
/* @__PURE__ */ jsx49(Icon, { rotate: 90, size: "xs", className: NavBar_default.icon, children: /* @__PURE__ */ jsx49(Icons.Chevron, {}) })
|
|
32147
32190
|
] }),
|
|
32148
32191
|
children
|
|
32149
32192
|
] });
|
|
32150
32193
|
}
|
|
32151
|
-
return /* @__PURE__ */
|
|
32194
|
+
return /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children });
|
|
32152
32195
|
}
|
|
32153
32196
|
|
|
32154
32197
|
// src/components/PasswordField.tsx
|
|
32155
32198
|
import { useState as useState15, forwardRef as forwardRef6 } from "react";
|
|
32156
|
-
var
|
|
32199
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
32157
32200
|
|
|
32158
32201
|
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
32159
32202
|
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
32160
32203
|
|
|
32161
32204
|
// src/components/PasswordField.tsx
|
|
32162
|
-
import { jsx as
|
|
32205
|
+
import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
32163
32206
|
var PasswordField = forwardRef6(
|
|
32164
32207
|
({ label, className, ...props }, ref) => {
|
|
32165
32208
|
const [show, setShow] = useState15(false);
|
|
32166
32209
|
const type = show ? "text" : "password";
|
|
32167
32210
|
const handleShowPassword = () => setShow((state) => !state);
|
|
32168
|
-
return /* @__PURE__ */
|
|
32169
|
-
label && /* @__PURE__ */
|
|
32170
|
-
/* @__PURE__ */
|
|
32171
|
-
/* @__PURE__ */
|
|
32172
|
-
/* @__PURE__ */
|
|
32211
|
+
return /* @__PURE__ */ jsxs26($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames40.default)(input_default.field, className), children: [
|
|
32212
|
+
label && /* @__PURE__ */ jsx50(Label2, { children: label }),
|
|
32213
|
+
/* @__PURE__ */ jsxs26("div", { className: input_default.row, children: [
|
|
32214
|
+
/* @__PURE__ */ jsx50($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
32215
|
+
/* @__PURE__ */ jsx50(Icon, { onClick: handleShowPassword, className: (0, import_classnames40.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ jsx50(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx50(Icons.Eye, {}) })
|
|
32173
32216
|
] })
|
|
32174
32217
|
] });
|
|
32175
32218
|
}
|
|
32176
32219
|
);
|
|
32177
32220
|
|
|
32178
32221
|
// src/components/ProgressBar.tsx
|
|
32179
|
-
var
|
|
32222
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
32180
32223
|
|
|
32181
32224
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
32182
32225
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
32183
32226
|
|
|
32184
32227
|
// src/components/ProgressBar.tsx
|
|
32185
|
-
import { Fragment as
|
|
32228
|
+
import { Fragment as Fragment7, jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
32186
32229
|
function ProgressBar2({ className, showValue, ...props }) {
|
|
32187
|
-
return /* @__PURE__ */
|
|
32188
|
-
return /* @__PURE__ */
|
|
32189
|
-
/* @__PURE__ */
|
|
32190
|
-
showValue && /* @__PURE__ */
|
|
32230
|
+
return /* @__PURE__ */ jsx51($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
32231
|
+
return /* @__PURE__ */ jsxs27(Fragment7, { children: [
|
|
32232
|
+
/* @__PURE__ */ jsx51("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx51("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
32233
|
+
showValue && /* @__PURE__ */ jsx51("div", { className: ProgressBar_default.value, children: valueText })
|
|
32191
32234
|
] });
|
|
32192
32235
|
} });
|
|
32193
32236
|
}
|
|
32194
32237
|
|
|
32195
32238
|
// src/components/ProgressCircle.tsx
|
|
32196
|
-
var
|
|
32239
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
32197
32240
|
|
|
32198
32241
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
32199
32242
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
32200
32243
|
|
|
32201
32244
|
// src/components/ProgressCircle.tsx
|
|
32202
|
-
import { Fragment as
|
|
32245
|
+
import { Fragment as Fragment8, jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
32203
32246
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
32204
|
-
return /* @__PURE__ */
|
|
32247
|
+
return /* @__PURE__ */ jsx52($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
32205
32248
|
const radius = 45;
|
|
32206
32249
|
const circumference = radius * 2 * Math.PI;
|
|
32207
32250
|
const offset = circumference - percentage / 100 * circumference;
|
|
32208
|
-
return /* @__PURE__ */
|
|
32209
|
-
/* @__PURE__ */
|
|
32210
|
-
/* @__PURE__ */
|
|
32211
|
-
/* @__PURE__ */
|
|
32251
|
+
return /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
32252
|
+
/* @__PURE__ */ jsxs28("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
32253
|
+
/* @__PURE__ */ jsx52("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
32254
|
+
/* @__PURE__ */ jsx52(
|
|
32212
32255
|
"circle",
|
|
32213
32256
|
{
|
|
32214
32257
|
className: ProgressCircle_default.fill,
|
|
@@ -32220,41 +32263,41 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
32220
32263
|
}
|
|
32221
32264
|
)
|
|
32222
32265
|
] }),
|
|
32223
|
-
showValue && /* @__PURE__ */
|
|
32266
|
+
showValue && /* @__PURE__ */ jsx52("label", { className: ProgressCircle_default.value, children: valueText })
|
|
32224
32267
|
] });
|
|
32225
32268
|
} });
|
|
32226
32269
|
}
|
|
32227
32270
|
|
|
32228
32271
|
// src/components/RadioGroup.tsx
|
|
32229
32272
|
import { forwardRef as forwardRef7 } from "react";
|
|
32230
|
-
var
|
|
32273
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
32231
32274
|
|
|
32232
32275
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
32233
32276
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjI3O", "radio": "RadioGroup_radio__NjJiN" };
|
|
32234
32277
|
|
|
32235
32278
|
// src/components/RadioGroup.tsx
|
|
32236
|
-
import { jsx as
|
|
32279
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
32237
32280
|
var RadioGroup2 = forwardRef7(
|
|
32238
32281
|
({ label, children, className, ...props }, ref) => {
|
|
32239
|
-
return /* @__PURE__ */
|
|
32240
|
-
label && /* @__PURE__ */
|
|
32282
|
+
return /* @__PURE__ */ jsxs29($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, className), children: [
|
|
32283
|
+
label && /* @__PURE__ */ jsx53(Label2, { children: label }),
|
|
32241
32284
|
children
|
|
32242
32285
|
] });
|
|
32243
32286
|
}
|
|
32244
32287
|
);
|
|
32245
32288
|
function Radio2({ children, className, ...props }) {
|
|
32246
|
-
return /* @__PURE__ */
|
|
32289
|
+
return /* @__PURE__ */ jsx53($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
|
|
32247
32290
|
}
|
|
32248
32291
|
|
|
32249
32292
|
// src/components/SearchField.tsx
|
|
32250
32293
|
import { useState as useState16, useEffect as useEffect12, forwardRef as forwardRef8 } from "react";
|
|
32251
|
-
var
|
|
32294
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
32252
32295
|
|
|
32253
32296
|
// css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
|
|
32254
32297
|
var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "SearchField_input__OGFiY", "close": "SearchField_close__NmJkM" };
|
|
32255
32298
|
|
|
32256
32299
|
// src/components/SearchField.tsx
|
|
32257
|
-
import { Fragment as
|
|
32300
|
+
import { Fragment as Fragment9, jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
32258
32301
|
var SearchField2 = forwardRef8(
|
|
32259
32302
|
({ label, placeholder, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
32260
32303
|
const [search, setSearch] = useState16(value ?? "");
|
|
@@ -32274,31 +32317,31 @@ var SearchField2 = forwardRef8(
|
|
|
32274
32317
|
onSearch?.(searchValue);
|
|
32275
32318
|
}
|
|
32276
32319
|
}, [searchValue, delay]);
|
|
32277
|
-
return /* @__PURE__ */
|
|
32320
|
+
return /* @__PURE__ */ jsx54(
|
|
32278
32321
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
32279
32322
|
{
|
|
32280
32323
|
...props,
|
|
32281
32324
|
ref,
|
|
32282
|
-
className: (0,
|
|
32325
|
+
className: (0, import_classnames44.default)(input_default.field, className),
|
|
32283
32326
|
onChange: handleChange,
|
|
32284
32327
|
children: ({ state }) => {
|
|
32285
|
-
return /* @__PURE__ */
|
|
32286
|
-
label && /* @__PURE__ */
|
|
32287
|
-
/* @__PURE__ */
|
|
32288
|
-
/* @__PURE__ */
|
|
32289
|
-
/* @__PURE__ */
|
|
32328
|
+
return /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
32329
|
+
label && /* @__PURE__ */ jsx54(Label2, { children: label }),
|
|
32330
|
+
/* @__PURE__ */ jsxs30("div", { className: input_default.row, children: [
|
|
32331
|
+
/* @__PURE__ */ jsx54(Icon, { className: (0, import_classnames44.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ jsx54(Icons.MagnifyingGlass, {}) }),
|
|
32332
|
+
/* @__PURE__ */ jsx54(
|
|
32290
32333
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
32291
32334
|
{
|
|
32292
|
-
className: (0,
|
|
32335
|
+
className: (0, import_classnames44.default)(SearchField_default.input, input_default.input),
|
|
32293
32336
|
placeholder
|
|
32294
32337
|
}
|
|
32295
32338
|
),
|
|
32296
|
-
state.value && /* @__PURE__ */
|
|
32339
|
+
state.value && /* @__PURE__ */ jsx54(
|
|
32297
32340
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
32298
32341
|
{
|
|
32299
|
-
className: (0,
|
|
32342
|
+
className: (0, import_classnames44.default)(SearchField_default.close, input_default.icon),
|
|
32300
32343
|
onPress: resetSearch,
|
|
32301
|
-
children: /* @__PURE__ */
|
|
32344
|
+
children: /* @__PURE__ */ jsx54(Icon, { size: "sm", children: /* @__PURE__ */ jsx54(Icons.Close, {}) })
|
|
32302
32345
|
}
|
|
32303
32346
|
)
|
|
32304
32347
|
] })
|
|
@@ -32310,43 +32353,69 @@ var SearchField2 = forwardRef8(
|
|
|
32310
32353
|
);
|
|
32311
32354
|
|
|
32312
32355
|
// src/components/Select.tsx
|
|
32313
|
-
var
|
|
32356
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
32314
32357
|
import { forwardRef as forwardRef9 } from "react";
|
|
32315
32358
|
|
|
32316
32359
|
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
32317
|
-
var Select_default = { "button": "
|
|
32360
|
+
var Select_default = { "button": "Select_button__ZGY1Y", "popover": "Select_popover__MTQ1Y", "list": "Select_list__MDYyZ", "icon": "Select_icon__N2M0O", "search": "Select_search__MWQwM" };
|
|
32318
32361
|
|
|
32319
32362
|
// src/components/Select.tsx
|
|
32320
|
-
import { jsx as
|
|
32363
|
+
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
32321
32364
|
var Select2 = forwardRef9(
|
|
32322
32365
|
({
|
|
32323
|
-
children,
|
|
32324
32366
|
items = [],
|
|
32325
32367
|
value,
|
|
32326
32368
|
label,
|
|
32327
|
-
|
|
32369
|
+
isLoading,
|
|
32370
|
+
allowSearch,
|
|
32371
|
+
searchDelay,
|
|
32372
|
+
onSearch,
|
|
32328
32373
|
onSelectionChange,
|
|
32329
32374
|
onChange,
|
|
32375
|
+
listProps,
|
|
32376
|
+
popoverProps,
|
|
32377
|
+
className,
|
|
32378
|
+
children,
|
|
32330
32379
|
...props
|
|
32331
32380
|
}, ref) => {
|
|
32332
32381
|
const handleChange = (e) => {
|
|
32333
32382
|
onSelectionChange?.(e);
|
|
32334
32383
|
onChange?.(e);
|
|
32335
32384
|
};
|
|
32336
|
-
return /* @__PURE__ */
|
|
32385
|
+
return /* @__PURE__ */ jsxs31(
|
|
32337
32386
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
32338
32387
|
{
|
|
32339
32388
|
...props,
|
|
32340
32389
|
ref,
|
|
32341
|
-
className: (0,
|
|
32390
|
+
className: (0, import_classnames45.default)(input_default.field, className),
|
|
32342
32391
|
onSelectionChange: handleChange,
|
|
32343
32392
|
children: [
|
|
32344
|
-
label && /* @__PURE__ */
|
|
32345
|
-
/* @__PURE__ */
|
|
32346
|
-
/* @__PURE__ */
|
|
32347
|
-
/* @__PURE__ */
|
|
32393
|
+
label && /* @__PURE__ */ jsx55(Label2, { children: label }),
|
|
32394
|
+
/* @__PURE__ */ jsx55($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames45.default)(input_default.input, className), children: /* @__PURE__ */ jsxs31(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
32395
|
+
/* @__PURE__ */ jsx55($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
32396
|
+
/* @__PURE__ */ jsx55("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx55(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ jsx55(Icons.Chevron, {}) }) })
|
|
32348
32397
|
] }) }),
|
|
32349
|
-
/* @__PURE__ */
|
|
32398
|
+
/* @__PURE__ */ jsx55(Popover2, { ...popoverProps, children: /* @__PURE__ */ jsxs31(Column, { className: Select_default.popover, children: [
|
|
32399
|
+
allowSearch && /* @__PURE__ */ jsx55(
|
|
32400
|
+
SearchField2,
|
|
32401
|
+
{
|
|
32402
|
+
className: Select_default.search,
|
|
32403
|
+
onSearch,
|
|
32404
|
+
delay: searchDelay,
|
|
32405
|
+
autoFocus: true
|
|
32406
|
+
}
|
|
32407
|
+
),
|
|
32408
|
+
isLoading && /* @__PURE__ */ jsx55(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
32409
|
+
/* @__PURE__ */ jsx55(
|
|
32410
|
+
List,
|
|
32411
|
+
{
|
|
32412
|
+
...listProps,
|
|
32413
|
+
className: (0, import_classnames45.default)(Select_default.list, listProps?.className),
|
|
32414
|
+
style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
|
|
32415
|
+
children
|
|
32416
|
+
}
|
|
32417
|
+
)
|
|
32418
|
+
] }) })
|
|
32350
32419
|
]
|
|
32351
32420
|
}
|
|
32352
32421
|
);
|
|
@@ -32354,91 +32423,107 @@ var Select2 = forwardRef9(
|
|
|
32354
32423
|
);
|
|
32355
32424
|
|
|
32356
32425
|
// src/components/SideNav.tsx
|
|
32357
|
-
var
|
|
32426
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
32358
32427
|
import { createContext as createContext4, useContext as useContext6 } from "react";
|
|
32359
32428
|
|
|
32360
|
-
// src/components/Tooltip.tsx
|
|
32361
|
-
var import_classnames44 = __toESM(require_classnames());
|
|
32362
|
-
|
|
32363
|
-
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
32364
|
-
var Tooltip_default = { "tooltip": "Tooltip_tooltip__ODVhY", "bubble": "Tooltip_bubble__OTMzY", "floating": "Tooltip_floating__YWVjM", "arrow": "Tooltip_arrow__ZmMyY", "slide": "Tooltip_slide__OWE0Z" };
|
|
32365
|
-
|
|
32366
|
-
// src/components/Tooltip.tsx
|
|
32367
|
-
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
32368
|
-
function Tooltip2({ children, className, showArrow = true, ...props }) {
|
|
32369
|
-
return /* @__PURE__ */ jsxs31($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames44.default)(Tooltip_default.tooltip, className), children: [
|
|
32370
|
-
showArrow && /* @__PURE__ */ jsx55($44f671af83e7d9e0$export$746d02f47f4d381, { className: (0, import_classnames44.default)(Tooltip_default.arrow), children: /* @__PURE__ */ jsx55("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx55("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
32371
|
-
/* @__PURE__ */ jsx55(TooltipBubble, { children })
|
|
32372
|
-
] });
|
|
32373
|
-
}
|
|
32374
|
-
function TooltipBubble({ children }) {
|
|
32375
|
-
return /* @__PURE__ */ jsx55("div", { className: Tooltip_default.bubble, children });
|
|
32376
|
-
}
|
|
32377
|
-
|
|
32378
32429
|
// css-modules:E:\dev\umami-react-zen\src\components\SideNav.module.css
|
|
32379
|
-
var SideNav_default = { "sidenav": "
|
|
32430
|
+
var SideNav_default = { "sidenav": "SideNav_sidenav__M2NlY", "header": "SideNav_header__NGU1Y", "name": "SideNav_name__OTM0N", "section": "SideNav_section__MTUxM", "title": "SideNav_title__YTg5O", "content": "SideNav_content__MjczM", "item": "SideNav_item__ZTlkN", "label": "SideNav_label__NDU1N", "collapsed": "SideNav_collapsed__YzExM", "muted": "SideNav_muted__MmRlM", "selected": "SideNav_selected__ZjY4N", "variant-quiet": "SideNav_variant-quiet__OTZlN", "variant-1": "SideNav_variant-1__NjVmN", "variant-2": "SideNav_variant-2__NWZjM", "variant-3": "SideNav_variant-3__ZDE4O", "noborder": "SideNav_noborder__YTJjO" };
|
|
32380
32431
|
|
|
32381
32432
|
// src/components/SideNav.tsx
|
|
32382
32433
|
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
32383
32434
|
var SideNavContext = createContext4(null);
|
|
32384
|
-
function SideNav({
|
|
32385
|
-
|
|
32435
|
+
function SideNav({
|
|
32436
|
+
variant = "1",
|
|
32437
|
+
isCollapsed,
|
|
32438
|
+
muteItems = true,
|
|
32439
|
+
showBorder = true,
|
|
32440
|
+
className,
|
|
32441
|
+
children,
|
|
32442
|
+
...props
|
|
32443
|
+
}) {
|
|
32444
|
+
return /* @__PURE__ */ jsx56(SideNavContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsx56(
|
|
32445
|
+
Column,
|
|
32446
|
+
{
|
|
32447
|
+
...props,
|
|
32448
|
+
className: (0, import_classnames46.default)(
|
|
32449
|
+
SideNav_default.sidenav,
|
|
32450
|
+
isCollapsed && SideNav_default.collapsed,
|
|
32451
|
+
muteItems && SideNav_default.muted,
|
|
32452
|
+
variant && SideNav_default[`variant-${variant}`],
|
|
32453
|
+
!showBorder && SideNav_default.noborder,
|
|
32454
|
+
className
|
|
32455
|
+
),
|
|
32456
|
+
children
|
|
32457
|
+
}
|
|
32458
|
+
) });
|
|
32459
|
+
}
|
|
32460
|
+
function SideNavSection({
|
|
32461
|
+
title,
|
|
32462
|
+
children
|
|
32463
|
+
}) {
|
|
32464
|
+
return /* @__PURE__ */ jsxs32(Column, { className: SideNav_default.section, children: [
|
|
32465
|
+
title && /* @__PURE__ */ jsx56("div", { className: SideNav_default.title, children: title }),
|
|
32466
|
+
/* @__PURE__ */ jsx56("div", { className: SideNav_default.content, children })
|
|
32467
|
+
] });
|
|
32386
32468
|
}
|
|
32387
32469
|
function SideNavHeader({
|
|
32388
|
-
|
|
32470
|
+
label,
|
|
32389
32471
|
icon,
|
|
32390
|
-
|
|
32472
|
+
className,
|
|
32473
|
+
children,
|
|
32474
|
+
...props
|
|
32391
32475
|
}) {
|
|
32392
|
-
return /* @__PURE__ */ jsxs32(
|
|
32476
|
+
return /* @__PURE__ */ jsxs32(Row, { ...props, className: (0, import_classnames46.default)(SideNav_default.header, className), children: [
|
|
32393
32477
|
icon && /* @__PURE__ */ jsx56(Icon, { size: "sm", children: icon }),
|
|
32394
|
-
/* @__PURE__ */ jsx56("div", { className: (0,
|
|
32478
|
+
/* @__PURE__ */ jsx56("div", { className: (0, import_classnames46.default)(SideNav_default.name, SideNav_default.label), children: label }),
|
|
32395
32479
|
children
|
|
32396
32480
|
] });
|
|
32397
32481
|
}
|
|
32398
|
-
function SideNavSection({ title, children }) {
|
|
32399
|
-
return /* @__PURE__ */ jsxs32("div", { className: SideNav_default.section, children: [
|
|
32400
|
-
title && /* @__PURE__ */ jsx56("div", { className: SideNav_default.title, children: title }),
|
|
32401
|
-
/* @__PURE__ */ jsx56("div", { className: SideNav_default.content, children })
|
|
32402
|
-
] });
|
|
32403
|
-
}
|
|
32404
32482
|
function SideNavItem({
|
|
32405
32483
|
label,
|
|
32406
32484
|
icon,
|
|
32485
|
+
isSelected,
|
|
32407
32486
|
className,
|
|
32487
|
+
children,
|
|
32408
32488
|
...props
|
|
32409
32489
|
}) {
|
|
32410
32490
|
const { isCollapsed } = useContext6(SideNavContext);
|
|
32411
|
-
|
|
32412
|
-
|
|
32413
|
-
|
|
32414
|
-
|
|
32415
|
-
|
|
32416
|
-
|
|
32417
|
-
|
|
32418
|
-
|
|
32419
|
-
|
|
32491
|
+
return /* @__PURE__ */ jsxs32($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
32492
|
+
/* @__PURE__ */ jsx56($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsxs32(
|
|
32493
|
+
Row,
|
|
32494
|
+
{
|
|
32495
|
+
...props,
|
|
32496
|
+
className: (0, import_classnames46.default)(SideNav_default.item, className, isSelected && SideNav_default.selected),
|
|
32497
|
+
children: [
|
|
32498
|
+
icon && /* @__PURE__ */ jsx56(Icon, { size: "sm", children: icon }),
|
|
32499
|
+
label && /* @__PURE__ */ jsx56(Text, { className: (0, import_classnames46.default)(SideNav_default.label), children: label }),
|
|
32500
|
+
children
|
|
32501
|
+
]
|
|
32502
|
+
}
|
|
32503
|
+
) }),
|
|
32504
|
+
/* @__PURE__ */ jsx56(Tooltip2, { placement: "right", children: label })
|
|
32420
32505
|
] });
|
|
32421
32506
|
}
|
|
32422
32507
|
|
|
32423
32508
|
// src/components/Slider.tsx
|
|
32424
32509
|
import { forwardRef as forwardRef10 } from "react";
|
|
32425
|
-
var
|
|
32510
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
32426
32511
|
|
|
32427
32512
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
32428
32513
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
32429
32514
|
|
|
32430
32515
|
// src/components/Slider.tsx
|
|
32431
|
-
import { Fragment as
|
|
32516
|
+
import { Fragment as Fragment10, jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
32432
32517
|
var Slider2 = forwardRef10(
|
|
32433
32518
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
32434
|
-
return /* @__PURE__ */ jsxs33($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0,
|
|
32519
|
+
return /* @__PURE__ */ jsxs33($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
32435
32520
|
/* @__PURE__ */ jsxs33("div", { className: Slider_default.header, children: [
|
|
32436
32521
|
label && /* @__PURE__ */ jsx57(Label2, { className: Slider_default.label, children: label }),
|
|
32437
32522
|
showValue && /* @__PURE__ */ jsx57($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
32438
32523
|
] }),
|
|
32439
32524
|
/* @__PURE__ */ jsx57($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
32440
32525
|
const isHorizontal = state.orientation === "horizontal";
|
|
32441
|
-
return /* @__PURE__ */ jsxs33(
|
|
32526
|
+
return /* @__PURE__ */ jsxs33(Fragment10, { children: [
|
|
32442
32527
|
/* @__PURE__ */ jsx57(
|
|
32443
32528
|
"div",
|
|
32444
32529
|
{
|
|
@@ -32456,7 +32541,7 @@ var Slider2 = forwardRef10(
|
|
|
32456
32541
|
);
|
|
32457
32542
|
|
|
32458
32543
|
// src/components/StatusLight.tsx
|
|
32459
|
-
var
|
|
32544
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
32460
32545
|
|
|
32461
32546
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
32462
32547
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "status": "StatusLight_status__MDNmO", "bg": "StatusLight_bg__MjVjN", "success": "StatusLight_success__ZWI1N", "warning": "StatusLight_warning__YWRmM", "error": "StatusLight_error__NjdjM", "active": "StatusLight_active__NGZiY", "inactive": "StatusLight_inactive__NDI0Z" };
|
|
@@ -32465,11 +32550,11 @@ var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "st
|
|
|
32465
32550
|
import { jsx as jsx58, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
32466
32551
|
function StatusLight(props) {
|
|
32467
32552
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
32468
|
-
return /* @__PURE__ */ jsxs34("div", { ...domProps, className: (0,
|
|
32553
|
+
return /* @__PURE__ */ jsxs34("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
|
|
32469
32554
|
/* @__PURE__ */ jsx58("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx58(
|
|
32470
32555
|
"div",
|
|
32471
32556
|
{
|
|
32472
|
-
className: (0,
|
|
32557
|
+
className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
32473
32558
|
style: { backgroundColor: color }
|
|
32474
32559
|
}
|
|
32475
32560
|
) }),
|
|
@@ -32479,17 +32564,17 @@ function StatusLight(props) {
|
|
|
32479
32564
|
|
|
32480
32565
|
// src/components/Switch.tsx
|
|
32481
32566
|
import { forwardRef as forwardRef11 } from "react";
|
|
32482
|
-
var
|
|
32567
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
32483
32568
|
|
|
32484
32569
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
32485
32570
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
32486
32571
|
|
|
32487
32572
|
// src/components/Switch.tsx
|
|
32488
|
-
import { Fragment as
|
|
32573
|
+
import { Fragment as Fragment11, jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
32489
32574
|
var Switch2 = forwardRef11(
|
|
32490
32575
|
({ label, children, className, ...props }, ref) => {
|
|
32491
32576
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
32492
|
-
return /* @__PURE__ */ jsxs35(
|
|
32577
|
+
return /* @__PURE__ */ jsxs35(Fragment11, { children: [
|
|
32493
32578
|
label && /* @__PURE__ */ jsx59(Label2, { children: label }),
|
|
32494
32579
|
/* @__PURE__ */ jsxs35(
|
|
32495
32580
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
@@ -32497,7 +32582,7 @@ var Switch2 = forwardRef11(
|
|
|
32497
32582
|
...props,
|
|
32498
32583
|
isSelected,
|
|
32499
32584
|
ref,
|
|
32500
|
-
className: (0,
|
|
32585
|
+
className: (0, import_classnames49.default)(Switch_default.switch, className),
|
|
32501
32586
|
children: [
|
|
32502
32587
|
/* @__PURE__ */ jsx59("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx59("div", { className: Switch_default.knob }) }),
|
|
32503
32588
|
children
|
|
@@ -32527,7 +32612,7 @@ function TabPanel2({ children, ...props }) {
|
|
|
32527
32612
|
}
|
|
32528
32613
|
|
|
32529
32614
|
// src/components/TextArea.tsx
|
|
32530
|
-
var
|
|
32615
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
32531
32616
|
import { forwardRef as forwardRef12 } from "react";
|
|
32532
32617
|
|
|
32533
32618
|
// css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
|
|
@@ -32542,7 +32627,7 @@ var TextArea2 = forwardRef12(
|
|
|
32542
32627
|
{
|
|
32543
32628
|
...props,
|
|
32544
32629
|
ref,
|
|
32545
|
-
className: (0,
|
|
32630
|
+
className: (0, import_classnames50.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
32546
32631
|
asChild: true,
|
|
32547
32632
|
children: /* @__PURE__ */ jsx61($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
32548
32633
|
}
|
|
@@ -32551,7 +32636,7 @@ var TextArea2 = forwardRef12(
|
|
|
32551
32636
|
);
|
|
32552
32637
|
|
|
32553
32638
|
// src/components/ThemeButton.tsx
|
|
32554
|
-
var
|
|
32639
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
32555
32640
|
|
|
32556
32641
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
32557
32642
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
@@ -32586,7 +32671,7 @@ function ThemeButton({
|
|
|
32586
32671
|
Button2,
|
|
32587
32672
|
{
|
|
32588
32673
|
...props,
|
|
32589
|
-
className: (0,
|
|
32674
|
+
className: (0, import_classnames51.default)(ThemeButton_default.button, className),
|
|
32590
32675
|
variant,
|
|
32591
32676
|
onPress: handleClick,
|
|
32592
32677
|
children: [
|
|
@@ -32602,17 +32687,17 @@ function ThemeButton({
|
|
|
32602
32687
|
|
|
32603
32688
|
// src/components/Toggle.tsx
|
|
32604
32689
|
import { forwardRef as forwardRef13 } from "react";
|
|
32605
|
-
var
|
|
32690
|
+
var import_classnames52 = __toESM(require_classnames());
|
|
32606
32691
|
|
|
32607
32692
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
32608
32693
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
32609
32694
|
|
|
32610
32695
|
// src/components/Toggle.tsx
|
|
32611
|
-
import { Fragment as
|
|
32696
|
+
import { Fragment as Fragment12, jsx as jsx63, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
32612
32697
|
var Toggle = forwardRef13(
|
|
32613
32698
|
({ label, children, className, ...props }, ref) => {
|
|
32614
32699
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
32615
|
-
return /* @__PURE__ */ jsxs37(
|
|
32700
|
+
return /* @__PURE__ */ jsxs37(Fragment12, { children: [
|
|
32616
32701
|
label && /* @__PURE__ */ jsx63(Label2, { children: label }),
|
|
32617
32702
|
/* @__PURE__ */ jsx63(
|
|
32618
32703
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
@@ -32620,7 +32705,7 @@ var Toggle = forwardRef13(
|
|
|
32620
32705
|
...props,
|
|
32621
32706
|
ref,
|
|
32622
32707
|
isSelected,
|
|
32623
|
-
className: (0,
|
|
32708
|
+
className: (0, import_classnames52.default)(Toggle_default.toggle, className),
|
|
32624
32709
|
children
|
|
32625
32710
|
}
|
|
32626
32711
|
)
|
|
@@ -32629,7 +32714,7 @@ var Toggle = forwardRef13(
|
|
|
32629
32714
|
);
|
|
32630
32715
|
|
|
32631
32716
|
// src/components/ToggleGroup.tsx
|
|
32632
|
-
var
|
|
32717
|
+
var import_classnames53 = __toESM(require_classnames());
|
|
32633
32718
|
|
|
32634
32719
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
32635
32720
|
var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "ToggleGroup_list__MjNjO", "item": "ToggleGroup_item__YTNhN" };
|
|
@@ -32637,13 +32722,13 @@ var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "Toggle
|
|
|
32637
32722
|
// src/components/ToggleGroup.tsx
|
|
32638
32723
|
import { jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
32639
32724
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
32640
|
-
return /* @__PURE__ */ jsxs38($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0,
|
|
32725
|
+
return /* @__PURE__ */ jsxs38($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
32641
32726
|
label && /* @__PURE__ */ jsx64(Label2, { children: label }),
|
|
32642
32727
|
/* @__PURE__ */ jsx64($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
32643
32728
|
] });
|
|
32644
32729
|
}
|
|
32645
32730
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
32646
|
-
return /* @__PURE__ */ jsx64($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0,
|
|
32731
|
+
return /* @__PURE__ */ jsx64($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
|
|
32647
32732
|
}
|
|
32648
32733
|
|
|
32649
32734
|
// src/components/ZenProvider.tsx
|