@komensal/ui 0.4.0 → 0.6.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.
@@ -0,0 +1 @@
1
+ export * from '@phosphor-icons/react';
package/dist/icons.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/icons.ts
2
+ export * from "@phosphor-icons/react";
3
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/icons.ts"],"sourcesContent":["export * from '@phosphor-icons/react'\n"],"mappings":";AAAA,cAAc;","names":[]}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, JSX } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
@@ -15,44 +15,44 @@ import { DefaultNamespace, FlatNamespace, InitOptions, InterpolationOptions, Res
15
15
  import { TFunction, SelectorKey, KeyPrefixSelector, KeyPrefix } from './typescript/t.js';
16
16
  import { ClassValue } from 'clsx';
17
17
 
18
- interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
18
+ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement> {
19
19
  variant?: AlertVariant;
20
20
  }
21
21
  type AlertVariant = 'error' | 'info' | 'success' | 'warning';
22
- declare const Alert: ({ children, className, variant, ...props }: AlertProps) => React.JSX.Element;
22
+ declare const Alert: ({ children, className, variant, ...props }: AlertProps) => React$1.JSX.Element;
23
23
 
24
24
  interface AuthHeaderProps {
25
25
  children?: ReactNode;
26
26
  logoAlt: string;
27
27
  mobileClassName?: string;
28
28
  }
29
- declare const AuthHeader: ({ children, logoAlt, mobileClassName }: AuthHeaderProps) => React.JSX.Element;
29
+ declare const AuthHeader: ({ children, logoAlt, mobileClassName }: AuthHeaderProps) => React$1.JSX.Element;
30
30
 
31
31
  declare const buttonVariants: (props?: ({
32
32
  hoverStyle?: "none" | "highlight" | "shine" | null | undefined;
33
33
  size?: "lg" | "sm" | "default" | "icon" | null | undefined;
34
34
  variant?: "link" | "primary" | "destructive" | "ghost" | "invisible" | "outline" | "tertiary" | "underline" | null | undefined;
35
35
  } & class_variance_authority_types.ClassProp) | undefined) => string;
36
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
36
+ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
37
37
  asChild?: boolean;
38
38
  childrenClassName?: string;
39
39
  hoverStyle?: 'highlight' | 'none' | 'shine';
40
- icon?: React.ReactNode;
41
- iconLeft?: React.ReactNode;
42
- iconRight?: React.ReactNode;
40
+ icon?: React$1.ReactNode;
41
+ iconLeft?: React$1.ReactNode;
42
+ iconRight?: React$1.ReactNode;
43
43
  isLoading?: boolean;
44
44
  sideTooltip?: 'bottom' | 'left' | 'right' | 'top';
45
45
  tooltip?: string;
46
46
  }
47
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
47
+ declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
48
48
 
49
- declare const Command: React.ForwardRefExoticComponent<Omit<{
50
- children?: React.ReactNode;
51
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
52
- ref?: React.Ref<HTMLDivElement>;
49
+ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
50
+ children?: React$1.ReactNode;
51
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
52
+ ref?: React$1.Ref<HTMLDivElement>;
53
53
  } & {
54
54
  asChild?: boolean;
55
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
55
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
56
56
  label?: string;
57
57
  shouldFilter?: boolean;
58
58
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -62,97 +62,97 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
62
62
  loop?: boolean;
63
63
  disablePointerSelection?: boolean;
64
64
  vimBindings?: boolean;
65
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
65
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
66
66
  type CommandDialogProps = DialogProps;
67
- declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
68
- declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
69
- ref?: React.Ref<HTMLInputElement>;
67
+ declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React$1.JSX.Element;
68
+ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
69
+ ref?: React$1.Ref<HTMLInputElement>;
70
70
  } & {
71
71
  asChild?: boolean;
72
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
72
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
73
73
  value?: string;
74
74
  onValueChange?: (search: string) => void;
75
- } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
76
- declare const CommandList: React.ForwardRefExoticComponent<Omit<{
77
- children?: React.ReactNode;
78
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
79
- ref?: React.Ref<HTMLDivElement>;
75
+ } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
76
+ declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
77
+ children?: React$1.ReactNode;
78
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
79
+ ref?: React$1.Ref<HTMLDivElement>;
80
80
  } & {
81
81
  asChild?: boolean;
82
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
82
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
83
83
  label?: string;
84
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
85
- declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
86
- children?: React.ReactNode;
87
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
88
- ref?: React.Ref<HTMLDivElement>;
84
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
85
+ declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
86
+ children?: React$1.ReactNode;
87
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
88
+ ref?: React$1.Ref<HTMLDivElement>;
89
89
  } & {
90
90
  asChild?: boolean;
91
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
92
- declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
93
- children?: React.ReactNode;
94
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
95
- ref?: React.Ref<HTMLDivElement>;
91
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
92
+ declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
93
+ children?: React$1.ReactNode;
94
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
95
+ ref?: React$1.Ref<HTMLDivElement>;
96
96
  } & {
97
97
  asChild?: boolean;
98
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
99
- heading?: React.ReactNode;
98
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
99
+ heading?: React$1.ReactNode;
100
100
  value?: string;
101
101
  forceMount?: boolean;
102
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
103
- declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
104
- ref?: React.Ref<HTMLDivElement>;
102
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
103
+ declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
104
+ ref?: React$1.Ref<HTMLDivElement>;
105
105
  } & {
106
106
  asChild?: boolean;
107
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
107
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
108
108
  alwaysRender?: boolean;
109
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
110
- declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
111
- children?: React.ReactNode;
112
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
113
- ref?: React.Ref<HTMLDivElement>;
109
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
110
+ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
111
+ children?: React$1.ReactNode;
112
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
113
+ ref?: React$1.Ref<HTMLDivElement>;
114
114
  } & {
115
115
  asChild?: boolean;
116
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
116
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
117
117
  disabled?: boolean;
118
118
  onSelect?: (value: string) => void;
119
119
  value?: string;
120
120
  keywords?: string[];
121
121
  forceMount?: boolean;
122
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
122
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
123
123
  declare const CommandShortcut: {
124
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
124
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
125
125
  displayName: string;
126
126
  };
127
127
 
128
- declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
129
- declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
130
- declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
131
- declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
132
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
128
+ declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
129
+ declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
130
+ declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
131
+ declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
132
+ declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
133
133
  isAbsolute?: boolean;
134
- } & React.RefAttributes<HTMLDivElement>>;
135
- interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
134
+ } & React$1.RefAttributes<HTMLDivElement>>;
135
+ interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
136
136
  closeLabel?: string;
137
137
  container?: HTMLElement | null;
138
138
  isAbsolute?: boolean;
139
139
  isCloseIcon?: boolean;
140
140
  overlayClassName?: string;
141
141
  }
142
- declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
142
+ declare const DialogContent: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
143
143
  declare const DialogHeader: {
144
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
144
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
145
145
  displayName: string;
146
146
  };
147
147
  declare const DialogFooter: {
148
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
148
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
149
149
  displayName: string;
150
150
  };
151
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
152
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
151
+ declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
152
+ declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
153
153
 
154
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
155
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
154
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
155
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
156
156
  declare const useFormField: () => {
157
157
  invalid: boolean;
158
158
  isDirty: boolean;
@@ -165,13 +165,13 @@ declare const useFormField: () => {
165
165
  id: string;
166
166
  name: string;
167
167
  };
168
- declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
169
- declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
170
- declare const FormControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement> & {
171
- children?: React.ReactNode;
172
- } & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
173
- declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
174
- declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
168
+ declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
169
+ declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
170
+ declare const FormControl: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLElement> & {
171
+ children?: React$1.ReactNode;
172
+ } & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
173
+ declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
174
+ declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
175
175
 
176
176
  interface InputFieldProps<T extends FieldValues = FieldValues> {
177
177
  clearLabel?: string;
@@ -190,7 +190,7 @@ interface InputFieldProps<T extends FieldValues = FieldValues> {
190
190
  type?: string;
191
191
  visualRequired?: boolean;
192
192
  }
193
- declare const InputField: <T extends FieldValues = FieldValues>({ clearLabel, control, disabled, hidePasswordLabel, inputClassName, isClearable, label, labelClassName, mainClassName, name, onClear, placeholder, showPasswordLabel, type, visualRequired }: InputFieldProps<T>) => React.JSX.Element;
193
+ declare const InputField: <T extends FieldValues = FieldValues>({ clearLabel, control, disabled, hidePasswordLabel, inputClassName, isClearable, label, labelClassName, mainClassName, name, onClear, placeholder, showPasswordLabel, type, visualRequired }: InputFieldProps<T>) => React$1.JSX.Element;
194
194
 
195
195
  interface LabelFieldProps {
196
196
  label?: string;
@@ -198,7 +198,7 @@ interface LabelFieldProps {
198
198
  name: string;
199
199
  visualRequired?: boolean;
200
200
  }
201
- declare const LabelField: ({ label, labelClassName, name, visualRequired }: LabelFieldProps) => React.JSX.Element;
201
+ declare const LabelField: ({ label, labelClassName, name, visualRequired }: LabelFieldProps) => React$1.JSX.Element;
202
202
 
203
203
  interface ResolvedAddress {
204
204
  address: string;
@@ -221,7 +221,7 @@ interface GoogleMapPickerProps {
221
221
  placeholder?: string;
222
222
  value: string;
223
223
  }
224
- declare const GoogleMapPicker: (props: GoogleMapPickerProps) => React.JSX.Element;
224
+ declare const GoogleMapPicker: (props: GoogleMapPickerProps) => React$1.JSX.Element;
225
225
 
226
226
  type MapPickerFieldProps<T extends FieldValues> = Omit<GoogleMapPickerProps, 'hasError' | 'onChange' | 'value'> & {
227
227
  control: Control<T>;
@@ -231,7 +231,7 @@ type MapPickerFieldProps<T extends FieldValues> = Omit<GoogleMapPickerProps, 'ha
231
231
  name: Path<T>;
232
232
  visualRequired?: boolean;
233
233
  };
234
- declare const MapPickerField: <T extends FieldValues>({ control, label, labelClassName, mainClassName, name, visualRequired, ...pickerProps }: MapPickerFieldProps<T>) => React.JSX.Element;
234
+ declare const MapPickerField: <T extends FieldValues>({ control, label, labelClassName, mainClassName, name, visualRequired, ...pickerProps }: MapPickerFieldProps<T>) => React$1.JSX.Element;
235
235
 
236
236
  interface OtpInputFormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> {
237
237
  autoFocus?: boolean;
@@ -265,18 +265,25 @@ interface SelectFieldProps<T extends FieldValues = FieldValues> {
265
265
  search?: boolean;
266
266
  visualRequired?: boolean;
267
267
  }
268
- declare const SelectField: <T extends FieldValues = FieldValues>({ ableDeleteOption, className, control, disabled, label, labelClassName, mainClassName, name, options, placeholder, search, visualRequired }: SelectFieldProps<T>) => React.JSX.Element;
268
+ declare const SelectField: <T extends FieldValues = FieldValues>({ ableDeleteOption, className, control, disabled, label, labelClassName, mainClassName, name, options, placeholder, search, visualRequired }: SelectFieldProps<T>) => React$1.JSX.Element;
269
269
 
270
- type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
271
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
270
+ interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
271
+ aspectRatio?: string;
272
+ fallback?: React.ReactNode;
273
+ wrapperClassName?: string;
274
+ }
275
+ declare const Image: ({ alt, aspectRatio, className, fallback, loading, onError, onLoad, wrapperClassName, ...props }: ImageProps) => React$1.JSX.Element;
276
+
277
+ type InputProps = React$1.InputHTMLAttributes<HTMLInputElement>;
278
+ declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
272
279
 
273
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
280
+ declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
274
281
 
275
282
  interface LoadingProps {
276
283
  className?: string;
277
284
  isSpinner?: boolean;
278
285
  }
279
- declare function Loading({ className, isSpinner }: Readonly<LoadingProps>): React.JSX.Element;
286
+ declare function Loading({ className, isSpinner }: Readonly<LoadingProps>): React$1.JSX.Element;
280
287
 
281
288
  declare function InputOTP({ className, containerClassName, ...props }: React__default.ComponentProps<typeof OTPInput> & {
282
289
  containerClassName?: string;
@@ -305,21 +312,21 @@ interface PasswordChecklistProps {
305
312
  }
306
313
  declare const PasswordChecklist: ({ className, rules, value }: PasswordChecklistProps) => React__default.JSX.Element | null;
307
314
 
308
- declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
309
- declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
310
- declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
311
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
312
-
313
- declare const Select: React.FC<SelectPrimitive.SelectProps>;
314
- declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
315
- declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
316
- declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
317
- declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
318
- declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
319
- declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
320
- declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
321
- declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
322
- declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
315
+ declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
316
+ declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
317
+ declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
318
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
319
+
320
+ declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
321
+ declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
322
+ declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
323
+ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
324
+ declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
325
+ declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
326
+ declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
327
+ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
328
+ declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
329
+ declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
323
330
 
324
331
  interface SelectInputProps<Label extends string, Value extends string> {
325
332
  ableDeleteOption?: boolean;
@@ -366,14 +373,14 @@ interface SpinnerProps {
366
373
  size?: keyof typeof sizes;
367
374
  variant?: keyof typeof variants;
368
375
  }
369
- declare const Spinner: ({ className, loadingLabel, size, variant }: SpinnerProps) => React.JSX.Element;
376
+ declare const Spinner: ({ className, loadingLabel, size, variant }: SpinnerProps) => React$1.JSX.Element;
370
377
 
371
378
  interface StepHeaderProps {
372
379
  subtitle?: ReactNode;
373
380
  subtitleClassName?: string;
374
381
  title: string;
375
382
  }
376
- declare const StepHeader: ({ subtitle, subtitleClassName, title }: StepHeaderProps) => React.JSX.Element;
383
+ declare const StepHeader: ({ subtitle, subtitleClassName, title }: StepHeaderProps) => React$1.JSX.Element;
377
384
 
378
385
  interface StepperStep {
379
386
  label: string;
@@ -384,7 +391,7 @@ interface StepperProps {
384
391
  intermediate?: boolean;
385
392
  steps: StepperStep[];
386
393
  }
387
- declare const Stepper: ({ activeIndex, className, intermediate, steps }: StepperProps) => React.JSX.Element;
394
+ declare const Stepper: ({ activeIndex, className, intermediate, steps }: StepperProps) => React$1.JSX.Element;
388
395
 
389
396
  interface ToastOptions {
390
397
  duration?: number;
@@ -403,24 +410,24 @@ interface ToastProps {
403
410
  title: string;
404
411
  type: ToastType;
405
412
  }
406
- declare function Toast({ duration, id, onClose, subtitle, title, type }: ToastProps): React.JSX.Element;
413
+ declare function Toast({ duration, id, onClose, subtitle, title, type }: ToastProps): React$1.JSX.Element;
407
414
 
408
- declare function ToastProvider(): React.JSX.Element;
415
+ declare function ToastProvider(): React$1.JSX.Element;
409
416
 
410
417
  interface TooltipProps {
411
- children: React.ReactNode;
418
+ children: React$1.ReactNode;
412
419
  childrenClassName?: string;
413
420
  className?: string;
414
421
  message: string;
415
422
  sideTooltip?: 'bottom' | 'left' | 'right' | 'top';
416
423
  }
417
- declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
424
+ declare const Tooltip: React$1.ForwardRefExoticComponent<TooltipProps & React$1.RefAttributes<HTMLDivElement>>;
418
425
 
419
426
  interface WrapperProps {
420
427
  children: ReactNode;
421
428
  className?: string;
422
429
  }
423
- declare const Wrapper: ({ children, className }: WrapperProps) => React.JSX.Element;
430
+ declare const Wrapper: ({ children, className }: WrapperProps) => React$1.JSX.Element;
424
431
 
425
432
  // Internal Helpers
426
433
 
@@ -964,4 +971,4 @@ declare const toast: {
964
971
  };
965
972
  declare function registerToastEmitter(fn: ToastEmitter): void;
966
973
 
967
- export { Alert, AuthHeader, Button, type ButtonProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GoogleMapPicker, type GoogleMapPickerProps, Input, InputField, InputOTP, InputOTPGroup, InputOTPSlot, type InputProps, Label, LabelField, Loading, MapPickerField, OTPField, type Options, PasswordChecklist, type PasswordRule, type PasswordRulesConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ResolvedAddress, Select, SelectContent, SelectField, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, type SpinnerProps, StepHeader, Stepper, type StepperStep, Toast, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Tooltip, Wrapper, type WrapperProps, buttonVariants, cn, inputBase, inputDisabled, inputFocus, inputPlaceholder, registerToastEmitter, setUiLanguage, toast, uiI18n, useFormField };
974
+ export { Alert, AuthHeader, Button, type ButtonProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GoogleMapPicker, type GoogleMapPickerProps, Image, type ImageProps, Input, InputField, InputOTP, InputOTPGroup, InputOTPSlot, type InputProps, Label, LabelField, Loading, MapPickerField, OTPField, type Options, PasswordChecklist, type PasswordRule, type PasswordRulesConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ResolvedAddress, Select, SelectContent, SelectField, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, type SpinnerProps, StepHeader, Stepper, type StepperStep, Toast, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Tooltip, Wrapper, type WrapperProps, buttonVariants, cn, inputBase, inputDisabled, inputFocus, inputPlaceholder, registerToastEmitter, setUiLanguage, toast, uiI18n, useFormField };