@umami/react-zen 0.120.0 → 0.122.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 CHANGED
@@ -3015,15 +3015,18 @@
3015
3015
  }
3016
3016
 
3017
3017
  /* virtual-css:css:c1c264103e87c7a7d9c345a7e75f073b */
3018
- .Form_form__ZjMwZ {
3018
+ .Form_form__ZTBhZ {
3019
+ display: flex;
3020
+ flex-direction: column;
3019
3021
  position: relative;
3020
3022
  font-size: var(--font-size);
3023
+ gap: var(--gap);
3021
3024
  }
3022
- .Form_text__NDc1Y {
3025
+ .Form_text__ZjUwN {
3023
3026
  text-align: center;
3024
3027
  margin: auto;
3025
3028
  }
3026
- .Form_icon__ZGE1Z {
3029
+ .Form_icon__YTRiZ {
3027
3030
  align-self: flex-start;
3028
3031
  }
3029
3032
 
@@ -3647,61 +3650,55 @@ body a.Button_button__NDYwM {
3647
3650
  }
3648
3651
  }
3649
3652
 
3650
- /* virtual-css:css:ac55918cdbb6b3a9ac9deedf05ce3806 */
3651
- .input_field__ZmMwY {
3652
- position: relative;
3653
- }
3654
- .input_field__ZmMwY,
3655
- .input_row__NTc1Z {
3656
- position: relative;
3657
- }
3658
- .input_field__ZmMwY[data-readonly] .input_input__MzU4N,
3659
- .input_field__ZmMwY[data-disabled] .input_input__MzU4N {
3660
- background: var(--base-color-2);
3661
- }
3662
- .input_input__MzU4N {
3653
+ /* virtual-css:css:f85c857d13f820fa4badfb09996080b9 */
3654
+ .TextField_field__YWExY {
3655
+ display: flex;
3656
+ align-items: center;
3657
+ padding: 0 var(--padding-x);
3658
+ gap: var(--gap);
3659
+ font-family: inherit;
3663
3660
  font-size: var(--font-size);
3664
3661
  color: var(--font-color);
3665
3662
  border: var(--border);
3666
3663
  border-radius: var(--border-radius);
3667
3664
  background: var(--background-color);
3668
3665
  box-shadow: var(--box-shadow);
3669
- padding: var(--padding);
3670
3666
  line-height: 1.5rem;
3671
- width: 100%;
3672
- }
3673
- .input_input__MzU4N:focus {
3674
- border-color: transparent;
3675
- outline: var(--outline);
3676
- outline-offset: -1px;
3677
- }
3678
- .input_input__MzU4N::placeholder {
3679
- color: var(--font-color-muted);
3680
- }
3681
- .input_input__MzU4N:disabled {
3682
- color: var(--font-color-muted);
3683
- }
3684
- .input_input__MzU4N::-webkit-search-cancel-button,
3685
- .input_input__MzU4N::-webkit-search-decoration {
3686
- -webkit-appearance: none;
3687
- }
3688
- .input_icon__YzA4Z {
3689
- color: var(--font-color-muted);
3690
- }
3691
- .input_icon__YzA4Z:hover {
3692
- color: var(--font-color);
3693
- cursor: pointer;
3667
+ position: relative;
3668
+ &[data-readonly] {
3669
+ background: var(--base-color-2);
3670
+ }
3671
+ &[data-disabled] {
3672
+ color: var(--font-color-muted);
3673
+ background: var(--base-color-2);
3674
+ }
3675
+ &:focus-within {
3676
+ border-color: transparent;
3677
+ outline: var(--outline);
3678
+ outline-offset: -1px;
3679
+ &[data-readonly] {
3680
+ border-color: var(--border-color);
3681
+ outline: none;
3682
+ }
3683
+ }
3694
3684
  }
3695
-
3696
- /* virtual-css:css:f85c857d13f820fa4badfb09996080b9 */
3697
- .TextField_allowCopy__Y2RhY {
3698
- padding-right: 32px;
3685
+ .TextField_field__YWExY input,
3686
+ .TextField_field__YWExY textarea {
3687
+ border: none;
3688
+ outline: none;
3689
+ padding: var(--padding-y) 0;
3690
+ background: transparent;
3691
+ flex: 1;
3692
+ &::placeholder {
3693
+ color: var(--font-color-muted);
3694
+ }
3695
+ &::-webkit-search-cancel-button,
3696
+ &::-webkit-search-decoration {
3697
+ -webkit-appearance: none;
3698
+ }
3699
3699
  }
3700
- .TextField_icon__MWVlN {
3701
- position: absolute;
3702
- top: calc(var(--padding-y) + 4px);
3703
- right: var(--padding-x);
3704
- background: none;
3700
+ .TextField_textarea__ODY3N {
3701
+ padding-right: 0;
3705
3702
  }
3706
3703
 
3707
3704
  /* virtual-css:css:603e8ab63f869366a7b9c81da6a1d757 */
@@ -4031,7 +4028,7 @@ body a.Button_button__NDYwM {
4031
4028
  }
4032
4029
 
4033
4030
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4034
- .Menu_menu__ZGIxY {
4031
+ .Menu_menu__OTZkN {
4035
4032
  min-width: 200px;
4036
4033
  border: var(--border);
4037
4034
  border-radius: var(--border-radius);
@@ -4040,19 +4037,19 @@ body a.Button_button__NDYwM {
4040
4037
  background: var(--background-color);
4041
4038
  overflow: hidden;
4042
4039
  }
4043
- .Menu_separator__YjgwM {
4040
+ .Menu_separator__ZTgwZ {
4044
4041
  border-bottom: var(--border);
4045
4042
  margin: var(--spacing-2) calc(-1 * var(--spacing-3));
4046
4043
  }
4047
- .Menu_section__MmNkY:not(:last-child) {
4044
+ .Menu_section__ZDVhM:not(:last-child) {
4048
4045
  margin-bottom: var(--spacing-4);
4049
4046
  }
4050
- .Menu_header__YmQ0M {
4047
+ .Menu_header__YWE2Z {
4051
4048
  font-size: var(--font-size-2);
4052
4049
  font-weight: var(--font-weight-bold);
4053
4050
  padding: var(--padding);
4054
4051
  }
4055
- .Menu_item__NzJlM {
4052
+ .Menu_item__MTU4N {
4056
4053
  display: flex;
4057
4054
  align-items: center;
4058
4055
  gap: var(--gap);
@@ -4065,26 +4062,28 @@ body a.Button_button__NDYwM {
4065
4062
  outline: none;
4066
4063
  width: 100%;
4067
4064
  }
4068
- .Menu_item__NzJlM[data-disabled] {
4065
+ .Menu_item__MTU4N[data-disabled] {
4069
4066
  color: var(--font-color-disabled);
4070
4067
  }
4071
- .Menu_item__NzJlM[data-focus],
4072
- .Menu_item__NzJlM[data-focus-visible] {
4068
+ .Menu_item__MTU4N[data-focus],
4069
+ .Menu_item__MTU4N[data-focus-visible] {
4073
4070
  outline: var(--outline);
4074
4071
  background: var(--highlight-color);
4075
4072
  }
4076
- .Menu_item__NzJlM:hover {
4073
+ .Menu_item__MTU4N:hover {
4077
4074
  background: var(--highlight-color);
4078
4075
  }
4079
- .Menu_item__NzJlM[data-selected] {
4076
+ .Menu_item__MTU4N[data-selected] {
4080
4077
  font-weight: bold;
4078
+ & .Menu_checkmark__MTk4O {
4079
+ display: flex;
4080
+ justify-content: flex-end;
4081
+ }
4081
4082
  }
4082
- .Menu_item__NzJlM[data-selected] .Menu_check__ZDc1Z {
4083
- display: flex;
4084
- justify-content: flex-end;
4085
- flex: 1;
4083
+ .Menu_checkmark__MTk4O {
4084
+ display: none;
4086
4085
  }
4087
- .Menu_check__ZDc1Z {
4086
+ .Menu_hideCheckmark__MjEyZ .Menu_checkmark__MTk4O {
4088
4087
  display: none;
4089
4088
  }
4090
4089
 
@@ -4285,13 +4284,6 @@ body a.Button_button__NDYwM {
4285
4284
  }
4286
4285
  }
4287
4286
 
4288
- /* virtual-css:css:3547a441584a5024882cb71ab3ccf244 */
4289
- .PasswordField_icon__NTRlM {
4290
- position: absolute;
4291
- top: 12px;
4292
- right: 9px;
4293
- }
4294
-
4295
4287
  /* virtual-css:css:f94974973c639ccc39a8a6465cbebeb2 */
4296
4288
  .Popover_popover__YmFhM[data-placement=top] {
4297
4289
  --origin: translateY(8px);
@@ -4428,30 +4420,28 @@ body a.Button_button__NDYwM {
4428
4420
  background-color: var(--base-color-4);
4429
4421
  }
4430
4422
 
4431
- /* virtual-css:css:3ce2e85ef9035a94276951bdf0511402 */
4432
- .SearchField_search__MzkwY {
4433
- position: absolute;
4434
- top: 0;
4435
- left: var(--spacing-3);
4436
- bottom: 0;
4437
- height: 100%;
4438
- background: none;
4423
+ /* virtual-css:css:851dd5366a20c382ffec60997ee93e35 */
4424
+ .Select_select__OWQwZ {
4425
+ width: 100%;
4439
4426
  }
4440
- .SearchField_input__OGFiY {
4441
- padding-left: var(--spacing-7);
4442
- padding-right: var(--spacing-7);
4427
+ .Select_button__YTEzN {
4428
+ width: 100%;
4443
4429
  }
4444
- .SearchField_close__NmJkM {
4430
+ .Select_value__N2NjM {
4445
4431
  display: flex;
4446
4432
  align-items: center;
4447
- justify-content: center;
4448
- position: absolute;
4449
- top: 0;
4450
- right: var(--spacing-3);
4451
- bottom: 0;
4452
- height: 100%;
4453
- border: 0;
4454
- background: none;
4433
+ justify-content: space-between;
4434
+ width: 100%;
4435
+ }
4436
+ .Select_list__ZDFkY {
4437
+ padding: var(--spacing-2);
4438
+ background-color: var(--background-color);
4439
+ border: var(--border);
4440
+ border-radius: var(--border-radius);
4441
+ box-shadow: var(--box-shadow-3);
4442
+ }
4443
+ .Select_search__YTgyZ {
4444
+ margin-bottom: var(--spacing-2);
4455
4445
  }
4456
4446
 
4457
4447
  /* virtual-css:css:844962527a8f0e375161b58db0fc39ed */
@@ -4780,20 +4770,6 @@ body a.Button_button__NDYwM {
4780
4770
  cursor: default;
4781
4771
  }
4782
4772
 
4783
- /* virtual-css:css:884bc0b1f4a7097bca42714da27c0d2b */
4784
- .TextArea_textarea__MTk5Y {
4785
- font-family: inherit;
4786
- }
4787
- .TextArea_resize-none__OTJhY textarea {
4788
- resize: none;
4789
- }
4790
- .TextArea_resize-horizontal__YWIyZ textarea {
4791
- resize: horizontal;
4792
- }
4793
- .TextArea_resize-vertical__NTM3O textarea {
4794
- resize: vertical;
4795
- }
4796
-
4797
4773
  /* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
4798
4774
  .ThemeButton_button__Zjc5N {
4799
4775
  width: 50px;
package/dist/index.d.mts CHANGED
@@ -3,7 +3,15 @@ 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
+ interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
8
+ autoComplete?: string;
9
+ onSubmit?: SubmitHandler<any>;
10
+ error?: ReactNode | Error;
11
+ preventSubmit?: boolean;
12
+ children?: ReactNode | ((e: UseFormReturn) => ReactNode);
13
+ }
14
+ declare function Form({ autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
7
15
 
8
16
  declare const Breakpoints: readonly ["", "xs", "sm", "md", "lg", "xl"];
9
17
  type Breakpoint = (typeof Breakpoints)[number];
@@ -51,16 +59,6 @@ type AlignItems = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self
51
59
  type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'stretch';
52
60
  type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
53
61
 
54
- interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
55
- gap?: Responsive<Spacing>;
56
- autoComplete?: string;
57
- onSubmit?: SubmitHandler<any>;
58
- error?: ReactNode | Error;
59
- preventSubmit?: boolean;
60
- children?: ReactNode | ((e: UseFormReturn) => ReactNode);
61
- }
62
- declare function Form({ gap, autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
63
-
64
62
  interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
65
63
  display?: Responsive<Display>;
66
64
  color?: FontColor;
@@ -391,31 +389,6 @@ interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
391
389
  }
392
390
  declare function Icon({ color, size, variant, rotate, strokeWidth, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): react.JSX.Element;
393
391
 
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
-
419
392
  interface ImageProps extends HTMLAttributes<HTMLImageElement> {
420
393
  src: string;
421
394
  alt?: string;
@@ -545,10 +518,11 @@ interface SearchFieldProps extends SearchFieldProps$1 {
545
518
  label?: string;
546
519
  placeholder?: string;
547
520
  value?: string;
521
+ defaultValue?: string;
548
522
  delay?: number;
549
523
  onSearch?: (value: string) => void;
550
524
  }
551
- declare function SearchField({ label, placeholder, value, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
525
+ declare function SearchField({ label, placeholder, value, defaultValue, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
552
526
 
553
527
  interface SelectProps extends SelectProps$1<HTMLSelectElement> {
554
528
  items?: any[];
@@ -666,18 +640,10 @@ interface TextFieldProps extends TextFieldProps$1 {
666
640
  label?: string;
667
641
  placeholder?: string;
668
642
  allowCopy?: boolean;
669
- asChild?: boolean;
643
+ asTextArea?: boolean;
670
644
  onChange?: (e: any) => void;
671
645
  }
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;
646
+ declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asTextArea, onChange, isReadOnly, isDisabled, className, children, ...props }: TextFieldProps): react.JSX.Element;
681
647
 
682
648
  interface ThemeButtonProps extends ButtonProps {
683
649
  defaultTheme?: string;
@@ -709,4 +675,4 @@ interface ZenProviderProps {
709
675
  }
710
676
  declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
711
677
 
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 };
678
+ 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 };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,15 @@ 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
+ interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
8
+ autoComplete?: string;
9
+ onSubmit?: SubmitHandler<any>;
10
+ error?: ReactNode | Error;
11
+ preventSubmit?: boolean;
12
+ children?: ReactNode | ((e: UseFormReturn) => ReactNode);
13
+ }
14
+ declare function Form({ autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
7
15
 
8
16
  declare const Breakpoints: readonly ["", "xs", "sm", "md", "lg", "xl"];
9
17
  type Breakpoint = (typeof Breakpoints)[number];
@@ -51,16 +59,6 @@ type AlignItems = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self
51
59
  type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'stretch';
52
60
  type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
53
61
 
54
- interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
55
- gap?: Responsive<Spacing>;
56
- autoComplete?: string;
57
- onSubmit?: SubmitHandler<any>;
58
- error?: ReactNode | Error;
59
- preventSubmit?: boolean;
60
- children?: ReactNode | ((e: UseFormReturn) => ReactNode);
61
- }
62
- declare function Form({ gap, autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
63
-
64
62
  interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
65
63
  display?: Responsive<Display>;
66
64
  color?: FontColor;
@@ -391,31 +389,6 @@ interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
391
389
  }
392
390
  declare function Icon({ color, size, variant, rotate, strokeWidth, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): react.JSX.Element;
393
391
 
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
-
419
392
  interface ImageProps extends HTMLAttributes<HTMLImageElement> {
420
393
  src: string;
421
394
  alt?: string;
@@ -545,10 +518,11 @@ interface SearchFieldProps extends SearchFieldProps$1 {
545
518
  label?: string;
546
519
  placeholder?: string;
547
520
  value?: string;
521
+ defaultValue?: string;
548
522
  delay?: number;
549
523
  onSearch?: (value: string) => void;
550
524
  }
551
- declare function SearchField({ label, placeholder, value, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
525
+ declare function SearchField({ label, placeholder, value, defaultValue, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
552
526
 
553
527
  interface SelectProps extends SelectProps$1<HTMLSelectElement> {
554
528
  items?: any[];
@@ -666,18 +640,10 @@ interface TextFieldProps extends TextFieldProps$1 {
666
640
  label?: string;
667
641
  placeholder?: string;
668
642
  allowCopy?: boolean;
669
- asChild?: boolean;
643
+ asTextArea?: boolean;
670
644
  onChange?: (e: any) => void;
671
645
  }
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;
646
+ declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asTextArea, onChange, isReadOnly, isDisabled, className, children, ...props }: TextFieldProps): react.JSX.Element;
681
647
 
682
648
  interface ThemeButtonProps extends ButtonProps {
683
649
  defaultTheme?: string;
@@ -709,4 +675,4 @@ interface ZenProviderProps {
709
675
  }
710
676
  declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
711
677
 
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 };
678
+ 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 };