@umami/react-zen 0.64.0 → 0.65.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 +63 -69
- package/dist/index.d.ts +15 -11
- package/dist/index.js +157 -144
- package/dist/index.mjs +157 -144
- package/package.json +1 -1
- package/styles.css +63 -69
package/dist/index.mjs
CHANGED
|
@@ -161,7 +161,7 @@ var require_classnames = __commonJS({
|
|
|
161
161
|
(function() {
|
|
162
162
|
"use strict";
|
|
163
163
|
var hasOwn = {}.hasOwnProperty;
|
|
164
|
-
function
|
|
164
|
+
function classNames54() {
|
|
165
165
|
var classes = "";
|
|
166
166
|
for (var i = 0; i < arguments.length; i++) {
|
|
167
167
|
var arg = arguments[i];
|
|
@@ -179,7 +179,7 @@ var require_classnames = __commonJS({
|
|
|
179
179
|
return "";
|
|
180
180
|
}
|
|
181
181
|
if (Array.isArray(arg)) {
|
|
182
|
-
return
|
|
182
|
+
return classNames54.apply(null, arg);
|
|
183
183
|
}
|
|
184
184
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
185
185
|
return arg.toString();
|
|
@@ -202,14 +202,14 @@ var require_classnames = __commonJS({
|
|
|
202
202
|
return value + newClass;
|
|
203
203
|
}
|
|
204
204
|
if (typeof module !== "undefined" && module.exports) {
|
|
205
|
-
|
|
206
|
-
module.exports =
|
|
205
|
+
classNames54.default = classNames54;
|
|
206
|
+
module.exports = classNames54;
|
|
207
207
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
208
208
|
define("classnames", [], function() {
|
|
209
|
-
return
|
|
209
|
+
return classNames54;
|
|
210
210
|
});
|
|
211
211
|
} else {
|
|
212
|
-
window.classNames =
|
|
212
|
+
window.classNames = classNames54;
|
|
213
213
|
}
|
|
214
214
|
})();
|
|
215
215
|
}
|
|
@@ -27002,6 +27002,8 @@ function Box({
|
|
|
27002
27002
|
display,
|
|
27003
27003
|
color,
|
|
27004
27004
|
backgroundColor,
|
|
27005
|
+
fontSize,
|
|
27006
|
+
fontWeight,
|
|
27005
27007
|
borderSize,
|
|
27006
27008
|
borderRadius,
|
|
27007
27009
|
shadow,
|
|
@@ -27053,6 +27055,8 @@ function Box({
|
|
|
27053
27055
|
display,
|
|
27054
27056
|
color,
|
|
27055
27057
|
backgroundColor,
|
|
27058
|
+
fontSize,
|
|
27059
|
+
fontWeight,
|
|
27056
27060
|
borderSize,
|
|
27057
27061
|
borderRadius,
|
|
27058
27062
|
shadow,
|
|
@@ -31762,14 +31766,33 @@ function Dots({ className, ...props }) {
|
|
|
31762
31766
|
}
|
|
31763
31767
|
|
|
31764
31768
|
// src/components/FloatingTooltip.tsx
|
|
31769
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
31765
31770
|
import { useEffect as useEffect10, useState as useState11 } from "react";
|
|
31766
31771
|
|
|
31772
|
+
// src/components/Tooltip.tsx
|
|
31773
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
31774
|
+
|
|
31775
|
+
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
31776
|
+
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
31777
|
+
|
|
31778
|
+
// src/components/Tooltip.tsx
|
|
31779
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
31780
|
+
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
31781
|
+
return /* @__PURE__ */ jsx39($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames30.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ jsx39(TooltipBubble, { showArrow, children }) });
|
|
31782
|
+
}
|
|
31783
|
+
function TooltipBubble({ showArrow, children, ...props }) {
|
|
31784
|
+
return /* @__PURE__ */ jsxs20("div", { ...props, children: [
|
|
31785
|
+
showArrow && /* @__PURE__ */ jsx39($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx39("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx39("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
31786
|
+
/* @__PURE__ */ jsx39("div", { className: Tooltip_default.bubble, children })
|
|
31787
|
+
] });
|
|
31788
|
+
}
|
|
31789
|
+
|
|
31767
31790
|
// css-modules:E:\dev\umami-react-zen\src\components\FloatingTooltip.module.css
|
|
31768
|
-
var FloatingTooltip_default = { "
|
|
31791
|
+
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
31769
31792
|
|
|
31770
31793
|
// src/components/FloatingTooltip.tsx
|
|
31771
|
-
import { jsx as
|
|
31772
|
-
function FloatingTooltip({ children }) {
|
|
31794
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
31795
|
+
function FloatingTooltip({ className, style, children, ...props }) {
|
|
31773
31796
|
const [position, setPosition] = useState11({ x: -1e3, y: -1e3 });
|
|
31774
31797
|
useEffect10(() => {
|
|
31775
31798
|
const handler = (e) => {
|
|
@@ -31780,12 +31803,20 @@ function FloatingTooltip({ children }) {
|
|
|
31780
31803
|
document.removeEventListener("mousemove", handler);
|
|
31781
31804
|
};
|
|
31782
31805
|
}, []);
|
|
31783
|
-
return /* @__PURE__ */
|
|
31806
|
+
return /* @__PURE__ */ jsx40(
|
|
31807
|
+
TooltipBubble,
|
|
31808
|
+
{
|
|
31809
|
+
...props,
|
|
31810
|
+
className: (0, import_classnames31.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
31811
|
+
style: { ...style, left: position.x, top: position.y },
|
|
31812
|
+
children
|
|
31813
|
+
}
|
|
31814
|
+
);
|
|
31784
31815
|
}
|
|
31785
31816
|
|
|
31786
31817
|
// src/components/Grid.tsx
|
|
31787
|
-
var
|
|
31788
|
-
import { jsx as
|
|
31818
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
31819
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
31789
31820
|
function Grid({
|
|
31790
31821
|
display = "grid",
|
|
31791
31822
|
justifyContent,
|
|
@@ -31818,17 +31849,17 @@ function Grid({
|
|
|
31818
31849
|
gridTemplateAreas: areas,
|
|
31819
31850
|
gridAutoFlow: autoFlow
|
|
31820
31851
|
});
|
|
31821
|
-
return /* @__PURE__ */
|
|
31852
|
+
return /* @__PURE__ */ jsx41(Box, { ...props, className: (0, import_classnames32.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
31822
31853
|
}
|
|
31823
31854
|
|
|
31824
31855
|
// src/components/Heading.tsx
|
|
31825
|
-
var
|
|
31856
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
31826
31857
|
|
|
31827
31858
|
// css-modules:E:\dev\umami-react-zen\src\components\Heading.module.css
|
|
31828
31859
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
31829
31860
|
|
|
31830
31861
|
// src/components/Heading.tsx
|
|
31831
|
-
import { jsx as
|
|
31862
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
31832
31863
|
function Heading2({
|
|
31833
31864
|
size = "3",
|
|
31834
31865
|
weight,
|
|
@@ -31845,11 +31876,11 @@ function Heading2({
|
|
|
31845
31876
|
fontWeight: weight,
|
|
31846
31877
|
letterSpacing: spacing
|
|
31847
31878
|
});
|
|
31848
|
-
return /* @__PURE__ */
|
|
31879
|
+
return /* @__PURE__ */ jsx42(
|
|
31849
31880
|
Box,
|
|
31850
31881
|
{
|
|
31851
31882
|
...props,
|
|
31852
|
-
className: (0,
|
|
31883
|
+
className: (0, import_classnames33.default)(Heading_default.heading, className, classes),
|
|
31853
31884
|
style: { ...styleProps, ...style },
|
|
31854
31885
|
children
|
|
31855
31886
|
}
|
|
@@ -31863,7 +31894,7 @@ import { useRef as useRef8, useState as useState12, useEffect as useEffect11 } f
|
|
|
31863
31894
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
31864
31895
|
|
|
31865
31896
|
// src/components/HoverTrigger.tsx
|
|
31866
|
-
import { Fragment as Fragment5, jsx as
|
|
31897
|
+
import { Fragment as Fragment5, jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
31867
31898
|
var CLOSE_DELAY = 500;
|
|
31868
31899
|
function HoverTrigger({
|
|
31869
31900
|
isOpen,
|
|
@@ -31914,9 +31945,9 @@ function HoverTrigger({
|
|
|
31914
31945
|
}
|
|
31915
31946
|
}, closeDelay);
|
|
31916
31947
|
};
|
|
31917
|
-
return /* @__PURE__ */
|
|
31918
|
-
/* @__PURE__ */
|
|
31919
|
-
/* @__PURE__ */
|
|
31948
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
31949
|
+
/* @__PURE__ */ jsx43("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
31950
|
+
/* @__PURE__ */ jsx43(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx43(
|
|
31920
31951
|
"div",
|
|
31921
31952
|
{
|
|
31922
31953
|
className: HoverTrigger_default.wrapper,
|
|
@@ -31929,13 +31960,13 @@ function HoverTrigger({
|
|
|
31929
31960
|
}
|
|
31930
31961
|
|
|
31931
31962
|
// src/components/Image.tsx
|
|
31932
|
-
var
|
|
31963
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
31933
31964
|
|
|
31934
31965
|
// css-modules:E:\dev\umami-react-zen\src\components\Image.module.css
|
|
31935
31966
|
var Image_default = { "image": "Image_image__M2EyN", "centered": "Image_centered__ZDFhM", "fill": "Image_fill__YWJhZ", "contain": "Image_contain__ZjAyN", "cover": "Image_cover__ODA4Y", "none": "Image_none__YTdiZ", "scale-down": "Image_scale-down__ODNlN" };
|
|
31936
31967
|
|
|
31937
31968
|
// src/components/Image.tsx
|
|
31938
|
-
import { jsx as
|
|
31969
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
31939
31970
|
function Image({
|
|
31940
31971
|
src,
|
|
31941
31972
|
alt,
|
|
@@ -31948,11 +31979,11 @@ function Image({
|
|
|
31948
31979
|
...props
|
|
31949
31980
|
}) {
|
|
31950
31981
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
31951
|
-
return /* @__PURE__ */
|
|
31982
|
+
return /* @__PURE__ */ jsx44(
|
|
31952
31983
|
"img",
|
|
31953
31984
|
{
|
|
31954
31985
|
...props,
|
|
31955
|
-
className: (0,
|
|
31986
|
+
className: (0, import_classnames34.default)(
|
|
31956
31987
|
Image_default.image,
|
|
31957
31988
|
className,
|
|
31958
31989
|
classes,
|
|
@@ -31968,14 +31999,14 @@ function Image({
|
|
|
31968
31999
|
}
|
|
31969
32000
|
|
|
31970
32001
|
// src/components/InlineEditField.tsx
|
|
31971
|
-
var
|
|
32002
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
31972
32003
|
import { useState as useState13, useCallback as useCallback2 } from "react";
|
|
31973
32004
|
|
|
31974
32005
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
31975
32006
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
31976
32007
|
|
|
31977
32008
|
// src/components/InlineEditField.tsx
|
|
31978
|
-
import { jsx as
|
|
32009
|
+
import { jsx as jsx45, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
31979
32010
|
function InlineEditField({
|
|
31980
32011
|
name = "",
|
|
31981
32012
|
value: defaultValue = "",
|
|
@@ -32011,17 +32042,17 @@ function InlineEditField({
|
|
|
32011
32042
|
handleCancel();
|
|
32012
32043
|
}
|
|
32013
32044
|
};
|
|
32014
|
-
return /* @__PURE__ */
|
|
32045
|
+
return /* @__PURE__ */ jsxs22(
|
|
32015
32046
|
"div",
|
|
32016
32047
|
{
|
|
32017
32048
|
"aria-label": "Edit",
|
|
32018
32049
|
...props,
|
|
32019
|
-
className: (0,
|
|
32050
|
+
className: (0, import_classnames35.default)(InlineEditField_default.edit, className),
|
|
32020
32051
|
onClick: handleEdit,
|
|
32021
32052
|
children: [
|
|
32022
32053
|
!edit && children,
|
|
32023
|
-
!edit && /* @__PURE__ */
|
|
32024
|
-
edit && /* @__PURE__ */
|
|
32054
|
+
!edit && /* @__PURE__ */ jsx45(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx45(Icons.Edit, {}) }),
|
|
32055
|
+
edit && /* @__PURE__ */ jsx45(
|
|
32025
32056
|
TextField2,
|
|
32026
32057
|
{
|
|
32027
32058
|
name,
|
|
@@ -32038,45 +32069,45 @@ function InlineEditField({
|
|
|
32038
32069
|
}
|
|
32039
32070
|
|
|
32040
32071
|
// src/components/Loading.tsx
|
|
32041
|
-
var
|
|
32072
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
32042
32073
|
|
|
32043
32074
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
32044
32075
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
32045
32076
|
|
|
32046
32077
|
// src/components/Loading.tsx
|
|
32047
|
-
import { jsx as
|
|
32078
|
+
import { jsx as jsx46, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
32048
32079
|
function Loading(props) {
|
|
32049
32080
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
32050
|
-
return /* @__PURE__ */
|
|
32051
|
-
icon === "dots" && /* @__PURE__ */
|
|
32052
|
-
icon === "spinner" && /* @__PURE__ */
|
|
32081
|
+
return /* @__PURE__ */ jsxs23("div", { ...domProps, className: (0, import_classnames36.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
32082
|
+
icon === "dots" && /* @__PURE__ */ jsx46(Dots, {}),
|
|
32083
|
+
icon === "spinner" && /* @__PURE__ */ jsx46(Spinner, { size })
|
|
32053
32084
|
] });
|
|
32054
32085
|
}
|
|
32055
32086
|
|
|
32056
32087
|
// src/components/Menu.tsx
|
|
32057
|
-
var
|
|
32088
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
32058
32089
|
|
|
32059
32090
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
32060
32091
|
var Menu_default = { "menu": "Menu_menu__YmUyN", "separator": "Menu_separator__NDFlO", "section": "Menu_section__YjJjY", "header": "Menu_header__NDVjN", "item": "Menu_item__YjBiN", "check": "Menu_check__YmVhZ" };
|
|
32061
32092
|
|
|
32062
32093
|
// src/components/Menu.tsx
|
|
32063
|
-
import { jsx as
|
|
32094
|
+
import { jsx as jsx47, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
32064
32095
|
function Menu2({ items, className, children, ...props }) {
|
|
32065
|
-
return /* @__PURE__ */
|
|
32096
|
+
return /* @__PURE__ */ jsx47($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames37.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
|
|
32066
32097
|
if (item === null) {
|
|
32067
|
-
return /* @__PURE__ */
|
|
32098
|
+
return /* @__PURE__ */ jsx47($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
|
|
32068
32099
|
}
|
|
32069
|
-
return /* @__PURE__ */
|
|
32100
|
+
return /* @__PURE__ */ jsx47(MenuItem2, { id: item, children: item }, index);
|
|
32070
32101
|
}) });
|
|
32071
32102
|
}
|
|
32072
32103
|
function MenuItem2({ children, className, ...props }) {
|
|
32073
|
-
return /* @__PURE__ */
|
|
32104
|
+
return /* @__PURE__ */ jsxs24($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames37.default)(Menu_default.item, className), children: [
|
|
32074
32105
|
children,
|
|
32075
|
-
/* @__PURE__ */
|
|
32106
|
+
/* @__PURE__ */ jsx47("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ jsx47(Icon, { children: /* @__PURE__ */ jsx47(Icons.Check, {}) }) })
|
|
32076
32107
|
] });
|
|
32077
32108
|
}
|
|
32078
32109
|
function MenuSeparator({ className, ...props }) {
|
|
32079
|
-
return /* @__PURE__ */
|
|
32110
|
+
return /* @__PURE__ */ jsx47($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames37.default)(Menu_default.separator, className) });
|
|
32080
32111
|
}
|
|
32081
32112
|
function MenuSection({
|
|
32082
32113
|
title,
|
|
@@ -32084,20 +32115,20 @@ function MenuSection({
|
|
|
32084
32115
|
children,
|
|
32085
32116
|
...props
|
|
32086
32117
|
}) {
|
|
32087
|
-
return /* @__PURE__ */
|
|
32088
|
-
title && /* @__PURE__ */
|
|
32118
|
+
return /* @__PURE__ */ jsxs24($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames37.default)(Menu_default.section, className), children: [
|
|
32119
|
+
title && /* @__PURE__ */ jsx47($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
32089
32120
|
children
|
|
32090
32121
|
] });
|
|
32091
32122
|
}
|
|
32092
32123
|
|
|
32093
32124
|
// src/components/Modal.tsx
|
|
32094
|
-
var
|
|
32125
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
32095
32126
|
|
|
32096
32127
|
// css-modules:E:\dev\umami-react-zen\src\components\Modal.module.css
|
|
32097
32128
|
var Modal_default = { "overlay": "Modal_overlay__OGJmN", "modal-fade-in": "Modal_modal-fade-in__MzJiZ", "modal": "Modal_modal__OTZjZ", "left": "Modal_left__Mzg1Z", "right": "Modal_right__YmRmZ", "top": "Modal_top__ZDUzY", "bottom": "Modal_bottom__ZDRhZ", "fullscreen": "Modal_fullscreen__NTU4O", "center": "Modal_center__NmI1N", "modal-zoom": "Modal_modal-zoom__ZWRlM", "modal-left": "Modal_modal-left__ODA0M", "modal-right": "Modal_modal-right__ZjYwM", "modal-top": "Modal_modal-top__N2VhY", "modal-bottom": "Modal_modal-bottom__ZTQ3Y" };
|
|
32098
32129
|
|
|
32099
32130
|
// src/components/Modal.tsx
|
|
32100
|
-
import { jsx as
|
|
32131
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
32101
32132
|
function Modal2({
|
|
32102
32133
|
position = "center",
|
|
32103
32134
|
offset,
|
|
@@ -32109,11 +32140,11 @@ function Modal2({
|
|
|
32109
32140
|
if (offset) {
|
|
32110
32141
|
style[`--modal-offset`] = offset;
|
|
32111
32142
|
}
|
|
32112
|
-
return /* @__PURE__ */
|
|
32143
|
+
return /* @__PURE__ */ jsx48($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ jsx48($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames38.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
32113
32144
|
}
|
|
32114
32145
|
|
|
32115
32146
|
// src/components/NavBar.tsx
|
|
32116
|
-
var
|
|
32147
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
32117
32148
|
import {
|
|
32118
32149
|
createContext as createContext3,
|
|
32119
32150
|
useContext as useContext5,
|
|
@@ -32124,7 +32155,7 @@ import {
|
|
|
32124
32155
|
var NavBar_default = { "nav": "NavBar_nav__NDgxZ", "item": "NavBar_item__OGRlN", "icon": "NavBar_icon__NWFiY" };
|
|
32125
32156
|
|
|
32126
32157
|
// src/components/NavBar.tsx
|
|
32127
|
-
import { jsx as
|
|
32158
|
+
import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
32128
32159
|
var NavBarContext = createContext3(void 0);
|
|
32129
32160
|
var useNavigationContext = () => {
|
|
32130
32161
|
const context = useContext5(NavBarContext);
|
|
@@ -32135,80 +32166,80 @@ var useNavigationContext = () => {
|
|
|
32135
32166
|
};
|
|
32136
32167
|
function NavBar({ showArrow = true, className, children, ...props }) {
|
|
32137
32168
|
const [activeMenu, setActiveMenu] = useState14("");
|
|
32138
|
-
return /* @__PURE__ */
|
|
32169
|
+
return /* @__PURE__ */ jsx49(NavBarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.nav, className), children }) });
|
|
32139
32170
|
}
|
|
32140
32171
|
function NavBarItem({ label, children, className, ...props }) {
|
|
32141
32172
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
32142
32173
|
if (label) {
|
|
32143
|
-
return /* @__PURE__ */
|
|
32144
|
-
/* @__PURE__ */
|
|
32145
|
-
/* @__PURE__ */
|
|
32146
|
-
/* @__PURE__ */
|
|
32174
|
+
return /* @__PURE__ */ jsxs25(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
32175
|
+
/* @__PURE__ */ jsxs25("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children: [
|
|
32176
|
+
/* @__PURE__ */ jsx49(Text, { children: label }),
|
|
32177
|
+
/* @__PURE__ */ jsx49(Icon, { rotate: 90, size: "xs", className: NavBar_default.icon, children: /* @__PURE__ */ jsx49(Icons.Chevron, {}) })
|
|
32147
32178
|
] }),
|
|
32148
32179
|
children
|
|
32149
32180
|
] });
|
|
32150
32181
|
}
|
|
32151
|
-
return /* @__PURE__ */
|
|
32182
|
+
return /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children });
|
|
32152
32183
|
}
|
|
32153
32184
|
|
|
32154
32185
|
// src/components/PasswordField.tsx
|
|
32155
32186
|
import { useState as useState15, forwardRef as forwardRef6 } from "react";
|
|
32156
|
-
var
|
|
32187
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
32157
32188
|
|
|
32158
32189
|
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
32159
32190
|
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
32160
32191
|
|
|
32161
32192
|
// src/components/PasswordField.tsx
|
|
32162
|
-
import { jsx as
|
|
32193
|
+
import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
32163
32194
|
var PasswordField = forwardRef6(
|
|
32164
32195
|
({ label, className, ...props }, ref) => {
|
|
32165
32196
|
const [show, setShow] = useState15(false);
|
|
32166
32197
|
const type = show ? "text" : "password";
|
|
32167
32198
|
const handleShowPassword = () => setShow((state) => !state);
|
|
32168
|
-
return /* @__PURE__ */
|
|
32169
|
-
label && /* @__PURE__ */
|
|
32170
|
-
/* @__PURE__ */
|
|
32171
|
-
/* @__PURE__ */
|
|
32172
|
-
/* @__PURE__ */
|
|
32199
|
+
return /* @__PURE__ */ jsxs26($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames40.default)(input_default.field, className), children: [
|
|
32200
|
+
label && /* @__PURE__ */ jsx50(Label2, { children: label }),
|
|
32201
|
+
/* @__PURE__ */ jsxs26("div", { className: input_default.row, children: [
|
|
32202
|
+
/* @__PURE__ */ jsx50($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
32203
|
+
/* @__PURE__ */ jsx50(Icon, { onClick: handleShowPassword, className: (0, import_classnames40.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ jsx50(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx50(Icons.Eye, {}) })
|
|
32173
32204
|
] })
|
|
32174
32205
|
] });
|
|
32175
32206
|
}
|
|
32176
32207
|
);
|
|
32177
32208
|
|
|
32178
32209
|
// src/components/ProgressBar.tsx
|
|
32179
|
-
var
|
|
32210
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
32180
32211
|
|
|
32181
32212
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
32182
32213
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
32183
32214
|
|
|
32184
32215
|
// src/components/ProgressBar.tsx
|
|
32185
|
-
import { Fragment as Fragment6, jsx as
|
|
32216
|
+
import { Fragment as Fragment6, jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
32186
32217
|
function ProgressBar2({ className, showValue, ...props }) {
|
|
32187
|
-
return /* @__PURE__ */
|
|
32188
|
-
return /* @__PURE__ */
|
|
32189
|
-
/* @__PURE__ */
|
|
32190
|
-
showValue && /* @__PURE__ */
|
|
32218
|
+
return /* @__PURE__ */ jsx51($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
32219
|
+
return /* @__PURE__ */ jsxs27(Fragment6, { children: [
|
|
32220
|
+
/* @__PURE__ */ jsx51("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx51("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
32221
|
+
showValue && /* @__PURE__ */ jsx51("div", { className: ProgressBar_default.value, children: valueText })
|
|
32191
32222
|
] });
|
|
32192
32223
|
} });
|
|
32193
32224
|
}
|
|
32194
32225
|
|
|
32195
32226
|
// src/components/ProgressCircle.tsx
|
|
32196
|
-
var
|
|
32227
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
32197
32228
|
|
|
32198
32229
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
32199
32230
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
32200
32231
|
|
|
32201
32232
|
// src/components/ProgressCircle.tsx
|
|
32202
|
-
import { Fragment as Fragment7, jsx as
|
|
32233
|
+
import { Fragment as Fragment7, jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
32203
32234
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
32204
|
-
return /* @__PURE__ */
|
|
32235
|
+
return /* @__PURE__ */ jsx52($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
32205
32236
|
const radius = 45;
|
|
32206
32237
|
const circumference = radius * 2 * Math.PI;
|
|
32207
32238
|
const offset = circumference - percentage / 100 * circumference;
|
|
32208
|
-
return /* @__PURE__ */
|
|
32209
|
-
/* @__PURE__ */
|
|
32210
|
-
/* @__PURE__ */
|
|
32211
|
-
/* @__PURE__ */
|
|
32239
|
+
return /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
32240
|
+
/* @__PURE__ */ jsxs28("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
32241
|
+
/* @__PURE__ */ jsx52("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
32242
|
+
/* @__PURE__ */ jsx52(
|
|
32212
32243
|
"circle",
|
|
32213
32244
|
{
|
|
32214
32245
|
className: ProgressCircle_default.fill,
|
|
@@ -32220,41 +32251,41 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
32220
32251
|
}
|
|
32221
32252
|
)
|
|
32222
32253
|
] }),
|
|
32223
|
-
showValue && /* @__PURE__ */
|
|
32254
|
+
showValue && /* @__PURE__ */ jsx52("label", { className: ProgressCircle_default.value, children: valueText })
|
|
32224
32255
|
] });
|
|
32225
32256
|
} });
|
|
32226
32257
|
}
|
|
32227
32258
|
|
|
32228
32259
|
// src/components/RadioGroup.tsx
|
|
32229
32260
|
import { forwardRef as forwardRef7 } from "react";
|
|
32230
|
-
var
|
|
32261
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
32231
32262
|
|
|
32232
32263
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
32233
32264
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjI3O", "radio": "RadioGroup_radio__NjJiN" };
|
|
32234
32265
|
|
|
32235
32266
|
// src/components/RadioGroup.tsx
|
|
32236
|
-
import { jsx as
|
|
32267
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
32237
32268
|
var RadioGroup2 = forwardRef7(
|
|
32238
32269
|
({ label, children, className, ...props }, ref) => {
|
|
32239
|
-
return /* @__PURE__ */
|
|
32240
|
-
label && /* @__PURE__ */
|
|
32270
|
+
return /* @__PURE__ */ jsxs29($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, className), children: [
|
|
32271
|
+
label && /* @__PURE__ */ jsx53(Label2, { children: label }),
|
|
32241
32272
|
children
|
|
32242
32273
|
] });
|
|
32243
32274
|
}
|
|
32244
32275
|
);
|
|
32245
32276
|
function Radio2({ children, className, ...props }) {
|
|
32246
|
-
return /* @__PURE__ */
|
|
32277
|
+
return /* @__PURE__ */ jsx53($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
|
|
32247
32278
|
}
|
|
32248
32279
|
|
|
32249
32280
|
// src/components/SearchField.tsx
|
|
32250
32281
|
import { useState as useState16, useEffect as useEffect12, forwardRef as forwardRef8 } from "react";
|
|
32251
|
-
var
|
|
32282
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
32252
32283
|
|
|
32253
32284
|
// css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
|
|
32254
32285
|
var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "SearchField_input__OGFiY", "close": "SearchField_close__NmJkM" };
|
|
32255
32286
|
|
|
32256
32287
|
// src/components/SearchField.tsx
|
|
32257
|
-
import { Fragment as Fragment8, jsx as
|
|
32288
|
+
import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
32258
32289
|
var SearchField2 = forwardRef8(
|
|
32259
32290
|
({ label, placeholder, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
32260
32291
|
const [search, setSearch] = useState16(value ?? "");
|
|
@@ -32274,31 +32305,31 @@ var SearchField2 = forwardRef8(
|
|
|
32274
32305
|
onSearch?.(searchValue);
|
|
32275
32306
|
}
|
|
32276
32307
|
}, [searchValue, delay]);
|
|
32277
|
-
return /* @__PURE__ */
|
|
32308
|
+
return /* @__PURE__ */ jsx54(
|
|
32278
32309
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
32279
32310
|
{
|
|
32280
32311
|
...props,
|
|
32281
32312
|
ref,
|
|
32282
|
-
className: (0,
|
|
32313
|
+
className: (0, import_classnames44.default)(input_default.field, className),
|
|
32283
32314
|
onChange: handleChange,
|
|
32284
32315
|
children: ({ state }) => {
|
|
32285
|
-
return /* @__PURE__ */
|
|
32286
|
-
label && /* @__PURE__ */
|
|
32287
|
-
/* @__PURE__ */
|
|
32288
|
-
/* @__PURE__ */
|
|
32289
|
-
/* @__PURE__ */
|
|
32316
|
+
return /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
32317
|
+
label && /* @__PURE__ */ jsx54(Label2, { children: label }),
|
|
32318
|
+
/* @__PURE__ */ jsxs30("div", { className: input_default.row, children: [
|
|
32319
|
+
/* @__PURE__ */ jsx54(Icon, { className: (0, import_classnames44.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ jsx54(Icons.MagnifyingGlass, {}) }),
|
|
32320
|
+
/* @__PURE__ */ jsx54(
|
|
32290
32321
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
32291
32322
|
{
|
|
32292
|
-
className: (0,
|
|
32323
|
+
className: (0, import_classnames44.default)(SearchField_default.input, input_default.input),
|
|
32293
32324
|
placeholder
|
|
32294
32325
|
}
|
|
32295
32326
|
),
|
|
32296
|
-
state.value && /* @__PURE__ */
|
|
32327
|
+
state.value && /* @__PURE__ */ jsx54(
|
|
32297
32328
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
32298
32329
|
{
|
|
32299
|
-
className: (0,
|
|
32330
|
+
className: (0, import_classnames44.default)(SearchField_default.close, input_default.icon),
|
|
32300
32331
|
onPress: resetSearch,
|
|
32301
|
-
children: /* @__PURE__ */
|
|
32332
|
+
children: /* @__PURE__ */ jsx54(Icon, { size: "sm", children: /* @__PURE__ */ jsx54(Icons.Close, {}) })
|
|
32302
32333
|
}
|
|
32303
32334
|
)
|
|
32304
32335
|
] })
|
|
@@ -32310,14 +32341,14 @@ var SearchField2 = forwardRef8(
|
|
|
32310
32341
|
);
|
|
32311
32342
|
|
|
32312
32343
|
// src/components/Select.tsx
|
|
32313
|
-
var
|
|
32344
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
32314
32345
|
import { forwardRef as forwardRef9 } from "react";
|
|
32315
32346
|
|
|
32316
32347
|
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
32317
32348
|
var Select_default = { "button": "Select_button__YTc2N", "list": "Select_list__ZjZhM", "icon": "Select_icon__NzU3O" };
|
|
32318
32349
|
|
|
32319
32350
|
// src/components/Select.tsx
|
|
32320
|
-
import { jsx as
|
|
32351
|
+
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
32321
32352
|
var Select2 = forwardRef9(
|
|
32322
32353
|
({
|
|
32323
32354
|
children,
|
|
@@ -32333,20 +32364,20 @@ var Select2 = forwardRef9(
|
|
|
32333
32364
|
onSelectionChange?.(e);
|
|
32334
32365
|
onChange?.(e);
|
|
32335
32366
|
};
|
|
32336
|
-
return /* @__PURE__ */
|
|
32367
|
+
return /* @__PURE__ */ jsxs31(
|
|
32337
32368
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
32338
32369
|
{
|
|
32339
32370
|
...props,
|
|
32340
32371
|
ref,
|
|
32341
|
-
className: (0,
|
|
32372
|
+
className: (0, import_classnames45.default)(input_default.field, className),
|
|
32342
32373
|
onSelectionChange: handleChange,
|
|
32343
32374
|
children: [
|
|
32344
|
-
label && /* @__PURE__ */
|
|
32345
|
-
/* @__PURE__ */
|
|
32346
|
-
/* @__PURE__ */
|
|
32347
|
-
/* @__PURE__ */
|
|
32375
|
+
label && /* @__PURE__ */ jsx55(Label2, { children: label }),
|
|
32376
|
+
/* @__PURE__ */ jsx55($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames45.default)(input_default.input, className), children: /* @__PURE__ */ jsxs31(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
32377
|
+
/* @__PURE__ */ jsx55($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
32378
|
+
/* @__PURE__ */ jsx55("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx55(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ jsx55(Icons.Chevron, {}) }) })
|
|
32348
32379
|
] }) }),
|
|
32349
|
-
/* @__PURE__ */
|
|
32380
|
+
/* @__PURE__ */ jsx55(Popover2, { children: /* @__PURE__ */ jsx55(List, { items, className: Select_default.list, children }) })
|
|
32350
32381
|
]
|
|
32351
32382
|
}
|
|
32352
32383
|
);
|
|
@@ -32354,27 +32385,9 @@ var Select2 = forwardRef9(
|
|
|
32354
32385
|
);
|
|
32355
32386
|
|
|
32356
32387
|
// src/components/SideNav.tsx
|
|
32357
|
-
var
|
|
32388
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
32358
32389
|
import { createContext as createContext4, useContext as useContext6 } from "react";
|
|
32359
32390
|
|
|
32360
|
-
// src/components/Tooltip.tsx
|
|
32361
|
-
var import_classnames44 = __toESM(require_classnames());
|
|
32362
|
-
|
|
32363
|
-
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
32364
|
-
var Tooltip_default = { "tooltip": "Tooltip_tooltip__ODVhY", "bubble": "Tooltip_bubble__OTMzY", "floating": "Tooltip_floating__YWVjM", "arrow": "Tooltip_arrow__ZmMyY", "slide": "Tooltip_slide__OWE0Z" };
|
|
32365
|
-
|
|
32366
|
-
// src/components/Tooltip.tsx
|
|
32367
|
-
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
32368
|
-
function Tooltip2({ children, className, showArrow = true, ...props }) {
|
|
32369
|
-
return /* @__PURE__ */ jsxs31($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames44.default)(Tooltip_default.tooltip, className), children: [
|
|
32370
|
-
showArrow && /* @__PURE__ */ jsx55($44f671af83e7d9e0$export$746d02f47f4d381, { className: (0, import_classnames44.default)(Tooltip_default.arrow), children: /* @__PURE__ */ jsx55("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx55("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
32371
|
-
/* @__PURE__ */ jsx55(TooltipBubble, { children })
|
|
32372
|
-
] });
|
|
32373
|
-
}
|
|
32374
|
-
function TooltipBubble({ children }) {
|
|
32375
|
-
return /* @__PURE__ */ jsx55("div", { className: Tooltip_default.bubble, children });
|
|
32376
|
-
}
|
|
32377
|
-
|
|
32378
32391
|
// css-modules:E:\dev\umami-react-zen\src\components\SideNav.module.css
|
|
32379
32392
|
var SideNav_default = { "sidenav": "SideNav_sidenav__NTNmY", "header": "SideNav_header__NzhjN", "name": "SideNav_name__ZWUxM", "section": "SideNav_section__MmE3N", "title": "SideNav_title__N2Y0O", "content": "SideNav_content__MzA2M", "item": "SideNav_item__OGU5M", "label": "SideNav_label__NjFiY", "collapsed": "SideNav_collapsed__NTBlM" };
|
|
32380
32393
|
|
|
@@ -32382,7 +32395,7 @@ var SideNav_default = { "sidenav": "SideNav_sidenav__NTNmY", "header": "SideNav_
|
|
|
32382
32395
|
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
32383
32396
|
var SideNavContext = createContext4(null);
|
|
32384
32397
|
function SideNav({ isCollapsed, children }) {
|
|
32385
|
-
return /* @__PURE__ */ jsx56(SideNavContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsx56("div", { className: (0,
|
|
32398
|
+
return /* @__PURE__ */ jsx56(SideNavContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsx56("div", { className: (0, import_classnames46.default)(SideNav_default.sidenav, isCollapsed && SideNav_default.collapsed), children }) });
|
|
32386
32399
|
}
|
|
32387
32400
|
function SideNavHeader({
|
|
32388
32401
|
name,
|
|
@@ -32391,7 +32404,7 @@ function SideNavHeader({
|
|
|
32391
32404
|
}) {
|
|
32392
32405
|
return /* @__PURE__ */ jsxs32(Block, { children: [
|
|
32393
32406
|
icon && /* @__PURE__ */ jsx56(Icon, { size: "sm", children: icon }),
|
|
32394
|
-
/* @__PURE__ */ jsx56("div", { className: (0,
|
|
32407
|
+
/* @__PURE__ */ jsx56("div", { className: (0, import_classnames46.default)(SideNav_default.name, SideNav_default.label), children: name }),
|
|
32395
32408
|
children
|
|
32396
32409
|
] });
|
|
32397
32410
|
}
|
|
@@ -32410,11 +32423,11 @@ function SideNavItem({
|
|
|
32410
32423
|
const { isCollapsed } = useContext6(SideNavContext);
|
|
32411
32424
|
if (isCollapsed) {
|
|
32412
32425
|
return /* @__PURE__ */ jsxs32($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, children: [
|
|
32413
|
-
/* @__PURE__ */ jsx56($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsx56(Block, { className: (0,
|
|
32426
|
+
/* @__PURE__ */ jsx56($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsx56(Block, { className: (0, import_classnames46.default)(SideNav_default.item, className), children: icon && /* @__PURE__ */ jsx56(Icon, { size: "sm", children: icon }) }) }),
|
|
32414
32427
|
/* @__PURE__ */ jsx56(Tooltip2, { placement: "right", children: label })
|
|
32415
32428
|
] });
|
|
32416
32429
|
}
|
|
32417
|
-
return /* @__PURE__ */ jsxs32(Block, { ...props, className: (0,
|
|
32430
|
+
return /* @__PURE__ */ jsxs32(Block, { ...props, className: (0, import_classnames46.default)(SideNav_default.item, className), children: [
|
|
32418
32431
|
icon && /* @__PURE__ */ jsx56(Icon, { size: "sm", children: icon }),
|
|
32419
32432
|
label && /* @__PURE__ */ jsx56(Text, { className: SideNav_default.label, children: label })
|
|
32420
32433
|
] });
|
|
@@ -32422,7 +32435,7 @@ function SideNavItem({
|
|
|
32422
32435
|
|
|
32423
32436
|
// src/components/Slider.tsx
|
|
32424
32437
|
import { forwardRef as forwardRef10 } from "react";
|
|
32425
|
-
var
|
|
32438
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
32426
32439
|
|
|
32427
32440
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
32428
32441
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
@@ -32431,7 +32444,7 @@ var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_heade
|
|
|
32431
32444
|
import { Fragment as Fragment9, jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
32432
32445
|
var Slider2 = forwardRef10(
|
|
32433
32446
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
32434
|
-
return /* @__PURE__ */ jsxs33($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0,
|
|
32447
|
+
return /* @__PURE__ */ jsxs33($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
32435
32448
|
/* @__PURE__ */ jsxs33("div", { className: Slider_default.header, children: [
|
|
32436
32449
|
label && /* @__PURE__ */ jsx57(Label2, { className: Slider_default.label, children: label }),
|
|
32437
32450
|
showValue && /* @__PURE__ */ jsx57($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
@@ -32456,7 +32469,7 @@ var Slider2 = forwardRef10(
|
|
|
32456
32469
|
);
|
|
32457
32470
|
|
|
32458
32471
|
// src/components/StatusLight.tsx
|
|
32459
|
-
var
|
|
32472
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
32460
32473
|
|
|
32461
32474
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
32462
32475
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "status": "StatusLight_status__MDNmO", "bg": "StatusLight_bg__MjVjN", "success": "StatusLight_success__ZWI1N", "warning": "StatusLight_warning__YWRmM", "error": "StatusLight_error__NjdjM", "active": "StatusLight_active__NGZiY", "inactive": "StatusLight_inactive__NDI0Z" };
|
|
@@ -32465,11 +32478,11 @@ var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "st
|
|
|
32465
32478
|
import { jsx as jsx58, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
32466
32479
|
function StatusLight(props) {
|
|
32467
32480
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
32468
|
-
return /* @__PURE__ */ jsxs34("div", { ...domProps, className: (0,
|
|
32481
|
+
return /* @__PURE__ */ jsxs34("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
|
|
32469
32482
|
/* @__PURE__ */ jsx58("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx58(
|
|
32470
32483
|
"div",
|
|
32471
32484
|
{
|
|
32472
|
-
className: (0,
|
|
32485
|
+
className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
32473
32486
|
style: { backgroundColor: color }
|
|
32474
32487
|
}
|
|
32475
32488
|
) }),
|
|
@@ -32479,7 +32492,7 @@ function StatusLight(props) {
|
|
|
32479
32492
|
|
|
32480
32493
|
// src/components/Switch.tsx
|
|
32481
32494
|
import { forwardRef as forwardRef11 } from "react";
|
|
32482
|
-
var
|
|
32495
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
32483
32496
|
|
|
32484
32497
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
32485
32498
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
@@ -32497,7 +32510,7 @@ var Switch2 = forwardRef11(
|
|
|
32497
32510
|
...props,
|
|
32498
32511
|
isSelected,
|
|
32499
32512
|
ref,
|
|
32500
|
-
className: (0,
|
|
32513
|
+
className: (0, import_classnames49.default)(Switch_default.switch, className),
|
|
32501
32514
|
children: [
|
|
32502
32515
|
/* @__PURE__ */ jsx59("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx59("div", { className: Switch_default.knob }) }),
|
|
32503
32516
|
children
|
|
@@ -32527,7 +32540,7 @@ function TabPanel2({ children, ...props }) {
|
|
|
32527
32540
|
}
|
|
32528
32541
|
|
|
32529
32542
|
// src/components/TextArea.tsx
|
|
32530
|
-
var
|
|
32543
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
32531
32544
|
import { forwardRef as forwardRef12 } from "react";
|
|
32532
32545
|
|
|
32533
32546
|
// css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
|
|
@@ -32542,7 +32555,7 @@ var TextArea2 = forwardRef12(
|
|
|
32542
32555
|
{
|
|
32543
32556
|
...props,
|
|
32544
32557
|
ref,
|
|
32545
|
-
className: (0,
|
|
32558
|
+
className: (0, import_classnames50.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
32546
32559
|
asChild: true,
|
|
32547
32560
|
children: /* @__PURE__ */ jsx61($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
32548
32561
|
}
|
|
@@ -32551,7 +32564,7 @@ var TextArea2 = forwardRef12(
|
|
|
32551
32564
|
);
|
|
32552
32565
|
|
|
32553
32566
|
// src/components/ThemeButton.tsx
|
|
32554
|
-
var
|
|
32567
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
32555
32568
|
|
|
32556
32569
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
32557
32570
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
@@ -32586,7 +32599,7 @@ function ThemeButton({
|
|
|
32586
32599
|
Button2,
|
|
32587
32600
|
{
|
|
32588
32601
|
...props,
|
|
32589
|
-
className: (0,
|
|
32602
|
+
className: (0, import_classnames51.default)(ThemeButton_default.button, className),
|
|
32590
32603
|
variant,
|
|
32591
32604
|
onPress: handleClick,
|
|
32592
32605
|
children: [
|
|
@@ -32602,7 +32615,7 @@ function ThemeButton({
|
|
|
32602
32615
|
|
|
32603
32616
|
// src/components/Toggle.tsx
|
|
32604
32617
|
import { forwardRef as forwardRef13 } from "react";
|
|
32605
|
-
var
|
|
32618
|
+
var import_classnames52 = __toESM(require_classnames());
|
|
32606
32619
|
|
|
32607
32620
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
32608
32621
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
@@ -32620,7 +32633,7 @@ var Toggle = forwardRef13(
|
|
|
32620
32633
|
...props,
|
|
32621
32634
|
ref,
|
|
32622
32635
|
isSelected,
|
|
32623
|
-
className: (0,
|
|
32636
|
+
className: (0, import_classnames52.default)(Toggle_default.toggle, className),
|
|
32624
32637
|
children
|
|
32625
32638
|
}
|
|
32626
32639
|
)
|
|
@@ -32629,7 +32642,7 @@ var Toggle = forwardRef13(
|
|
|
32629
32642
|
);
|
|
32630
32643
|
|
|
32631
32644
|
// src/components/ToggleGroup.tsx
|
|
32632
|
-
var
|
|
32645
|
+
var import_classnames53 = __toESM(require_classnames());
|
|
32633
32646
|
|
|
32634
32647
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
32635
32648
|
var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "ToggleGroup_list__MjNjO", "item": "ToggleGroup_item__YTNhN" };
|
|
@@ -32637,13 +32650,13 @@ var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "Toggle
|
|
|
32637
32650
|
// src/components/ToggleGroup.tsx
|
|
32638
32651
|
import { jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
32639
32652
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
32640
|
-
return /* @__PURE__ */ jsxs38($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0,
|
|
32653
|
+
return /* @__PURE__ */ jsxs38($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
32641
32654
|
label && /* @__PURE__ */ jsx64(Label2, { children: label }),
|
|
32642
32655
|
/* @__PURE__ */ jsx64($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
32643
32656
|
] });
|
|
32644
32657
|
}
|
|
32645
32658
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
32646
|
-
return /* @__PURE__ */ jsx64($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0,
|
|
32659
|
+
return /* @__PURE__ */ jsx64($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
|
|
32647
32660
|
}
|
|
32648
32661
|
|
|
32649
32662
|
// src/components/ZenProvider.tsx
|