@umami/react-zen 0.62.0 → 0.64.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 +992 -922
- package/dist/index.d.ts +49 -18
- package/dist/index.js +6451 -5650
- package/dist/index.mjs +3561 -2760
- package/package.json +21 -13
- package/styles.css +995 -931
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
// ../../react-hook-form
|
|
6
6
|
// ../../@/lib/types
|
|
7
7
|
// ../../@/components/toast/Toaster
|
|
8
|
+
// ../../@/components/Block
|
|
8
9
|
|
|
9
10
|
declare module '@umami/react-zen' {
|
|
10
|
-
import { DialogTrigger, FileTrigger, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
11
|
+
import { DialogTrigger, FileTrigger, MenuTrigger, SubmenuTrigger, TooltipTrigger, RouterProvider, Focusable, Pressable } from 'react-aria-components';
|
|
11
12
|
import { Form } from '@umami/react-zen/forms/Form';
|
|
12
13
|
import { FormButtons } from '@umami/react-zen/forms/FormButtons';
|
|
13
14
|
import { FormField } from '@umami/react-zen/forms/FormField';
|
|
@@ -22,6 +23,7 @@ declare module '@umami/react-zen' {
|
|
|
22
23
|
import { Accordion, AccordionItem } from '@umami/react-zen/Accordion';
|
|
23
24
|
import { AlertBanner } from '@umami/react-zen/AlertBanner';
|
|
24
25
|
import { AlertDialog } from '@umami/react-zen/AlertDialog';
|
|
26
|
+
import { Block } from '@umami/react-zen/Block';
|
|
25
27
|
import { Blockquote } from '@umami/react-zen/Blockquote';
|
|
26
28
|
import { Box } from '@umami/react-zen/Box';
|
|
27
29
|
import { Breadcrumbs, Breadcrumb } from '@umami/react-zen/Breadcrumbs';
|
|
@@ -37,6 +39,7 @@ declare module '@umami/react-zen' {
|
|
|
37
39
|
import { DataTable, DataColumn } from '@umami/react-zen/DataTable';
|
|
38
40
|
import { Dots } from '@umami/react-zen/Dots';
|
|
39
41
|
import { Flexbox } from '@umami/react-zen/Flexbox';
|
|
42
|
+
import { FloatingTooltip } from '@umami/react-zen/FloatingTooltip';
|
|
40
43
|
import { Grid } from '@umami/react-zen/Grid';
|
|
41
44
|
import { Heading } from '@umami/react-zen/Heading';
|
|
42
45
|
import { HoverTrigger } from '@umami/react-zen/HoverTrigger';
|
|
@@ -73,9 +76,9 @@ declare module '@umami/react-zen' {
|
|
|
73
76
|
import { ThemeButton } from '@umami/react-zen/ThemeButton';
|
|
74
77
|
import { Toggle } from '@umami/react-zen/Toggle';
|
|
75
78
|
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
76
|
-
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
79
|
+
import { Tooltip, TooltipBubble } from '@umami/react-zen/Tooltip';
|
|
77
80
|
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
78
|
-
export {
|
|
81
|
+
export { useDebounce, useTheme, useToast, Accordion, AccordionItem, AlertBanner, AlertDialog, Block, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, Combobox, Container, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, FloatingTooltip, Focusable, Form, FormButtons, FormField, FormResetButton, FormSubmitButton, Grid, NavBar, NavBarItem, Heading, HoverTrigger, Icon, Icons, Image, InlineEditField, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, MenuTrigger, Modal, PasswordField, Popover, Pressable, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, RouterProvider, SearchField, Select, SideNav, SideNavHeader, SideNavItem, SideNavSection, Slider, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextField, TextArea, ThemeButton, Toast, Toaster, ToastProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, TooltipTrigger, ZenProvider, };
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
declare module '@umami/react-zen/forms/Form' {
|
|
@@ -257,6 +260,14 @@ declare module '@umami/react-zen/AlertDialog' {
|
|
|
257
260
|
export type { AlertDialogProps };
|
|
258
261
|
}
|
|
259
262
|
|
|
263
|
+
declare module '@umami/react-zen/Block' {
|
|
264
|
+
import { HTMLAttributes } from 'react';
|
|
265
|
+
export interface BlockProps extends HTMLAttributes<HTMLDivElement> {
|
|
266
|
+
asChild?: boolean;
|
|
267
|
+
}
|
|
268
|
+
export function Block({ asChild, className, children, ...props }: BlockProps): import("react").JSX.Element;
|
|
269
|
+
}
|
|
270
|
+
|
|
260
271
|
declare module '@umami/react-zen/Blockquote' {
|
|
261
272
|
import { HTMLAttributes } from 'react';
|
|
262
273
|
import { FontWeight, Responsive, TextWrap } from '@/lib/types';
|
|
@@ -445,6 +456,7 @@ declare module '@umami/react-zen/DataTable' {
|
|
|
445
456
|
}
|
|
446
457
|
function DataColumn(props: DataColumnProps): null;
|
|
447
458
|
export { DataTable, DataColumn };
|
|
459
|
+
export type { DataTableProps, DataColumnProps };
|
|
448
460
|
}
|
|
449
461
|
|
|
450
462
|
declare module '@umami/react-zen/Dots' {
|
|
@@ -474,6 +486,13 @@ declare module '@umami/react-zen/Flexbox' {
|
|
|
474
486
|
export function Flexbox({ display, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, className, style, children, ...props }: FlexboxProps): import("react").JSX.Element;
|
|
475
487
|
}
|
|
476
488
|
|
|
489
|
+
declare module '@umami/react-zen/FloatingTooltip' {
|
|
490
|
+
import { ReactNode } from 'react';
|
|
491
|
+
export function FloatingTooltip({ children }: {
|
|
492
|
+
children: ReactNode;
|
|
493
|
+
}): import("react").JSX.Element;
|
|
494
|
+
}
|
|
495
|
+
|
|
477
496
|
declare module '@umami/react-zen/Grid' {
|
|
478
497
|
import { GridDisplay, GridAutoFlow, Responsive, Spacing, GridTemplateRows, GridTemplateColumns, GridTemplateAreas, AlignContent, AlignItems, JustifyContent, JustifyItems } from '@/lib/types';
|
|
479
498
|
import { BoxProps } from '@umami/react-zen/Box';
|
|
@@ -551,6 +570,7 @@ declare module '@umami/react-zen/Icons' {
|
|
|
551
570
|
Menu: import("react-icons/lib").IconType;
|
|
552
571
|
Minus: import("react-icons/lib").IconType;
|
|
553
572
|
More: import("react-icons/lib").IconType;
|
|
573
|
+
PanelLeft: import("react-icons/lib").IconType;
|
|
554
574
|
Plus: import("react-icons/lib").IconType;
|
|
555
575
|
Refresh: import("react-icons/lib").IconType;
|
|
556
576
|
Trash: import("react-icons/lib").IconType;
|
|
@@ -574,6 +594,7 @@ declare module '@umami/react-zen/Image' {
|
|
|
574
594
|
declare module '@umami/react-zen/InlineEditField' {
|
|
575
595
|
import { ReactNode } from 'react';
|
|
576
596
|
interface InlineEditFieldProps {
|
|
597
|
+
name?: string;
|
|
577
598
|
value: string;
|
|
578
599
|
defaultEdit?: boolean;
|
|
579
600
|
onChange?: (value: string) => void;
|
|
@@ -582,7 +603,7 @@ declare module '@umami/react-zen/InlineEditField' {
|
|
|
582
603
|
className?: string;
|
|
583
604
|
children?: ReactNode;
|
|
584
605
|
}
|
|
585
|
-
function InlineEditField({ value: defaultValue, defaultEdit, className, children, onChange, onCommit, onCancel, ...props }: InlineEditFieldProps): import("react").JSX.Element;
|
|
606
|
+
function InlineEditField({ name, value: defaultValue, defaultEdit, className, children, onChange, onCommit, onCancel, ...props }: InlineEditFieldProps): import("react").JSX.Element;
|
|
586
607
|
export { InlineEditField };
|
|
587
608
|
export type { InlineEditFieldProps };
|
|
588
609
|
}
|
|
@@ -769,24 +790,26 @@ declare module '@umami/react-zen/Select' {
|
|
|
769
790
|
}
|
|
770
791
|
|
|
771
792
|
declare module '@umami/react-zen/SideNav' {
|
|
772
|
-
import
|
|
773
|
-
|
|
793
|
+
import { ReactNode } from 'react';
|
|
794
|
+
import { BlockProps } from '@/components/Block';
|
|
795
|
+
export interface SideNavProps {
|
|
796
|
+
isCollapsed?: boolean;
|
|
774
797
|
children: ReactNode;
|
|
775
|
-
}
|
|
798
|
+
}
|
|
799
|
+
export function SideNav({ isCollapsed, children }: SideNavProps): import("react").JSX.Element;
|
|
776
800
|
export function SideNavHeader({ name, icon, children, }: {
|
|
777
801
|
name: string;
|
|
778
802
|
icon?: ReactNode;
|
|
779
803
|
children?: ReactNode;
|
|
780
|
-
}):
|
|
804
|
+
}): import("react").JSX.Element;
|
|
781
805
|
export function SideNavSection({ title, children }: {
|
|
782
806
|
title?: string;
|
|
783
807
|
children: ReactNode;
|
|
784
|
-
}):
|
|
785
|
-
export function SideNavItem({ label, icon,
|
|
786
|
-
label
|
|
787
|
-
icon
|
|
788
|
-
|
|
789
|
-
}): React.JSX.Element;
|
|
808
|
+
}): import("react").JSX.Element;
|
|
809
|
+
export function SideNavItem({ label, icon, className, ...props }: {
|
|
810
|
+
label?: string;
|
|
811
|
+
icon?: ReactNode;
|
|
812
|
+
} & BlockProps): import("react").JSX.Element;
|
|
790
813
|
}
|
|
791
814
|
|
|
792
815
|
declare module '@umami/react-zen/Slider' {
|
|
@@ -871,7 +894,7 @@ declare module '@umami/react-zen/Tabs' {
|
|
|
871
894
|
|
|
872
895
|
declare module '@umami/react-zen/Text' {
|
|
873
896
|
import { HTMLAttributes } from 'react';
|
|
874
|
-
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap, FontColor } from '@/lib/types';
|
|
897
|
+
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap, TextTransform, FontColor } from '@/lib/types';
|
|
875
898
|
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
876
899
|
color?: FontColor;
|
|
877
900
|
size?: Responsive<FontSize>;
|
|
@@ -879,6 +902,7 @@ declare module '@umami/react-zen/Text' {
|
|
|
879
902
|
weight?: Responsive<FontWeight>;
|
|
880
903
|
align?: Responsive<TextAlign>;
|
|
881
904
|
wrap?: Responsive<TextWrap>;
|
|
905
|
+
transform?: Responsive<TextTransform>;
|
|
882
906
|
as?: 'span' | 'div' | 'label' | 'p';
|
|
883
907
|
asChild?: boolean;
|
|
884
908
|
}
|
|
@@ -944,9 +968,16 @@ declare module '@umami/react-zen/ToggleGroup' {
|
|
|
944
968
|
}
|
|
945
969
|
|
|
946
970
|
declare module '@umami/react-zen/Tooltip' {
|
|
947
|
-
import {
|
|
948
|
-
|
|
949
|
-
|
|
971
|
+
import { ReactNode } from 'react';
|
|
972
|
+
import { TooltipProps as AriaTooltipProps } from 'react-aria-components';
|
|
973
|
+
interface TooltipProps extends AriaTooltipProps {
|
|
974
|
+
showArrow?: boolean;
|
|
975
|
+
}
|
|
976
|
+
function Tooltip({ children, className, showArrow, ...props }: TooltipProps): import("react").JSX.Element;
|
|
977
|
+
function TooltipBubble({ children }: {
|
|
978
|
+
children?: ReactNode;
|
|
979
|
+
}): import("react").JSX.Element;
|
|
980
|
+
export { Tooltip, TooltipBubble };
|
|
950
981
|
export type { TooltipProps };
|
|
951
982
|
}
|
|
952
983
|
|