@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.js
CHANGED
|
@@ -167,7 +167,7 @@ var require_classnames = __commonJS({
|
|
|
167
167
|
(function() {
|
|
168
168
|
"use strict";
|
|
169
169
|
var hasOwn = {}.hasOwnProperty;
|
|
170
|
-
function
|
|
170
|
+
function classNames54() {
|
|
171
171
|
var classes = "";
|
|
172
172
|
for (var i = 0; i < arguments.length; i++) {
|
|
173
173
|
var arg = arguments[i];
|
|
@@ -185,7 +185,7 @@ var require_classnames = __commonJS({
|
|
|
185
185
|
return "";
|
|
186
186
|
}
|
|
187
187
|
if (Array.isArray(arg)) {
|
|
188
|
-
return
|
|
188
|
+
return classNames54.apply(null, arg);
|
|
189
189
|
}
|
|
190
190
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
191
191
|
return arg.toString();
|
|
@@ -208,14 +208,14 @@ var require_classnames = __commonJS({
|
|
|
208
208
|
return value + newClass;
|
|
209
209
|
}
|
|
210
210
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
211
|
-
|
|
212
|
-
module2.exports =
|
|
211
|
+
classNames54.default = classNames54;
|
|
212
|
+
module2.exports = classNames54;
|
|
213
213
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
214
214
|
define("classnames", [], function() {
|
|
215
|
-
return
|
|
215
|
+
return classNames54;
|
|
216
216
|
});
|
|
217
217
|
} else {
|
|
218
|
-
window.classNames =
|
|
218
|
+
window.classNames = classNames54;
|
|
219
219
|
}
|
|
220
220
|
})();
|
|
221
221
|
}
|
|
@@ -27115,6 +27115,8 @@ function Box({
|
|
|
27115
27115
|
display,
|
|
27116
27116
|
color,
|
|
27117
27117
|
backgroundColor,
|
|
27118
|
+
fontSize,
|
|
27119
|
+
fontWeight,
|
|
27118
27120
|
borderSize,
|
|
27119
27121
|
borderRadius,
|
|
27120
27122
|
shadow,
|
|
@@ -27166,6 +27168,8 @@ function Box({
|
|
|
27166
27168
|
display,
|
|
27167
27169
|
color,
|
|
27168
27170
|
backgroundColor,
|
|
27171
|
+
fontSize,
|
|
27172
|
+
fontWeight,
|
|
27169
27173
|
borderSize,
|
|
27170
27174
|
borderRadius,
|
|
27171
27175
|
shadow,
|
|
@@ -31876,13 +31880,32 @@ function Dots({ className, ...props }) {
|
|
|
31876
31880
|
|
|
31877
31881
|
// src/components/FloatingTooltip.tsx
|
|
31878
31882
|
var import_react185 = require("react");
|
|
31883
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
31884
|
+
|
|
31885
|
+
// src/components/Tooltip.tsx
|
|
31886
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
31887
|
+
|
|
31888
|
+
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
31889
|
+
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
31890
|
+
|
|
31891
|
+
// src/components/Tooltip.tsx
|
|
31892
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
31893
|
+
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
31894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames30.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipBubble, { showArrow, children }) });
|
|
31895
|
+
}
|
|
31896
|
+
function TooltipBubble({ showArrow, children, ...props }) {
|
|
31897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ...props, children: [
|
|
31898
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
31899
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Tooltip_default.bubble, children })
|
|
31900
|
+
] });
|
|
31901
|
+
}
|
|
31879
31902
|
|
|
31880
31903
|
// css-modules:E:\dev\umami-react-zen\src\components\FloatingTooltip.module.css
|
|
31881
|
-
var FloatingTooltip_default = { "
|
|
31904
|
+
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
31882
31905
|
|
|
31883
31906
|
// src/components/FloatingTooltip.tsx
|
|
31884
|
-
var
|
|
31885
|
-
function FloatingTooltip({ children }) {
|
|
31907
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
31908
|
+
function FloatingTooltip({ className, style, children, ...props }) {
|
|
31886
31909
|
const [position, setPosition] = (0, import_react185.useState)({ x: -1e3, y: -1e3 });
|
|
31887
31910
|
(0, import_react185.useEffect)(() => {
|
|
31888
31911
|
const handler = (e) => {
|
|
@@ -31893,12 +31916,20 @@ function FloatingTooltip({ children }) {
|
|
|
31893
31916
|
document.removeEventListener("mousemove", handler);
|
|
31894
31917
|
};
|
|
31895
31918
|
}, []);
|
|
31896
|
-
return /* @__PURE__ */ (0,
|
|
31919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
31920
|
+
TooltipBubble,
|
|
31921
|
+
{
|
|
31922
|
+
...props,
|
|
31923
|
+
className: (0, import_classnames31.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
31924
|
+
style: { ...style, left: position.x, top: position.y },
|
|
31925
|
+
children
|
|
31926
|
+
}
|
|
31927
|
+
);
|
|
31897
31928
|
}
|
|
31898
31929
|
|
|
31899
31930
|
// src/components/Grid.tsx
|
|
31900
|
-
var
|
|
31901
|
-
var
|
|
31931
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
31932
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
31902
31933
|
function Grid({
|
|
31903
31934
|
display = "grid",
|
|
31904
31935
|
justifyContent,
|
|
@@ -31931,17 +31962,17 @@ function Grid({
|
|
|
31931
31962
|
gridTemplateAreas: areas,
|
|
31932
31963
|
gridAutoFlow: autoFlow
|
|
31933
31964
|
});
|
|
31934
|
-
return /* @__PURE__ */ (0,
|
|
31965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Box, { ...props, className: (0, import_classnames32.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
31935
31966
|
}
|
|
31936
31967
|
|
|
31937
31968
|
// src/components/Heading.tsx
|
|
31938
|
-
var
|
|
31969
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
31939
31970
|
|
|
31940
31971
|
// css-modules:E:\dev\umami-react-zen\src\components\Heading.module.css
|
|
31941
31972
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
31942
31973
|
|
|
31943
31974
|
// src/components/Heading.tsx
|
|
31944
|
-
var
|
|
31975
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
31945
31976
|
function Heading2({
|
|
31946
31977
|
size = "3",
|
|
31947
31978
|
weight,
|
|
@@ -31958,11 +31989,11 @@ function Heading2({
|
|
|
31958
31989
|
fontWeight: weight,
|
|
31959
31990
|
letterSpacing: spacing
|
|
31960
31991
|
});
|
|
31961
|
-
return /* @__PURE__ */ (0,
|
|
31992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
31962
31993
|
Box,
|
|
31963
31994
|
{
|
|
31964
31995
|
...props,
|
|
31965
|
-
className: (0,
|
|
31996
|
+
className: (0, import_classnames33.default)(Heading_default.heading, className, classes),
|
|
31966
31997
|
style: { ...styleProps, ...style },
|
|
31967
31998
|
children
|
|
31968
31999
|
}
|
|
@@ -31976,7 +32007,7 @@ var import_react186 = require("react");
|
|
|
31976
32007
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
31977
32008
|
|
|
31978
32009
|
// src/components/HoverTrigger.tsx
|
|
31979
|
-
var
|
|
32010
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
31980
32011
|
var CLOSE_DELAY = 500;
|
|
31981
32012
|
function HoverTrigger({
|
|
31982
32013
|
isOpen,
|
|
@@ -32027,9 +32058,9 @@ function HoverTrigger({
|
|
|
32027
32058
|
}
|
|
32028
32059
|
}, closeDelay);
|
|
32029
32060
|
};
|
|
32030
|
-
return /* @__PURE__ */ (0,
|
|
32031
|
-
/* @__PURE__ */ (0,
|
|
32032
|
-
/* @__PURE__ */ (0,
|
|
32061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
32062
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
32063
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
32033
32064
|
"div",
|
|
32034
32065
|
{
|
|
32035
32066
|
className: HoverTrigger_default.wrapper,
|
|
@@ -32042,13 +32073,13 @@ function HoverTrigger({
|
|
|
32042
32073
|
}
|
|
32043
32074
|
|
|
32044
32075
|
// src/components/Image.tsx
|
|
32045
|
-
var
|
|
32076
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
32046
32077
|
|
|
32047
32078
|
// css-modules:E:\dev\umami-react-zen\src\components\Image.module.css
|
|
32048
32079
|
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" };
|
|
32049
32080
|
|
|
32050
32081
|
// src/components/Image.tsx
|
|
32051
|
-
var
|
|
32082
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
32052
32083
|
function Image({
|
|
32053
32084
|
src,
|
|
32054
32085
|
alt,
|
|
@@ -32061,11 +32092,11 @@ function Image({
|
|
|
32061
32092
|
...props
|
|
32062
32093
|
}) {
|
|
32063
32094
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
32064
|
-
return /* @__PURE__ */ (0,
|
|
32095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
32065
32096
|
"img",
|
|
32066
32097
|
{
|
|
32067
32098
|
...props,
|
|
32068
|
-
className: (0,
|
|
32099
|
+
className: (0, import_classnames34.default)(
|
|
32069
32100
|
Image_default.image,
|
|
32070
32101
|
className,
|
|
32071
32102
|
classes,
|
|
@@ -32082,13 +32113,13 @@ function Image({
|
|
|
32082
32113
|
|
|
32083
32114
|
// src/components/InlineEditField.tsx
|
|
32084
32115
|
var import_react187 = require("react");
|
|
32085
|
-
var
|
|
32116
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
32086
32117
|
|
|
32087
32118
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
32088
32119
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
32089
32120
|
|
|
32090
32121
|
// src/components/InlineEditField.tsx
|
|
32091
|
-
var
|
|
32122
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
32092
32123
|
function InlineEditField({
|
|
32093
32124
|
name = "",
|
|
32094
32125
|
value: defaultValue = "",
|
|
@@ -32124,17 +32155,17 @@ function InlineEditField({
|
|
|
32124
32155
|
handleCancel();
|
|
32125
32156
|
}
|
|
32126
32157
|
};
|
|
32127
|
-
return /* @__PURE__ */ (0,
|
|
32158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
32128
32159
|
"div",
|
|
32129
32160
|
{
|
|
32130
32161
|
"aria-label": "Edit",
|
|
32131
32162
|
...props,
|
|
32132
|
-
className: (0,
|
|
32163
|
+
className: (0, import_classnames35.default)(InlineEditField_default.edit, className),
|
|
32133
32164
|
onClick: handleEdit,
|
|
32134
32165
|
children: [
|
|
32135
32166
|
!edit && children,
|
|
32136
|
-
!edit && /* @__PURE__ */ (0,
|
|
32137
|
-
edit && /* @__PURE__ */ (0,
|
|
32167
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icons.Edit, {}) }),
|
|
32168
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
32138
32169
|
TextField2,
|
|
32139
32170
|
{
|
|
32140
32171
|
name,
|
|
@@ -32151,45 +32182,45 @@ function InlineEditField({
|
|
|
32151
32182
|
}
|
|
32152
32183
|
|
|
32153
32184
|
// src/components/Loading.tsx
|
|
32154
|
-
var
|
|
32185
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
32155
32186
|
|
|
32156
32187
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
32157
32188
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
32158
32189
|
|
|
32159
32190
|
// src/components/Loading.tsx
|
|
32160
|
-
var
|
|
32191
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
32161
32192
|
function Loading(props) {
|
|
32162
32193
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
32163
|
-
return /* @__PURE__ */ (0,
|
|
32164
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
32165
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
32194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { ...domProps, className: (0, import_classnames36.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
32195
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Dots, {}),
|
|
32196
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Spinner, { size })
|
|
32166
32197
|
] });
|
|
32167
32198
|
}
|
|
32168
32199
|
|
|
32169
32200
|
// src/components/Menu.tsx
|
|
32170
|
-
var
|
|
32201
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
32171
32202
|
|
|
32172
32203
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
32173
32204
|
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" };
|
|
32174
32205
|
|
|
32175
32206
|
// src/components/Menu.tsx
|
|
32176
|
-
var
|
|
32207
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
32177
32208
|
function Menu2({ items, className, children, ...props }) {
|
|
32178
|
-
return /* @__PURE__ */ (0,
|
|
32209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames37.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
|
|
32179
32210
|
if (item === null) {
|
|
32180
|
-
return /* @__PURE__ */ (0,
|
|
32211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
|
|
32181
32212
|
}
|
|
32182
|
-
return /* @__PURE__ */ (0,
|
|
32213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MenuItem2, { id: item, children: item }, index);
|
|
32183
32214
|
}) });
|
|
32184
32215
|
}
|
|
32185
32216
|
function MenuItem2({ children, className, ...props }) {
|
|
32186
|
-
return /* @__PURE__ */ (0,
|
|
32217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames37.default)(Menu_default.item, className), children: [
|
|
32187
32218
|
children,
|
|
32188
|
-
/* @__PURE__ */ (0,
|
|
32219
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icons.Check, {}) }) })
|
|
32189
32220
|
] });
|
|
32190
32221
|
}
|
|
32191
32222
|
function MenuSeparator({ className, ...props }) {
|
|
32192
|
-
return /* @__PURE__ */ (0,
|
|
32223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames37.default)(Menu_default.separator, className) });
|
|
32193
32224
|
}
|
|
32194
32225
|
function MenuSection({
|
|
32195
32226
|
title,
|
|
@@ -32197,20 +32228,20 @@ function MenuSection({
|
|
|
32197
32228
|
children,
|
|
32198
32229
|
...props
|
|
32199
32230
|
}) {
|
|
32200
|
-
return /* @__PURE__ */ (0,
|
|
32201
|
-
title && /* @__PURE__ */ (0,
|
|
32231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames37.default)(Menu_default.section, className), children: [
|
|
32232
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
32202
32233
|
children
|
|
32203
32234
|
] });
|
|
32204
32235
|
}
|
|
32205
32236
|
|
|
32206
32237
|
// src/components/Modal.tsx
|
|
32207
|
-
var
|
|
32238
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
32208
32239
|
|
|
32209
32240
|
// css-modules:E:\dev\umami-react-zen\src\components\Modal.module.css
|
|
32210
32241
|
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" };
|
|
32211
32242
|
|
|
32212
32243
|
// src/components/Modal.tsx
|
|
32213
|
-
var
|
|
32244
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
32214
32245
|
function Modal2({
|
|
32215
32246
|
position = "center",
|
|
32216
32247
|
offset,
|
|
@@ -32222,18 +32253,18 @@ function Modal2({
|
|
|
32222
32253
|
if (offset) {
|
|
32223
32254
|
style[`--modal-offset`] = offset;
|
|
32224
32255
|
}
|
|
32225
|
-
return /* @__PURE__ */ (0,
|
|
32256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames38.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
32226
32257
|
}
|
|
32227
32258
|
|
|
32228
32259
|
// src/components/NavBar.tsx
|
|
32229
32260
|
var import_react188 = require("react");
|
|
32230
|
-
var
|
|
32261
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
32231
32262
|
|
|
32232
32263
|
// css-modules:E:\dev\umami-react-zen\src\components\NavBar.module.css
|
|
32233
32264
|
var NavBar_default = { "nav": "NavBar_nav__NDgxZ", "item": "NavBar_item__OGRlN", "icon": "NavBar_icon__NWFiY" };
|
|
32234
32265
|
|
|
32235
32266
|
// src/components/NavBar.tsx
|
|
32236
|
-
var
|
|
32267
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
32237
32268
|
var NavBarContext = (0, import_react188.createContext)(void 0);
|
|
32238
32269
|
var useNavigationContext = () => {
|
|
32239
32270
|
const context = (0, import_react188.useContext)(NavBarContext);
|
|
@@ -32244,80 +32275,80 @@ var useNavigationContext = () => {
|
|
|
32244
32275
|
};
|
|
32245
32276
|
function NavBar({ showArrow = true, className, children, ...props }) {
|
|
32246
32277
|
const [activeMenu, setActiveMenu] = (0, import_react188.useState)("");
|
|
32247
|
-
return /* @__PURE__ */ (0,
|
|
32278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(NavBarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.nav, className), children }) });
|
|
32248
32279
|
}
|
|
32249
32280
|
function NavBarItem({ label, children, className, ...props }) {
|
|
32250
32281
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
32251
32282
|
if (label) {
|
|
32252
|
-
return /* @__PURE__ */ (0,
|
|
32253
|
-
/* @__PURE__ */ (0,
|
|
32254
|
-
/* @__PURE__ */ (0,
|
|
32255
|
-
/* @__PURE__ */ (0,
|
|
32283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
32284
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children: [
|
|
32285
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { children: label }),
|
|
32286
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { rotate: 90, size: "xs", className: NavBar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.Chevron, {}) })
|
|
32256
32287
|
] }),
|
|
32257
32288
|
children
|
|
32258
32289
|
] });
|
|
32259
32290
|
}
|
|
32260
|
-
return /* @__PURE__ */ (0,
|
|
32291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children });
|
|
32261
32292
|
}
|
|
32262
32293
|
|
|
32263
32294
|
// src/components/PasswordField.tsx
|
|
32264
32295
|
var import_react189 = require("react");
|
|
32265
|
-
var
|
|
32296
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
32266
32297
|
|
|
32267
32298
|
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
32268
32299
|
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
32269
32300
|
|
|
32270
32301
|
// src/components/PasswordField.tsx
|
|
32271
|
-
var
|
|
32302
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
32272
32303
|
var PasswordField = (0, import_react189.forwardRef)(
|
|
32273
32304
|
({ label, className, ...props }, ref) => {
|
|
32274
32305
|
const [show, setShow] = (0, import_react189.useState)(false);
|
|
32275
32306
|
const type = show ? "text" : "password";
|
|
32276
32307
|
const handleShowPassword = () => setShow((state) => !state);
|
|
32277
|
-
return /* @__PURE__ */ (0,
|
|
32278
|
-
label && /* @__PURE__ */ (0,
|
|
32279
|
-
/* @__PURE__ */ (0,
|
|
32280
|
-
/* @__PURE__ */ (0,
|
|
32281
|
-
/* @__PURE__ */ (0,
|
|
32308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames40.default)(input_default.field, className), children: [
|
|
32309
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Label2, { children: label }),
|
|
32310
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: input_default.row, children: [
|
|
32311
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
32312
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames40.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icons.Eye, {}) })
|
|
32282
32313
|
] })
|
|
32283
32314
|
] });
|
|
32284
32315
|
}
|
|
32285
32316
|
);
|
|
32286
32317
|
|
|
32287
32318
|
// src/components/ProgressBar.tsx
|
|
32288
|
-
var
|
|
32319
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
32289
32320
|
|
|
32290
32321
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
32291
32322
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
32292
32323
|
|
|
32293
32324
|
// src/components/ProgressBar.tsx
|
|
32294
|
-
var
|
|
32325
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
32295
32326
|
function ProgressBar2({ className, showValue, ...props }) {
|
|
32296
|
-
return /* @__PURE__ */ (0,
|
|
32297
|
-
return /* @__PURE__ */ (0,
|
|
32298
|
-
/* @__PURE__ */ (0,
|
|
32299
|
-
showValue && /* @__PURE__ */ (0,
|
|
32327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
32328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
32329
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
32330
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
32300
32331
|
] });
|
|
32301
32332
|
} });
|
|
32302
32333
|
}
|
|
32303
32334
|
|
|
32304
32335
|
// src/components/ProgressCircle.tsx
|
|
32305
|
-
var
|
|
32336
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
32306
32337
|
|
|
32307
32338
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
32308
32339
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
32309
32340
|
|
|
32310
32341
|
// src/components/ProgressCircle.tsx
|
|
32311
|
-
var
|
|
32342
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
32312
32343
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
32313
|
-
return /* @__PURE__ */ (0,
|
|
32344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
32314
32345
|
const radius = 45;
|
|
32315
32346
|
const circumference = radius * 2 * Math.PI;
|
|
32316
32347
|
const offset = circumference - percentage / 100 * circumference;
|
|
32317
|
-
return /* @__PURE__ */ (0,
|
|
32318
|
-
/* @__PURE__ */ (0,
|
|
32319
|
-
/* @__PURE__ */ (0,
|
|
32320
|
-
/* @__PURE__ */ (0,
|
|
32348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
32349
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
32350
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
32351
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
32321
32352
|
"circle",
|
|
32322
32353
|
{
|
|
32323
32354
|
className: ProgressCircle_default.fill,
|
|
@@ -32329,41 +32360,41 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
32329
32360
|
}
|
|
32330
32361
|
)
|
|
32331
32362
|
] }),
|
|
32332
|
-
showValue && /* @__PURE__ */ (0,
|
|
32363
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
32333
32364
|
] });
|
|
32334
32365
|
} });
|
|
32335
32366
|
}
|
|
32336
32367
|
|
|
32337
32368
|
// src/components/RadioGroup.tsx
|
|
32338
32369
|
var import_react190 = require("react");
|
|
32339
|
-
var
|
|
32370
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
32340
32371
|
|
|
32341
32372
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
32342
32373
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjI3O", "radio": "RadioGroup_radio__NjJiN" };
|
|
32343
32374
|
|
|
32344
32375
|
// src/components/RadioGroup.tsx
|
|
32345
|
-
var
|
|
32376
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
32346
32377
|
var RadioGroup2 = (0, import_react190.forwardRef)(
|
|
32347
32378
|
({ label, children, className, ...props }, ref) => {
|
|
32348
|
-
return /* @__PURE__ */ (0,
|
|
32349
|
-
label && /* @__PURE__ */ (0,
|
|
32379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, className), children: [
|
|
32380
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
32350
32381
|
children
|
|
32351
32382
|
] });
|
|
32352
32383
|
}
|
|
32353
32384
|
);
|
|
32354
32385
|
function Radio2({ children, className, ...props }) {
|
|
32355
|
-
return /* @__PURE__ */ (0,
|
|
32386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
|
|
32356
32387
|
}
|
|
32357
32388
|
|
|
32358
32389
|
// src/components/SearchField.tsx
|
|
32359
32390
|
var import_react191 = require("react");
|
|
32360
|
-
var
|
|
32391
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
32361
32392
|
|
|
32362
32393
|
// css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
|
|
32363
32394
|
var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "SearchField_input__OGFiY", "close": "SearchField_close__NmJkM" };
|
|
32364
32395
|
|
|
32365
32396
|
// src/components/SearchField.tsx
|
|
32366
|
-
var
|
|
32397
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
32367
32398
|
var SearchField2 = (0, import_react191.forwardRef)(
|
|
32368
32399
|
({ label, placeholder, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
32369
32400
|
const [search, setSearch] = (0, import_react191.useState)(value ?? "");
|
|
@@ -32383,31 +32414,31 @@ var SearchField2 = (0, import_react191.forwardRef)(
|
|
|
32383
32414
|
onSearch?.(searchValue);
|
|
32384
32415
|
}
|
|
32385
32416
|
}, [searchValue, delay]);
|
|
32386
|
-
return /* @__PURE__ */ (0,
|
|
32417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
32387
32418
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
32388
32419
|
{
|
|
32389
32420
|
...props,
|
|
32390
32421
|
ref,
|
|
32391
|
-
className: (0,
|
|
32422
|
+
className: (0, import_classnames44.default)(input_default.field, className),
|
|
32392
32423
|
onChange: handleChange,
|
|
32393
32424
|
children: ({ state }) => {
|
|
32394
|
-
return /* @__PURE__ */ (0,
|
|
32395
|
-
label && /* @__PURE__ */ (0,
|
|
32396
|
-
/* @__PURE__ */ (0,
|
|
32397
|
-
/* @__PURE__ */ (0,
|
|
32398
|
-
/* @__PURE__ */ (0,
|
|
32425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
32426
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label2, { children: label }),
|
|
32427
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: input_default.row, children: [
|
|
32428
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { className: (0, import_classnames44.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.MagnifyingGlass, {}) }),
|
|
32429
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
32399
32430
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
32400
32431
|
{
|
|
32401
|
-
className: (0,
|
|
32432
|
+
className: (0, import_classnames44.default)(SearchField_default.input, input_default.input),
|
|
32402
32433
|
placeholder
|
|
32403
32434
|
}
|
|
32404
32435
|
),
|
|
32405
|
-
state.value && /* @__PURE__ */ (0,
|
|
32436
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
32406
32437
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
32407
32438
|
{
|
|
32408
|
-
className: (0,
|
|
32439
|
+
className: (0, import_classnames44.default)(SearchField_default.close, input_default.icon),
|
|
32409
32440
|
onPress: resetSearch,
|
|
32410
|
-
children: /* @__PURE__ */ (0,
|
|
32441
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Close, {}) })
|
|
32411
32442
|
}
|
|
32412
32443
|
)
|
|
32413
32444
|
] })
|
|
@@ -32420,13 +32451,13 @@ var SearchField2 = (0, import_react191.forwardRef)(
|
|
|
32420
32451
|
|
|
32421
32452
|
// src/components/Select.tsx
|
|
32422
32453
|
var import_react192 = require("react");
|
|
32423
|
-
var
|
|
32454
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
32424
32455
|
|
|
32425
32456
|
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
32426
32457
|
var Select_default = { "button": "Select_button__YTc2N", "list": "Select_list__ZjZhM", "icon": "Select_icon__NzU3O" };
|
|
32427
32458
|
|
|
32428
32459
|
// src/components/Select.tsx
|
|
32429
|
-
var
|
|
32460
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
32430
32461
|
var Select2 = (0, import_react192.forwardRef)(
|
|
32431
32462
|
({
|
|
32432
32463
|
children,
|
|
@@ -32442,20 +32473,20 @@ var Select2 = (0, import_react192.forwardRef)(
|
|
|
32442
32473
|
onSelectionChange?.(e);
|
|
32443
32474
|
onChange?.(e);
|
|
32444
32475
|
};
|
|
32445
|
-
return /* @__PURE__ */ (0,
|
|
32476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
32446
32477
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
32447
32478
|
{
|
|
32448
32479
|
...props,
|
|
32449
32480
|
ref,
|
|
32450
|
-
className: (0,
|
|
32481
|
+
className: (0, import_classnames45.default)(input_default.field, className),
|
|
32451
32482
|
onSelectionChange: handleChange,
|
|
32452
32483
|
children: [
|
|
32453
|
-
label && /* @__PURE__ */ (0,
|
|
32454
|
-
/* @__PURE__ */ (0,
|
|
32455
|
-
/* @__PURE__ */ (0,
|
|
32456
|
-
/* @__PURE__ */ (0,
|
|
32484
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label2, { children: label }),
|
|
32485
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames45.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
32486
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
32487
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icons.Chevron, {}) }) })
|
|
32457
32488
|
] }) }),
|
|
32458
|
-
/* @__PURE__ */ (0,
|
|
32489
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Popover2, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(List, { items, className: Select_default.list, children }) })
|
|
32459
32490
|
]
|
|
32460
32491
|
}
|
|
32461
32492
|
);
|
|
@@ -32464,25 +32495,7 @@ var Select2 = (0, import_react192.forwardRef)(
|
|
|
32464
32495
|
|
|
32465
32496
|
// src/components/SideNav.tsx
|
|
32466
32497
|
var import_react193 = require("react");
|
|
32467
|
-
var
|
|
32468
|
-
|
|
32469
|
-
// src/components/Tooltip.tsx
|
|
32470
|
-
var import_classnames44 = __toESM(require_classnames());
|
|
32471
|
-
|
|
32472
|
-
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
32473
|
-
var Tooltip_default = { "tooltip": "Tooltip_tooltip__ODVhY", "bubble": "Tooltip_bubble__OTMzY", "floating": "Tooltip_floating__YWVjM", "arrow": "Tooltip_arrow__ZmMyY", "slide": "Tooltip_slide__OWE0Z" };
|
|
32474
|
-
|
|
32475
|
-
// src/components/Tooltip.tsx
|
|
32476
|
-
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
32477
|
-
function Tooltip2({ children, className, showArrow = true, ...props }) {
|
|
32478
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames44.default)(Tooltip_default.tooltip, className), children: [
|
|
32479
|
-
showArrow && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: (0, import_classnames44.default)(Tooltip_default.arrow), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
32480
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TooltipBubble, { children })
|
|
32481
|
-
] });
|
|
32482
|
-
}
|
|
32483
|
-
function TooltipBubble({ children }) {
|
|
32484
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: Tooltip_default.bubble, children });
|
|
32485
|
-
}
|
|
32498
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
32486
32499
|
|
|
32487
32500
|
// css-modules:E:\dev\umami-react-zen\src\components\SideNav.module.css
|
|
32488
32501
|
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" };
|
|
@@ -32491,7 +32504,7 @@ var SideNav_default = { "sidenav": "SideNav_sidenav__NTNmY", "header": "SideNav_
|
|
|
32491
32504
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
32492
32505
|
var SideNavContext = (0, import_react193.createContext)(null);
|
|
32493
32506
|
function SideNav({ isCollapsed, children }) {
|
|
32494
|
-
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SideNavContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0,
|
|
32507
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SideNavContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0, import_classnames46.default)(SideNav_default.sidenav, isCollapsed && SideNav_default.collapsed), children }) });
|
|
32495
32508
|
}
|
|
32496
32509
|
function SideNavHeader({
|
|
32497
32510
|
name,
|
|
@@ -32500,7 +32513,7 @@ function SideNavHeader({
|
|
|
32500
32513
|
}) {
|
|
32501
32514
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Block, { children: [
|
|
32502
32515
|
icon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { size: "sm", children: icon }),
|
|
32503
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0,
|
|
32516
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0, import_classnames46.default)(SideNav_default.name, SideNav_default.label), children: name }),
|
|
32504
32517
|
children
|
|
32505
32518
|
] });
|
|
32506
32519
|
}
|
|
@@ -32519,11 +32532,11 @@ function SideNavItem({
|
|
|
32519
32532
|
const { isCollapsed } = (0, import_react193.useContext)(SideNavContext);
|
|
32520
32533
|
if (isCollapsed) {
|
|
32521
32534
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, children: [
|
|
32522
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Block, { className: (0,
|
|
32535
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Block, { className: (0, import_classnames46.default)(SideNav_default.item, className), children: icon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { size: "sm", children: icon }) }) }),
|
|
32523
32536
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Tooltip2, { placement: "right", children: label })
|
|
32524
32537
|
] });
|
|
32525
32538
|
}
|
|
32526
|
-
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Block, { ...props, className: (0,
|
|
32539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Block, { ...props, className: (0, import_classnames46.default)(SideNav_default.item, className), children: [
|
|
32527
32540
|
icon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { size: "sm", children: icon }),
|
|
32528
32541
|
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { className: SideNav_default.label, children: label })
|
|
32529
32542
|
] });
|
|
@@ -32531,7 +32544,7 @@ function SideNavItem({
|
|
|
32531
32544
|
|
|
32532
32545
|
// src/components/Slider.tsx
|
|
32533
32546
|
var import_react194 = require("react");
|
|
32534
|
-
var
|
|
32547
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
32535
32548
|
|
|
32536
32549
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
32537
32550
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
@@ -32540,7 +32553,7 @@ var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_heade
|
|
|
32540
32553
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
32541
32554
|
var Slider2 = (0, import_react194.forwardRef)(
|
|
32542
32555
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
32543
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0,
|
|
32556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
32544
32557
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: Slider_default.header, children: [
|
|
32545
32558
|
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
32546
32559
|
showValue && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
@@ -32565,7 +32578,7 @@ var Slider2 = (0, import_react194.forwardRef)(
|
|
|
32565
32578
|
);
|
|
32566
32579
|
|
|
32567
32580
|
// src/components/StatusLight.tsx
|
|
32568
|
-
var
|
|
32581
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
32569
32582
|
|
|
32570
32583
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
32571
32584
|
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" };
|
|
@@ -32574,11 +32587,11 @@ var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "st
|
|
|
32574
32587
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
32575
32588
|
function StatusLight(props) {
|
|
32576
32589
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
32577
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { ...domProps, className: (0,
|
|
32590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
|
|
32578
32591
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
32579
32592
|
"div",
|
|
32580
32593
|
{
|
|
32581
|
-
className: (0,
|
|
32594
|
+
className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
32582
32595
|
style: { backgroundColor: color }
|
|
32583
32596
|
}
|
|
32584
32597
|
) }),
|
|
@@ -32588,7 +32601,7 @@ function StatusLight(props) {
|
|
|
32588
32601
|
|
|
32589
32602
|
// src/components/Switch.tsx
|
|
32590
32603
|
var import_react195 = require("react");
|
|
32591
|
-
var
|
|
32604
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
32592
32605
|
|
|
32593
32606
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
32594
32607
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
@@ -32606,7 +32619,7 @@ var Switch2 = (0, import_react195.forwardRef)(
|
|
|
32606
32619
|
...props,
|
|
32607
32620
|
isSelected,
|
|
32608
32621
|
ref,
|
|
32609
|
-
className: (0,
|
|
32622
|
+
className: (0, import_classnames49.default)(Switch_default.switch, className),
|
|
32610
32623
|
children: [
|
|
32611
32624
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Switch_default.knob }) }),
|
|
32612
32625
|
children
|
|
@@ -32637,7 +32650,7 @@ function TabPanel2({ children, ...props }) {
|
|
|
32637
32650
|
|
|
32638
32651
|
// src/components/TextArea.tsx
|
|
32639
32652
|
var import_react196 = require("react");
|
|
32640
|
-
var
|
|
32653
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
32641
32654
|
|
|
32642
32655
|
// css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
|
|
32643
32656
|
var TextArea_default = { "textarea": "TextArea_textarea__MTk5Y", "resize-none": "TextArea_resize-none__OTJhY", "resize-horizontal": "TextArea_resize-horizontal__YWIyZ", "resize-vertical": "TextArea_resize-vertical__NTM3O" };
|
|
@@ -32651,7 +32664,7 @@ var TextArea2 = (0, import_react196.forwardRef)(
|
|
|
32651
32664
|
{
|
|
32652
32665
|
...props,
|
|
32653
32666
|
ref,
|
|
32654
|
-
className: (0,
|
|
32667
|
+
className: (0, import_classnames50.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
32655
32668
|
asChild: true,
|
|
32656
32669
|
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
32657
32670
|
}
|
|
@@ -32660,7 +32673,7 @@ var TextArea2 = (0, import_react196.forwardRef)(
|
|
|
32660
32673
|
);
|
|
32661
32674
|
|
|
32662
32675
|
// src/components/ThemeButton.tsx
|
|
32663
|
-
var
|
|
32676
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
32664
32677
|
|
|
32665
32678
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
32666
32679
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
@@ -32695,7 +32708,7 @@ function ThemeButton({
|
|
|
32695
32708
|
Button2,
|
|
32696
32709
|
{
|
|
32697
32710
|
...props,
|
|
32698
|
-
className: (0,
|
|
32711
|
+
className: (0, import_classnames51.default)(ThemeButton_default.button, className),
|
|
32699
32712
|
variant,
|
|
32700
32713
|
onPress: handleClick,
|
|
32701
32714
|
children: [
|
|
@@ -32711,7 +32724,7 @@ function ThemeButton({
|
|
|
32711
32724
|
|
|
32712
32725
|
// src/components/Toggle.tsx
|
|
32713
32726
|
var import_react197 = require("react");
|
|
32714
|
-
var
|
|
32727
|
+
var import_classnames52 = __toESM(require_classnames());
|
|
32715
32728
|
|
|
32716
32729
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
32717
32730
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
@@ -32729,7 +32742,7 @@ var Toggle = (0, import_react197.forwardRef)(
|
|
|
32729
32742
|
...props,
|
|
32730
32743
|
ref,
|
|
32731
32744
|
isSelected,
|
|
32732
|
-
className: (0,
|
|
32745
|
+
className: (0, import_classnames52.default)(Toggle_default.toggle, className),
|
|
32733
32746
|
children
|
|
32734
32747
|
}
|
|
32735
32748
|
)
|
|
@@ -32738,7 +32751,7 @@ var Toggle = (0, import_react197.forwardRef)(
|
|
|
32738
32751
|
);
|
|
32739
32752
|
|
|
32740
32753
|
// src/components/ToggleGroup.tsx
|
|
32741
|
-
var
|
|
32754
|
+
var import_classnames53 = __toESM(require_classnames());
|
|
32742
32755
|
|
|
32743
32756
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
32744
32757
|
var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "ToggleGroup_list__MjNjO", "item": "ToggleGroup_item__YTNhN" };
|
|
@@ -32746,13 +32759,13 @@ var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "Toggle
|
|
|
32746
32759
|
// src/components/ToggleGroup.tsx
|
|
32747
32760
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
32748
32761
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
32749
|
-
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0,
|
|
32762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
32750
32763
|
label && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Label2, { children: label }),
|
|
32751
32764
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
32752
32765
|
] });
|
|
32753
32766
|
}
|
|
32754
32767
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
32755
|
-
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0,
|
|
32768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
|
|
32756
32769
|
}
|
|
32757
32770
|
|
|
32758
32771
|
// src/components/ZenProvider.tsx
|