@umami/react-zen 0.191.0 → 0.192.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 +27 -18
- package/dist/index.d.ts +27 -18
- package/dist/index.js +186 -170
- package/dist/index.mjs +186 -170
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -258,7 +258,7 @@ declare const breakpoints: {
|
|
|
258
258
|
xl: number[];
|
|
259
259
|
};
|
|
260
260
|
type BreakpointKey = keyof typeof breakpoints;
|
|
261
|
-
declare function
|
|
261
|
+
declare function useBreakpoint(): "xs" | "sm" | "md" | "lg" | "xl" | null;
|
|
262
262
|
|
|
263
263
|
interface AccordionProps extends DisclosureGroupProps {
|
|
264
264
|
type: 'single' | 'multiple';
|
|
@@ -387,6 +387,31 @@ interface CopyButtonProps {
|
|
|
387
387
|
}
|
|
388
388
|
declare function CopyButton({ value, timeout, className, children, ...props }: CopyButtonProps): react.JSX.Element;
|
|
389
389
|
|
|
390
|
+
interface GridProps extends Omit<BoxProps, 'display'> {
|
|
391
|
+
display?: Responsive<GridDisplay>;
|
|
392
|
+
justifyContent?: Responsive<JustifyContent>;
|
|
393
|
+
justifyItems?: Responsive<JustifyItems>;
|
|
394
|
+
alignContent?: AlignContent;
|
|
395
|
+
alignItems?: AlignItems;
|
|
396
|
+
gap?: Responsive<Gap>;
|
|
397
|
+
gapX?: Responsive<Gap>;
|
|
398
|
+
gapY?: Responsive<Gap>;
|
|
399
|
+
autoFlow?: Responsive<GridAutoFlow>;
|
|
400
|
+
rows?: Responsive<GridTemplateRows>;
|
|
401
|
+
columns?: Responsive<GridTemplateColumns>;
|
|
402
|
+
areas?: Responsive<GridTemplateAreas>;
|
|
403
|
+
}
|
|
404
|
+
declare function Grid({ display, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, autoFlow, rows, columns, areas, className, style, children, ...props }: GridProps): react.JSX.Element;
|
|
405
|
+
|
|
406
|
+
interface DataCardProps extends GridProps {
|
|
407
|
+
data?: {
|
|
408
|
+
id: string;
|
|
409
|
+
label: string;
|
|
410
|
+
value: string;
|
|
411
|
+
}[];
|
|
412
|
+
}
|
|
413
|
+
declare function DataCard({ data, ...props }: DataCardProps): react.JSX.Element;
|
|
414
|
+
|
|
390
415
|
interface DataTableProps extends TableProps {
|
|
391
416
|
data?: any[];
|
|
392
417
|
}
|
|
@@ -420,22 +445,6 @@ interface FloatingTooltipProps extends TooltipBubbleProps {
|
|
|
420
445
|
}
|
|
421
446
|
declare function FloatingTooltip({ className, style, children, ...props }: FloatingTooltipProps): react.JSX.Element;
|
|
422
447
|
|
|
423
|
-
interface GridProps extends Omit<BoxProps, 'display'> {
|
|
424
|
-
display?: Responsive<GridDisplay>;
|
|
425
|
-
justifyContent?: Responsive<JustifyContent>;
|
|
426
|
-
justifyItems?: Responsive<JustifyItems>;
|
|
427
|
-
alignContent?: AlignContent;
|
|
428
|
-
alignItems?: AlignItems;
|
|
429
|
-
gap?: Responsive<Gap>;
|
|
430
|
-
gapX?: Responsive<Gap>;
|
|
431
|
-
gapY?: Responsive<Gap>;
|
|
432
|
-
autoFlow?: Responsive<GridAutoFlow>;
|
|
433
|
-
rows?: Responsive<GridTemplateRows>;
|
|
434
|
-
columns?: Responsive<GridTemplateColumns>;
|
|
435
|
-
areas?: Responsive<GridTemplateAreas>;
|
|
436
|
-
}
|
|
437
|
-
declare function Grid({ display, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, autoFlow, rows, columns, areas, className, style, children, ...props }: GridProps): react.JSX.Element;
|
|
438
|
-
|
|
439
448
|
interface HeadingProps extends BoxProps {
|
|
440
449
|
size?: Responsive<FontSize>;
|
|
441
450
|
weight?: Responsive<FontWeight>;
|
|
@@ -753,4 +762,4 @@ interface ZenProviderProps {
|
|
|
753
762
|
}
|
|
754
763
|
declare function ZenProvider({ children, theme, colorScheme, toast, }: ZenProviderProps): react.JSX.Element;
|
|
755
764
|
|
|
756
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, 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, 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, NavMenuGroup, type NavMenuGroupProps, 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, 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, ThemeButton, Toast, type ToastOptions, 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,
|
|
765
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, DataCard, 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, 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, NavMenuGroup, type NavMenuGroupProps, 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, 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, ThemeButton, Toast, type ToastOptions, 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, useBreakpoint, useDebounce, useNavigationContext, useTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -258,7 +258,7 @@ declare const breakpoints: {
|
|
|
258
258
|
xl: number[];
|
|
259
259
|
};
|
|
260
260
|
type BreakpointKey = keyof typeof breakpoints;
|
|
261
|
-
declare function
|
|
261
|
+
declare function useBreakpoint(): "xs" | "sm" | "md" | "lg" | "xl" | null;
|
|
262
262
|
|
|
263
263
|
interface AccordionProps extends DisclosureGroupProps {
|
|
264
264
|
type: 'single' | 'multiple';
|
|
@@ -387,6 +387,31 @@ interface CopyButtonProps {
|
|
|
387
387
|
}
|
|
388
388
|
declare function CopyButton({ value, timeout, className, children, ...props }: CopyButtonProps): react.JSX.Element;
|
|
389
389
|
|
|
390
|
+
interface GridProps extends Omit<BoxProps, 'display'> {
|
|
391
|
+
display?: Responsive<GridDisplay>;
|
|
392
|
+
justifyContent?: Responsive<JustifyContent>;
|
|
393
|
+
justifyItems?: Responsive<JustifyItems>;
|
|
394
|
+
alignContent?: AlignContent;
|
|
395
|
+
alignItems?: AlignItems;
|
|
396
|
+
gap?: Responsive<Gap>;
|
|
397
|
+
gapX?: Responsive<Gap>;
|
|
398
|
+
gapY?: Responsive<Gap>;
|
|
399
|
+
autoFlow?: Responsive<GridAutoFlow>;
|
|
400
|
+
rows?: Responsive<GridTemplateRows>;
|
|
401
|
+
columns?: Responsive<GridTemplateColumns>;
|
|
402
|
+
areas?: Responsive<GridTemplateAreas>;
|
|
403
|
+
}
|
|
404
|
+
declare function Grid({ display, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, autoFlow, rows, columns, areas, className, style, children, ...props }: GridProps): react.JSX.Element;
|
|
405
|
+
|
|
406
|
+
interface DataCardProps extends GridProps {
|
|
407
|
+
data?: {
|
|
408
|
+
id: string;
|
|
409
|
+
label: string;
|
|
410
|
+
value: string;
|
|
411
|
+
}[];
|
|
412
|
+
}
|
|
413
|
+
declare function DataCard({ data, ...props }: DataCardProps): react.JSX.Element;
|
|
414
|
+
|
|
390
415
|
interface DataTableProps extends TableProps {
|
|
391
416
|
data?: any[];
|
|
392
417
|
}
|
|
@@ -420,22 +445,6 @@ interface FloatingTooltipProps extends TooltipBubbleProps {
|
|
|
420
445
|
}
|
|
421
446
|
declare function FloatingTooltip({ className, style, children, ...props }: FloatingTooltipProps): react.JSX.Element;
|
|
422
447
|
|
|
423
|
-
interface GridProps extends Omit<BoxProps, 'display'> {
|
|
424
|
-
display?: Responsive<GridDisplay>;
|
|
425
|
-
justifyContent?: Responsive<JustifyContent>;
|
|
426
|
-
justifyItems?: Responsive<JustifyItems>;
|
|
427
|
-
alignContent?: AlignContent;
|
|
428
|
-
alignItems?: AlignItems;
|
|
429
|
-
gap?: Responsive<Gap>;
|
|
430
|
-
gapX?: Responsive<Gap>;
|
|
431
|
-
gapY?: Responsive<Gap>;
|
|
432
|
-
autoFlow?: Responsive<GridAutoFlow>;
|
|
433
|
-
rows?: Responsive<GridTemplateRows>;
|
|
434
|
-
columns?: Responsive<GridTemplateColumns>;
|
|
435
|
-
areas?: Responsive<GridTemplateAreas>;
|
|
436
|
-
}
|
|
437
|
-
declare function Grid({ display, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, autoFlow, rows, columns, areas, className, style, children, ...props }: GridProps): react.JSX.Element;
|
|
438
|
-
|
|
439
448
|
interface HeadingProps extends BoxProps {
|
|
440
449
|
size?: Responsive<FontSize>;
|
|
441
450
|
weight?: Responsive<FontWeight>;
|
|
@@ -753,4 +762,4 @@ interface ZenProviderProps {
|
|
|
753
762
|
}
|
|
754
763
|
declare function ZenProvider({ children, theme, colorScheme, toast, }: ZenProviderProps): react.JSX.Element;
|
|
755
764
|
|
|
756
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, 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, 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, NavMenuGroup, type NavMenuGroupProps, 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, 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, ThemeButton, Toast, type ToastOptions, 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,
|
|
765
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, DataCard, 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, 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, NavMenuGroup, type NavMenuGroupProps, 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, 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, ThemeButton, Toast, type ToastOptions, 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, useBreakpoint, useDebounce, useNavigationContext, useTheme, useToast };
|