@umami/react-zen 0.165.0 → 0.166.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.d.mts +28 -26
- package/dist/index.d.ts +28 -26
- package/dist/index.js +113 -105
- package/dist/index.mjs +108 -100
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1,
|
|
1
|
+
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps, ListBoxRenderProps, PopoverProps, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, PopoverProps, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TabListProps, TabPanelProps, TabProps, TableBodyProps, TabsProps, TooltipTrigger } from 'react-aria-components';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
|
|
@@ -312,11 +312,35 @@ interface CheckboxProps extends CheckboxProps$1 {
|
|
|
312
312
|
}
|
|
313
313
|
declare function Checkbox({ label, className, children, ...props }: CheckboxProps): react.JSX.Element;
|
|
314
314
|
|
|
315
|
+
interface ListProps extends ListBoxProps<any> {
|
|
316
|
+
items?: any[];
|
|
317
|
+
idProperty?: string;
|
|
318
|
+
labelProperty?: string;
|
|
319
|
+
separatorProperty?: string;
|
|
320
|
+
highlightColor?: string;
|
|
321
|
+
showCheckmark?: boolean;
|
|
322
|
+
label?: string;
|
|
323
|
+
value?: string[];
|
|
324
|
+
onChange?: (value: string[]) => void;
|
|
325
|
+
}
|
|
326
|
+
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
|
|
327
|
+
interface ListItemProps extends ListBoxItemProps<any> {
|
|
328
|
+
showCheckmark?: boolean;
|
|
329
|
+
}
|
|
330
|
+
declare function ListItem({ id, children, className, showCheckmark, ...props }: ListItemProps): react.JSX.Element;
|
|
331
|
+
declare function ListSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
332
|
+
interface ListSectionProps extends ListBoxSectionProps<any> {
|
|
333
|
+
title?: string;
|
|
334
|
+
}
|
|
335
|
+
declare function ListSection({ title, className, children, ...props }: ListSectionProps): react.JSX.Element;
|
|
336
|
+
|
|
315
337
|
interface ComboboxProps extends ComboBoxProps<any> {
|
|
316
|
-
items
|
|
317
|
-
|
|
338
|
+
items?: any[];
|
|
339
|
+
renderEmptyState?: (props: ListBoxRenderProps) => ReactNode;
|
|
340
|
+
listProps?: ListProps;
|
|
341
|
+
popoverProps?: PopoverProps;
|
|
318
342
|
}
|
|
319
|
-
declare function ComboBox({ items, className, ...props }: ComboboxProps): react.JSX.Element;
|
|
343
|
+
declare function ComboBox({ items, className, renderEmptyState, listProps, popoverProps, ...props }: ComboboxProps): react.JSX.Element;
|
|
320
344
|
|
|
321
345
|
interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
322
346
|
asChild?: boolean;
|
|
@@ -444,28 +468,6 @@ interface LabelProps extends LabelProps$1 {
|
|
|
444
468
|
}
|
|
445
469
|
declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
|
|
446
470
|
|
|
447
|
-
interface ListProps extends ListBoxProps<any> {
|
|
448
|
-
items?: any[];
|
|
449
|
-
idProperty?: string;
|
|
450
|
-
labelProperty?: string;
|
|
451
|
-
separatorProperty?: string;
|
|
452
|
-
highlightColor?: string;
|
|
453
|
-
showCheckmark?: boolean;
|
|
454
|
-
label?: string;
|
|
455
|
-
value?: string[];
|
|
456
|
-
onChange?: (value: string[]) => void;
|
|
457
|
-
}
|
|
458
|
-
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
|
|
459
|
-
interface ListItemProps extends ListBoxItemProps<any> {
|
|
460
|
-
showCheckmark?: boolean;
|
|
461
|
-
}
|
|
462
|
-
declare function ListItem({ id, children, className, showCheckmark, ...props }: ListItemProps): react.JSX.Element;
|
|
463
|
-
declare function ListSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
464
|
-
interface ListSectionProps extends ListBoxSectionProps<any> {
|
|
465
|
-
title?: string;
|
|
466
|
-
}
|
|
467
|
-
declare function ListSection({ title, className, children, ...props }: ListSectionProps): react.JSX.Element;
|
|
468
|
-
|
|
469
471
|
interface LoadingProps {
|
|
470
472
|
size?: 'sm' | 'md' | 'lg';
|
|
471
473
|
icon?: 'dots' | 'spinner';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1,
|
|
1
|
+
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps, ListBoxRenderProps, PopoverProps, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, PopoverProps, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TabListProps, TabPanelProps, TabProps, TableBodyProps, TabsProps, TooltipTrigger } from 'react-aria-components';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
|
|
@@ -312,11 +312,35 @@ interface CheckboxProps extends CheckboxProps$1 {
|
|
|
312
312
|
}
|
|
313
313
|
declare function Checkbox({ label, className, children, ...props }: CheckboxProps): react.JSX.Element;
|
|
314
314
|
|
|
315
|
+
interface ListProps extends ListBoxProps<any> {
|
|
316
|
+
items?: any[];
|
|
317
|
+
idProperty?: string;
|
|
318
|
+
labelProperty?: string;
|
|
319
|
+
separatorProperty?: string;
|
|
320
|
+
highlightColor?: string;
|
|
321
|
+
showCheckmark?: boolean;
|
|
322
|
+
label?: string;
|
|
323
|
+
value?: string[];
|
|
324
|
+
onChange?: (value: string[]) => void;
|
|
325
|
+
}
|
|
326
|
+
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
|
|
327
|
+
interface ListItemProps extends ListBoxItemProps<any> {
|
|
328
|
+
showCheckmark?: boolean;
|
|
329
|
+
}
|
|
330
|
+
declare function ListItem({ id, children, className, showCheckmark, ...props }: ListItemProps): react.JSX.Element;
|
|
331
|
+
declare function ListSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
332
|
+
interface ListSectionProps extends ListBoxSectionProps<any> {
|
|
333
|
+
title?: string;
|
|
334
|
+
}
|
|
335
|
+
declare function ListSection({ title, className, children, ...props }: ListSectionProps): react.JSX.Element;
|
|
336
|
+
|
|
315
337
|
interface ComboboxProps extends ComboBoxProps<any> {
|
|
316
|
-
items
|
|
317
|
-
|
|
338
|
+
items?: any[];
|
|
339
|
+
renderEmptyState?: (props: ListBoxRenderProps) => ReactNode;
|
|
340
|
+
listProps?: ListProps;
|
|
341
|
+
popoverProps?: PopoverProps;
|
|
318
342
|
}
|
|
319
|
-
declare function ComboBox({ items, className, ...props }: ComboboxProps): react.JSX.Element;
|
|
343
|
+
declare function ComboBox({ items, className, renderEmptyState, listProps, popoverProps, ...props }: ComboboxProps): react.JSX.Element;
|
|
320
344
|
|
|
321
345
|
interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
322
346
|
asChild?: boolean;
|
|
@@ -444,28 +468,6 @@ interface LabelProps extends LabelProps$1 {
|
|
|
444
468
|
}
|
|
445
469
|
declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
|
|
446
470
|
|
|
447
|
-
interface ListProps extends ListBoxProps<any> {
|
|
448
|
-
items?: any[];
|
|
449
|
-
idProperty?: string;
|
|
450
|
-
labelProperty?: string;
|
|
451
|
-
separatorProperty?: string;
|
|
452
|
-
highlightColor?: string;
|
|
453
|
-
showCheckmark?: boolean;
|
|
454
|
-
label?: string;
|
|
455
|
-
value?: string[];
|
|
456
|
-
onChange?: (value: string[]) => void;
|
|
457
|
-
}
|
|
458
|
-
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
|
|
459
|
-
interface ListItemProps extends ListBoxItemProps<any> {
|
|
460
|
-
showCheckmark?: boolean;
|
|
461
|
-
}
|
|
462
|
-
declare function ListItem({ id, children, className, showCheckmark, ...props }: ListItemProps): react.JSX.Element;
|
|
463
|
-
declare function ListSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
464
|
-
interface ListSectionProps extends ListBoxSectionProps<any> {
|
|
465
|
-
title?: string;
|
|
466
|
-
}
|
|
467
|
-
declare function ListSection({ title, className, children, ...props }: ListSectionProps): react.JSX.Element;
|
|
468
|
-
|
|
469
471
|
interface LoadingProps {
|
|
470
472
|
size?: 'sm' | 'md' | 'lg';
|
|
471
473
|
icon?: 'dots' | 'spinner';
|
package/dist/index.js
CHANGED
|
@@ -32157,7 +32157,7 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
32157
32157
|
}
|
|
32158
32158
|
|
|
32159
32159
|
// src/components/ComboBox.tsx
|
|
32160
|
-
var
|
|
32160
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
32161
32161
|
|
|
32162
32162
|
// src/components/List.tsx
|
|
32163
32163
|
var import_react179 = require("react");
|
|
@@ -32289,18 +32289,63 @@ function ListSection({ title, className, children, ...props }) {
|
|
|
32289
32289
|
] });
|
|
32290
32290
|
}
|
|
32291
32291
|
|
|
32292
|
+
// src/components/Grid.tsx
|
|
32293
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
32294
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
32295
|
+
function Grid({
|
|
32296
|
+
display = "grid",
|
|
32297
|
+
justifyContent,
|
|
32298
|
+
justifyItems,
|
|
32299
|
+
alignContent,
|
|
32300
|
+
alignItems,
|
|
32301
|
+
gap,
|
|
32302
|
+
gapX,
|
|
32303
|
+
gapY,
|
|
32304
|
+
autoFlow,
|
|
32305
|
+
rows,
|
|
32306
|
+
columns,
|
|
32307
|
+
areas,
|
|
32308
|
+
className,
|
|
32309
|
+
style,
|
|
32310
|
+
children,
|
|
32311
|
+
...props
|
|
32312
|
+
}) {
|
|
32313
|
+
const [classes, styleProps] = useDesignProps({
|
|
32314
|
+
display,
|
|
32315
|
+
justifyContent,
|
|
32316
|
+
justifyItems,
|
|
32317
|
+
alignContent,
|
|
32318
|
+
alignItems,
|
|
32319
|
+
gap,
|
|
32320
|
+
gapX,
|
|
32321
|
+
gapY,
|
|
32322
|
+
gridTemplateRows: rows,
|
|
32323
|
+
gridTemplateColumns: columns,
|
|
32324
|
+
gridTemplateAreas: areas,
|
|
32325
|
+
gridAutoFlow: autoFlow
|
|
32326
|
+
});
|
|
32327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Box, { ...props, className: (0, import_classnames21.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
32328
|
+
}
|
|
32329
|
+
|
|
32292
32330
|
// css-modules:E:\dev\umami-react-zen\src\components\ComboBox.module.css
|
|
32293
32331
|
var ComboBox_default = { "combobox": "ComboBox_combobox__ZDYxZ", "input": "ComboBox_input__YjNkN", "button": "ComboBox_button__NTlhM", "list": "ComboBox_list__NTdiY" };
|
|
32294
32332
|
|
|
32295
32333
|
// src/components/ComboBox.tsx
|
|
32296
|
-
var
|
|
32297
|
-
function ComboBox2({
|
|
32298
|
-
|
|
32299
|
-
|
|
32300
|
-
|
|
32301
|
-
|
|
32334
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
32335
|
+
function ComboBox2({
|
|
32336
|
+
items,
|
|
32337
|
+
className,
|
|
32338
|
+
renderEmptyState,
|
|
32339
|
+
listProps,
|
|
32340
|
+
popoverProps,
|
|
32341
|
+
...props
|
|
32342
|
+
}) {
|
|
32343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)($d01f2c01039c0eec$export$72b9695b8216309a, { ...props, className: (0, import_classnames22.default)(ComboBox_default.combobox, className), children: [
|
|
32344
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Grid, { alignItems: "center", columns: "1fr auto", width: "100%", children: [
|
|
32345
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { className: ComboBox_default.input }),
|
|
32346
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: ComboBox_default.button, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ChevronRight, {}) }) })
|
|
32302
32347
|
] }),
|
|
32303
|
-
/* @__PURE__ */ (0,
|
|
32348
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: ComboBox_default.list, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(List, { items, renderEmptyState, ...listProps, children: items?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ListItem, { textValue: item, children: item }, item)) }) }) })
|
|
32304
32349
|
] });
|
|
32305
32350
|
}
|
|
32306
32351
|
|
|
@@ -32308,20 +32353,20 @@ function ComboBox2({ items, className, ...props }) {
|
|
|
32308
32353
|
var Code_default = { "code": "Code_code__ZTc0M" };
|
|
32309
32354
|
|
|
32310
32355
|
// src/components/Code.tsx
|
|
32311
|
-
var
|
|
32356
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
32312
32357
|
function Code({ asChild, children }) {
|
|
32313
32358
|
const Component = asChild ? Slot : "code";
|
|
32314
|
-
return /* @__PURE__ */ (0,
|
|
32359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component, { className: Code_default.code, children });
|
|
32315
32360
|
}
|
|
32316
32361
|
|
|
32317
32362
|
// src/components/Container.tsx
|
|
32318
|
-
var
|
|
32363
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
32319
32364
|
|
|
32320
32365
|
// css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
|
|
32321
32366
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
32322
32367
|
|
|
32323
32368
|
// src/components/Container.tsx
|
|
32324
|
-
var
|
|
32369
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
32325
32370
|
function Container({
|
|
32326
32371
|
isCentered = true,
|
|
32327
32372
|
isFluid,
|
|
@@ -32329,11 +32374,11 @@ function Container({
|
|
|
32329
32374
|
children,
|
|
32330
32375
|
...props
|
|
32331
32376
|
}) {
|
|
32332
|
-
return /* @__PURE__ */ (0,
|
|
32377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
32333
32378
|
Box,
|
|
32334
32379
|
{
|
|
32335
32380
|
...props,
|
|
32336
|
-
className: (0,
|
|
32381
|
+
className: (0, import_classnames23.default)(
|
|
32337
32382
|
Container_default.container,
|
|
32338
32383
|
className,
|
|
32339
32384
|
isCentered && Container_default.centered,
|
|
@@ -32346,21 +32391,21 @@ function Container({
|
|
|
32346
32391
|
|
|
32347
32392
|
// src/components/ConfirmationDialog.tsx
|
|
32348
32393
|
var import_react182 = require("react");
|
|
32349
|
-
var
|
|
32394
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
32350
32395
|
|
|
32351
32396
|
// src/components/TextField.tsx
|
|
32352
32397
|
var import_react181 = require("react");
|
|
32353
|
-
var
|
|
32398
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
32354
32399
|
|
|
32355
32400
|
// src/components/CopyButton.tsx
|
|
32356
32401
|
var import_react180 = require("react");
|
|
32357
|
-
var
|
|
32402
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
32358
32403
|
|
|
32359
32404
|
// css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
|
|
32360
32405
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
32361
32406
|
|
|
32362
32407
|
// src/components/CopyButton.tsx
|
|
32363
|
-
var
|
|
32408
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
32364
32409
|
var TIMEOUT = 2e3;
|
|
32365
32410
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
32366
32411
|
const [copied, setCopied] = (0, import_react180.useState)(false);
|
|
@@ -32373,14 +32418,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
32373
32418
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
32374
32419
|
}
|
|
32375
32420
|
};
|
|
32376
|
-
return /* @__PURE__ */ (0,
|
|
32421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon2, { ...props, className: (0, import_classnames24.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Copy, {}) });
|
|
32377
32422
|
}
|
|
32378
32423
|
|
|
32379
32424
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
32380
32425
|
var TextField_default = { "field": "TextField_field__YzU1O", "icon": "TextField_icon__MDJlY", "novalue": "TextField_novalue__NDg4Y", "textarea": "TextField_textarea__NTQ3M", "resize-vertical": "TextField_resize-vertical__ZDc3N", "resize-horizontal": "TextField_resize-horizontal__MzJjY", "resize-none": "TextField_resize-none__ZmUxZ" };
|
|
32381
32426
|
|
|
32382
32427
|
// src/components/TextField.tsx
|
|
32383
|
-
var
|
|
32428
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
32384
32429
|
function TextField2({
|
|
32385
32430
|
value,
|
|
32386
32431
|
defaultValue,
|
|
@@ -32405,14 +32450,14 @@ function TextField2({
|
|
|
32405
32450
|
(0, import_react181.useEffect)(() => {
|
|
32406
32451
|
setInputValue(value);
|
|
32407
32452
|
}, [value]);
|
|
32408
|
-
return /* @__PURE__ */ (0,
|
|
32409
|
-
label && /* @__PURE__ */ (0,
|
|
32410
|
-
/* @__PURE__ */ (0,
|
|
32453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
32454
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Label2, { children: label }),
|
|
32455
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
32411
32456
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
32412
32457
|
{
|
|
32413
32458
|
"aria-label": "Text",
|
|
32414
32459
|
...props,
|
|
32415
|
-
className: (0,
|
|
32460
|
+
className: (0, import_classnames25.default)(
|
|
32416
32461
|
TextField_default.field,
|
|
32417
32462
|
asTextArea && TextField_default.textarea,
|
|
32418
32463
|
allowCopy && TextField_default.copy,
|
|
@@ -32425,8 +32470,8 @@ function TextField2({
|
|
|
32425
32470
|
isDisabled,
|
|
32426
32471
|
onChange: handleChange,
|
|
32427
32472
|
children: [
|
|
32428
|
-
/* @__PURE__ */ (0,
|
|
32429
|
-
allowCopy && /* @__PURE__ */ (0,
|
|
32473
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, { placeholder }),
|
|
32474
|
+
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CopyButton, { value: inputValue, className: TextField_default.icon })
|
|
32430
32475
|
]
|
|
32431
32476
|
}
|
|
32432
32477
|
)
|
|
@@ -32437,7 +32482,7 @@ function TextField2({
|
|
|
32437
32482
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__YjQzN", "value": "ConfirmationDialog_value__Njg3N" };
|
|
32438
32483
|
|
|
32439
32484
|
// src/components/ConfirmationDialog.tsx
|
|
32440
|
-
var
|
|
32485
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
32441
32486
|
function ConfirmationDialog({
|
|
32442
32487
|
value,
|
|
32443
32488
|
confirmMessage,
|
|
@@ -32449,21 +32494,21 @@ function ConfirmationDialog({
|
|
|
32449
32494
|
const handleChange = (e) => {
|
|
32450
32495
|
setCanSave(e.target.value === value);
|
|
32451
32496
|
};
|
|
32452
|
-
return /* @__PURE__ */ (0,
|
|
32497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
32453
32498
|
AlertDialog,
|
|
32454
32499
|
{
|
|
32455
32500
|
...props,
|
|
32456
|
-
className: (0,
|
|
32501
|
+
className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
|
|
32457
32502
|
isConfirmDisabled: !canSave,
|
|
32458
32503
|
children: ({ close }) => {
|
|
32459
|
-
return /* @__PURE__ */ (0,
|
|
32504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
32460
32505
|
typeof children === "function" ? children({ close }) : children,
|
|
32461
|
-
/* @__PURE__ */ (0,
|
|
32506
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Text, { children: [
|
|
32462
32507
|
confirmMessage || "Type the following value to confirm",
|
|
32463
32508
|
":"
|
|
32464
32509
|
] }),
|
|
32465
|
-
/* @__PURE__ */ (0,
|
|
32466
|
-
/* @__PURE__ */ (0,
|
|
32510
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
32511
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
32467
32512
|
] });
|
|
32468
32513
|
}
|
|
32469
32514
|
}
|
|
@@ -32471,66 +32516,66 @@ function ConfirmationDialog({
|
|
|
32471
32516
|
}
|
|
32472
32517
|
|
|
32473
32518
|
// src/components/DataTable.tsx
|
|
32474
|
-
var
|
|
32519
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
32475
32520
|
var import_react183 = require("react");
|
|
32476
32521
|
|
|
32477
32522
|
// src/components/Table.tsx
|
|
32478
|
-
var
|
|
32523
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
32479
32524
|
|
|
32480
32525
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
32481
32526
|
var Table_default = { "table": "Table_table__YjllN", "header": "Table_header__NmE0Y", "body": "Table_body__ZWYwN", "row": "Table_row__Y2M0Y", "column": "Table_column__ZGY2M", "cell": "Table_cell__MmZjM", "start": "Table_start__NGFiN", "center": "Table_center__NzFjM", "end": "Table_end__NmQyY" };
|
|
32482
32527
|
|
|
32483
32528
|
// src/components/Table.tsx
|
|
32484
|
-
var
|
|
32529
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
32485
32530
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
32486
32531
|
function Table2({ children, className, ...props }) {
|
|
32487
|
-
return /* @__PURE__ */ (0,
|
|
32532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames27.default)(Table_default.table, className), children });
|
|
32488
32533
|
}
|
|
32489
32534
|
function TableHeader({ children, className, style, ...props }) {
|
|
32490
|
-
return /* @__PURE__ */ (0,
|
|
32535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
32491
32536
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
32492
32537
|
{
|
|
32493
32538
|
...props,
|
|
32494
|
-
className: (0,
|
|
32539
|
+
className: (0, import_classnames27.default)(Table_default.header, className),
|
|
32495
32540
|
style: { gridTemplateColumns, ...style },
|
|
32496
32541
|
children
|
|
32497
32542
|
}
|
|
32498
32543
|
);
|
|
32499
32544
|
}
|
|
32500
32545
|
function TableBody({ children, className, ...props }) {
|
|
32501
|
-
return /* @__PURE__ */ (0,
|
|
32546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames27.default)(Table_default.body, className), children });
|
|
32502
32547
|
}
|
|
32503
32548
|
function TableRow({ children, className, style, ...props }) {
|
|
32504
|
-
return /* @__PURE__ */ (0,
|
|
32549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
32505
32550
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
32506
32551
|
{
|
|
32507
32552
|
...props,
|
|
32508
|
-
className: (0,
|
|
32553
|
+
className: (0, import_classnames27.default)(Table_default.row, className),
|
|
32509
32554
|
style: { gridTemplateColumns, ...style },
|
|
32510
32555
|
children
|
|
32511
32556
|
}
|
|
32512
32557
|
);
|
|
32513
32558
|
}
|
|
32514
32559
|
function TableColumn({ children, className, align, ...props }) {
|
|
32515
|
-
return /* @__PURE__ */ (0,
|
|
32560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
32516
32561
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
32517
32562
|
{
|
|
32518
32563
|
...props,
|
|
32519
|
-
className: (0,
|
|
32564
|
+
className: (0, import_classnames27.default)(Table_default.column, className, align && Table_default[align]),
|
|
32520
32565
|
isRowHeader: true,
|
|
32521
32566
|
children
|
|
32522
32567
|
}
|
|
32523
32568
|
);
|
|
32524
32569
|
}
|
|
32525
32570
|
function TableCell({ children, className, align, ...props }) {
|
|
32526
|
-
return /* @__PURE__ */ (0,
|
|
32571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames27.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
32527
32572
|
}
|
|
32528
32573
|
|
|
32529
32574
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
32530
32575
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
32531
32576
|
|
|
32532
32577
|
// src/components/DataTable.tsx
|
|
32533
|
-
var
|
|
32578
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
32534
32579
|
var import_react184 = require("react");
|
|
32535
32580
|
function DataTable({ data = [], className, children, ...props }) {
|
|
32536
32581
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
@@ -32543,15 +32588,15 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
32543
32588
|
return null;
|
|
32544
32589
|
})?.filter((n) => n);
|
|
32545
32590
|
const gridTemplateColumns2 = widths.join(" ");
|
|
32546
|
-
return /* @__PURE__ */ (0,
|
|
32547
|
-
/* @__PURE__ */ (0,
|
|
32591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Table2, { ...props, className: (0, import_classnames28.default)(DataTable_default.datatable, className), children: [
|
|
32592
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
32548
32593
|
if (hidden) {
|
|
32549
32594
|
return null;
|
|
32550
32595
|
}
|
|
32551
32596
|
return /* @__PURE__ */ (0, import_react184.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
|
|
32552
32597
|
}) }),
|
|
32553
|
-
/* @__PURE__ */ (0,
|
|
32554
|
-
return /* @__PURE__ */ (0,
|
|
32598
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TableBody, { children: items.map((row, index) => {
|
|
32599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
32555
32600
|
if (hidden) {
|
|
32556
32601
|
return null;
|
|
32557
32602
|
}
|
|
@@ -32561,7 +32606,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
32561
32606
|
{
|
|
32562
32607
|
...cellProps,
|
|
32563
32608
|
key: id,
|
|
32564
|
-
className: (0,
|
|
32609
|
+
className: (0, import_classnames28.default)(DataTable_default.cell, className2)
|
|
32565
32610
|
},
|
|
32566
32611
|
as ? (0, import_react183.createElement)(as, {}, value) : value
|
|
32567
32612
|
);
|
|
@@ -32574,40 +32619,40 @@ function DataColumn(props) {
|
|
|
32574
32619
|
}
|
|
32575
32620
|
|
|
32576
32621
|
// src/components/Dots.tsx
|
|
32577
|
-
var
|
|
32622
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
32578
32623
|
|
|
32579
32624
|
// css-modules:E:\dev\umami-react-zen\src\components\Dots.module.css
|
|
32580
32625
|
var Dots_default = { "dots": "Dots_dots__ZjI3Y", "size-sm": "Dots_size-sm__ZTRjY", "size-md": "Dots_size-md__MmRkZ", "size-lg": "Dots_size-lg__MGJmY", "dot": "Dots_dot__ZDRiM", "dots-blink": "Dots_dots-blink__MWU4Z" };
|
|
32581
32626
|
|
|
32582
32627
|
// src/components/Dots.tsx
|
|
32583
|
-
var
|
|
32628
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
32584
32629
|
function Dots({ size = "md", className, ...props }) {
|
|
32585
|
-
return /* @__PURE__ */ (0,
|
|
32586
|
-
/* @__PURE__ */ (0,
|
|
32587
|
-
/* @__PURE__ */ (0,
|
|
32588
|
-
/* @__PURE__ */ (0,
|
|
32630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { ...props, className: (0, import_classnames29.default)(Dots_default.dots, className, Dots_default[`size-${size}`]), children: [
|
|
32631
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: Dots_default.dot }),
|
|
32632
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: Dots_default.dot }),
|
|
32633
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: Dots_default.dot })
|
|
32589
32634
|
] });
|
|
32590
32635
|
}
|
|
32591
32636
|
|
|
32592
32637
|
// src/components/FloatingTooltip.tsx
|
|
32593
32638
|
var import_react185 = require("react");
|
|
32594
|
-
var
|
|
32639
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
32595
32640
|
|
|
32596
32641
|
// src/components/Tooltip.tsx
|
|
32597
|
-
var
|
|
32642
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
32598
32643
|
|
|
32599
32644
|
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
32600
32645
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
32601
32646
|
|
|
32602
32647
|
// src/components/Tooltip.tsx
|
|
32603
|
-
var
|
|
32648
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
32604
32649
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
32605
|
-
return /* @__PURE__ */ (0,
|
|
32650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames30.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TooltipBubble, { showArrow, children }) });
|
|
32606
32651
|
}
|
|
32607
32652
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
32608
|
-
return /* @__PURE__ */ (0,
|
|
32609
|
-
showArrow && /* @__PURE__ */ (0,
|
|
32610
|
-
/* @__PURE__ */ (0,
|
|
32653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { ...props, children: [
|
|
32654
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
32655
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: Tooltip_default.bubble, children })
|
|
32611
32656
|
] });
|
|
32612
32657
|
}
|
|
32613
32658
|
|
|
@@ -32615,7 +32660,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
32615
32660
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
32616
32661
|
|
|
32617
32662
|
// src/components/FloatingTooltip.tsx
|
|
32618
|
-
var
|
|
32663
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
32619
32664
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
32620
32665
|
const [position, setPosition] = (0, import_react185.useState)({ x: -1e3, y: -1e3 });
|
|
32621
32666
|
(0, import_react185.useEffect)(() => {
|
|
@@ -32627,55 +32672,17 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
32627
32672
|
document.removeEventListener("mousemove", handler);
|
|
32628
32673
|
};
|
|
32629
32674
|
}, []);
|
|
32630
|
-
return /* @__PURE__ */ (0,
|
|
32675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
32631
32676
|
TooltipBubble,
|
|
32632
32677
|
{
|
|
32633
32678
|
...props,
|
|
32634
|
-
className: (0,
|
|
32679
|
+
className: (0, import_classnames31.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
32635
32680
|
style: { ...style, left: position.x, top: position.y },
|
|
32636
32681
|
children
|
|
32637
32682
|
}
|
|
32638
32683
|
);
|
|
32639
32684
|
}
|
|
32640
32685
|
|
|
32641
|
-
// src/components/Grid.tsx
|
|
32642
|
-
var import_classnames31 = __toESM(require_classnames());
|
|
32643
|
-
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
32644
|
-
function Grid({
|
|
32645
|
-
display = "grid",
|
|
32646
|
-
justifyContent,
|
|
32647
|
-
justifyItems,
|
|
32648
|
-
alignContent,
|
|
32649
|
-
alignItems,
|
|
32650
|
-
gap,
|
|
32651
|
-
gapX,
|
|
32652
|
-
gapY,
|
|
32653
|
-
autoFlow,
|
|
32654
|
-
rows,
|
|
32655
|
-
columns,
|
|
32656
|
-
areas,
|
|
32657
|
-
className,
|
|
32658
|
-
style,
|
|
32659
|
-
children,
|
|
32660
|
-
...props
|
|
32661
|
-
}) {
|
|
32662
|
-
const [classes, styleProps] = useDesignProps({
|
|
32663
|
-
display,
|
|
32664
|
-
justifyContent,
|
|
32665
|
-
justifyItems,
|
|
32666
|
-
alignContent,
|
|
32667
|
-
alignItems,
|
|
32668
|
-
gap,
|
|
32669
|
-
gapX,
|
|
32670
|
-
gapY,
|
|
32671
|
-
gridTemplateRows: rows,
|
|
32672
|
-
gridTemplateColumns: columns,
|
|
32673
|
-
gridTemplateAreas: areas,
|
|
32674
|
-
gridAutoFlow: autoFlow
|
|
32675
|
-
});
|
|
32676
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Box, { ...props, className: (0, import_classnames31.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
32677
|
-
}
|
|
32678
|
-
|
|
32679
32686
|
// src/components/Heading.tsx
|
|
32680
32687
|
var import_classnames32 = __toESM(require_classnames());
|
|
32681
32688
|
|
|
@@ -33277,6 +33284,7 @@ function Select2({
|
|
|
33277
33284
|
};
|
|
33278
33285
|
const handleOpenChange = () => {
|
|
33279
33286
|
setSearch("");
|
|
33287
|
+
onSearch?.("");
|
|
33280
33288
|
};
|
|
33281
33289
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
33282
33290
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
package/dist/index.mjs
CHANGED
|
@@ -32040,7 +32040,7 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
32040
32040
|
}
|
|
32041
32041
|
|
|
32042
32042
|
// src/components/ComboBox.tsx
|
|
32043
|
-
var
|
|
32043
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
32044
32044
|
|
|
32045
32045
|
// src/components/List.tsx
|
|
32046
32046
|
import { Fragment as Fragment4 } from "react";
|
|
@@ -32172,18 +32172,63 @@ function ListSection({ title, className, children, ...props }) {
|
|
|
32172
32172
|
] });
|
|
32173
32173
|
}
|
|
32174
32174
|
|
|
32175
|
+
// src/components/Grid.tsx
|
|
32176
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
32177
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
32178
|
+
function Grid({
|
|
32179
|
+
display = "grid",
|
|
32180
|
+
justifyContent,
|
|
32181
|
+
justifyItems,
|
|
32182
|
+
alignContent,
|
|
32183
|
+
alignItems,
|
|
32184
|
+
gap,
|
|
32185
|
+
gapX,
|
|
32186
|
+
gapY,
|
|
32187
|
+
autoFlow,
|
|
32188
|
+
rows,
|
|
32189
|
+
columns,
|
|
32190
|
+
areas,
|
|
32191
|
+
className,
|
|
32192
|
+
style,
|
|
32193
|
+
children,
|
|
32194
|
+
...props
|
|
32195
|
+
}) {
|
|
32196
|
+
const [classes, styleProps] = useDesignProps({
|
|
32197
|
+
display,
|
|
32198
|
+
justifyContent,
|
|
32199
|
+
justifyItems,
|
|
32200
|
+
alignContent,
|
|
32201
|
+
alignItems,
|
|
32202
|
+
gap,
|
|
32203
|
+
gapX,
|
|
32204
|
+
gapY,
|
|
32205
|
+
gridTemplateRows: rows,
|
|
32206
|
+
gridTemplateColumns: columns,
|
|
32207
|
+
gridTemplateAreas: areas,
|
|
32208
|
+
gridAutoFlow: autoFlow
|
|
32209
|
+
});
|
|
32210
|
+
return /* @__PURE__ */ jsx34(Box, { ...props, className: (0, import_classnames21.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
32211
|
+
}
|
|
32212
|
+
|
|
32175
32213
|
// css-modules:E:\dev\umami-react-zen\src\components\ComboBox.module.css
|
|
32176
32214
|
var ComboBox_default = { "combobox": "ComboBox_combobox__ZDYxZ", "input": "ComboBox_input__YjNkN", "button": "ComboBox_button__NTlhM", "list": "ComboBox_list__NTdiY" };
|
|
32177
32215
|
|
|
32178
32216
|
// src/components/ComboBox.tsx
|
|
32179
|
-
import { jsx as
|
|
32180
|
-
function ComboBox2({
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32217
|
+
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
32218
|
+
function ComboBox2({
|
|
32219
|
+
items,
|
|
32220
|
+
className,
|
|
32221
|
+
renderEmptyState,
|
|
32222
|
+
listProps,
|
|
32223
|
+
popoverProps,
|
|
32224
|
+
...props
|
|
32225
|
+
}) {
|
|
32226
|
+
return /* @__PURE__ */ jsxs19($d01f2c01039c0eec$export$72b9695b8216309a, { ...props, className: (0, import_classnames22.default)(ComboBox_default.combobox, className), children: [
|
|
32227
|
+
/* @__PURE__ */ jsxs19(Grid, { alignItems: "center", columns: "1fr auto", width: "100%", children: [
|
|
32228
|
+
/* @__PURE__ */ jsx35($3985021b0ad6602f$export$f5b8910cec6cf069, { className: ComboBox_default.input }),
|
|
32229
|
+
/* @__PURE__ */ jsx35($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: ComboBox_default.button, children: /* @__PURE__ */ jsx35(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ jsx35(ChevronRight, {}) }) })
|
|
32185
32230
|
] }),
|
|
32186
|
-
/* @__PURE__ */
|
|
32231
|
+
/* @__PURE__ */ jsx35($07b14b47974efb58$export$5b6b19405a83ff9d, { ...popoverProps, children: /* @__PURE__ */ jsx35("div", { className: ComboBox_default.list, children: /* @__PURE__ */ jsx35(List, { items, renderEmptyState, ...listProps, children: items?.map((item) => /* @__PURE__ */ jsx35(ListItem, { textValue: item, children: item }, item)) }) }) })
|
|
32187
32232
|
] });
|
|
32188
32233
|
}
|
|
32189
32234
|
|
|
@@ -32191,20 +32236,20 @@ function ComboBox2({ items, className, ...props }) {
|
|
|
32191
32236
|
var Code_default = { "code": "Code_code__ZTc0M" };
|
|
32192
32237
|
|
|
32193
32238
|
// src/components/Code.tsx
|
|
32194
|
-
import { jsx as
|
|
32239
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
32195
32240
|
function Code({ asChild, children }) {
|
|
32196
32241
|
const Component = asChild ? Slot : "code";
|
|
32197
|
-
return /* @__PURE__ */
|
|
32242
|
+
return /* @__PURE__ */ jsx36(Component, { className: Code_default.code, children });
|
|
32198
32243
|
}
|
|
32199
32244
|
|
|
32200
32245
|
// src/components/Container.tsx
|
|
32201
|
-
var
|
|
32246
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
32202
32247
|
|
|
32203
32248
|
// css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
|
|
32204
32249
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
32205
32250
|
|
|
32206
32251
|
// src/components/Container.tsx
|
|
32207
|
-
import { jsx as
|
|
32252
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
32208
32253
|
function Container({
|
|
32209
32254
|
isCentered = true,
|
|
32210
32255
|
isFluid,
|
|
@@ -32212,11 +32257,11 @@ function Container({
|
|
|
32212
32257
|
children,
|
|
32213
32258
|
...props
|
|
32214
32259
|
}) {
|
|
32215
|
-
return /* @__PURE__ */
|
|
32260
|
+
return /* @__PURE__ */ jsx37(
|
|
32216
32261
|
Box,
|
|
32217
32262
|
{
|
|
32218
32263
|
...props,
|
|
32219
|
-
className: (0,
|
|
32264
|
+
className: (0, import_classnames23.default)(
|
|
32220
32265
|
Container_default.container,
|
|
32221
32266
|
className,
|
|
32222
32267
|
isCentered && Container_default.centered,
|
|
@@ -32228,22 +32273,22 @@ function Container({
|
|
|
32228
32273
|
}
|
|
32229
32274
|
|
|
32230
32275
|
// src/components/ConfirmationDialog.tsx
|
|
32231
|
-
var
|
|
32276
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
32232
32277
|
import { useState as useState10 } from "react";
|
|
32233
32278
|
|
|
32234
32279
|
// src/components/TextField.tsx
|
|
32235
32280
|
import { useEffect as useEffect9, useState as useState9 } from "react";
|
|
32236
|
-
var
|
|
32281
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
32237
32282
|
|
|
32238
32283
|
// src/components/CopyButton.tsx
|
|
32239
|
-
var
|
|
32284
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
32240
32285
|
import { useState as useState8, useRef as useRef7 } from "react";
|
|
32241
32286
|
|
|
32242
32287
|
// css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
|
|
32243
32288
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
32244
32289
|
|
|
32245
32290
|
// src/components/CopyButton.tsx
|
|
32246
|
-
import { jsx as
|
|
32291
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
32247
32292
|
var TIMEOUT = 2e3;
|
|
32248
32293
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
32249
32294
|
const [copied, setCopied] = useState8(false);
|
|
@@ -32256,14 +32301,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
32256
32301
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
32257
32302
|
}
|
|
32258
32303
|
};
|
|
32259
|
-
return /* @__PURE__ */
|
|
32304
|
+
return /* @__PURE__ */ jsx38(Icon2, { ...props, className: (0, import_classnames24.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx38(Check, {}) : /* @__PURE__ */ jsx38(Copy, {}) });
|
|
32260
32305
|
}
|
|
32261
32306
|
|
|
32262
32307
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
32263
32308
|
var TextField_default = { "field": "TextField_field__YzU1O", "icon": "TextField_icon__MDJlY", "novalue": "TextField_novalue__NDg4Y", "textarea": "TextField_textarea__NTQ3M", "resize-vertical": "TextField_resize-vertical__ZDc3N", "resize-horizontal": "TextField_resize-horizontal__MzJjY", "resize-none": "TextField_resize-none__ZmUxZ" };
|
|
32264
32309
|
|
|
32265
32310
|
// src/components/TextField.tsx
|
|
32266
|
-
import { Fragment as Fragment6, jsx as
|
|
32311
|
+
import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
32267
32312
|
function TextField2({
|
|
32268
32313
|
value,
|
|
32269
32314
|
defaultValue,
|
|
@@ -32289,13 +32334,13 @@ function TextField2({
|
|
|
32289
32334
|
setInputValue(value);
|
|
32290
32335
|
}, [value]);
|
|
32291
32336
|
return /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
32292
|
-
label && /* @__PURE__ */
|
|
32337
|
+
label && /* @__PURE__ */ jsx39(Label2, { children: label }),
|
|
32293
32338
|
/* @__PURE__ */ jsxs20(
|
|
32294
32339
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
32295
32340
|
{
|
|
32296
32341
|
"aria-label": "Text",
|
|
32297
32342
|
...props,
|
|
32298
|
-
className: (0,
|
|
32343
|
+
className: (0, import_classnames25.default)(
|
|
32299
32344
|
TextField_default.field,
|
|
32300
32345
|
asTextArea && TextField_default.textarea,
|
|
32301
32346
|
allowCopy && TextField_default.copy,
|
|
@@ -32308,8 +32353,8 @@ function TextField2({
|
|
|
32308
32353
|
isDisabled,
|
|
32309
32354
|
onChange: handleChange,
|
|
32310
32355
|
children: [
|
|
32311
|
-
/* @__PURE__ */
|
|
32312
|
-
allowCopy && /* @__PURE__ */
|
|
32356
|
+
/* @__PURE__ */ jsx39(Component, { placeholder }),
|
|
32357
|
+
allowCopy && /* @__PURE__ */ jsx39(CopyButton, { value: inputValue, className: TextField_default.icon })
|
|
32313
32358
|
]
|
|
32314
32359
|
}
|
|
32315
32360
|
)
|
|
@@ -32320,7 +32365,7 @@ function TextField2({
|
|
|
32320
32365
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__YjQzN", "value": "ConfirmationDialog_value__Njg3N" };
|
|
32321
32366
|
|
|
32322
32367
|
// src/components/ConfirmationDialog.tsx
|
|
32323
|
-
import { Fragment as Fragment7, jsx as
|
|
32368
|
+
import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
32324
32369
|
function ConfirmationDialog({
|
|
32325
32370
|
value,
|
|
32326
32371
|
confirmMessage,
|
|
@@ -32332,11 +32377,11 @@ function ConfirmationDialog({
|
|
|
32332
32377
|
const handleChange = (e) => {
|
|
32333
32378
|
setCanSave(e.target.value === value);
|
|
32334
32379
|
};
|
|
32335
|
-
return /* @__PURE__ */
|
|
32380
|
+
return /* @__PURE__ */ jsx40(
|
|
32336
32381
|
AlertDialog,
|
|
32337
32382
|
{
|
|
32338
32383
|
...props,
|
|
32339
|
-
className: (0,
|
|
32384
|
+
className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
|
|
32340
32385
|
isConfirmDisabled: !canSave,
|
|
32341
32386
|
children: ({ close }) => {
|
|
32342
32387
|
return /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
@@ -32345,8 +32390,8 @@ function ConfirmationDialog({
|
|
|
32345
32390
|
confirmMessage || "Type the following value to confirm",
|
|
32346
32391
|
":"
|
|
32347
32392
|
] }),
|
|
32348
|
-
/* @__PURE__ */
|
|
32349
|
-
/* @__PURE__ */
|
|
32393
|
+
/* @__PURE__ */ jsx40("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
32394
|
+
/* @__PURE__ */ jsx40(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
32350
32395
|
] });
|
|
32351
32396
|
}
|
|
32352
32397
|
}
|
|
@@ -32354,66 +32399,66 @@ function ConfirmationDialog({
|
|
|
32354
32399
|
}
|
|
32355
32400
|
|
|
32356
32401
|
// src/components/DataTable.tsx
|
|
32357
|
-
var
|
|
32402
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
32358
32403
|
import { Children as Children2, createElement as createElement7 } from "react";
|
|
32359
32404
|
|
|
32360
32405
|
// src/components/Table.tsx
|
|
32361
|
-
var
|
|
32406
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
32362
32407
|
|
|
32363
32408
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
32364
32409
|
var Table_default = { "table": "Table_table__YjllN", "header": "Table_header__NmE0Y", "body": "Table_body__ZWYwN", "row": "Table_row__Y2M0Y", "column": "Table_column__ZGY2M", "cell": "Table_cell__MmZjM", "start": "Table_start__NGFiN", "center": "Table_center__NzFjM", "end": "Table_end__NmQyY" };
|
|
32365
32410
|
|
|
32366
32411
|
// src/components/Table.tsx
|
|
32367
|
-
import { jsx as
|
|
32412
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
32368
32413
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
32369
32414
|
function Table2({ children, className, ...props }) {
|
|
32370
|
-
return /* @__PURE__ */
|
|
32415
|
+
return /* @__PURE__ */ jsx41($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames27.default)(Table_default.table, className), children });
|
|
32371
32416
|
}
|
|
32372
32417
|
function TableHeader({ children, className, style, ...props }) {
|
|
32373
|
-
return /* @__PURE__ */
|
|
32418
|
+
return /* @__PURE__ */ jsx41(
|
|
32374
32419
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
32375
32420
|
{
|
|
32376
32421
|
...props,
|
|
32377
|
-
className: (0,
|
|
32422
|
+
className: (0, import_classnames27.default)(Table_default.header, className),
|
|
32378
32423
|
style: { gridTemplateColumns, ...style },
|
|
32379
32424
|
children
|
|
32380
32425
|
}
|
|
32381
32426
|
);
|
|
32382
32427
|
}
|
|
32383
32428
|
function TableBody({ children, className, ...props }) {
|
|
32384
|
-
return /* @__PURE__ */
|
|
32429
|
+
return /* @__PURE__ */ jsx41($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames27.default)(Table_default.body, className), children });
|
|
32385
32430
|
}
|
|
32386
32431
|
function TableRow({ children, className, style, ...props }) {
|
|
32387
|
-
return /* @__PURE__ */
|
|
32432
|
+
return /* @__PURE__ */ jsx41(
|
|
32388
32433
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
32389
32434
|
{
|
|
32390
32435
|
...props,
|
|
32391
|
-
className: (0,
|
|
32436
|
+
className: (0, import_classnames27.default)(Table_default.row, className),
|
|
32392
32437
|
style: { gridTemplateColumns, ...style },
|
|
32393
32438
|
children
|
|
32394
32439
|
}
|
|
32395
32440
|
);
|
|
32396
32441
|
}
|
|
32397
32442
|
function TableColumn({ children, className, align, ...props }) {
|
|
32398
|
-
return /* @__PURE__ */
|
|
32443
|
+
return /* @__PURE__ */ jsx41(
|
|
32399
32444
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
32400
32445
|
{
|
|
32401
32446
|
...props,
|
|
32402
|
-
className: (0,
|
|
32447
|
+
className: (0, import_classnames27.default)(Table_default.column, className, align && Table_default[align]),
|
|
32403
32448
|
isRowHeader: true,
|
|
32404
32449
|
children
|
|
32405
32450
|
}
|
|
32406
32451
|
);
|
|
32407
32452
|
}
|
|
32408
32453
|
function TableCell({ children, className, align, ...props }) {
|
|
32409
|
-
return /* @__PURE__ */
|
|
32454
|
+
return /* @__PURE__ */ jsx41($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames27.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
32410
32455
|
}
|
|
32411
32456
|
|
|
32412
32457
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
32413
32458
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
32414
32459
|
|
|
32415
32460
|
// src/components/DataTable.tsx
|
|
32416
|
-
import { jsx as
|
|
32461
|
+
import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
32417
32462
|
import { createElement as createElement8 } from "react";
|
|
32418
32463
|
function DataTable({ data = [], className, children, ...props }) {
|
|
32419
32464
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
@@ -32426,15 +32471,15 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
32426
32471
|
return null;
|
|
32427
32472
|
})?.filter((n) => n);
|
|
32428
32473
|
const gridTemplateColumns2 = widths.join(" ");
|
|
32429
|
-
return /* @__PURE__ */ jsxs22(Table2, { ...props, className: (0,
|
|
32430
|
-
/* @__PURE__ */
|
|
32474
|
+
return /* @__PURE__ */ jsxs22(Table2, { ...props, className: (0, import_classnames28.default)(DataTable_default.datatable, className), children: [
|
|
32475
|
+
/* @__PURE__ */ jsx42(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
32431
32476
|
if (hidden) {
|
|
32432
32477
|
return null;
|
|
32433
32478
|
}
|
|
32434
32479
|
return /* @__PURE__ */ createElement8(TableColumn, { ...columnProps, key: id, id }, label);
|
|
32435
32480
|
}) }),
|
|
32436
|
-
/* @__PURE__ */
|
|
32437
|
-
return /* @__PURE__ */
|
|
32481
|
+
/* @__PURE__ */ jsx42(TableBody, { children: items.map((row, index) => {
|
|
32482
|
+
return /* @__PURE__ */ jsx42(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
32438
32483
|
if (hidden) {
|
|
32439
32484
|
return null;
|
|
32440
32485
|
}
|
|
@@ -32444,7 +32489,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
32444
32489
|
{
|
|
32445
32490
|
...cellProps,
|
|
32446
32491
|
key: id,
|
|
32447
|
-
className: (0,
|
|
32492
|
+
className: (0, import_classnames28.default)(DataTable_default.cell, className2)
|
|
32448
32493
|
},
|
|
32449
32494
|
as ? createElement7(as, {}, value) : value
|
|
32450
32495
|
);
|
|
@@ -32457,40 +32502,40 @@ function DataColumn(props) {
|
|
|
32457
32502
|
}
|
|
32458
32503
|
|
|
32459
32504
|
// src/components/Dots.tsx
|
|
32460
|
-
var
|
|
32505
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
32461
32506
|
|
|
32462
32507
|
// css-modules:E:\dev\umami-react-zen\src\components\Dots.module.css
|
|
32463
32508
|
var Dots_default = { "dots": "Dots_dots__ZjI3Y", "size-sm": "Dots_size-sm__ZTRjY", "size-md": "Dots_size-md__MmRkZ", "size-lg": "Dots_size-lg__MGJmY", "dot": "Dots_dot__ZDRiM", "dots-blink": "Dots_dots-blink__MWU4Z" };
|
|
32464
32509
|
|
|
32465
32510
|
// src/components/Dots.tsx
|
|
32466
|
-
import { jsx as
|
|
32511
|
+
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
32467
32512
|
function Dots({ size = "md", className, ...props }) {
|
|
32468
|
-
return /* @__PURE__ */ jsxs23("div", { ...props, className: (0,
|
|
32469
|
-
/* @__PURE__ */
|
|
32470
|
-
/* @__PURE__ */
|
|
32471
|
-
/* @__PURE__ */
|
|
32513
|
+
return /* @__PURE__ */ jsxs23("div", { ...props, className: (0, import_classnames29.default)(Dots_default.dots, className, Dots_default[`size-${size}`]), children: [
|
|
32514
|
+
/* @__PURE__ */ jsx43("div", { className: Dots_default.dot }),
|
|
32515
|
+
/* @__PURE__ */ jsx43("div", { className: Dots_default.dot }),
|
|
32516
|
+
/* @__PURE__ */ jsx43("div", { className: Dots_default.dot })
|
|
32472
32517
|
] });
|
|
32473
32518
|
}
|
|
32474
32519
|
|
|
32475
32520
|
// src/components/FloatingTooltip.tsx
|
|
32476
|
-
var
|
|
32521
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
32477
32522
|
import { useEffect as useEffect10, useState as useState11 } from "react";
|
|
32478
32523
|
|
|
32479
32524
|
// src/components/Tooltip.tsx
|
|
32480
|
-
var
|
|
32525
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
32481
32526
|
|
|
32482
32527
|
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
32483
32528
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
32484
32529
|
|
|
32485
32530
|
// src/components/Tooltip.tsx
|
|
32486
|
-
import { jsx as
|
|
32531
|
+
import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
32487
32532
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
32488
|
-
return /* @__PURE__ */
|
|
32533
|
+
return /* @__PURE__ */ jsx44($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames30.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ jsx44(TooltipBubble, { showArrow, children }) });
|
|
32489
32534
|
}
|
|
32490
32535
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
32491
32536
|
return /* @__PURE__ */ jsxs24("div", { ...props, children: [
|
|
32492
|
-
showArrow && /* @__PURE__ */
|
|
32493
|
-
/* @__PURE__ */
|
|
32537
|
+
showArrow && /* @__PURE__ */ jsx44($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx44("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx44("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
32538
|
+
/* @__PURE__ */ jsx44("div", { className: Tooltip_default.bubble, children })
|
|
32494
32539
|
] });
|
|
32495
32540
|
}
|
|
32496
32541
|
|
|
@@ -32498,7 +32543,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
32498
32543
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
32499
32544
|
|
|
32500
32545
|
// src/components/FloatingTooltip.tsx
|
|
32501
|
-
import { jsx as
|
|
32546
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
32502
32547
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
32503
32548
|
const [position, setPosition] = useState11({ x: -1e3, y: -1e3 });
|
|
32504
32549
|
useEffect10(() => {
|
|
@@ -32510,55 +32555,17 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
32510
32555
|
document.removeEventListener("mousemove", handler);
|
|
32511
32556
|
};
|
|
32512
32557
|
}, []);
|
|
32513
|
-
return /* @__PURE__ */
|
|
32558
|
+
return /* @__PURE__ */ jsx45(
|
|
32514
32559
|
TooltipBubble,
|
|
32515
32560
|
{
|
|
32516
32561
|
...props,
|
|
32517
|
-
className: (0,
|
|
32562
|
+
className: (0, import_classnames31.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
32518
32563
|
style: { ...style, left: position.x, top: position.y },
|
|
32519
32564
|
children
|
|
32520
32565
|
}
|
|
32521
32566
|
);
|
|
32522
32567
|
}
|
|
32523
32568
|
|
|
32524
|
-
// src/components/Grid.tsx
|
|
32525
|
-
var import_classnames31 = __toESM(require_classnames());
|
|
32526
|
-
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
32527
|
-
function Grid({
|
|
32528
|
-
display = "grid",
|
|
32529
|
-
justifyContent,
|
|
32530
|
-
justifyItems,
|
|
32531
|
-
alignContent,
|
|
32532
|
-
alignItems,
|
|
32533
|
-
gap,
|
|
32534
|
-
gapX,
|
|
32535
|
-
gapY,
|
|
32536
|
-
autoFlow,
|
|
32537
|
-
rows,
|
|
32538
|
-
columns,
|
|
32539
|
-
areas,
|
|
32540
|
-
className,
|
|
32541
|
-
style,
|
|
32542
|
-
children,
|
|
32543
|
-
...props
|
|
32544
|
-
}) {
|
|
32545
|
-
const [classes, styleProps] = useDesignProps({
|
|
32546
|
-
display,
|
|
32547
|
-
justifyContent,
|
|
32548
|
-
justifyItems,
|
|
32549
|
-
alignContent,
|
|
32550
|
-
alignItems,
|
|
32551
|
-
gap,
|
|
32552
|
-
gapX,
|
|
32553
|
-
gapY,
|
|
32554
|
-
gridTemplateRows: rows,
|
|
32555
|
-
gridTemplateColumns: columns,
|
|
32556
|
-
gridTemplateAreas: areas,
|
|
32557
|
-
gridAutoFlow: autoFlow
|
|
32558
|
-
});
|
|
32559
|
-
return /* @__PURE__ */ jsx45(Box, { ...props, className: (0, import_classnames31.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
32560
|
-
}
|
|
32561
|
-
|
|
32562
32569
|
// src/components/Heading.tsx
|
|
32563
32570
|
var import_classnames32 = __toESM(require_classnames());
|
|
32564
32571
|
|
|
@@ -33164,6 +33171,7 @@ function Select2({
|
|
|
33164
33171
|
};
|
|
33165
33172
|
const handleOpenChange = () => {
|
|
33166
33173
|
setSearch("");
|
|
33174
|
+
onSearch?.("");
|
|
33167
33175
|
};
|
|
33168
33176
|
return /* @__PURE__ */ jsxs36(
|
|
33169
33177
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|