@umami/react-zen 0.37.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 +18 -9
- package/dist/index.d.ts +11 -3
- package/dist/index.js +116 -102
- package/dist/index.mjs +116 -102
- package/package.json +1 -1
- package/styles.css +18 -9
package/dist/index.css
CHANGED
|
@@ -2572,7 +2572,7 @@ body a.Button_button__N2NhN {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
|
|
2574
2574
|
/* virtual-css:css:e93e399a7d084c43e7eb6d4a64b3f486 */
|
|
2575
|
-
.
|
|
2575
|
+
.Dialog_dialog__YjBmO {
|
|
2576
2576
|
position: relative;
|
|
2577
2577
|
padding: var(--spacing-6);
|
|
2578
2578
|
box-shadow: var(--box-shadow-4);
|
|
@@ -2581,14 +2581,7 @@ body a.Button_button__N2NhN {
|
|
|
2581
2581
|
border-radius: var(--border-radius);
|
|
2582
2582
|
outline: none;
|
|
2583
2583
|
}
|
|
2584
|
-
.
|
|
2585
|
-
width: 100vw;
|
|
2586
|
-
height: 100vh;
|
|
2587
|
-
border: 0;
|
|
2588
|
-
border-radius: 0;
|
|
2589
|
-
box-shadow: none;
|
|
2590
|
-
}
|
|
2591
|
-
.Dialog_title__Yzc2Y {
|
|
2584
|
+
.Dialog_title__MmNiZ {
|
|
2592
2585
|
font-size: var(--font-size-4);
|
|
2593
2586
|
font-weight: 700;
|
|
2594
2587
|
margin-bottom: var(--spacing-3);
|
|
@@ -3270,6 +3263,22 @@ body a.Button_button__N2NhN {
|
|
|
3270
3263
|
}
|
|
3271
3264
|
}
|
|
3272
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
|
+
|
|
3273
3282
|
/* virtual-css:css:f06faaaaad4324b9459c87ab9d58d827 */
|
|
3274
3283
|
.NavigationMenu_nav__MzRiY {
|
|
3275
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' {
|
|
@@ -411,9 +412,8 @@ declare module '@umami/react-zen/Dialog' {
|
|
|
411
412
|
import { DialogProps as AriaDialogProps } from 'react-aria-components';
|
|
412
413
|
interface DialogProps extends AriaDialogProps {
|
|
413
414
|
title?: ReactNode;
|
|
414
|
-
variant?: 'fullscreen';
|
|
415
415
|
}
|
|
416
|
-
function Dialog({ title,
|
|
416
|
+
function Dialog({ title, children, className, ...props }: DialogProps): import("react").JSX.Element;
|
|
417
417
|
export { Dialog };
|
|
418
418
|
export type { DialogProps };
|
|
419
419
|
}
|
|
@@ -625,6 +625,14 @@ declare module '@umami/react-zen/MenuItem' {
|
|
|
625
625
|
export default MenuItem;
|
|
626
626
|
}
|
|
627
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
|
+
|
|
628
636
|
declare module '@umami/react-zen/Modal' {
|
|
629
637
|
import { ReactNode } from 'react';
|
|
630
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,
|
|
@@ -30411,24 +30412,17 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
30411
30412
|
var import_classnames13 = __toESM(require_classnames());
|
|
30412
30413
|
|
|
30413
30414
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Dialog.module.css
|
|
30414
|
-
var Dialog_default = { "dialog": "
|
|
30415
|
+
var Dialog_default = { "dialog": "Dialog_dialog__YjBmO", "title": "Dialog_title__MmNiZ" };
|
|
30415
30416
|
|
|
30416
30417
|
// src/components/Dialog.tsx
|
|
30417
30418
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
30418
|
-
function Dialog({ title,
|
|
30419
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
30420
|
-
|
|
30421
|
-
|
|
30422
|
-
|
|
30423
|
-
|
|
30424
|
-
|
|
30425
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
30426
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30427
|
-
typeof children === "function" ? children({ close }) : children
|
|
30428
|
-
] });
|
|
30429
|
-
}
|
|
30430
|
-
}
|
|
30431
|
-
);
|
|
30419
|
+
function Dialog({ title, children, className, ...props }) {
|
|
30420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames13.default)(Dialog_default.dialog, className), children: (dialogProps) => {
|
|
30421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
30422
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30423
|
+
typeof children === "function" ? children(dialogProps) : children
|
|
30424
|
+
] });
|
|
30425
|
+
} });
|
|
30432
30426
|
}
|
|
30433
30427
|
|
|
30434
30428
|
// src/components/Row.tsx
|
|
@@ -31196,6 +31190,26 @@ function Modal({ children, className, ...props }) {
|
|
|
31196
31190
|
) });
|
|
31197
31191
|
}
|
|
31198
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
|
+
|
|
31199
31213
|
// src/components/NavigationMenu.tsx
|
|
31200
31214
|
var import_classnames37 = __toESM(require_classnames());
|
|
31201
31215
|
|
|
@@ -31211,14 +31225,14 @@ var useNavigationMenu = store3;
|
|
|
31211
31225
|
var NavigationMenu_default = { "nav": "NavigationMenu_nav__MzRiY", "item": "NavigationMenu_item__YTI0N", "icon": "NavigationMenu_icon__ZDczY" };
|
|
31212
31226
|
|
|
31213
31227
|
// src/components/NavigationMenu.tsx
|
|
31214
|
-
var
|
|
31228
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
31215
31229
|
function NavigationMenu({
|
|
31216
31230
|
showArrow = true,
|
|
31217
31231
|
className,
|
|
31218
31232
|
children,
|
|
31219
31233
|
...props
|
|
31220
31234
|
}) {
|
|
31221
|
-
return /* @__PURE__ */ (0,
|
|
31235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.nav, className), children });
|
|
31222
31236
|
}
|
|
31223
31237
|
function NavigationMenuItem({
|
|
31224
31238
|
label,
|
|
@@ -31228,15 +31242,15 @@ function NavigationMenuItem({
|
|
|
31228
31242
|
}) {
|
|
31229
31243
|
const { activeMenu } = useNavigationMenu();
|
|
31230
31244
|
if (label) {
|
|
31231
|
-
return /* @__PURE__ */ (0,
|
|
31232
|
-
/* @__PURE__ */ (0,
|
|
31233
|
-
/* @__PURE__ */ (0,
|
|
31234
|
-
/* @__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, {}) })
|
|
31235
31249
|
] }),
|
|
31236
31250
|
children
|
|
31237
31251
|
] });
|
|
31238
31252
|
}
|
|
31239
|
-
return /* @__PURE__ */ (0,
|
|
31253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children });
|
|
31240
31254
|
}
|
|
31241
31255
|
|
|
31242
31256
|
// src/components/PasswordField.tsx
|
|
@@ -31247,17 +31261,17 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
31247
31261
|
var PasswordField_default = { "icon": "PasswordField_icon__NDMyZ" };
|
|
31248
31262
|
|
|
31249
31263
|
// src/components/PasswordField.tsx
|
|
31250
|
-
var
|
|
31264
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
31251
31265
|
var PasswordField = (0, import_react182.forwardRef)(
|
|
31252
31266
|
({ label, className, ...props }, ref) => {
|
|
31253
31267
|
const [show, setShow] = (0, import_react182.useState)(false);
|
|
31254
31268
|
const type = show ? "text" : "password";
|
|
31255
31269
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31256
|
-
return /* @__PURE__ */ (0,
|
|
31257
|
-
label && /* @__PURE__ */ (0,
|
|
31258
|
-
/* @__PURE__ */ (0,
|
|
31259
|
-
/* @__PURE__ */ (0,
|
|
31260
|
-
/* @__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, {}) })
|
|
31261
31275
|
] })
|
|
31262
31276
|
] });
|
|
31263
31277
|
}
|
|
@@ -31270,12 +31284,12 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31270
31284
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__MTQwN", "track": "ProgressBar_track__YTM0O", "fill": "ProgressBar_fill__ZTkyN", "value": "ProgressBar_value__YTU3N" };
|
|
31271
31285
|
|
|
31272
31286
|
// src/components/ProgressBar.tsx
|
|
31273
|
-
var
|
|
31287
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
31274
31288
|
function ProgressBar({ className, showValue, ...props }) {
|
|
31275
|
-
return /* @__PURE__ */ (0,
|
|
31276
|
-
return /* @__PURE__ */ (0,
|
|
31277
|
-
/* @__PURE__ */ (0,
|
|
31278
|
-
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 })
|
|
31279
31293
|
] });
|
|
31280
31294
|
} });
|
|
31281
31295
|
}
|
|
@@ -31287,16 +31301,16 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31287
31301
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NTQ3N", "track": "ProgressCircle_track__Mjk3Y", "fill": "ProgressCircle_fill__OWJlY", "value": "ProgressCircle_value__NzQ5Y" };
|
|
31288
31302
|
|
|
31289
31303
|
// src/components/ProgressCircle.tsx
|
|
31290
|
-
var
|
|
31304
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31291
31305
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31292
|
-
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 }) => {
|
|
31293
31307
|
const radius = 45;
|
|
31294
31308
|
const circumference = radius * 2 * Math.PI;
|
|
31295
31309
|
const offset = circumference - percentage / 100 * circumference;
|
|
31296
|
-
return /* @__PURE__ */ (0,
|
|
31297
|
-
/* @__PURE__ */ (0,
|
|
31298
|
-
/* @__PURE__ */ (0,
|
|
31299
|
-
/* @__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)(
|
|
31300
31314
|
"circle",
|
|
31301
31315
|
{
|
|
31302
31316
|
className: ProgressCircle_default.fill,
|
|
@@ -31308,7 +31322,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31308
31322
|
}
|
|
31309
31323
|
)
|
|
31310
31324
|
] }),
|
|
31311
|
-
showValue && /* @__PURE__ */ (0,
|
|
31325
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31312
31326
|
] });
|
|
31313
31327
|
} });
|
|
31314
31328
|
}
|
|
@@ -31321,17 +31335,17 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31321
31335
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__M2FmO", "radio": "RadioGroup_radio__NjdlY" };
|
|
31322
31336
|
|
|
31323
31337
|
// src/components/RadioGroup.tsx
|
|
31324
|
-
var
|
|
31338
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31325
31339
|
var RadioGroup = (0, import_react183.forwardRef)(
|
|
31326
31340
|
({ label, children, className, ...props }, ref) => {
|
|
31327
|
-
return /* @__PURE__ */ (0,
|
|
31328
|
-
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 }),
|
|
31329
31343
|
children
|
|
31330
31344
|
] });
|
|
31331
31345
|
}
|
|
31332
31346
|
);
|
|
31333
31347
|
function Radio({ children, className, ...props }) {
|
|
31334
|
-
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 });
|
|
31335
31349
|
}
|
|
31336
31350
|
|
|
31337
31351
|
// src/components/SearchField.tsx
|
|
@@ -31342,7 +31356,7 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31342
31356
|
var SearchField_default = { "search": "SearchField_search__MmNlZ", "input": "SearchField_input__NTAwN", "close": "SearchField_close__NzZiM" };
|
|
31343
31357
|
|
|
31344
31358
|
// src/components/SearchField.tsx
|
|
31345
|
-
var
|
|
31359
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31346
31360
|
var SearchField = (0, import_react184.forwardRef)(
|
|
31347
31361
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31348
31362
|
const [search, setSearch] = (0, import_react184.useState)(value ?? "");
|
|
@@ -31363,24 +31377,24 @@ var SearchField = (0, import_react184.forwardRef)(
|
|
|
31363
31377
|
onSearch?.(searchValue);
|
|
31364
31378
|
}
|
|
31365
31379
|
}, [searchValue, delay, onSearch]);
|
|
31366
|
-
return /* @__PURE__ */ (0,
|
|
31367
|
-
return /* @__PURE__ */ (0,
|
|
31368
|
-
label && /* @__PURE__ */ (0,
|
|
31369
|
-
/* @__PURE__ */ (0,
|
|
31370
|
-
/* @__PURE__ */ (0,
|
|
31371
|
-
/* @__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)(
|
|
31372
31386
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31373
31387
|
{
|
|
31374
31388
|
className: (0, import_classnames42.default)(SearchField_default.input, input_default.input),
|
|
31375
31389
|
onChange: handleChange
|
|
31376
31390
|
}
|
|
31377
31391
|
),
|
|
31378
|
-
state.value && /* @__PURE__ */ (0,
|
|
31392
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31379
31393
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31380
31394
|
{
|
|
31381
31395
|
className: (0, import_classnames42.default)(SearchField_default.close, input_default.icon),
|
|
31382
31396
|
onPress: resetSearch,
|
|
31383
|
-
children: /* @__PURE__ */ (0,
|
|
31397
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Close, {}) })
|
|
31384
31398
|
}
|
|
31385
31399
|
)
|
|
31386
31400
|
] })
|
|
@@ -31397,7 +31411,7 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
31397
31411
|
var Select_default = { "button": "Select_button__YTM3Z", "list": "Select_list__MjJiN", "icon": "Select_icon__NzlhY" };
|
|
31398
31412
|
|
|
31399
31413
|
// src/components/Select.tsx
|
|
31400
|
-
var
|
|
31414
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31401
31415
|
var Select = (0, import_react185.forwardRef)(
|
|
31402
31416
|
({
|
|
31403
31417
|
children,
|
|
@@ -31413,7 +31427,7 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31413
31427
|
onSelectionChange?.(e);
|
|
31414
31428
|
onChange?.(e);
|
|
31415
31429
|
};
|
|
31416
|
-
return /* @__PURE__ */ (0,
|
|
31430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
31417
31431
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31418
31432
|
{
|
|
31419
31433
|
...props,
|
|
@@ -31421,12 +31435,12 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31421
31435
|
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31422
31436
|
onSelectionChange: handleChange,
|
|
31423
31437
|
children: [
|
|
31424
|
-
label && /* @__PURE__ */ (0,
|
|
31425
|
-
/* @__PURE__ */ (0,
|
|
31426
|
-
/* @__PURE__ */ (0,
|
|
31427
|
-
/* @__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, {}) }) })
|
|
31428
31442
|
] }) }),
|
|
31429
|
-
/* @__PURE__ */ (0,
|
|
31443
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(List, { items, className: Select_default.list, children }) })
|
|
31430
31444
|
]
|
|
31431
31445
|
}
|
|
31432
31446
|
);
|
|
@@ -31441,18 +31455,18 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
31441
31455
|
var Slider_default = { "slider": "Slider_slider__ODQ1M", "header": "Slider_header__NmYzN", "track": "Slider_track__Y2M4O", "fill": "Slider_fill__MWM4N", "thumb": "Slider_thumb__NGU2Z" };
|
|
31442
31456
|
|
|
31443
31457
|
// src/components/Slider.tsx
|
|
31444
|
-
var
|
|
31458
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31445
31459
|
var Slider = (0, import_react186.forwardRef)(
|
|
31446
31460
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31447
|
-
return /* @__PURE__ */ (0,
|
|
31448
|
-
/* @__PURE__ */ (0,
|
|
31449
|
-
label && /* @__PURE__ */ (0,
|
|
31450
|
-
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 })
|
|
31451
31465
|
] }),
|
|
31452
|
-
/* @__PURE__ */ (0,
|
|
31466
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31453
31467
|
const isHorizontal = state.orientation === "horizontal";
|
|
31454
|
-
return /* @__PURE__ */ (0,
|
|
31455
|
-
/* @__PURE__ */ (0,
|
|
31468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
31469
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31456
31470
|
"div",
|
|
31457
31471
|
{
|
|
31458
31472
|
className: Slider_default.fill,
|
|
@@ -31461,7 +31475,7 @@ var Slider = (0, import_react186.forwardRef)(
|
|
|
31461
31475
|
}
|
|
31462
31476
|
}
|
|
31463
31477
|
),
|
|
31464
|
-
/* @__PURE__ */ (0,
|
|
31478
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31465
31479
|
] });
|
|
31466
31480
|
} })
|
|
31467
31481
|
] });
|
|
@@ -31475,11 +31489,11 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31475
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" };
|
|
31476
31490
|
|
|
31477
31491
|
// src/components/StatusLight.tsx
|
|
31478
|
-
var
|
|
31492
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31479
31493
|
function StatusLight(props) {
|
|
31480
31494
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31481
|
-
return /* @__PURE__ */ (0,
|
|
31482
|
-
/* @__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)(
|
|
31483
31497
|
"div",
|
|
31484
31498
|
{
|
|
31485
31499
|
className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31498,13 +31512,13 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31498
31512
|
var Switch_default = { "switch": "Switch_switch__YzA5O", "track": "Switch_track__MTM0M", "knob": "Switch_knob__OWM5N" };
|
|
31499
31513
|
|
|
31500
31514
|
// src/components/Switch.tsx
|
|
31501
|
-
var
|
|
31515
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31502
31516
|
var Switch = (0, import_react187.forwardRef)(
|
|
31503
31517
|
({ label, children, className, ...props }, ref) => {
|
|
31504
31518
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31505
|
-
return /* @__PURE__ */ (0,
|
|
31506
|
-
label && /* @__PURE__ */ (0,
|
|
31507
|
-
/* @__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)(
|
|
31508
31522
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31509
31523
|
{
|
|
31510
31524
|
...props,
|
|
@@ -31512,7 +31526,7 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31512
31526
|
ref,
|
|
31513
31527
|
className: (0, import_classnames46.default)(Switch_default.switch, className),
|
|
31514
31528
|
children: [
|
|
31515
|
-
/* @__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 }) }),
|
|
31516
31530
|
children
|
|
31517
31531
|
]
|
|
31518
31532
|
}
|
|
@@ -31525,18 +31539,18 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31525
31539
|
var Tabs_default = { "tabs": "Tabs_tabs__ZmM4Z", "list": "Tabs_list__MGM4O", "quiet": "Tabs_quiet__YmI3N", "tab": "Tabs_tab__NWEyN" };
|
|
31526
31540
|
|
|
31527
31541
|
// src/components/Tabs.tsx
|
|
31528
|
-
var
|
|
31542
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31529
31543
|
function Tabs({ children, ...props }) {
|
|
31530
|
-
return /* @__PURE__ */ (0,
|
|
31544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31531
31545
|
}
|
|
31532
31546
|
function TabList({ children, ...props }) {
|
|
31533
|
-
return /* @__PURE__ */ (0,
|
|
31547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31534
31548
|
}
|
|
31535
31549
|
function Tab({ children, ...props }) {
|
|
31536
|
-
return /* @__PURE__ */ (0,
|
|
31550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31537
31551
|
}
|
|
31538
31552
|
function TabPanel({ children, ...props }) {
|
|
31539
|
-
return /* @__PURE__ */ (0,
|
|
31553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31540
31554
|
}
|
|
31541
31555
|
|
|
31542
31556
|
// src/components/TextArea.tsx
|
|
@@ -31547,17 +31561,17 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
31547
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" };
|
|
31548
31562
|
|
|
31549
31563
|
// src/components/TextArea.tsx
|
|
31550
|
-
var
|
|
31564
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31551
31565
|
var TextArea = (0, import_react188.forwardRef)(
|
|
31552
31566
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31553
|
-
return /* @__PURE__ */ (0,
|
|
31567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31554
31568
|
TextField,
|
|
31555
31569
|
{
|
|
31556
31570
|
...props,
|
|
31557
31571
|
ref,
|
|
31558
31572
|
className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31559
31573
|
asChild: true,
|
|
31560
|
-
children: /* @__PURE__ */ (0,
|
|
31574
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31561
31575
|
}
|
|
31562
31576
|
);
|
|
31563
31577
|
}
|
|
@@ -31570,7 +31584,7 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
31570
31584
|
var ThemeButton_default = { "button": "ThemeButton_button__OWVmZ" };
|
|
31571
31585
|
|
|
31572
31586
|
// src/components/ThemeButton.tsx
|
|
31573
|
-
var
|
|
31587
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31574
31588
|
function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
31575
31589
|
const { theme, setTheme: setTheme2 } = useTheme();
|
|
31576
31590
|
const transitions = useTransition(theme, {
|
|
@@ -31588,7 +31602,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31588
31602
|
function handleClick() {
|
|
31589
31603
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31590
31604
|
}
|
|
31591
|
-
return /* @__PURE__ */ (0,
|
|
31605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
31592
31606
|
Button,
|
|
31593
31607
|
{
|
|
31594
31608
|
...props,
|
|
@@ -31598,7 +31612,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31598
31612
|
children: [
|
|
31599
31613
|
transitions((style, item) => (
|
|
31600
31614
|
// @ts-ignore
|
|
31601
|
-
/* @__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)
|
|
31602
31616
|
)),
|
|
31603
31617
|
"\xA0"
|
|
31604
31618
|
]
|
|
@@ -31614,13 +31628,13 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31614
31628
|
var Toggle_default = { "toggle": "Toggle_toggle__NGNlM" };
|
|
31615
31629
|
|
|
31616
31630
|
// src/components/Toggle.tsx
|
|
31617
|
-
var
|
|
31631
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31618
31632
|
var Toggle = (0, import_react189.forwardRef)(
|
|
31619
31633
|
({ label, children, className, ...props }, ref) => {
|
|
31620
31634
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31621
|
-
return /* @__PURE__ */ (0,
|
|
31622
|
-
label && /* @__PURE__ */ (0,
|
|
31623
|
-
/* @__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)(
|
|
31624
31638
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31625
31639
|
{
|
|
31626
31640
|
...props,
|
|
@@ -31641,15 +31655,15 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
31641
31655
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDAzY", "list": "ToggleGroup_list__ZDEwO", "item": "ToggleGroup_item__N2ZmN" };
|
|
31642
31656
|
|
|
31643
31657
|
// src/components/ToggleGroup.tsx
|
|
31644
|
-
var
|
|
31658
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31645
31659
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
31646
|
-
return /* @__PURE__ */ (0,
|
|
31647
|
-
label && /* @__PURE__ */ (0,
|
|
31648
|
-
/* @__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 })
|
|
31649
31663
|
] });
|
|
31650
31664
|
}
|
|
31651
31665
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31652
|
-
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 });
|
|
31653
31667
|
}
|
|
31654
31668
|
|
|
31655
31669
|
// src/components/Tooltip.tsx
|
|
@@ -31659,19 +31673,19 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31659
31673
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__Y2Y2N", "arrow": "Tooltip_arrow__NzgwN", "slide": "Tooltip_slide__ODJjZ" };
|
|
31660
31674
|
|
|
31661
31675
|
// src/components/Tooltip.tsx
|
|
31662
|
-
var
|
|
31676
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31663
31677
|
function Tooltip({ children, className, ...props }) {
|
|
31664
|
-
return /* @__PURE__ */ (0,
|
|
31665
|
-
/* @__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" }) }) }),
|
|
31666
31680
|
children
|
|
31667
31681
|
] });
|
|
31668
31682
|
}
|
|
31669
31683
|
|
|
31670
31684
|
// src/components/ZenProvider.tsx
|
|
31671
|
-
var
|
|
31685
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
31672
31686
|
function ZenProvider({ children, ...props }) {
|
|
31673
31687
|
const { toast } = props;
|
|
31674
|
-
return /* @__PURE__ */ (0,
|
|
31688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToastProvider, { ...toast, children });
|
|
31675
31689
|
}
|
|
31676
31690
|
/*! Bundled license information:
|
|
31677
31691
|
|
package/dist/index.mjs
CHANGED
|
@@ -30312,24 +30312,17 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
30312
30312
|
var import_classnames13 = __toESM(require_classnames());
|
|
30313
30313
|
|
|
30314
30314
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Dialog.module.css
|
|
30315
|
-
var Dialog_default = { "dialog": "
|
|
30315
|
+
var Dialog_default = { "dialog": "Dialog_dialog__YjBmO", "title": "Dialog_title__MmNiZ" };
|
|
30316
30316
|
|
|
30317
30317
|
// src/components/Dialog.tsx
|
|
30318
30318
|
import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
30319
|
-
function Dialog({ title,
|
|
30320
|
-
return /* @__PURE__ */ jsx20(
|
|
30321
|
-
|
|
30322
|
-
|
|
30323
|
-
|
|
30324
|
-
|
|
30325
|
-
|
|
30326
|
-
return /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
30327
|
-
title && /* @__PURE__ */ jsx20("div", { className: Dialog_default.title, children: title }),
|
|
30328
|
-
typeof children === "function" ? children({ close }) : children
|
|
30329
|
-
] });
|
|
30330
|
-
}
|
|
30331
|
-
}
|
|
30332
|
-
);
|
|
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: (dialogProps) => {
|
|
30321
|
+
return /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
30322
|
+
title && /* @__PURE__ */ jsx20("div", { className: Dialog_default.title, children: title }),
|
|
30323
|
+
typeof children === "function" ? children(dialogProps) : children
|
|
30324
|
+
] });
|
|
30325
|
+
} });
|
|
30333
30326
|
}
|
|
30334
30327
|
|
|
30335
30328
|
// src/components/Row.tsx
|
|
@@ -31097,6 +31090,26 @@ function Modal({ children, className, ...props }) {
|
|
|
31097
31090
|
) });
|
|
31098
31091
|
}
|
|
31099
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
|
+
|
|
31100
31113
|
// src/components/NavigationMenu.tsx
|
|
31101
31114
|
var import_classnames37 = __toESM(require_classnames());
|
|
31102
31115
|
|
|
@@ -31112,14 +31125,14 @@ var useNavigationMenu = store3;
|
|
|
31112
31125
|
var NavigationMenu_default = { "nav": "NavigationMenu_nav__MzRiY", "item": "NavigationMenu_item__YTI0N", "icon": "NavigationMenu_icon__ZDczY" };
|
|
31113
31126
|
|
|
31114
31127
|
// src/components/NavigationMenu.tsx
|
|
31115
|
-
import { jsx as
|
|
31128
|
+
import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
31116
31129
|
function NavigationMenu({
|
|
31117
31130
|
showArrow = true,
|
|
31118
31131
|
className,
|
|
31119
31132
|
children,
|
|
31120
31133
|
...props
|
|
31121
31134
|
}) {
|
|
31122
|
-
return /* @__PURE__ */
|
|
31135
|
+
return /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.nav, className), children });
|
|
31123
31136
|
}
|
|
31124
31137
|
function NavigationMenuItem({
|
|
31125
31138
|
label,
|
|
@@ -31129,15 +31142,15 @@ function NavigationMenuItem({
|
|
|
31129
31142
|
}) {
|
|
31130
31143
|
const { activeMenu } = useNavigationMenu();
|
|
31131
31144
|
if (label) {
|
|
31132
|
-
return /* @__PURE__ */
|
|
31133
|
-
/* @__PURE__ */
|
|
31134
|
-
/* @__PURE__ */
|
|
31135
|
-
/* @__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, {}) })
|
|
31136
31149
|
] }),
|
|
31137
31150
|
children
|
|
31138
31151
|
] });
|
|
31139
31152
|
}
|
|
31140
|
-
return /* @__PURE__ */
|
|
31153
|
+
return /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children });
|
|
31141
31154
|
}
|
|
31142
31155
|
|
|
31143
31156
|
// src/components/PasswordField.tsx
|
|
@@ -31148,17 +31161,17 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
31148
31161
|
var PasswordField_default = { "icon": "PasswordField_icon__NDMyZ" };
|
|
31149
31162
|
|
|
31150
31163
|
// src/components/PasswordField.tsx
|
|
31151
|
-
import { jsx as
|
|
31164
|
+
import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
31152
31165
|
var PasswordField = forwardRef6(
|
|
31153
31166
|
({ label, className, ...props }, ref) => {
|
|
31154
31167
|
const [show, setShow] = useState13(false);
|
|
31155
31168
|
const type = show ? "text" : "password";
|
|
31156
31169
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31157
|
-
return /* @__PURE__ */
|
|
31158
|
-
label && /* @__PURE__ */
|
|
31159
|
-
/* @__PURE__ */
|
|
31160
|
-
/* @__PURE__ */
|
|
31161
|
-
/* @__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, {}) })
|
|
31162
31175
|
] })
|
|
31163
31176
|
] });
|
|
31164
31177
|
}
|
|
@@ -31171,12 +31184,12 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31171
31184
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__MTQwN", "track": "ProgressBar_track__YTM0O", "fill": "ProgressBar_fill__ZTkyN", "value": "ProgressBar_value__YTU3N" };
|
|
31172
31185
|
|
|
31173
31186
|
// src/components/ProgressBar.tsx
|
|
31174
|
-
import { Fragment as Fragment6, jsx as
|
|
31187
|
+
import { Fragment as Fragment6, jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
31175
31188
|
function ProgressBar({ className, showValue, ...props }) {
|
|
31176
|
-
return /* @__PURE__ */
|
|
31177
|
-
return /* @__PURE__ */
|
|
31178
|
-
/* @__PURE__ */
|
|
31179
|
-
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 })
|
|
31180
31193
|
] });
|
|
31181
31194
|
} });
|
|
31182
31195
|
}
|
|
@@ -31188,16 +31201,16 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31188
31201
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NTQ3N", "track": "ProgressCircle_track__Mjk3Y", "fill": "ProgressCircle_fill__OWJlY", "value": "ProgressCircle_value__NzQ5Y" };
|
|
31189
31202
|
|
|
31190
31203
|
// src/components/ProgressCircle.tsx
|
|
31191
|
-
import { Fragment as Fragment7, jsx as
|
|
31204
|
+
import { Fragment as Fragment7, jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
31192
31205
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31193
|
-
return /* @__PURE__ */
|
|
31206
|
+
return /* @__PURE__ */ jsx52($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31194
31207
|
const radius = 45;
|
|
31195
31208
|
const circumference = radius * 2 * Math.PI;
|
|
31196
31209
|
const offset = circumference - percentage / 100 * circumference;
|
|
31197
|
-
return /* @__PURE__ */
|
|
31198
|
-
/* @__PURE__ */
|
|
31199
|
-
/* @__PURE__ */
|
|
31200
|
-
/* @__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(
|
|
31201
31214
|
"circle",
|
|
31202
31215
|
{
|
|
31203
31216
|
className: ProgressCircle_default.fill,
|
|
@@ -31209,7 +31222,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31209
31222
|
}
|
|
31210
31223
|
)
|
|
31211
31224
|
] }),
|
|
31212
|
-
showValue && /* @__PURE__ */
|
|
31225
|
+
showValue && /* @__PURE__ */ jsx52("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31213
31226
|
] });
|
|
31214
31227
|
} });
|
|
31215
31228
|
}
|
|
@@ -31222,17 +31235,17 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31222
31235
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__M2FmO", "radio": "RadioGroup_radio__NjdlY" };
|
|
31223
31236
|
|
|
31224
31237
|
// src/components/RadioGroup.tsx
|
|
31225
|
-
import { jsx as
|
|
31238
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
31226
31239
|
var RadioGroup = forwardRef7(
|
|
31227
31240
|
({ label, children, className, ...props }, ref) => {
|
|
31228
|
-
return /* @__PURE__ */
|
|
31229
|
-
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 }),
|
|
31230
31243
|
children
|
|
31231
31244
|
] });
|
|
31232
31245
|
}
|
|
31233
31246
|
);
|
|
31234
31247
|
function Radio({ children, className, ...props }) {
|
|
31235
|
-
return /* @__PURE__ */
|
|
31248
|
+
return /* @__PURE__ */ jsx53($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames41.default)(RadioGroup_default.radio, className), children });
|
|
31236
31249
|
}
|
|
31237
31250
|
|
|
31238
31251
|
// src/components/SearchField.tsx
|
|
@@ -31243,7 +31256,7 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31243
31256
|
var SearchField_default = { "search": "SearchField_search__MmNlZ", "input": "SearchField_input__NTAwN", "close": "SearchField_close__NzZiM" };
|
|
31244
31257
|
|
|
31245
31258
|
// src/components/SearchField.tsx
|
|
31246
|
-
import { Fragment as Fragment8, jsx as
|
|
31259
|
+
import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
31247
31260
|
var SearchField = forwardRef8(
|
|
31248
31261
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31249
31262
|
const [search, setSearch] = useState14(value ?? "");
|
|
@@ -31264,24 +31277,24 @@ var SearchField = forwardRef8(
|
|
|
31264
31277
|
onSearch?.(searchValue);
|
|
31265
31278
|
}
|
|
31266
31279
|
}, [searchValue, delay, onSearch]);
|
|
31267
|
-
return /* @__PURE__ */
|
|
31268
|
-
return /* @__PURE__ */
|
|
31269
|
-
label && /* @__PURE__ */
|
|
31270
|
-
/* @__PURE__ */
|
|
31271
|
-
/* @__PURE__ */
|
|
31272
|
-
/* @__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(
|
|
31273
31286
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31274
31287
|
{
|
|
31275
31288
|
className: (0, import_classnames42.default)(SearchField_default.input, input_default.input),
|
|
31276
31289
|
onChange: handleChange
|
|
31277
31290
|
}
|
|
31278
31291
|
),
|
|
31279
|
-
state.value && /* @__PURE__ */
|
|
31292
|
+
state.value && /* @__PURE__ */ jsx54(
|
|
31280
31293
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31281
31294
|
{
|
|
31282
31295
|
className: (0, import_classnames42.default)(SearchField_default.close, input_default.icon),
|
|
31283
31296
|
onPress: resetSearch,
|
|
31284
|
-
children: /* @__PURE__ */
|
|
31297
|
+
children: /* @__PURE__ */ jsx54(Icon, { children: /* @__PURE__ */ jsx54(Icons.Close, {}) })
|
|
31285
31298
|
}
|
|
31286
31299
|
)
|
|
31287
31300
|
] })
|
|
@@ -31298,7 +31311,7 @@ import { forwardRef as forwardRef9 } from "react";
|
|
|
31298
31311
|
var Select_default = { "button": "Select_button__YTM3Z", "list": "Select_list__MjJiN", "icon": "Select_icon__NzlhY" };
|
|
31299
31312
|
|
|
31300
31313
|
// src/components/Select.tsx
|
|
31301
|
-
import { jsx as
|
|
31314
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
31302
31315
|
var Select = forwardRef9(
|
|
31303
31316
|
({
|
|
31304
31317
|
children,
|
|
@@ -31314,7 +31327,7 @@ var Select = forwardRef9(
|
|
|
31314
31327
|
onSelectionChange?.(e);
|
|
31315
31328
|
onChange?.(e);
|
|
31316
31329
|
};
|
|
31317
|
-
return /* @__PURE__ */
|
|
31330
|
+
return /* @__PURE__ */ jsxs33(
|
|
31318
31331
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31319
31332
|
{
|
|
31320
31333
|
...props,
|
|
@@ -31322,12 +31335,12 @@ var Select = forwardRef9(
|
|
|
31322
31335
|
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31323
31336
|
onSelectionChange: handleChange,
|
|
31324
31337
|
children: [
|
|
31325
|
-
label && /* @__PURE__ */
|
|
31326
|
-
/* @__PURE__ */
|
|
31327
|
-
/* @__PURE__ */
|
|
31328
|
-
/* @__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, {}) }) })
|
|
31329
31342
|
] }) }),
|
|
31330
|
-
/* @__PURE__ */
|
|
31343
|
+
/* @__PURE__ */ jsx55(Popover, { children: /* @__PURE__ */ jsx55(List, { items, className: Select_default.list, children }) })
|
|
31331
31344
|
]
|
|
31332
31345
|
}
|
|
31333
31346
|
);
|
|
@@ -31342,18 +31355,18 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
31342
31355
|
var Slider_default = { "slider": "Slider_slider__ODQ1M", "header": "Slider_header__NmYzN", "track": "Slider_track__Y2M4O", "fill": "Slider_fill__MWM4N", "thumb": "Slider_thumb__NGU2Z" };
|
|
31343
31356
|
|
|
31344
31357
|
// src/components/Slider.tsx
|
|
31345
|
-
import { Fragment as Fragment9, jsx as
|
|
31358
|
+
import { Fragment as Fragment9, jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
31346
31359
|
var Slider = forwardRef10(
|
|
31347
31360
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31348
|
-
return /* @__PURE__ */
|
|
31349
|
-
/* @__PURE__ */
|
|
31350
|
-
label && /* @__PURE__ */
|
|
31351
|
-
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 })
|
|
31352
31365
|
] }),
|
|
31353
|
-
/* @__PURE__ */
|
|
31366
|
+
/* @__PURE__ */ jsx56($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31354
31367
|
const isHorizontal = state.orientation === "horizontal";
|
|
31355
|
-
return /* @__PURE__ */
|
|
31356
|
-
/* @__PURE__ */
|
|
31368
|
+
return /* @__PURE__ */ jsxs34(Fragment9, { children: [
|
|
31369
|
+
/* @__PURE__ */ jsx56(
|
|
31357
31370
|
"div",
|
|
31358
31371
|
{
|
|
31359
31372
|
className: Slider_default.fill,
|
|
@@ -31362,7 +31375,7 @@ var Slider = forwardRef10(
|
|
|
31362
31375
|
}
|
|
31363
31376
|
}
|
|
31364
31377
|
),
|
|
31365
|
-
/* @__PURE__ */
|
|
31378
|
+
/* @__PURE__ */ jsx56($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31366
31379
|
] });
|
|
31367
31380
|
} })
|
|
31368
31381
|
] });
|
|
@@ -31376,11 +31389,11 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31376
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" };
|
|
31377
31390
|
|
|
31378
31391
|
// src/components/StatusLight.tsx
|
|
31379
|
-
import { jsx as
|
|
31392
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
31380
31393
|
function StatusLight(props) {
|
|
31381
31394
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31382
|
-
return /* @__PURE__ */
|
|
31383
|
-
/* @__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(
|
|
31384
31397
|
"div",
|
|
31385
31398
|
{
|
|
31386
31399
|
className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31399,13 +31412,13 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31399
31412
|
var Switch_default = { "switch": "Switch_switch__YzA5O", "track": "Switch_track__MTM0M", "knob": "Switch_knob__OWM5N" };
|
|
31400
31413
|
|
|
31401
31414
|
// src/components/Switch.tsx
|
|
31402
|
-
import { Fragment as Fragment10, jsx as
|
|
31415
|
+
import { Fragment as Fragment10, jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
31403
31416
|
var Switch = forwardRef11(
|
|
31404
31417
|
({ label, children, className, ...props }, ref) => {
|
|
31405
31418
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31406
|
-
return /* @__PURE__ */
|
|
31407
|
-
label && /* @__PURE__ */
|
|
31408
|
-
/* @__PURE__ */
|
|
31419
|
+
return /* @__PURE__ */ jsxs36(Fragment10, { children: [
|
|
31420
|
+
label && /* @__PURE__ */ jsx58(Label, { children: label }),
|
|
31421
|
+
/* @__PURE__ */ jsxs36(
|
|
31409
31422
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31410
31423
|
{
|
|
31411
31424
|
...props,
|
|
@@ -31413,7 +31426,7 @@ var Switch = forwardRef11(
|
|
|
31413
31426
|
ref,
|
|
31414
31427
|
className: (0, import_classnames46.default)(Switch_default.switch, className),
|
|
31415
31428
|
children: [
|
|
31416
|
-
/* @__PURE__ */
|
|
31429
|
+
/* @__PURE__ */ jsx58("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx58("div", { className: Switch_default.knob }) }),
|
|
31417
31430
|
children
|
|
31418
31431
|
]
|
|
31419
31432
|
}
|
|
@@ -31426,18 +31439,18 @@ var Switch = forwardRef11(
|
|
|
31426
31439
|
var Tabs_default = { "tabs": "Tabs_tabs__ZmM4Z", "list": "Tabs_list__MGM4O", "quiet": "Tabs_quiet__YmI3N", "tab": "Tabs_tab__NWEyN" };
|
|
31427
31440
|
|
|
31428
31441
|
// src/components/Tabs.tsx
|
|
31429
|
-
import { jsx as
|
|
31442
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
31430
31443
|
function Tabs({ children, ...props }) {
|
|
31431
|
-
return /* @__PURE__ */
|
|
31444
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31432
31445
|
}
|
|
31433
31446
|
function TabList({ children, ...props }) {
|
|
31434
|
-
return /* @__PURE__ */
|
|
31447
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31435
31448
|
}
|
|
31436
31449
|
function Tab({ children, ...props }) {
|
|
31437
|
-
return /* @__PURE__ */
|
|
31450
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31438
31451
|
}
|
|
31439
31452
|
function TabPanel({ children, ...props }) {
|
|
31440
|
-
return /* @__PURE__ */
|
|
31453
|
+
return /* @__PURE__ */ jsx59($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31441
31454
|
}
|
|
31442
31455
|
|
|
31443
31456
|
// src/components/TextArea.tsx
|
|
@@ -31448,17 +31461,17 @@ import { forwardRef as forwardRef12 } from "react";
|
|
|
31448
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" };
|
|
31449
31462
|
|
|
31450
31463
|
// src/components/TextArea.tsx
|
|
31451
|
-
import { jsx as
|
|
31464
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
31452
31465
|
var TextArea = forwardRef12(
|
|
31453
31466
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31454
|
-
return /* @__PURE__ */
|
|
31467
|
+
return /* @__PURE__ */ jsx60(
|
|
31455
31468
|
TextField,
|
|
31456
31469
|
{
|
|
31457
31470
|
...props,
|
|
31458
31471
|
ref,
|
|
31459
31472
|
className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31460
31473
|
asChild: true,
|
|
31461
|
-
children: /* @__PURE__ */
|
|
31474
|
+
children: /* @__PURE__ */ jsx60($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31462
31475
|
}
|
|
31463
31476
|
);
|
|
31464
31477
|
}
|
|
@@ -31471,7 +31484,7 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
31471
31484
|
var ThemeButton_default = { "button": "ThemeButton_button__OWVmZ" };
|
|
31472
31485
|
|
|
31473
31486
|
// src/components/ThemeButton.tsx
|
|
31474
|
-
import { jsx as
|
|
31487
|
+
import { jsx as jsx61, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
31475
31488
|
function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
31476
31489
|
const { theme, setTheme: setTheme2 } = useTheme();
|
|
31477
31490
|
const transitions = useTransition(theme, {
|
|
@@ -31489,7 +31502,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31489
31502
|
function handleClick() {
|
|
31490
31503
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31491
31504
|
}
|
|
31492
|
-
return /* @__PURE__ */
|
|
31505
|
+
return /* @__PURE__ */ jsxs37(
|
|
31493
31506
|
Button,
|
|
31494
31507
|
{
|
|
31495
31508
|
...props,
|
|
@@ -31499,7 +31512,7 @@ function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
|
31499
31512
|
children: [
|
|
31500
31513
|
transitions((style, item) => (
|
|
31501
31514
|
// @ts-ignore
|
|
31502
|
-
/* @__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)
|
|
31503
31516
|
)),
|
|
31504
31517
|
"\xA0"
|
|
31505
31518
|
]
|
|
@@ -31515,13 +31528,13 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31515
31528
|
var Toggle_default = { "toggle": "Toggle_toggle__NGNlM" };
|
|
31516
31529
|
|
|
31517
31530
|
// src/components/Toggle.tsx
|
|
31518
|
-
import { Fragment as Fragment11, jsx as
|
|
31531
|
+
import { Fragment as Fragment11, jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
31519
31532
|
var Toggle = forwardRef13(
|
|
31520
31533
|
({ label, children, className, ...props }, ref) => {
|
|
31521
31534
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31522
|
-
return /* @__PURE__ */
|
|
31523
|
-
label && /* @__PURE__ */
|
|
31524
|
-
/* @__PURE__ */
|
|
31535
|
+
return /* @__PURE__ */ jsxs38(Fragment11, { children: [
|
|
31536
|
+
label && /* @__PURE__ */ jsx62(Label, { children: label }),
|
|
31537
|
+
/* @__PURE__ */ jsx62(
|
|
31525
31538
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31526
31539
|
{
|
|
31527
31540
|
...props,
|
|
@@ -31542,15 +31555,15 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
31542
31555
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDAzY", "list": "ToggleGroup_list__ZDEwO", "item": "ToggleGroup_item__N2ZmN" };
|
|
31543
31556
|
|
|
31544
31557
|
// src/components/ToggleGroup.tsx
|
|
31545
|
-
import { jsx as
|
|
31558
|
+
import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
31546
31559
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
31547
|
-
return /* @__PURE__ */
|
|
31548
|
-
label && /* @__PURE__ */
|
|
31549
|
-
/* @__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 })
|
|
31550
31563
|
] });
|
|
31551
31564
|
}
|
|
31552
31565
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31553
|
-
return /* @__PURE__ */
|
|
31566
|
+
return /* @__PURE__ */ jsx63($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
|
|
31554
31567
|
}
|
|
31555
31568
|
|
|
31556
31569
|
// src/components/Tooltip.tsx
|
|
@@ -31560,19 +31573,19 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31560
31573
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__Y2Y2N", "arrow": "Tooltip_arrow__NzgwN", "slide": "Tooltip_slide__ODJjZ" };
|
|
31561
31574
|
|
|
31562
31575
|
// src/components/Tooltip.tsx
|
|
31563
|
-
import { jsx as
|
|
31576
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
31564
31577
|
function Tooltip({ children, className, ...props }) {
|
|
31565
|
-
return /* @__PURE__ */
|
|
31566
|
-
/* @__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" }) }) }),
|
|
31567
31580
|
children
|
|
31568
31581
|
] });
|
|
31569
31582
|
}
|
|
31570
31583
|
|
|
31571
31584
|
// src/components/ZenProvider.tsx
|
|
31572
|
-
import { jsx as
|
|
31585
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
31573
31586
|
function ZenProvider({ children, ...props }) {
|
|
31574
31587
|
const { toast } = props;
|
|
31575
|
-
return /* @__PURE__ */
|
|
31588
|
+
return /* @__PURE__ */ jsx65(ToastProvider, { ...toast, children });
|
|
31576
31589
|
}
|
|
31577
31590
|
export {
|
|
31578
31591
|
Accordion,
|
|
@@ -31618,6 +31631,7 @@ export {
|
|
|
31618
31631
|
Menu,
|
|
31619
31632
|
MenuItem2 as MenuItem,
|
|
31620
31633
|
$3674c52c6b3c5bce$export$27d2ad3c5815583e as MenuTrigger,
|
|
31634
|
+
MobileMenuButton,
|
|
31621
31635
|
Modal,
|
|
31622
31636
|
NavigationMenu,
|
|
31623
31637
|
NavigationMenuItem,
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -2840,7 +2840,7 @@ body a.Button_button__N2NhN {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
|
|
2842
2842
|
/* virtual-css:css:e93e399a7d084c43e7eb6d4a64b3f486 */
|
|
2843
|
-
.
|
|
2843
|
+
.Dialog_dialog__YjBmO {
|
|
2844
2844
|
position: relative;
|
|
2845
2845
|
padding: var(--spacing-6);
|
|
2846
2846
|
box-shadow: var(--box-shadow-4);
|
|
@@ -2849,14 +2849,7 @@ body a.Button_button__N2NhN {
|
|
|
2849
2849
|
border-radius: var(--border-radius);
|
|
2850
2850
|
outline: none;
|
|
2851
2851
|
}
|
|
2852
|
-
.
|
|
2853
|
-
width: 100vw;
|
|
2854
|
-
height: 100vh;
|
|
2855
|
-
border: 0;
|
|
2856
|
-
border-radius: 0;
|
|
2857
|
-
box-shadow: none;
|
|
2858
|
-
}
|
|
2859
|
-
.Dialog_title__Yzc2Y {
|
|
2852
|
+
.Dialog_title__MmNiZ {
|
|
2860
2853
|
font-size: var(--font-size-4);
|
|
2861
2854
|
font-weight: 700;
|
|
2862
2855
|
margin-bottom: var(--spacing-3);
|
|
@@ -3538,6 +3531,22 @@ body a.Button_button__N2NhN {
|
|
|
3538
3531
|
}
|
|
3539
3532
|
}
|
|
3540
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
|
+
|
|
3541
3550
|
/* virtual-css:css:f06faaaaad4324b9459c87ab9d58d827 */
|
|
3542
3551
|
.NavigationMenu_nav__MzRiY {
|
|
3543
3552
|
display: flex;
|