@umami/react-zen 0.129.0 → 0.131.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 +13 -7
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +272 -263
- package/dist/index.mjs +217 -208
- package/package.json +1 -1
- package/styles.css +13 -7
package/dist/index.css
CHANGED
|
@@ -4854,7 +4854,7 @@ body a.Button_button__YTAxZ {
|
|
|
4854
4854
|
}
|
|
4855
4855
|
|
|
4856
4856
|
/* virtual-css:css:a7fa90aea7daca4292e76cc01f7615ea */
|
|
4857
|
-
.
|
|
4857
|
+
.ToggleGroup_group__MTMwY {
|
|
4858
4858
|
font-size: var(--font-size-1);
|
|
4859
4859
|
color: var(--font-color);
|
|
4860
4860
|
background-color: var(--background-color);
|
|
@@ -4863,12 +4863,12 @@ body a.Button_button__YTAxZ {
|
|
|
4863
4863
|
border-radius: var(--border-radius);
|
|
4864
4864
|
overflow: hidden;
|
|
4865
4865
|
}
|
|
4866
|
-
.
|
|
4866
|
+
.ToggleGroup_list__MzBiM {
|
|
4867
4867
|
display: flex;
|
|
4868
4868
|
flex-direction: row;
|
|
4869
4869
|
align-items: center;
|
|
4870
4870
|
}
|
|
4871
|
-
.
|
|
4871
|
+
.ToggleGroup_item__ZDA1O {
|
|
4872
4872
|
color: var(--font-color-muted);
|
|
4873
4873
|
background-color: var(--background-color);
|
|
4874
4874
|
font-weight: var(--font-weight-bold);
|
|
@@ -4879,16 +4879,22 @@ body a.Button_button__YTAxZ {
|
|
|
4879
4879
|
cursor: pointer;
|
|
4880
4880
|
outline: none;
|
|
4881
4881
|
}
|
|
4882
|
-
.
|
|
4882
|
+
.ToggleGroup_item__ZDA1O:not(:first-child) {
|
|
4883
4883
|
border-left: var(--border);
|
|
4884
4884
|
}
|
|
4885
|
-
.
|
|
4885
|
+
.ToggleGroup_item__ZDA1O:hover {
|
|
4886
4886
|
background-color: var(--highlight-color);
|
|
4887
4887
|
}
|
|
4888
|
-
.
|
|
4888
|
+
.ToggleGroup_item__ZDA1O[data-selected] {
|
|
4889
4889
|
color: var(--font-color);
|
|
4890
4890
|
background-color: var(--highlight-color);
|
|
4891
4891
|
}
|
|
4892
|
-
.
|
|
4892
|
+
.ToggleGroup_item__ZDA1O[data-disabled] {
|
|
4893
4893
|
color: var(--font-color-disabled);
|
|
4894
4894
|
}
|
|
4895
|
+
.ToggleGroup_primary__ODIyM {
|
|
4896
|
+
& .ToggleGroup_item__ZDA1O[data-selected] {
|
|
4897
|
+
color: var(--primary-font-color);
|
|
4898
|
+
background-color: var(--primary-color);
|
|
4899
|
+
}
|
|
4900
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, Di
|
|
|
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';
|
|
5
|
-
import { UseFormProps, SubmitHandler, UseFormReturn,
|
|
5
|
+
import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, ControllerRenderProps, FieldValues, ControllerFieldState, UseFormStateReturn, RegisterOptions } from 'react-hook-form';
|
|
6
6
|
|
|
7
7
|
interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
|
|
8
8
|
autoComplete?: string;
|
|
@@ -143,6 +143,15 @@ interface FormButtonsProps extends RowProps {
|
|
|
143
143
|
}
|
|
144
144
|
declare function FormButtons({ fill, children, ...props }: FormButtonsProps): react.JSX.Element;
|
|
145
145
|
|
|
146
|
+
interface FormControllerProps extends ControllerProps {
|
|
147
|
+
children: ({ field, fieldState, formState, }: {
|
|
148
|
+
field: ControllerRenderProps<FieldValues, string>;
|
|
149
|
+
fieldState: ControllerFieldState;
|
|
150
|
+
formState: UseFormStateReturn<FieldValues>;
|
|
151
|
+
}) => ReactElement;
|
|
152
|
+
}
|
|
153
|
+
declare function FormController({ children, ...props }: FormControllerProps): react.JSX.Element;
|
|
154
|
+
|
|
146
155
|
interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseFormReturn> {
|
|
147
156
|
name: string;
|
|
148
157
|
description?: string;
|
|
@@ -673,9 +682,10 @@ interface ToggleGroupProps extends TagGroupProps {
|
|
|
673
682
|
label?: string;
|
|
674
683
|
value?: string[];
|
|
675
684
|
defaultValue?: string[];
|
|
685
|
+
variant?: 'primary';
|
|
676
686
|
onChange?: (value: string[]) => void;
|
|
677
687
|
}
|
|
678
|
-
declare function ToggleGroup({ label, value, defaultValue, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react.JSX.Element;
|
|
688
|
+
declare function ToggleGroup({ label, value, defaultValue, variant, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react.JSX.Element;
|
|
679
689
|
interface ToggleGroupItemProps extends TagProps {
|
|
680
690
|
}
|
|
681
691
|
declare function ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): react.JSX.Element;
|
|
@@ -688,4 +698,4 @@ interface ZenProviderProps {
|
|
|
688
698
|
}
|
|
689
699
|
declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
|
|
690
700
|
|
|
691
|
-
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, FormFieldArray, type FormFieldArrayProps, 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 };
|
|
701
|
+
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, 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, Di
|
|
|
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';
|
|
5
|
-
import { UseFormProps, SubmitHandler, UseFormReturn,
|
|
5
|
+
import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, ControllerRenderProps, FieldValues, ControllerFieldState, UseFormStateReturn, RegisterOptions } from 'react-hook-form';
|
|
6
6
|
|
|
7
7
|
interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
|
|
8
8
|
autoComplete?: string;
|
|
@@ -143,6 +143,15 @@ interface FormButtonsProps extends RowProps {
|
|
|
143
143
|
}
|
|
144
144
|
declare function FormButtons({ fill, children, ...props }: FormButtonsProps): react.JSX.Element;
|
|
145
145
|
|
|
146
|
+
interface FormControllerProps extends ControllerProps {
|
|
147
|
+
children: ({ field, fieldState, formState, }: {
|
|
148
|
+
field: ControllerRenderProps<FieldValues, string>;
|
|
149
|
+
fieldState: ControllerFieldState;
|
|
150
|
+
formState: UseFormStateReturn<FieldValues>;
|
|
151
|
+
}) => ReactElement;
|
|
152
|
+
}
|
|
153
|
+
declare function FormController({ children, ...props }: FormControllerProps): react.JSX.Element;
|
|
154
|
+
|
|
146
155
|
interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseFormReturn> {
|
|
147
156
|
name: string;
|
|
148
157
|
description?: string;
|
|
@@ -673,9 +682,10 @@ interface ToggleGroupProps extends TagGroupProps {
|
|
|
673
682
|
label?: string;
|
|
674
683
|
value?: string[];
|
|
675
684
|
defaultValue?: string[];
|
|
685
|
+
variant?: 'primary';
|
|
676
686
|
onChange?: (value: string[]) => void;
|
|
677
687
|
}
|
|
678
|
-
declare function ToggleGroup({ label, value, defaultValue, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react.JSX.Element;
|
|
688
|
+
declare function ToggleGroup({ label, value, defaultValue, variant, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react.JSX.Element;
|
|
679
689
|
interface ToggleGroupItemProps extends TagProps {
|
|
680
690
|
}
|
|
681
691
|
declare function ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): react.JSX.Element;
|
|
@@ -688,4 +698,4 @@ interface ZenProviderProps {
|
|
|
688
698
|
}
|
|
689
699
|
declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
|
|
690
700
|
|
|
691
|
-
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, FormFieldArray, type FormFieldArrayProps, 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 };
|
|
701
|
+
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, 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, 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 };
|