@umami/react-zen 0.119.0 → 0.120.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 +1485 -1484
- package/dist/index.d.mts +38 -5
- package/dist/index.d.ts +38 -5
- package/dist/index.js +1283 -1250
- package/dist/index.mjs +1292 -1259
- package/package.json +1 -1
- package/styles.css +1485 -1484
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusabl
|
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
|
|
5
5
|
import { UseFormProps, SubmitHandler, UseFormReturn, RegisterOptions, FieldValues } from 'react-hook-form';
|
|
6
|
+
import * as react_icons_lib from 'react-icons/lib';
|
|
6
7
|
|
|
7
8
|
declare const Breakpoints: readonly ["", "xs", "sm", "md", "lg", "xl"];
|
|
8
9
|
type Breakpoint = (typeof Breakpoints)[number];
|
|
@@ -390,6 +391,31 @@ interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
390
391
|
}
|
|
391
392
|
declare function Icon({ color, size, variant, rotate, strokeWidth, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): react.JSX.Element;
|
|
392
393
|
|
|
394
|
+
declare const Icons: {
|
|
395
|
+
Moon: react_icons_lib.IconType;
|
|
396
|
+
Sun: react_icons_lib.IconType;
|
|
397
|
+
Alert: react_icons_lib.IconType;
|
|
398
|
+
Arrow: react_icons_lib.IconType;
|
|
399
|
+
Check: react_icons_lib.IconType;
|
|
400
|
+
Chevron: react_icons_lib.IconType;
|
|
401
|
+
Close: react_icons_lib.IconType;
|
|
402
|
+
Copy: react_icons_lib.IconType;
|
|
403
|
+
Edit: react_icons_lib.IconType;
|
|
404
|
+
ExternalLink: react_icons_lib.IconType;
|
|
405
|
+
Eye: react_icons_lib.IconType;
|
|
406
|
+
EyeSlash: react_icons_lib.IconType;
|
|
407
|
+
Info: react_icons_lib.IconType;
|
|
408
|
+
Logout: react_icons_lib.IconType;
|
|
409
|
+
MagnifyingGlass: react_icons_lib.IconType;
|
|
410
|
+
Menu: react_icons_lib.IconType;
|
|
411
|
+
Minus: react_icons_lib.IconType;
|
|
412
|
+
More: react_icons_lib.IconType;
|
|
413
|
+
PanelLeft: react_icons_lib.IconType;
|
|
414
|
+
Plus: react_icons_lib.IconType;
|
|
415
|
+
Refresh: react_icons_lib.IconType;
|
|
416
|
+
Trash: react_icons_lib.IconType;
|
|
417
|
+
};
|
|
418
|
+
|
|
393
419
|
interface ImageProps extends HTMLAttributes<HTMLImageElement> {
|
|
394
420
|
src: string;
|
|
395
421
|
alt?: string;
|
|
@@ -519,11 +545,10 @@ interface SearchFieldProps extends SearchFieldProps$1 {
|
|
|
519
545
|
label?: string;
|
|
520
546
|
placeholder?: string;
|
|
521
547
|
value?: string;
|
|
522
|
-
defaultValue?: string;
|
|
523
548
|
delay?: number;
|
|
524
549
|
onSearch?: (value: string) => void;
|
|
525
550
|
}
|
|
526
|
-
declare function SearchField({ label, placeholder, value,
|
|
551
|
+
declare function SearchField({ label, placeholder, value, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
527
552
|
|
|
528
553
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
529
554
|
items?: any[];
|
|
@@ -641,10 +666,18 @@ interface TextFieldProps extends TextFieldProps$1 {
|
|
|
641
666
|
label?: string;
|
|
642
667
|
placeholder?: string;
|
|
643
668
|
allowCopy?: boolean;
|
|
644
|
-
|
|
669
|
+
asChild?: boolean;
|
|
645
670
|
onChange?: (e: any) => void;
|
|
646
671
|
}
|
|
647
|
-
declare function TextField({ value, defaultValue, label, placeholder, allowCopy,
|
|
672
|
+
declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asChild, className, onChange, children, ...props }: TextFieldProps): react.JSX.Element;
|
|
673
|
+
|
|
674
|
+
interface TextAreaProps extends TextFieldProps {
|
|
675
|
+
rows?: number;
|
|
676
|
+
cols?: number;
|
|
677
|
+
resize?: 'none' | 'vertical' | 'horizontal';
|
|
678
|
+
children?: React.ReactNode;
|
|
679
|
+
}
|
|
680
|
+
declare function TextArea({ rows, cols, resize, className, style, children, ...props }: TextAreaProps): react.JSX.Element;
|
|
648
681
|
|
|
649
682
|
interface ThemeButtonProps extends ButtonProps {
|
|
650
683
|
defaultTheme?: string;
|
|
@@ -676,4 +709,4 @@ interface ZenProviderProps {
|
|
|
676
709
|
}
|
|
677
710
|
declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
|
|
678
711
|
|
|
679
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormField, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, 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, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
|
|
712
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormField, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Icons, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, 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, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusabl
|
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
|
|
5
5
|
import { UseFormProps, SubmitHandler, UseFormReturn, RegisterOptions, FieldValues } from 'react-hook-form';
|
|
6
|
+
import * as react_icons_lib from 'react-icons/lib';
|
|
6
7
|
|
|
7
8
|
declare const Breakpoints: readonly ["", "xs", "sm", "md", "lg", "xl"];
|
|
8
9
|
type Breakpoint = (typeof Breakpoints)[number];
|
|
@@ -390,6 +391,31 @@ interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
390
391
|
}
|
|
391
392
|
declare function Icon({ color, size, variant, rotate, strokeWidth, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): react.JSX.Element;
|
|
392
393
|
|
|
394
|
+
declare const Icons: {
|
|
395
|
+
Moon: react_icons_lib.IconType;
|
|
396
|
+
Sun: react_icons_lib.IconType;
|
|
397
|
+
Alert: react_icons_lib.IconType;
|
|
398
|
+
Arrow: react_icons_lib.IconType;
|
|
399
|
+
Check: react_icons_lib.IconType;
|
|
400
|
+
Chevron: react_icons_lib.IconType;
|
|
401
|
+
Close: react_icons_lib.IconType;
|
|
402
|
+
Copy: react_icons_lib.IconType;
|
|
403
|
+
Edit: react_icons_lib.IconType;
|
|
404
|
+
ExternalLink: react_icons_lib.IconType;
|
|
405
|
+
Eye: react_icons_lib.IconType;
|
|
406
|
+
EyeSlash: react_icons_lib.IconType;
|
|
407
|
+
Info: react_icons_lib.IconType;
|
|
408
|
+
Logout: react_icons_lib.IconType;
|
|
409
|
+
MagnifyingGlass: react_icons_lib.IconType;
|
|
410
|
+
Menu: react_icons_lib.IconType;
|
|
411
|
+
Minus: react_icons_lib.IconType;
|
|
412
|
+
More: react_icons_lib.IconType;
|
|
413
|
+
PanelLeft: react_icons_lib.IconType;
|
|
414
|
+
Plus: react_icons_lib.IconType;
|
|
415
|
+
Refresh: react_icons_lib.IconType;
|
|
416
|
+
Trash: react_icons_lib.IconType;
|
|
417
|
+
};
|
|
418
|
+
|
|
393
419
|
interface ImageProps extends HTMLAttributes<HTMLImageElement> {
|
|
394
420
|
src: string;
|
|
395
421
|
alt?: string;
|
|
@@ -519,11 +545,10 @@ interface SearchFieldProps extends SearchFieldProps$1 {
|
|
|
519
545
|
label?: string;
|
|
520
546
|
placeholder?: string;
|
|
521
547
|
value?: string;
|
|
522
|
-
defaultValue?: string;
|
|
523
548
|
delay?: number;
|
|
524
549
|
onSearch?: (value: string) => void;
|
|
525
550
|
}
|
|
526
|
-
declare function SearchField({ label, placeholder, value,
|
|
551
|
+
declare function SearchField({ label, placeholder, value, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
527
552
|
|
|
528
553
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
529
554
|
items?: any[];
|
|
@@ -641,10 +666,18 @@ interface TextFieldProps extends TextFieldProps$1 {
|
|
|
641
666
|
label?: string;
|
|
642
667
|
placeholder?: string;
|
|
643
668
|
allowCopy?: boolean;
|
|
644
|
-
|
|
669
|
+
asChild?: boolean;
|
|
645
670
|
onChange?: (e: any) => void;
|
|
646
671
|
}
|
|
647
|
-
declare function TextField({ value, defaultValue, label, placeholder, allowCopy,
|
|
672
|
+
declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asChild, className, onChange, children, ...props }: TextFieldProps): react.JSX.Element;
|
|
673
|
+
|
|
674
|
+
interface TextAreaProps extends TextFieldProps {
|
|
675
|
+
rows?: number;
|
|
676
|
+
cols?: number;
|
|
677
|
+
resize?: 'none' | 'vertical' | 'horizontal';
|
|
678
|
+
children?: React.ReactNode;
|
|
679
|
+
}
|
|
680
|
+
declare function TextArea({ rows, cols, resize, className, style, children, ...props }: TextAreaProps): react.JSX.Element;
|
|
648
681
|
|
|
649
682
|
interface ThemeButtonProps extends ButtonProps {
|
|
650
683
|
defaultTheme?: string;
|
|
@@ -676,4 +709,4 @@ interface ZenProviderProps {
|
|
|
676
709
|
}
|
|
677
710
|
declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
|
|
678
711
|
|
|
679
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormField, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, 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, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
|
|
712
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormField, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Icons, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, 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, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, Toast, type ToastProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useDebounce, useNavigationContext, useTheme, useToast };
|