@komensal/ui 0.10.0 → 0.11.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.ts +26 -5
- package/dist/index.js +251 -187
- package/dist/index.js.map +1 -1
- package/package.json +9 -7
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ import { DefaultNamespace, FlatNamespace, InitOptions, InterpolationOptions, Res
|
|
|
14
14
|
import { TFunction, SelectorKey, KeyPrefixSelector, KeyPrefix } from './typescript/t.js';
|
|
15
15
|
import { ClassValue } from 'clsx';
|
|
16
16
|
|
|
17
|
+
interface AddTileProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
18
|
+
icon: React.ReactNode;
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
declare const AddTile: React.ForwardRefExoticComponent<AddTileProps & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
|
|
17
23
|
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
24
|
variant?: AlertVariant;
|
|
19
25
|
}
|
|
@@ -31,7 +37,7 @@ declare const AuthHeader: ({ children, desktopLogoSrc, logoAlt, mobileClassName,
|
|
|
31
37
|
|
|
32
38
|
declare const buttonVariants: (props?: ({
|
|
33
39
|
hoverStyle?: "none" | "highlight" | "shine" | null | undefined;
|
|
34
|
-
size?: "
|
|
40
|
+
size?: "icon" | "lg" | "sm" | "default" | null | undefined;
|
|
35
41
|
variant?: "destructive" | "link" | "primary" | "ghost" | "invisible" | "outline" | "subtle" | "tertiary" | "underline" | null | undefined;
|
|
36
42
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
37
43
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -47,6 +53,13 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
47
53
|
}
|
|
48
54
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
49
55
|
|
|
56
|
+
declare const chipVariants: (props?: ({
|
|
57
|
+
active?: boolean | null | undefined;
|
|
58
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
59
|
+
interface ChipProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof chipVariants> {
|
|
60
|
+
}
|
|
61
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
|
|
62
|
+
|
|
50
63
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
51
64
|
children?: React.ReactNode;
|
|
52
65
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
@@ -70,7 +83,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
70
83
|
ref?: React.Ref<HTMLInputElement>;
|
|
71
84
|
} & {
|
|
72
85
|
asChild?: boolean;
|
|
73
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "
|
|
86
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
74
87
|
value?: string;
|
|
75
88
|
onValueChange?: (search: string) => void;
|
|
76
89
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -96,7 +109,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
96
109
|
ref?: React.Ref<HTMLDivElement>;
|
|
97
110
|
} & {
|
|
98
111
|
asChild?: boolean;
|
|
99
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
112
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
100
113
|
heading?: React.ReactNode;
|
|
101
114
|
value?: string;
|
|
102
115
|
forceMount?: boolean;
|
|
@@ -114,7 +127,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
114
127
|
ref?: React.Ref<HTMLDivElement>;
|
|
115
128
|
} & {
|
|
116
129
|
asChild?: boolean;
|
|
117
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
130
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
|
|
118
131
|
disabled?: boolean;
|
|
119
132
|
onSelect?: (value: string) => void;
|
|
120
133
|
value?: string;
|
|
@@ -372,6 +385,14 @@ interface StepperProps {
|
|
|
372
385
|
}
|
|
373
386
|
declare const Stepper: ({ activeIndex, className, intermediate, steps }: StepperProps) => React.JSX.Element;
|
|
374
387
|
|
|
388
|
+
interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'checked' | 'defaultChecked'> {
|
|
389
|
+
checked?: boolean;
|
|
390
|
+
defaultChecked?: boolean;
|
|
391
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
392
|
+
required?: boolean;
|
|
393
|
+
}
|
|
394
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
395
|
+
|
|
375
396
|
interface ToastOptions {
|
|
376
397
|
duration?: number;
|
|
377
398
|
position?: ToastPosition;
|
|
@@ -951,4 +972,4 @@ declare const toast: {
|
|
|
951
972
|
};
|
|
952
973
|
declare function registerToastEmitter(fn: ToastEmitter): void;
|
|
953
974
|
|
|
954
|
-
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, FormField, FormItem, FormMessage, GoogleMapPicker, type GoogleMapPickerProps, Input, InputField, InputOTP, InputOTPGroup, InputOTPSlot, type InputProps, Label, LabelField, MapPickerField, OTPField, type Options, PasswordChecklist, type PasswordRule, type PasswordRulesConfig, Popover, PopoverContent, PopoverTrigger, type ResolvedAddress, SelectField, SelectInput, Spinner, type SpinnerProps, StepHeader, Stepper, type StepperStep, Toast, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Tooltip, Wrapper, type WrapperProps, buttonVariants, cn, inputBase, inputCompact, inputDisabled, inputFocus, inputPlaceholder, registerToastEmitter, setUiLanguage, toast, uiI18n, useFormField };
|
|
975
|
+
export { AddTile, type AddTileProps, Alert, AuthHeader, Button, type ButtonProps, Chip, type ChipProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Form, FormControl, FormField, FormItem, FormMessage, GoogleMapPicker, type GoogleMapPickerProps, Input, InputField, InputOTP, InputOTPGroup, InputOTPSlot, type InputProps, Label, LabelField, MapPickerField, OTPField, type Options, PasswordChecklist, type PasswordRule, type PasswordRulesConfig, Popover, PopoverContent, PopoverTrigger, type ResolvedAddress, SelectField, SelectInput, Spinner, type SpinnerProps, StepHeader, Stepper, type StepperStep, Switch, type SwitchProps, Toast, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Tooltip, Wrapper, type WrapperProps, buttonVariants, chipVariants, cn, inputBase, inputCompact, inputDisabled, inputFocus, inputPlaceholder, registerToastEmitter, setUiLanguage, toast, uiI18n, useFormField };
|