@umami/react-zen 0.186.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 +37 -34
- package/dist/index.d.mts +30 -21
- package/dist/index.d.ts +30 -21
- package/dist/index.js +150 -135
- package/dist/index.mjs +150 -135
- package/package.json +1 -1
- package/styles.css +37 -34
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 { Fragment as Fragment9, 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,18 +33527,14 @@ 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
33539
|
function MenuSection({
|
|
33526
33540
|
title,
|
|
@@ -33534,9 +33548,9 @@ function MenuSection({
|
|
|
33534
33548
|
maxHeight,
|
|
33535
33549
|
overflow: maxHeight ? "auto" : void 0
|
|
33536
33550
|
};
|
|
33537
|
-
return /* @__PURE__ */
|
|
33538
|
-
title && /* @__PURE__ */
|
|
33539
|
-
/* @__PURE__ */
|
|
33551
|
+
return /* @__PURE__ */ jsxs29(Fragment9, { children: [
|
|
33552
|
+
title && /* @__PURE__ */ jsx52($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
33553
|
+
/* @__PURE__ */ jsx52(
|
|
33540
33554
|
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
33541
33555
|
{
|
|
33542
33556
|
...props,
|
|
@@ -33548,7 +33562,7 @@ function MenuSection({
|
|
|
33548
33562
|
] });
|
|
33549
33563
|
}
|
|
33550
33564
|
function SubMenuTrigger({ children, ...props }) {
|
|
33551
|
-
return /* @__PURE__ */
|
|
33565
|
+
return /* @__PURE__ */ jsx52($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
|
|
33552
33566
|
}
|
|
33553
33567
|
|
|
33554
33568
|
// src/components/Modal.tsx
|
|
@@ -33558,7 +33572,7 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
33558
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" };
|
|
33559
33573
|
|
|
33560
33574
|
// src/components/Modal.tsx
|
|
33561
|
-
import { jsx as
|
|
33575
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
33562
33576
|
function Modal2({
|
|
33563
33577
|
position = "center",
|
|
33564
33578
|
offset,
|
|
@@ -33570,7 +33584,7 @@ function Modal2({
|
|
|
33570
33584
|
if (offset) {
|
|
33571
33585
|
style[`--modal-offset`] = offset;
|
|
33572
33586
|
}
|
|
33573
|
-
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 }) });
|
|
33574
33588
|
}
|
|
33575
33589
|
|
|
33576
33590
|
// src/components/Navbar.tsx
|
|
@@ -33585,7 +33599,7 @@ import {
|
|
|
33585
33599
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
33586
33600
|
|
|
33587
33601
|
// src/components/Navbar.tsx
|
|
33588
|
-
import { jsx as
|
|
33602
|
+
import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
33589
33603
|
var NavbarContext = createContext3(void 0);
|
|
33590
33604
|
var useNavigationContext = () => {
|
|
33591
33605
|
const context = useContext5(NavbarContext);
|
|
@@ -33596,20 +33610,20 @@ var useNavigationContext = () => {
|
|
|
33596
33610
|
};
|
|
33597
33611
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
33598
33612
|
const [activeMenu, setActiveMenu] = useState14("");
|
|
33599
|
-
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 }) });
|
|
33600
33614
|
}
|
|
33601
33615
|
function NavbarItem({ label, children, className, ...props }) {
|
|
33602
33616
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
33603
33617
|
if (label) {
|
|
33604
|
-
return /* @__PURE__ */
|
|
33605
|
-
/* @__PURE__ */
|
|
33606
|
-
/* @__PURE__ */
|
|
33607
|
-
/* @__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, {}) })
|
|
33608
33622
|
] }),
|
|
33609
33623
|
children
|
|
33610
33624
|
] });
|
|
33611
33625
|
}
|
|
33612
|
-
return /* @__PURE__ */
|
|
33626
|
+
return /* @__PURE__ */ jsx54("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children });
|
|
33613
33627
|
}
|
|
33614
33628
|
|
|
33615
33629
|
// src/components/NavMenu.tsx
|
|
@@ -33620,7 +33634,7 @@ import { createContext as createContext4, useContext as useContext6, useState as
|
|
|
33620
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" };
|
|
33621
33635
|
|
|
33622
33636
|
// src/components/NavMenu.tsx
|
|
33623
|
-
import { jsx as
|
|
33637
|
+
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
33624
33638
|
var NavMenuContext = createContext4(null);
|
|
33625
33639
|
function NavMenu({
|
|
33626
33640
|
itemBackgroundColor = "2",
|
|
@@ -33630,7 +33644,7 @@ function NavMenu({
|
|
|
33630
33644
|
children,
|
|
33631
33645
|
...props
|
|
33632
33646
|
}) {
|
|
33633
|
-
return /* @__PURE__ */
|
|
33647
|
+
return /* @__PURE__ */ jsx55(NavMenuContext.Provider, { value: { itemBackgroundColor }, children: /* @__PURE__ */ jsx55(
|
|
33634
33648
|
Column,
|
|
33635
33649
|
{
|
|
33636
33650
|
...props,
|
|
@@ -33653,7 +33667,7 @@ function NavMenuGroup({
|
|
|
33653
33667
|
setMinimized((state) => !state);
|
|
33654
33668
|
}
|
|
33655
33669
|
};
|
|
33656
|
-
return /* @__PURE__ */
|
|
33670
|
+
return /* @__PURE__ */ jsxs31(
|
|
33657
33671
|
Column,
|
|
33658
33672
|
{
|
|
33659
33673
|
gap: true,
|
|
@@ -33664,7 +33678,7 @@ function NavMenuGroup({
|
|
|
33664
33678
|
allowMinimize && minimized && NavMenu_default.minimized
|
|
33665
33679
|
),
|
|
33666
33680
|
children: [
|
|
33667
|
-
/* @__PURE__ */
|
|
33681
|
+
/* @__PURE__ */ jsxs31(
|
|
33668
33682
|
Row,
|
|
33669
33683
|
{
|
|
33670
33684
|
className: NavMenu_default.item,
|
|
@@ -33672,8 +33686,8 @@ function NavMenuGroup({
|
|
|
33672
33686
|
justifyContent: "space-between",
|
|
33673
33687
|
onClick: handleClick,
|
|
33674
33688
|
children: [
|
|
33675
|
-
/* @__PURE__ */
|
|
33676
|
-
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, {}) })
|
|
33677
33691
|
]
|
|
33678
33692
|
}
|
|
33679
33693
|
),
|
|
@@ -33684,7 +33698,7 @@ function NavMenuGroup({
|
|
|
33684
33698
|
}
|
|
33685
33699
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
33686
33700
|
const { itemBackgroundColor } = useContext6(NavMenuContext);
|
|
33687
|
-
return /* @__PURE__ */
|
|
33701
|
+
return /* @__PURE__ */ jsx55(
|
|
33688
33702
|
Row,
|
|
33689
33703
|
{
|
|
33690
33704
|
...props,
|
|
@@ -33699,16 +33713,16 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
33699
33713
|
// src/components/PasswordField.tsx
|
|
33700
33714
|
import { useState as useState16 } from "react";
|
|
33701
33715
|
var import_classnames40 = __toESM(require_classnames());
|
|
33702
|
-
import { Fragment as Fragment10, jsx as
|
|
33716
|
+
import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
33703
33717
|
function PasswordField({ label, className, ...props }) {
|
|
33704
33718
|
const [show, setShow] = useState16(false);
|
|
33705
33719
|
const type = show ? "text" : "password";
|
|
33706
33720
|
const handleShowPassword = () => setShow((state) => !state);
|
|
33707
|
-
return /* @__PURE__ */
|
|
33708
|
-
label && /* @__PURE__ */
|
|
33709
|
-
/* @__PURE__ */
|
|
33710
|
-
/* @__PURE__ */
|
|
33711
|
-
/* @__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, {}) })
|
|
33712
33726
|
] })
|
|
33713
33727
|
] });
|
|
33714
33728
|
}
|
|
@@ -33720,9 +33734,9 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
33720
33734
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
33721
33735
|
|
|
33722
33736
|
// src/components/Popover.tsx
|
|
33723
|
-
import { jsx as
|
|
33737
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
33724
33738
|
function Popover2({ children, className, ...props }) {
|
|
33725
|
-
return /* @__PURE__ */
|
|
33739
|
+
return /* @__PURE__ */ jsx57($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames41.default)(Popover_default.popover, className), children });
|
|
33726
33740
|
}
|
|
33727
33741
|
|
|
33728
33742
|
// src/components/ProgressBar.tsx
|
|
@@ -33732,12 +33746,12 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
33732
33746
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
33733
33747
|
|
|
33734
33748
|
// src/components/ProgressBar.tsx
|
|
33735
|
-
import { Fragment as Fragment11, jsx as
|
|
33749
|
+
import { Fragment as Fragment11, jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
33736
33750
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
33737
|
-
return /* @__PURE__ */
|
|
33738
|
-
return /* @__PURE__ */
|
|
33739
|
-
/* @__PURE__ */
|
|
33740
|
-
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 })
|
|
33741
33755
|
] });
|
|
33742
33756
|
} });
|
|
33743
33757
|
}
|
|
@@ -33749,16 +33763,16 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
33749
33763
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
33750
33764
|
|
|
33751
33765
|
// src/components/ProgressCircle.tsx
|
|
33752
|
-
import { Fragment as Fragment12, jsx as
|
|
33766
|
+
import { Fragment as Fragment12, jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
33753
33767
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
33754
|
-
return /* @__PURE__ */
|
|
33768
|
+
return /* @__PURE__ */ jsx59($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames43.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
33755
33769
|
const radius = 45;
|
|
33756
33770
|
const circumference = radius * 2 * Math.PI;
|
|
33757
33771
|
const offset = circumference - percentage / 100 * circumference;
|
|
33758
|
-
return /* @__PURE__ */
|
|
33759
|
-
/* @__PURE__ */
|
|
33760
|
-
/* @__PURE__ */
|
|
33761
|
-
/* @__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(
|
|
33762
33776
|
"circle",
|
|
33763
33777
|
{
|
|
33764
33778
|
className: ProgressCircle_default.fill,
|
|
@@ -33770,7 +33784,7 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
33770
33784
|
}
|
|
33771
33785
|
)
|
|
33772
33786
|
] }),
|
|
33773
|
-
showPercentage && /* @__PURE__ */
|
|
33787
|
+
showPercentage && /* @__PURE__ */ jsx59("label", { className: ProgressCircle_default.value, children: valueText })
|
|
33774
33788
|
] });
|
|
33775
33789
|
} });
|
|
33776
33790
|
}
|
|
@@ -33782,7 +33796,7 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
33782
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" };
|
|
33783
33797
|
|
|
33784
33798
|
// src/components/RadioGroup.tsx
|
|
33785
|
-
import { jsx as
|
|
33799
|
+
import { jsx as jsx60, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
33786
33800
|
function RadioGroup2({
|
|
33787
33801
|
variant = "circle",
|
|
33788
33802
|
label,
|
|
@@ -33790,27 +33804,27 @@ function RadioGroup2({
|
|
|
33790
33804
|
className,
|
|
33791
33805
|
...props
|
|
33792
33806
|
}) {
|
|
33793
|
-
return /* @__PURE__ */
|
|
33807
|
+
return /* @__PURE__ */ jsxs35(
|
|
33794
33808
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
33795
33809
|
{
|
|
33796
33810
|
"aria-label": "RadioGroup",
|
|
33797
33811
|
...props,
|
|
33798
33812
|
className: (0, import_classnames44.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
33799
33813
|
children: [
|
|
33800
|
-
label && /* @__PURE__ */
|
|
33801
|
-
/* @__PURE__ */
|
|
33814
|
+
label && /* @__PURE__ */ jsx60(Label2, { children: label }),
|
|
33815
|
+
/* @__PURE__ */ jsx60("div", { className: RadioGroup_default.inputs, children })
|
|
33802
33816
|
]
|
|
33803
33817
|
}
|
|
33804
33818
|
);
|
|
33805
33819
|
}
|
|
33806
33820
|
function Radio2({ children, className, ...props }) {
|
|
33807
|
-
return /* @__PURE__ */
|
|
33821
|
+
return /* @__PURE__ */ jsx60($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames44.default)(RadioGroup_default.radio, className), children });
|
|
33808
33822
|
}
|
|
33809
33823
|
|
|
33810
33824
|
// src/components/SearchField.tsx
|
|
33811
33825
|
import { useState as useState17, useEffect as useEffect11 } from "react";
|
|
33812
33826
|
var import_classnames45 = __toESM(require_classnames());
|
|
33813
|
-
import { Fragment as Fragment13, jsx as
|
|
33827
|
+
import { Fragment as Fragment13, jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
33814
33828
|
function SearchField2({
|
|
33815
33829
|
label,
|
|
33816
33830
|
placeholder,
|
|
@@ -33841,9 +33855,9 @@ function SearchField2({
|
|
|
33841
33855
|
onSearch?.(searchValue);
|
|
33842
33856
|
}
|
|
33843
33857
|
}, [searchValue, delay]);
|
|
33844
|
-
return /* @__PURE__ */
|
|
33845
|
-
label && /* @__PURE__ */
|
|
33846
|
-
/* @__PURE__ */
|
|
33858
|
+
return /* @__PURE__ */ jsxs36(Fragment13, { children: [
|
|
33859
|
+
label && /* @__PURE__ */ jsx61(Label2, { children: label }),
|
|
33860
|
+
/* @__PURE__ */ jsxs36(
|
|
33847
33861
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
33848
33862
|
{
|
|
33849
33863
|
"aria-label": "Search",
|
|
@@ -33851,9 +33865,9 @@ function SearchField2({
|
|
|
33851
33865
|
className: (0, import_classnames45.default)(TextField_default.field, className),
|
|
33852
33866
|
onChange: handleChange,
|
|
33853
33867
|
children: [
|
|
33854
|
-
/* @__PURE__ */
|
|
33855
|
-
/* @__PURE__ */
|
|
33856
|
-
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, {}) })
|
|
33857
33871
|
]
|
|
33858
33872
|
}
|
|
33859
33873
|
)
|
|
@@ -33868,7 +33882,7 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
33868
33882
|
var Select_default = { "select": "Select_select__NTRiY", "button": "Select_button__ZTJmY", "value": "Select_value__OWU2Z", "list": "Select_list__NTk4N", "search": "Select_search__YWI3Y" };
|
|
33869
33883
|
|
|
33870
33884
|
// src/components/Select.tsx
|
|
33871
|
-
import { jsx as
|
|
33885
|
+
import { jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
33872
33886
|
function Select2({
|
|
33873
33887
|
items = [],
|
|
33874
33888
|
value,
|
|
@@ -33902,7 +33916,7 @@ function Select2({
|
|
|
33902
33916
|
setSearch("");
|
|
33903
33917
|
onSearch?.("");
|
|
33904
33918
|
};
|
|
33905
|
-
return /* @__PURE__ */
|
|
33919
|
+
return /* @__PURE__ */ jsxs37(
|
|
33906
33920
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
33907
33921
|
{
|
|
33908
33922
|
"aria-label": "Select",
|
|
@@ -33912,21 +33926,21 @@ function Select2({
|
|
|
33912
33926
|
defaultSelectedKey: defaultValue,
|
|
33913
33927
|
onSelectionChange: handleChange,
|
|
33914
33928
|
children: [
|
|
33915
|
-
label && /* @__PURE__ */
|
|
33916
|
-
/* @__PURE__ */
|
|
33929
|
+
label && /* @__PURE__ */ jsx62(Label2, { children: label }),
|
|
33930
|
+
/* @__PURE__ */ jsx62(
|
|
33917
33931
|
Button2,
|
|
33918
33932
|
{
|
|
33919
33933
|
variant: "outline",
|
|
33920
33934
|
...buttonProps,
|
|
33921
33935
|
className: (0, import_classnames46.default)(Select_default.button, buttonProps?.className),
|
|
33922
|
-
children: /* @__PURE__ */
|
|
33923
|
-
/* @__PURE__ */
|
|
33924
|
-
/* @__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, {}) })
|
|
33925
33939
|
] })
|
|
33926
33940
|
}
|
|
33927
33941
|
),
|
|
33928
|
-
/* @__PURE__ */
|
|
33929
|
-
allowSearch && /* @__PURE__ */
|
|
33942
|
+
/* @__PURE__ */ jsx62(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs37("div", { className: Select_default.list, children: [
|
|
33943
|
+
allowSearch && /* @__PURE__ */ jsx62(
|
|
33930
33944
|
SearchField2,
|
|
33931
33945
|
{
|
|
33932
33946
|
className: Select_default.search,
|
|
@@ -33937,8 +33951,8 @@ function Select2({
|
|
|
33937
33951
|
autoFocus: true
|
|
33938
33952
|
}
|
|
33939
33953
|
),
|
|
33940
|
-
isLoading && /* @__PURE__ */
|
|
33941
|
-
/* @__PURE__ */
|
|
33954
|
+
isLoading && /* @__PURE__ */ jsx62(Loading, { icon: "dots", placement: "center", size: "sm" }),
|
|
33955
|
+
/* @__PURE__ */ jsx62(
|
|
33942
33956
|
List,
|
|
33943
33957
|
{
|
|
33944
33958
|
...listProps,
|
|
@@ -33961,7 +33975,7 @@ import { createContext as createContext5, useContext as useContext7 } from "reac
|
|
|
33961
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" };
|
|
33962
33976
|
|
|
33963
33977
|
// src/components/Sidebar.tsx
|
|
33964
|
-
import { jsx as
|
|
33978
|
+
import { jsx as jsx63, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
33965
33979
|
var SidebarContext = createContext5(null);
|
|
33966
33980
|
function Sidebar({
|
|
33967
33981
|
itemBackgroundColor = "2",
|
|
@@ -33971,7 +33985,7 @@ function Sidebar({
|
|
|
33971
33985
|
children,
|
|
33972
33986
|
...props
|
|
33973
33987
|
}) {
|
|
33974
|
-
return /* @__PURE__ */
|
|
33988
|
+
return /* @__PURE__ */ jsx63(SidebarContext.Provider, { value: { isCollapsed, itemBackgroundColor }, children: /* @__PURE__ */ jsx63(
|
|
33975
33989
|
Column,
|
|
33976
33990
|
{
|
|
33977
33991
|
border: "right",
|
|
@@ -33992,9 +34006,9 @@ function SidebarSection({
|
|
|
33992
34006
|
children,
|
|
33993
34007
|
...props
|
|
33994
34008
|
}) {
|
|
33995
|
-
return /* @__PURE__ */
|
|
33996
|
-
title && /* @__PURE__ */
|
|
33997
|
-
/* @__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 })
|
|
33998
34012
|
] });
|
|
33999
34013
|
}
|
|
34000
34014
|
function SidebarHeader({
|
|
@@ -34004,9 +34018,9 @@ function SidebarHeader({
|
|
|
34004
34018
|
children,
|
|
34005
34019
|
...props
|
|
34006
34020
|
}) {
|
|
34007
|
-
return /* @__PURE__ */
|
|
34008
|
-
icon && /* @__PURE__ */
|
|
34009
|
-
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 }),
|
|
34010
34024
|
children
|
|
34011
34025
|
] });
|
|
34012
34026
|
}
|
|
@@ -34019,8 +34033,8 @@ function SidebarItem({
|
|
|
34019
34033
|
...props
|
|
34020
34034
|
}) {
|
|
34021
34035
|
const { isCollapsed, itemBackgroundColor } = useContext7(SidebarContext);
|
|
34022
|
-
return /* @__PURE__ */
|
|
34023
|
-
/* @__PURE__ */
|
|
34036
|
+
return /* @__PURE__ */ jsxs38($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
34037
|
+
/* @__PURE__ */ jsx63($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsxs38(
|
|
34024
34038
|
Row,
|
|
34025
34039
|
{
|
|
34026
34040
|
...props,
|
|
@@ -34028,13 +34042,13 @@ function SidebarItem({
|
|
|
34028
34042
|
hoverBackgroundColor: itemBackgroundColor,
|
|
34029
34043
|
className: (0, import_classnames47.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
34030
34044
|
children: [
|
|
34031
|
-
icon && /* @__PURE__ */
|
|
34032
|
-
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 }),
|
|
34033
34047
|
children
|
|
34034
34048
|
]
|
|
34035
34049
|
}
|
|
34036
34050
|
) }),
|
|
34037
|
-
/* @__PURE__ */
|
|
34051
|
+
/* @__PURE__ */ jsx63(Tooltip2, { placement: "right", children: label })
|
|
34038
34052
|
] });
|
|
34039
34053
|
}
|
|
34040
34054
|
|
|
@@ -34045,17 +34059,17 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
34045
34059
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
34046
34060
|
|
|
34047
34061
|
// src/components/Slider.tsx
|
|
34048
|
-
import { Fragment as Fragment14, jsx as
|
|
34062
|
+
import { Fragment as Fragment14, jsx as jsx64, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
34049
34063
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
34050
|
-
return /* @__PURE__ */
|
|
34051
|
-
/* @__PURE__ */
|
|
34052
|
-
label && /* @__PURE__ */
|
|
34053
|
-
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 })
|
|
34054
34068
|
] }),
|
|
34055
|
-
/* @__PURE__ */
|
|
34069
|
+
/* @__PURE__ */ jsx64($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
34056
34070
|
const isHorizontal = state.orientation === "horizontal";
|
|
34057
|
-
return /* @__PURE__ */
|
|
34058
|
-
/* @__PURE__ */
|
|
34071
|
+
return /* @__PURE__ */ jsxs39(Fragment14, { children: [
|
|
34072
|
+
/* @__PURE__ */ jsx64(
|
|
34059
34073
|
"div",
|
|
34060
34074
|
{
|
|
34061
34075
|
className: Slider_default.fill,
|
|
@@ -34064,7 +34078,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
34064
34078
|
}
|
|
34065
34079
|
}
|
|
34066
34080
|
),
|
|
34067
|
-
/* @__PURE__ */
|
|
34081
|
+
/* @__PURE__ */ jsx64($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
34068
34082
|
] });
|
|
34069
34083
|
} })
|
|
34070
34084
|
] });
|
|
@@ -34077,11 +34091,11 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
34077
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" };
|
|
34078
34092
|
|
|
34079
34093
|
// src/components/StatusLight.tsx
|
|
34080
|
-
import { jsx as
|
|
34094
|
+
import { jsx as jsx65, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
34081
34095
|
function StatusLight(props) {
|
|
34082
34096
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
34083
|
-
return /* @__PURE__ */
|
|
34084
|
-
/* @__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(
|
|
34085
34099
|
"div",
|
|
34086
34100
|
{
|
|
34087
34101
|
className: (0, import_classnames49.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -34099,12 +34113,12 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
34099
34113
|
var Switch_default = { "switch": "Switch_switch__NzIwM", "track": "Switch_track__NWQ0M", "knob": "Switch_knob__NDU3M" };
|
|
34100
34114
|
|
|
34101
34115
|
// src/components/Switch.tsx
|
|
34102
|
-
import { jsx as
|
|
34116
|
+
import { jsx as jsx66, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
34103
34117
|
function Switch2({ label, children, className, ...props }) {
|
|
34104
|
-
return /* @__PURE__ */
|
|
34105
|
-
label && /* @__PURE__ */
|
|
34106
|
-
/* @__PURE__ */
|
|
34107
|
-
/* @__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 }) }),
|
|
34108
34122
|
children
|
|
34109
34123
|
] })
|
|
34110
34124
|
] });
|
|
@@ -34114,18 +34128,18 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
34114
34128
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
34115
34129
|
|
|
34116
34130
|
// src/components/Tabs.tsx
|
|
34117
|
-
import { jsx as
|
|
34131
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
34118
34132
|
function Tabs2({ children, ...props }) {
|
|
34119
|
-
return /* @__PURE__ */
|
|
34133
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
34120
34134
|
}
|
|
34121
34135
|
function TabList2({ children, ...props }) {
|
|
34122
|
-
return /* @__PURE__ */
|
|
34136
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
34123
34137
|
}
|
|
34124
34138
|
function Tab({ children, ...props }) {
|
|
34125
|
-
return /* @__PURE__ */
|
|
34139
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
34126
34140
|
}
|
|
34127
34141
|
function TabPanel2({ children, ...props }) {
|
|
34128
|
-
return /* @__PURE__ */
|
|
34142
|
+
return /* @__PURE__ */ jsx67($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
34129
34143
|
}
|
|
34130
34144
|
|
|
34131
34145
|
// src/components/ThemeButton.tsx
|
|
@@ -34135,7 +34149,7 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
34135
34149
|
var ThemeButton_default = { "button": "ThemeButton_button__MDUzN" };
|
|
34136
34150
|
|
|
34137
34151
|
// src/components/ThemeButton.tsx
|
|
34138
|
-
import { jsx as
|
|
34152
|
+
import { jsx as jsx68, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
34139
34153
|
function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
34140
34154
|
const { theme, setTheme } = useTheme();
|
|
34141
34155
|
const transitions = useTransition(theme, {
|
|
@@ -34154,7 +34168,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34154
34168
|
setTheme(theme === "light" ? "dark" : "light");
|
|
34155
34169
|
onPress?.(e);
|
|
34156
34170
|
}
|
|
34157
|
-
return /* @__PURE__ */
|
|
34171
|
+
return /* @__PURE__ */ jsxs42(
|
|
34158
34172
|
Button2,
|
|
34159
34173
|
{
|
|
34160
34174
|
...props,
|
|
@@ -34164,7 +34178,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34164
34178
|
children: [
|
|
34165
34179
|
transitions((style, item) => (
|
|
34166
34180
|
// @ts-ignore
|
|
34167
|
-
/* @__PURE__ */
|
|
34181
|
+
/* @__PURE__ */ jsx68(animated.div, { style, children: /* @__PURE__ */ jsx68(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ jsx68(Sun, {}) : /* @__PURE__ */ jsx68(Moon, {}) }) }, item)
|
|
34168
34182
|
)),
|
|
34169
34183
|
"\xA0"
|
|
34170
34184
|
]
|
|
@@ -34179,12 +34193,12 @@ var import_classnames52 = __toESM(require_classnames());
|
|
|
34179
34193
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
34180
34194
|
|
|
34181
34195
|
// src/components/Toggle.tsx
|
|
34182
|
-
import { Fragment as Fragment15, jsx as
|
|
34196
|
+
import { Fragment as Fragment15, jsx as jsx69, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
34183
34197
|
function Toggle({ label, children, className, ...props }) {
|
|
34184
34198
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
34185
|
-
return /* @__PURE__ */
|
|
34186
|
-
label && /* @__PURE__ */
|
|
34187
|
-
/* @__PURE__ */
|
|
34199
|
+
return /* @__PURE__ */ jsxs43(Fragment15, { children: [
|
|
34200
|
+
label && /* @__PURE__ */ jsx69(Label2, { children: label }),
|
|
34201
|
+
/* @__PURE__ */ jsx69(
|
|
34188
34202
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
34189
34203
|
{
|
|
34190
34204
|
...props,
|
|
@@ -34203,7 +34217,7 @@ var import_classnames53 = __toESM(require_classnames());
|
|
|
34203
34217
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDJiO", "list": "ToggleGroup_list__NTM2M", "item": "ToggleGroup_item__MWFiY", "primary": "ToggleGroup_primary__ZTAyY" };
|
|
34204
34218
|
|
|
34205
34219
|
// src/components/ToggleGroup.tsx
|
|
34206
|
-
import { jsx as
|
|
34220
|
+
import { jsx as jsx70, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
34207
34221
|
function ToggleGroup({
|
|
34208
34222
|
label,
|
|
34209
34223
|
value,
|
|
@@ -34222,7 +34236,7 @@ function ToggleGroup({
|
|
|
34222
34236
|
onSelectionChange?.(keys);
|
|
34223
34237
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
34224
34238
|
};
|
|
34225
|
-
return /* @__PURE__ */
|
|
34239
|
+
return /* @__PURE__ */ jsxs44(
|
|
34226
34240
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
34227
34241
|
{
|
|
34228
34242
|
...props,
|
|
@@ -34232,18 +34246,18 @@ function ToggleGroup({
|
|
|
34232
34246
|
onSelectionChange: handleChange,
|
|
34233
34247
|
className: (0, import_classnames53.default)(ToggleGroup_default.group, className, variant && ToggleGroup_default[variant]),
|
|
34234
34248
|
children: [
|
|
34235
|
-
label && /* @__PURE__ */
|
|
34236
|
-
/* @__PURE__ */
|
|
34249
|
+
label && /* @__PURE__ */ jsx70(Label2, { children: label }),
|
|
34250
|
+
/* @__PURE__ */ jsx70($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
34237
34251
|
]
|
|
34238
34252
|
}
|
|
34239
34253
|
);
|
|
34240
34254
|
}
|
|
34241
34255
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
34242
|
-
return /* @__PURE__ */
|
|
34256
|
+
return /* @__PURE__ */ jsx70($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
|
|
34243
34257
|
}
|
|
34244
34258
|
|
|
34245
34259
|
// src/components/ZenProvider.tsx
|
|
34246
|
-
import { jsx as
|
|
34260
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
34247
34261
|
var defaultToastConfig = {
|
|
34248
34262
|
duration: 3e3
|
|
34249
34263
|
};
|
|
@@ -34254,7 +34268,7 @@ function ZenProvider({
|
|
|
34254
34268
|
toast = defaultToastConfig
|
|
34255
34269
|
}) {
|
|
34256
34270
|
useInitTheme(theme, colorScheme);
|
|
34257
|
-
return /* @__PURE__ */
|
|
34271
|
+
return /* @__PURE__ */ jsx71(ToastProvider, { ...toast, children });
|
|
34258
34272
|
}
|
|
34259
34273
|
export {
|
|
34260
34274
|
Accordion,
|
|
@@ -34294,6 +34308,7 @@ export {
|
|
|
34294
34308
|
Heading2 as Heading,
|
|
34295
34309
|
HoverTrigger,
|
|
34296
34310
|
Icon2 as Icon,
|
|
34311
|
+
IconLabel,
|
|
34297
34312
|
Image,
|
|
34298
34313
|
InlineEditField,
|
|
34299
34314
|
Label2 as Label,
|