@umami/react-zen 0.102.0 → 0.104.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 +38 -29
- package/dist/index.d.ts +17 -2
- package/dist/index.js +198 -130
- package/dist/index.mjs +182 -114
- package/package.json +1 -1
- package/styles.css +40 -29
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 classNames52() {
|
|
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 classNames52.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
|
+
classNames52.default = classNames52;
|
|
212
|
+
module2.exports = classNames52;
|
|
213
213
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
214
214
|
define("classnames", [], function() {
|
|
215
|
-
return
|
|
215
|
+
return classNames52;
|
|
216
216
|
});
|
|
217
217
|
} else {
|
|
218
|
-
window.classNames =
|
|
218
|
+
window.classNames = classNames52;
|
|
219
219
|
}
|
|
220
220
|
})();
|
|
221
221
|
}
|
|
@@ -273,6 +273,8 @@ __export(index_exports, {
|
|
|
273
273
|
MenuSeparator: () => MenuSeparator,
|
|
274
274
|
MenuTrigger: () => $3674c52c6b3c5bce$export$27d2ad3c5815583e,
|
|
275
275
|
Modal: () => Modal2,
|
|
276
|
+
NavMenu: () => NavMenu,
|
|
277
|
+
NavMenuItem: () => NavMenuItem,
|
|
276
278
|
Navbar: () => Navbar,
|
|
277
279
|
NavbarItem: () => NavbarItem,
|
|
278
280
|
PasswordField: () => PasswordField,
|
|
@@ -30718,8 +30720,48 @@ function InlineEditField({
|
|
|
30718
30720
|
var import_react184 = require("react");
|
|
30719
30721
|
var import_classnames32 = __toESM(require_classnames());
|
|
30720
30722
|
|
|
30723
|
+
// src/lib/constants.ts
|
|
30724
|
+
var ACCENT_COLORS = [
|
|
30725
|
+
"gray",
|
|
30726
|
+
"gold",
|
|
30727
|
+
"bronze",
|
|
30728
|
+
"brown",
|
|
30729
|
+
"yellow",
|
|
30730
|
+
"amber",
|
|
30731
|
+
"orange",
|
|
30732
|
+
"tomato",
|
|
30733
|
+
"red",
|
|
30734
|
+
"ruby",
|
|
30735
|
+
"crimson",
|
|
30736
|
+
"pink",
|
|
30737
|
+
"plum",
|
|
30738
|
+
"purple",
|
|
30739
|
+
"violet",
|
|
30740
|
+
"iris",
|
|
30741
|
+
"indigo",
|
|
30742
|
+
"blue",
|
|
30743
|
+
"cyan",
|
|
30744
|
+
"teal",
|
|
30745
|
+
"jade",
|
|
30746
|
+
"green",
|
|
30747
|
+
"grass",
|
|
30748
|
+
"lime",
|
|
30749
|
+
"mint",
|
|
30750
|
+
"sky"
|
|
30751
|
+
];
|
|
30752
|
+
|
|
30753
|
+
// src/lib/styles.ts
|
|
30754
|
+
function getHighlightColor(color) {
|
|
30755
|
+
if (!color) return;
|
|
30756
|
+
if (/\d+/.test(color)) {
|
|
30757
|
+
return { "--highlight-color": `var(--base-color-${color})` };
|
|
30758
|
+
} else if (ACCENT_COLORS.includes(color)) {
|
|
30759
|
+
return { "--highlight-color": `var(--accent-color-${color})` };
|
|
30760
|
+
}
|
|
30761
|
+
}
|
|
30762
|
+
|
|
30721
30763
|
// css-modules:E:\dev\umami-react-zen\src\components\List.module.css
|
|
30722
|
-
var List_default = { "list": "
|
|
30764
|
+
var List_default = { "list": "List_list__YjBiO", "separator": "List_separator__MjkwN", "section": "List_section__NmQzZ", "header": "List_header__MjQ4N", "item": "List_item__MWYwM", "checkmark": "List_checkmark__YjhhM", "hideCheckmark": "List_hideCheckmark__OTEyO" };
|
|
30723
30765
|
|
|
30724
30766
|
// src/components/List.tsx
|
|
30725
30767
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
@@ -30728,8 +30770,10 @@ function List({
|
|
|
30728
30770
|
idProperty = "id",
|
|
30729
30771
|
labelProperty = "label",
|
|
30730
30772
|
separatorProperty = "separatpr",
|
|
30731
|
-
|
|
30773
|
+
highlightColor,
|
|
30774
|
+
showCheckmark = true,
|
|
30732
30775
|
className,
|
|
30776
|
+
style,
|
|
30733
30777
|
children,
|
|
30734
30778
|
...props
|
|
30735
30779
|
}) {
|
|
@@ -30739,7 +30783,8 @@ function List({
|
|
|
30739
30783
|
"aria-label": "list",
|
|
30740
30784
|
...props,
|
|
30741
30785
|
items,
|
|
30742
|
-
className: (0, import_classnames32.default)(List_default.list, className,
|
|
30786
|
+
className: (0, import_classnames32.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
30787
|
+
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
30743
30788
|
children: children || items?.map((item) => {
|
|
30744
30789
|
const id = item[idProperty] || item.toString();
|
|
30745
30790
|
const label = item[labelProperty] || item.toString();
|
|
@@ -30767,7 +30812,7 @@ function ListItem({
|
|
|
30767
30812
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
30768
30813
|
children: [
|
|
30769
30814
|
children,
|
|
30770
|
-
showCheckmark && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
30815
|
+
showCheckmark && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icons.Check, {}) })
|
|
30771
30816
|
]
|
|
30772
30817
|
}
|
|
30773
30818
|
);
|
|
@@ -30887,76 +30932,99 @@ function NavbarItem({ label, children, className, ...props }) {
|
|
|
30887
30932
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...props, className: (0, import_classnames36.default)(Navbar_default.item, className), children });
|
|
30888
30933
|
}
|
|
30889
30934
|
|
|
30935
|
+
// src/components/NavMenu.tsx
|
|
30936
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
30937
|
+
|
|
30938
|
+
// css-modules:E:\dev\umami-react-zen\src\components\NavMenu.module.css
|
|
30939
|
+
var NavMenu_default = { "navmenu": "NavMenu_navmenu__OTA1Y", "item": "NavMenu_item__MjE3M", "selected": "NavMenu_selected__YzUwN" };
|
|
30940
|
+
|
|
30941
|
+
// src/components/NavMenu.tsx
|
|
30942
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
30943
|
+
function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
30944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
30945
|
+
Column,
|
|
30946
|
+
{
|
|
30947
|
+
...props,
|
|
30948
|
+
className: (0, import_classnames37.default)(NavMenu_default.navmenu, className),
|
|
30949
|
+
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
30950
|
+
children
|
|
30951
|
+
}
|
|
30952
|
+
);
|
|
30953
|
+
}
|
|
30954
|
+
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
30955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Row, { ...props, className: (0, import_classnames37.default)(NavMenu_default.item, className, isSelected && NavMenu_default.selected), children });
|
|
30956
|
+
}
|
|
30957
|
+
|
|
30890
30958
|
// src/components/PasswordField.tsx
|
|
30891
30959
|
var import_react186 = require("react");
|
|
30892
|
-
var
|
|
30960
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
30893
30961
|
|
|
30894
30962
|
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
30895
30963
|
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
30896
30964
|
|
|
30897
30965
|
// src/components/PasswordField.tsx
|
|
30898
|
-
var
|
|
30966
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
30899
30967
|
var PasswordField = (0, import_react186.forwardRef)(
|
|
30900
30968
|
({ label, className, ...props }, ref) => {
|
|
30901
30969
|
const [show, setShow] = (0, import_react186.useState)(false);
|
|
30902
30970
|
const type = show ? "text" : "password";
|
|
30903
30971
|
const handleShowPassword = () => setShow((state) => !state);
|
|
30904
|
-
return /* @__PURE__ */ (0,
|
|
30905
|
-
label && /* @__PURE__ */ (0,
|
|
30906
|
-
/* @__PURE__ */ (0,
|
|
30907
|
-
/* @__PURE__ */ (0,
|
|
30908
|
-
/* @__PURE__ */ (0,
|
|
30972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames38.default)(input_default.field, className), children: [
|
|
30973
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label2, { children: label }),
|
|
30974
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: input_default.row, children: [
|
|
30975
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
30976
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.Eye, {}) })
|
|
30909
30977
|
] })
|
|
30910
30978
|
] });
|
|
30911
30979
|
}
|
|
30912
30980
|
);
|
|
30913
30981
|
|
|
30914
30982
|
// src/components/Popover.tsx
|
|
30915
|
-
var
|
|
30983
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
30916
30984
|
|
|
30917
30985
|
// css-modules:E:\dev\umami-react-zen\src\components\Popover.module.css
|
|
30918
30986
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
30919
30987
|
|
|
30920
30988
|
// src/components/Popover.tsx
|
|
30921
|
-
var
|
|
30989
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
30922
30990
|
function Popover2({ children, className, ...props }) {
|
|
30923
|
-
return /* @__PURE__ */ (0,
|
|
30991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames39.default)(Popover_default.popover, className), children });
|
|
30924
30992
|
}
|
|
30925
30993
|
|
|
30926
30994
|
// src/components/ProgressBar.tsx
|
|
30927
|
-
var
|
|
30995
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
30928
30996
|
|
|
30929
30997
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
30930
30998
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
30931
30999
|
|
|
30932
31000
|
// src/components/ProgressBar.tsx
|
|
30933
|
-
var
|
|
31001
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
30934
31002
|
function ProgressBar2({ className, showValue, ...props }) {
|
|
30935
|
-
return /* @__PURE__ */ (0,
|
|
30936
|
-
return /* @__PURE__ */ (0,
|
|
30937
|
-
/* @__PURE__ */ (0,
|
|
30938
|
-
showValue && /* @__PURE__ */ (0,
|
|
31003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
31005
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31006
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
30939
31007
|
] });
|
|
30940
31008
|
} });
|
|
30941
31009
|
}
|
|
30942
31010
|
|
|
30943
31011
|
// src/components/ProgressCircle.tsx
|
|
30944
|
-
var
|
|
31012
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
30945
31013
|
|
|
30946
31014
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
30947
31015
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
30948
31016
|
|
|
30949
31017
|
// src/components/ProgressCircle.tsx
|
|
30950
|
-
var
|
|
31018
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
30951
31019
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
30952
|
-
return /* @__PURE__ */ (0,
|
|
31020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
30953
31021
|
const radius = 45;
|
|
30954
31022
|
const circumference = radius * 2 * Math.PI;
|
|
30955
31023
|
const offset = circumference - percentage / 100 * circumference;
|
|
30956
|
-
return /* @__PURE__ */ (0,
|
|
30957
|
-
/* @__PURE__ */ (0,
|
|
30958
|
-
/* @__PURE__ */ (0,
|
|
30959
|
-
/* @__PURE__ */ (0,
|
|
31024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
31025
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31026
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31027
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
30960
31028
|
"circle",
|
|
30961
31029
|
{
|
|
30962
31030
|
className: ProgressCircle_default.fill,
|
|
@@ -30968,41 +31036,41 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
30968
31036
|
}
|
|
30969
31037
|
)
|
|
30970
31038
|
] }),
|
|
30971
|
-
showValue && /* @__PURE__ */ (0,
|
|
31039
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
30972
31040
|
] });
|
|
30973
31041
|
} });
|
|
30974
31042
|
}
|
|
30975
31043
|
|
|
30976
31044
|
// src/components/RadioGroup.tsx
|
|
30977
31045
|
var import_react187 = require("react");
|
|
30978
|
-
var
|
|
31046
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
30979
31047
|
|
|
30980
31048
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
30981
31049
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjI3O", "radio": "RadioGroup_radio__NjJiN" };
|
|
30982
31050
|
|
|
30983
31051
|
// src/components/RadioGroup.tsx
|
|
30984
|
-
var
|
|
31052
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
30985
31053
|
var RadioGroup2 = (0, import_react187.forwardRef)(
|
|
30986
31054
|
({ label, children, className, ...props }, ref) => {
|
|
30987
|
-
return /* @__PURE__ */ (0,
|
|
30988
|
-
label && /* @__PURE__ */ (0,
|
|
31055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames42.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31056
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label2, { children: label }),
|
|
30989
31057
|
children
|
|
30990
31058
|
] });
|
|
30991
31059
|
}
|
|
30992
31060
|
);
|
|
30993
31061
|
function Radio2({ children, className, ...props }) {
|
|
30994
|
-
return /* @__PURE__ */ (0,
|
|
31062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames42.default)(RadioGroup_default.radio, className), children });
|
|
30995
31063
|
}
|
|
30996
31064
|
|
|
30997
31065
|
// src/components/SearchField.tsx
|
|
30998
31066
|
var import_react188 = require("react");
|
|
30999
|
-
var
|
|
31067
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
31000
31068
|
|
|
31001
31069
|
// css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
|
|
31002
31070
|
var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "SearchField_input__OGFiY", "close": "SearchField_close__NmJkM" };
|
|
31003
31071
|
|
|
31004
31072
|
// src/components/SearchField.tsx
|
|
31005
|
-
var
|
|
31073
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31006
31074
|
var SearchField2 = (0, import_react188.forwardRef)(
|
|
31007
31075
|
({ label, placeholder, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31008
31076
|
const [search, setSearch] = (0, import_react188.useState)(value ?? "");
|
|
@@ -31022,32 +31090,32 @@ var SearchField2 = (0, import_react188.forwardRef)(
|
|
|
31022
31090
|
onSearch?.(searchValue);
|
|
31023
31091
|
}
|
|
31024
31092
|
}, [searchValue, delay]);
|
|
31025
|
-
return /* @__PURE__ */ (0,
|
|
31093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31026
31094
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31027
31095
|
{
|
|
31028
31096
|
"aria-label": "Search",
|
|
31029
31097
|
...props,
|
|
31030
31098
|
ref,
|
|
31031
|
-
className: (0,
|
|
31099
|
+
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31032
31100
|
onChange: handleChange,
|
|
31033
31101
|
children: ({ state }) => {
|
|
31034
|
-
return /* @__PURE__ */ (0,
|
|
31035
|
-
label && /* @__PURE__ */ (0,
|
|
31036
|
-
/* @__PURE__ */ (0,
|
|
31037
|
-
/* @__PURE__ */ (0,
|
|
31038
|
-
/* @__PURE__ */ (0,
|
|
31102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
31103
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
31104
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: input_default.row, children: [
|
|
31105
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { className: (0, import_classnames43.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.MagnifyingGlass, {}) }),
|
|
31106
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31039
31107
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31040
31108
|
{
|
|
31041
|
-
className: (0,
|
|
31109
|
+
className: (0, import_classnames43.default)(SearchField_default.input, input_default.input),
|
|
31042
31110
|
placeholder
|
|
31043
31111
|
}
|
|
31044
31112
|
),
|
|
31045
|
-
state.value && /* @__PURE__ */ (0,
|
|
31113
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31046
31114
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31047
31115
|
{
|
|
31048
|
-
className: (0,
|
|
31116
|
+
className: (0, import_classnames43.default)(SearchField_default.close, input_default.icon),
|
|
31049
31117
|
onPress: resetSearch,
|
|
31050
|
-
children: /* @__PURE__ */ (0,
|
|
31118
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
|
|
31051
31119
|
}
|
|
31052
31120
|
)
|
|
31053
31121
|
] })
|
|
@@ -31060,7 +31128,7 @@ var SearchField2 = (0, import_react188.forwardRef)(
|
|
|
31060
31128
|
|
|
31061
31129
|
// src/components/Select.tsx
|
|
31062
31130
|
var import_react189 = require("react");
|
|
31063
|
-
var
|
|
31131
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31064
31132
|
var Select2 = (0, import_react189.forwardRef)(
|
|
31065
31133
|
({
|
|
31066
31134
|
items = [],
|
|
@@ -31091,7 +31159,7 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31091
31159
|
setSearch(value2);
|
|
31092
31160
|
onSearch?.(value2);
|
|
31093
31161
|
};
|
|
31094
|
-
return /* @__PURE__ */ (0,
|
|
31162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
31095
31163
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31096
31164
|
{
|
|
31097
31165
|
"aria-label": "Select",
|
|
@@ -31101,13 +31169,13 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31101
31169
|
defaultSelectedKey: defaultValue,
|
|
31102
31170
|
onSelectionChange: handleChange,
|
|
31103
31171
|
children: [
|
|
31104
|
-
label && /* @__PURE__ */ (0,
|
|
31105
|
-
/* @__PURE__ */ (0,
|
|
31106
|
-
/* @__PURE__ */ (0,
|
|
31107
|
-
/* @__PURE__ */ (0,
|
|
31172
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label2, { children: label }),
|
|
31173
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button2, { variant: "outline", ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31174
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31175
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { rotate: 90, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Chevron, {}) }) })
|
|
31108
31176
|
] }) }),
|
|
31109
|
-
/* @__PURE__ */ (0,
|
|
31110
|
-
allowSearch && /* @__PURE__ */ (0,
|
|
31177
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Column, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Box, { padding: "2", border: true, borderRadius: true, backgroundColor: true, shadow: "3", children: [
|
|
31178
|
+
allowSearch && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Box, { marginBottom: "2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31111
31179
|
SearchField2,
|
|
31112
31180
|
{
|
|
31113
31181
|
value: search,
|
|
@@ -31117,8 +31185,8 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31117
31185
|
autoFocus: true
|
|
31118
31186
|
}
|
|
31119
31187
|
) }),
|
|
31120
|
-
isLoading && /* @__PURE__ */ (0,
|
|
31121
|
-
/* @__PURE__ */ (0,
|
|
31188
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31189
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31122
31190
|
List,
|
|
31123
31191
|
{
|
|
31124
31192
|
...listProps,
|
|
@@ -31136,13 +31204,13 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31136
31204
|
|
|
31137
31205
|
// src/components/Sidebar.tsx
|
|
31138
31206
|
var import_react190 = require("react");
|
|
31139
|
-
var
|
|
31207
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
31140
31208
|
|
|
31141
31209
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31142
31210
|
var Sidebar_default = { "sidenav": "Sidebar_sidenav__ODc2Z", "header": "Sidebar_header__YWI3N", "name": "Sidebar_name__NThjO", "section": "Sidebar_section__YzQwN", "title": "Sidebar_title__NDBlN", "content": "Sidebar_content__NmUzM", "item": "Sidebar_item__ZjYxZ", "label": "Sidebar_label__OTI3N", "collapsed": "Sidebar_collapsed__NDY0N", "muted": "Sidebar_muted__NjI0N", "selected": "Sidebar_selected__N2RhZ", "variant-quiet": "Sidebar_variant-quiet__ZjllN", "variant-1": "Sidebar_variant-1__NmFhM", "variant-2": "Sidebar_variant-2__OWYzZ", "variant-3": "Sidebar_variant-3__ODk2Y", "noborder": "Sidebar_noborder__NTJlN" };
|
|
31143
31211
|
|
|
31144
31212
|
// src/components/Sidebar.tsx
|
|
31145
|
-
var
|
|
31213
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31146
31214
|
var SidebarContext = (0, import_react190.createContext)(null);
|
|
31147
31215
|
function Sidebar({
|
|
31148
31216
|
variant = "1",
|
|
@@ -31153,11 +31221,11 @@ function Sidebar({
|
|
|
31153
31221
|
children,
|
|
31154
31222
|
...props
|
|
31155
31223
|
}) {
|
|
31156
|
-
return /* @__PURE__ */ (0,
|
|
31224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
31157
31225
|
Column,
|
|
31158
31226
|
{
|
|
31159
31227
|
...props,
|
|
31160
|
-
className: (0,
|
|
31228
|
+
className: (0, import_classnames44.default)(
|
|
31161
31229
|
Sidebar_default.sidenav,
|
|
31162
31230
|
isCollapsed && Sidebar_default.collapsed,
|
|
31163
31231
|
muteItems && Sidebar_default.muted,
|
|
@@ -31173,9 +31241,9 @@ function SidebarSection({
|
|
|
31173
31241
|
title,
|
|
31174
31242
|
children
|
|
31175
31243
|
}) {
|
|
31176
|
-
return /* @__PURE__ */ (0,
|
|
31177
|
-
title && /* @__PURE__ */ (0,
|
|
31178
|
-
/* @__PURE__ */ (0,
|
|
31244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Column, { className: Sidebar_default.section, children: [
|
|
31245
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: Sidebar_default.title, children: title }),
|
|
31246
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: Sidebar_default.content, children })
|
|
31179
31247
|
] });
|
|
31180
31248
|
}
|
|
31181
31249
|
function SidebarHeader({
|
|
@@ -31185,9 +31253,9 @@ function SidebarHeader({
|
|
|
31185
31253
|
children,
|
|
31186
31254
|
...props
|
|
31187
31255
|
}) {
|
|
31188
|
-
return /* @__PURE__ */ (0,
|
|
31189
|
-
icon && /* @__PURE__ */ (0,
|
|
31190
|
-
/* @__PURE__ */ (0,
|
|
31256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Row, { ...props, className: (0, import_classnames44.default)(Sidebar_default.header, className), children: [
|
|
31257
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { size: "sm", children: icon }),
|
|
31258
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: (0, import_classnames44.default)(Sidebar_default.name, Sidebar_default.label), children: label }),
|
|
31191
31259
|
children
|
|
31192
31260
|
] });
|
|
31193
31261
|
}
|
|
@@ -31200,43 +31268,43 @@ function SidebarItem({
|
|
|
31200
31268
|
...props
|
|
31201
31269
|
}) {
|
|
31202
31270
|
const { isCollapsed } = (0, import_react190.useContext)(SidebarContext);
|
|
31203
|
-
return /* @__PURE__ */ (0,
|
|
31204
|
-
/* @__PURE__ */ (0,
|
|
31271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31272
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
31205
31273
|
Row,
|
|
31206
31274
|
{
|
|
31207
31275
|
...props,
|
|
31208
|
-
className: (0,
|
|
31276
|
+
className: (0, import_classnames44.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31209
31277
|
children: [
|
|
31210
|
-
icon && /* @__PURE__ */ (0,
|
|
31211
|
-
label && /* @__PURE__ */ (0,
|
|
31278
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { size: "sm", children: icon }),
|
|
31279
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Text, { className: (0, import_classnames44.default)(Sidebar_default.label), children: label }),
|
|
31212
31280
|
children
|
|
31213
31281
|
]
|
|
31214
31282
|
}
|
|
31215
31283
|
) }),
|
|
31216
|
-
/* @__PURE__ */ (0,
|
|
31284
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Tooltip2, { placement: "right", children: label })
|
|
31217
31285
|
] });
|
|
31218
31286
|
}
|
|
31219
31287
|
|
|
31220
31288
|
// src/components/Slider.tsx
|
|
31221
31289
|
var import_react191 = require("react");
|
|
31222
|
-
var
|
|
31290
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
31223
31291
|
|
|
31224
31292
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
31225
31293
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31226
31294
|
|
|
31227
31295
|
// src/components/Slider.tsx
|
|
31228
|
-
var
|
|
31296
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31229
31297
|
var Slider2 = (0, import_react191.forwardRef)(
|
|
31230
31298
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31231
|
-
return /* @__PURE__ */ (0,
|
|
31232
|
-
/* @__PURE__ */ (0,
|
|
31233
|
-
label && /* @__PURE__ */ (0,
|
|
31234
|
-
showValue && /* @__PURE__ */ (0,
|
|
31299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames45.default)(Slider_default.slider, className), children: [
|
|
31300
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: Slider_default.header, children: [
|
|
31301
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
31302
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31235
31303
|
] }),
|
|
31236
|
-
/* @__PURE__ */ (0,
|
|
31304
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31237
31305
|
const isHorizontal = state.orientation === "horizontal";
|
|
31238
|
-
return /* @__PURE__ */ (0,
|
|
31239
|
-
/* @__PURE__ */ (0,
|
|
31306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
31307
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31240
31308
|
"div",
|
|
31241
31309
|
{
|
|
31242
31310
|
className: Slider_default.fill,
|
|
@@ -31245,7 +31313,7 @@ var Slider2 = (0, import_react191.forwardRef)(
|
|
|
31245
31313
|
}
|
|
31246
31314
|
}
|
|
31247
31315
|
),
|
|
31248
|
-
/* @__PURE__ */ (0,
|
|
31316
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31249
31317
|
] });
|
|
31250
31318
|
} })
|
|
31251
31319
|
] });
|
|
@@ -31253,20 +31321,20 @@ var Slider2 = (0, import_react191.forwardRef)(
|
|
|
31253
31321
|
);
|
|
31254
31322
|
|
|
31255
31323
|
// src/components/StatusLight.tsx
|
|
31256
|
-
var
|
|
31324
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
31257
31325
|
|
|
31258
31326
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
31259
31327
|
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" };
|
|
31260
31328
|
|
|
31261
31329
|
// src/components/StatusLight.tsx
|
|
31262
|
-
var
|
|
31330
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31263
31331
|
function StatusLight(props) {
|
|
31264
31332
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31265
|
-
return /* @__PURE__ */ (0,
|
|
31266
|
-
/* @__PURE__ */ (0,
|
|
31333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { ...domProps, className: (0, import_classnames46.default)(StatusLight_default.statuslight, className), children: [
|
|
31334
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
31267
31335
|
"div",
|
|
31268
31336
|
{
|
|
31269
|
-
className: (0,
|
|
31337
|
+
className: (0, import_classnames46.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
31270
31338
|
style: { backgroundColor: color }
|
|
31271
31339
|
}
|
|
31272
31340
|
) }),
|
|
@@ -31276,27 +31344,27 @@ function StatusLight(props) {
|
|
|
31276
31344
|
|
|
31277
31345
|
// src/components/Switch.tsx
|
|
31278
31346
|
var import_react192 = require("react");
|
|
31279
|
-
var
|
|
31347
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
31280
31348
|
|
|
31281
31349
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
31282
31350
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31283
31351
|
|
|
31284
31352
|
// src/components/Switch.tsx
|
|
31285
|
-
var
|
|
31353
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31286
31354
|
var Switch2 = (0, import_react192.forwardRef)(
|
|
31287
31355
|
({ label, children, className, ...props }, ref) => {
|
|
31288
31356
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31289
|
-
return /* @__PURE__ */ (0,
|
|
31290
|
-
label && /* @__PURE__ */ (0,
|
|
31291
|
-
/* @__PURE__ */ (0,
|
|
31357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
31358
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label2, { children: label }),
|
|
31359
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
31292
31360
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31293
31361
|
{
|
|
31294
31362
|
...props,
|
|
31295
31363
|
isSelected,
|
|
31296
31364
|
ref,
|
|
31297
|
-
className: (0,
|
|
31365
|
+
className: (0, import_classnames47.default)(Switch_default.switch, className),
|
|
31298
31366
|
children: [
|
|
31299
|
-
/* @__PURE__ */ (0,
|
|
31367
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: Switch_default.knob }) }),
|
|
31300
31368
|
children
|
|
31301
31369
|
]
|
|
31302
31370
|
}
|
|
@@ -31309,52 +31377,52 @@ var Switch2 = (0, import_react192.forwardRef)(
|
|
|
31309
31377
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31310
31378
|
|
|
31311
31379
|
// src/components/Tabs.tsx
|
|
31312
|
-
var
|
|
31380
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31313
31381
|
function Tabs2({ children, ...props }) {
|
|
31314
|
-
return /* @__PURE__ */ (0,
|
|
31382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31315
31383
|
}
|
|
31316
31384
|
function TabList2({ children, ...props }) {
|
|
31317
|
-
return /* @__PURE__ */ (0,
|
|
31385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31318
31386
|
}
|
|
31319
31387
|
function Tab({ children, ...props }) {
|
|
31320
|
-
return /* @__PURE__ */ (0,
|
|
31388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31321
31389
|
}
|
|
31322
31390
|
function TabPanel2({ children, ...props }) {
|
|
31323
|
-
return /* @__PURE__ */ (0,
|
|
31391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31324
31392
|
}
|
|
31325
31393
|
|
|
31326
31394
|
// src/components/TextArea.tsx
|
|
31327
31395
|
var import_react193 = require("react");
|
|
31328
|
-
var
|
|
31396
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31329
31397
|
|
|
31330
31398
|
// css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
|
|
31331
31399
|
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" };
|
|
31332
31400
|
|
|
31333
31401
|
// src/components/TextArea.tsx
|
|
31334
|
-
var
|
|
31402
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31335
31403
|
var TextArea2 = (0, import_react193.forwardRef)(
|
|
31336
31404
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31337
|
-
return /* @__PURE__ */ (0,
|
|
31405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31338
31406
|
TextField2,
|
|
31339
31407
|
{
|
|
31340
31408
|
...props,
|
|
31341
31409
|
ref,
|
|
31342
|
-
className: (0,
|
|
31410
|
+
className: (0, import_classnames48.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31343
31411
|
asChild: true,
|
|
31344
|
-
children: /* @__PURE__ */ (0,
|
|
31412
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31345
31413
|
}
|
|
31346
31414
|
);
|
|
31347
31415
|
}
|
|
31348
31416
|
);
|
|
31349
31417
|
|
|
31350
31418
|
// src/components/ThemeButton.tsx
|
|
31351
|
-
var
|
|
31419
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
31352
31420
|
|
|
31353
31421
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
31354
31422
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31355
31423
|
|
|
31356
31424
|
// src/components/ThemeButton.tsx
|
|
31357
|
-
var
|
|
31425
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31358
31426
|
function ThemeButton({
|
|
31359
31427
|
className,
|
|
31360
31428
|
variant = "quiet",
|
|
@@ -31379,17 +31447,17 @@ function ThemeButton({
|
|
|
31379
31447
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31380
31448
|
onPress?.(e);
|
|
31381
31449
|
}
|
|
31382
|
-
return /* @__PURE__ */ (0,
|
|
31450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
31383
31451
|
Button2,
|
|
31384
31452
|
{
|
|
31385
31453
|
...props,
|
|
31386
|
-
className: (0,
|
|
31454
|
+
className: (0, import_classnames49.default)(ThemeButton_default.button, className),
|
|
31387
31455
|
variant,
|
|
31388
31456
|
onPress: handleClick,
|
|
31389
31457
|
children: [
|
|
31390
31458
|
transitions((style, item) => (
|
|
31391
31459
|
// @ts-ignore
|
|
31392
|
-
/* @__PURE__ */ (0,
|
|
31460
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { size: "sm", children: item === "light" ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icons.Sun, {}) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icons.Moon, {}) }) }, item)
|
|
31393
31461
|
)),
|
|
31394
31462
|
"\xA0"
|
|
31395
31463
|
]
|
|
@@ -31399,25 +31467,25 @@ function ThemeButton({
|
|
|
31399
31467
|
|
|
31400
31468
|
// src/components/Toggle.tsx
|
|
31401
31469
|
var import_react194 = require("react");
|
|
31402
|
-
var
|
|
31470
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
31403
31471
|
|
|
31404
31472
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
31405
31473
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31406
31474
|
|
|
31407
31475
|
// src/components/Toggle.tsx
|
|
31408
|
-
var
|
|
31476
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31409
31477
|
var Toggle = (0, import_react194.forwardRef)(
|
|
31410
31478
|
({ label, children, className, ...props }, ref) => {
|
|
31411
31479
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31412
|
-
return /* @__PURE__ */ (0,
|
|
31413
|
-
label && /* @__PURE__ */ (0,
|
|
31414
|
-
/* @__PURE__ */ (0,
|
|
31480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
31481
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label2, { children: label }),
|
|
31482
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
31415
31483
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31416
31484
|
{
|
|
31417
31485
|
...props,
|
|
31418
31486
|
ref,
|
|
31419
31487
|
isSelected,
|
|
31420
|
-
className: (0,
|
|
31488
|
+
className: (0, import_classnames50.default)(Toggle_default.toggle, className),
|
|
31421
31489
|
children
|
|
31422
31490
|
}
|
|
31423
31491
|
)
|
|
@@ -31426,13 +31494,13 @@ var Toggle = (0, import_react194.forwardRef)(
|
|
|
31426
31494
|
);
|
|
31427
31495
|
|
|
31428
31496
|
// src/components/ToggleGroup.tsx
|
|
31429
|
-
var
|
|
31497
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
31430
31498
|
|
|
31431
31499
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31432
31500
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
|
|
31433
31501
|
|
|
31434
31502
|
// src/components/ToggleGroup.tsx
|
|
31435
|
-
var
|
|
31503
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31436
31504
|
function ToggleGroup({
|
|
31437
31505
|
label,
|
|
31438
31506
|
value,
|
|
@@ -31450,7 +31518,7 @@ function ToggleGroup({
|
|
|
31450
31518
|
onSelectionChange?.(keys);
|
|
31451
31519
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
31452
31520
|
};
|
|
31453
|
-
return /* @__PURE__ */ (0,
|
|
31521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
31454
31522
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
31455
31523
|
{
|
|
31456
31524
|
...props,
|
|
@@ -31458,26 +31526,26 @@ function ToggleGroup({
|
|
|
31458
31526
|
defaultSelectedKeys: defaultValue || defaultSelectedKeys,
|
|
31459
31527
|
selectionMode,
|
|
31460
31528
|
onSelectionChange: handleChange,
|
|
31461
|
-
className: (0,
|
|
31529
|
+
className: (0, import_classnames51.default)(ToggleGroup_default.group, className),
|
|
31462
31530
|
children: [
|
|
31463
|
-
label && /* @__PURE__ */ (0,
|
|
31464
|
-
/* @__PURE__ */ (0,
|
|
31531
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Label2, { children: label }),
|
|
31532
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31465
31533
|
]
|
|
31466
31534
|
}
|
|
31467
31535
|
);
|
|
31468
31536
|
}
|
|
31469
31537
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31470
|
-
return /* @__PURE__ */ (0,
|
|
31538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames51.default)(ToggleGroup_default.item, className), children });
|
|
31471
31539
|
}
|
|
31472
31540
|
|
|
31473
31541
|
// src/components/ZenProvider.tsx
|
|
31474
|
-
var
|
|
31542
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31475
31543
|
var defaultToastCofig = {
|
|
31476
31544
|
duration: 3e3
|
|
31477
31545
|
};
|
|
31478
31546
|
function ZenProvider({ children, ...props }) {
|
|
31479
31547
|
const { toast = defaultToastCofig } = props;
|
|
31480
|
-
return /* @__PURE__ */ (0,
|
|
31548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastProvider, { ...toast, children });
|
|
31481
31549
|
}
|
|
31482
31550
|
/*! Bundled license information:
|
|
31483
31551
|
|