@umami/react-zen 0.39.0 → 0.41.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 +113 -25
- package/dist/index.d.ts +9 -16
- package/dist/index.js +124 -127
- package/dist/index.mjs +124 -127
- package/package.json +2 -2
- package/styles.css +113 -25
package/dist/index.js
CHANGED
|
@@ -319,7 +319,6 @@ __export(index_exports, {
|
|
|
319
319
|
Menu: () => Menu,
|
|
320
320
|
MenuItem: () => MenuItem2,
|
|
321
321
|
MenuTrigger: () => $3674c52c6b3c5bce$export$27d2ad3c5815583e,
|
|
322
|
-
MobileMenuButton: () => MobileMenuButton,
|
|
323
322
|
Modal: () => Modal,
|
|
324
323
|
NavigationMenu: () => NavigationMenu,
|
|
325
324
|
NavigationMenuItem: () => NavigationMenuItem,
|
|
@@ -26087,6 +26086,9 @@ var CSS_MAP = {
|
|
|
26087
26086
|
marginRight: "margin-right",
|
|
26088
26087
|
marginBottom: "margin-bottom",
|
|
26089
26088
|
marginLeft: "margin-left",
|
|
26089
|
+
overflow: "overflow",
|
|
26090
|
+
overflowX: "overflow-x",
|
|
26091
|
+
overflowY: "overflow-y",
|
|
26090
26092
|
width: "width",
|
|
26091
26093
|
height: "height",
|
|
26092
26094
|
minHeight: "min-height",
|
|
@@ -26203,6 +26205,9 @@ function Box({
|
|
|
26203
26205
|
marginRight,
|
|
26204
26206
|
marginBottom,
|
|
26205
26207
|
marginLeft,
|
|
26208
|
+
overflow,
|
|
26209
|
+
overflowX,
|
|
26210
|
+
overflowY,
|
|
26206
26211
|
width,
|
|
26207
26212
|
minWidth,
|
|
26208
26213
|
maxWidth,
|
|
@@ -26251,6 +26256,9 @@ function Box({
|
|
|
26251
26256
|
marginRight,
|
|
26252
26257
|
marginBottom,
|
|
26253
26258
|
marginLeft,
|
|
26259
|
+
overflow,
|
|
26260
|
+
overflowX,
|
|
26261
|
+
overflowY,
|
|
26254
26262
|
width,
|
|
26255
26263
|
minWidth,
|
|
26256
26264
|
maxWidth,
|
|
@@ -30412,17 +30420,24 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
30412
30420
|
var import_classnames13 = __toESM(require_classnames());
|
|
30413
30421
|
|
|
30414
30422
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Dialog.module.css
|
|
30415
|
-
var Dialog_default = { "dialog": "
|
|
30423
|
+
var Dialog_default = { "dialog": "Dialog_dialog__OTEwM", "title": "Dialog_title__MTE4N", "sheet": "Dialog_sheet__MWQ0Z" };
|
|
30416
30424
|
|
|
30417
30425
|
// src/components/Dialog.tsx
|
|
30418
30426
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
30419
|
-
function Dialog({ title, children, className, ...props }) {
|
|
30420
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
30421
|
-
|
|
30422
|
-
|
|
30423
|
-
|
|
30424
|
-
|
|
30425
|
-
|
|
30427
|
+
function Dialog({ title, variant, children, className, ...props }) {
|
|
30428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
30429
|
+
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30430
|
+
{
|
|
30431
|
+
...props,
|
|
30432
|
+
className: (0, import_classnames13.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30433
|
+
children: (dialogProps) => {
|
|
30434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
30435
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30436
|
+
typeof children === "function" ? children(dialogProps) : children
|
|
30437
|
+
] });
|
|
30438
|
+
}
|
|
30439
|
+
}
|
|
30440
|
+
);
|
|
30426
30441
|
}
|
|
30427
30442
|
|
|
30428
30443
|
// src/components/Row.tsx
|
|
@@ -31174,40 +31189,22 @@ function Menu({ items, className, children, ...props }) {
|
|
|
31174
31189
|
var import_classnames36 = __toESM(require_classnames());
|
|
31175
31190
|
|
|
31176
31191
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Modal.module.css
|
|
31177
|
-
var Modal_default = { "overlay": "
|
|
31192
|
+
var Modal_default = { "overlay": "Modal_overlay__MzYwN", "modal-fade-in": "Modal_modal-fade-in__MDBkZ", "modal": "Modal_modal__ZTRjZ", "left": "Modal_left__NWIxM", "right": "Modal_right__MGNkY", "top": "Modal_top__ZmViY", "bottom": "Modal_bottom__Zjg4M", "fullscreen": "Modal_fullscreen__NmZiM", "center": "Modal_center__ZWFmO", "modal-zoom": "Modal_modal-zoom__MmU0M", "modal-left": "Modal_modal-left__MWY5M", "modal-right": "Modal_modal-right__OWVlM", "modal-top": "Modal_modal-top__NDc4M", "modal-bottom": "Modal_modal-bottom__YTE1Z" };
|
|
31178
31193
|
|
|
31179
31194
|
// src/components/Modal.tsx
|
|
31180
31195
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
31181
|
-
function Modal({
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
|
|
31185
|
-
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31190
|
-
|
|
31191
|
-
}
|
|
31192
|
-
|
|
31193
|
-
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/MobileMenuButton.module.css
|
|
31194
|
-
var MobileMenuButton_default = { "modal": "MobileMenuButton_modal__YjAxN", "dialog": "MobileMenuButton_dialog__Mzc5Y", "content": "MobileMenuButton_content__MjQ3N" };
|
|
31195
|
-
|
|
31196
|
-
// src/components/MobileMenuButton.tsx
|
|
31197
|
-
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31198
|
-
function MobileMenuButton({ title, children, ...props }) {
|
|
31199
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)($de32f1b87079253c$export$2e1e1122cf0cba88, { children: [
|
|
31200
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.Menu, {}) }) }),
|
|
31201
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Modal, { className: MobileMenuButton_default.modal, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Dialog, { className: MobileMenuButton_default.dialog, children: ({ close }) => {
|
|
31202
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Grid, { rows: "auto 1fr", height: "100%", width: "100%", children: [
|
|
31203
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Row, { justifyContent: "space-between", alignItems: "center", children: [
|
|
31204
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { size: "3", weight: "bold", children: title }),
|
|
31205
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { onPress: () => close(), variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.Close, {}) }) })
|
|
31206
|
-
] }),
|
|
31207
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Box, { className: MobileMenuButton_default.content, children })
|
|
31208
|
-
] });
|
|
31209
|
-
} }) })
|
|
31210
|
-
] });
|
|
31196
|
+
function Modal({
|
|
31197
|
+
position = "center",
|
|
31198
|
+
offset,
|
|
31199
|
+
children,
|
|
31200
|
+
className,
|
|
31201
|
+
style = {},
|
|
31202
|
+
...props
|
|
31203
|
+
}) {
|
|
31204
|
+
if (offset) {
|
|
31205
|
+
style[`--modal-offset`] = offset;
|
|
31206
|
+
}
|
|
31207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames36.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
31211
31208
|
}
|
|
31212
31209
|
|
|
31213
31210
|
// src/components/NavigationMenu.tsx
|
|
@@ -31225,14 +31222,14 @@ var useNavigationMenu = store3;
|
|
|
31225
31222
|
var NavigationMenu_default = { "nav": "NavigationMenu_nav__MzRiY", "item": "NavigationMenu_item__YTI0N", "icon": "NavigationMenu_icon__ZDczY" };
|
|
31226
31223
|
|
|
31227
31224
|
// src/components/NavigationMenu.tsx
|
|
31228
|
-
var
|
|
31225
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31229
31226
|
function NavigationMenu({
|
|
31230
31227
|
showArrow = true,
|
|
31231
31228
|
className,
|
|
31232
31229
|
children,
|
|
31233
31230
|
...props
|
|
31234
31231
|
}) {
|
|
31235
|
-
return /* @__PURE__ */ (0,
|
|
31232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.nav, className), children });
|
|
31236
31233
|
}
|
|
31237
31234
|
function NavigationMenuItem({
|
|
31238
31235
|
label,
|
|
@@ -31242,15 +31239,15 @@ function NavigationMenuItem({
|
|
|
31242
31239
|
}) {
|
|
31243
31240
|
const { activeMenu } = useNavigationMenu();
|
|
31244
31241
|
if (label) {
|
|
31245
|
-
return /* @__PURE__ */ (0,
|
|
31246
|
-
/* @__PURE__ */ (0,
|
|
31247
|
-
/* @__PURE__ */ (0,
|
|
31248
|
-
/* @__PURE__ */ (0,
|
|
31242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31243
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children: [
|
|
31244
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { children: label }),
|
|
31245
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { rotate: 90, size: "xs", className: NavigationMenu_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.Chevron, {}) })
|
|
31249
31246
|
] }),
|
|
31250
31247
|
children
|
|
31251
31248
|
] });
|
|
31252
31249
|
}
|
|
31253
|
-
return /* @__PURE__ */ (0,
|
|
31250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children });
|
|
31254
31251
|
}
|
|
31255
31252
|
|
|
31256
31253
|
// src/components/PasswordField.tsx
|
|
@@ -31261,17 +31258,17 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
31261
31258
|
var PasswordField_default = { "icon": "PasswordField_icon__NDMyZ" };
|
|
31262
31259
|
|
|
31263
31260
|
// src/components/PasswordField.tsx
|
|
31264
|
-
var
|
|
31261
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
31265
31262
|
var PasswordField = (0, import_react182.forwardRef)(
|
|
31266
31263
|
({ label, className, ...props }, ref) => {
|
|
31267
31264
|
const [show, setShow] = (0, import_react182.useState)(false);
|
|
31268
31265
|
const type = show ? "text" : "password";
|
|
31269
31266
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31270
|
-
return /* @__PURE__ */ (0,
|
|
31271
|
-
label && /* @__PURE__ */ (0,
|
|
31272
|
-
/* @__PURE__ */ (0,
|
|
31273
|
-
/* @__PURE__ */ (0,
|
|
31274
|
-
/* @__PURE__ */ (0,
|
|
31267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames38.default)(input_default.field, className), children: [
|
|
31268
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { children: label }),
|
|
31269
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: input_default.row, children: [
|
|
31270
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
31271
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.Eye, {}) })
|
|
31275
31272
|
] })
|
|
31276
31273
|
] });
|
|
31277
31274
|
}
|
|
@@ -31284,12 +31281,12 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31284
31281
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__MTQwN", "track": "ProgressBar_track__YTM0O", "fill": "ProgressBar_fill__ZTkyN", "value": "ProgressBar_value__YTU3N" };
|
|
31285
31282
|
|
|
31286
31283
|
// src/components/ProgressBar.tsx
|
|
31287
|
-
var
|
|
31284
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
31288
31285
|
function ProgressBar({ className, showValue, ...props }) {
|
|
31289
|
-
return /* @__PURE__ */ (0,
|
|
31290
|
-
return /* @__PURE__ */ (0,
|
|
31291
|
-
/* @__PURE__ */ (0,
|
|
31292
|
-
showValue && /* @__PURE__ */ (0,
|
|
31286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames39.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
31288
|
+
/* @__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}%` } }) }),
|
|
31289
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
31293
31290
|
] });
|
|
31294
31291
|
} });
|
|
31295
31292
|
}
|
|
@@ -31301,16 +31298,16 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31301
31298
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NTQ3N", "track": "ProgressCircle_track__Mjk3Y", "fill": "ProgressCircle_fill__OWJlY", "value": "ProgressCircle_value__NzQ5Y" };
|
|
31302
31299
|
|
|
31303
31300
|
// src/components/ProgressCircle.tsx
|
|
31304
|
-
var
|
|
31301
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
31305
31302
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31306
|
-
return /* @__PURE__ */ (0,
|
|
31303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31307
31304
|
const radius = 45;
|
|
31308
31305
|
const circumference = radius * 2 * Math.PI;
|
|
31309
31306
|
const offset = circumference - percentage / 100 * circumference;
|
|
31310
|
-
return /* @__PURE__ */ (0,
|
|
31311
|
-
/* @__PURE__ */ (0,
|
|
31312
|
-
/* @__PURE__ */ (0,
|
|
31313
|
-
/* @__PURE__ */ (0,
|
|
31307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
31308
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31309
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31310
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
31314
31311
|
"circle",
|
|
31315
31312
|
{
|
|
31316
31313
|
className: ProgressCircle_default.fill,
|
|
@@ -31322,7 +31319,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31322
31319
|
}
|
|
31323
31320
|
)
|
|
31324
31321
|
] }),
|
|
31325
|
-
showValue && /* @__PURE__ */ (0,
|
|
31322
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31326
31323
|
] });
|
|
31327
31324
|
} });
|
|
31328
31325
|
}
|
|
@@ -31335,17 +31332,17 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31335
31332
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__M2FmO", "radio": "RadioGroup_radio__NjdlY" };
|
|
31336
31333
|
|
|
31337
31334
|
// src/components/RadioGroup.tsx
|
|
31338
|
-
var
|
|
31335
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31339
31336
|
var RadioGroup = (0, import_react183.forwardRef)(
|
|
31340
31337
|
({ label, children, className, ...props }, ref) => {
|
|
31341
|
-
return /* @__PURE__ */ (0,
|
|
31342
|
-
label && /* @__PURE__ */ (0,
|
|
31338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames41.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31339
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label, { children: label }),
|
|
31343
31340
|
children
|
|
31344
31341
|
] });
|
|
31345
31342
|
}
|
|
31346
31343
|
);
|
|
31347
31344
|
function Radio({ children, className, ...props }) {
|
|
31348
|
-
return /* @__PURE__ */ (0,
|
|
31345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames41.default)(RadioGroup_default.radio, className), children });
|
|
31349
31346
|
}
|
|
31350
31347
|
|
|
31351
31348
|
// src/components/SearchField.tsx
|
|
@@ -31356,7 +31353,7 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31356
31353
|
var SearchField_default = { "search": "SearchField_search__MmNlZ", "input": "SearchField_input__NTAwN", "close": "SearchField_close__NzZiM" };
|
|
31357
31354
|
|
|
31358
31355
|
// src/components/SearchField.tsx
|
|
31359
|
-
var
|
|
31356
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31360
31357
|
var SearchField = (0, import_react184.forwardRef)(
|
|
31361
31358
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31362
31359
|
const [search, setSearch] = (0, import_react184.useState)(value ?? "");
|
|
@@ -31377,24 +31374,24 @@ var SearchField = (0, import_react184.forwardRef)(
|
|
|
31377
31374
|
onSearch?.(searchValue);
|
|
31378
31375
|
}
|
|
31379
31376
|
}, [searchValue, delay, onSearch]);
|
|
31380
|
-
return /* @__PURE__ */ (0,
|
|
31381
|
-
return /* @__PURE__ */ (0,
|
|
31382
|
-
label && /* @__PURE__ */ (0,
|
|
31383
|
-
/* @__PURE__ */ (0,
|
|
31384
|
-
/* @__PURE__ */ (0,
|
|
31385
|
-
/* @__PURE__ */ (0,
|
|
31377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames42.default)(input_default.field, className), children: ({ state }) => {
|
|
31378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
31379
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { children: label }),
|
|
31380
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: input_default.row, children: [
|
|
31381
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.MagnifyingGlass, { className: (0, import_classnames42.default)(SearchField_default.search, input_default.icon) }),
|
|
31382
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31386
31383
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31387
31384
|
{
|
|
31388
31385
|
className: (0, import_classnames42.default)(SearchField_default.input, input_default.input),
|
|
31389
31386
|
onChange: handleChange
|
|
31390
31387
|
}
|
|
31391
31388
|
),
|
|
31392
|
-
state.value && /* @__PURE__ */ (0,
|
|
31389
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31393
31390
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31394
31391
|
{
|
|
31395
31392
|
className: (0, import_classnames42.default)(SearchField_default.close, input_default.icon),
|
|
31396
31393
|
onPress: resetSearch,
|
|
31397
|
-
children: /* @__PURE__ */ (0,
|
|
31394
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
|
|
31398
31395
|
}
|
|
31399
31396
|
)
|
|
31400
31397
|
] })
|
|
@@ -31411,7 +31408,7 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
31411
31408
|
var Select_default = { "button": "Select_button__YTM3Z", "list": "Select_list__MjJiN", "icon": "Select_icon__NzlhY" };
|
|
31412
31409
|
|
|
31413
31410
|
// src/components/Select.tsx
|
|
31414
|
-
var
|
|
31411
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31415
31412
|
var Select = (0, import_react185.forwardRef)(
|
|
31416
31413
|
({
|
|
31417
31414
|
children,
|
|
@@ -31427,7 +31424,7 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31427
31424
|
onSelectionChange?.(e);
|
|
31428
31425
|
onChange?.(e);
|
|
31429
31426
|
};
|
|
31430
|
-
return /* @__PURE__ */ (0,
|
|
31427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
31431
31428
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31432
31429
|
{
|
|
31433
31430
|
...props,
|
|
@@ -31435,12 +31432,12 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31435
31432
|
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31436
31433
|
onSelectionChange: handleChange,
|
|
31437
31434
|
children: [
|
|
31438
|
-
label && /* @__PURE__ */ (0,
|
|
31439
|
-
/* @__PURE__ */ (0,
|
|
31440
|
-
/* @__PURE__ */ (0,
|
|
31441
|
-
/* @__PURE__ */ (0,
|
|
31435
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { children: label }),
|
|
31436
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31437
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
31438
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Chevron, {}) }) })
|
|
31442
31439
|
] }) }),
|
|
31443
|
-
/* @__PURE__ */ (0,
|
|
31440
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(List, { items, className: Select_default.list, children }) })
|
|
31444
31441
|
]
|
|
31445
31442
|
}
|
|
31446
31443
|
);
|
|
@@ -31455,18 +31452,18 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
31455
31452
|
var Slider_default = { "slider": "Slider_slider__ODQ1M", "header": "Slider_header__NmYzN", "track": "Slider_track__Y2M4O", "fill": "Slider_fill__MWM4N", "thumb": "Slider_thumb__NGU2Z" };
|
|
31456
31453
|
|
|
31457
31454
|
// src/components/Slider.tsx
|
|
31458
|
-
var
|
|
31455
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31459
31456
|
var Slider = (0, import_react186.forwardRef)(
|
|
31460
31457
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31461
|
-
return /* @__PURE__ */ (0,
|
|
31462
|
-
/* @__PURE__ */ (0,
|
|
31463
|
-
label && /* @__PURE__ */ (0,
|
|
31464
|
-
showValue && /* @__PURE__ */ (0,
|
|
31458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames44.default)(Slider_default.slider, className), children: [
|
|
31459
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: Slider_default.header, children: [
|
|
31460
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label, { className: Slider_default.label, children: label }),
|
|
31461
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31465
31462
|
] }),
|
|
31466
|
-
/* @__PURE__ */ (0,
|
|
31463
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31467
31464
|
const isHorizontal = state.orientation === "horizontal";
|
|
31468
|
-
return /* @__PURE__ */ (0,
|
|
31469
|
-
/* @__PURE__ */ (0,
|
|
31465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
31466
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
31470
31467
|
"div",
|
|
31471
31468
|
{
|
|
31472
31469
|
className: Slider_default.fill,
|
|
@@ -31475,7 +31472,7 @@ var Slider = (0, import_react186.forwardRef)(
|
|
|
31475
31472
|
}
|
|
31476
31473
|
}
|
|
31477
31474
|
),
|
|
31478
|
-
/* @__PURE__ */ (0,
|
|
31475
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31479
31476
|
] });
|
|
31480
31477
|
} })
|
|
31481
31478
|
] });
|
|
@@ -31489,11 +31486,11 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31489
31486
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__NGIzM", "status": "StatusLight_status__NjQ5O", "bg": "StatusLight_bg__MDIxM", "success": "StatusLight_success__NGRjZ", "warning": "StatusLight_warning__MTFhZ", "error": "StatusLight_error__NzBjO", "active": "StatusLight_active__YTJhM", "inactive": "StatusLight_inactive__ZDZmN" };
|
|
31490
31487
|
|
|
31491
31488
|
// src/components/StatusLight.tsx
|
|
31492
|
-
var
|
|
31489
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31493
31490
|
function StatusLight(props) {
|
|
31494
31491
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31495
|
-
return /* @__PURE__ */ (0,
|
|
31496
|
-
/* @__PURE__ */ (0,
|
|
31492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { ...domProps, className: (0, import_classnames45.default)(StatusLight_default.statuslight, className), children: [
|
|
31493
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31497
31494
|
"div",
|
|
31498
31495
|
{
|
|
31499
31496
|
className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31512,13 +31509,13 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31512
31509
|
var Switch_default = { "switch": "Switch_switch__YzA5O", "track": "Switch_track__MTM0M", "knob": "Switch_knob__OWM5N" };
|
|
31513
31510
|
|
|
31514
31511
|
// src/components/Switch.tsx
|
|
31515
|
-
var
|
|
31512
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31516
31513
|
var Switch = (0, import_react187.forwardRef)(
|
|
31517
31514
|
({ label, children, className, ...props }, ref) => {
|
|
31518
31515
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31519
|
-
return /* @__PURE__ */ (0,
|
|
31520
|
-
label && /* @__PURE__ */ (0,
|
|
31521
|
-
/* @__PURE__ */ (0,
|
|
31516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
31517
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label, { children: label }),
|
|
31518
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
31522
31519
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31523
31520
|
{
|
|
31524
31521
|
...props,
|
|
@@ -31526,7 +31523,7 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31526
31523
|
ref,
|
|
31527
31524
|
className: (0, import_classnames46.default)(Switch_default.switch, className),
|
|
31528
31525
|
children: [
|
|
31529
|
-
/* @__PURE__ */ (0,
|
|
31526
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: Switch_default.knob }) }),
|
|
31530
31527
|
children
|
|
31531
31528
|
]
|
|
31532
31529
|
}
|
|
@@ -31539,18 +31536,18 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31539
31536
|
var Tabs_default = { "tabs": "Tabs_tabs__ZmM4Z", "list": "Tabs_list__MGM4O", "quiet": "Tabs_quiet__YmI3N", "tab": "Tabs_tab__NWEyN" };
|
|
31540
31537
|
|
|
31541
31538
|
// src/components/Tabs.tsx
|
|
31542
|
-
var
|
|
31539
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31543
31540
|
function Tabs({ children, ...props }) {
|
|
31544
|
-
return /* @__PURE__ */ (0,
|
|
31541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31545
31542
|
}
|
|
31546
31543
|
function TabList({ children, ...props }) {
|
|
31547
|
-
return /* @__PURE__ */ (0,
|
|
31544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31548
31545
|
}
|
|
31549
31546
|
function Tab({ children, ...props }) {
|
|
31550
|
-
return /* @__PURE__ */ (0,
|
|
31547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31551
31548
|
}
|
|
31552
31549
|
function TabPanel({ children, ...props }) {
|
|
31553
|
-
return /* @__PURE__ */ (0,
|
|
31550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31554
31551
|
}
|
|
31555
31552
|
|
|
31556
31553
|
// src/components/TextArea.tsx
|
|
@@ -31561,17 +31558,17 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
31561
31558
|
var TextArea_default = { "textarea": "TextArea_textarea__YzRiM", "resize-none": "TextArea_resize-none__ZTljZ", "resize-horizontal": "TextArea_resize-horizontal__NzgyN", "resize-vertical": "TextArea_resize-vertical__MTIxZ" };
|
|
31562
31559
|
|
|
31563
31560
|
// src/components/TextArea.tsx
|
|
31564
|
-
var
|
|
31561
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31565
31562
|
var TextArea = (0, import_react188.forwardRef)(
|
|
31566
31563
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31567
|
-
return /* @__PURE__ */ (0,
|
|
31564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31568
31565
|
TextField,
|
|
31569
31566
|
{
|
|
31570
31567
|
...props,
|
|
31571
31568
|
ref,
|
|
31572
31569
|
className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31573
31570
|
asChild: true,
|
|
31574
|
-
children: /* @__PURE__ */ (0,
|
|
31571
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31575
31572
|
}
|
|
31576
31573
|
);
|
|
31577
31574
|
}
|
|
@@ -31584,7 +31581,7 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
31584
31581
|
var ThemeButton_default = { "button": "ThemeButton_button__OWVmZ" };
|
|
31585
31582
|
|
|
31586
31583
|
// src/components/ThemeButton.tsx
|
|
31587
|
-
var
|
|
31584
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31588
31585
|
function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
31589
31586
|
const { theme, setTheme: setTheme2 } = useTheme();
|
|
31590
31587
|
const transitions = useTransition(theme, {
|
|
@@ -31602,7 +31599,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31602
31599
|
function handleClick() {
|
|
31603
31600
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31604
31601
|
}
|
|
31605
|
-
return /* @__PURE__ */ (0,
|
|
31602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
31606
31603
|
Button,
|
|
31607
31604
|
{
|
|
31608
31605
|
...props,
|
|
@@ -31612,7 +31609,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31612
31609
|
children: [
|
|
31613
31610
|
transitions((style, item) => (
|
|
31614
31611
|
// @ts-ignore
|
|
31615
|
-
/* @__PURE__ */ (0,
|
|
31612
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { size: "sm", children: item === "light" ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icons.Sun, {}) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icons.Moon, {}) }) }, item)
|
|
31616
31613
|
)),
|
|
31617
31614
|
"\xA0"
|
|
31618
31615
|
]
|
|
@@ -31628,13 +31625,13 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31628
31625
|
var Toggle_default = { "toggle": "Toggle_toggle__NGNlM" };
|
|
31629
31626
|
|
|
31630
31627
|
// src/components/Toggle.tsx
|
|
31631
|
-
var
|
|
31628
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31632
31629
|
var Toggle = (0, import_react189.forwardRef)(
|
|
31633
31630
|
({ label, children, className, ...props }, ref) => {
|
|
31634
31631
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31635
|
-
return /* @__PURE__ */ (0,
|
|
31636
|
-
label && /* @__PURE__ */ (0,
|
|
31637
|
-
/* @__PURE__ */ (0,
|
|
31632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
31633
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Label, { children: label }),
|
|
31634
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
31638
31635
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31639
31636
|
{
|
|
31640
31637
|
...props,
|
|
@@ -31655,15 +31652,15 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
31655
31652
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDAzY", "list": "ToggleGroup_list__ZDEwO", "item": "ToggleGroup_item__N2ZmN" };
|
|
31656
31653
|
|
|
31657
31654
|
// src/components/ToggleGroup.tsx
|
|
31658
|
-
var
|
|
31655
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31659
31656
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
31660
|
-
return /* @__PURE__ */ (0,
|
|
31661
|
-
label && /* @__PURE__ */ (0,
|
|
31662
|
-
/* @__PURE__ */ (0,
|
|
31657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
31658
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label, { children: label }),
|
|
31659
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31663
31660
|
] });
|
|
31664
31661
|
}
|
|
31665
31662
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31666
|
-
return /* @__PURE__ */ (0,
|
|
31663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
|
|
31667
31664
|
}
|
|
31668
31665
|
|
|
31669
31666
|
// src/components/Tooltip.tsx
|
|
@@ -31673,19 +31670,19 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31673
31670
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__Y2Y2N", "arrow": "Tooltip_arrow__NzgwN", "slide": "Tooltip_slide__ODJjZ" };
|
|
31674
31671
|
|
|
31675
31672
|
// src/components/Tooltip.tsx
|
|
31676
|
-
var
|
|
31673
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31677
31674
|
function Tooltip({ children, className, ...props }) {
|
|
31678
|
-
return /* @__PURE__ */ (0,
|
|
31679
|
-
/* @__PURE__ */ (0,
|
|
31675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames51.default)(Tooltip_default.tooltip, className), children: [
|
|
31676
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
31680
31677
|
children
|
|
31681
31678
|
] });
|
|
31682
31679
|
}
|
|
31683
31680
|
|
|
31684
31681
|
// src/components/ZenProvider.tsx
|
|
31685
|
-
var
|
|
31682
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31686
31683
|
function ZenProvider({ children, ...props }) {
|
|
31687
31684
|
const { toast } = props;
|
|
31688
|
-
return /* @__PURE__ */ (0,
|
|
31685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastProvider, { ...toast, children });
|
|
31689
31686
|
}
|
|
31690
31687
|
/*! Bundled license information:
|
|
31691
31688
|
|