@umami/react-zen 0.24.0 → 0.25.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 +19 -11
- package/dist/index.d.ts +9 -7
- package/dist/index.js +27 -2
- package/dist/index.mjs +92 -67
- package/dist/styles.css +19 -11
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2641,17 +2641,25 @@ body a.Button_button__YmM3M {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
|
|
2643
2643
|
/* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
|
|
2644
|
-
.
|
|
2644
|
+
.List_list__OGNmY {
|
|
2645
2645
|
overflow: hidden;
|
|
2646
2646
|
min-width: 100px;
|
|
2647
2647
|
outline: none;
|
|
2648
2648
|
}
|
|
2649
|
-
.
|
|
2649
|
+
.List_item__ZTAwN {
|
|
2650
2650
|
border: var(--border-radius);
|
|
2651
2651
|
}
|
|
2652
|
-
.
|
|
2652
|
+
.List_separator__ZDRjM {
|
|
2653
2653
|
border-bottom: var(--border);
|
|
2654
2654
|
}
|
|
2655
|
+
.List_section__MjY4N {
|
|
2656
|
+
margin-bottom: var(--spacing-3);
|
|
2657
|
+
}
|
|
2658
|
+
.List_header__ZjI0N {
|
|
2659
|
+
font-size: var(--font-size-2);
|
|
2660
|
+
font-weight: var(--font-weight-bold);
|
|
2661
|
+
padding: var(--padding-y) var(--padding-x);
|
|
2662
|
+
}
|
|
2655
2663
|
|
|
2656
2664
|
/* virtual-css:css:f94974973c639ccc39a8a6465cbebeb2 */
|
|
2657
2665
|
.Popover_popover__YmFhM[data-placement=top] {
|
|
@@ -3450,23 +3458,23 @@ body a.Button_button__YmM3M {
|
|
|
3450
3458
|
}
|
|
3451
3459
|
|
|
3452
3460
|
/* virtual-css:css:10b212fa8a7332a22ad571a388244d38 */
|
|
3453
|
-
.
|
|
3461
|
+
.Tabs_tabs__NTRlO {
|
|
3454
3462
|
font-size: var(--font-size);
|
|
3455
3463
|
color: var(--font-color);
|
|
3456
3464
|
position: relative;
|
|
3457
3465
|
width: 100%;
|
|
3458
3466
|
}
|
|
3459
|
-
.
|
|
3467
|
+
.Tabs_list__Yjc4M {
|
|
3460
3468
|
display: flex;
|
|
3461
3469
|
align-items: center;
|
|
3462
3470
|
border-bottom: 2px solid var(--border-color);
|
|
3463
|
-
gap: var(--
|
|
3471
|
+
gap: var(--spacing-6);
|
|
3464
3472
|
margin-bottom: var(--spacing-6);
|
|
3465
3473
|
}
|
|
3466
|
-
.
|
|
3474
|
+
.Tabs_list__Yjc4M.Tabs_quiet__ZTViO {
|
|
3467
3475
|
border: 0;
|
|
3468
3476
|
}
|
|
3469
|
-
.
|
|
3477
|
+
.Tabs_tab__OTEyN {
|
|
3470
3478
|
display: flex;
|
|
3471
3479
|
align-items: center;
|
|
3472
3480
|
justify-content: center;
|
|
@@ -3477,14 +3485,14 @@ body a.Button_button__YmM3M {
|
|
|
3477
3485
|
margin: 0 0 -2px 0;
|
|
3478
3486
|
cursor: pointer;
|
|
3479
3487
|
}
|
|
3480
|
-
.
|
|
3488
|
+
.Tabs_tab__OTEyN:hover {
|
|
3481
3489
|
color: var(--font-color);
|
|
3482
3490
|
}
|
|
3483
|
-
.
|
|
3491
|
+
.Tabs_tab__OTEyN[data-selected] {
|
|
3484
3492
|
color: var(--font-color);
|
|
3485
3493
|
border-bottom: 2px solid var(--primary-color);
|
|
3486
3494
|
}
|
|
3487
|
-
.
|
|
3495
|
+
.Tabs_tab__OTEyN[data-disabled] {
|
|
3488
3496
|
color: var(--font-faded-color);
|
|
3489
3497
|
cursor: default;
|
|
3490
3498
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare module '@umami/react-zen' {
|
|
|
44
44
|
import { Icons } from '@umami/react-zen/Icons';
|
|
45
45
|
import { InlineEditField } from '@umami/react-zen/InlineEditField';
|
|
46
46
|
import { Label } from '@umami/react-zen/Label';
|
|
47
|
-
import { List } from '@umami/react-zen/List';
|
|
47
|
+
import { List, ListSeparator, ListSection } from '@umami/react-zen/List';
|
|
48
48
|
import { ListItem } from '@umami/react-zen/ListItem';
|
|
49
49
|
import { Loading } from '@umami/react-zen/Loading';
|
|
50
50
|
import { LoadingButton } from '@umami/react-zen/LoadingButton';
|
|
@@ -76,7 +76,7 @@ declare module '@umami/react-zen' {
|
|
|
76
76
|
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
77
77
|
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
78
78
|
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
79
|
-
export { Form, FormField, FormResetButton, FormSubmitButton, 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, Loading, LoadingButton, Menu, MenuItem, MenuTrigger, Modal, NavigationMenu, NavigationMenuItem, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
79
|
+
export { Form, FormField, FormResetButton, FormSubmitButton, 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, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
declare module '@umami/react-zen/hooks/useDebounce' {
|
|
@@ -479,15 +479,17 @@ declare module '@umami/react-zen/Label' {
|
|
|
479
479
|
|
|
480
480
|
declare module '@umami/react-zen/List' {
|
|
481
481
|
import { ReactNode } from 'react';
|
|
482
|
-
import { ListBoxProps } from 'react-aria-components';
|
|
483
|
-
interface ListProps extends ListBoxProps<any> {
|
|
482
|
+
import { ListBoxProps, SeparatorProps, ListBoxSectionProps } from 'react-aria-components';
|
|
483
|
+
export interface ListProps extends ListBoxProps<any> {
|
|
484
484
|
items?: any[];
|
|
485
485
|
className?: string;
|
|
486
486
|
children?: ReactNode;
|
|
487
487
|
}
|
|
488
|
-
function List({ items, className, children, ...props }: ListProps): import("react").JSX.Element;
|
|
489
|
-
export {
|
|
490
|
-
export
|
|
488
|
+
export function List({ items, className, children, ...props }: ListProps): import("react").JSX.Element;
|
|
489
|
+
export function ListSeparator({ className, ...props }: SeparatorProps): import("react").JSX.Element;
|
|
490
|
+
export function ListSection({ title, className, children, ...props }: ListBoxSectionProps<any> & {
|
|
491
|
+
title?: string;
|
|
492
|
+
}): ReactNode;
|
|
491
493
|
}
|
|
492
494
|
|
|
493
495
|
declare module '@umami/react-zen/ListItem' {
|
package/dist/index.js
CHANGED
|
@@ -475,6 +475,8 @@ __export(components_exports, {
|
|
|
475
475
|
Label: () => Label,
|
|
476
476
|
List: () => List,
|
|
477
477
|
ListItem: () => ListItem,
|
|
478
|
+
ListSection: () => ListSection,
|
|
479
|
+
ListSeparator: () => ListSeparator,
|
|
478
480
|
Loading: () => Loading,
|
|
479
481
|
LoadingButton: () => LoadingButton,
|
|
480
482
|
Menu: () => Menu,
|
|
@@ -20695,6 +20697,14 @@ function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropH
|
|
|
20695
20697
|
// node_modules/react-aria-components/dist/Header.mjs
|
|
20696
20698
|
var import_react118 = __toESM(require("react"), 1);
|
|
20697
20699
|
var $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ (0, import_react118.createContext)({});
|
|
20700
|
+
var $72a5793c14baf454$export$8b251419efc915eb = /* @__PURE__ */ (0, $e1995378a142960e$export$18af5c7a9e9b3664)("header", function Header(props, ref) {
|
|
20701
|
+
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb);
|
|
20702
|
+
return /* @__PURE__ */ (0, import_react118.default).createElement("header", {
|
|
20703
|
+
className: "react-aria-Header",
|
|
20704
|
+
...props,
|
|
20705
|
+
ref
|
|
20706
|
+
}, props.children);
|
|
20707
|
+
});
|
|
20698
20708
|
|
|
20699
20709
|
// node_modules/react-aria-components/dist/Separator.mjs
|
|
20700
20710
|
var import_react119 = __toESM(require("react"), 1);
|
|
@@ -20955,6 +20965,7 @@ function $eed445e0843c11d0$var$ListBoxSection(props, ref, section, className = "
|
|
|
20955
20965
|
renderDropIndicator: (0, $612b8eb6cb90e02d$export$971707d8a129a1f7)(dragAndDropHooks, dropState)
|
|
20956
20966
|
})));
|
|
20957
20967
|
}
|
|
20968
|
+
var $eed445e0843c11d0$export$dca12b0bb56e4fc = /* @__PURE__ */ (0, $e1995378a142960e$export$e953bb1cd0f19726)("section", $eed445e0843c11d0$var$ListBoxSection);
|
|
20958
20969
|
var $eed445e0843c11d0$export$a11e76429ed99b4 = /* @__PURE__ */ (0, $e1995378a142960e$export$18af5c7a9e9b3664)("item", function ListBoxItem(props, forwardedRef, item) {
|
|
20959
20970
|
let ref = (0, $df56164dff5785e2$export$4338b53315abf666)(forwardedRef);
|
|
20960
20971
|
let state = (0, import_react120.useContext)($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
@@ -27147,7 +27158,7 @@ function ListItem({ children, className, ...props }) {
|
|
|
27147
27158
|
}
|
|
27148
27159
|
|
|
27149
27160
|
// css-modules:E:\dev\umami-react-zen\src\components\List.module.css
|
|
27150
|
-
var List_default = { "list": "
|
|
27161
|
+
var List_default = { "list": "List_list__OGNmY", "item": "List_item__ZTAwN", "separator": "List_separator__ZDRjM", "section": "List_section__MjY4N", "header": "List_header__ZjI0N" };
|
|
27151
27162
|
|
|
27152
27163
|
// src/components/List.tsx
|
|
27153
27164
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
@@ -27159,6 +27170,20 @@ function List({ items, className, children, ...props }) {
|
|
|
27159
27170
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ListItem, { id: item, className: List_default.item, children: item }, index);
|
|
27160
27171
|
}) });
|
|
27161
27172
|
}
|
|
27173
|
+
function ListSeparator({ className, ...props }) {
|
|
27174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames17.default)(List_default.separator, className) });
|
|
27175
|
+
}
|
|
27176
|
+
function ListSection({
|
|
27177
|
+
title,
|
|
27178
|
+
className,
|
|
27179
|
+
children,
|
|
27180
|
+
...props
|
|
27181
|
+
}) {
|
|
27182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames17.default)(List_default.section, className), children: [
|
|
27183
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
27184
|
+
children
|
|
27185
|
+
] });
|
|
27186
|
+
}
|
|
27162
27187
|
|
|
27163
27188
|
// src/components/Popover.tsx
|
|
27164
27189
|
var import_classnames18 = __toESM(require_classnames());
|
|
@@ -28046,7 +28071,7 @@ var Switch = (0, import_react168.forwardRef)(
|
|
|
28046
28071
|
);
|
|
28047
28072
|
|
|
28048
28073
|
// css-modules:E:\dev\umami-react-zen\src\components\Tabs.module.css
|
|
28049
|
-
var Tabs_default = { "tabs": "
|
|
28074
|
+
var Tabs_default = { "tabs": "Tabs_tabs__NTRlO", "list": "Tabs_list__Yjc4M", "quiet": "Tabs_quiet__ZTViO", "tab": "Tabs_tab__OTEyN" };
|
|
28050
28075
|
|
|
28051
28076
|
// src/components/Tabs.tsx
|
|
28052
28077
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
package/dist/index.mjs
CHANGED
|
@@ -20598,6 +20598,14 @@ function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropH
|
|
|
20598
20598
|
// node_modules/react-aria-components/dist/Header.mjs
|
|
20599
20599
|
import $i47tY$react, { createContext as $i47tY$createContext } from "react";
|
|
20600
20600
|
var $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ (0, $i47tY$createContext)({});
|
|
20601
|
+
var $72a5793c14baf454$export$8b251419efc915eb = /* @__PURE__ */ (0, $e1995378a142960e$export$18af5c7a9e9b3664)("header", function Header(props, ref) {
|
|
20602
|
+
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb);
|
|
20603
|
+
return /* @__PURE__ */ (0, $i47tY$react).createElement("header", {
|
|
20604
|
+
className: "react-aria-Header",
|
|
20605
|
+
...props,
|
|
20606
|
+
ref
|
|
20607
|
+
}, props.children);
|
|
20608
|
+
});
|
|
20601
20609
|
|
|
20602
20610
|
// node_modules/react-aria-components/dist/Separator.mjs
|
|
20603
20611
|
import $i9JCE$react, { createContext as $i9JCE$createContext } from "react";
|
|
@@ -20858,6 +20866,7 @@ function $eed445e0843c11d0$var$ListBoxSection(props, ref, section, className = "
|
|
|
20858
20866
|
renderDropIndicator: (0, $612b8eb6cb90e02d$export$971707d8a129a1f7)(dragAndDropHooks, dropState)
|
|
20859
20867
|
})));
|
|
20860
20868
|
}
|
|
20869
|
+
var $eed445e0843c11d0$export$dca12b0bb56e4fc = /* @__PURE__ */ (0, $e1995378a142960e$export$e953bb1cd0f19726)("section", $eed445e0843c11d0$var$ListBoxSection);
|
|
20861
20870
|
var $eed445e0843c11d0$export$a11e76429ed99b4 = /* @__PURE__ */ (0, $e1995378a142960e$export$18af5c7a9e9b3664)("item", function ListBoxItem(props, forwardedRef, item) {
|
|
20862
20871
|
let ref = (0, $df56164dff5785e2$export$4338b53315abf666)(forwardedRef);
|
|
20863
20872
|
let state = (0, $e8Bmu$useContext)($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
@@ -27048,10 +27057,10 @@ function ListItem({ children, className, ...props }) {
|
|
|
27048
27057
|
}
|
|
27049
27058
|
|
|
27050
27059
|
// css-modules:E:\dev\umami-react-zen\src\components\List.module.css
|
|
27051
|
-
var List_default = { "list": "
|
|
27060
|
+
var List_default = { "list": "List_list__OGNmY", "item": "List_item__ZTAwN", "separator": "List_separator__ZDRjM", "section": "List_section__MjY4N", "header": "List_header__ZjI0N" };
|
|
27052
27061
|
|
|
27053
27062
|
// src/components/List.tsx
|
|
27054
|
-
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
27063
|
+
import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
27055
27064
|
function List({ items, className, children, ...props }) {
|
|
27056
27065
|
return /* @__PURE__ */ jsx25($eed445e0843c11d0$export$41f133550aa26f48, { ...props, items, className: (0, import_classnames17.default)(List_default.list, className), children: children || items?.map((item, index) => {
|
|
27057
27066
|
if (item === null) {
|
|
@@ -27060,6 +27069,20 @@ function List({ items, className, children, ...props }) {
|
|
|
27060
27069
|
return /* @__PURE__ */ jsx25(ListItem, { id: item, className: List_default.item, children: item }, index);
|
|
27061
27070
|
}) });
|
|
27062
27071
|
}
|
|
27072
|
+
function ListSeparator({ className, ...props }) {
|
|
27073
|
+
return /* @__PURE__ */ jsx25($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames17.default)(List_default.separator, className) });
|
|
27074
|
+
}
|
|
27075
|
+
function ListSection({
|
|
27076
|
+
title,
|
|
27077
|
+
className,
|
|
27078
|
+
children,
|
|
27079
|
+
...props
|
|
27080
|
+
}) {
|
|
27081
|
+
return /* @__PURE__ */ jsxs13($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames17.default)(List_default.section, className), children: [
|
|
27082
|
+
title && /* @__PURE__ */ jsx25($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
27083
|
+
children
|
|
27084
|
+
] });
|
|
27085
|
+
}
|
|
27063
27086
|
|
|
27064
27087
|
// src/components/Popover.tsx
|
|
27065
27088
|
var import_classnames18 = __toESM(require_classnames());
|
|
@@ -27077,10 +27100,10 @@ function Popover({ children, className, ...props }) {
|
|
|
27077
27100
|
var Combobox_default = { "combobox": "Combobox_combobox__YzBkN", "field": "Combobox_field__NTRmY", "input": "Combobox_input__MTkxZ", "button": "Combobox_button__ZTcwY", "list": "Combobox_list__MzViM", "icon": "Combobox_icon__ZDk4Z" };
|
|
27078
27101
|
|
|
27079
27102
|
// src/components/Combobox.tsx
|
|
27080
|
-
import { jsx as jsx27, jsxs as
|
|
27103
|
+
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
27081
27104
|
function Combobox({ items, className, ...props }) {
|
|
27082
|
-
return /* @__PURE__ */
|
|
27083
|
-
/* @__PURE__ */
|
|
27105
|
+
return /* @__PURE__ */ jsxs14($d01f2c01039c0eec$export$72b9695b8216309a, { ...props, className: (0, import_classnames19.default)(Combobox_default.combobox, className), children: [
|
|
27106
|
+
/* @__PURE__ */ jsxs14("div", { className: Combobox_default.field, children: [
|
|
27084
27107
|
/* @__PURE__ */ jsx27($3985021b0ad6602f$export$f5b8910cec6cf069, { className: Combobox_default.input }),
|
|
27085
27108
|
/* @__PURE__ */ jsx27($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: Combobox_default.button, children: /* @__PURE__ */ jsx27(Icon, { rotate: 90, size: "xs", className: Combobox_default.icon, children: /* @__PURE__ */ jsx27(Icons.Chevron, {}) }) })
|
|
27086
27109
|
] }),
|
|
@@ -27169,7 +27192,7 @@ var input_default = { "field": "input_field__NWJiY", "row": "input_row__ZjAzO",
|
|
|
27169
27192
|
var TextField_default = { "allowCopy": "TextField_allowCopy__Yjc3Y", "icon": "TextField_icon__OWIxY" };
|
|
27170
27193
|
|
|
27171
27194
|
// src/components/TextField.tsx
|
|
27172
|
-
import { jsx as jsx31, jsxs as
|
|
27195
|
+
import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
27173
27196
|
var TextField = forwardRef5(
|
|
27174
27197
|
({
|
|
27175
27198
|
value,
|
|
@@ -27192,7 +27215,7 @@ var TextField = forwardRef5(
|
|
|
27192
27215
|
useEffect3(() => {
|
|
27193
27216
|
setInputValue(value);
|
|
27194
27217
|
}, [value]);
|
|
27195
|
-
return /* @__PURE__ */
|
|
27218
|
+
return /* @__PURE__ */ jsxs15(
|
|
27196
27219
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
27197
27220
|
{
|
|
27198
27221
|
...props,
|
|
@@ -27201,7 +27224,7 @@ var TextField = forwardRef5(
|
|
|
27201
27224
|
className: (0, import_classnames23.default)(input_default.field, className),
|
|
27202
27225
|
children: [
|
|
27203
27226
|
label && /* @__PURE__ */ jsx31(Label, { children: label }),
|
|
27204
|
-
/* @__PURE__ */
|
|
27227
|
+
/* @__PURE__ */ jsxs15("div", { className: input_default.row, children: [
|
|
27205
27228
|
/* @__PURE__ */ jsx31(
|
|
27206
27229
|
Component,
|
|
27207
27230
|
{
|
|
@@ -27223,7 +27246,7 @@ var TextField = forwardRef5(
|
|
|
27223
27246
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__M2YwO", "value": "ConfirmationDialog_value__OWE1O" };
|
|
27224
27247
|
|
|
27225
27248
|
// src/components/ConfirmationDialog.tsx
|
|
27226
|
-
import { Fragment as Fragment4, jsx as jsx32, jsxs as
|
|
27249
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
27227
27250
|
function ConfirmationDialog({
|
|
27228
27251
|
value,
|
|
27229
27252
|
confirmMessage,
|
|
@@ -27242,9 +27265,9 @@ function ConfirmationDialog({
|
|
|
27242
27265
|
className: (0, import_classnames24.default)(ConfirmationDialog_default.dialog, className),
|
|
27243
27266
|
isConfirmDisabled: !canSave,
|
|
27244
27267
|
children: ({ close }) => {
|
|
27245
|
-
return /* @__PURE__ */
|
|
27268
|
+
return /* @__PURE__ */ jsxs16(Fragment4, { children: [
|
|
27246
27269
|
typeof children === "function" ? children({ close }) : children,
|
|
27247
|
-
/* @__PURE__ */
|
|
27270
|
+
/* @__PURE__ */ jsxs16(Text, { children: [
|
|
27248
27271
|
confirmMessage || "Type the following value to confirm",
|
|
27249
27272
|
":"
|
|
27250
27273
|
] }),
|
|
@@ -27299,14 +27322,14 @@ function TableCell({ children, className, alignment, ...props }) {
|
|
|
27299
27322
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
27300
27323
|
|
|
27301
27324
|
// src/components/DataTable.tsx
|
|
27302
|
-
import { jsx as jsx34, jsxs as
|
|
27325
|
+
import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
27303
27326
|
import { createElement as createElement3 } from "react";
|
|
27304
27327
|
function DataTable({ data = [], className, children, ...props }) {
|
|
27305
27328
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((record, id) => ({ ...record, id })) : data;
|
|
27306
27329
|
const columns = Children3.map(children, (child) => {
|
|
27307
27330
|
return { ...child.props };
|
|
27308
27331
|
});
|
|
27309
|
-
return /* @__PURE__ */
|
|
27332
|
+
return /* @__PURE__ */ jsxs17(Table, { ...props, className: (0, import_classnames26.default)(DataTable_default.datatable, className), children: [
|
|
27310
27333
|
/* @__PURE__ */ jsx34(TableHeader, { children: columns.map(({ id, label, as, hidden, ...columnProps }) => {
|
|
27311
27334
|
if (hidden) {
|
|
27312
27335
|
return null;
|
|
@@ -27333,9 +27356,9 @@ var import_classnames27 = __toESM(require_classnames());
|
|
|
27333
27356
|
var Dots_default = { "dots": "Dots_dots__NzQ0Z", "dot": "Dots_dot__MDk2Z", "dots-blink": "Dots_dots-blink__M2M4Z" };
|
|
27334
27357
|
|
|
27335
27358
|
// src/components/Dots.tsx
|
|
27336
|
-
import { jsx as jsx35, jsxs as
|
|
27359
|
+
import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
27337
27360
|
function Dots({ className, ...props }) {
|
|
27338
|
-
return /* @__PURE__ */
|
|
27361
|
+
return /* @__PURE__ */ jsxs18("div", { ...props, className: (0, import_classnames27.default)(Dots_default.dots, className), children: [
|
|
27339
27362
|
/* @__PURE__ */ jsx35("div", { className: Dots_default.dot }),
|
|
27340
27363
|
/* @__PURE__ */ jsx35("div", { className: Dots_default.dot }),
|
|
27341
27364
|
/* @__PURE__ */ jsx35("div", { className: Dots_default.dot })
|
|
@@ -27422,7 +27445,7 @@ import { useRef as useRef2, useState as useState6, useEffect as useEffect4 } fro
|
|
|
27422
27445
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
27423
27446
|
|
|
27424
27447
|
// src/components/HoverTrigger.tsx
|
|
27425
|
-
import { Fragment as Fragment5, jsx as jsx38, jsxs as
|
|
27448
|
+
import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
27426
27449
|
var CLOSE_DELAY = 500;
|
|
27427
27450
|
function HoverTrigger({
|
|
27428
27451
|
isOpen,
|
|
@@ -27471,7 +27494,7 @@ function HoverTrigger({
|
|
|
27471
27494
|
}
|
|
27472
27495
|
}, closeDelay);
|
|
27473
27496
|
};
|
|
27474
|
-
return /* @__PURE__ */
|
|
27497
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
27475
27498
|
/* @__PURE__ */ jsx38("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
27476
27499
|
/* @__PURE__ */ jsx38(Popover, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx38(
|
|
27477
27500
|
"div",
|
|
@@ -27493,7 +27516,7 @@ import { useState as useState7, useCallback as useCallback2 } from "react";
|
|
|
27493
27516
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
27494
27517
|
|
|
27495
27518
|
// src/components/InlineEditField.tsx
|
|
27496
|
-
import { jsx as jsx39, jsxs as
|
|
27519
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
27497
27520
|
function InlineEditField({
|
|
27498
27521
|
value: defaultValue = "",
|
|
27499
27522
|
defaultEdit,
|
|
@@ -27528,7 +27551,7 @@ function InlineEditField({
|
|
|
27528
27551
|
handleCancel();
|
|
27529
27552
|
}
|
|
27530
27553
|
};
|
|
27531
|
-
return /* @__PURE__ */
|
|
27554
|
+
return /* @__PURE__ */ jsxs20(
|
|
27532
27555
|
"div",
|
|
27533
27556
|
{
|
|
27534
27557
|
"aria-label": "Edit",
|
|
@@ -27560,10 +27583,10 @@ var import_classnames31 = __toESM(require_classnames());
|
|
|
27560
27583
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
27561
27584
|
|
|
27562
27585
|
// src/components/Loading.tsx
|
|
27563
|
-
import { jsx as jsx40, jsxs as
|
|
27586
|
+
import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
27564
27587
|
function Loading(props) {
|
|
27565
27588
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
27566
|
-
return /* @__PURE__ */
|
|
27589
|
+
return /* @__PURE__ */ jsxs21("div", { ...domProps, className: (0, import_classnames31.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
27567
27590
|
icon === "dots" && /* @__PURE__ */ jsx40(Dots, {}),
|
|
27568
27591
|
icon === "spinner" && /* @__PURE__ */ jsx40(Spinner, { size })
|
|
27569
27592
|
] });
|
|
@@ -27579,9 +27602,9 @@ var import_classnames32 = __toESM(require_classnames());
|
|
|
27579
27602
|
var MenuItem_default = { "item": "MenuItem_item__ODRhY", "check": "MenuItem_check__MDU0O" };
|
|
27580
27603
|
|
|
27581
27604
|
// src/components/MenuItem.tsx
|
|
27582
|
-
import { jsx as jsx41, jsxs as
|
|
27605
|
+
import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
27583
27606
|
function MenuItem2({ children, className, ...props }) {
|
|
27584
|
-
return /* @__PURE__ */
|
|
27607
|
+
return /* @__PURE__ */ jsxs22($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames32.default)(MenuItem_default.item, className), children: [
|
|
27585
27608
|
children,
|
|
27586
27609
|
/* @__PURE__ */ jsx41("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx41(Icon, { className: MenuItem_default.check, children: /* @__PURE__ */ jsx41(Icons.Check, {}) }) })
|
|
27587
27610
|
] });
|
|
@@ -27636,7 +27659,7 @@ var useNavigationMenu = store3;
|
|
|
27636
27659
|
var NavigationMenu_default = { "nav": "NavigationMenu_nav__Y2I5M", "item": "NavigationMenu_item__NTg4Z", "icon": "NavigationMenu_icon__ZmU5N" };
|
|
27637
27660
|
|
|
27638
27661
|
// src/components/NavigationMenu.tsx
|
|
27639
|
-
import { jsx as jsx44, jsxs as
|
|
27662
|
+
import { jsx as jsx44, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
27640
27663
|
function NavigationMenu({
|
|
27641
27664
|
showArrow = true,
|
|
27642
27665
|
className,
|
|
@@ -27653,8 +27676,8 @@ function NavigationMenuItem({
|
|
|
27653
27676
|
}) {
|
|
27654
27677
|
const { activeMenu } = useNavigationMenu();
|
|
27655
27678
|
if (label) {
|
|
27656
|
-
return /* @__PURE__ */
|
|
27657
|
-
/* @__PURE__ */
|
|
27679
|
+
return /* @__PURE__ */ jsxs23(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
27680
|
+
/* @__PURE__ */ jsxs23("div", { ...props, className: (0, import_classnames35.default)(NavigationMenu_default.item, className), children: [
|
|
27658
27681
|
/* @__PURE__ */ jsx44(Text, { children: label }),
|
|
27659
27682
|
/* @__PURE__ */ jsx44(Icon, { rotate: 90, size: "xs", className: NavigationMenu_default.icon, children: /* @__PURE__ */ jsx44(Icons.Chevron, {}) })
|
|
27660
27683
|
] }),
|
|
@@ -27672,15 +27695,15 @@ var import_classnames36 = __toESM(require_classnames());
|
|
|
27672
27695
|
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
27673
27696
|
|
|
27674
27697
|
// src/components/PasswordField.tsx
|
|
27675
|
-
import { jsx as jsx45, jsxs as
|
|
27698
|
+
import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
27676
27699
|
var PasswordField = forwardRef6(
|
|
27677
27700
|
({ label, className, ...props }, ref) => {
|
|
27678
27701
|
const [show, setShow] = useState8(false);
|
|
27679
27702
|
const type = show ? "text" : "password";
|
|
27680
27703
|
const handleShowPassword = () => setShow((state) => !state);
|
|
27681
|
-
return /* @__PURE__ */
|
|
27704
|
+
return /* @__PURE__ */ jsxs24($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames36.default)(input_default.field, className), children: [
|
|
27682
27705
|
label && /* @__PURE__ */ jsx45(Label, { children: label }),
|
|
27683
|
-
/* @__PURE__ */
|
|
27706
|
+
/* @__PURE__ */ jsxs24("div", { className: input_default.row, children: [
|
|
27684
27707
|
/* @__PURE__ */ jsx45($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
27685
27708
|
/* @__PURE__ */ jsx45(Icon, { onClick: handleShowPassword, className: (0, import_classnames36.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ jsx45(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx45(Icons.Eye, {}) })
|
|
27686
27709
|
] })
|
|
@@ -27695,10 +27718,10 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
27695
27718
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__MTQ2N", "track": "ProgressBar_track__YzI3M", "fill": "ProgressBar_fill__MGQ3N", "value": "ProgressBar_value__MmIxN" };
|
|
27696
27719
|
|
|
27697
27720
|
// src/components/ProgressBar.tsx
|
|
27698
|
-
import { Fragment as Fragment6, jsx as jsx46, jsxs as
|
|
27721
|
+
import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
27699
27722
|
function ProgressBar({ className, showValue, ...props }) {
|
|
27700
27723
|
return /* @__PURE__ */ jsx46($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames37.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
27701
|
-
return /* @__PURE__ */
|
|
27724
|
+
return /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
27702
27725
|
/* @__PURE__ */ jsx46("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx46("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
27703
27726
|
showValue && /* @__PURE__ */ jsx46("div", { className: ProgressBar_default.value, children: valueText })
|
|
27704
27727
|
] });
|
|
@@ -27712,14 +27735,14 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
27712
27735
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__Y2RjZ", "track": "ProgressCircle_track__ZTIzM", "fill": "ProgressCircle_fill__MzM1Y", "value": "ProgressCircle_value__MWMwN" };
|
|
27713
27736
|
|
|
27714
27737
|
// src/components/ProgressCircle.tsx
|
|
27715
|
-
import { Fragment as Fragment7, jsx as jsx47, jsxs as
|
|
27738
|
+
import { Fragment as Fragment7, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
27716
27739
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
27717
27740
|
return /* @__PURE__ */ jsx47($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames38.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
27718
27741
|
const radius = 45;
|
|
27719
27742
|
const circumference = radius * 2 * Math.PI;
|
|
27720
27743
|
const offset = circumference - percentage / 100 * circumference;
|
|
27721
|
-
return /* @__PURE__ */
|
|
27722
|
-
/* @__PURE__ */
|
|
27744
|
+
return /* @__PURE__ */ jsxs26(Fragment7, { children: [
|
|
27745
|
+
/* @__PURE__ */ jsxs26("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
27723
27746
|
/* @__PURE__ */ jsx47("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
27724
27747
|
/* @__PURE__ */ jsx47(
|
|
27725
27748
|
"circle",
|
|
@@ -27746,10 +27769,10 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
27746
27769
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__YWY5M", "radio": "RadioGroup_radio__Mjk2O" };
|
|
27747
27770
|
|
|
27748
27771
|
// src/components/RadioGroup.tsx
|
|
27749
|
-
import { jsx as jsx48, jsxs as
|
|
27772
|
+
import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
27750
27773
|
var RadioGroup = forwardRef7(
|
|
27751
27774
|
({ label, children, className, ...props }, ref) => {
|
|
27752
|
-
return /* @__PURE__ */
|
|
27775
|
+
return /* @__PURE__ */ jsxs27($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames39.default)(RadioGroup_default.radiogroup, className), children: [
|
|
27753
27776
|
label && /* @__PURE__ */ jsx48(Label, { children: label }),
|
|
27754
27777
|
children
|
|
27755
27778
|
] });
|
|
@@ -27767,7 +27790,7 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
27767
27790
|
var SearchField_default = { "search": "SearchField_search__Njc3N", "input": "SearchField_input__YzFlZ", "close": "SearchField_close__ZWM5Y" };
|
|
27768
27791
|
|
|
27769
27792
|
// src/components/SearchField.tsx
|
|
27770
|
-
import { Fragment as Fragment8, jsx as jsx49, jsxs as
|
|
27793
|
+
import { Fragment as Fragment8, jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
27771
27794
|
var SearchField = forwardRef8(
|
|
27772
27795
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
27773
27796
|
const [search, setSearch] = useState9(value ?? "");
|
|
@@ -27789,9 +27812,9 @@ var SearchField = forwardRef8(
|
|
|
27789
27812
|
}
|
|
27790
27813
|
}, [searchValue, delay, onSearch]);
|
|
27791
27814
|
return /* @__PURE__ */ jsx49($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames40.default)(input_default.field, className), children: ({ state }) => {
|
|
27792
|
-
return /* @__PURE__ */
|
|
27815
|
+
return /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
27793
27816
|
label && /* @__PURE__ */ jsx49(Label, { children: label }),
|
|
27794
|
-
/* @__PURE__ */
|
|
27817
|
+
/* @__PURE__ */ jsxs28("div", { className: input_default.row, children: [
|
|
27795
27818
|
/* @__PURE__ */ jsx49(Icons.MagnifyingGlass, { className: (0, import_classnames40.default)(SearchField_default.search, input_default.icon) }),
|
|
27796
27819
|
/* @__PURE__ */ jsx49(
|
|
27797
27820
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
@@ -27822,7 +27845,7 @@ import { forwardRef as forwardRef9 } from "react";
|
|
|
27822
27845
|
var Select_default = { "button": "Select_button__YTJhM", "list": "Select_list__ODlhZ", "icon": "Select_icon__ZjQwY" };
|
|
27823
27846
|
|
|
27824
27847
|
// src/components/Select.tsx
|
|
27825
|
-
import { jsx as jsx50, jsxs as
|
|
27848
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
27826
27849
|
var Select = forwardRef9(
|
|
27827
27850
|
({
|
|
27828
27851
|
children,
|
|
@@ -27838,7 +27861,7 @@ var Select = forwardRef9(
|
|
|
27838
27861
|
onSelectionChange?.(e);
|
|
27839
27862
|
onChange?.(e);
|
|
27840
27863
|
};
|
|
27841
|
-
return /* @__PURE__ */
|
|
27864
|
+
return /* @__PURE__ */ jsxs29(
|
|
27842
27865
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
27843
27866
|
{
|
|
27844
27867
|
...props,
|
|
@@ -27847,7 +27870,7 @@ var Select = forwardRef9(
|
|
|
27847
27870
|
onSelectionChange: handleChange,
|
|
27848
27871
|
children: [
|
|
27849
27872
|
label && /* @__PURE__ */ jsx50(Label, { children: label }),
|
|
27850
|
-
/* @__PURE__ */ jsx50($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames41.default)(input_default.input, className), children: /* @__PURE__ */
|
|
27873
|
+
/* @__PURE__ */ jsx50($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames41.default)(input_default.input, className), children: /* @__PURE__ */ jsxs29(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
27851
27874
|
/* @__PURE__ */ jsx50($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
27852
27875
|
/* @__PURE__ */ jsx50("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx50(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ jsx50(Icons.Chevron, {}) }) })
|
|
27853
27876
|
] }) }),
|
|
@@ -27866,17 +27889,17 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
27866
27889
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
27867
27890
|
|
|
27868
27891
|
// src/components/Slider.tsx
|
|
27869
|
-
import { Fragment as Fragment9, jsx as jsx51, jsxs as
|
|
27892
|
+
import { Fragment as Fragment9, jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
27870
27893
|
var Slider = forwardRef10(
|
|
27871
27894
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
27872
|
-
return /* @__PURE__ */
|
|
27873
|
-
/* @__PURE__ */
|
|
27895
|
+
return /* @__PURE__ */ jsxs30($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames42.default)(Slider_default.slider, className), children: [
|
|
27896
|
+
/* @__PURE__ */ jsxs30("div", { className: Slider_default.header, children: [
|
|
27874
27897
|
label && /* @__PURE__ */ jsx51(Label, { className: Slider_default.label, children: label }),
|
|
27875
27898
|
showValue && /* @__PURE__ */ jsx51($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
27876
27899
|
] }),
|
|
27877
27900
|
/* @__PURE__ */ jsx51($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
27878
27901
|
const isHorizontal = state.orientation === "horizontal";
|
|
27879
|
-
return /* @__PURE__ */
|
|
27902
|
+
return /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
27880
27903
|
/* @__PURE__ */ jsx51(
|
|
27881
27904
|
"div",
|
|
27882
27905
|
{
|
|
@@ -27900,10 +27923,10 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
27900
27923
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__MmJmM", "status": "StatusLight_status__YTQ4M", "bg": "StatusLight_bg__N2QyO", "success": "StatusLight_success__Njk1N", "warning": "StatusLight_warning__YTEyN", "error": "StatusLight_error__MzdjZ", "active": "StatusLight_active__YTdjM", "inactive": "StatusLight_inactive__ODZiY" };
|
|
27901
27924
|
|
|
27902
27925
|
// src/components/StatusLight.tsx
|
|
27903
|
-
import { jsx as jsx52, jsxs as
|
|
27926
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
27904
27927
|
function StatusLight(props) {
|
|
27905
27928
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
27906
|
-
return /* @__PURE__ */
|
|
27929
|
+
return /* @__PURE__ */ jsxs31("div", { ...domProps, className: (0, import_classnames43.default)(StatusLight_default.statuslight, className), children: [
|
|
27907
27930
|
/* @__PURE__ */ jsx52("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx52(
|
|
27908
27931
|
"div",
|
|
27909
27932
|
{
|
|
@@ -27923,13 +27946,13 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
27923
27946
|
var Switch_default = { "switch": "Switch_switch__MjQzO", "track": "Switch_track__MDhkO", "knob": "Switch_knob__YWVhM" };
|
|
27924
27947
|
|
|
27925
27948
|
// src/components/Switch.tsx
|
|
27926
|
-
import { Fragment as Fragment10, jsx as jsx53, jsxs as
|
|
27949
|
+
import { Fragment as Fragment10, jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
27927
27950
|
var Switch = forwardRef11(
|
|
27928
27951
|
({ label, children, className, ...props }, ref) => {
|
|
27929
27952
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
27930
|
-
return /* @__PURE__ */
|
|
27953
|
+
return /* @__PURE__ */ jsxs32(Fragment10, { children: [
|
|
27931
27954
|
label && /* @__PURE__ */ jsx53(Label, { children: label }),
|
|
27932
|
-
/* @__PURE__ */
|
|
27955
|
+
/* @__PURE__ */ jsxs32(
|
|
27933
27956
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
27934
27957
|
{
|
|
27935
27958
|
...props,
|
|
@@ -27947,7 +27970,7 @@ var Switch = forwardRef11(
|
|
|
27947
27970
|
);
|
|
27948
27971
|
|
|
27949
27972
|
// css-modules:E:\dev\umami-react-zen\src\components\Tabs.module.css
|
|
27950
|
-
var Tabs_default = { "tabs": "
|
|
27973
|
+
var Tabs_default = { "tabs": "Tabs_tabs__NTRlO", "list": "Tabs_list__Yjc4M", "quiet": "Tabs_quiet__ZTViO", "tab": "Tabs_tab__OTEyN" };
|
|
27951
27974
|
|
|
27952
27975
|
// src/components/Tabs.tsx
|
|
27953
27976
|
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
@@ -28702,7 +28725,7 @@ var VisuallyHidden = React18.forwardRef(
|
|
|
28702
28725
|
VisuallyHidden.displayName = NAME;
|
|
28703
28726
|
|
|
28704
28727
|
// node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
28705
|
-
import { Fragment as Fragment11, jsx as jsx64, jsxs as
|
|
28728
|
+
import { Fragment as Fragment11, jsx as jsx64, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
28706
28729
|
var PROVIDER_NAME = "ToastProvider";
|
|
28707
28730
|
var [Collection, useCollection, createCollectionScope] = createCollection("Toast");
|
|
28708
28731
|
var [createToastContext, createToastScope] = createContextScope2("Toast", [createCollectionScope]);
|
|
@@ -28856,7 +28879,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
28856
28879
|
return () => viewport.removeEventListener("keydown", handleKeyDown);
|
|
28857
28880
|
}
|
|
28858
28881
|
}, [getItems, getSortedTabbableCandidates]);
|
|
28859
|
-
return /* @__PURE__ */
|
|
28882
|
+
return /* @__PURE__ */ jsxs33(
|
|
28860
28883
|
Branch,
|
|
28861
28884
|
{
|
|
28862
28885
|
ref: wrapperRef,
|
|
@@ -29048,7 +29071,7 @@ var ToastImpl = React19.forwardRef(
|
|
|
29048
29071
|
return node ? getAnnounceTextContent(node) : null;
|
|
29049
29072
|
}, [node]);
|
|
29050
29073
|
if (!context.viewport) return null;
|
|
29051
|
-
return /* @__PURE__ */
|
|
29074
|
+
return /* @__PURE__ */ jsxs33(Fragment11, { children: [
|
|
29052
29075
|
announceTextContent && /* @__PURE__ */ jsx64(
|
|
29053
29076
|
ToastAnnounce,
|
|
29054
29077
|
{
|
|
@@ -29168,7 +29191,7 @@ var ToastAnnounce = (props) => {
|
|
|
29168
29191
|
const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);
|
|
29169
29192
|
return () => window.clearTimeout(timer);
|
|
29170
29193
|
}, []);
|
|
29171
|
-
return isAnnounced ? null : /* @__PURE__ */ jsx64(Portal, { asChild: true, children: /* @__PURE__ */ jsx64(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */
|
|
29194
|
+
return isAnnounced ? null : /* @__PURE__ */ jsx64(Portal, { asChild: true, children: /* @__PURE__ */ jsx64(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs33(Fragment11, { children: [
|
|
29172
29195
|
context.label,
|
|
29173
29196
|
" ",
|
|
29174
29197
|
children
|
|
@@ -29316,7 +29339,7 @@ var Root2 = Toast;
|
|
|
29316
29339
|
var Toast_default = { "viewport": "Toast_viewport__NzVhM", "toast": "Toast_toast__YWM3Z", "slide-in": "Toast_slide-in__ZDZhN", "hide": "Toast_hide__NjM0N", "swipe-out": "Toast_swipe-out__NzI3N", "icon": "Toast_icon__MmY1Y", "title": "Toast_title__OTU5Z", "description": "Toast_description__OWJkZ", "action": "Toast_action__NjZiZ", "close": "Toast_close__MjU1N", "info": "Toast_info__MTZkO", "error": "Toast_error__NTA3M" };
|
|
29317
29340
|
|
|
29318
29341
|
// src/components/Toast.tsx
|
|
29319
|
-
import { Fragment as Fragment12, jsx as jsx65, jsxs as
|
|
29342
|
+
import { Fragment as Fragment12, jsx as jsx65, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
29320
29343
|
import { createElement as createElement5 } from "react";
|
|
29321
29344
|
var icons = {
|
|
29322
29345
|
info: Icons.Info,
|
|
@@ -29332,7 +29355,7 @@ function Toast2({
|
|
|
29332
29355
|
children,
|
|
29333
29356
|
...props
|
|
29334
29357
|
}) {
|
|
29335
|
-
return /* @__PURE__ */
|
|
29358
|
+
return /* @__PURE__ */ jsxs34(Root2, { ...props, className: (0, import_classnames47.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
29336
29359
|
/* @__PURE__ */ jsx65(Icon, { className: Toast_default.icon, size: "md", children: variant && createElement4(icons[variant]) }),
|
|
29337
29360
|
title && /* @__PURE__ */ jsx65(ToastTitle, { className: Toast_default.title, children: title }),
|
|
29338
29361
|
description && /* @__PURE__ */ jsx65(ToastDescription, { className: Toast_default.description, children: description }),
|
|
@@ -29342,7 +29365,7 @@ function Toast2({
|
|
|
29342
29365
|
}
|
|
29343
29366
|
function Toaster(props) {
|
|
29344
29367
|
const { toasts } = useToast();
|
|
29345
|
-
return /* @__PURE__ */
|
|
29368
|
+
return /* @__PURE__ */ jsxs34(Fragment12, { children: [
|
|
29346
29369
|
toasts.map(({ id, message, props: props2 }) => {
|
|
29347
29370
|
return /* @__PURE__ */ createElement5(Toast2, { ...props2, key: id, description: message });
|
|
29348
29371
|
}),
|
|
@@ -29358,11 +29381,11 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
29358
29381
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
29359
29382
|
|
|
29360
29383
|
// src/components/Toggle.tsx
|
|
29361
|
-
import { Fragment as Fragment13, jsx as jsx66, jsxs as
|
|
29384
|
+
import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
29362
29385
|
var Toggle = forwardRef18(
|
|
29363
29386
|
({ label, children, className, ...props }, ref) => {
|
|
29364
29387
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
29365
|
-
return /* @__PURE__ */
|
|
29388
|
+
return /* @__PURE__ */ jsxs35(Fragment13, { children: [
|
|
29366
29389
|
label && /* @__PURE__ */ jsx66(Label, { children: label }),
|
|
29367
29390
|
/* @__PURE__ */ jsx66(
|
|
29368
29391
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
@@ -29385,9 +29408,9 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
29385
29408
|
var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "ToggleGroup_list__MjNjO", "item": "ToggleGroup_item__YTNhN" };
|
|
29386
29409
|
|
|
29387
29410
|
// src/components/ToggleGroup.tsx
|
|
29388
|
-
import { jsx as jsx67, jsxs as
|
|
29411
|
+
import { jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
29389
29412
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
29390
|
-
return /* @__PURE__ */
|
|
29413
|
+
return /* @__PURE__ */ jsxs36($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames49.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
29391
29414
|
label && /* @__PURE__ */ jsx67(Label, { children: label }),
|
|
29392
29415
|
/* @__PURE__ */ jsx67($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
29393
29416
|
] });
|
|
@@ -29403,19 +29426,19 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
29403
29426
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__NDBjM", "arrow": "Tooltip_arrow__NzM4M", "slide": "Tooltip_slide__NzNkY" };
|
|
29404
29427
|
|
|
29405
29428
|
// src/components/Tooltip.tsx
|
|
29406
|
-
import { jsx as jsx68, jsxs as
|
|
29429
|
+
import { jsx as jsx68, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
29407
29430
|
function Tooltip({ children, className, ...props }) {
|
|
29408
|
-
return /* @__PURE__ */
|
|
29431
|
+
return /* @__PURE__ */ jsxs37($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames50.default)(Tooltip_default.tooltip, className), children: [
|
|
29409
29432
|
/* @__PURE__ */ jsx68($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx68("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx68("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
29410
29433
|
children
|
|
29411
29434
|
] });
|
|
29412
29435
|
}
|
|
29413
29436
|
|
|
29414
29437
|
// src/components/ZenProvider.tsx
|
|
29415
|
-
import { jsx as jsx69, jsxs as
|
|
29438
|
+
import { jsx as jsx69, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
29416
29439
|
function ZenProvider({ config = {}, children }) {
|
|
29417
29440
|
const { toast: toast2 } = config;
|
|
29418
|
-
return /* @__PURE__ */
|
|
29441
|
+
return /* @__PURE__ */ jsxs38(ToastProvider, { ...toast2, children: [
|
|
29419
29442
|
children,
|
|
29420
29443
|
/* @__PURE__ */ jsx69(Toaster, {})
|
|
29421
29444
|
] });
|
|
@@ -29457,6 +29480,8 @@ export {
|
|
|
29457
29480
|
Label,
|
|
29458
29481
|
List,
|
|
29459
29482
|
ListItem,
|
|
29483
|
+
ListSection,
|
|
29484
|
+
ListSeparator,
|
|
29460
29485
|
Loading,
|
|
29461
29486
|
LoadingButton,
|
|
29462
29487
|
Menu,
|
package/dist/styles.css
CHANGED
|
@@ -2914,17 +2914,25 @@ body a.Button_button__YmM3M {
|
|
|
2914
2914
|
}
|
|
2915
2915
|
|
|
2916
2916
|
/* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
|
|
2917
|
-
.
|
|
2917
|
+
.List_list__OGNmY {
|
|
2918
2918
|
overflow: hidden;
|
|
2919
2919
|
min-width: 100px;
|
|
2920
2920
|
outline: none;
|
|
2921
2921
|
}
|
|
2922
|
-
.
|
|
2922
|
+
.List_item__ZTAwN {
|
|
2923
2923
|
border: var(--border-radius);
|
|
2924
2924
|
}
|
|
2925
|
-
.
|
|
2925
|
+
.List_separator__ZDRjM {
|
|
2926
2926
|
border-bottom: var(--border);
|
|
2927
2927
|
}
|
|
2928
|
+
.List_section__MjY4N {
|
|
2929
|
+
margin-bottom: var(--spacing-3);
|
|
2930
|
+
}
|
|
2931
|
+
.List_header__ZjI0N {
|
|
2932
|
+
font-size: var(--font-size-2);
|
|
2933
|
+
font-weight: var(--font-weight-bold);
|
|
2934
|
+
padding: var(--padding-y) var(--padding-x);
|
|
2935
|
+
}
|
|
2928
2936
|
|
|
2929
2937
|
/* virtual-css:css:f94974973c639ccc39a8a6465cbebeb2 */
|
|
2930
2938
|
.Popover_popover__YmFhM[data-placement=top] {
|
|
@@ -3723,23 +3731,23 @@ body a.Button_button__YmM3M {
|
|
|
3723
3731
|
}
|
|
3724
3732
|
|
|
3725
3733
|
/* virtual-css:css:10b212fa8a7332a22ad571a388244d38 */
|
|
3726
|
-
.
|
|
3734
|
+
.Tabs_tabs__NTRlO {
|
|
3727
3735
|
font-size: var(--font-size);
|
|
3728
3736
|
color: var(--font-color);
|
|
3729
3737
|
position: relative;
|
|
3730
3738
|
width: 100%;
|
|
3731
3739
|
}
|
|
3732
|
-
.
|
|
3740
|
+
.Tabs_list__Yjc4M {
|
|
3733
3741
|
display: flex;
|
|
3734
3742
|
align-items: center;
|
|
3735
3743
|
border-bottom: 2px solid var(--border-color);
|
|
3736
|
-
gap: var(--
|
|
3744
|
+
gap: var(--spacing-6);
|
|
3737
3745
|
margin-bottom: var(--spacing-6);
|
|
3738
3746
|
}
|
|
3739
|
-
.
|
|
3747
|
+
.Tabs_list__Yjc4M.Tabs_quiet__ZTViO {
|
|
3740
3748
|
border: 0;
|
|
3741
3749
|
}
|
|
3742
|
-
.
|
|
3750
|
+
.Tabs_tab__OTEyN {
|
|
3743
3751
|
display: flex;
|
|
3744
3752
|
align-items: center;
|
|
3745
3753
|
justify-content: center;
|
|
@@ -3750,14 +3758,14 @@ body a.Button_button__YmM3M {
|
|
|
3750
3758
|
margin: 0 0 -2px 0;
|
|
3751
3759
|
cursor: pointer;
|
|
3752
3760
|
}
|
|
3753
|
-
.
|
|
3761
|
+
.Tabs_tab__OTEyN:hover {
|
|
3754
3762
|
color: var(--font-color);
|
|
3755
3763
|
}
|
|
3756
|
-
.
|
|
3764
|
+
.Tabs_tab__OTEyN[data-selected] {
|
|
3757
3765
|
color: var(--font-color);
|
|
3758
3766
|
border-bottom: 2px solid var(--primary-color);
|
|
3759
3767
|
}
|
|
3760
|
-
.
|
|
3768
|
+
.Tabs_tab__OTEyN[data-disabled] {
|
|
3761
3769
|
color: var(--font-faded-color);
|
|
3762
3770
|
cursor: default;
|
|
3763
3771
|
}
|