@umami/react-zen 0.103.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 +24 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.js +191 -132
- package/dist/index.mjs +175 -116
- package/package.json +1 -1
- package/styles.css +26 -0
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,6 +30720,46 @@ 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
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
|
|
|
@@ -30784,12 +30826,6 @@ function ListSection({ title, className, children, ...props }) {
|
|
|
30784
30826
|
children
|
|
30785
30827
|
] });
|
|
30786
30828
|
}
|
|
30787
|
-
function getHighlightColor(color) {
|
|
30788
|
-
if (!color) return;
|
|
30789
|
-
if (/\d+/.test(color.toString())) {
|
|
30790
|
-
return { "--highlight-color": `var(--base-color-${color})` };
|
|
30791
|
-
}
|
|
30792
|
-
}
|
|
30793
30829
|
|
|
30794
30830
|
// src/components/Loading.tsx
|
|
30795
30831
|
var import_classnames33 = __toESM(require_classnames());
|
|
@@ -30896,76 +30932,99 @@ function NavbarItem({ label, children, className, ...props }) {
|
|
|
30896
30932
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...props, className: (0, import_classnames36.default)(Navbar_default.item, className), children });
|
|
30897
30933
|
}
|
|
30898
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
|
+
|
|
30899
30958
|
// src/components/PasswordField.tsx
|
|
30900
30959
|
var import_react186 = require("react");
|
|
30901
|
-
var
|
|
30960
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
30902
30961
|
|
|
30903
30962
|
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
30904
30963
|
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
30905
30964
|
|
|
30906
30965
|
// src/components/PasswordField.tsx
|
|
30907
|
-
var
|
|
30966
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
30908
30967
|
var PasswordField = (0, import_react186.forwardRef)(
|
|
30909
30968
|
({ label, className, ...props }, ref) => {
|
|
30910
30969
|
const [show, setShow] = (0, import_react186.useState)(false);
|
|
30911
30970
|
const type = show ? "text" : "password";
|
|
30912
30971
|
const handleShowPassword = () => setShow((state) => !state);
|
|
30913
|
-
return /* @__PURE__ */ (0,
|
|
30914
|
-
label && /* @__PURE__ */ (0,
|
|
30915
|
-
/* @__PURE__ */ (0,
|
|
30916
|
-
/* @__PURE__ */ (0,
|
|
30917
|
-
/* @__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, {}) })
|
|
30918
30977
|
] })
|
|
30919
30978
|
] });
|
|
30920
30979
|
}
|
|
30921
30980
|
);
|
|
30922
30981
|
|
|
30923
30982
|
// src/components/Popover.tsx
|
|
30924
|
-
var
|
|
30983
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
30925
30984
|
|
|
30926
30985
|
// css-modules:E:\dev\umami-react-zen\src\components\Popover.module.css
|
|
30927
30986
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
30928
30987
|
|
|
30929
30988
|
// src/components/Popover.tsx
|
|
30930
|
-
var
|
|
30989
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
30931
30990
|
function Popover2({ children, className, ...props }) {
|
|
30932
|
-
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 });
|
|
30933
30992
|
}
|
|
30934
30993
|
|
|
30935
30994
|
// src/components/ProgressBar.tsx
|
|
30936
|
-
var
|
|
30995
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
30937
30996
|
|
|
30938
30997
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
30939
30998
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
30940
30999
|
|
|
30941
31000
|
// src/components/ProgressBar.tsx
|
|
30942
|
-
var
|
|
31001
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
30943
31002
|
function ProgressBar2({ className, showValue, ...props }) {
|
|
30944
|
-
return /* @__PURE__ */ (0,
|
|
30945
|
-
return /* @__PURE__ */ (0,
|
|
30946
|
-
/* @__PURE__ */ (0,
|
|
30947
|
-
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 })
|
|
30948
31007
|
] });
|
|
30949
31008
|
} });
|
|
30950
31009
|
}
|
|
30951
31010
|
|
|
30952
31011
|
// src/components/ProgressCircle.tsx
|
|
30953
|
-
var
|
|
31012
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
30954
31013
|
|
|
30955
31014
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
30956
31015
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
30957
31016
|
|
|
30958
31017
|
// src/components/ProgressCircle.tsx
|
|
30959
|
-
var
|
|
31018
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
30960
31019
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
30961
|
-
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 }) => {
|
|
30962
31021
|
const radius = 45;
|
|
30963
31022
|
const circumference = radius * 2 * Math.PI;
|
|
30964
31023
|
const offset = circumference - percentage / 100 * circumference;
|
|
30965
|
-
return /* @__PURE__ */ (0,
|
|
30966
|
-
/* @__PURE__ */ (0,
|
|
30967
|
-
/* @__PURE__ */ (0,
|
|
30968
|
-
/* @__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)(
|
|
30969
31028
|
"circle",
|
|
30970
31029
|
{
|
|
30971
31030
|
className: ProgressCircle_default.fill,
|
|
@@ -30977,41 +31036,41 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
30977
31036
|
}
|
|
30978
31037
|
)
|
|
30979
31038
|
] }),
|
|
30980
|
-
showValue && /* @__PURE__ */ (0,
|
|
31039
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
30981
31040
|
] });
|
|
30982
31041
|
} });
|
|
30983
31042
|
}
|
|
30984
31043
|
|
|
30985
31044
|
// src/components/RadioGroup.tsx
|
|
30986
31045
|
var import_react187 = require("react");
|
|
30987
|
-
var
|
|
31046
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
30988
31047
|
|
|
30989
31048
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
30990
31049
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjI3O", "radio": "RadioGroup_radio__NjJiN" };
|
|
30991
31050
|
|
|
30992
31051
|
// src/components/RadioGroup.tsx
|
|
30993
|
-
var
|
|
31052
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
30994
31053
|
var RadioGroup2 = (0, import_react187.forwardRef)(
|
|
30995
31054
|
({ label, children, className, ...props }, ref) => {
|
|
30996
|
-
return /* @__PURE__ */ (0,
|
|
30997
|
-
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 }),
|
|
30998
31057
|
children
|
|
30999
31058
|
] });
|
|
31000
31059
|
}
|
|
31001
31060
|
);
|
|
31002
31061
|
function Radio2({ children, className, ...props }) {
|
|
31003
|
-
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 });
|
|
31004
31063
|
}
|
|
31005
31064
|
|
|
31006
31065
|
// src/components/SearchField.tsx
|
|
31007
31066
|
var import_react188 = require("react");
|
|
31008
|
-
var
|
|
31067
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
31009
31068
|
|
|
31010
31069
|
// css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
|
|
31011
31070
|
var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "SearchField_input__OGFiY", "close": "SearchField_close__NmJkM" };
|
|
31012
31071
|
|
|
31013
31072
|
// src/components/SearchField.tsx
|
|
31014
|
-
var
|
|
31073
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31015
31074
|
var SearchField2 = (0, import_react188.forwardRef)(
|
|
31016
31075
|
({ label, placeholder, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31017
31076
|
const [search, setSearch] = (0, import_react188.useState)(value ?? "");
|
|
@@ -31031,32 +31090,32 @@ var SearchField2 = (0, import_react188.forwardRef)(
|
|
|
31031
31090
|
onSearch?.(searchValue);
|
|
31032
31091
|
}
|
|
31033
31092
|
}, [searchValue, delay]);
|
|
31034
|
-
return /* @__PURE__ */ (0,
|
|
31093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31035
31094
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31036
31095
|
{
|
|
31037
31096
|
"aria-label": "Search",
|
|
31038
31097
|
...props,
|
|
31039
31098
|
ref,
|
|
31040
|
-
className: (0,
|
|
31099
|
+
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31041
31100
|
onChange: handleChange,
|
|
31042
31101
|
children: ({ state }) => {
|
|
31043
|
-
return /* @__PURE__ */ (0,
|
|
31044
|
-
label && /* @__PURE__ */ (0,
|
|
31045
|
-
/* @__PURE__ */ (0,
|
|
31046
|
-
/* @__PURE__ */ (0,
|
|
31047
|
-
/* @__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)(
|
|
31048
31107
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31049
31108
|
{
|
|
31050
|
-
className: (0,
|
|
31109
|
+
className: (0, import_classnames43.default)(SearchField_default.input, input_default.input),
|
|
31051
31110
|
placeholder
|
|
31052
31111
|
}
|
|
31053
31112
|
),
|
|
31054
|
-
state.value && /* @__PURE__ */ (0,
|
|
31113
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31055
31114
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31056
31115
|
{
|
|
31057
|
-
className: (0,
|
|
31116
|
+
className: (0, import_classnames43.default)(SearchField_default.close, input_default.icon),
|
|
31058
31117
|
onPress: resetSearch,
|
|
31059
|
-
children: /* @__PURE__ */ (0,
|
|
31118
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
|
|
31060
31119
|
}
|
|
31061
31120
|
)
|
|
31062
31121
|
] })
|
|
@@ -31069,7 +31128,7 @@ var SearchField2 = (0, import_react188.forwardRef)(
|
|
|
31069
31128
|
|
|
31070
31129
|
// src/components/Select.tsx
|
|
31071
31130
|
var import_react189 = require("react");
|
|
31072
|
-
var
|
|
31131
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31073
31132
|
var Select2 = (0, import_react189.forwardRef)(
|
|
31074
31133
|
({
|
|
31075
31134
|
items = [],
|
|
@@ -31100,7 +31159,7 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31100
31159
|
setSearch(value2);
|
|
31101
31160
|
onSearch?.(value2);
|
|
31102
31161
|
};
|
|
31103
|
-
return /* @__PURE__ */ (0,
|
|
31162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
31104
31163
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31105
31164
|
{
|
|
31106
31165
|
"aria-label": "Select",
|
|
@@ -31110,13 +31169,13 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31110
31169
|
defaultSelectedKey: defaultValue,
|
|
31111
31170
|
onSelectionChange: handleChange,
|
|
31112
31171
|
children: [
|
|
31113
|
-
label && /* @__PURE__ */ (0,
|
|
31114
|
-
/* @__PURE__ */ (0,
|
|
31115
|
-
/* @__PURE__ */ (0,
|
|
31116
|
-
/* @__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, {}) }) })
|
|
31117
31176
|
] }) }),
|
|
31118
|
-
/* @__PURE__ */ (0,
|
|
31119
|
-
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)(
|
|
31120
31179
|
SearchField2,
|
|
31121
31180
|
{
|
|
31122
31181
|
value: search,
|
|
@@ -31126,8 +31185,8 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31126
31185
|
autoFocus: true
|
|
31127
31186
|
}
|
|
31128
31187
|
) }),
|
|
31129
|
-
isLoading && /* @__PURE__ */ (0,
|
|
31130
|
-
/* @__PURE__ */ (0,
|
|
31188
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31189
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31131
31190
|
List,
|
|
31132
31191
|
{
|
|
31133
31192
|
...listProps,
|
|
@@ -31145,13 +31204,13 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31145
31204
|
|
|
31146
31205
|
// src/components/Sidebar.tsx
|
|
31147
31206
|
var import_react190 = require("react");
|
|
31148
|
-
var
|
|
31207
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
31149
31208
|
|
|
31150
31209
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31151
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" };
|
|
31152
31211
|
|
|
31153
31212
|
// src/components/Sidebar.tsx
|
|
31154
|
-
var
|
|
31213
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31155
31214
|
var SidebarContext = (0, import_react190.createContext)(null);
|
|
31156
31215
|
function Sidebar({
|
|
31157
31216
|
variant = "1",
|
|
@@ -31162,11 +31221,11 @@ function Sidebar({
|
|
|
31162
31221
|
children,
|
|
31163
31222
|
...props
|
|
31164
31223
|
}) {
|
|
31165
|
-
return /* @__PURE__ */ (0,
|
|
31224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
31166
31225
|
Column,
|
|
31167
31226
|
{
|
|
31168
31227
|
...props,
|
|
31169
|
-
className: (0,
|
|
31228
|
+
className: (0, import_classnames44.default)(
|
|
31170
31229
|
Sidebar_default.sidenav,
|
|
31171
31230
|
isCollapsed && Sidebar_default.collapsed,
|
|
31172
31231
|
muteItems && Sidebar_default.muted,
|
|
@@ -31182,9 +31241,9 @@ function SidebarSection({
|
|
|
31182
31241
|
title,
|
|
31183
31242
|
children
|
|
31184
31243
|
}) {
|
|
31185
|
-
return /* @__PURE__ */ (0,
|
|
31186
|
-
title && /* @__PURE__ */ (0,
|
|
31187
|
-
/* @__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 })
|
|
31188
31247
|
] });
|
|
31189
31248
|
}
|
|
31190
31249
|
function SidebarHeader({
|
|
@@ -31194,9 +31253,9 @@ function SidebarHeader({
|
|
|
31194
31253
|
children,
|
|
31195
31254
|
...props
|
|
31196
31255
|
}) {
|
|
31197
|
-
return /* @__PURE__ */ (0,
|
|
31198
|
-
icon && /* @__PURE__ */ (0,
|
|
31199
|
-
/* @__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 }),
|
|
31200
31259
|
children
|
|
31201
31260
|
] });
|
|
31202
31261
|
}
|
|
@@ -31209,43 +31268,43 @@ function SidebarItem({
|
|
|
31209
31268
|
...props
|
|
31210
31269
|
}) {
|
|
31211
31270
|
const { isCollapsed } = (0, import_react190.useContext)(SidebarContext);
|
|
31212
|
-
return /* @__PURE__ */ (0,
|
|
31213
|
-
/* @__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)(
|
|
31214
31273
|
Row,
|
|
31215
31274
|
{
|
|
31216
31275
|
...props,
|
|
31217
|
-
className: (0,
|
|
31276
|
+
className: (0, import_classnames44.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31218
31277
|
children: [
|
|
31219
|
-
icon && /* @__PURE__ */ (0,
|
|
31220
|
-
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 }),
|
|
31221
31280
|
children
|
|
31222
31281
|
]
|
|
31223
31282
|
}
|
|
31224
31283
|
) }),
|
|
31225
|
-
/* @__PURE__ */ (0,
|
|
31284
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Tooltip2, { placement: "right", children: label })
|
|
31226
31285
|
] });
|
|
31227
31286
|
}
|
|
31228
31287
|
|
|
31229
31288
|
// src/components/Slider.tsx
|
|
31230
31289
|
var import_react191 = require("react");
|
|
31231
|
-
var
|
|
31290
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
31232
31291
|
|
|
31233
31292
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
31234
31293
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31235
31294
|
|
|
31236
31295
|
// src/components/Slider.tsx
|
|
31237
|
-
var
|
|
31296
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31238
31297
|
var Slider2 = (0, import_react191.forwardRef)(
|
|
31239
31298
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31240
|
-
return /* @__PURE__ */ (0,
|
|
31241
|
-
/* @__PURE__ */ (0,
|
|
31242
|
-
label && /* @__PURE__ */ (0,
|
|
31243
|
-
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 })
|
|
31244
31303
|
] }),
|
|
31245
|
-
/* @__PURE__ */ (0,
|
|
31304
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31246
31305
|
const isHorizontal = state.orientation === "horizontal";
|
|
31247
|
-
return /* @__PURE__ */ (0,
|
|
31248
|
-
/* @__PURE__ */ (0,
|
|
31306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
31307
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31249
31308
|
"div",
|
|
31250
31309
|
{
|
|
31251
31310
|
className: Slider_default.fill,
|
|
@@ -31254,7 +31313,7 @@ var Slider2 = (0, import_react191.forwardRef)(
|
|
|
31254
31313
|
}
|
|
31255
31314
|
}
|
|
31256
31315
|
),
|
|
31257
|
-
/* @__PURE__ */ (0,
|
|
31316
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31258
31317
|
] });
|
|
31259
31318
|
} })
|
|
31260
31319
|
] });
|
|
@@ -31262,20 +31321,20 @@ var Slider2 = (0, import_react191.forwardRef)(
|
|
|
31262
31321
|
);
|
|
31263
31322
|
|
|
31264
31323
|
// src/components/StatusLight.tsx
|
|
31265
|
-
var
|
|
31324
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
31266
31325
|
|
|
31267
31326
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
31268
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" };
|
|
31269
31328
|
|
|
31270
31329
|
// src/components/StatusLight.tsx
|
|
31271
|
-
var
|
|
31330
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31272
31331
|
function StatusLight(props) {
|
|
31273
31332
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31274
|
-
return /* @__PURE__ */ (0,
|
|
31275
|
-
/* @__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)(
|
|
31276
31335
|
"div",
|
|
31277
31336
|
{
|
|
31278
|
-
className: (0,
|
|
31337
|
+
className: (0, import_classnames46.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
31279
31338
|
style: { backgroundColor: color }
|
|
31280
31339
|
}
|
|
31281
31340
|
) }),
|
|
@@ -31285,27 +31344,27 @@ function StatusLight(props) {
|
|
|
31285
31344
|
|
|
31286
31345
|
// src/components/Switch.tsx
|
|
31287
31346
|
var import_react192 = require("react");
|
|
31288
|
-
var
|
|
31347
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
31289
31348
|
|
|
31290
31349
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
31291
31350
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31292
31351
|
|
|
31293
31352
|
// src/components/Switch.tsx
|
|
31294
|
-
var
|
|
31353
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31295
31354
|
var Switch2 = (0, import_react192.forwardRef)(
|
|
31296
31355
|
({ label, children, className, ...props }, ref) => {
|
|
31297
31356
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31298
|
-
return /* @__PURE__ */ (0,
|
|
31299
|
-
label && /* @__PURE__ */ (0,
|
|
31300
|
-
/* @__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)(
|
|
31301
31360
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31302
31361
|
{
|
|
31303
31362
|
...props,
|
|
31304
31363
|
isSelected,
|
|
31305
31364
|
ref,
|
|
31306
|
-
className: (0,
|
|
31365
|
+
className: (0, import_classnames47.default)(Switch_default.switch, className),
|
|
31307
31366
|
children: [
|
|
31308
|
-
/* @__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 }) }),
|
|
31309
31368
|
children
|
|
31310
31369
|
]
|
|
31311
31370
|
}
|
|
@@ -31318,52 +31377,52 @@ var Switch2 = (0, import_react192.forwardRef)(
|
|
|
31318
31377
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31319
31378
|
|
|
31320
31379
|
// src/components/Tabs.tsx
|
|
31321
|
-
var
|
|
31380
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31322
31381
|
function Tabs2({ children, ...props }) {
|
|
31323
|
-
return /* @__PURE__ */ (0,
|
|
31382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31324
31383
|
}
|
|
31325
31384
|
function TabList2({ children, ...props }) {
|
|
31326
|
-
return /* @__PURE__ */ (0,
|
|
31385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31327
31386
|
}
|
|
31328
31387
|
function Tab({ children, ...props }) {
|
|
31329
|
-
return /* @__PURE__ */ (0,
|
|
31388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31330
31389
|
}
|
|
31331
31390
|
function TabPanel2({ children, ...props }) {
|
|
31332
|
-
return /* @__PURE__ */ (0,
|
|
31391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31333
31392
|
}
|
|
31334
31393
|
|
|
31335
31394
|
// src/components/TextArea.tsx
|
|
31336
31395
|
var import_react193 = require("react");
|
|
31337
|
-
var
|
|
31396
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31338
31397
|
|
|
31339
31398
|
// css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
|
|
31340
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" };
|
|
31341
31400
|
|
|
31342
31401
|
// src/components/TextArea.tsx
|
|
31343
|
-
var
|
|
31402
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31344
31403
|
var TextArea2 = (0, import_react193.forwardRef)(
|
|
31345
31404
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31346
|
-
return /* @__PURE__ */ (0,
|
|
31405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31347
31406
|
TextField2,
|
|
31348
31407
|
{
|
|
31349
31408
|
...props,
|
|
31350
31409
|
ref,
|
|
31351
|
-
className: (0,
|
|
31410
|
+
className: (0, import_classnames48.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31352
31411
|
asChild: true,
|
|
31353
|
-
children: /* @__PURE__ */ (0,
|
|
31412
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31354
31413
|
}
|
|
31355
31414
|
);
|
|
31356
31415
|
}
|
|
31357
31416
|
);
|
|
31358
31417
|
|
|
31359
31418
|
// src/components/ThemeButton.tsx
|
|
31360
|
-
var
|
|
31419
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
31361
31420
|
|
|
31362
31421
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
31363
31422
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31364
31423
|
|
|
31365
31424
|
// src/components/ThemeButton.tsx
|
|
31366
|
-
var
|
|
31425
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31367
31426
|
function ThemeButton({
|
|
31368
31427
|
className,
|
|
31369
31428
|
variant = "quiet",
|
|
@@ -31388,17 +31447,17 @@ function ThemeButton({
|
|
|
31388
31447
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31389
31448
|
onPress?.(e);
|
|
31390
31449
|
}
|
|
31391
|
-
return /* @__PURE__ */ (0,
|
|
31450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
31392
31451
|
Button2,
|
|
31393
31452
|
{
|
|
31394
31453
|
...props,
|
|
31395
|
-
className: (0,
|
|
31454
|
+
className: (0, import_classnames49.default)(ThemeButton_default.button, className),
|
|
31396
31455
|
variant,
|
|
31397
31456
|
onPress: handleClick,
|
|
31398
31457
|
children: [
|
|
31399
31458
|
transitions((style, item) => (
|
|
31400
31459
|
// @ts-ignore
|
|
31401
|
-
/* @__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)
|
|
31402
31461
|
)),
|
|
31403
31462
|
"\xA0"
|
|
31404
31463
|
]
|
|
@@ -31408,25 +31467,25 @@ function ThemeButton({
|
|
|
31408
31467
|
|
|
31409
31468
|
// src/components/Toggle.tsx
|
|
31410
31469
|
var import_react194 = require("react");
|
|
31411
|
-
var
|
|
31470
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
31412
31471
|
|
|
31413
31472
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
31414
31473
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31415
31474
|
|
|
31416
31475
|
// src/components/Toggle.tsx
|
|
31417
|
-
var
|
|
31476
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31418
31477
|
var Toggle = (0, import_react194.forwardRef)(
|
|
31419
31478
|
({ label, children, className, ...props }, ref) => {
|
|
31420
31479
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31421
|
-
return /* @__PURE__ */ (0,
|
|
31422
|
-
label && /* @__PURE__ */ (0,
|
|
31423
|
-
/* @__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)(
|
|
31424
31483
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31425
31484
|
{
|
|
31426
31485
|
...props,
|
|
31427
31486
|
ref,
|
|
31428
31487
|
isSelected,
|
|
31429
|
-
className: (0,
|
|
31488
|
+
className: (0, import_classnames50.default)(Toggle_default.toggle, className),
|
|
31430
31489
|
children
|
|
31431
31490
|
}
|
|
31432
31491
|
)
|
|
@@ -31435,13 +31494,13 @@ var Toggle = (0, import_react194.forwardRef)(
|
|
|
31435
31494
|
);
|
|
31436
31495
|
|
|
31437
31496
|
// src/components/ToggleGroup.tsx
|
|
31438
|
-
var
|
|
31497
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
31439
31498
|
|
|
31440
31499
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31441
31500
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
|
|
31442
31501
|
|
|
31443
31502
|
// src/components/ToggleGroup.tsx
|
|
31444
|
-
var
|
|
31503
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31445
31504
|
function ToggleGroup({
|
|
31446
31505
|
label,
|
|
31447
31506
|
value,
|
|
@@ -31459,7 +31518,7 @@ function ToggleGroup({
|
|
|
31459
31518
|
onSelectionChange?.(keys);
|
|
31460
31519
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
31461
31520
|
};
|
|
31462
|
-
return /* @__PURE__ */ (0,
|
|
31521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
31463
31522
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
31464
31523
|
{
|
|
31465
31524
|
...props,
|
|
@@ -31467,26 +31526,26 @@ function ToggleGroup({
|
|
|
31467
31526
|
defaultSelectedKeys: defaultValue || defaultSelectedKeys,
|
|
31468
31527
|
selectionMode,
|
|
31469
31528
|
onSelectionChange: handleChange,
|
|
31470
|
-
className: (0,
|
|
31529
|
+
className: (0, import_classnames51.default)(ToggleGroup_default.group, className),
|
|
31471
31530
|
children: [
|
|
31472
|
-
label && /* @__PURE__ */ (0,
|
|
31473
|
-
/* @__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 })
|
|
31474
31533
|
]
|
|
31475
31534
|
}
|
|
31476
31535
|
);
|
|
31477
31536
|
}
|
|
31478
31537
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31479
|
-
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 });
|
|
31480
31539
|
}
|
|
31481
31540
|
|
|
31482
31541
|
// src/components/ZenProvider.tsx
|
|
31483
|
-
var
|
|
31542
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31484
31543
|
var defaultToastCofig = {
|
|
31485
31544
|
duration: 3e3
|
|
31486
31545
|
};
|
|
31487
31546
|
function ZenProvider({ children, ...props }) {
|
|
31488
31547
|
const { toast = defaultToastCofig } = props;
|
|
31489
|
-
return /* @__PURE__ */ (0,
|
|
31548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastProvider, { ...toast, children });
|
|
31490
31549
|
}
|
|
31491
31550
|
/*! Bundled license information:
|
|
31492
31551
|
|