bako-ui 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
- import react__default, { FC } from 'react';
2
+ import react__default, { ComponentPropsWithoutRef, FC } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { StackProps as StackProps$1, GridProps as GridProps$1, GridItemProps as GridItemProps$1, ButtonProps as ButtonProps$1, Card as Card$1, Clipboard as Clipboard$1, CloseButtonProps as CloseButtonProps$1, ContainerProps as ContainerProps$1, IconButtonProps as IconButtonProps$1, QrCode as QrCode$1, IconProps, LinkProps as LinkProps$1, LinkOverlayProps as LinkOverlayProps$1, Checkbox as Checkbox$1, Combobox as Combobox$1, Portal, InputProps as InputProps$1, RadioGroup as RadioGroup$1, ComboboxRootProps, FieldLabelProps, InputGroupProps, BoxProps, Select as Select$1, Switch as Switch$1, TextareaProps, Avatar as Avatar$1, GroupProps, EmptyState as EmptyState$1, Tooltip as Tooltip$1, Dialog as Dialog$1, Drawer as Drawer$1, Popover as Popover$1, Toast as Toast$1, CreateToasterReturn, Accordion as Accordion$1, Breadcrumb as Breadcrumb$1, List as List$1, Steps as Steps$1, Tabs as Tabs$1, Menu as Menu$1, ChakraProviderProps } from '@chakra-ui/react';
4
+ import { StackProps as StackProps$1, GridProps as GridProps$1, GridItemProps as GridItemProps$1, ButtonProps as ButtonProps$1, Card as Card$1, Clipboard as Clipboard$1, CloseButtonProps as CloseButtonProps$1, ContainerProps as ContainerProps$1, IconButtonProps as IconButtonProps$1, QrCode as QrCode$1, IconProps, LinkProps as LinkProps$1, LinkOverlayProps as LinkOverlayProps$1, Checkbox as Checkbox$1, Combobox as Combobox$1, Portal, InputProps as InputProps$1, RadioGroup as RadioGroup$1, ComboboxRootProps, FieldLabelProps, InputGroupProps, BoxProps, Select as Select$1, Switch as Switch$1, TextareaProps, Avatar as Avatar$1, GroupProps, EmptyState as EmptyState$1, Progress as Progress$1, Tooltip as Tooltip$1, Dialog as Dialog$1, Drawer as Drawer$1, Popover as Popover$1, Toast as Toast$1, CreateToasterReturn, Accordion as Accordion$1, Breadcrumb as Breadcrumb$1, List as List$1, Steps as Steps$1, Tabs as Tabs$1, Menu as Menu$1, ChakraProviderProps } from '@chakra-ui/react';
5
5
  export { Alert, BadgeProps, Box, BoxProps, ButtonGroup, CardBodyProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps, Center, CenterProps, Icon as ChakraIcon, ClientOnly, ClientOnlyProps, ClipboardTriggerProps, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxRootProps, ComboboxTriggerProps, DialogActionTriggerProps, DialogBackdropProps, DialogBodyProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogOpenChangeDetails, DialogPositionerProps, DialogRootProps, DialogTitleProps, DialogTriggerProps, DrawerActionTriggerProps, DrawerBackdropProps, DrawerBodyProps, DrawerCloseTriggerProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerOpenChangeDetails, DrawerPositionerProps, DrawerRootProps, DrawerTitleProps, DrawerTriggerProps, EmptyStateContentProps, EmptyStateDescriptionProps, EmptyStateIndicatorProps, EmptyStateRootProps, EmptyStateTitleProps, Field, FieldErrorIconProps, FieldErrorTextProps, FieldHelperTextProps, FieldLabelProps, FieldRootProps, Flex, FlexProps, FormatNumber, Heading, HeadingProps, IconProps, Image, ImageProps, InputAddonProps, InputElementProps, InputGroup, InputGroupProps, ListItemProps, ListRootProps, Spinner as Loader, SpinnerProps as LoaderProps, MenuArrowProps, MenuArrowTipProps, MenuCheckboxItemProps, MenuContentProps, MenuContextTriggerProps, MenuIndicatorProps, MenuItemCommandProps, MenuItemGroupLabelProps, MenuItemGroupProps, MenuItemIndicatorProps, MenuItemProps, MenuItemTextProps, MenuOpenChangeDetails, MenuPositionerProps, MenuRadioItemGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuTriggerItemProps, MenuTriggerProps, Portal, QrCodeRootProps, SelectClearTriggerProps, SelectContentProps, SelectControlProps, SelectIndicatorGroupProps, SelectIndicatorProps, SelectItemGroupLabelProps, SelectItemGroupProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectLabelProps, SelectPositionerProps, SelectRootProps, SelectTriggerProps, SelectValueTextProps, Separator, SeparatorProps, SkeletonCircleProps, SkeletonProps, SkeletonTextProps, Spacer, SpacerProps, Span, SpanProps, Text, TextProps, createIcon, createListCollection, createToaster, useAccordion, useAccordionContext, useAccordionItemContext, useClipboard, useMediaQuery, useSteps, useStepsContext, useStepsItemContext } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { FieldValues, FieldPath, UseControllerProps, FieldError } from 'react-hook-form';
@@ -138,6 +138,7 @@ type RhfComboboxProps<TFieldValues extends FieldValues, TName extends FieldPath<
138
138
  showTrigger?: boolean;
139
139
  clearTriggerIcon?: React.ReactNode;
140
140
  allowCustomValue?: boolean;
141
+ onInputValueChange?: (value: string) => void;
141
142
  slotProps?: {
142
143
  root?: Omit<ComboboxRootProps, 'collection' | 'openOnClick'>;
143
144
  label?: FieldLabelProps;
@@ -145,7 +146,24 @@ type RhfComboboxProps<TFieldValues extends FieldValues, TName extends FieldPath<
145
146
  };
146
147
  };
147
148
 
148
- declare function RhfCombobox<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, defaultValue, label, error, options, disabled, helperText, isLoadingOptions, noOptionsText, openOnFocus, slotProps, variant, clearTriggerIcon, showTrigger, allowCustomValue, }: RhfComboboxProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
149
+ /**
150
+ * @description A combobox component integrated with react-hook-form and Chakra UI.
151
+ *
152
+ * @example
153
+ * const { control } = useForm();
154
+ *
155
+ * <RhfCombobox
156
+ * name="fruit"
157
+ * control={control}
158
+ * label="Select a fruit"
159
+ * options={[
160
+ * { label: 'Apple', value: 'apple' },
161
+ * { label: 'Banana', value: 'banana' },
162
+ * { label: 'Cherry', value: 'cherry' },
163
+ * ]}
164
+ * />
165
+ */
166
+ declare function RhfCombobox<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, defaultValue, label, error, options, disabled, helperText, isLoadingOptions, noOptionsText, openOnFocus, slotProps, variant, clearTriggerIcon, showTrigger, allowCustomValue, onInputValueChange, }: RhfComboboxProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
149
167
 
150
168
  type RhfInputProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & {
151
169
  label: string;
@@ -225,6 +243,28 @@ declare function AvatarGroup(props: AvatarGroupProps): react_jsx_runtime.JSX.Ele
225
243
 
226
244
  declare const EmptyState: typeof EmptyState$1;
227
245
 
246
+ type ProgressRootProps = ComponentPropsWithoutRef<typeof Progress$1.Root>;
247
+ type ProgressTrackProps = ComponentPropsWithoutRef<typeof Progress$1.Track>;
248
+ type ProgressRangeProps = ComponentPropsWithoutRef<typeof Progress$1.Range>;
249
+ type ProgressLabelProps = ComponentPropsWithoutRef<typeof Progress$1.Label>;
250
+ type ProgressValueTextProps = ComponentPropsWithoutRef<typeof Progress$1.ValueText>;
251
+ interface ProgressProps extends ProgressRootProps {
252
+ showValueText?: boolean;
253
+ valueText?: React.ReactNode;
254
+ label?: React.ReactNode;
255
+ trackProps?: ProgressTrackProps;
256
+ rangeProps?: ProgressRangeProps;
257
+ labelProps?: ProgressLabelProps;
258
+ valueTextProps?: ProgressValueTextProps;
259
+ }
260
+
261
+ declare const Progress: react.ForwardRefExoticComponent<ProgressProps & react.RefAttributes<HTMLDivElement>>;
262
+ declare const ProgressRoot: react.ForwardRefExoticComponent<Progress$1.RootProps & react.RefAttributes<HTMLDivElement>>;
263
+ declare const ProgressTrack: react.ForwardRefExoticComponent<Progress$1.TrackProps & react.RefAttributes<HTMLDivElement>>;
264
+ declare const ProgressRange: react.ForwardRefExoticComponent<Progress$1.RangeProps & react.RefAttributes<HTMLDivElement>>;
265
+ declare const ProgressLabel: react.ForwardRefExoticComponent<Progress$1.LabelProps & react.RefAttributes<HTMLDivElement>>;
266
+ declare const ProgressValueText: react.ForwardRefExoticComponent<Progress$1.ValueTextProps & react.RefAttributes<HTMLDivElement>>;
267
+
228
268
  interface TooltipProps extends Tooltip$1.RootProps {
229
269
  content: react__default.ReactNode;
230
270
  showArrow?: boolean;
@@ -310,4 +350,4 @@ declare const ThemeProvider: (props: ThemeProviderProps) => react_jsx_runtime.JS
310
350
 
311
351
  declare const theme: _chakra_ui_react.SystemContext;
312
352
 
313
- export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, theme, toaster };
353
+ export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, Progress, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressRange, type ProgressRangeProps, ProgressRoot, type ProgressRootProps, ProgressTrack, type ProgressTrackProps, ProgressValueText, type ProgressValueTextProps, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, theme, toaster };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
- import react__default, { FC } from 'react';
2
+ import react__default, { ComponentPropsWithoutRef, FC } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { StackProps as StackProps$1, GridProps as GridProps$1, GridItemProps as GridItemProps$1, ButtonProps as ButtonProps$1, Card as Card$1, Clipboard as Clipboard$1, CloseButtonProps as CloseButtonProps$1, ContainerProps as ContainerProps$1, IconButtonProps as IconButtonProps$1, QrCode as QrCode$1, IconProps, LinkProps as LinkProps$1, LinkOverlayProps as LinkOverlayProps$1, Checkbox as Checkbox$1, Combobox as Combobox$1, Portal, InputProps as InputProps$1, RadioGroup as RadioGroup$1, ComboboxRootProps, FieldLabelProps, InputGroupProps, BoxProps, Select as Select$1, Switch as Switch$1, TextareaProps, Avatar as Avatar$1, GroupProps, EmptyState as EmptyState$1, Tooltip as Tooltip$1, Dialog as Dialog$1, Drawer as Drawer$1, Popover as Popover$1, Toast as Toast$1, CreateToasterReturn, Accordion as Accordion$1, Breadcrumb as Breadcrumb$1, List as List$1, Steps as Steps$1, Tabs as Tabs$1, Menu as Menu$1, ChakraProviderProps } from '@chakra-ui/react';
4
+ import { StackProps as StackProps$1, GridProps as GridProps$1, GridItemProps as GridItemProps$1, ButtonProps as ButtonProps$1, Card as Card$1, Clipboard as Clipboard$1, CloseButtonProps as CloseButtonProps$1, ContainerProps as ContainerProps$1, IconButtonProps as IconButtonProps$1, QrCode as QrCode$1, IconProps, LinkProps as LinkProps$1, LinkOverlayProps as LinkOverlayProps$1, Checkbox as Checkbox$1, Combobox as Combobox$1, Portal, InputProps as InputProps$1, RadioGroup as RadioGroup$1, ComboboxRootProps, FieldLabelProps, InputGroupProps, BoxProps, Select as Select$1, Switch as Switch$1, TextareaProps, Avatar as Avatar$1, GroupProps, EmptyState as EmptyState$1, Progress as Progress$1, Tooltip as Tooltip$1, Dialog as Dialog$1, Drawer as Drawer$1, Popover as Popover$1, Toast as Toast$1, CreateToasterReturn, Accordion as Accordion$1, Breadcrumb as Breadcrumb$1, List as List$1, Steps as Steps$1, Tabs as Tabs$1, Menu as Menu$1, ChakraProviderProps } from '@chakra-ui/react';
5
5
  export { Alert, BadgeProps, Box, BoxProps, ButtonGroup, CardBodyProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps, Center, CenterProps, Icon as ChakraIcon, ClientOnly, ClientOnlyProps, ClipboardTriggerProps, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxRootProps, ComboboxTriggerProps, DialogActionTriggerProps, DialogBackdropProps, DialogBodyProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogOpenChangeDetails, DialogPositionerProps, DialogRootProps, DialogTitleProps, DialogTriggerProps, DrawerActionTriggerProps, DrawerBackdropProps, DrawerBodyProps, DrawerCloseTriggerProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerOpenChangeDetails, DrawerPositionerProps, DrawerRootProps, DrawerTitleProps, DrawerTriggerProps, EmptyStateContentProps, EmptyStateDescriptionProps, EmptyStateIndicatorProps, EmptyStateRootProps, EmptyStateTitleProps, Field, FieldErrorIconProps, FieldErrorTextProps, FieldHelperTextProps, FieldLabelProps, FieldRootProps, Flex, FlexProps, FormatNumber, Heading, HeadingProps, IconProps, Image, ImageProps, InputAddonProps, InputElementProps, InputGroup, InputGroupProps, ListItemProps, ListRootProps, Spinner as Loader, SpinnerProps as LoaderProps, MenuArrowProps, MenuArrowTipProps, MenuCheckboxItemProps, MenuContentProps, MenuContextTriggerProps, MenuIndicatorProps, MenuItemCommandProps, MenuItemGroupLabelProps, MenuItemGroupProps, MenuItemIndicatorProps, MenuItemProps, MenuItemTextProps, MenuOpenChangeDetails, MenuPositionerProps, MenuRadioItemGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuTriggerItemProps, MenuTriggerProps, Portal, QrCodeRootProps, SelectClearTriggerProps, SelectContentProps, SelectControlProps, SelectIndicatorGroupProps, SelectIndicatorProps, SelectItemGroupLabelProps, SelectItemGroupProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectLabelProps, SelectPositionerProps, SelectRootProps, SelectTriggerProps, SelectValueTextProps, Separator, SeparatorProps, SkeletonCircleProps, SkeletonProps, SkeletonTextProps, Spacer, SpacerProps, Span, SpanProps, Text, TextProps, createIcon, createListCollection, createToaster, useAccordion, useAccordionContext, useAccordionItemContext, useClipboard, useMediaQuery, useSteps, useStepsContext, useStepsItemContext } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { FieldValues, FieldPath, UseControllerProps, FieldError } from 'react-hook-form';
@@ -138,6 +138,7 @@ type RhfComboboxProps<TFieldValues extends FieldValues, TName extends FieldPath<
138
138
  showTrigger?: boolean;
139
139
  clearTriggerIcon?: React.ReactNode;
140
140
  allowCustomValue?: boolean;
141
+ onInputValueChange?: (value: string) => void;
141
142
  slotProps?: {
142
143
  root?: Omit<ComboboxRootProps, 'collection' | 'openOnClick'>;
143
144
  label?: FieldLabelProps;
@@ -145,7 +146,24 @@ type RhfComboboxProps<TFieldValues extends FieldValues, TName extends FieldPath<
145
146
  };
146
147
  };
147
148
 
148
- declare function RhfCombobox<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, defaultValue, label, error, options, disabled, helperText, isLoadingOptions, noOptionsText, openOnFocus, slotProps, variant, clearTriggerIcon, showTrigger, allowCustomValue, }: RhfComboboxProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
149
+ /**
150
+ * @description A combobox component integrated with react-hook-form and Chakra UI.
151
+ *
152
+ * @example
153
+ * const { control } = useForm();
154
+ *
155
+ * <RhfCombobox
156
+ * name="fruit"
157
+ * control={control}
158
+ * label="Select a fruit"
159
+ * options={[
160
+ * { label: 'Apple', value: 'apple' },
161
+ * { label: 'Banana', value: 'banana' },
162
+ * { label: 'Cherry', value: 'cherry' },
163
+ * ]}
164
+ * />
165
+ */
166
+ declare function RhfCombobox<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, defaultValue, label, error, options, disabled, helperText, isLoadingOptions, noOptionsText, openOnFocus, slotProps, variant, clearTriggerIcon, showTrigger, allowCustomValue, onInputValueChange, }: RhfComboboxProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
149
167
 
150
168
  type RhfInputProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & {
151
169
  label: string;
@@ -225,6 +243,28 @@ declare function AvatarGroup(props: AvatarGroupProps): react_jsx_runtime.JSX.Ele
225
243
 
226
244
  declare const EmptyState: typeof EmptyState$1;
227
245
 
246
+ type ProgressRootProps = ComponentPropsWithoutRef<typeof Progress$1.Root>;
247
+ type ProgressTrackProps = ComponentPropsWithoutRef<typeof Progress$1.Track>;
248
+ type ProgressRangeProps = ComponentPropsWithoutRef<typeof Progress$1.Range>;
249
+ type ProgressLabelProps = ComponentPropsWithoutRef<typeof Progress$1.Label>;
250
+ type ProgressValueTextProps = ComponentPropsWithoutRef<typeof Progress$1.ValueText>;
251
+ interface ProgressProps extends ProgressRootProps {
252
+ showValueText?: boolean;
253
+ valueText?: React.ReactNode;
254
+ label?: React.ReactNode;
255
+ trackProps?: ProgressTrackProps;
256
+ rangeProps?: ProgressRangeProps;
257
+ labelProps?: ProgressLabelProps;
258
+ valueTextProps?: ProgressValueTextProps;
259
+ }
260
+
261
+ declare const Progress: react.ForwardRefExoticComponent<ProgressProps & react.RefAttributes<HTMLDivElement>>;
262
+ declare const ProgressRoot: react.ForwardRefExoticComponent<Progress$1.RootProps & react.RefAttributes<HTMLDivElement>>;
263
+ declare const ProgressTrack: react.ForwardRefExoticComponent<Progress$1.TrackProps & react.RefAttributes<HTMLDivElement>>;
264
+ declare const ProgressRange: react.ForwardRefExoticComponent<Progress$1.RangeProps & react.RefAttributes<HTMLDivElement>>;
265
+ declare const ProgressLabel: react.ForwardRefExoticComponent<Progress$1.LabelProps & react.RefAttributes<HTMLDivElement>>;
266
+ declare const ProgressValueText: react.ForwardRefExoticComponent<Progress$1.ValueTextProps & react.RefAttributes<HTMLDivElement>>;
267
+
228
268
  interface TooltipProps extends Tooltip$1.RootProps {
229
269
  content: react__default.ReactNode;
230
270
  showArrow?: boolean;
@@ -310,4 +350,4 @@ declare const ThemeProvider: (props: ThemeProviderProps) => react_jsx_runtime.JS
310
350
 
311
351
  declare const theme: _chakra_ui_react.SystemContext;
312
352
 
313
- export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, theme, toaster };
353
+ export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, Progress, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressRange, type ProgressRangeProps, ProgressRoot, type ProgressRootProps, ProgressTrack, type ProgressTrackProps, ProgressValueText, type ProgressValueTextProps, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, theme, toaster };
package/dist/index.js CHANGED
@@ -223,7 +223,8 @@ function RhfCombobox({
223
223
  variant,
224
224
  clearTriggerIcon,
225
225
  showTrigger = false,
226
- allowCustomValue = true
226
+ allowCustomValue = true,
227
+ onInputValueChange
227
228
  }) {
228
229
  const {
229
230
  field: { value, onChange, ref, ...rest }
@@ -234,25 +235,37 @@ function RhfCombobox({
234
235
  filter: contains
235
236
  });
236
237
  const [inputValue, setInputValue] = react$1.useState(value || "");
238
+ const [isTyping, setIsTyping] = react$1.useState(false);
239
+ react$1.useEffect(() => {
240
+ if (isTyping) return;
241
+ if (value !== inputValue) {
242
+ setInputValue(value || "");
243
+ }
244
+ }, [value, inputValue, isTyping]);
237
245
  const handleValueChange = react$1.useCallback(
238
246
  (details) => {
239
247
  const newValue = details.value[0] || "";
248
+ setIsTyping(false);
240
249
  onChange(newValue);
241
250
  setInputValue(newValue);
251
+ onInputValueChange == null ? void 0 : onInputValueChange(newValue);
242
252
  },
243
- [onChange]
253
+ [onChange, onInputValueChange]
244
254
  );
245
255
  const handleInputValueChange = react$1.useCallback(
246
256
  (details) => {
257
+ setIsTyping(true);
247
258
  setInputValue(details.inputValue);
248
259
  reactDom.flushSync(() => {
249
260
  filter(details.inputValue);
250
261
  });
262
+ onInputValueChange == null ? void 0 : onInputValueChange(details.inputValue);
251
263
  if (allowCustomValue) {
252
264
  onChange(details.inputValue);
253
265
  }
266
+ setTimeout(() => setIsTyping(false), 100);
254
267
  },
255
- [filter, allowCustomValue, onChange]
268
+ [filter, allowCustomValue, onChange, onInputValueChange]
256
269
  );
257
270
  const handleOpenChange = react$1.useCallback(
258
271
  (details) => {
@@ -314,6 +327,7 @@ function RhfCombobox({
314
327
  invalid: !!error,
315
328
  allowCustomValue,
316
329
  selectionBehavior: "preserve",
330
+ defaultValue: [defaultValue || ""],
317
331
  ...slotProps == null ? void 0 : slotProps.root,
318
332
  children: [
319
333
  /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Control, { children: [
@@ -539,6 +553,30 @@ function AvatarGroup(props) {
539
553
  return /* @__PURE__ */ jsxRuntime.jsx(react.Group, { ...props });
540
554
  }
541
555
  var EmptyState = react.EmptyState;
556
+ var Progress = react$1.forwardRef(
557
+ function Progress2(props, ref) {
558
+ const {
559
+ showValueText,
560
+ valueText,
561
+ label,
562
+ trackProps,
563
+ rangeProps,
564
+ labelProps,
565
+ valueTextProps,
566
+ ...rootProps
567
+ } = props;
568
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Progress.Root, { ref, ...rootProps, children: [
569
+ label && /* @__PURE__ */ jsxRuntime.jsx(react.Progress.Label, { ...labelProps, children: label }),
570
+ /* @__PURE__ */ jsxRuntime.jsx(react.Progress.Track, { ...trackProps, children: /* @__PURE__ */ jsxRuntime.jsx(react.Progress.Range, { ...rangeProps }) }),
571
+ showValueText && /* @__PURE__ */ jsxRuntime.jsx(react.Progress.ValueText, { ...valueTextProps, children: valueText })
572
+ ] });
573
+ }
574
+ );
575
+ var ProgressRoot = react.Progress.Root;
576
+ var ProgressTrack = react.Progress.Track;
577
+ var ProgressRange = react.Progress.Range;
578
+ var ProgressLabel = react.Progress.Label;
579
+ var ProgressValueText = react.Progress.ValueText;
542
580
  function Tooltip(props) {
543
581
  const { children, content, showArrow = true, ...rest } = props;
544
582
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Tooltip.Root, { ...rest, children: [
@@ -762,7 +800,7 @@ var semanticColors = react.defineSemanticTokens.colors({
762
800
  value: { _light: "white", _dark: "white" }
763
801
  },
764
802
  fg: {
765
- value: { _light: "{colors.red.700}", _dark: "{colors.red.300}" }
803
+ value: { _light: "{colors.red.50}", _dark: "{colors.red.50}" }
766
804
  },
767
805
  subtle: {
768
806
  value: { _light: "{colors.red.100}", _dark: "{colors.red.900}" }
@@ -820,7 +858,7 @@ var semanticColors = react.defineSemanticTokens.colors({
820
858
  value: { _light: "white", _dark: "white" }
821
859
  },
822
860
  fg: {
823
- value: { _light: "{colors.green.300}", _dark: "{colors.green.300}" }
861
+ value: { _light: "{colors.green.50}", _dark: "{colors.green.50}" }
824
862
  },
825
863
  subtle: {
826
864
  value: { _light: "{colors.green.100}", _dark: "{colors.green.100}" }
@@ -843,7 +881,7 @@ var semanticColors = react.defineSemanticTokens.colors({
843
881
  value: { _light: "black", _dark: "black" }
844
882
  },
845
883
  fg: {
846
- value: { _light: "{colors.yellow.800}", _dark: "{colors.yellow.300}" }
884
+ value: { _light: "{colors.yellow.50}", _dark: "{colors.yellow.50}" }
847
885
  },
848
886
  subtle: {
849
887
  value: { _light: "{colors.yellow.150}", _dark: "{colors.yellow.150}" }
@@ -860,6 +898,14 @@ var semanticColors = react.defineSemanticTokens.colors({
860
898
  focusRing: {
861
899
  value: { _light: "{colors.yellow.500}", _dark: "{colors.yellow.500}" }
862
900
  }
901
+ },
902
+ blue: {
903
+ solid: {
904
+ value: { _light: "{colors.blue.200}", _dark: "{colors.blue.200}" }
905
+ },
906
+ fg: {
907
+ value: { _light: "{colors.blue.50}", _dark: "{colors.blue.50}" }
908
+ }
863
909
  }
864
910
  });
865
911
 
@@ -889,6 +935,28 @@ var menuSlotRecipe = react.defineSlotRecipe({
889
935
  }
890
936
  }
891
937
  });
938
+ var progessSlotRecipes = react.defineSlotRecipe({
939
+ slots: anatomy.progressAnatomy.keys(),
940
+ variants: {
941
+ size: {
942
+ xs: {
943
+ track: { h: "0.5" }
944
+ },
945
+ sm: {
946
+ track: { h: "1" }
947
+ },
948
+ md: {
949
+ track: { h: "2.5" }
950
+ },
951
+ lg: {
952
+ track: { h: "3" }
953
+ },
954
+ xl: {
955
+ track: { h: "4" }
956
+ }
957
+ }
958
+ }
959
+ });
892
960
  var tabsSlotRecipe = react.defineSlotRecipe({
893
961
  slots: anatomy.tabsAnatomy.keys(),
894
962
  variants: {
@@ -917,11 +985,57 @@ var tabsSlotRecipe = react.defineSlotRecipe({
917
985
  }
918
986
  }
919
987
  });
988
+ var toastSlotRecipe = react.defineSlotRecipe({
989
+ slots: anatomy.toastAnatomy.keys(),
990
+ base: {
991
+ root: {
992
+ py: "2",
993
+ ps: "2",
994
+ pe: "4",
995
+ gap: "2",
996
+ borderRadius: "lg",
997
+ border: "1px solid",
998
+ borderColor: "variable(--toast-border-color, transparent)",
999
+ "&[data-type=info]": {
1000
+ bg: "blue.solid/15",
1001
+ color: "blue.fg",
1002
+ "--toast-trigger-bg": "{white/10}",
1003
+ "--toast-border-color": "{blue.solid/30}"
1004
+ },
1005
+ "&[data-type=warning]": {
1006
+ bg: "yellow.solid/15",
1007
+ color: "yellow.fg",
1008
+ "--toast-trigger-bg": "{white/10}",
1009
+ "--toast-border-color": "{yellow.solid/30}"
1010
+ },
1011
+ "&[data-type=success]": {
1012
+ bg: "green.solid/15",
1013
+ color: "green.fg",
1014
+ "--toast-trigger-bg": "{white/10}",
1015
+ "--toast-border-color": "{green.solid/30}"
1016
+ },
1017
+ "&[data-type=error]": {
1018
+ bg: "red.solid/15",
1019
+ color: "red.fg",
1020
+ "--toast-trigger-bg": "{white/10}",
1021
+ "--toast-border-color": "{red.solid/30}"
1022
+ }
1023
+ },
1024
+ title: {
1025
+ fontWeight: "semibold"
1026
+ },
1027
+ description: {
1028
+ fontStyle: "xs"
1029
+ }
1030
+ }
1031
+ });
920
1032
 
921
1033
  // src/theme/slot-recipes/index.ts
922
1034
  var slotRecipes = {
923
1035
  menu: menuSlotRecipe,
924
- tabs: tabsSlotRecipe
1036
+ tabs: tabsSlotRecipe,
1037
+ progress: progessSlotRecipes,
1038
+ toast: toastSlotRecipe
925
1039
  };
926
1040
  var colorsTokens = react.defineTokens.colors({
927
1041
  primary: {
@@ -932,7 +1046,7 @@ var colorsTokens = react.defineTokens.colors({
932
1046
  default: { value: "{colors.gray.500}" },
933
1047
  contrast: { value: "{colors.gray.300}" }
934
1048
  },
935
- textPrimary: { value: "{colors.gray.50}" },
1049
+ textPrimary: { value: "{colors.gray.100}" },
936
1050
  textSecondary: { value: "{colors.gray.300}" },
937
1051
  background: { value: "#0D0D0C" },
938
1052
  // ------------------------------------------
@@ -1135,6 +1249,12 @@ exports.Loader = loader_default;
1135
1249
  exports.Menu = Menu;
1136
1250
  exports.MoneyField = MoneyField;
1137
1251
  exports.Popover = Popover;
1252
+ exports.Progress = Progress;
1253
+ exports.ProgressLabel = ProgressLabel;
1254
+ exports.ProgressRange = ProgressRange;
1255
+ exports.ProgressRoot = ProgressRoot;
1256
+ exports.ProgressTrack = ProgressTrack;
1257
+ exports.ProgressValueText = ProgressValueText;
1138
1258
  exports.QrCode = QrCode;
1139
1259
  exports.Radio = radio_default;
1140
1260
  exports.RadioGroup = RadioGroup;