@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.js
CHANGED
|
@@ -261,6 +261,7 @@ __export(index_exports, {
|
|
|
261
261
|
Heading: () => Heading2,
|
|
262
262
|
HoverTrigger: () => HoverTrigger,
|
|
263
263
|
Icon: () => Icon2,
|
|
264
|
+
IconLabel: () => IconLabel,
|
|
264
265
|
Image: () => Image,
|
|
265
266
|
InlineEditField: () => InlineEditField,
|
|
266
267
|
Label: () => Label2,
|
|
@@ -33211,7 +33212,7 @@ var import_react187 = require("react");
|
|
|
33211
33212
|
var import_classnames27 = __toESM(require_classnames());
|
|
33212
33213
|
|
|
33213
33214
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
33214
|
-
var Table_default = { "table": "
|
|
33215
|
+
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" };
|
|
33215
33216
|
|
|
33216
33217
|
// src/components/Table.tsx
|
|
33217
33218
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
@@ -33478,6 +33479,24 @@ function HoverTrigger({
|
|
|
33478
33479
|
] });
|
|
33479
33480
|
}
|
|
33480
33481
|
|
|
33482
|
+
// src/components/IconLabel.tsx
|
|
33483
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
33484
|
+
function IconLabel({
|
|
33485
|
+
icon,
|
|
33486
|
+
label,
|
|
33487
|
+
iconProps,
|
|
33488
|
+
labelProps,
|
|
33489
|
+
showLabel = true,
|
|
33490
|
+
children,
|
|
33491
|
+
...props
|
|
33492
|
+
}) {
|
|
33493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Row, { alignItems: "center", gap: true, width: "100%", ...props, children: [
|
|
33494
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon2, { ...iconProps, children: icon }),
|
|
33495
|
+
showLabel && label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { ...labelProps, children: label }),
|
|
33496
|
+
showLabel && children
|
|
33497
|
+
] });
|
|
33498
|
+
}
|
|
33499
|
+
|
|
33481
33500
|
// src/components/Image.tsx
|
|
33482
33501
|
var import_classnames33 = __toESM(require_classnames());
|
|
33483
33502
|
|
|
@@ -33485,7 +33504,7 @@ var import_classnames33 = __toESM(require_classnames());
|
|
|
33485
33504
|
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" };
|
|
33486
33505
|
|
|
33487
33506
|
// src/components/Image.tsx
|
|
33488
|
-
var
|
|
33507
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
33489
33508
|
function Image({
|
|
33490
33509
|
src,
|
|
33491
33510
|
alt,
|
|
@@ -33498,7 +33517,7 @@ function Image({
|
|
|
33498
33517
|
...props
|
|
33499
33518
|
}) {
|
|
33500
33519
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
33501
|
-
return /* @__PURE__ */ (0,
|
|
33520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
33502
33521
|
"img",
|
|
33503
33522
|
{
|
|
33504
33523
|
...props,
|
|
@@ -33525,7 +33544,7 @@ var import_classnames34 = __toESM(require_classnames());
|
|
|
33525
33544
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
33526
33545
|
|
|
33527
33546
|
// src/components/InlineEditField.tsx
|
|
33528
|
-
var
|
|
33547
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
33529
33548
|
function InlineEditField({
|
|
33530
33549
|
name = "",
|
|
33531
33550
|
value: defaultValue = "",
|
|
@@ -33561,7 +33580,7 @@ function InlineEditField({
|
|
|
33561
33580
|
handleCancel();
|
|
33562
33581
|
}
|
|
33563
33582
|
};
|
|
33564
|
-
return /* @__PURE__ */ (0,
|
|
33583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
33565
33584
|
"div",
|
|
33566
33585
|
{
|
|
33567
33586
|
"aria-label": "Edit",
|
|
@@ -33570,8 +33589,8 @@ function InlineEditField({
|
|
|
33570
33589
|
onClick: handleEdit,
|
|
33571
33590
|
children: [
|
|
33572
33591
|
!edit && children,
|
|
33573
|
-
!edit && /* @__PURE__ */ (0,
|
|
33574
|
-
edit && /* @__PURE__ */ (0,
|
|
33592
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SquarePen, {}) }),
|
|
33593
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
33575
33594
|
TextField2,
|
|
33576
33595
|
{
|
|
33577
33596
|
name,
|
|
@@ -33594,7 +33613,7 @@ var import_classnames35 = __toESM(require_classnames());
|
|
|
33594
33613
|
var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
|
|
33595
33614
|
|
|
33596
33615
|
// src/components/Loading.tsx
|
|
33597
|
-
var
|
|
33616
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
33598
33617
|
function Loading({
|
|
33599
33618
|
size,
|
|
33600
33619
|
placement = "inline",
|
|
@@ -33602,9 +33621,9 @@ function Loading({
|
|
|
33602
33621
|
className,
|
|
33603
33622
|
...props
|
|
33604
33623
|
}) {
|
|
33605
|
-
return /* @__PURE__ */ (0,
|
|
33606
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
33607
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
33624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
|
|
33625
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Dots, { size }),
|
|
33626
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Spinner, { size })
|
|
33608
33627
|
] });
|
|
33609
33628
|
}
|
|
33610
33629
|
|
|
@@ -33612,12 +33631,12 @@ function Loading({
|
|
|
33612
33631
|
var import_classnames36 = __toESM(require_classnames());
|
|
33613
33632
|
|
|
33614
33633
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
33615
|
-
var Menu_default = { "menu": "
|
|
33634
|
+
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" };
|
|
33616
33635
|
|
|
33617
33636
|
// src/components/Menu.tsx
|
|
33618
|
-
var
|
|
33637
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
33619
33638
|
function Menu2({ className, children, ...props }) {
|
|
33620
|
-
return /* @__PURE__ */ (0,
|
|
33639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames36.default)(Menu_default.menu, className), children });
|
|
33621
33640
|
}
|
|
33622
33641
|
function MenuItem2({
|
|
33623
33642
|
icon,
|
|
@@ -33628,18 +33647,14 @@ function MenuItem2({
|
|
|
33628
33647
|
className,
|
|
33629
33648
|
...props
|
|
33630
33649
|
}) {
|
|
33631
|
-
return /* @__PURE__ */ (0,
|
|
33632
|
-
/* @__PURE__ */ (0,
|
|
33633
|
-
|
|
33634
|
-
|
|
33635
|
-
children
|
|
33636
|
-
] }),
|
|
33637
|
-
showChecked && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon2, { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Check, {}) }),
|
|
33638
|
-
showSubMenuIcon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronRight, {}) })
|
|
33650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
|
|
33651
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(IconLabel, { icon, label, children }),
|
|
33652
|
+
showChecked && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon2, { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Check, {}) }),
|
|
33653
|
+
showSubMenuIcon && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ChevronRight, {}) })
|
|
33639
33654
|
] });
|
|
33640
33655
|
}
|
|
33641
33656
|
function MenuSeparator({ className, ...props }) {
|
|
33642
|
-
return /* @__PURE__ */ (0,
|
|
33657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames36.default)(Menu_default.separator, className) });
|
|
33643
33658
|
}
|
|
33644
33659
|
function MenuSection({
|
|
33645
33660
|
title,
|
|
@@ -33653,9 +33668,9 @@ function MenuSection({
|
|
|
33653
33668
|
maxHeight,
|
|
33654
33669
|
overflow: maxHeight ? "auto" : void 0
|
|
33655
33670
|
};
|
|
33656
|
-
return /* @__PURE__ */ (0,
|
|
33657
|
-
title && /* @__PURE__ */ (0,
|
|
33658
|
-
/* @__PURE__ */ (0,
|
|
33671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
33672
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
33673
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
33659
33674
|
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
33660
33675
|
{
|
|
33661
33676
|
...props,
|
|
@@ -33667,7 +33682,7 @@ function MenuSection({
|
|
|
33667
33682
|
] });
|
|
33668
33683
|
}
|
|
33669
33684
|
function SubMenuTrigger({ children, ...props }) {
|
|
33670
|
-
return /* @__PURE__ */ (0,
|
|
33685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
|
|
33671
33686
|
}
|
|
33672
33687
|
|
|
33673
33688
|
// src/components/Modal.tsx
|
|
@@ -33677,7 +33692,7 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
33677
33692
|
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" };
|
|
33678
33693
|
|
|
33679
33694
|
// src/components/Modal.tsx
|
|
33680
|
-
var
|
|
33695
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
33681
33696
|
function Modal2({
|
|
33682
33697
|
position = "center",
|
|
33683
33698
|
offset,
|
|
@@ -33689,7 +33704,7 @@ function Modal2({
|
|
|
33689
33704
|
if (offset) {
|
|
33690
33705
|
style[`--modal-offset`] = offset;
|
|
33691
33706
|
}
|
|
33692
|
-
return /* @__PURE__ */ (0,
|
|
33707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames37.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
33693
33708
|
}
|
|
33694
33709
|
|
|
33695
33710
|
// src/components/Navbar.tsx
|
|
@@ -33700,7 +33715,7 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
33700
33715
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
33701
33716
|
|
|
33702
33717
|
// src/components/Navbar.tsx
|
|
33703
|
-
var
|
|
33718
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
33704
33719
|
var NavbarContext = (0, import_react192.createContext)(void 0);
|
|
33705
33720
|
var useNavigationContext = () => {
|
|
33706
33721
|
const context = (0, import_react192.useContext)(NavbarContext);
|
|
@@ -33711,20 +33726,20 @@ var useNavigationContext = () => {
|
|
|
33711
33726
|
};
|
|
33712
33727
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
33713
33728
|
const [activeMenu, setActiveMenu] = (0, import_react192.useState)("");
|
|
33714
|
-
return /* @__PURE__ */ (0,
|
|
33729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.nav, className), children }) });
|
|
33715
33730
|
}
|
|
33716
33731
|
function NavbarItem({ label, children, className, ...props }) {
|
|
33717
33732
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
33718
33733
|
if (label) {
|
|
33719
|
-
return /* @__PURE__ */ (0,
|
|
33720
|
-
/* @__PURE__ */ (0,
|
|
33721
|
-
/* @__PURE__ */ (0,
|
|
33722
|
-
/* @__PURE__ */ (0,
|
|
33734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
33735
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children: [
|
|
33736
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Text, { children: label }),
|
|
33737
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ChevronRight, {}) })
|
|
33723
33738
|
] }),
|
|
33724
33739
|
children
|
|
33725
33740
|
] });
|
|
33726
33741
|
}
|
|
33727
|
-
return /* @__PURE__ */ (0,
|
|
33742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children });
|
|
33728
33743
|
}
|
|
33729
33744
|
|
|
33730
33745
|
// src/components/NavMenu.tsx
|
|
@@ -33735,7 +33750,7 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
33735
33750
|
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" };
|
|
33736
33751
|
|
|
33737
33752
|
// src/components/NavMenu.tsx
|
|
33738
|
-
var
|
|
33753
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
33739
33754
|
var NavMenuContext = (0, import_react193.createContext)(null);
|
|
33740
33755
|
function NavMenu({
|
|
33741
33756
|
itemBackgroundColor = "2",
|
|
@@ -33745,7 +33760,7 @@ function NavMenu({
|
|
|
33745
33760
|
children,
|
|
33746
33761
|
...props
|
|
33747
33762
|
}) {
|
|
33748
|
-
return /* @__PURE__ */ (0,
|
|
33763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(NavMenuContext.Provider, { value: { itemBackgroundColor }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
33749
33764
|
Column,
|
|
33750
33765
|
{
|
|
33751
33766
|
...props,
|
|
@@ -33768,7 +33783,7 @@ function NavMenuGroup({
|
|
|
33768
33783
|
setMinimized((state) => !state);
|
|
33769
33784
|
}
|
|
33770
33785
|
};
|
|
33771
|
-
return /* @__PURE__ */ (0,
|
|
33786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
33772
33787
|
Column,
|
|
33773
33788
|
{
|
|
33774
33789
|
gap: true,
|
|
@@ -33779,7 +33794,7 @@ function NavMenuGroup({
|
|
|
33779
33794
|
allowMinimize && minimized && NavMenu_default.minimized
|
|
33780
33795
|
),
|
|
33781
33796
|
children: [
|
|
33782
|
-
/* @__PURE__ */ (0,
|
|
33797
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
33783
33798
|
Row,
|
|
33784
33799
|
{
|
|
33785
33800
|
className: NavMenu_default.item,
|
|
@@ -33787,8 +33802,8 @@ function NavMenuGroup({
|
|
|
33787
33802
|
justifyContent: "space-between",
|
|
33788
33803
|
onClick: handleClick,
|
|
33789
33804
|
children: [
|
|
33790
|
-
/* @__PURE__ */ (0,
|
|
33791
|
-
allowMinimize && /* @__PURE__ */ (0,
|
|
33805
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Text, { className: NavMenu_default.title, children: title }),
|
|
33806
|
+
allowMinimize && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon2, { rotate: minimized ? 0 : 90, color: "muted", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ChevronRight, {}) })
|
|
33792
33807
|
]
|
|
33793
33808
|
}
|
|
33794
33809
|
),
|
|
@@ -33799,7 +33814,7 @@ function NavMenuGroup({
|
|
|
33799
33814
|
}
|
|
33800
33815
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
33801
33816
|
const { itemBackgroundColor } = (0, import_react193.useContext)(NavMenuContext);
|
|
33802
|
-
return /* @__PURE__ */ (0,
|
|
33817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
33803
33818
|
Row,
|
|
33804
33819
|
{
|
|
33805
33820
|
...props,
|
|
@@ -33814,16 +33829,16 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
33814
33829
|
// src/components/PasswordField.tsx
|
|
33815
33830
|
var import_react194 = require("react");
|
|
33816
33831
|
var import_classnames40 = __toESM(require_classnames());
|
|
33817
|
-
var
|
|
33832
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
33818
33833
|
function PasswordField({ label, className, ...props }) {
|
|
33819
33834
|
const [show, setShow] = (0, import_react194.useState)(false);
|
|
33820
33835
|
const type = show ? "text" : "password";
|
|
33821
33836
|
const handleShowPassword = () => setShow((state) => !state);
|
|
33822
|
-
return /* @__PURE__ */ (0,
|
|
33823
|
-
label && /* @__PURE__ */ (0,
|
|
33824
|
-
/* @__PURE__ */ (0,
|
|
33825
|
-
/* @__PURE__ */ (0,
|
|
33826
|
-
/* @__PURE__ */ (0,
|
|
33837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
33838
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label2, { children: label }),
|
|
33839
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames40.default)(TextField_default.field, className), children: [
|
|
33840
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
33841
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(EyeSlash_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Eye_default, {}) })
|
|
33827
33842
|
] })
|
|
33828
33843
|
] });
|
|
33829
33844
|
}
|
|
@@ -33835,9 +33850,9 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
33835
33850
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
33836
33851
|
|
|
33837
33852
|
// src/components/Popover.tsx
|
|
33838
|
-
var
|
|
33853
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
33839
33854
|
function Popover2({ children, className, ...props }) {
|
|
33840
|
-
return /* @__PURE__ */ (0,
|
|
33855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames41.default)(Popover_default.popover, className), children });
|
|
33841
33856
|
}
|
|
33842
33857
|
|
|
33843
33858
|
// src/components/ProgressBar.tsx
|
|
@@ -33847,12 +33862,12 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
33847
33862
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
33848
33863
|
|
|
33849
33864
|
// src/components/ProgressBar.tsx
|
|
33850
|
-
var
|
|
33865
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
33851
33866
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
33852
|
-
return /* @__PURE__ */ (0,
|
|
33853
|
-
return /* @__PURE__ */ (0,
|
|
33854
|
-
/* @__PURE__ */ (0,
|
|
33855
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
33867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
33868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
33869
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
33870
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
33856
33871
|
] });
|
|
33857
33872
|
} });
|
|
33858
33873
|
}
|
|
@@ -33864,16 +33879,16 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
33864
33879
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
33865
33880
|
|
|
33866
33881
|
// src/components/ProgressCircle.tsx
|
|
33867
|
-
var
|
|
33882
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
33868
33883
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
33869
|
-
return /* @__PURE__ */ (0,
|
|
33884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames43.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
33870
33885
|
const radius = 45;
|
|
33871
33886
|
const circumference = radius * 2 * Math.PI;
|
|
33872
33887
|
const offset = circumference - percentage / 100 * circumference;
|
|
33873
|
-
return /* @__PURE__ */ (0,
|
|
33874
|
-
/* @__PURE__ */ (0,
|
|
33875
|
-
/* @__PURE__ */ (0,
|
|
33876
|
-
/* @__PURE__ */ (0,
|
|
33888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
33889
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
33890
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
33891
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
33877
33892
|
"circle",
|
|
33878
33893
|
{
|
|
33879
33894
|
className: ProgressCircle_default.fill,
|
|
@@ -33885,7 +33900,7 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
33885
33900
|
}
|
|
33886
33901
|
)
|
|
33887
33902
|
] }),
|
|
33888
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
33903
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
33889
33904
|
] });
|
|
33890
33905
|
} });
|
|
33891
33906
|
}
|
|
@@ -33897,7 +33912,7 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
33897
33912
|
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" };
|
|
33898
33913
|
|
|
33899
33914
|
// src/components/RadioGroup.tsx
|
|
33900
|
-
var
|
|
33915
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
33901
33916
|
function RadioGroup2({
|
|
33902
33917
|
variant = "circle",
|
|
33903
33918
|
label,
|
|
@@ -33905,27 +33920,27 @@ function RadioGroup2({
|
|
|
33905
33920
|
className,
|
|
33906
33921
|
...props
|
|
33907
33922
|
}) {
|
|
33908
|
-
return /* @__PURE__ */ (0,
|
|
33923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
33909
33924
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
33910
33925
|
{
|
|
33911
33926
|
"aria-label": "RadioGroup",
|
|
33912
33927
|
...props,
|
|
33913
33928
|
className: (0, import_classnames44.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
33914
33929
|
children: [
|
|
33915
|
-
label && /* @__PURE__ */ (0,
|
|
33916
|
-
/* @__PURE__ */ (0,
|
|
33930
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Label2, { children: label }),
|
|
33931
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: RadioGroup_default.inputs, children })
|
|
33917
33932
|
]
|
|
33918
33933
|
}
|
|
33919
33934
|
);
|
|
33920
33935
|
}
|
|
33921
33936
|
function Radio2({ children, className, ...props }) {
|
|
33922
|
-
return /* @__PURE__ */ (0,
|
|
33937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames44.default)(RadioGroup_default.radio, className), children });
|
|
33923
33938
|
}
|
|
33924
33939
|
|
|
33925
33940
|
// src/components/SearchField.tsx
|
|
33926
33941
|
var import_react195 = require("react");
|
|
33927
33942
|
var import_classnames45 = __toESM(require_classnames());
|
|
33928
|
-
var
|
|
33943
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
33929
33944
|
function SearchField2({
|
|
33930
33945
|
label,
|
|
33931
33946
|
placeholder,
|
|
@@ -33956,9 +33971,9 @@ function SearchField2({
|
|
|
33956
33971
|
onSearch?.(searchValue);
|
|
33957
33972
|
}
|
|
33958
33973
|
}, [searchValue, delay]);
|
|
33959
|
-
return /* @__PURE__ */ (0,
|
|
33960
|
-
label && /* @__PURE__ */ (0,
|
|
33961
|
-
/* @__PURE__ */ (0,
|
|
33974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
33975
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Label2, { children: label }),
|
|
33976
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
33962
33977
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
33963
33978
|
{
|
|
33964
33979
|
"aria-label": "Search",
|
|
@@ -33966,9 +33981,9 @@ function SearchField2({
|
|
|
33966
33981
|
className: (0, import_classnames45.default)(TextField_default.field, className),
|
|
33967
33982
|
onChange: handleChange,
|
|
33968
33983
|
children: [
|
|
33969
|
-
/* @__PURE__ */ (0,
|
|
33970
|
-
/* @__PURE__ */ (0,
|
|
33971
|
-
search && /* @__PURE__ */ (0,
|
|
33984
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon2, { strokeColor: "8", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Search, {}) }),
|
|
33985
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
33986
|
+
search && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(X, {}) })
|
|
33972
33987
|
]
|
|
33973
33988
|
}
|
|
33974
33989
|
)
|
|
@@ -33983,7 +33998,7 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
33983
33998
|
var Select_default = { "select": "Select_select__NTRiY", "button": "Select_button__ZTJmY", "value": "Select_value__OWU2Z", "list": "Select_list__NTk4N", "search": "Select_search__YWI3Y" };
|
|
33984
33999
|
|
|
33985
34000
|
// src/components/Select.tsx
|
|
33986
|
-
var
|
|
34001
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
33987
34002
|
function Select2({
|
|
33988
34003
|
items = [],
|
|
33989
34004
|
value,
|
|
@@ -34017,7 +34032,7 @@ function Select2({
|
|
|
34017
34032
|
setSearch("");
|
|
34018
34033
|
onSearch?.("");
|
|
34019
34034
|
};
|
|
34020
|
-
return /* @__PURE__ */ (0,
|
|
34035
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
34021
34036
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
34022
34037
|
{
|
|
34023
34038
|
"aria-label": "Select",
|
|
@@ -34027,21 +34042,21 @@ function Select2({
|
|
|
34027
34042
|
defaultSelectedKey: defaultValue,
|
|
34028
34043
|
onSelectionChange: handleChange,
|
|
34029
34044
|
children: [
|
|
34030
|
-
label && /* @__PURE__ */ (0,
|
|
34031
|
-
/* @__PURE__ */ (0,
|
|
34045
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label2, { children: label }),
|
|
34046
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
34032
34047
|
Button2,
|
|
34033
34048
|
{
|
|
34034
34049
|
variant: "outline",
|
|
34035
34050
|
...buttonProps,
|
|
34036
34051
|
className: (0, import_classnames46.default)(Select_default.button, buttonProps?.className),
|
|
34037
|
-
children: /* @__PURE__ */ (0,
|
|
34038
|
-
/* @__PURE__ */ (0,
|
|
34039
|
-
/* @__PURE__ */ (0,
|
|
34052
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: Select_default.value, children: [
|
|
34053
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
34054
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ChevronRight, {}) })
|
|
34040
34055
|
] })
|
|
34041
34056
|
}
|
|
34042
34057
|
),
|
|
34043
|
-
/* @__PURE__ */ (0,
|
|
34044
|
-
allowSearch && /* @__PURE__ */ (0,
|
|
34058
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: Select_default.list, children: [
|
|
34059
|
+
allowSearch && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
34045
34060
|
SearchField2,
|
|
34046
34061
|
{
|
|
34047
34062
|
className: Select_default.search,
|
|
@@ -34052,8 +34067,8 @@ function Select2({
|
|
|
34052
34067
|
autoFocus: true
|
|
34053
34068
|
}
|
|
34054
34069
|
),
|
|
34055
|
-
isLoading && /* @__PURE__ */ (0,
|
|
34056
|
-
/* @__PURE__ */ (0,
|
|
34070
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Loading, { icon: "dots", placement: "center", size: "sm" }),
|
|
34071
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
34057
34072
|
List,
|
|
34058
34073
|
{
|
|
34059
34074
|
...listProps,
|
|
@@ -34076,7 +34091,7 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
34076
34091
|
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" };
|
|
34077
34092
|
|
|
34078
34093
|
// src/components/Sidebar.tsx
|
|
34079
|
-
var
|
|
34094
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
34080
34095
|
var SidebarContext = (0, import_react197.createContext)(null);
|
|
34081
34096
|
function Sidebar({
|
|
34082
34097
|
itemBackgroundColor = "2",
|
|
@@ -34086,7 +34101,7 @@ function Sidebar({
|
|
|
34086
34101
|
children,
|
|
34087
34102
|
...props
|
|
34088
34103
|
}) {
|
|
34089
|
-
return /* @__PURE__ */ (0,
|
|
34104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SidebarContext.Provider, { value: { isCollapsed, itemBackgroundColor }, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
34090
34105
|
Column,
|
|
34091
34106
|
{
|
|
34092
34107
|
border: "right",
|
|
@@ -34107,9 +34122,9 @@ function SidebarSection({
|
|
|
34107
34122
|
children,
|
|
34108
34123
|
...props
|
|
34109
34124
|
}) {
|
|
34110
|
-
return /* @__PURE__ */ (0,
|
|
34111
|
-
title && /* @__PURE__ */ (0,
|
|
34112
|
-
/* @__PURE__ */ (0,
|
|
34125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Column, { ...props, className: (0, import_classnames47.default)(Sidebar_default.section, className), children: [
|
|
34126
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: Sidebar_default.title, children: title }),
|
|
34127
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: Sidebar_default.content, children })
|
|
34113
34128
|
] });
|
|
34114
34129
|
}
|
|
34115
34130
|
function SidebarHeader({
|
|
@@ -34119,9 +34134,9 @@ function SidebarHeader({
|
|
|
34119
34134
|
children,
|
|
34120
34135
|
...props
|
|
34121
34136
|
}) {
|
|
34122
|
-
return /* @__PURE__ */ (0,
|
|
34123
|
-
icon && /* @__PURE__ */ (0,
|
|
34124
|
-
label && /* @__PURE__ */ (0,
|
|
34137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Row, { ...props, className: (0, import_classnames47.default)(Sidebar_default.header, className), children: [
|
|
34138
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon2, { size: "sm", children: icon }),
|
|
34139
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: Sidebar_default.label, children: label }),
|
|
34125
34140
|
children
|
|
34126
34141
|
] });
|
|
34127
34142
|
}
|
|
@@ -34134,8 +34149,8 @@ function SidebarItem({
|
|
|
34134
34149
|
...props
|
|
34135
34150
|
}) {
|
|
34136
34151
|
const { isCollapsed, itemBackgroundColor } = (0, import_react197.useContext)(SidebarContext);
|
|
34137
|
-
return /* @__PURE__ */ (0,
|
|
34138
|
-
/* @__PURE__ */ (0,
|
|
34152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
34153
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
34139
34154
|
Row,
|
|
34140
34155
|
{
|
|
34141
34156
|
...props,
|
|
@@ -34143,13 +34158,13 @@ function SidebarItem({
|
|
|
34143
34158
|
hoverBackgroundColor: itemBackgroundColor,
|
|
34144
34159
|
className: (0, import_classnames47.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
34145
34160
|
children: [
|
|
34146
|
-
icon && /* @__PURE__ */ (0,
|
|
34147
|
-
label && /* @__PURE__ */ (0,
|
|
34161
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon2, { size: "sm", children: icon }),
|
|
34162
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { className: (0, import_classnames47.default)(Sidebar_default.label), children: label }),
|
|
34148
34163
|
children
|
|
34149
34164
|
]
|
|
34150
34165
|
}
|
|
34151
34166
|
) }),
|
|
34152
|
-
/* @__PURE__ */ (0,
|
|
34167
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Tooltip2, { placement: "right", children: label })
|
|
34153
34168
|
] });
|
|
34154
34169
|
}
|
|
34155
34170
|
|
|
@@ -34160,17 +34175,17 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
34160
34175
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
34161
34176
|
|
|
34162
34177
|
// src/components/Slider.tsx
|
|
34163
|
-
var
|
|
34178
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
34164
34179
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
34165
|
-
return /* @__PURE__ */ (0,
|
|
34166
|
-
/* @__PURE__ */ (0,
|
|
34167
|
-
label && /* @__PURE__ */ (0,
|
|
34168
|
-
showValue && /* @__PURE__ */ (0,
|
|
34180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames48.default)(Slider_default.slider, className), children: [
|
|
34181
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: Slider_default.header, children: [
|
|
34182
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
34183
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
34169
34184
|
] }),
|
|
34170
|
-
/* @__PURE__ */ (0,
|
|
34185
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
34171
34186
|
const isHorizontal = state.orientation === "horizontal";
|
|
34172
|
-
return /* @__PURE__ */ (0,
|
|
34173
|
-
/* @__PURE__ */ (0,
|
|
34187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
34188
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
34174
34189
|
"div",
|
|
34175
34190
|
{
|
|
34176
34191
|
className: Slider_default.fill,
|
|
@@ -34179,7 +34194,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
34179
34194
|
}
|
|
34180
34195
|
}
|
|
34181
34196
|
),
|
|
34182
|
-
/* @__PURE__ */ (0,
|
|
34197
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
34183
34198
|
] });
|
|
34184
34199
|
} })
|
|
34185
34200
|
] });
|
|
@@ -34192,11 +34207,11 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
34192
34207
|
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" };
|
|
34193
34208
|
|
|
34194
34209
|
// src/components/StatusLight.tsx
|
|
34195
|
-
var
|
|
34210
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
34196
34211
|
function StatusLight(props) {
|
|
34197
34212
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
34198
|
-
return /* @__PURE__ */ (0,
|
|
34199
|
-
/* @__PURE__ */ (0,
|
|
34213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...domProps, className: (0, import_classnames49.default)(StatusLight_default.statuslight, className), children: [
|
|
34214
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
34200
34215
|
"div",
|
|
34201
34216
|
{
|
|
34202
34217
|
className: (0, import_classnames49.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -34214,12 +34229,12 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
34214
34229
|
var Switch_default = { "switch": "Switch_switch__NzIwM", "track": "Switch_track__NWQ0M", "knob": "Switch_knob__NDU3M" };
|
|
34215
34230
|
|
|
34216
34231
|
// src/components/Switch.tsx
|
|
34217
|
-
var
|
|
34232
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
34218
34233
|
function Switch2({ label, children, className, ...props }) {
|
|
34219
|
-
return /* @__PURE__ */ (0,
|
|
34220
|
-
label && /* @__PURE__ */ (0,
|
|
34221
|
-
/* @__PURE__ */ (0,
|
|
34222
|
-
/* @__PURE__ */ (0,
|
|
34234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Column, { children: [
|
|
34235
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label2, { children: label }),
|
|
34236
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)($8e59e948500a8fe1$export$b5d5cf8927ab7262, { ...props, className: (0, import_classnames50.default)(Switch_default.switch, className), children: [
|
|
34237
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: Switch_default.knob }) }),
|
|
34223
34238
|
children
|
|
34224
34239
|
] })
|
|
34225
34240
|
] });
|
|
@@ -34229,18 +34244,18 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
34229
34244
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
34230
34245
|
|
|
34231
34246
|
// src/components/Tabs.tsx
|
|
34232
|
-
var
|
|
34247
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
34233
34248
|
function Tabs2({ children, ...props }) {
|
|
34234
|
-
return /* @__PURE__ */ (0,
|
|
34249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
34235
34250
|
}
|
|
34236
34251
|
function TabList2({ children, ...props }) {
|
|
34237
|
-
return /* @__PURE__ */ (0,
|
|
34252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
34238
34253
|
}
|
|
34239
34254
|
function Tab({ children, ...props }) {
|
|
34240
|
-
return /* @__PURE__ */ (0,
|
|
34255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
34241
34256
|
}
|
|
34242
34257
|
function TabPanel2({ children, ...props }) {
|
|
34243
|
-
return /* @__PURE__ */ (0,
|
|
34258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
34244
34259
|
}
|
|
34245
34260
|
|
|
34246
34261
|
// src/components/ThemeButton.tsx
|
|
@@ -34250,7 +34265,7 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
34250
34265
|
var ThemeButton_default = { "button": "ThemeButton_button__MDUzN" };
|
|
34251
34266
|
|
|
34252
34267
|
// src/components/ThemeButton.tsx
|
|
34253
|
-
var
|
|
34268
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
34254
34269
|
function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
34255
34270
|
const { theme, setTheme } = useTheme();
|
|
34256
34271
|
const transitions = useTransition(theme, {
|
|
@@ -34269,7 +34284,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34269
34284
|
setTheme(theme === "light" ? "dark" : "light");
|
|
34270
34285
|
onPress?.(e);
|
|
34271
34286
|
}
|
|
34272
|
-
return /* @__PURE__ */ (0,
|
|
34287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
34273
34288
|
Button2,
|
|
34274
34289
|
{
|
|
34275
34290
|
...props,
|
|
@@ -34279,7 +34294,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34279
34294
|
children: [
|
|
34280
34295
|
transitions((style, item) => (
|
|
34281
34296
|
// @ts-ignore
|
|
34282
|
-
/* @__PURE__ */ (0,
|
|
34297
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Sun, {}) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Moon, {}) }) }, item)
|
|
34283
34298
|
)),
|
|
34284
34299
|
"\xA0"
|
|
34285
34300
|
]
|
|
@@ -34294,12 +34309,12 @@ var import_classnames52 = __toESM(require_classnames());
|
|
|
34294
34309
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
34295
34310
|
|
|
34296
34311
|
// src/components/Toggle.tsx
|
|
34297
|
-
var
|
|
34312
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
34298
34313
|
function Toggle({ label, children, className, ...props }) {
|
|
34299
34314
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
34300
|
-
return /* @__PURE__ */ (0,
|
|
34301
|
-
label && /* @__PURE__ */ (0,
|
|
34302
|
-
/* @__PURE__ */ (0,
|
|
34315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
34316
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Label2, { children: label }),
|
|
34317
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
34303
34318
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
34304
34319
|
{
|
|
34305
34320
|
...props,
|
|
@@ -34318,7 +34333,7 @@ var import_classnames53 = __toESM(require_classnames());
|
|
|
34318
34333
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDJiO", "list": "ToggleGroup_list__NTM2M", "item": "ToggleGroup_item__MWFiY", "primary": "ToggleGroup_primary__ZTAyY" };
|
|
34319
34334
|
|
|
34320
34335
|
// src/components/ToggleGroup.tsx
|
|
34321
|
-
var
|
|
34336
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
34322
34337
|
function ToggleGroup({
|
|
34323
34338
|
label,
|
|
34324
34339
|
value,
|
|
@@ -34337,7 +34352,7 @@ function ToggleGroup({
|
|
|
34337
34352
|
onSelectionChange?.(keys);
|
|
34338
34353
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
34339
34354
|
};
|
|
34340
|
-
return /* @__PURE__ */ (0,
|
|
34355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
34341
34356
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
34342
34357
|
{
|
|
34343
34358
|
...props,
|
|
@@ -34347,18 +34362,18 @@ function ToggleGroup({
|
|
|
34347
34362
|
onSelectionChange: handleChange,
|
|
34348
34363
|
className: (0, import_classnames53.default)(ToggleGroup_default.group, className, variant && ToggleGroup_default[variant]),
|
|
34349
34364
|
children: [
|
|
34350
|
-
label && /* @__PURE__ */ (0,
|
|
34351
|
-
/* @__PURE__ */ (0,
|
|
34365
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Label2, { children: label }),
|
|
34366
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
34352
34367
|
]
|
|
34353
34368
|
}
|
|
34354
34369
|
);
|
|
34355
34370
|
}
|
|
34356
34371
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
34357
|
-
return /* @__PURE__ */ (0,
|
|
34372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
|
|
34358
34373
|
}
|
|
34359
34374
|
|
|
34360
34375
|
// src/components/ZenProvider.tsx
|
|
34361
|
-
var
|
|
34376
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
34362
34377
|
var defaultToastConfig = {
|
|
34363
34378
|
duration: 3e3
|
|
34364
34379
|
};
|
|
@@ -34369,7 +34384,7 @@ function ZenProvider({
|
|
|
34369
34384
|
toast = defaultToastConfig
|
|
34370
34385
|
}) {
|
|
34371
34386
|
useInitTheme(theme, colorScheme);
|
|
34372
|
-
return /* @__PURE__ */ (0,
|
|
34387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ToastProvider, { ...toast, children });
|
|
34373
34388
|
}
|
|
34374
34389
|
/*! Bundled license information:
|
|
34375
34390
|
|