@umami/react-zen 0.116.0 → 0.118.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 +23 -18
- package/dist/index.d.ts +23 -18
- package/dist/index.js +407 -437
- package/dist/index.mjs +330 -360
- package/package.json +10 -11
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, MenuProps as MenuProps$1, MenuItemProps, MenuSectionProps, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, PopoverProps, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
|
|
2
|
-
export { DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RouterProvider, Selection, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
1
|
+
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, PopoverProps, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
|
|
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
5
|
import { UseFormProps, SubmitHandler, UseFormReturn, RegisterOptions, FieldValues } from 'react-hook-form';
|
|
@@ -149,7 +149,7 @@ interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseForm
|
|
|
149
149
|
rules?: RegisterOptions<FieldValues, string>;
|
|
150
150
|
children: any;
|
|
151
151
|
}
|
|
152
|
-
declare
|
|
152
|
+
declare function FormField({ name, description, label, rules, className, children, ...props }: FormFieldProps): react.JSX.Element;
|
|
153
153
|
|
|
154
154
|
interface ButtonProps extends ButtonProps$1 {
|
|
155
155
|
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
@@ -158,7 +158,7 @@ interface ButtonProps extends ButtonProps$1 {
|
|
|
158
158
|
slot?: string;
|
|
159
159
|
children?: ReactNode;
|
|
160
160
|
}
|
|
161
|
-
declare
|
|
161
|
+
declare function Button({ variant, size, asChild, preventFocusOnPress, className, children, ...props }: ButtonProps): react.JSX.Element;
|
|
162
162
|
|
|
163
163
|
interface FormResetButtonProps extends ButtonProps {
|
|
164
164
|
values?: FieldValues | {
|
|
@@ -288,7 +288,7 @@ declare function Calendar({ className, value, minValue, maxValue, defaultValue,
|
|
|
288
288
|
interface CheckboxProps extends CheckboxProps$1 {
|
|
289
289
|
label?: string;
|
|
290
290
|
}
|
|
291
|
-
declare
|
|
291
|
+
declare function Checkbox({ label, className, children, ...props }: CheckboxProps): react.JSX.Element;
|
|
292
292
|
|
|
293
293
|
interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
294
294
|
asChild?: boolean;
|
|
@@ -473,11 +473,15 @@ interface MenuProps extends MenuProps$1<any> {
|
|
|
473
473
|
children?: ReactNode;
|
|
474
474
|
}
|
|
475
475
|
declare function Menu({ className, children, ...props }: MenuProps): react.JSX.Element;
|
|
476
|
-
|
|
476
|
+
interface MenuItemProps extends MenuItemProps$1 {
|
|
477
|
+
showChecked?: boolean;
|
|
478
|
+
}
|
|
479
|
+
declare function MenuItem({ showChecked, children, className, ...props }: MenuItemProps): react.JSX.Element;
|
|
477
480
|
declare function MenuSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
478
|
-
|
|
481
|
+
interface MenuSectionProps extends MenuSectionProps$1<any> {
|
|
479
482
|
title?: string;
|
|
480
|
-
}
|
|
483
|
+
}
|
|
484
|
+
declare function MenuSection({ title, className, children, ...props }: MenuSectionProps): react.JSX.Element;
|
|
481
485
|
|
|
482
486
|
interface ModalProps extends ModalOverlayProps {
|
|
483
487
|
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'fullscreen';
|
|
@@ -516,7 +520,7 @@ declare function NavMenuItem({ isSelected, className, children, ...props }: NavM
|
|
|
516
520
|
interface PasswordFieldProps extends TextFieldProps$1 {
|
|
517
521
|
label?: string;
|
|
518
522
|
}
|
|
519
|
-
declare
|
|
523
|
+
declare function PasswordField({ label, className, ...props }: PasswordFieldProps): react.JSX.Element;
|
|
520
524
|
|
|
521
525
|
declare function Popover({ children, className, ...props }: PopoverProps): react.JSX.Element;
|
|
522
526
|
|
|
@@ -533,7 +537,8 @@ declare function ProgressCircle({ className, showValue, ...props }: ProgressCirc
|
|
|
533
537
|
interface RadioGroupProps extends RadioGroupProps$1 {
|
|
534
538
|
label?: string;
|
|
535
539
|
}
|
|
536
|
-
declare
|
|
540
|
+
declare function RadioGroup({ label, children, className, ...props }: RadioGroupProps): react.JSX.Element;
|
|
541
|
+
|
|
537
542
|
declare function Radio({ children, className, ...props }: RadioProps): react.JSX.Element;
|
|
538
543
|
|
|
539
544
|
interface SearchFieldProps extends SearchFieldProps$1 {
|
|
@@ -543,7 +548,7 @@ interface SearchFieldProps extends SearchFieldProps$1 {
|
|
|
543
548
|
delay?: number;
|
|
544
549
|
onSearch?: (value: string) => void;
|
|
545
550
|
}
|
|
546
|
-
declare
|
|
551
|
+
declare function SearchField({ label, placeholder, value, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
547
552
|
|
|
548
553
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
549
554
|
items?: any[];
|
|
@@ -563,7 +568,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
|
563
568
|
defaultChildren: ReactNode;
|
|
564
569
|
}) => ReactNode);
|
|
565
570
|
}
|
|
566
|
-
declare
|
|
571
|
+
declare function Select({ items, value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, onSearch, onSelectionChange, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react.JSX.Element;
|
|
567
572
|
|
|
568
573
|
interface SidebarProps extends ColumnProps {
|
|
569
574
|
variant?: '1' | '2' | '3' | 'quiet';
|
|
@@ -594,7 +599,7 @@ interface SliderProps extends SliderProps$1 {
|
|
|
594
599
|
label?: ReactNode;
|
|
595
600
|
showValue?: boolean;
|
|
596
601
|
}
|
|
597
|
-
declare
|
|
602
|
+
declare function Slider({ className, showValue, label, ...props }: SliderProps): react.JSX.Element;
|
|
598
603
|
|
|
599
604
|
declare function Slot({ children, ...props }: {
|
|
600
605
|
children: ReactElement | ReactNode;
|
|
@@ -620,7 +625,7 @@ declare function StatusLight(props: StatusLightProps): react.JSX.Element;
|
|
|
620
625
|
interface SwitchProps extends SwitchProps$1 {
|
|
621
626
|
label?: string;
|
|
622
627
|
}
|
|
623
|
-
declare
|
|
628
|
+
declare function Switch({ label, children, className, ...props }: SwitchProps): react.JSX.Element;
|
|
624
629
|
|
|
625
630
|
interface TableColumnProps extends ColumnProps$1 {
|
|
626
631
|
align?: 'start' | 'center' | 'end';
|
|
@@ -664,7 +669,7 @@ interface TextFieldProps extends TextFieldProps$1 {
|
|
|
664
669
|
asChild?: boolean;
|
|
665
670
|
onChange?: (e: any) => void;
|
|
666
671
|
}
|
|
667
|
-
declare
|
|
672
|
+
declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asChild, className, onChange, children, ...props }: TextFieldProps): react.JSX.Element;
|
|
668
673
|
|
|
669
674
|
interface TextAreaProps extends TextFieldProps {
|
|
670
675
|
rows?: number;
|
|
@@ -672,7 +677,7 @@ interface TextAreaProps extends TextFieldProps {
|
|
|
672
677
|
resize?: 'none' | 'vertical' | 'horizontal';
|
|
673
678
|
children?: React.ReactNode;
|
|
674
679
|
}
|
|
675
|
-
declare
|
|
680
|
+
declare function TextArea({ rows, cols, resize, className, style, children, ...props }: TextAreaProps): react.JSX.Element;
|
|
676
681
|
|
|
677
682
|
interface ThemeButtonProps extends ButtonProps {
|
|
678
683
|
defaultTheme?: string;
|
|
@@ -683,7 +688,7 @@ interface ToggleProps extends ToggleButtonProps {
|
|
|
683
688
|
label?: string;
|
|
684
689
|
value?: string;
|
|
685
690
|
}
|
|
686
|
-
declare
|
|
691
|
+
declare function Toggle({ label, children, className, ...props }: ToggleProps): react.JSX.Element;
|
|
687
692
|
|
|
688
693
|
interface ToggleGroupProps extends TagGroupProps {
|
|
689
694
|
label?: string;
|
|
@@ -704,4 +709,4 @@ interface ZenProviderProps {
|
|
|
704
709
|
}
|
|
705
710
|
declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
|
|
706
711
|
|
|
707
|
-
export { Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, ConfirmationDialog, Container, DataColumn, DataTable, Dialog, Dots, Flexbox, FloatingTooltip, Form, FormButtons, FormField, FormResetButton, FormSubmitButton, Grid, Heading, HoverTrigger, Icon, Icons, Image, InlineEditField, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, Modal, NavMenu, NavMenuItem, Navbar, NavbarContext, NavbarItem, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Sidebar, SidebarHeader, SidebarItem, SidebarSection, Slider, Slot, Spinner, StatusLight, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, Text, TextArea, TextField, ThemeButton, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, ZenProvider, 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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, MenuProps as MenuProps$1, MenuItemProps, MenuSectionProps, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, PopoverProps, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
|
|
2
|
-
export { DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RouterProvider, Selection, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
1
|
+
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, PopoverProps, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
|
|
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
5
|
import { UseFormProps, SubmitHandler, UseFormReturn, RegisterOptions, FieldValues } from 'react-hook-form';
|
|
@@ -149,7 +149,7 @@ interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseForm
|
|
|
149
149
|
rules?: RegisterOptions<FieldValues, string>;
|
|
150
150
|
children: any;
|
|
151
151
|
}
|
|
152
|
-
declare
|
|
152
|
+
declare function FormField({ name, description, label, rules, className, children, ...props }: FormFieldProps): react.JSX.Element;
|
|
153
153
|
|
|
154
154
|
interface ButtonProps extends ButtonProps$1 {
|
|
155
155
|
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
@@ -158,7 +158,7 @@ interface ButtonProps extends ButtonProps$1 {
|
|
|
158
158
|
slot?: string;
|
|
159
159
|
children?: ReactNode;
|
|
160
160
|
}
|
|
161
|
-
declare
|
|
161
|
+
declare function Button({ variant, size, asChild, preventFocusOnPress, className, children, ...props }: ButtonProps): react.JSX.Element;
|
|
162
162
|
|
|
163
163
|
interface FormResetButtonProps extends ButtonProps {
|
|
164
164
|
values?: FieldValues | {
|
|
@@ -288,7 +288,7 @@ declare function Calendar({ className, value, minValue, maxValue, defaultValue,
|
|
|
288
288
|
interface CheckboxProps extends CheckboxProps$1 {
|
|
289
289
|
label?: string;
|
|
290
290
|
}
|
|
291
|
-
declare
|
|
291
|
+
declare function Checkbox({ label, className, children, ...props }: CheckboxProps): react.JSX.Element;
|
|
292
292
|
|
|
293
293
|
interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
294
294
|
asChild?: boolean;
|
|
@@ -473,11 +473,15 @@ interface MenuProps extends MenuProps$1<any> {
|
|
|
473
473
|
children?: ReactNode;
|
|
474
474
|
}
|
|
475
475
|
declare function Menu({ className, children, ...props }: MenuProps): react.JSX.Element;
|
|
476
|
-
|
|
476
|
+
interface MenuItemProps extends MenuItemProps$1 {
|
|
477
|
+
showChecked?: boolean;
|
|
478
|
+
}
|
|
479
|
+
declare function MenuItem({ showChecked, children, className, ...props }: MenuItemProps): react.JSX.Element;
|
|
477
480
|
declare function MenuSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
478
|
-
|
|
481
|
+
interface MenuSectionProps extends MenuSectionProps$1<any> {
|
|
479
482
|
title?: string;
|
|
480
|
-
}
|
|
483
|
+
}
|
|
484
|
+
declare function MenuSection({ title, className, children, ...props }: MenuSectionProps): react.JSX.Element;
|
|
481
485
|
|
|
482
486
|
interface ModalProps extends ModalOverlayProps {
|
|
483
487
|
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'fullscreen';
|
|
@@ -516,7 +520,7 @@ declare function NavMenuItem({ isSelected, className, children, ...props }: NavM
|
|
|
516
520
|
interface PasswordFieldProps extends TextFieldProps$1 {
|
|
517
521
|
label?: string;
|
|
518
522
|
}
|
|
519
|
-
declare
|
|
523
|
+
declare function PasswordField({ label, className, ...props }: PasswordFieldProps): react.JSX.Element;
|
|
520
524
|
|
|
521
525
|
declare function Popover({ children, className, ...props }: PopoverProps): react.JSX.Element;
|
|
522
526
|
|
|
@@ -533,7 +537,8 @@ declare function ProgressCircle({ className, showValue, ...props }: ProgressCirc
|
|
|
533
537
|
interface RadioGroupProps extends RadioGroupProps$1 {
|
|
534
538
|
label?: string;
|
|
535
539
|
}
|
|
536
|
-
declare
|
|
540
|
+
declare function RadioGroup({ label, children, className, ...props }: RadioGroupProps): react.JSX.Element;
|
|
541
|
+
|
|
537
542
|
declare function Radio({ children, className, ...props }: RadioProps): react.JSX.Element;
|
|
538
543
|
|
|
539
544
|
interface SearchFieldProps extends SearchFieldProps$1 {
|
|
@@ -543,7 +548,7 @@ interface SearchFieldProps extends SearchFieldProps$1 {
|
|
|
543
548
|
delay?: number;
|
|
544
549
|
onSearch?: (value: string) => void;
|
|
545
550
|
}
|
|
546
|
-
declare
|
|
551
|
+
declare function SearchField({ label, placeholder, value, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
547
552
|
|
|
548
553
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
549
554
|
items?: any[];
|
|
@@ -563,7 +568,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
|
563
568
|
defaultChildren: ReactNode;
|
|
564
569
|
}) => ReactNode);
|
|
565
570
|
}
|
|
566
|
-
declare
|
|
571
|
+
declare function Select({ items, value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, onSearch, onSelectionChange, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react.JSX.Element;
|
|
567
572
|
|
|
568
573
|
interface SidebarProps extends ColumnProps {
|
|
569
574
|
variant?: '1' | '2' | '3' | 'quiet';
|
|
@@ -594,7 +599,7 @@ interface SliderProps extends SliderProps$1 {
|
|
|
594
599
|
label?: ReactNode;
|
|
595
600
|
showValue?: boolean;
|
|
596
601
|
}
|
|
597
|
-
declare
|
|
602
|
+
declare function Slider({ className, showValue, label, ...props }: SliderProps): react.JSX.Element;
|
|
598
603
|
|
|
599
604
|
declare function Slot({ children, ...props }: {
|
|
600
605
|
children: ReactElement | ReactNode;
|
|
@@ -620,7 +625,7 @@ declare function StatusLight(props: StatusLightProps): react.JSX.Element;
|
|
|
620
625
|
interface SwitchProps extends SwitchProps$1 {
|
|
621
626
|
label?: string;
|
|
622
627
|
}
|
|
623
|
-
declare
|
|
628
|
+
declare function Switch({ label, children, className, ...props }: SwitchProps): react.JSX.Element;
|
|
624
629
|
|
|
625
630
|
interface TableColumnProps extends ColumnProps$1 {
|
|
626
631
|
align?: 'start' | 'center' | 'end';
|
|
@@ -664,7 +669,7 @@ interface TextFieldProps extends TextFieldProps$1 {
|
|
|
664
669
|
asChild?: boolean;
|
|
665
670
|
onChange?: (e: any) => void;
|
|
666
671
|
}
|
|
667
|
-
declare
|
|
672
|
+
declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asChild, className, onChange, children, ...props }: TextFieldProps): react.JSX.Element;
|
|
668
673
|
|
|
669
674
|
interface TextAreaProps extends TextFieldProps {
|
|
670
675
|
rows?: number;
|
|
@@ -672,7 +677,7 @@ interface TextAreaProps extends TextFieldProps {
|
|
|
672
677
|
resize?: 'none' | 'vertical' | 'horizontal';
|
|
673
678
|
children?: React.ReactNode;
|
|
674
679
|
}
|
|
675
|
-
declare
|
|
680
|
+
declare function TextArea({ rows, cols, resize, className, style, children, ...props }: TextAreaProps): react.JSX.Element;
|
|
676
681
|
|
|
677
682
|
interface ThemeButtonProps extends ButtonProps {
|
|
678
683
|
defaultTheme?: string;
|
|
@@ -683,7 +688,7 @@ interface ToggleProps extends ToggleButtonProps {
|
|
|
683
688
|
label?: string;
|
|
684
689
|
value?: string;
|
|
685
690
|
}
|
|
686
|
-
declare
|
|
691
|
+
declare function Toggle({ label, children, className, ...props }: ToggleProps): react.JSX.Element;
|
|
687
692
|
|
|
688
693
|
interface ToggleGroupProps extends TagGroupProps {
|
|
689
694
|
label?: string;
|
|
@@ -704,4 +709,4 @@ interface ZenProviderProps {
|
|
|
704
709
|
}
|
|
705
710
|
declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
|
|
706
711
|
|
|
707
|
-
export { Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, ConfirmationDialog, Container, DataColumn, DataTable, Dialog, Dots, Flexbox, FloatingTooltip, Form, FormButtons, FormField, FormResetButton, FormSubmitButton, Grid, Heading, HoverTrigger, Icon, Icons, Image, InlineEditField, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, Modal, NavMenu, NavMenuItem, Navbar, NavbarContext, NavbarItem, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Sidebar, SidebarHeader, SidebarItem, SidebarSection, Slider, Slot, Spinner, StatusLight, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, Text, TextArea, TextField, ThemeButton, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, ZenProvider, 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 };
|