@umami/react-zen 0.221.0 → 0.223.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 +5019 -0
- package/dist/index.d.mts +20 -8
- package/dist/index.d.ts +20 -8
- package/dist/index.js +1185 -767
- package/dist/index.mjs +1013 -595
- package/package.json +1 -1
- package/styles.full.css +1 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -105,6 +105,17 @@ type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-
|
|
|
105
105
|
type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
106
106
|
type Opacity = '0' | '5' | '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100';
|
|
107
107
|
type PointerEvents = 'none' | 'auto';
|
|
108
|
+
type SizingSpecial = 'auto' | 'full' | 'min' | 'max' | 'fit';
|
|
109
|
+
type WidthViewport = 'screen' | 'svw' | 'lvw' | 'dvw';
|
|
110
|
+
type HeightViewport = 'screen' | 'svh' | 'lvh' | 'dvh';
|
|
111
|
+
type Fraction = '1/2' | '1/3' | '2/3' | '1/4' | '2/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5' | '1/6' | '2/6' | '3/6' | '4/6' | '5/6' | '1/12' | '2/12' | '3/12' | '4/12' | '5/12' | '6/12' | '7/12' | '8/12' | '9/12' | '10/12' | '11/12';
|
|
112
|
+
type Width = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
113
|
+
type Height = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
114
|
+
type MaxWidthSpecial = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | 'min' | 'max' | 'fit' | 'prose' | 'screen-sm' | 'screen-md' | 'screen-lg' | 'screen-xl' | 'screen-2xl';
|
|
115
|
+
type MinWidth = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
116
|
+
type MaxWidth = Spacing | Fraction | MaxWidthSpecial | WidthViewport;
|
|
117
|
+
type MinHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
118
|
+
type MaxHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
108
119
|
|
|
109
120
|
type RenderProp<P = Record<string, unknown>> = ReactElement | ((props: P) => ReactElement);
|
|
110
121
|
/**
|
|
@@ -182,12 +193,12 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
182
193
|
marginRight?: Responsive<Spacing>;
|
|
183
194
|
marginBottom?: Responsive<Spacing>;
|
|
184
195
|
marginLeft?: Responsive<Spacing>;
|
|
185
|
-
width?: string
|
|
186
|
-
minWidth?: string
|
|
187
|
-
maxWidth?: string
|
|
188
|
-
height?: string
|
|
189
|
-
minHeight?: string
|
|
190
|
-
maxHeight?: string
|
|
196
|
+
width?: Responsive<Width | string>;
|
|
197
|
+
minWidth?: Responsive<MinWidth | string>;
|
|
198
|
+
maxWidth?: Responsive<MaxWidth | string>;
|
|
199
|
+
height?: Responsive<Height | string>;
|
|
200
|
+
minHeight?: Responsive<MinHeight | string>;
|
|
201
|
+
maxHeight?: Responsive<MaxHeight | string>;
|
|
191
202
|
position?: Responsive<Position>;
|
|
192
203
|
textAlign?: Responsive<TextAlign>;
|
|
193
204
|
top?: string;
|
|
@@ -555,12 +566,13 @@ declare function useToast(): {
|
|
|
555
566
|
toasts: ToastState[];
|
|
556
567
|
};
|
|
557
568
|
|
|
569
|
+
type StrokeWidth = '0.5' | '1' | '1.5' | '2' | '3' | '4';
|
|
558
570
|
interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'size'> {
|
|
559
571
|
color?: FontColor;
|
|
560
572
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
561
573
|
variant?: 'input';
|
|
562
574
|
rotate?: number;
|
|
563
|
-
strokeWidth?:
|
|
575
|
+
strokeWidth?: StrokeWidth;
|
|
564
576
|
strokeColor?: StrokeColor;
|
|
565
577
|
fillColor?: FillColor;
|
|
566
578
|
}
|
|
@@ -856,4 +868,4 @@ interface ZenProviderProps {
|
|
|
856
868
|
}
|
|
857
869
|
declare function ZenProvider({ children, theme, colorScheme, toast, }: ZenProviderProps): react_jsx_runtime.JSX.Element;
|
|
858
870
|
|
|
859
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
|
871
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,17 @@ type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-
|
|
|
105
105
|
type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
106
106
|
type Opacity = '0' | '5' | '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100';
|
|
107
107
|
type PointerEvents = 'none' | 'auto';
|
|
108
|
+
type SizingSpecial = 'auto' | 'full' | 'min' | 'max' | 'fit';
|
|
109
|
+
type WidthViewport = 'screen' | 'svw' | 'lvw' | 'dvw';
|
|
110
|
+
type HeightViewport = 'screen' | 'svh' | 'lvh' | 'dvh';
|
|
111
|
+
type Fraction = '1/2' | '1/3' | '2/3' | '1/4' | '2/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5' | '1/6' | '2/6' | '3/6' | '4/6' | '5/6' | '1/12' | '2/12' | '3/12' | '4/12' | '5/12' | '6/12' | '7/12' | '8/12' | '9/12' | '10/12' | '11/12';
|
|
112
|
+
type Width = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
113
|
+
type Height = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
114
|
+
type MaxWidthSpecial = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | 'min' | 'max' | 'fit' | 'prose' | 'screen-sm' | 'screen-md' | 'screen-lg' | 'screen-xl' | 'screen-2xl';
|
|
115
|
+
type MinWidth = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
116
|
+
type MaxWidth = Spacing | Fraction | MaxWidthSpecial | WidthViewport;
|
|
117
|
+
type MinHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
118
|
+
type MaxHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
108
119
|
|
|
109
120
|
type RenderProp<P = Record<string, unknown>> = ReactElement | ((props: P) => ReactElement);
|
|
110
121
|
/**
|
|
@@ -182,12 +193,12 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
182
193
|
marginRight?: Responsive<Spacing>;
|
|
183
194
|
marginBottom?: Responsive<Spacing>;
|
|
184
195
|
marginLeft?: Responsive<Spacing>;
|
|
185
|
-
width?: string
|
|
186
|
-
minWidth?: string
|
|
187
|
-
maxWidth?: string
|
|
188
|
-
height?: string
|
|
189
|
-
minHeight?: string
|
|
190
|
-
maxHeight?: string
|
|
196
|
+
width?: Responsive<Width | string>;
|
|
197
|
+
minWidth?: Responsive<MinWidth | string>;
|
|
198
|
+
maxWidth?: Responsive<MaxWidth | string>;
|
|
199
|
+
height?: Responsive<Height | string>;
|
|
200
|
+
minHeight?: Responsive<MinHeight | string>;
|
|
201
|
+
maxHeight?: Responsive<MaxHeight | string>;
|
|
191
202
|
position?: Responsive<Position>;
|
|
192
203
|
textAlign?: Responsive<TextAlign>;
|
|
193
204
|
top?: string;
|
|
@@ -555,12 +566,13 @@ declare function useToast(): {
|
|
|
555
566
|
toasts: ToastState[];
|
|
556
567
|
};
|
|
557
568
|
|
|
569
|
+
type StrokeWidth = '0.5' | '1' | '1.5' | '2' | '3' | '4';
|
|
558
570
|
interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'size'> {
|
|
559
571
|
color?: FontColor;
|
|
560
572
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
561
573
|
variant?: 'input';
|
|
562
574
|
rotate?: number;
|
|
563
|
-
strokeWidth?:
|
|
575
|
+
strokeWidth?: StrokeWidth;
|
|
564
576
|
strokeColor?: StrokeColor;
|
|
565
577
|
fillColor?: FillColor;
|
|
566
578
|
}
|
|
@@ -856,4 +868,4 @@ interface ZenProviderProps {
|
|
|
856
868
|
}
|
|
857
869
|
declare function ZenProvider({ children, theme, colorScheme, toast, }: ZenProviderProps): react_jsx_runtime.JSX.Element;
|
|
858
870
|
|
|
859
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
|
871
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|