@umami/react-zen 0.185.0 → 0.187.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 +54 -57
- package/dist/index.d.mts +33 -24
- package/dist/index.d.ts +33 -24
- package/dist/index.js +174 -141
- package/dist/index.mjs +174 -141
- package/package.json +1 -1
- package/styles.css +54 -57
package/dist/index.mjs
CHANGED
|
@@ -33092,7 +33092,7 @@ import { Children as Children2, createElement as createElement7 } from "react";
|
|
|
33092
33092
|
var import_classnames27 = __toESM(require_classnames());
|
|
33093
33093
|
|
|
33094
33094
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
33095
|
-
var Table_default = { "table": "
|
|
33095
|
+
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" };
|
|
33096
33096
|
|
|
33097
33097
|
// src/components/Table.tsx
|
|
33098
33098
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
@@ -33359,6 +33359,24 @@ function HoverTrigger({
|
|
|
33359
33359
|
] });
|
|
33360
33360
|
}
|
|
33361
33361
|
|
|
33362
|
+
// src/components/IconLabel.tsx
|
|
33363
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
33364
|
+
function IconLabel({
|
|
33365
|
+
icon,
|
|
33366
|
+
label,
|
|
33367
|
+
iconProps,
|
|
33368
|
+
labelProps,
|
|
33369
|
+
showLabel = true,
|
|
33370
|
+
children,
|
|
33371
|
+
...props
|
|
33372
|
+
}) {
|
|
33373
|
+
return /* @__PURE__ */ jsxs26(Row, { alignItems: "center", gap: true, width: "100%", ...props, children: [
|
|
33374
|
+
/* @__PURE__ */ jsx48(Icon2, { ...iconProps, children: icon }),
|
|
33375
|
+
showLabel && label && /* @__PURE__ */ jsx48(Text, { ...labelProps, children: label }),
|
|
33376
|
+
showLabel && children
|
|
33377
|
+
] });
|
|
33378
|
+
}
|
|
33379
|
+
|
|
33362
33380
|
// src/components/Image.tsx
|
|
33363
33381
|
var import_classnames33 = __toESM(require_classnames());
|
|
33364
33382
|
|
|
@@ -33366,7 +33384,7 @@ var import_classnames33 = __toESM(require_classnames());
|
|
|
33366
33384
|
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" };
|
|
33367
33385
|
|
|
33368
33386
|
// src/components/Image.tsx
|
|
33369
|
-
import { jsx as
|
|
33387
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
33370
33388
|
function Image({
|
|
33371
33389
|
src,
|
|
33372
33390
|
alt,
|
|
@@ -33379,7 +33397,7 @@ function Image({
|
|
|
33379
33397
|
...props
|
|
33380
33398
|
}) {
|
|
33381
33399
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
33382
|
-
return /* @__PURE__ */
|
|
33400
|
+
return /* @__PURE__ */ jsx49(
|
|
33383
33401
|
"img",
|
|
33384
33402
|
{
|
|
33385
33403
|
...props,
|
|
@@ -33406,7 +33424,7 @@ import { useState as useState13, useCallback as useCallback2 } from "react";
|
|
|
33406
33424
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
33407
33425
|
|
|
33408
33426
|
// src/components/InlineEditField.tsx
|
|
33409
|
-
import { jsx as
|
|
33427
|
+
import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
33410
33428
|
function InlineEditField({
|
|
33411
33429
|
name = "",
|
|
33412
33430
|
value: defaultValue = "",
|
|
@@ -33442,7 +33460,7 @@ function InlineEditField({
|
|
|
33442
33460
|
handleCancel();
|
|
33443
33461
|
}
|
|
33444
33462
|
};
|
|
33445
|
-
return /* @__PURE__ */
|
|
33463
|
+
return /* @__PURE__ */ jsxs27(
|
|
33446
33464
|
"div",
|
|
33447
33465
|
{
|
|
33448
33466
|
"aria-label": "Edit",
|
|
@@ -33451,8 +33469,8 @@ function InlineEditField({
|
|
|
33451
33469
|
onClick: handleEdit,
|
|
33452
33470
|
children: [
|
|
33453
33471
|
!edit && children,
|
|
33454
|
-
!edit && /* @__PURE__ */
|
|
33455
|
-
edit && /* @__PURE__ */
|
|
33472
|
+
!edit && /* @__PURE__ */ jsx50(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx50(SquarePen, {}) }),
|
|
33473
|
+
edit && /* @__PURE__ */ jsx50(
|
|
33456
33474
|
TextField2,
|
|
33457
33475
|
{
|
|
33458
33476
|
name,
|
|
@@ -33475,7 +33493,7 @@ var import_classnames35 = __toESM(require_classnames());
|
|
|
33475
33493
|
var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
|
|
33476
33494
|
|
|
33477
33495
|
// src/components/Loading.tsx
|
|
33478
|
-
import { jsx as
|
|
33496
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
33479
33497
|
function Loading({
|
|
33480
33498
|
size,
|
|
33481
33499
|
placement = "inline",
|
|
@@ -33483,9 +33501,9 @@ function Loading({
|
|
|
33483
33501
|
className,
|
|
33484
33502
|
...props
|
|
33485
33503
|
}) {
|
|
33486
|
-
return /* @__PURE__ */
|
|
33487
|
-
icon === "dots" && /* @__PURE__ */
|
|
33488
|
-
icon === "spinner" && /* @__PURE__ */
|
|
33504
|
+
return /* @__PURE__ */ jsxs28("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
|
|
33505
|
+
icon === "dots" && /* @__PURE__ */ jsx51(Dots, { size }),
|
|
33506
|
+
icon === "spinner" && /* @__PURE__ */ jsx51(Spinner, { size })
|
|
33489
33507
|
] });
|
|
33490
33508
|
}
|
|
33491
33509
|
|
|
@@ -33493,12 +33511,12 @@ function Loading({
|
|
|
33493
33511
|
var import_classnames36 = __toESM(require_classnames());
|
|
33494
33512
|
|
|
33495
33513
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
33496
|
-
var Menu_default = { "menu": "
|
|
33514
|
+
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" };
|
|
33497
33515
|
|
|
33498
33516
|
// src/components/Menu.tsx
|
|
33499
|
-
import { jsx as
|
|
33517
|
+
import { Fragment as Fragment9, jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
33500
33518
|
function Menu2({ className, children, ...props }) {
|
|
33501
|
-
return /* @__PURE__ */
|
|
33519
|
+
return /* @__PURE__ */ jsx52($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames36.default)(Menu_default.menu, className), children });
|
|
33502
33520
|
}
|
|
33503
33521
|
function MenuItem2({
|
|
33504
33522
|
icon,
|
|
@@ -33509,27 +33527,42 @@ function MenuItem2({
|
|
|
33509
33527
|
className,
|
|
33510
33528
|
...props
|
|
33511
33529
|
}) {
|
|
33512
|
-
return /* @__PURE__ */
|
|
33513
|
-
/* @__PURE__ */
|
|
33514
|
-
|
|
33515
|
-
|
|
33516
|
-
children
|
|
33517
|
-
] }),
|
|
33518
|
-
showChecked && /* @__PURE__ */ jsx51(Icon2, { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx51(Check, {}) }),
|
|
33519
|
-
showSubMenuIcon && /* @__PURE__ */ jsx51(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ jsx51(ChevronRight, {}) })
|
|
33530
|
+
return /* @__PURE__ */ jsxs29($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
|
|
33531
|
+
/* @__PURE__ */ jsx52(IconLabel, { icon, label, children }),
|
|
33532
|
+
showChecked && /* @__PURE__ */ jsx52(Icon2, { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx52(Check, {}) }),
|
|
33533
|
+
showSubMenuIcon && /* @__PURE__ */ jsx52(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ jsx52(ChevronRight, {}) })
|
|
33520
33534
|
] });
|
|
33521
33535
|
}
|
|
33522
33536
|
function MenuSeparator({ className, ...props }) {
|
|
33523
|
-
return /* @__PURE__ */
|
|
33537
|
+
return /* @__PURE__ */ jsx52($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames36.default)(Menu_default.separator, className) });
|
|
33524
33538
|
}
|
|
33525
|
-
function MenuSection({
|
|
33526
|
-
|
|
33527
|
-
|
|
33528
|
-
|
|
33539
|
+
function MenuSection({
|
|
33540
|
+
title,
|
|
33541
|
+
maxHeight,
|
|
33542
|
+
className,
|
|
33543
|
+
style,
|
|
33544
|
+
children,
|
|
33545
|
+
...props
|
|
33546
|
+
}) {
|
|
33547
|
+
const sectionStyle = {
|
|
33548
|
+
maxHeight,
|
|
33549
|
+
overflow: maxHeight ? "auto" : void 0
|
|
33550
|
+
};
|
|
33551
|
+
return /* @__PURE__ */ jsxs29(Fragment9, { children: [
|
|
33552
|
+
title && /* @__PURE__ */ jsx52($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
33553
|
+
/* @__PURE__ */ jsx52(
|
|
33554
|
+
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
33555
|
+
{
|
|
33556
|
+
...props,
|
|
33557
|
+
className: (0, import_classnames36.default)(Menu_default.section, className),
|
|
33558
|
+
style: { ...sectionStyle, ...style },
|
|
33559
|
+
children
|
|
33560
|
+
}
|
|
33561
|
+
)
|
|
33529
33562
|
] });
|
|
33530
33563
|
}
|
|
33531
33564
|
function SubMenuTrigger({ children, ...props }) {
|
|
33532
|
-
return /* @__PURE__ */
|
|
33565
|
+
return /* @__PURE__ */ jsx52($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
|
|
33533
33566
|
}
|
|
33534
33567
|
|
|
33535
33568
|
// src/components/Modal.tsx
|
|
@@ -33539,7 +33572,7 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
33539
33572
|
var Modal_default = { "overlay": "Modal_overlay__MzBhO", "modal-fade-in": "Modal_modal-fade-in__OTcxN", "modal": "Modal_modal__YTU3M", "left": "Modal_left__ZDU0O", "right": "Modal_right__MGFhO", "top": "Modal_top__OTY4M", "bottom": "Modal_bottom__NjY4N", "fullscreen": "Modal_fullscreen__YTNkZ", "center": "Modal_center__ZTViM", "modal-zoom": "Modal_modal-zoom__MjY4Y", "modal-left": "Modal_modal-left__YTc0N", "modal-right": "Modal_modal-right__MWY0Z", "modal-top": "Modal_modal-top__OTQ2M", "modal-bottom": "Modal_modal-bottom__NDlkZ" };
|
|
33540
33573
|
|
|
33541
33574
|
// src/components/Modal.tsx
|
|
33542
|
-
import { jsx as
|
|
33575
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
33543
33576
|
function Modal2({
|
|
33544
33577
|
position = "center",
|
|
33545
33578
|
offset,
|
|
@@ -33551,7 +33584,7 @@ function Modal2({
|
|
|
33551
33584
|
if (offset) {
|
|
33552
33585
|
style[`--modal-offset`] = offset;
|
|
33553
33586
|
}
|
|
33554
|
-
return /* @__PURE__ */
|
|
33587
|
+
return /* @__PURE__ */ jsx53($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ jsx53($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames37.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
33555
33588
|
}
|
|
33556
33589
|
|
|
33557
33590
|
// src/components/Navbar.tsx
|
|
@@ -33566,7 +33599,7 @@ import {
|
|
|
33566
33599
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
33567
33600
|
|
|
33568
33601
|
// src/components/Navbar.tsx
|
|
33569
|
-
import { jsx as
|
|
33602
|
+
import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
33570
33603
|
var NavbarContext = createContext3(void 0);
|
|
33571
33604
|
var useNavigationContext = () => {
|
|
33572
33605
|
const context = useContext5(NavbarContext);
|
|
@@ -33577,20 +33610,20 @@ var useNavigationContext = () => {
|
|
|
33577
33610
|
};
|
|
33578
33611
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
33579
33612
|
const [activeMenu, setActiveMenu] = useState14("");
|
|
33580
|
-
return /* @__PURE__ */
|
|
33613
|
+
return /* @__PURE__ */ jsx54(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ jsx54("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.nav, className), children }) });
|
|
33581
33614
|
}
|
|
33582
33615
|
function NavbarItem({ label, children, className, ...props }) {
|
|
33583
33616
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
33584
33617
|
if (label) {
|
|
33585
|
-
return /* @__PURE__ */
|
|
33586
|
-
/* @__PURE__ */
|
|
33587
|
-
/* @__PURE__ */
|
|
33588
|
-
/* @__PURE__ */
|
|
33618
|
+
return /* @__PURE__ */ jsxs30(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
33619
|
+
/* @__PURE__ */ jsxs30("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children: [
|
|
33620
|
+
/* @__PURE__ */ jsx54(Text, { children: label }),
|
|
33621
|
+
/* @__PURE__ */ jsx54(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ jsx54(ChevronRight, {}) })
|
|
33589
33622
|
] }),
|
|
33590
33623
|
children
|
|
33591
33624
|
] });
|
|
33592
33625
|
}
|
|
33593
|
-
return /* @__PURE__ */
|
|
33626
|
+
return /* @__PURE__ */ jsx54("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children });
|
|
33594
33627
|
}
|
|
33595
33628
|
|
|
33596
33629
|
// src/components/NavMenu.tsx
|
|
@@ -33601,17 +33634,17 @@ import { createContext as createContext4, useContext as useContext6, useState as
|
|
|
33601
33634
|
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" };
|
|
33602
33635
|
|
|
33603
33636
|
// src/components/NavMenu.tsx
|
|
33604
|
-
import { jsx as
|
|
33637
|
+
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
33605
33638
|
var NavMenuContext = createContext4(null);
|
|
33606
33639
|
function NavMenu({
|
|
33607
33640
|
itemBackgroundColor = "2",
|
|
33608
|
-
muteItems
|
|
33641
|
+
muteItems,
|
|
33609
33642
|
className,
|
|
33610
33643
|
style,
|
|
33611
33644
|
children,
|
|
33612
33645
|
...props
|
|
33613
33646
|
}) {
|
|
33614
|
-
return /* @__PURE__ */
|
|
33647
|
+
return /* @__PURE__ */ jsx55(NavMenuContext.Provider, { value: { itemBackgroundColor }, children: /* @__PURE__ */ jsx55(
|
|
33615
33648
|
Column,
|
|
33616
33649
|
{
|
|
33617
33650
|
...props,
|
|
@@ -33634,7 +33667,7 @@ function NavMenuGroup({
|
|
|
33634
33667
|
setMinimized((state) => !state);
|
|
33635
33668
|
}
|
|
33636
33669
|
};
|
|
33637
|
-
return /* @__PURE__ */
|
|
33670
|
+
return /* @__PURE__ */ jsxs31(
|
|
33638
33671
|
Column,
|
|
33639
33672
|
{
|
|
33640
33673
|
gap: true,
|
|
@@ -33645,7 +33678,7 @@ function NavMenuGroup({
|
|
|
33645
33678
|
allowMinimize && minimized && NavMenu_default.minimized
|
|
33646
33679
|
),
|
|
33647
33680
|
children: [
|
|
33648
|
-
/* @__PURE__ */
|
|
33681
|
+
/* @__PURE__ */ jsxs31(
|
|
33649
33682
|
Row,
|
|
33650
33683
|
{
|
|
33651
33684
|
className: NavMenu_default.item,
|
|
@@ -33653,8 +33686,8 @@ function NavMenuGroup({
|
|
|
33653
33686
|
justifyContent: "space-between",
|
|
33654
33687
|
onClick: handleClick,
|
|
33655
33688
|
children: [
|
|
33656
|
-
/* @__PURE__ */
|
|
33657
|
-
allowMinimize && /* @__PURE__ */
|
|
33689
|
+
/* @__PURE__ */ jsx55(Text, { className: NavMenu_default.title, children: title }),
|
|
33690
|
+
allowMinimize && /* @__PURE__ */ jsx55(Icon2, { rotate: minimized ? 0 : 90, color: "muted", children: /* @__PURE__ */ jsx55(ChevronRight, {}) })
|
|
33658
33691
|
]
|
|
33659
33692
|
}
|
|
33660
33693
|
),
|
|
@@ -33665,7 +33698,7 @@ function NavMenuGroup({
|
|
|
33665
33698
|
}
|
|
33666
33699
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
33667
33700
|
const { itemBackgroundColor } = useContext6(NavMenuContext);
|
|
33668
|
-
return /* @__PURE__ */
|
|
33701
|
+
return /* @__PURE__ */ jsx55(
|
|
33669
33702
|
Row,
|
|
33670
33703
|
{
|
|
33671
33704
|
...props,
|
|
@@ -33680,16 +33713,16 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
33680
33713
|
// src/components/PasswordField.tsx
|
|
33681
33714
|
import { useState as useState16 } from "react";
|
|
33682
33715
|
var import_classnames40 = __toESM(require_classnames());
|
|
33683
|
-
import { Fragment as
|
|
33716
|
+
import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
33684
33717
|
function PasswordField({ label, className, ...props }) {
|
|
33685
33718
|
const [show, setShow] = useState16(false);
|
|
33686
33719
|
const type = show ? "text" : "password";
|
|
33687
33720
|
const handleShowPassword = () => setShow((state) => !state);
|
|
33688
|
-
return /* @__PURE__ */
|
|
33689
|
-
label && /* @__PURE__ */
|
|
33690
|
-
/* @__PURE__ */
|
|
33691
|
-
/* @__PURE__ */
|
|
33692
|
-
/* @__PURE__ */
|
|
33721
|
+
return /* @__PURE__ */ jsxs32(Fragment10, { children: [
|
|
33722
|
+
label && /* @__PURE__ */ jsx56(Label2, { children: label }),
|
|
33723
|
+
/* @__PURE__ */ jsxs32($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames40.default)(TextField_default.field, className), children: [
|
|
33724
|
+
/* @__PURE__ */ jsx56($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
33725
|
+
/* @__PURE__ */ jsx56(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ jsx56(EyeSlash_default, {}) : /* @__PURE__ */ jsx56(Eye_default, {}) })
|
|
33693
33726
|
] })
|
|
33694
33727
|
] });
|
|
33695
33728
|
}
|
|
@@ -33701,9 +33734,9 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
33701
33734
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
33702
33735
|
|
|
33703
33736
|
// src/components/Popover.tsx
|
|
33704
|
-
import { jsx as
|
|
33737
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
33705
33738
|
function Popover2({ children, className, ...props }) {
|
|
33706
|
-
return /* @__PURE__ */
|
|
33739
|
+
return /* @__PURE__ */ jsx57($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames41.default)(Popover_default.popover, className), children });
|
|
33707
33740
|
}
|
|
33708
33741
|
|
|
33709
33742
|
// src/components/ProgressBar.tsx
|
|
@@ -33713,12 +33746,12 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
33713
33746
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
33714
33747
|
|
|
33715
33748
|
// src/components/ProgressBar.tsx
|
|
33716
|
-
import { Fragment as
|
|
33749
|
+
import { Fragment as Fragment11, jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
33717
33750
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
33718
|
-
return /* @__PURE__ */
|
|
33719
|
-
return /* @__PURE__ */
|
|
33720
|
-
/* @__PURE__ */
|
|
33721
|
-
showPercentage && /* @__PURE__ */
|
|
33751
|
+
return /* @__PURE__ */ jsx58($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
33752
|
+
return /* @__PURE__ */ jsxs33(Fragment11, { children: [
|
|
33753
|
+
/* @__PURE__ */ jsx58("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx58("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
33754
|
+
showPercentage && /* @__PURE__ */ jsx58("div", { className: ProgressBar_default.value, children: valueText })
|
|
33722
33755
|
] });
|
|
33723
33756
|
} });
|
|
33724
33757
|
}
|
|
@@ -33730,16 +33763,16 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
33730
33763
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
33731
33764
|
|
|
33732
33765
|
// src/components/ProgressCircle.tsx
|
|
33733
|
-
import { Fragment as
|
|
33766
|
+
import { Fragment as Fragment12, jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
33734
33767
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
33735
|
-
return /* @__PURE__ */
|
|
33768
|
+
return /* @__PURE__ */ jsx59($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames43.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
33736
33769
|
const radius = 45;
|
|
33737
33770
|
const circumference = radius * 2 * Math.PI;
|
|
33738
33771
|
const offset = circumference - percentage / 100 * circumference;
|
|
33739
|
-
return /* @__PURE__ */
|
|
33740
|
-
/* @__PURE__ */
|
|
33741
|
-
/* @__PURE__ */
|
|
33742
|
-
/* @__PURE__ */
|
|
33772
|
+
return /* @__PURE__ */ jsxs34(Fragment12, { children: [
|
|
33773
|
+
/* @__PURE__ */ jsxs34("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
33774
|
+
/* @__PURE__ */ jsx59("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
33775
|
+
/* @__PURE__ */ jsx59(
|
|
33743
33776
|
"circle",
|
|
33744
33777
|
{
|
|
33745
33778
|
className: ProgressCircle_default.fill,
|
|
@@ -33751,7 +33784,7 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
33751
33784
|
}
|
|
33752
33785
|
)
|
|
33753
33786
|
] }),
|
|
33754
|
-
showPercentage && /* @__PURE__ */
|
|
33787
|
+
showPercentage && /* @__PURE__ */ jsx59("label", { className: ProgressCircle_default.value, children: valueText })
|
|
33755
33788
|
] });
|
|
33756
33789
|
} });
|
|
33757
33790
|
}
|
|
@@ -33763,7 +33796,7 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
33763
33796
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjliM", "inputs": "RadioGroup_inputs__NjA4N", "radio": "RadioGroup_radio__MmE2Z", "variant-circle": "RadioGroup_variant-circle__NzliY", "variant-box": "RadioGroup_variant-box__Mjk3N" };
|
|
33764
33797
|
|
|
33765
33798
|
// src/components/RadioGroup.tsx
|
|
33766
|
-
import { jsx as
|
|
33799
|
+
import { jsx as jsx60, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
33767
33800
|
function RadioGroup2({
|
|
33768
33801
|
variant = "circle",
|
|
33769
33802
|
label,
|
|
@@ -33771,27 +33804,27 @@ function RadioGroup2({
|
|
|
33771
33804
|
className,
|
|
33772
33805
|
...props
|
|
33773
33806
|
}) {
|
|
33774
|
-
return /* @__PURE__ */
|
|
33807
|
+
return /* @__PURE__ */ jsxs35(
|
|
33775
33808
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
33776
33809
|
{
|
|
33777
33810
|
"aria-label": "RadioGroup",
|
|
33778
33811
|
...props,
|
|
33779
33812
|
className: (0, import_classnames44.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
33780
33813
|
children: [
|
|
33781
|
-
label && /* @__PURE__ */
|
|
33782
|
-
/* @__PURE__ */
|
|
33814
|
+
label && /* @__PURE__ */ jsx60(Label2, { children: label }),
|
|
33815
|
+
/* @__PURE__ */ jsx60("div", { className: RadioGroup_default.inputs, children })
|
|
33783
33816
|
]
|
|
33784
33817
|
}
|
|
33785
33818
|
);
|
|
33786
33819
|
}
|
|
33787
33820
|
function Radio2({ children, className, ...props }) {
|
|
33788
|
-
return /* @__PURE__ */
|
|
33821
|
+
return /* @__PURE__ */ jsx60($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames44.default)(RadioGroup_default.radio, className), children });
|
|
33789
33822
|
}
|
|
33790
33823
|
|
|
33791
33824
|
// src/components/SearchField.tsx
|
|
33792
33825
|
import { useState as useState17, useEffect as useEffect11 } from "react";
|
|
33793
33826
|
var import_classnames45 = __toESM(require_classnames());
|
|
33794
|
-
import { Fragment as
|
|
33827
|
+
import { Fragment as Fragment13, jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
33795
33828
|
function SearchField2({
|
|
33796
33829
|
label,
|
|
33797
33830
|
placeholder,
|
|
@@ -33822,9 +33855,9 @@ function SearchField2({
|
|
|
33822
33855
|
onSearch?.(searchValue);
|
|
33823
33856
|
}
|
|
33824
33857
|
}, [searchValue, delay]);
|
|
33825
|
-
return /* @__PURE__ */
|
|
33826
|
-
label && /* @__PURE__ */
|
|
33827
|
-
/* @__PURE__ */
|
|
33858
|
+
return /* @__PURE__ */ jsxs36(Fragment13, { children: [
|
|
33859
|
+
label && /* @__PURE__ */ jsx61(Label2, { children: label }),
|
|
33860
|
+
/* @__PURE__ */ jsxs36(
|
|
33828
33861
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
33829
33862
|
{
|
|
33830
33863
|
"aria-label": "Search",
|
|
@@ -33832,9 +33865,9 @@ function SearchField2({
|
|
|
33832
33865
|
className: (0, import_classnames45.default)(TextField_default.field, className),
|
|
33833
33866
|
onChange: handleChange,
|
|
33834
33867
|
children: [
|
|
33835
|
-
/* @__PURE__ */
|
|
33836
|
-
/* @__PURE__ */
|
|
33837
|
-
search && /* @__PURE__ */
|
|
33868
|
+
/* @__PURE__ */ jsx61(Icon2, { strokeColor: "8", children: /* @__PURE__ */ jsx61(Search, {}) }),
|
|
33869
|
+
/* @__PURE__ */ jsx61($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
33870
|
+
search && /* @__PURE__ */ jsx61(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ jsx61(X, {}) })
|
|
33838
33871
|
]
|
|
33839
33872
|
}
|
|
33840
33873
|
)
|
|
@@ -33849,7 +33882,7 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
33849
33882
|
var Select_default = { "select": "Select_select__NTRiY", "button": "Select_button__ZTJmY", "value": "Select_value__OWU2Z", "list": "Select_list__NTk4N", "search": "Select_search__YWI3Y" };
|
|
33850
33883
|
|
|
33851
33884
|
// src/components/Select.tsx
|
|
33852
|
-
import { jsx as
|
|
33885
|
+
import { jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
33853
33886
|
function Select2({
|
|
33854
33887
|
items = [],
|
|
33855
33888
|
value,
|
|
@@ -33883,7 +33916,7 @@ function Select2({
|
|
|
33883
33916
|
setSearch("");
|
|
33884
33917
|
onSearch?.("");
|
|
33885
33918
|
};
|
|
33886
|
-
return /* @__PURE__ */
|
|
33919
|
+
return /* @__PURE__ */ jsxs37(
|
|
33887
33920
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
33888
33921
|
{
|
|
33889
33922
|
"aria-label": "Select",
|
|
@@ -33893,21 +33926,21 @@ function Select2({
|
|
|
33893
33926
|
defaultSelectedKey: defaultValue,
|
|
33894
33927
|
onSelectionChange: handleChange,
|
|
33895
33928
|
children: [
|
|
33896
|
-
label && /* @__PURE__ */
|
|
33897
|
-
/* @__PURE__ */
|
|
33929
|
+
label && /* @__PURE__ */ jsx62(Label2, { children: label }),
|
|
33930
|
+
/* @__PURE__ */ jsx62(
|
|
33898
33931
|
Button2,
|
|
33899
33932
|
{
|
|
33900
33933
|
variant: "outline",
|
|
33901
33934
|
...buttonProps,
|
|
33902
33935
|
className: (0, import_classnames46.default)(Select_default.button, buttonProps?.className),
|
|
33903
|
-
children: /* @__PURE__ */
|
|
33904
|
-
/* @__PURE__ */
|
|
33905
|
-
/* @__PURE__ */
|
|
33936
|
+
children: /* @__PURE__ */ jsxs37("div", { className: Select_default.value, children: [
|
|
33937
|
+
/* @__PURE__ */ jsx62($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
33938
|
+
/* @__PURE__ */ jsx62(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ jsx62(ChevronRight, {}) })
|
|
33906
33939
|
] })
|
|
33907
33940
|
}
|
|
33908
33941
|
),
|
|
33909
|
-
/* @__PURE__ */
|
|
33910
|
-
allowSearch && /* @__PURE__ */
|
|
33942
|
+
/* @__PURE__ */ jsx62(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs37("div", { className: Select_default.list, children: [
|
|
33943
|
+
allowSearch && /* @__PURE__ */ jsx62(
|
|
33911
33944
|
SearchField2,
|
|
33912
33945
|
{
|
|
33913
33946
|
className: Select_default.search,
|
|
@@ -33918,8 +33951,8 @@ function Select2({
|
|
|
33918
33951
|
autoFocus: true
|
|
33919
33952
|
}
|
|
33920
33953
|
),
|
|
33921
|
-
isLoading && /* @__PURE__ */
|
|
33922
|
-
/* @__PURE__ */
|
|
33954
|
+
isLoading && /* @__PURE__ */ jsx62(Loading, { icon: "dots", placement: "center", size: "sm" }),
|
|
33955
|
+
/* @__PURE__ */ jsx62(
|
|
33923
33956
|
List,
|
|
33924
33957
|
{
|
|
33925
33958
|
...listProps,
|
|
@@ -33939,29 +33972,28 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
33939
33972
|
import { createContext as createContext5, useContext as useContext7 } from "react";
|
|
33940
33973
|
|
|
33941
33974
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
33942
|
-
var Sidebar_default = { "sidebar": "
|
|
33975
|
+
var Sidebar_default = { "sidebar": "Sidebar_sidebar__NDg2N", "header": "Sidebar_header__ZGU4M", "label": "Sidebar_label__NzZkM", "section": "Sidebar_section__NDY5Y", "title": "Sidebar_title__NmU4O", "content": "Sidebar_content__YjhhO", "item": "Sidebar_item__YmFjY", "selected": "Sidebar_selected__NWU3Y", "collapsed": "Sidebar_collapsed__MDY4N", "muted": "Sidebar_muted__N2U2M" };
|
|
33943
33976
|
|
|
33944
33977
|
// src/components/Sidebar.tsx
|
|
33945
|
-
import { jsx as
|
|
33978
|
+
import { jsx as jsx63, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
33946
33979
|
var SidebarContext = createContext5(null);
|
|
33947
33980
|
function Sidebar({
|
|
33948
33981
|
itemBackgroundColor = "2",
|
|
33949
33982
|
isCollapsed,
|
|
33950
|
-
muteItems
|
|
33951
|
-
showBorder = true,
|
|
33983
|
+
muteItems,
|
|
33952
33984
|
className,
|
|
33953
33985
|
children,
|
|
33954
33986
|
...props
|
|
33955
33987
|
}) {
|
|
33956
|
-
return /* @__PURE__ */
|
|
33988
|
+
return /* @__PURE__ */ jsx63(SidebarContext.Provider, { value: { isCollapsed, itemBackgroundColor }, children: /* @__PURE__ */ jsx63(
|
|
33957
33989
|
Column,
|
|
33958
33990
|
{
|
|
33991
|
+
border: "right",
|
|
33959
33992
|
...props,
|
|
33960
33993
|
className: (0, import_classnames47.default)(
|
|
33961
33994
|
Sidebar_default.sidebar,
|
|
33962
33995
|
isCollapsed && Sidebar_default.collapsed,
|
|
33963
33996
|
muteItems && Sidebar_default.muted,
|
|
33964
|
-
!showBorder && Sidebar_default.noborder,
|
|
33965
33997
|
className
|
|
33966
33998
|
),
|
|
33967
33999
|
children
|
|
@@ -33974,9 +34006,9 @@ function SidebarSection({
|
|
|
33974
34006
|
children,
|
|
33975
34007
|
...props
|
|
33976
34008
|
}) {
|
|
33977
|
-
return /* @__PURE__ */
|
|
33978
|
-
title && /* @__PURE__ */
|
|
33979
|
-
/* @__PURE__ */
|
|
34009
|
+
return /* @__PURE__ */ jsxs38(Column, { ...props, className: (0, import_classnames47.default)(Sidebar_default.section, className), children: [
|
|
34010
|
+
title && /* @__PURE__ */ jsx63("div", { className: Sidebar_default.title, children: title }),
|
|
34011
|
+
/* @__PURE__ */ jsx63("div", { className: Sidebar_default.content, children })
|
|
33980
34012
|
] });
|
|
33981
34013
|
}
|
|
33982
34014
|
function SidebarHeader({
|
|
@@ -33986,9 +34018,9 @@ function SidebarHeader({
|
|
|
33986
34018
|
children,
|
|
33987
34019
|
...props
|
|
33988
34020
|
}) {
|
|
33989
|
-
return /* @__PURE__ */
|
|
33990
|
-
icon && /* @__PURE__ */
|
|
33991
|
-
label && /* @__PURE__ */
|
|
34021
|
+
return /* @__PURE__ */ jsxs38(Row, { ...props, className: (0, import_classnames47.default)(Sidebar_default.header, className), children: [
|
|
34022
|
+
icon && /* @__PURE__ */ jsx63(Icon2, { size: "sm", children: icon }),
|
|
34023
|
+
label && /* @__PURE__ */ jsx63("div", { className: Sidebar_default.label, children: label }),
|
|
33992
34024
|
children
|
|
33993
34025
|
] });
|
|
33994
34026
|
}
|
|
@@ -34001,8 +34033,8 @@ function SidebarItem({
|
|
|
34001
34033
|
...props
|
|
34002
34034
|
}) {
|
|
34003
34035
|
const { isCollapsed, itemBackgroundColor } = useContext7(SidebarContext);
|
|
34004
|
-
return /* @__PURE__ */
|
|
34005
|
-
/* @__PURE__ */
|
|
34036
|
+
return /* @__PURE__ */ jsxs38($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
34037
|
+
/* @__PURE__ */ jsx63($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsxs38(
|
|
34006
34038
|
Row,
|
|
34007
34039
|
{
|
|
34008
34040
|
...props,
|
|
@@ -34010,13 +34042,13 @@ function SidebarItem({
|
|
|
34010
34042
|
hoverBackgroundColor: itemBackgroundColor,
|
|
34011
34043
|
className: (0, import_classnames47.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
34012
34044
|
children: [
|
|
34013
|
-
icon && /* @__PURE__ */
|
|
34014
|
-
label && /* @__PURE__ */
|
|
34045
|
+
icon && /* @__PURE__ */ jsx63(Icon2, { size: "sm", children: icon }),
|
|
34046
|
+
label && /* @__PURE__ */ jsx63(Text, { className: (0, import_classnames47.default)(Sidebar_default.label), children: label }),
|
|
34015
34047
|
children
|
|
34016
34048
|
]
|
|
34017
34049
|
}
|
|
34018
34050
|
) }),
|
|
34019
|
-
/* @__PURE__ */
|
|
34051
|
+
/* @__PURE__ */ jsx63(Tooltip2, { placement: "right", children: label })
|
|
34020
34052
|
] });
|
|
34021
34053
|
}
|
|
34022
34054
|
|
|
@@ -34027,17 +34059,17 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
34027
34059
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
34028
34060
|
|
|
34029
34061
|
// src/components/Slider.tsx
|
|
34030
|
-
import { Fragment as
|
|
34062
|
+
import { Fragment as Fragment14, jsx as jsx64, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
34031
34063
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
34032
|
-
return /* @__PURE__ */
|
|
34033
|
-
/* @__PURE__ */
|
|
34034
|
-
label && /* @__PURE__ */
|
|
34035
|
-
showValue && /* @__PURE__ */
|
|
34064
|
+
return /* @__PURE__ */ jsxs39($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames48.default)(Slider_default.slider, className), children: [
|
|
34065
|
+
/* @__PURE__ */ jsxs39("div", { className: Slider_default.header, children: [
|
|
34066
|
+
label && /* @__PURE__ */ jsx64(Label2, { className: Slider_default.label, children: label }),
|
|
34067
|
+
showValue && /* @__PURE__ */ jsx64($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
34036
34068
|
] }),
|
|
34037
|
-
/* @__PURE__ */
|
|
34069
|
+
/* @__PURE__ */ jsx64($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
34038
34070
|
const isHorizontal = state.orientation === "horizontal";
|
|
34039
|
-
return /* @__PURE__ */
|
|
34040
|
-
/* @__PURE__ */
|
|
34071
|
+
return /* @__PURE__ */ jsxs39(Fragment14, { children: [
|
|
34072
|
+
/* @__PURE__ */ jsx64(
|
|
34041
34073
|
"div",
|
|
34042
34074
|
{
|
|
34043
34075
|
className: Slider_default.fill,
|
|
@@ -34046,7 +34078,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
34046
34078
|
}
|
|
34047
34079
|
}
|
|
34048
34080
|
),
|
|
34049
|
-
/* @__PURE__ */
|
|
34081
|
+
/* @__PURE__ */ jsx64($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
34050
34082
|
] });
|
|
34051
34083
|
} })
|
|
34052
34084
|
] });
|
|
@@ -34059,11 +34091,11 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
34059
34091
|
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" };
|
|
34060
34092
|
|
|
34061
34093
|
// src/components/StatusLight.tsx
|
|
34062
|
-
import { jsx as
|
|
34094
|
+
import { jsx as jsx65, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
34063
34095
|
function StatusLight(props) {
|
|
34064
34096
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
34065
|
-
return /* @__PURE__ */
|
|
34066
|
-
/* @__PURE__ */
|
|
34097
|
+
return /* @__PURE__ */ jsxs40("div", { ...domProps, className: (0, import_classnames49.default)(StatusLight_default.statuslight, className), children: [
|
|
34098
|
+
/* @__PURE__ */ jsx65("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx65(
|
|
34067
34099
|
"div",
|
|
34068
34100
|
{
|
|
34069
34101
|
className: (0, import_classnames49.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -34081,12 +34113,12 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
34081
34113
|
var Switch_default = { "switch": "Switch_switch__NzIwM", "track": "Switch_track__NWQ0M", "knob": "Switch_knob__NDU3M" };
|
|
34082
34114
|
|
|
34083
34115
|
// src/components/Switch.tsx
|
|
34084
|
-
import { jsx as
|
|
34116
|
+
import { jsx as jsx66, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
34085
34117
|
function Switch2({ label, children, className, ...props }) {
|
|
34086
|
-
return /* @__PURE__ */
|
|
34087
|
-
label && /* @__PURE__ */
|
|
34088
|
-
/* @__PURE__ */
|
|
34089
|
-
/* @__PURE__ */
|
|
34118
|
+
return /* @__PURE__ */ jsxs41(Column, { children: [
|
|
34119
|
+
label && /* @__PURE__ */ jsx66(Label2, { children: label }),
|
|
34120
|
+
/* @__PURE__ */ jsxs41($8e59e948500a8fe1$export$b5d5cf8927ab7262, { ...props, className: (0, import_classnames50.default)(Switch_default.switch, className), children: [
|
|
34121
|
+
/* @__PURE__ */ jsx66("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx66("div", { className: Switch_default.knob }) }),
|
|
34090
34122
|
children
|
|
34091
34123
|
] })
|
|
34092
34124
|
] });
|
|
@@ -34096,18 +34128,18 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
34096
34128
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
34097
34129
|
|
|
34098
34130
|
// src/components/Tabs.tsx
|
|
34099
|
-
import { jsx as
|
|
34131
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
34100
34132
|
function Tabs2({ children, ...props }) {
|
|
34101
|
-
return /* @__PURE__ */
|
|
34133
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
34102
34134
|
}
|
|
34103
34135
|
function TabList2({ children, ...props }) {
|
|
34104
|
-
return /* @__PURE__ */
|
|
34136
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
34105
34137
|
}
|
|
34106
34138
|
function Tab({ children, ...props }) {
|
|
34107
|
-
return /* @__PURE__ */
|
|
34139
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
34108
34140
|
}
|
|
34109
34141
|
function TabPanel2({ children, ...props }) {
|
|
34110
|
-
return /* @__PURE__ */
|
|
34142
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
34111
34143
|
}
|
|
34112
34144
|
|
|
34113
34145
|
// src/components/ThemeButton.tsx
|
|
@@ -34117,7 +34149,7 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
34117
34149
|
var ThemeButton_default = { "button": "ThemeButton_button__MDUzN" };
|
|
34118
34150
|
|
|
34119
34151
|
// src/components/ThemeButton.tsx
|
|
34120
|
-
import { jsx as
|
|
34152
|
+
import { jsx as jsx68, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
34121
34153
|
function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
34122
34154
|
const { theme, setTheme } = useTheme();
|
|
34123
34155
|
const transitions = useTransition(theme, {
|
|
@@ -34136,7 +34168,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34136
34168
|
setTheme(theme === "light" ? "dark" : "light");
|
|
34137
34169
|
onPress?.(e);
|
|
34138
34170
|
}
|
|
34139
|
-
return /* @__PURE__ */
|
|
34171
|
+
return /* @__PURE__ */ jsxs42(
|
|
34140
34172
|
Button2,
|
|
34141
34173
|
{
|
|
34142
34174
|
...props,
|
|
@@ -34146,7 +34178,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34146
34178
|
children: [
|
|
34147
34179
|
transitions((style, item) => (
|
|
34148
34180
|
// @ts-ignore
|
|
34149
|
-
/* @__PURE__ */
|
|
34181
|
+
/* @__PURE__ */ jsx68(animated.div, { style, children: /* @__PURE__ */ jsx68(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ jsx68(Sun, {}) : /* @__PURE__ */ jsx68(Moon, {}) }) }, item)
|
|
34150
34182
|
)),
|
|
34151
34183
|
"\xA0"
|
|
34152
34184
|
]
|
|
@@ -34161,12 +34193,12 @@ var import_classnames52 = __toESM(require_classnames());
|
|
|
34161
34193
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
34162
34194
|
|
|
34163
34195
|
// src/components/Toggle.tsx
|
|
34164
|
-
import { Fragment as
|
|
34196
|
+
import { Fragment as Fragment15, jsx as jsx69, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
34165
34197
|
function Toggle({ label, children, className, ...props }) {
|
|
34166
34198
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
34167
|
-
return /* @__PURE__ */
|
|
34168
|
-
label && /* @__PURE__ */
|
|
34169
|
-
/* @__PURE__ */
|
|
34199
|
+
return /* @__PURE__ */ jsxs43(Fragment15, { children: [
|
|
34200
|
+
label && /* @__PURE__ */ jsx69(Label2, { children: label }),
|
|
34201
|
+
/* @__PURE__ */ jsx69(
|
|
34170
34202
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
34171
34203
|
{
|
|
34172
34204
|
...props,
|
|
@@ -34185,7 +34217,7 @@ var import_classnames53 = __toESM(require_classnames());
|
|
|
34185
34217
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDJiO", "list": "ToggleGroup_list__NTM2M", "item": "ToggleGroup_item__MWFiY", "primary": "ToggleGroup_primary__ZTAyY" };
|
|
34186
34218
|
|
|
34187
34219
|
// src/components/ToggleGroup.tsx
|
|
34188
|
-
import { jsx as
|
|
34220
|
+
import { jsx as jsx70, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
34189
34221
|
function ToggleGroup({
|
|
34190
34222
|
label,
|
|
34191
34223
|
value,
|
|
@@ -34204,7 +34236,7 @@ function ToggleGroup({
|
|
|
34204
34236
|
onSelectionChange?.(keys);
|
|
34205
34237
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
34206
34238
|
};
|
|
34207
|
-
return /* @__PURE__ */
|
|
34239
|
+
return /* @__PURE__ */ jsxs44(
|
|
34208
34240
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
34209
34241
|
{
|
|
34210
34242
|
...props,
|
|
@@ -34214,18 +34246,18 @@ function ToggleGroup({
|
|
|
34214
34246
|
onSelectionChange: handleChange,
|
|
34215
34247
|
className: (0, import_classnames53.default)(ToggleGroup_default.group, className, variant && ToggleGroup_default[variant]),
|
|
34216
34248
|
children: [
|
|
34217
|
-
label && /* @__PURE__ */
|
|
34218
|
-
/* @__PURE__ */
|
|
34249
|
+
label && /* @__PURE__ */ jsx70(Label2, { children: label }),
|
|
34250
|
+
/* @__PURE__ */ jsx70($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
34219
34251
|
]
|
|
34220
34252
|
}
|
|
34221
34253
|
);
|
|
34222
34254
|
}
|
|
34223
34255
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
34224
|
-
return /* @__PURE__ */
|
|
34256
|
+
return /* @__PURE__ */ jsx70($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
|
|
34225
34257
|
}
|
|
34226
34258
|
|
|
34227
34259
|
// src/components/ZenProvider.tsx
|
|
34228
|
-
import { jsx as
|
|
34260
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
34229
34261
|
var defaultToastConfig = {
|
|
34230
34262
|
duration: 3e3
|
|
34231
34263
|
};
|
|
@@ -34236,7 +34268,7 @@ function ZenProvider({
|
|
|
34236
34268
|
toast = defaultToastConfig
|
|
34237
34269
|
}) {
|
|
34238
34270
|
useInitTheme(theme, colorScheme);
|
|
34239
|
-
return /* @__PURE__ */
|
|
34271
|
+
return /* @__PURE__ */ jsx71(ToastProvider, { ...toast, children });
|
|
34240
34272
|
}
|
|
34241
34273
|
export {
|
|
34242
34274
|
Accordion,
|
|
@@ -34276,6 +34308,7 @@ export {
|
|
|
34276
34308
|
Heading2 as Heading,
|
|
34277
34309
|
HoverTrigger,
|
|
34278
34310
|
Icon2 as Icon,
|
|
34311
|
+
IconLabel,
|
|
34279
34312
|
Image,
|
|
34280
34313
|
InlineEditField,
|
|
34281
34314
|
Label2 as Label,
|