@umami/react-zen 0.36.0 → 0.38.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 +16 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +110 -89
- package/dist/index.mjs +110 -89
- package/package.json +2 -2
- package/styles.css +16 -0
package/dist/index.css
CHANGED
|
@@ -3263,6 +3263,22 @@ body a.Button_button__N2NhN {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
}
|
|
3265
3265
|
|
|
3266
|
+
/* virtual-css:css:3bfbb09f24953e4c776b7494b4f2e619 */
|
|
3267
|
+
.MobileMenuButton_modal__N2FhM,
|
|
3268
|
+
.MobileMenuButton_dialog__OTM5N {
|
|
3269
|
+
width: 100vw !important;
|
|
3270
|
+
height: 100vh !important;
|
|
3271
|
+
overflow: hidden;
|
|
3272
|
+
}
|
|
3273
|
+
.MobileMenuButton_dialog__OTM5N {
|
|
3274
|
+
border: 0;
|
|
3275
|
+
border-radius: 0;
|
|
3276
|
+
box-shadow: none;
|
|
3277
|
+
}
|
|
3278
|
+
.MobileMenuButton_content__ZTg2O {
|
|
3279
|
+
overflow: auto;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3266
3282
|
/* virtual-css:css:f06faaaaad4324b9459c87ab9d58d827 */
|
|
3267
3283
|
.NavigationMenu_nav__MzRiY {
|
|
3268
3284
|
display: flex;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ declare module '@umami/react-zen' {
|
|
|
48
48
|
import { LoadingButton } from '@umami/react-zen/LoadingButton';
|
|
49
49
|
import { Menu } from '@umami/react-zen/Menu';
|
|
50
50
|
import { MenuItem } from '@umami/react-zen/MenuItem';
|
|
51
|
+
import { MobileMenuButton } from '@umami/react-zen/MobileMenuButton';
|
|
51
52
|
import { Modal } from '@umami/react-zen/Modal';
|
|
52
53
|
import { NavigationMenu, NavigationMenuItem } from '@umami/react-zen/NavigationMenu';
|
|
53
54
|
import { PasswordField } from '@umami/react-zen/PasswordField';
|
|
@@ -73,7 +74,7 @@ declare module '@umami/react-zen' {
|
|
|
73
74
|
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
74
75
|
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
75
76
|
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
76
|
-
export { Form, FormField, FormResetButton, FormSubmitButton, Toast, Toaster, ToastProvider, useDebounce, useTheme, useToast, Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, Combobox, Container, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Grid, Heading, HoverTrigger, Icon, Icons, InlineEditField, Label, List, ListItem, ListSection, Loading, LoadingButton, Menu, MenuItem, MenuTrigger, Modal, NavigationMenu, NavigationMenuItem, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, ListSeparator, Slider, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextField, TextArea, ThemeButton, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
77
|
+
export { Form, FormField, FormResetButton, FormSubmitButton, Toast, Toaster, ToastProvider, useDebounce, useTheme, useToast, Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, Combobox, Container, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Grid, Heading, HoverTrigger, Icon, Icons, InlineEditField, Label, List, ListItem, ListSection, Loading, LoadingButton, Menu, MenuItem, MenuTrigger, MobileMenuButton, Modal, NavigationMenu, NavigationMenuItem, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, ListSeparator, Slider, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextField, TextArea, ThemeButton, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
declare module '@umami/react-zen/forms/Form' {
|
|
@@ -624,6 +625,14 @@ declare module '@umami/react-zen/MenuItem' {
|
|
|
624
625
|
export default MenuItem;
|
|
625
626
|
}
|
|
626
627
|
|
|
628
|
+
declare module '@umami/react-zen/MobileMenuButton' {
|
|
629
|
+
import { ButtonProps } from '@umami/react-zen/Button';
|
|
630
|
+
export interface MobileMenuButtonProps extends ButtonProps {
|
|
631
|
+
title?: string;
|
|
632
|
+
}
|
|
633
|
+
export function MobileMenuButton({ title, children, ...props }: MobileMenuButtonProps): import("react").JSX.Element;
|
|
634
|
+
}
|
|
635
|
+
|
|
627
636
|
declare module '@umami/react-zen/Modal' {
|
|
628
637
|
import { ReactNode } from 'react';
|
|
629
638
|
import { ModalRenderProps } from 'react-aria-components';
|
package/dist/index.js
CHANGED
|
@@ -319,6 +319,7 @@ __export(index_exports, {
|
|
|
319
319
|
Menu: () => Menu,
|
|
320
320
|
MenuItem: () => MenuItem2,
|
|
321
321
|
MenuTrigger: () => $3674c52c6b3c5bce$export$27d2ad3c5815583e,
|
|
322
|
+
MobileMenuButton: () => MobileMenuButton,
|
|
322
323
|
Modal: () => Modal,
|
|
323
324
|
NavigationMenu: () => NavigationMenu,
|
|
324
325
|
NavigationMenuItem: () => NavigationMenuItem,
|
|
@@ -30416,10 +30417,10 @@ var Dialog_default = { "dialog": "Dialog_dialog__YjBmO", "title": "Dialog_title_
|
|
|
30416
30417
|
// src/components/Dialog.tsx
|
|
30417
30418
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
30418
30419
|
function Dialog({ title, children, className, ...props }) {
|
|
30419
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames13.default)(Dialog_default.dialog, className), children: (
|
|
30420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames13.default)(Dialog_default.dialog, className), children: (dialogProps) => {
|
|
30420
30421
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
30421
30422
|
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30422
|
-
typeof children === "function" ? children(
|
|
30423
|
+
typeof children === "function" ? children(dialogProps) : children
|
|
30423
30424
|
] });
|
|
30424
30425
|
} });
|
|
30425
30426
|
}
|
|
@@ -31189,6 +31190,26 @@ function Modal({ children, className, ...props }) {
|
|
|
31189
31190
|
) });
|
|
31190
31191
|
}
|
|
31191
31192
|
|
|
31193
|
+
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/MobileMenuButton.module.css
|
|
31194
|
+
var MobileMenuButton_default = { "modal": "MobileMenuButton_modal__N2FhM", "dialog": "MobileMenuButton_dialog__OTM5N", "content": "MobileMenuButton_content__ZTg2O" };
|
|
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
|
+
] });
|
|
31211
|
+
}
|
|
31212
|
+
|
|
31192
31213
|
// src/components/NavigationMenu.tsx
|
|
31193
31214
|
var import_classnames37 = __toESM(require_classnames());
|
|
31194
31215
|
|
|
@@ -31204,14 +31225,14 @@ var useNavigationMenu = store3;
|
|
|
31204
31225
|
var NavigationMenu_default = { "nav": "NavigationMenu_nav__MzRiY", "item": "NavigationMenu_item__YTI0N", "icon": "NavigationMenu_icon__ZDczY" };
|
|
31205
31226
|
|
|
31206
31227
|
// src/components/NavigationMenu.tsx
|
|
31207
|
-
var
|
|
31228
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
31208
31229
|
function NavigationMenu({
|
|
31209
31230
|
showArrow = true,
|
|
31210
31231
|
className,
|
|
31211
31232
|
children,
|
|
31212
31233
|
...props
|
|
31213
31234
|
}) {
|
|
31214
|
-
return /* @__PURE__ */ (0,
|
|
31235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.nav, className), children });
|
|
31215
31236
|
}
|
|
31216
31237
|
function NavigationMenuItem({
|
|
31217
31238
|
label,
|
|
@@ -31221,15 +31242,15 @@ function NavigationMenuItem({
|
|
|
31221
31242
|
}) {
|
|
31222
31243
|
const { activeMenu } = useNavigationMenu();
|
|
31223
31244
|
if (label) {
|
|
31224
|
-
return /* @__PURE__ */ (0,
|
|
31225
|
-
/* @__PURE__ */ (0,
|
|
31226
|
-
/* @__PURE__ */ (0,
|
|
31227
|
-
/* @__PURE__ */ (0,
|
|
31245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31246
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children: [
|
|
31247
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { children: label }),
|
|
31248
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { rotate: 90, size: "xs", className: NavigationMenu_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.Chevron, {}) })
|
|
31228
31249
|
] }),
|
|
31229
31250
|
children
|
|
31230
31251
|
] });
|
|
31231
31252
|
}
|
|
31232
|
-
return /* @__PURE__ */ (0,
|
|
31253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children });
|
|
31233
31254
|
}
|
|
31234
31255
|
|
|
31235
31256
|
// src/components/PasswordField.tsx
|
|
@@ -31240,17 +31261,17 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
31240
31261
|
var PasswordField_default = { "icon": "PasswordField_icon__NDMyZ" };
|
|
31241
31262
|
|
|
31242
31263
|
// src/components/PasswordField.tsx
|
|
31243
|
-
var
|
|
31264
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
31244
31265
|
var PasswordField = (0, import_react182.forwardRef)(
|
|
31245
31266
|
({ label, className, ...props }, ref) => {
|
|
31246
31267
|
const [show, setShow] = (0, import_react182.useState)(false);
|
|
31247
31268
|
const type = show ? "text" : "password";
|
|
31248
31269
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31249
|
-
return /* @__PURE__ */ (0,
|
|
31250
|
-
label && /* @__PURE__ */ (0,
|
|
31251
|
-
/* @__PURE__ */ (0,
|
|
31252
|
-
/* @__PURE__ */ (0,
|
|
31253
|
-
/* @__PURE__ */ (0,
|
|
31270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames38.default)(input_default.field, className), children: [
|
|
31271
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Label, { children: label }),
|
|
31272
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: input_default.row, children: [
|
|
31273
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
31274
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icons.Eye, {}) })
|
|
31254
31275
|
] })
|
|
31255
31276
|
] });
|
|
31256
31277
|
}
|
|
@@ -31263,12 +31284,12 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31263
31284
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__MTQwN", "track": "ProgressBar_track__YTM0O", "fill": "ProgressBar_fill__ZTkyN", "value": "ProgressBar_value__YTU3N" };
|
|
31264
31285
|
|
|
31265
31286
|
// src/components/ProgressBar.tsx
|
|
31266
|
-
var
|
|
31287
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
31267
31288
|
function ProgressBar({ className, showValue, ...props }) {
|
|
31268
|
-
return /* @__PURE__ */ (0,
|
|
31269
|
-
return /* @__PURE__ */ (0,
|
|
31270
|
-
/* @__PURE__ */ (0,
|
|
31271
|
-
showValue && /* @__PURE__ */ (0,
|
|
31289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames39.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
31291
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31292
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
31272
31293
|
] });
|
|
31273
31294
|
} });
|
|
31274
31295
|
}
|
|
@@ -31280,16 +31301,16 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31280
31301
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NTQ3N", "track": "ProgressCircle_track__Mjk3Y", "fill": "ProgressCircle_fill__OWJlY", "value": "ProgressCircle_value__NzQ5Y" };
|
|
31281
31302
|
|
|
31282
31303
|
// src/components/ProgressCircle.tsx
|
|
31283
|
-
var
|
|
31304
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31284
31305
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31285
|
-
return /* @__PURE__ */ (0,
|
|
31306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31286
31307
|
const radius = 45;
|
|
31287
31308
|
const circumference = radius * 2 * Math.PI;
|
|
31288
31309
|
const offset = circumference - percentage / 100 * circumference;
|
|
31289
|
-
return /* @__PURE__ */ (0,
|
|
31290
|
-
/* @__PURE__ */ (0,
|
|
31291
|
-
/* @__PURE__ */ (0,
|
|
31292
|
-
/* @__PURE__ */ (0,
|
|
31310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
31311
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31312
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31313
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
31293
31314
|
"circle",
|
|
31294
31315
|
{
|
|
31295
31316
|
className: ProgressCircle_default.fill,
|
|
@@ -31301,7 +31322,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31301
31322
|
}
|
|
31302
31323
|
)
|
|
31303
31324
|
] }),
|
|
31304
|
-
showValue && /* @__PURE__ */ (0,
|
|
31325
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31305
31326
|
] });
|
|
31306
31327
|
} });
|
|
31307
31328
|
}
|
|
@@ -31314,17 +31335,17 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31314
31335
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__M2FmO", "radio": "RadioGroup_radio__NjdlY" };
|
|
31315
31336
|
|
|
31316
31337
|
// src/components/RadioGroup.tsx
|
|
31317
|
-
var
|
|
31338
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31318
31339
|
var RadioGroup = (0, import_react183.forwardRef)(
|
|
31319
31340
|
({ label, children, className, ...props }, ref) => {
|
|
31320
|
-
return /* @__PURE__ */ (0,
|
|
31321
|
-
label && /* @__PURE__ */ (0,
|
|
31341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames41.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31342
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { children: label }),
|
|
31322
31343
|
children
|
|
31323
31344
|
] });
|
|
31324
31345
|
}
|
|
31325
31346
|
);
|
|
31326
31347
|
function Radio({ children, className, ...props }) {
|
|
31327
|
-
return /* @__PURE__ */ (0,
|
|
31348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames41.default)(RadioGroup_default.radio, className), children });
|
|
31328
31349
|
}
|
|
31329
31350
|
|
|
31330
31351
|
// src/components/SearchField.tsx
|
|
@@ -31335,7 +31356,7 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31335
31356
|
var SearchField_default = { "search": "SearchField_search__MmNlZ", "input": "SearchField_input__NTAwN", "close": "SearchField_close__NzZiM" };
|
|
31336
31357
|
|
|
31337
31358
|
// src/components/SearchField.tsx
|
|
31338
|
-
var
|
|
31359
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31339
31360
|
var SearchField = (0, import_react184.forwardRef)(
|
|
31340
31361
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31341
31362
|
const [search, setSearch] = (0, import_react184.useState)(value ?? "");
|
|
@@ -31356,24 +31377,24 @@ var SearchField = (0, import_react184.forwardRef)(
|
|
|
31356
31377
|
onSearch?.(searchValue);
|
|
31357
31378
|
}
|
|
31358
31379
|
}, [searchValue, delay, onSearch]);
|
|
31359
|
-
return /* @__PURE__ */ (0,
|
|
31360
|
-
return /* @__PURE__ */ (0,
|
|
31361
|
-
label && /* @__PURE__ */ (0,
|
|
31362
|
-
/* @__PURE__ */ (0,
|
|
31363
|
-
/* @__PURE__ */ (0,
|
|
31364
|
-
/* @__PURE__ */ (0,
|
|
31380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames42.default)(input_default.field, className), children: ({ state }) => {
|
|
31381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
31382
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { children: label }),
|
|
31383
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: input_default.row, children: [
|
|
31384
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.MagnifyingGlass, { className: (0, import_classnames42.default)(SearchField_default.search, input_default.icon) }),
|
|
31385
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31365
31386
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31366
31387
|
{
|
|
31367
31388
|
className: (0, import_classnames42.default)(SearchField_default.input, input_default.input),
|
|
31368
31389
|
onChange: handleChange
|
|
31369
31390
|
}
|
|
31370
31391
|
),
|
|
31371
|
-
state.value && /* @__PURE__ */ (0,
|
|
31392
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31372
31393
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31373
31394
|
{
|
|
31374
31395
|
className: (0, import_classnames42.default)(SearchField_default.close, input_default.icon),
|
|
31375
31396
|
onPress: resetSearch,
|
|
31376
|
-
children: /* @__PURE__ */ (0,
|
|
31397
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Close, {}) })
|
|
31377
31398
|
}
|
|
31378
31399
|
)
|
|
31379
31400
|
] })
|
|
@@ -31390,7 +31411,7 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
31390
31411
|
var Select_default = { "button": "Select_button__YTM3Z", "list": "Select_list__MjJiN", "icon": "Select_icon__NzlhY" };
|
|
31391
31412
|
|
|
31392
31413
|
// src/components/Select.tsx
|
|
31393
|
-
var
|
|
31414
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31394
31415
|
var Select = (0, import_react185.forwardRef)(
|
|
31395
31416
|
({
|
|
31396
31417
|
children,
|
|
@@ -31406,7 +31427,7 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31406
31427
|
onSelectionChange?.(e);
|
|
31407
31428
|
onChange?.(e);
|
|
31408
31429
|
};
|
|
31409
|
-
return /* @__PURE__ */ (0,
|
|
31430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
31410
31431
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31411
31432
|
{
|
|
31412
31433
|
...props,
|
|
@@ -31414,12 +31435,12 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31414
31435
|
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31415
31436
|
onSelectionChange: handleChange,
|
|
31416
31437
|
children: [
|
|
31417
|
-
label && /* @__PURE__ */ (0,
|
|
31418
|
-
/* @__PURE__ */ (0,
|
|
31419
|
-
/* @__PURE__ */ (0,
|
|
31420
|
-
/* @__PURE__ */ (0,
|
|
31438
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label, { children: label }),
|
|
31439
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31440
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
31441
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icons.Chevron, {}) }) })
|
|
31421
31442
|
] }) }),
|
|
31422
|
-
/* @__PURE__ */ (0,
|
|
31443
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(List, { items, className: Select_default.list, children }) })
|
|
31423
31444
|
]
|
|
31424
31445
|
}
|
|
31425
31446
|
);
|
|
@@ -31434,18 +31455,18 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
31434
31455
|
var Slider_default = { "slider": "Slider_slider__ODQ1M", "header": "Slider_header__NmYzN", "track": "Slider_track__Y2M4O", "fill": "Slider_fill__MWM4N", "thumb": "Slider_thumb__NGU2Z" };
|
|
31435
31456
|
|
|
31436
31457
|
// src/components/Slider.tsx
|
|
31437
|
-
var
|
|
31458
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31438
31459
|
var Slider = (0, import_react186.forwardRef)(
|
|
31439
31460
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31440
|
-
return /* @__PURE__ */ (0,
|
|
31441
|
-
/* @__PURE__ */ (0,
|
|
31442
|
-
label && /* @__PURE__ */ (0,
|
|
31443
|
-
showValue && /* @__PURE__ */ (0,
|
|
31461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames44.default)(Slider_default.slider, className), children: [
|
|
31462
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: Slider_default.header, children: [
|
|
31463
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label, { className: Slider_default.label, children: label }),
|
|
31464
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31444
31465
|
] }),
|
|
31445
|
-
/* @__PURE__ */ (0,
|
|
31466
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31446
31467
|
const isHorizontal = state.orientation === "horizontal";
|
|
31447
|
-
return /* @__PURE__ */ (0,
|
|
31448
|
-
/* @__PURE__ */ (0,
|
|
31468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
31469
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31449
31470
|
"div",
|
|
31450
31471
|
{
|
|
31451
31472
|
className: Slider_default.fill,
|
|
@@ -31454,7 +31475,7 @@ var Slider = (0, import_react186.forwardRef)(
|
|
|
31454
31475
|
}
|
|
31455
31476
|
}
|
|
31456
31477
|
),
|
|
31457
|
-
/* @__PURE__ */ (0,
|
|
31478
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31458
31479
|
] });
|
|
31459
31480
|
} })
|
|
31460
31481
|
] });
|
|
@@ -31468,11 +31489,11 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31468
31489
|
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" };
|
|
31469
31490
|
|
|
31470
31491
|
// src/components/StatusLight.tsx
|
|
31471
|
-
var
|
|
31492
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31472
31493
|
function StatusLight(props) {
|
|
31473
31494
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31474
|
-
return /* @__PURE__ */ (0,
|
|
31475
|
-
/* @__PURE__ */ (0,
|
|
31495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { ...domProps, className: (0, import_classnames45.default)(StatusLight_default.statuslight, className), children: [
|
|
31496
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
31476
31497
|
"div",
|
|
31477
31498
|
{
|
|
31478
31499
|
className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31491,13 +31512,13 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31491
31512
|
var Switch_default = { "switch": "Switch_switch__YzA5O", "track": "Switch_track__MTM0M", "knob": "Switch_knob__OWM5N" };
|
|
31492
31513
|
|
|
31493
31514
|
// src/components/Switch.tsx
|
|
31494
|
-
var
|
|
31515
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31495
31516
|
var Switch = (0, import_react187.forwardRef)(
|
|
31496
31517
|
({ label, children, className, ...props }, ref) => {
|
|
31497
31518
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31498
|
-
return /* @__PURE__ */ (0,
|
|
31499
|
-
label && /* @__PURE__ */ (0,
|
|
31500
|
-
/* @__PURE__ */ (0,
|
|
31519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
31520
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label, { children: label }),
|
|
31521
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
31501
31522
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31502
31523
|
{
|
|
31503
31524
|
...props,
|
|
@@ -31505,7 +31526,7 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31505
31526
|
ref,
|
|
31506
31527
|
className: (0, import_classnames46.default)(Switch_default.switch, className),
|
|
31507
31528
|
children: [
|
|
31508
|
-
/* @__PURE__ */ (0,
|
|
31529
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: Switch_default.knob }) }),
|
|
31509
31530
|
children
|
|
31510
31531
|
]
|
|
31511
31532
|
}
|
|
@@ -31518,18 +31539,18 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31518
31539
|
var Tabs_default = { "tabs": "Tabs_tabs__ZmM4Z", "list": "Tabs_list__MGM4O", "quiet": "Tabs_quiet__YmI3N", "tab": "Tabs_tab__NWEyN" };
|
|
31519
31540
|
|
|
31520
31541
|
// src/components/Tabs.tsx
|
|
31521
|
-
var
|
|
31542
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31522
31543
|
function Tabs({ children, ...props }) {
|
|
31523
|
-
return /* @__PURE__ */ (0,
|
|
31544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31524
31545
|
}
|
|
31525
31546
|
function TabList({ children, ...props }) {
|
|
31526
|
-
return /* @__PURE__ */ (0,
|
|
31547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31527
31548
|
}
|
|
31528
31549
|
function Tab({ children, ...props }) {
|
|
31529
|
-
return /* @__PURE__ */ (0,
|
|
31550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31530
31551
|
}
|
|
31531
31552
|
function TabPanel({ children, ...props }) {
|
|
31532
|
-
return /* @__PURE__ */ (0,
|
|
31553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31533
31554
|
}
|
|
31534
31555
|
|
|
31535
31556
|
// src/components/TextArea.tsx
|
|
@@ -31540,17 +31561,17 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
31540
31561
|
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" };
|
|
31541
31562
|
|
|
31542
31563
|
// src/components/TextArea.tsx
|
|
31543
|
-
var
|
|
31564
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31544
31565
|
var TextArea = (0, import_react188.forwardRef)(
|
|
31545
31566
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31546
|
-
return /* @__PURE__ */ (0,
|
|
31567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31547
31568
|
TextField,
|
|
31548
31569
|
{
|
|
31549
31570
|
...props,
|
|
31550
31571
|
ref,
|
|
31551
31572
|
className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31552
31573
|
asChild: true,
|
|
31553
|
-
children: /* @__PURE__ */ (0,
|
|
31574
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31554
31575
|
}
|
|
31555
31576
|
);
|
|
31556
31577
|
}
|
|
@@ -31563,7 +31584,7 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
31563
31584
|
var ThemeButton_default = { "button": "ThemeButton_button__OWVmZ" };
|
|
31564
31585
|
|
|
31565
31586
|
// src/components/ThemeButton.tsx
|
|
31566
|
-
var
|
|
31587
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31567
31588
|
function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
31568
31589
|
const { theme, setTheme: setTheme2 } = useTheme();
|
|
31569
31590
|
const transitions = useTransition(theme, {
|
|
@@ -31581,7 +31602,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31581
31602
|
function handleClick() {
|
|
31582
31603
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31583
31604
|
}
|
|
31584
|
-
return /* @__PURE__ */ (0,
|
|
31605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
31585
31606
|
Button,
|
|
31586
31607
|
{
|
|
31587
31608
|
...props,
|
|
@@ -31591,7 +31612,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31591
31612
|
children: [
|
|
31592
31613
|
transitions((style, item) => (
|
|
31593
31614
|
// @ts-ignore
|
|
31594
|
-
/* @__PURE__ */ (0,
|
|
31615
|
+
/* @__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)
|
|
31595
31616
|
)),
|
|
31596
31617
|
"\xA0"
|
|
31597
31618
|
]
|
|
@@ -31607,13 +31628,13 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31607
31628
|
var Toggle_default = { "toggle": "Toggle_toggle__NGNlM" };
|
|
31608
31629
|
|
|
31609
31630
|
// src/components/Toggle.tsx
|
|
31610
|
-
var
|
|
31631
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31611
31632
|
var Toggle = (0, import_react189.forwardRef)(
|
|
31612
31633
|
({ label, children, className, ...props }, ref) => {
|
|
31613
31634
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31614
|
-
return /* @__PURE__ */ (0,
|
|
31615
|
-
label && /* @__PURE__ */ (0,
|
|
31616
|
-
/* @__PURE__ */ (0,
|
|
31635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
31636
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label, { children: label }),
|
|
31637
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
31617
31638
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31618
31639
|
{
|
|
31619
31640
|
...props,
|
|
@@ -31634,15 +31655,15 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
31634
31655
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDAzY", "list": "ToggleGroup_list__ZDEwO", "item": "ToggleGroup_item__N2ZmN" };
|
|
31635
31656
|
|
|
31636
31657
|
// src/components/ToggleGroup.tsx
|
|
31637
|
-
var
|
|
31658
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31638
31659
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
31639
|
-
return /* @__PURE__ */ (0,
|
|
31640
|
-
label && /* @__PURE__ */ (0,
|
|
31641
|
-
/* @__PURE__ */ (0,
|
|
31660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
31661
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Label, { children: label }),
|
|
31662
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31642
31663
|
] });
|
|
31643
31664
|
}
|
|
31644
31665
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31645
|
-
return /* @__PURE__ */ (0,
|
|
31666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
|
|
31646
31667
|
}
|
|
31647
31668
|
|
|
31648
31669
|
// src/components/Tooltip.tsx
|
|
@@ -31652,19 +31673,19 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31652
31673
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__Y2Y2N", "arrow": "Tooltip_arrow__NzgwN", "slide": "Tooltip_slide__ODJjZ" };
|
|
31653
31674
|
|
|
31654
31675
|
// src/components/Tooltip.tsx
|
|
31655
|
-
var
|
|
31676
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31656
31677
|
function Tooltip({ children, className, ...props }) {
|
|
31657
|
-
return /* @__PURE__ */ (0,
|
|
31658
|
-
/* @__PURE__ */ (0,
|
|
31678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames51.default)(Tooltip_default.tooltip, className), children: [
|
|
31679
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
31659
31680
|
children
|
|
31660
31681
|
] });
|
|
31661
31682
|
}
|
|
31662
31683
|
|
|
31663
31684
|
// src/components/ZenProvider.tsx
|
|
31664
|
-
var
|
|
31685
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
31665
31686
|
function ZenProvider({ children, ...props }) {
|
|
31666
31687
|
const { toast } = props;
|
|
31667
|
-
return /* @__PURE__ */ (0,
|
|
31688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToastProvider, { ...toast, children });
|
|
31668
31689
|
}
|
|
31669
31690
|
/*! Bundled license information:
|
|
31670
31691
|
|
package/dist/index.mjs
CHANGED
|
@@ -30317,10 +30317,10 @@ var Dialog_default = { "dialog": "Dialog_dialog__YjBmO", "title": "Dialog_title_
|
|
|
30317
30317
|
// src/components/Dialog.tsx
|
|
30318
30318
|
import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
30319
30319
|
function Dialog({ title, children, className, ...props }) {
|
|
30320
|
-
return /* @__PURE__ */ jsx20($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames13.default)(Dialog_default.dialog, className), children: (
|
|
30320
|
+
return /* @__PURE__ */ jsx20($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames13.default)(Dialog_default.dialog, className), children: (dialogProps) => {
|
|
30321
30321
|
return /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
30322
30322
|
title && /* @__PURE__ */ jsx20("div", { className: Dialog_default.title, children: title }),
|
|
30323
|
-
typeof children === "function" ? children(
|
|
30323
|
+
typeof children === "function" ? children(dialogProps) : children
|
|
30324
30324
|
] });
|
|
30325
30325
|
} });
|
|
30326
30326
|
}
|
|
@@ -31090,6 +31090,26 @@ function Modal({ children, className, ...props }) {
|
|
|
31090
31090
|
) });
|
|
31091
31091
|
}
|
|
31092
31092
|
|
|
31093
|
+
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/MobileMenuButton.module.css
|
|
31094
|
+
var MobileMenuButton_default = { "modal": "MobileMenuButton_modal__N2FhM", "dialog": "MobileMenuButton_dialog__OTM5N", "content": "MobileMenuButton_content__ZTg2O" };
|
|
31095
|
+
|
|
31096
|
+
// src/components/MobileMenuButton.tsx
|
|
31097
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
31098
|
+
function MobileMenuButton({ title, children, ...props }) {
|
|
31099
|
+
return /* @__PURE__ */ jsxs26($de32f1b87079253c$export$2e1e1122cf0cba88, { children: [
|
|
31100
|
+
/* @__PURE__ */ jsx48(Button, { variant: "quiet", children: /* @__PURE__ */ jsx48(Icon, { children: /* @__PURE__ */ jsx48(Icons.Menu, {}) }) }),
|
|
31101
|
+
/* @__PURE__ */ jsx48(Modal, { className: MobileMenuButton_default.modal, children: /* @__PURE__ */ jsx48(Dialog, { className: MobileMenuButton_default.dialog, children: ({ close }) => {
|
|
31102
|
+
return /* @__PURE__ */ jsxs26(Grid, { rows: "auto 1fr", height: "100%", width: "100%", children: [
|
|
31103
|
+
/* @__PURE__ */ jsxs26(Row, { justifyContent: "space-between", alignItems: "center", children: [
|
|
31104
|
+
/* @__PURE__ */ jsx48(Text, { size: "3", weight: "bold", children: title }),
|
|
31105
|
+
/* @__PURE__ */ jsx48(Button, { onPress: () => close(), variant: "quiet", children: /* @__PURE__ */ jsx48(Icon, { children: /* @__PURE__ */ jsx48(Icons.Close, {}) }) })
|
|
31106
|
+
] }),
|
|
31107
|
+
/* @__PURE__ */ jsx48(Box, { className: MobileMenuButton_default.content, children })
|
|
31108
|
+
] });
|
|
31109
|
+
} }) })
|
|
31110
|
+
] });
|
|
31111
|
+
}
|
|
31112
|
+
|
|
31093
31113
|
// src/components/NavigationMenu.tsx
|
|
31094
31114
|
var import_classnames37 = __toESM(require_classnames());
|
|
31095
31115
|
|
|
@@ -31105,14 +31125,14 @@ var useNavigationMenu = store3;
|
|
|
31105
31125
|
var NavigationMenu_default = { "nav": "NavigationMenu_nav__MzRiY", "item": "NavigationMenu_item__YTI0N", "icon": "NavigationMenu_icon__ZDczY" };
|
|
31106
31126
|
|
|
31107
31127
|
// src/components/NavigationMenu.tsx
|
|
31108
|
-
import { jsx as
|
|
31128
|
+
import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
31109
31129
|
function NavigationMenu({
|
|
31110
31130
|
showArrow = true,
|
|
31111
31131
|
className,
|
|
31112
31132
|
children,
|
|
31113
31133
|
...props
|
|
31114
31134
|
}) {
|
|
31115
|
-
return /* @__PURE__ */
|
|
31135
|
+
return /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.nav, className), children });
|
|
31116
31136
|
}
|
|
31117
31137
|
function NavigationMenuItem({
|
|
31118
31138
|
label,
|
|
@@ -31122,15 +31142,15 @@ function NavigationMenuItem({
|
|
|
31122
31142
|
}) {
|
|
31123
31143
|
const { activeMenu } = useNavigationMenu();
|
|
31124
31144
|
if (label) {
|
|
31125
|
-
return /* @__PURE__ */
|
|
31126
|
-
/* @__PURE__ */
|
|
31127
|
-
/* @__PURE__ */
|
|
31128
|
-
/* @__PURE__ */
|
|
31145
|
+
return /* @__PURE__ */ jsxs27(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31146
|
+
/* @__PURE__ */ jsxs27("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children: [
|
|
31147
|
+
/* @__PURE__ */ jsx49(Text, { children: label }),
|
|
31148
|
+
/* @__PURE__ */ jsx49(Icon, { rotate: 90, size: "xs", className: NavigationMenu_default.icon, children: /* @__PURE__ */ jsx49(Icons.Chevron, {}) })
|
|
31129
31149
|
] }),
|
|
31130
31150
|
children
|
|
31131
31151
|
] });
|
|
31132
31152
|
}
|
|
31133
|
-
return /* @__PURE__ */
|
|
31153
|
+
return /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children });
|
|
31134
31154
|
}
|
|
31135
31155
|
|
|
31136
31156
|
// src/components/PasswordField.tsx
|
|
@@ -31141,17 +31161,17 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
31141
31161
|
var PasswordField_default = { "icon": "PasswordField_icon__NDMyZ" };
|
|
31142
31162
|
|
|
31143
31163
|
// src/components/PasswordField.tsx
|
|
31144
|
-
import { jsx as
|
|
31164
|
+
import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
31145
31165
|
var PasswordField = forwardRef6(
|
|
31146
31166
|
({ label, className, ...props }, ref) => {
|
|
31147
31167
|
const [show, setShow] = useState13(false);
|
|
31148
31168
|
const type = show ? "text" : "password";
|
|
31149
31169
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31150
|
-
return /* @__PURE__ */
|
|
31151
|
-
label && /* @__PURE__ */
|
|
31152
|
-
/* @__PURE__ */
|
|
31153
|
-
/* @__PURE__ */
|
|
31154
|
-
/* @__PURE__ */
|
|
31170
|
+
return /* @__PURE__ */ jsxs28($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames38.default)(input_default.field, className), children: [
|
|
31171
|
+
label && /* @__PURE__ */ jsx50(Label, { children: label }),
|
|
31172
|
+
/* @__PURE__ */ jsxs28("div", { className: input_default.row, children: [
|
|
31173
|
+
/* @__PURE__ */ jsx50($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
31174
|
+
/* @__PURE__ */ jsx50(Icon, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ jsx50(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx50(Icons.Eye, {}) })
|
|
31155
31175
|
] })
|
|
31156
31176
|
] });
|
|
31157
31177
|
}
|
|
@@ -31164,12 +31184,12 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31164
31184
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__MTQwN", "track": "ProgressBar_track__YTM0O", "fill": "ProgressBar_fill__ZTkyN", "value": "ProgressBar_value__YTU3N" };
|
|
31165
31185
|
|
|
31166
31186
|
// src/components/ProgressBar.tsx
|
|
31167
|
-
import { Fragment as Fragment6, jsx as
|
|
31187
|
+
import { Fragment as Fragment6, jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
31168
31188
|
function ProgressBar({ className, showValue, ...props }) {
|
|
31169
|
-
return /* @__PURE__ */
|
|
31170
|
-
return /* @__PURE__ */
|
|
31171
|
-
/* @__PURE__ */
|
|
31172
|
-
showValue && /* @__PURE__ */
|
|
31189
|
+
return /* @__PURE__ */ jsx51($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames39.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31190
|
+
return /* @__PURE__ */ jsxs29(Fragment6, { children: [
|
|
31191
|
+
/* @__PURE__ */ jsx51("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx51("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31192
|
+
showValue && /* @__PURE__ */ jsx51("div", { className: ProgressBar_default.value, children: valueText })
|
|
31173
31193
|
] });
|
|
31174
31194
|
} });
|
|
31175
31195
|
}
|
|
@@ -31181,16 +31201,16 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31181
31201
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NTQ3N", "track": "ProgressCircle_track__Mjk3Y", "fill": "ProgressCircle_fill__OWJlY", "value": "ProgressCircle_value__NzQ5Y" };
|
|
31182
31202
|
|
|
31183
31203
|
// src/components/ProgressCircle.tsx
|
|
31184
|
-
import { Fragment as Fragment7, jsx as
|
|
31204
|
+
import { Fragment as Fragment7, jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
31185
31205
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31186
|
-
return /* @__PURE__ */
|
|
31206
|
+
return /* @__PURE__ */ jsx52($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31187
31207
|
const radius = 45;
|
|
31188
31208
|
const circumference = radius * 2 * Math.PI;
|
|
31189
31209
|
const offset = circumference - percentage / 100 * circumference;
|
|
31190
|
-
return /* @__PURE__ */
|
|
31191
|
-
/* @__PURE__ */
|
|
31192
|
-
/* @__PURE__ */
|
|
31193
|
-
/* @__PURE__ */
|
|
31210
|
+
return /* @__PURE__ */ jsxs30(Fragment7, { children: [
|
|
31211
|
+
/* @__PURE__ */ jsxs30("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31212
|
+
/* @__PURE__ */ jsx52("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31213
|
+
/* @__PURE__ */ jsx52(
|
|
31194
31214
|
"circle",
|
|
31195
31215
|
{
|
|
31196
31216
|
className: ProgressCircle_default.fill,
|
|
@@ -31202,7 +31222,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31202
31222
|
}
|
|
31203
31223
|
)
|
|
31204
31224
|
] }),
|
|
31205
|
-
showValue && /* @__PURE__ */
|
|
31225
|
+
showValue && /* @__PURE__ */ jsx52("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31206
31226
|
] });
|
|
31207
31227
|
} });
|
|
31208
31228
|
}
|
|
@@ -31215,17 +31235,17 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31215
31235
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__M2FmO", "radio": "RadioGroup_radio__NjdlY" };
|
|
31216
31236
|
|
|
31217
31237
|
// src/components/RadioGroup.tsx
|
|
31218
|
-
import { jsx as
|
|
31238
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
31219
31239
|
var RadioGroup = forwardRef7(
|
|
31220
31240
|
({ label, children, className, ...props }, ref) => {
|
|
31221
|
-
return /* @__PURE__ */
|
|
31222
|
-
label && /* @__PURE__ */
|
|
31241
|
+
return /* @__PURE__ */ jsxs31($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames41.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31242
|
+
label && /* @__PURE__ */ jsx53(Label, { children: label }),
|
|
31223
31243
|
children
|
|
31224
31244
|
] });
|
|
31225
31245
|
}
|
|
31226
31246
|
);
|
|
31227
31247
|
function Radio({ children, className, ...props }) {
|
|
31228
|
-
return /* @__PURE__ */
|
|
31248
|
+
return /* @__PURE__ */ jsx53($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames41.default)(RadioGroup_default.radio, className), children });
|
|
31229
31249
|
}
|
|
31230
31250
|
|
|
31231
31251
|
// src/components/SearchField.tsx
|
|
@@ -31236,7 +31256,7 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31236
31256
|
var SearchField_default = { "search": "SearchField_search__MmNlZ", "input": "SearchField_input__NTAwN", "close": "SearchField_close__NzZiM" };
|
|
31237
31257
|
|
|
31238
31258
|
// src/components/SearchField.tsx
|
|
31239
|
-
import { Fragment as Fragment8, jsx as
|
|
31259
|
+
import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
31240
31260
|
var SearchField = forwardRef8(
|
|
31241
31261
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31242
31262
|
const [search, setSearch] = useState14(value ?? "");
|
|
@@ -31257,24 +31277,24 @@ var SearchField = forwardRef8(
|
|
|
31257
31277
|
onSearch?.(searchValue);
|
|
31258
31278
|
}
|
|
31259
31279
|
}, [searchValue, delay, onSearch]);
|
|
31260
|
-
return /* @__PURE__ */
|
|
31261
|
-
return /* @__PURE__ */
|
|
31262
|
-
label && /* @__PURE__ */
|
|
31263
|
-
/* @__PURE__ */
|
|
31264
|
-
/* @__PURE__ */
|
|
31265
|
-
/* @__PURE__ */
|
|
31280
|
+
return /* @__PURE__ */ jsx54($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames42.default)(input_default.field, className), children: ({ state }) => {
|
|
31281
|
+
return /* @__PURE__ */ jsxs32(Fragment8, { children: [
|
|
31282
|
+
label && /* @__PURE__ */ jsx54(Label, { children: label }),
|
|
31283
|
+
/* @__PURE__ */ jsxs32("div", { className: input_default.row, children: [
|
|
31284
|
+
/* @__PURE__ */ jsx54(Icons.MagnifyingGlass, { className: (0, import_classnames42.default)(SearchField_default.search, input_default.icon) }),
|
|
31285
|
+
/* @__PURE__ */ jsx54(
|
|
31266
31286
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31267
31287
|
{
|
|
31268
31288
|
className: (0, import_classnames42.default)(SearchField_default.input, input_default.input),
|
|
31269
31289
|
onChange: handleChange
|
|
31270
31290
|
}
|
|
31271
31291
|
),
|
|
31272
|
-
state.value && /* @__PURE__ */
|
|
31292
|
+
state.value && /* @__PURE__ */ jsx54(
|
|
31273
31293
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31274
31294
|
{
|
|
31275
31295
|
className: (0, import_classnames42.default)(SearchField_default.close, input_default.icon),
|
|
31276
31296
|
onPress: resetSearch,
|
|
31277
|
-
children: /* @__PURE__ */
|
|
31297
|
+
children: /* @__PURE__ */ jsx54(Icon, { children: /* @__PURE__ */ jsx54(Icons.Close, {}) })
|
|
31278
31298
|
}
|
|
31279
31299
|
)
|
|
31280
31300
|
] })
|
|
@@ -31291,7 +31311,7 @@ import { forwardRef as forwardRef9 } from "react";
|
|
|
31291
31311
|
var Select_default = { "button": "Select_button__YTM3Z", "list": "Select_list__MjJiN", "icon": "Select_icon__NzlhY" };
|
|
31292
31312
|
|
|
31293
31313
|
// src/components/Select.tsx
|
|
31294
|
-
import { jsx as
|
|
31314
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
31295
31315
|
var Select = forwardRef9(
|
|
31296
31316
|
({
|
|
31297
31317
|
children,
|
|
@@ -31307,7 +31327,7 @@ var Select = forwardRef9(
|
|
|
31307
31327
|
onSelectionChange?.(e);
|
|
31308
31328
|
onChange?.(e);
|
|
31309
31329
|
};
|
|
31310
|
-
return /* @__PURE__ */
|
|
31330
|
+
return /* @__PURE__ */ jsxs33(
|
|
31311
31331
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31312
31332
|
{
|
|
31313
31333
|
...props,
|
|
@@ -31315,12 +31335,12 @@ var Select = forwardRef9(
|
|
|
31315
31335
|
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31316
31336
|
onSelectionChange: handleChange,
|
|
31317
31337
|
children: [
|
|
31318
|
-
label && /* @__PURE__ */
|
|
31319
|
-
/* @__PURE__ */
|
|
31320
|
-
/* @__PURE__ */
|
|
31321
|
-
/* @__PURE__ */
|
|
31338
|
+
label && /* @__PURE__ */ jsx55(Label, { children: label }),
|
|
31339
|
+
/* @__PURE__ */ jsx55($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ jsxs33(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31340
|
+
/* @__PURE__ */ jsx55($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
31341
|
+
/* @__PURE__ */ jsx55("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx55(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ jsx55(Icons.Chevron, {}) }) })
|
|
31322
31342
|
] }) }),
|
|
31323
|
-
/* @__PURE__ */
|
|
31343
|
+
/* @__PURE__ */ jsx55(Popover, { children: /* @__PURE__ */ jsx55(List, { items, className: Select_default.list, children }) })
|
|
31324
31344
|
]
|
|
31325
31345
|
}
|
|
31326
31346
|
);
|
|
@@ -31335,18 +31355,18 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
31335
31355
|
var Slider_default = { "slider": "Slider_slider__ODQ1M", "header": "Slider_header__NmYzN", "track": "Slider_track__Y2M4O", "fill": "Slider_fill__MWM4N", "thumb": "Slider_thumb__NGU2Z" };
|
|
31336
31356
|
|
|
31337
31357
|
// src/components/Slider.tsx
|
|
31338
|
-
import { Fragment as Fragment9, jsx as
|
|
31358
|
+
import { Fragment as Fragment9, jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
31339
31359
|
var Slider = forwardRef10(
|
|
31340
31360
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31341
|
-
return /* @__PURE__ */
|
|
31342
|
-
/* @__PURE__ */
|
|
31343
|
-
label && /* @__PURE__ */
|
|
31344
|
-
showValue && /* @__PURE__ */
|
|
31361
|
+
return /* @__PURE__ */ jsxs34($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames44.default)(Slider_default.slider, className), children: [
|
|
31362
|
+
/* @__PURE__ */ jsxs34("div", { className: Slider_default.header, children: [
|
|
31363
|
+
label && /* @__PURE__ */ jsx56(Label, { className: Slider_default.label, children: label }),
|
|
31364
|
+
showValue && /* @__PURE__ */ jsx56($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31345
31365
|
] }),
|
|
31346
|
-
/* @__PURE__ */
|
|
31366
|
+
/* @__PURE__ */ jsx56($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31347
31367
|
const isHorizontal = state.orientation === "horizontal";
|
|
31348
|
-
return /* @__PURE__ */
|
|
31349
|
-
/* @__PURE__ */
|
|
31368
|
+
return /* @__PURE__ */ jsxs34(Fragment9, { children: [
|
|
31369
|
+
/* @__PURE__ */ jsx56(
|
|
31350
31370
|
"div",
|
|
31351
31371
|
{
|
|
31352
31372
|
className: Slider_default.fill,
|
|
@@ -31355,7 +31375,7 @@ var Slider = forwardRef10(
|
|
|
31355
31375
|
}
|
|
31356
31376
|
}
|
|
31357
31377
|
),
|
|
31358
|
-
/* @__PURE__ */
|
|
31378
|
+
/* @__PURE__ */ jsx56($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31359
31379
|
] });
|
|
31360
31380
|
} })
|
|
31361
31381
|
] });
|
|
@@ -31369,11 +31389,11 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31369
31389
|
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" };
|
|
31370
31390
|
|
|
31371
31391
|
// src/components/StatusLight.tsx
|
|
31372
|
-
import { jsx as
|
|
31392
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
31373
31393
|
function StatusLight(props) {
|
|
31374
31394
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31375
|
-
return /* @__PURE__ */
|
|
31376
|
-
/* @__PURE__ */
|
|
31395
|
+
return /* @__PURE__ */ jsxs35("div", { ...domProps, className: (0, import_classnames45.default)(StatusLight_default.statuslight, className), children: [
|
|
31396
|
+
/* @__PURE__ */ jsx57("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx57(
|
|
31377
31397
|
"div",
|
|
31378
31398
|
{
|
|
31379
31399
|
className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31392,13 +31412,13 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31392
31412
|
var Switch_default = { "switch": "Switch_switch__YzA5O", "track": "Switch_track__MTM0M", "knob": "Switch_knob__OWM5N" };
|
|
31393
31413
|
|
|
31394
31414
|
// src/components/Switch.tsx
|
|
31395
|
-
import { Fragment as Fragment10, jsx as
|
|
31415
|
+
import { Fragment as Fragment10, jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
31396
31416
|
var Switch = forwardRef11(
|
|
31397
31417
|
({ label, children, className, ...props }, ref) => {
|
|
31398
31418
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31399
|
-
return /* @__PURE__ */
|
|
31400
|
-
label && /* @__PURE__ */
|
|
31401
|
-
/* @__PURE__ */
|
|
31419
|
+
return /* @__PURE__ */ jsxs36(Fragment10, { children: [
|
|
31420
|
+
label && /* @__PURE__ */ jsx58(Label, { children: label }),
|
|
31421
|
+
/* @__PURE__ */ jsxs36(
|
|
31402
31422
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31403
31423
|
{
|
|
31404
31424
|
...props,
|
|
@@ -31406,7 +31426,7 @@ var Switch = forwardRef11(
|
|
|
31406
31426
|
ref,
|
|
31407
31427
|
className: (0, import_classnames46.default)(Switch_default.switch, className),
|
|
31408
31428
|
children: [
|
|
31409
|
-
/* @__PURE__ */
|
|
31429
|
+
/* @__PURE__ */ jsx58("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx58("div", { className: Switch_default.knob }) }),
|
|
31410
31430
|
children
|
|
31411
31431
|
]
|
|
31412
31432
|
}
|
|
@@ -31419,18 +31439,18 @@ var Switch = forwardRef11(
|
|
|
31419
31439
|
var Tabs_default = { "tabs": "Tabs_tabs__ZmM4Z", "list": "Tabs_list__MGM4O", "quiet": "Tabs_quiet__YmI3N", "tab": "Tabs_tab__NWEyN" };
|
|
31420
31440
|
|
|
31421
31441
|
// src/components/Tabs.tsx
|
|
31422
|
-
import { jsx as
|
|
31442
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
31423
31443
|
function Tabs({ children, ...props }) {
|
|
31424
|
-
return /* @__PURE__ */
|
|
31444
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31425
31445
|
}
|
|
31426
31446
|
function TabList({ children, ...props }) {
|
|
31427
|
-
return /* @__PURE__ */
|
|
31447
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31428
31448
|
}
|
|
31429
31449
|
function Tab({ children, ...props }) {
|
|
31430
|
-
return /* @__PURE__ */
|
|
31450
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31431
31451
|
}
|
|
31432
31452
|
function TabPanel({ children, ...props }) {
|
|
31433
|
-
return /* @__PURE__ */
|
|
31453
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31434
31454
|
}
|
|
31435
31455
|
|
|
31436
31456
|
// src/components/TextArea.tsx
|
|
@@ -31441,17 +31461,17 @@ import { forwardRef as forwardRef12 } from "react";
|
|
|
31441
31461
|
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" };
|
|
31442
31462
|
|
|
31443
31463
|
// src/components/TextArea.tsx
|
|
31444
|
-
import { jsx as
|
|
31464
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
31445
31465
|
var TextArea = forwardRef12(
|
|
31446
31466
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31447
|
-
return /* @__PURE__ */
|
|
31467
|
+
return /* @__PURE__ */ jsx60(
|
|
31448
31468
|
TextField,
|
|
31449
31469
|
{
|
|
31450
31470
|
...props,
|
|
31451
31471
|
ref,
|
|
31452
31472
|
className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31453
31473
|
asChild: true,
|
|
31454
|
-
children: /* @__PURE__ */
|
|
31474
|
+
children: /* @__PURE__ */ jsx60($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31455
31475
|
}
|
|
31456
31476
|
);
|
|
31457
31477
|
}
|
|
@@ -31464,7 +31484,7 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
31464
31484
|
var ThemeButton_default = { "button": "ThemeButton_button__OWVmZ" };
|
|
31465
31485
|
|
|
31466
31486
|
// src/components/ThemeButton.tsx
|
|
31467
|
-
import { jsx as
|
|
31487
|
+
import { jsx as jsx61, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
31468
31488
|
function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
31469
31489
|
const { theme, setTheme: setTheme2 } = useTheme();
|
|
31470
31490
|
const transitions = useTransition(theme, {
|
|
@@ -31482,7 +31502,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31482
31502
|
function handleClick() {
|
|
31483
31503
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31484
31504
|
}
|
|
31485
|
-
return /* @__PURE__ */
|
|
31505
|
+
return /* @__PURE__ */ jsxs37(
|
|
31486
31506
|
Button,
|
|
31487
31507
|
{
|
|
31488
31508
|
...props,
|
|
@@ -31492,7 +31512,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31492
31512
|
children: [
|
|
31493
31513
|
transitions((style, item) => (
|
|
31494
31514
|
// @ts-ignore
|
|
31495
|
-
/* @__PURE__ */
|
|
31515
|
+
/* @__PURE__ */ jsx61(animated.div, { style, children: /* @__PURE__ */ jsx61(Icon, { size: "sm", children: item === "light" ? /* @__PURE__ */ jsx61(Icons.Sun, {}) : /* @__PURE__ */ jsx61(Icons.Moon, {}) }) }, item)
|
|
31496
31516
|
)),
|
|
31497
31517
|
"\xA0"
|
|
31498
31518
|
]
|
|
@@ -31508,13 +31528,13 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31508
31528
|
var Toggle_default = { "toggle": "Toggle_toggle__NGNlM" };
|
|
31509
31529
|
|
|
31510
31530
|
// src/components/Toggle.tsx
|
|
31511
|
-
import { Fragment as Fragment11, jsx as
|
|
31531
|
+
import { Fragment as Fragment11, jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
31512
31532
|
var Toggle = forwardRef13(
|
|
31513
31533
|
({ label, children, className, ...props }, ref) => {
|
|
31514
31534
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31515
|
-
return /* @__PURE__ */
|
|
31516
|
-
label && /* @__PURE__ */
|
|
31517
|
-
/* @__PURE__ */
|
|
31535
|
+
return /* @__PURE__ */ jsxs38(Fragment11, { children: [
|
|
31536
|
+
label && /* @__PURE__ */ jsx62(Label, { children: label }),
|
|
31537
|
+
/* @__PURE__ */ jsx62(
|
|
31518
31538
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31519
31539
|
{
|
|
31520
31540
|
...props,
|
|
@@ -31535,15 +31555,15 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
31535
31555
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDAzY", "list": "ToggleGroup_list__ZDEwO", "item": "ToggleGroup_item__N2ZmN" };
|
|
31536
31556
|
|
|
31537
31557
|
// src/components/ToggleGroup.tsx
|
|
31538
|
-
import { jsx as
|
|
31558
|
+
import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
31539
31559
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
31540
|
-
return /* @__PURE__ */
|
|
31541
|
-
label && /* @__PURE__ */
|
|
31542
|
-
/* @__PURE__ */
|
|
31560
|
+
return /* @__PURE__ */ jsxs39($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
31561
|
+
label && /* @__PURE__ */ jsx63(Label, { children: label }),
|
|
31562
|
+
/* @__PURE__ */ jsx63($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31543
31563
|
] });
|
|
31544
31564
|
}
|
|
31545
31565
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31546
|
-
return /* @__PURE__ */
|
|
31566
|
+
return /* @__PURE__ */ jsx63($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
|
|
31547
31567
|
}
|
|
31548
31568
|
|
|
31549
31569
|
// src/components/Tooltip.tsx
|
|
@@ -31553,19 +31573,19 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31553
31573
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__Y2Y2N", "arrow": "Tooltip_arrow__NzgwN", "slide": "Tooltip_slide__ODJjZ" };
|
|
31554
31574
|
|
|
31555
31575
|
// src/components/Tooltip.tsx
|
|
31556
|
-
import { jsx as
|
|
31576
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
31557
31577
|
function Tooltip({ children, className, ...props }) {
|
|
31558
|
-
return /* @__PURE__ */
|
|
31559
|
-
/* @__PURE__ */
|
|
31578
|
+
return /* @__PURE__ */ jsxs40($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames51.default)(Tooltip_default.tooltip, className), children: [
|
|
31579
|
+
/* @__PURE__ */ jsx64($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx64("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx64("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
31560
31580
|
children
|
|
31561
31581
|
] });
|
|
31562
31582
|
}
|
|
31563
31583
|
|
|
31564
31584
|
// src/components/ZenProvider.tsx
|
|
31565
|
-
import { jsx as
|
|
31585
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
31566
31586
|
function ZenProvider({ children, ...props }) {
|
|
31567
31587
|
const { toast } = props;
|
|
31568
|
-
return /* @__PURE__ */
|
|
31588
|
+
return /* @__PURE__ */ jsx65(ToastProvider, { ...toast, children });
|
|
31569
31589
|
}
|
|
31570
31590
|
export {
|
|
31571
31591
|
Accordion,
|
|
@@ -31611,6 +31631,7 @@ export {
|
|
|
31611
31631
|
Menu,
|
|
31612
31632
|
MenuItem2 as MenuItem,
|
|
31613
31633
|
$3674c52c6b3c5bce$export$27d2ad3c5815583e as MenuTrigger,
|
|
31634
|
+
MobileMenuButton,
|
|
31614
31635
|
Modal,
|
|
31615
31636
|
NavigationMenu,
|
|
31616
31637
|
NavigationMenuItem,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umami/react-zen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "React components built by Umami",
|
|
5
5
|
"author": "Umami <hello@umami.is>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@fontsource/jetbrains-mono": "^5.0.18",
|
|
50
50
|
"@react-spring/web": "^9.7.5",
|
|
51
51
|
"@umami/esbuild-plugin-css-modules": "0.2.0",
|
|
52
|
-
"@umami/shiso": "^0.
|
|
52
|
+
"@umami/shiso": "^0.22.0",
|
|
53
53
|
"classnames": "^2.5.1",
|
|
54
54
|
"dts-bundle": "^0.7.3",
|
|
55
55
|
"glob": "^10.3.10",
|
package/styles.css
CHANGED
|
@@ -3531,6 +3531,22 @@ body a.Button_button__N2NhN {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
}
|
|
3533
3533
|
|
|
3534
|
+
/* virtual-css:css:3bfbb09f24953e4c776b7494b4f2e619 */
|
|
3535
|
+
.MobileMenuButton_modal__N2FhM,
|
|
3536
|
+
.MobileMenuButton_dialog__OTM5N {
|
|
3537
|
+
width: 100vw !important;
|
|
3538
|
+
height: 100vh !important;
|
|
3539
|
+
overflow: hidden;
|
|
3540
|
+
}
|
|
3541
|
+
.MobileMenuButton_dialog__OTM5N {
|
|
3542
|
+
border: 0;
|
|
3543
|
+
border-radius: 0;
|
|
3544
|
+
box-shadow: none;
|
|
3545
|
+
}
|
|
3546
|
+
.MobileMenuButton_content__ZTg2O {
|
|
3547
|
+
overflow: auto;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3534
3550
|
/* virtual-css:css:f06faaaaad4324b9459c87ab9d58d827 */
|
|
3535
3551
|
.NavigationMenu_nav__MzRiY {
|
|
3536
3552
|
display: flex;
|