@skybin-tech/nebula-ui 0.0.15 → 0.0.18
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/cjs/components/Alert/Alert.cjs +15 -0
- package/dist/cjs/components/Alert/Alert.cjs.map +1 -0
- package/dist/cjs/components/Badge/Badge.cjs +2 -1
- package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
- package/dist/cjs/components/Button/Button.cjs +3 -2
- package/dist/cjs/components/Button/Button.cjs.map +1 -1
- package/dist/cjs/components/Input/Input.cjs +9 -0
- package/dist/cjs/components/Input/Input.cjs.map +1 -0
- package/dist/cjs/components/Label/Label.cjs +9 -0
- package/dist/cjs/components/Label/Label.cjs.map +1 -0
- package/dist/cjs/components/Tabs/Tabs.cjs +18 -0
- package/dist/cjs/components/Tabs/Tabs.cjs.map +1 -0
- package/dist/cjs/components/Textarea/Textarea.cjs +9 -0
- package/dist/cjs/components/Textarea/Textarea.cjs.map +1 -0
- package/dist/cjs/index.cjs +17 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/primitives/alert.cjs +69 -0
- package/dist/cjs/primitives/alert.cjs.map +1 -0
- package/dist/cjs/primitives/input.cjs +41 -0
- package/dist/cjs/primitives/input.cjs.map +1 -0
- package/dist/cjs/primitives/tabs.cjs +66 -0
- package/dist/cjs/primitives/tabs.cjs.map +1 -0
- package/dist/components/Alert/Alert.d.ts +6 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.js +15 -0
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +4 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +10 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +26 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +7 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +27 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/components/Form/Checkbox.d.ts +32 -0
- package/dist/components/Form/Checkbox.d.ts.map +1 -0
- package/dist/components/Form/Form.d.ts +62 -0
- package/dist/components/Form/Form.d.ts.map +1 -0
- package/dist/components/Form/Radio.d.ts +80 -0
- package/dist/components/Form/Radio.d.ts.map +1 -0
- package/dist/components/Form/Select.d.ts +75 -0
- package/dist/components/Form/Select.d.ts.map +1 -0
- package/dist/components/Form/Switch.d.ts +34 -0
- package/dist/components/Form/Switch.d.ts.map +1 -0
- package/dist/components/Form/TextArea.d.ts +47 -0
- package/dist/components/Form/TextArea.d.ts.map +1 -0
- package/dist/components/Form/TextBox.d.ts +61 -0
- package/dist/components/Form/TextBox.d.ts.map +1 -0
- package/dist/components/Form/context.d.ts +109 -0
- package/dist/components/Form/context.d.ts.map +1 -0
- package/dist/components/Form/hooks.d.ts +21 -0
- package/dist/components/Form/hooks.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +18 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Form/variants.d.ts +8 -0
- package/dist/components/Form/variants.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.js +9 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Label/Label.d.ts +5 -0
- package/dist/components/Label/Label.d.ts.map +1 -0
- package/dist/components/Label/Label.js +9 -0
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Label/index.d.ts +3 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Separator/Separator.d.ts +2 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +18 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +5 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.js +9 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/hooks/useDebounce.d.ts +8 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useToggle.d.ts +7 -0
- package/dist/hooks/useToggle.d.ts.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/primitives/alert.d.ts +9 -0
- package/dist/primitives/alert.d.ts.map +1 -0
- package/dist/primitives/alert.js +52 -0
- package/dist/primitives/alert.js.map +1 -0
- package/dist/primitives/avatar.d.ts +7 -0
- package/dist/primitives/avatar.d.ts.map +1 -0
- package/dist/primitives/badge.d.ts +10 -0
- package/dist/primitives/badge.d.ts.map +1 -0
- package/dist/primitives/button.d.ts +12 -0
- package/dist/primitives/button.d.ts.map +1 -0
- package/dist/primitives/card.d.ts +9 -0
- package/dist/primitives/card.d.ts.map +1 -0
- package/dist/primitives/checkbox.d.ts +5 -0
- package/dist/primitives/checkbox.d.ts.map +1 -0
- package/dist/primitives/dropdown-menu.d.ts +28 -0
- package/dist/primitives/dropdown-menu.d.ts.map +1 -0
- package/dist/primitives/index.d.ts +31 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/input.d.ts +4 -0
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +24 -0
- package/dist/primitives/input.js.map +1 -0
- package/dist/primitives/label.d.ts +6 -0
- package/dist/primitives/label.d.ts.map +1 -0
- package/dist/primitives/radio-group.d.ts +6 -0
- package/dist/primitives/radio-group.d.ts.map +1 -0
- package/dist/primitives/select.d.ts +14 -0
- package/dist/primitives/select.d.ts.map +1 -0
- package/dist/primitives/separator.d.ts +5 -0
- package/dist/primitives/separator.d.ts.map +1 -0
- package/dist/primitives/switch.d.ts +5 -0
- package/dist/primitives/switch.d.ts.map +1 -0
- package/dist/primitives/tabs.d.ts +8 -0
- package/dist/primitives/tabs.d.ts.map +1 -0
- package/dist/primitives/tabs.js +48 -0
- package/dist/primitives/tabs.js.map +1 -0
- package/dist/primitives/textarea.d.ts +4 -0
- package/dist/primitives/textarea.d.ts.map +1 -0
- package/dist/primitives/textbox.d.ts +4 -0
- package/dist/primitives/textbox.d.ts.map +1 -0
- package/dist/stories/Button.d.ts +15 -0
- package/dist/stories/Button.d.ts.map +1 -0
- package/dist/stories/Button.stories.d.ts +24 -0
- package/dist/stories/Button.stories.d.ts.map +1 -0
- package/dist/stories/Header.d.ts +12 -0
- package/dist/stories/Header.d.ts.map +1 -0
- package/dist/stories/Header.stories.d.ts +19 -0
- package/dist/stories/Header.stories.d.ts.map +1 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.d.ts.map +1 -0
- package/dist/stories/Page.stories.d.ts +13 -0
- package/dist/stories/Page.stories.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +7 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +9 -6
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { UseFormReturn, FieldValues } from 'react-hook-form';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* Validation rule types that can be applied to form fields
|
|
5
|
+
*/
|
|
6
|
+
export interface FieldValidationRules {
|
|
7
|
+
/** Field is required */
|
|
8
|
+
required?: boolean | string;
|
|
9
|
+
/** Minimum length for strings */
|
|
10
|
+
minLength?: number | {
|
|
11
|
+
value: number;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
/** Maximum length for strings */
|
|
15
|
+
maxLength?: number | {
|
|
16
|
+
value: number;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
/** Minimum value for numbers */
|
|
20
|
+
min?: number | {
|
|
21
|
+
value: number;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
/** Maximum value for numbers */
|
|
25
|
+
max?: number | {
|
|
26
|
+
value: number;
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
/** Regex pattern for validation */
|
|
30
|
+
pattern?: RegExp | {
|
|
31
|
+
value: RegExp;
|
|
32
|
+
message: string;
|
|
33
|
+
};
|
|
34
|
+
/** Email validation */
|
|
35
|
+
email?: boolean | string;
|
|
36
|
+
/** URL validation */
|
|
37
|
+
url?: boolean | string;
|
|
38
|
+
/** Custom validation function */
|
|
39
|
+
validate?: (value: unknown) => boolean | string | Promise<boolean | string>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Form configuration options
|
|
43
|
+
*/
|
|
44
|
+
export interface FormConfig {
|
|
45
|
+
/** Show validation errors inline */
|
|
46
|
+
showInlineErrors?: boolean;
|
|
47
|
+
/** Validate on blur */
|
|
48
|
+
validateOnBlur?: boolean;
|
|
49
|
+
/** Validate on change */
|
|
50
|
+
validateOnChange?: boolean;
|
|
51
|
+
/** Size of form controls */
|
|
52
|
+
size?: "sm" | "md" | "lg";
|
|
53
|
+
/** Layout direction */
|
|
54
|
+
layout?: "horizontal" | "vertical" | "inline";
|
|
55
|
+
/** Label width for horizontal layout */
|
|
56
|
+
labelWidth?: string | number;
|
|
57
|
+
/** Whether form is disabled */
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/** Colon after label */
|
|
60
|
+
colon?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Field registration info
|
|
64
|
+
*/
|
|
65
|
+
export interface FieldRegistration {
|
|
66
|
+
name: string;
|
|
67
|
+
type: "string" | "number" | "boolean" | "date" | "array";
|
|
68
|
+
rules: FieldValidationRules;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Form context value
|
|
72
|
+
*/
|
|
73
|
+
export interface FormContextValue<TFieldValues extends FieldValues = FieldValues> extends FormConfig {
|
|
74
|
+
form: UseFormReturn<TFieldValues>;
|
|
75
|
+
/** Register a field's validation rules */
|
|
76
|
+
registerFieldValidation: (field: FieldRegistration) => void;
|
|
77
|
+
/** Unregister a field's validation rules */
|
|
78
|
+
unregisterFieldValidation: (name: string) => void;
|
|
79
|
+
/** Get current validation schema */
|
|
80
|
+
getValidationSchema: () => z.ZodObject<Record<string, z.ZodTypeAny>>;
|
|
81
|
+
/** Trigger validation for a specific field */
|
|
82
|
+
triggerValidation: (name: string) => Promise<boolean>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Default form configuration
|
|
86
|
+
*/
|
|
87
|
+
export declare const defaultFormConfig: FormConfig;
|
|
88
|
+
/**
|
|
89
|
+
* Form context for sharing form state and configuration
|
|
90
|
+
*/
|
|
91
|
+
export declare const FormConfigContext: import('react').Context<FormContextValue<FieldValues> | null>;
|
|
92
|
+
/**
|
|
93
|
+
* Build a Zod schema from validation rules
|
|
94
|
+
*/
|
|
95
|
+
export declare function buildZodSchemaFromRules(type: FieldRegistration["type"], rules: FieldValidationRules): z.ZodTypeAny;
|
|
96
|
+
/**
|
|
97
|
+
* Hook to manage field validations
|
|
98
|
+
*/
|
|
99
|
+
export declare function useFieldValidationRegistry(): {
|
|
100
|
+
registerFieldValidation: (field: FieldRegistration) => void;
|
|
101
|
+
unregisterFieldValidation: (name: string) => void;
|
|
102
|
+
getValidationSchema: () => z.ZodObject<Record<string, z.ZodTypeAny>, "strip", z.ZodTypeAny, {
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
}, {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
}>;
|
|
107
|
+
fieldsRef: import('react').RefObject<Map<string, FieldRegistration>>;
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Form/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,uBAAuB;IACvB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,qBAAqB;IACrB,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC;CAC7E;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uBAAuB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yBAAyB;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,uBAAuB;IACvB,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC9C,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACzD,KAAK,EAAE,oBAAoB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,CAC9E,SAAQ,UAAU;IAClB,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAClC,0CAA0C;IAC1C,uBAAuB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5D,4CAA4C;IAC5C,yBAAyB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,oCAAoC;IACpC,mBAAmB,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;IACrE,8CAA8C;IAC9C,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACvD;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAQ/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,+DAA+C,CAAC;AAE9E;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAC/B,KAAK,EAAE,oBAAoB,GAC1B,CAAC,CAAC,UAAU,CAuHd;AAED;;GAEG;AACH,wBAAgB,0BAA0B;qCAGY,iBAAiB;sCAIhB,MAAM;;;;;;;EAoB5D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FieldValues, FieldPath, UseControllerProps, UseControllerReturn } from 'react-hook-form';
|
|
2
|
+
import { FormContextValue, FormConfig } from './context';
|
|
3
|
+
/**
|
|
4
|
+
* Hook to access form configuration context
|
|
5
|
+
*/
|
|
6
|
+
export declare function useFormConfig<TFieldValues extends FieldValues = FieldValues>(): FormContextValue<TFieldValues>;
|
|
7
|
+
/**
|
|
8
|
+
* Hook to access react-hook-form context directly
|
|
9
|
+
*/
|
|
10
|
+
export declare function useForm<TFieldValues extends FieldValues = FieldValues>(): import('react-hook-form').UseFormReturn<TFieldValues, any, TFieldValues>;
|
|
11
|
+
/**
|
|
12
|
+
* Hook to create a controlled field with form context awareness
|
|
13
|
+
*/
|
|
14
|
+
export declare function useFormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: UseControllerProps<TFieldValues, TName>): UseControllerReturn<TFieldValues, TName> & {
|
|
15
|
+
config: FormConfig;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Hook to get field error
|
|
19
|
+
*/
|
|
20
|
+
export declare function useFieldError<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(name: TName): string | undefined;
|
|
21
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/Form/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAqB,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAEtF;;GAEG;AACH,wBAAgB,aAAa,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,KAAK,gBAAgB,CAAC,YAAY,CAAC,CAM9G;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,8EAErE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAE/D,KAAK,EAAE,kBAAkB,CAAC,YAAY,EAAE,KAAK,CAAC,GAC7C,mBAAmB,CAAC,YAAY,EAAE,KAAK,CAAC,GAAG;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,CAWnE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAIjC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { Form } from './Form';
|
|
2
|
+
export type { FormProps } from './Form';
|
|
3
|
+
export { TextBox } from './TextBox';
|
|
4
|
+
export type { TextBoxProps } from './TextBox';
|
|
5
|
+
export { TextArea } from './TextArea';
|
|
6
|
+
export type { TextAreaProps } from './TextArea';
|
|
7
|
+
export { Select } from './Select';
|
|
8
|
+
export type { SelectProps, SelectOption } from './Select';
|
|
9
|
+
export { Checkbox } from './Checkbox';
|
|
10
|
+
export type { CheckboxProps } from './Checkbox';
|
|
11
|
+
export { RadioGroup, RadioItem } from './Radio';
|
|
12
|
+
export type { RadioGroupProps, RadioItemProps, RadioOption } from './Radio';
|
|
13
|
+
export { Switch } from './Switch';
|
|
14
|
+
export type { SwitchProps } from './Switch';
|
|
15
|
+
export { FormConfigContext, defaultFormConfig, buildZodSchemaFromRules, useFieldValidationRegistry, } from './context';
|
|
16
|
+
export type { FormConfig, FormContextValue, FieldValidationRules, FieldRegistration, } from './context';
|
|
17
|
+
export { useFormConfig, useForm, useFormField, useFieldError } from './hooks';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Form/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared label variant for all form field components.
|
|
3
|
+
* Shows a required asterisk when required=true.
|
|
4
|
+
*/
|
|
5
|
+
export declare const labelVariants: (props?: ({
|
|
6
|
+
required?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../src/components/Form/variants.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,aAAa;;8EAUxB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Input as InputPrimitive } from '../../primitives/input';
|
|
3
|
+
export type InputProps = ComponentPropsWithoutRef<typeof InputPrimitive>;
|
|
4
|
+
export declare const Input: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC,OAAO,cAAc,CAAC,CAAA;AAExE,eAAO,MAAM,KAAK,qRAGwC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Input as Input$1 } from "../../primitives/input.js";
|
|
4
|
+
const Input = forwardRef((props, ref) => /* @__PURE__ */ jsx(Input$1, { ref, ...props }));
|
|
5
|
+
Input.displayName = "Input";
|
|
6
|
+
export {
|
|
7
|
+
Input
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Input as InputPrimitive } from \"../../primitives/input\"\n\nexport type InputProps = ComponentPropsWithoutRef<typeof InputPrimitive>\n\nexport const Input = forwardRef<\n ElementRef<typeof InputPrimitive>,\n InputProps\n>((props, ref) => <InputPrimitive ref={ref} {...props} />)\nInput.displayName = \"Input\"\n"],"names":["InputPrimitive"],"mappings":";;;AAMO,MAAM,QAAQ,WAGnB,CAAC,OAAO,4BAASA,SAAA,EAAe,KAAW,GAAG,OAAO,CAAE;AACzD,MAAM,cAAc;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Label as LabelPrimitive } from '../../primitives/label';
|
|
3
|
+
export type LabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive>;
|
|
4
|
+
export declare const Label: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-label').LabelProps & import('react').RefAttributes<HTMLLabelElement>, "ref"> & import('class-variance-authority').VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & import('react').RefAttributes<HTMLLabelElement>, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC,OAAO,cAAc,CAAC,CAAA;AAExE,eAAO,MAAM,KAAK,6YAGwC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Label as Label$1 } from "../../primitives/label.js";
|
|
4
|
+
const Label = forwardRef((props, ref) => /* @__PURE__ */ jsx(Label$1, { ref, ...props }));
|
|
5
|
+
Label.displayName = "Label";
|
|
6
|
+
export {
|
|
7
|
+
Label
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../../src/components/Label/Label.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Label as LabelPrimitive } from \"../../primitives/label\"\n\nexport type LabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive>\n\nexport const Label = forwardRef<\n ElementRef<typeof LabelPrimitive>,\n LabelProps\n>((props, ref) => <LabelPrimitive ref={ref} {...props} />)\nLabel.displayName = \"Label\"\n"],"names":["LabelPrimitive"],"mappings":";;;AAMO,MAAM,QAAQ,WAGnB,CAAC,OAAO,4BAASA,SAAA,EAAe,KAAW,GAAG,OAAO,CAAE;AACzD,MAAM,cAAc;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const Separator: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-separator').SeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
//# sourceMappingURL=Separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/Separator.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,yQAGwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-switch').SwitchProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
2
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,4QAGwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export declare const TabsList: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsListProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const TabsTrigger: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export declare const TabsContent: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,IAAI,kMAGwC,CAAA;AAGzD,eAAO,MAAM,QAAQ,mQAGwC,CAAA;AAG7D,eAAO,MAAM,WAAW,+QAGwC,CAAA;AAGhE,eAAO,MAAM,WAAW,sQAGwC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "../../primitives/tabs.js";
|
|
4
|
+
const Tabs = forwardRef((props, ref) => /* @__PURE__ */ jsx(Tabs$1, { ref, ...props }));
|
|
5
|
+
Tabs.displayName = "Tabs";
|
|
6
|
+
const TabsList = forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsList$1, { ref, ...props }));
|
|
7
|
+
TabsList.displayName = "TabsList";
|
|
8
|
+
const TabsTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsTrigger$1, { ref, ...props }));
|
|
9
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
10
|
+
const TabsContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsContent$1, { ref, ...props }));
|
|
11
|
+
TabsContent.displayName = "TabsContent";
|
|
12
|
+
export {
|
|
13
|
+
Tabs,
|
|
14
|
+
TabsContent,
|
|
15
|
+
TabsList,
|
|
16
|
+
TabsTrigger
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Tabs as TabsPrimitive,\n TabsList as TabsListPrimitive,\n TabsTrigger as TabsTriggerPrimitive,\n TabsContent as TabsContentPrimitive,\n} from \"../../primitives/tabs\"\n\nexport const Tabs = forwardRef<\n ElementRef<typeof TabsPrimitive>,\n ComponentPropsWithoutRef<typeof TabsPrimitive>\n>((props, ref) => <TabsPrimitive ref={ref} {...props} />)\nTabs.displayName = \"Tabs\"\n\nexport const TabsList = forwardRef<\n ElementRef<typeof TabsListPrimitive>,\n ComponentPropsWithoutRef<typeof TabsListPrimitive>\n>((props, ref) => <TabsListPrimitive ref={ref} {...props} />)\nTabsList.displayName = \"TabsList\"\n\nexport const TabsTrigger = forwardRef<\n ElementRef<typeof TabsTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof TabsTriggerPrimitive>\n>((props, ref) => <TabsTriggerPrimitive ref={ref} {...props} />)\nTabsTrigger.displayName = \"TabsTrigger\"\n\nexport const TabsContent = forwardRef<\n ElementRef<typeof TabsContentPrimitive>,\n ComponentPropsWithoutRef<typeof TabsContentPrimitive>\n>((props, ref) => <TabsContentPrimitive ref={ref} {...props} />)\nTabsContent.displayName = \"TabsContent\"\n"],"names":["TabsPrimitive","TabsListPrimitive","TabsTriggerPrimitive","TabsContentPrimitive"],"mappings":";;;AASO,MAAM,OAAO,WAGlB,CAAC,OAAO,4BAASA,QAAA,EAAc,KAAW,GAAG,OAAO,CAAE;AACxD,KAAK,cAAc;AAEZ,MAAM,WAAW,WAGtB,CAAC,OAAO,4BAASC,YAAA,EAAkB,KAAW,GAAG,OAAO,CAAE;AAC5D,SAAS,cAAc;AAEhB,MAAM,cAAc,WAGzB,CAAC,OAAO,4BAASC,eAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;AAEnB,MAAM,cAAc,WAGzB,CAAC,OAAO,4BAASC,eAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Textarea as TextareaPrimitive } from '../../primitives/textarea';
|
|
3
|
+
export type TextareaProps = ComponentPropsWithoutRef<typeof TextareaPrimitive>;
|
|
4
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAEzE,MAAM,MAAM,aAAa,GAAG,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9E,eAAO,MAAM,QAAQ,oSAGwC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Textarea as Textarea$1 } from "../../primitives/textarea.js";
|
|
4
|
+
const Textarea = forwardRef((props, ref) => /* @__PURE__ */ jsx(Textarea$1, { ref, ...props }));
|
|
5
|
+
Textarea.displayName = "Textarea";
|
|
6
|
+
export {
|
|
7
|
+
Textarea
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.js","sources":["../../../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Textarea as TextareaPrimitive } from \"../../primitives/textarea\"\n\nexport type TextareaProps = ComponentPropsWithoutRef<typeof TextareaPrimitive>\n\nexport const Textarea = forwardRef<\n ElementRef<typeof TextareaPrimitive>,\n TextareaProps\n>((props, ref) => <TextareaPrimitive ref={ref} {...props} />)\nTextarea.displayName = \"Textarea\"\n"],"names":["TextareaPrimitive"],"mappings":";;;AAMO,MAAM,WAAW,WAGtB,CAAC,OAAO,4BAASA,YAAA,EAAkB,KAAW,GAAG,OAAO,CAAE;AAC5D,SAAS,cAAc;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook that debounces a value by a specified delay
|
|
3
|
+
* @param value - The value to debounce
|
|
4
|
+
* @param delay - The delay in milliseconds (default: 500)
|
|
5
|
+
* @returns The debounced value
|
|
6
|
+
*/
|
|
7
|
+
export declare function useDebounce<T>(value: T, delay?: number): T;
|
|
8
|
+
//# sourceMappingURL=useDebounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../src/hooks/useDebounce.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAcvD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook that returns a boolean state and a function to toggle it
|
|
3
|
+
* @param initialValue - The initial value of the toggle (default: false)
|
|
4
|
+
* @returns A tuple containing the current value and a toggle function
|
|
5
|
+
*/
|
|
6
|
+
export declare function useToggle(initialValue?: boolean): [boolean, () => void];
|
|
7
|
+
//# sourceMappingURL=useToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,YAAY,UAAQ,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAQrE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { Button, buttonVariants } from './components/Button';
|
|
2
|
+
export type { ButtonProps } from './components/Button';
|
|
3
|
+
export { Form, TextBox, TextArea, Select, Checkbox, RadioGroup, RadioItem, Switch, FormConfigContext, defaultFormConfig, buildZodSchemaFromRules, useFieldValidationRegistry, useFormConfig, useForm, useFormField, useFieldError, } from './components/Form';
|
|
4
|
+
export type { FormProps, TextBoxProps, TextAreaProps, SelectProps, SelectOption, CheckboxProps, RadioGroupProps, RadioItemProps, RadioOption, SwitchProps, FormConfig, FormContextValue, FieldValidationRules, FieldRegistration, } from './components/Form';
|
|
5
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './components/Card';
|
|
6
|
+
export { Badge, badgeVariants } from './components/Badge';
|
|
7
|
+
export type { BadgeProps } from './components/Badge';
|
|
8
|
+
export { Avatar, AvatarImage, AvatarFallback } from './components/Avatar';
|
|
9
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from './components/DropdownMenu';
|
|
10
|
+
export { Separator } from './components/Separator';
|
|
11
|
+
export { Alert, AlertTitle, AlertDescription } from './components/Alert';
|
|
12
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/Tabs';
|
|
13
|
+
export { Input } from './components/Input';
|
|
14
|
+
export type { InputProps } from './components/Input';
|
|
15
|
+
export { Label } from './components/Label';
|
|
16
|
+
export type { LabelProps } from './components/Label';
|
|
17
|
+
export { Textarea } from './components/Textarea';
|
|
18
|
+
export type { TextareaProps } from './components/Textarea';
|
|
19
|
+
export { useToggle } from './hooks/useToggle';
|
|
20
|
+
export { useDebounce } from './hooks/useDebounce';
|
|
21
|
+
export { cn } from './utils/cn';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC5D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGtD,OAAO,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,0BAA0B,EAC1B,aAAa,EACb,OAAO,EACP,YAAY,EACZ,aAAa,GACd,MAAM,mBAAmB,CAAA;AAE1B,YAAY,EACV,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EACL,IAAI,EACJ,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,GACX,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACzD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzE,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG5E,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGjD,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import { useToggle } from "./hooks/useToggle.js";
|
|
2
2
|
import { useDebounce } from "./hooks/useDebounce.js";
|
|
3
3
|
import { cn } from "./utils/cn.js";
|
|
4
|
+
import { Alert, AlertDescription, AlertTitle } from "./components/Alert/Alert.js";
|
|
4
5
|
import { Avatar, AvatarFallback, AvatarImage } from "./components/Avatar/Avatar.js";
|
|
5
|
-
import { Badge } from "./components/Badge/Badge.js";
|
|
6
|
-
import { Button } from "./components/Button/Button.js";
|
|
6
|
+
import { Badge, badgeVariants } from "./components/Badge/Badge.js";
|
|
7
|
+
import { Button, buttonVariants } from "./components/Button/Button.js";
|
|
7
8
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/Card/Card.js";
|
|
8
9
|
import { Checkbox } from "./components/Form/Checkbox.js";
|
|
9
10
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/DropdownMenu/DropdownMenu.js";
|
|
10
11
|
import { Form } from "./components/Form/Form.js";
|
|
11
12
|
import { FormConfigContext, buildZodSchemaFromRules, defaultFormConfig, useFieldValidationRegistry } from "./components/Form/context.js";
|
|
13
|
+
import { Input } from "./components/Input/Input.js";
|
|
14
|
+
import { Label } from "./components/Label/Label.js";
|
|
12
15
|
import { RadioGroup, RadioItem } from "./components/Form/Radio.js";
|
|
13
16
|
import { Select } from "./components/Form/Select.js";
|
|
14
17
|
import { Separator } from "./components/Separator/Separator.js";
|
|
15
18
|
import { Switch } from "./components/Form/Switch.js";
|
|
19
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/Tabs/Tabs.js";
|
|
16
20
|
import { TextArea } from "./components/Form/TextArea.js";
|
|
17
21
|
import { TextBox } from "./components/Form/TextBox.js";
|
|
18
|
-
import {
|
|
19
|
-
import { buttonVariants } from "./primitives/button.js";
|
|
22
|
+
import { Textarea } from "./components/Textarea/Textarea.js";
|
|
20
23
|
import { useFieldError, useForm, useFormConfig, useFormField } from "./components/Form/hooks.js";
|
|
21
24
|
export {
|
|
25
|
+
Alert,
|
|
26
|
+
AlertDescription,
|
|
27
|
+
AlertTitle,
|
|
22
28
|
Avatar,
|
|
23
29
|
AvatarFallback,
|
|
24
30
|
AvatarImage,
|
|
@@ -48,13 +54,20 @@ export {
|
|
|
48
54
|
DropdownMenuTrigger,
|
|
49
55
|
Form,
|
|
50
56
|
FormConfigContext,
|
|
57
|
+
Input,
|
|
58
|
+
Label,
|
|
51
59
|
RadioGroup,
|
|
52
60
|
RadioItem,
|
|
53
61
|
Select,
|
|
54
62
|
Separator,
|
|
55
63
|
Switch,
|
|
64
|
+
Tabs,
|
|
65
|
+
TabsContent,
|
|
66
|
+
TabsList,
|
|
67
|
+
TabsTrigger,
|
|
56
68
|
TextArea,
|
|
57
69
|
TextBox,
|
|
70
|
+
Textarea,
|
|
58
71
|
badgeVariants,
|
|
59
72
|
buildZodSchemaFromRules,
|
|
60
73
|
buttonVariants,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
9
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/primitives/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAoBjE,QAAA,MAAM,KAAK;;sHAUT,CAAA;AAGF,QAAA,MAAM,UAAU,uHASd,CAAA;AAGF,QAAA,MAAM,gBAAgB,yHASpB,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "../utils/cn.js";
|
|
5
|
+
const alertVariants = cva(
|
|
6
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-background text-foreground",
|
|
11
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: "default"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
const Alert = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
role: "alert",
|
|
24
|
+
className: cn(alertVariants({ variant }), className),
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
Alert.displayName = "Alert";
|
|
29
|
+
const AlertTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
30
|
+
"h5",
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
className: cn("mb-1 font-medium leading-none tracking-tight", className),
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
AlertTitle.displayName = "AlertTitle";
|
|
38
|
+
const AlertDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
ref,
|
|
42
|
+
className: cn("text-sm [&_p]:leading-relaxed", className),
|
|
43
|
+
...props
|
|
44
|
+
}
|
|
45
|
+
));
|
|
46
|
+
AlertDescription.displayName = "AlertDescription";
|
|
47
|
+
export {
|
|
48
|
+
Alert,
|
|
49
|
+
AlertDescription,
|
|
50
|
+
AlertTitle
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","sources":["../../src/primitives/alert.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils/index\"\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-background text-foreground\",\n destructive:\n \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>\n>(({ className, variant, ...props }, ref) => (\n <div\n ref={ref}\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n))\nAlert.displayName = \"Alert\"\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n {...props}\n />\n))\nAlertTitle.displayName = \"AlertTitle\"\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\n {...props}\n />\n))\nAlertDescription.displayName = \"AlertDescription\"\n\nexport { Alert, AlertTitle, AlertDescription }\n"],"names":[],"mappings":";;;;AAKA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,MAAM,QAAQ,MAAM,WAGlB,CAAC,EAAE,WAAW,SAAS,GAAG,SAAS,QACnC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,MAAK;AAAA,IACL,WAAW,GAAG,cAAc,EAAE,QAAA,CAAS,GAAG,SAAS;AAAA,IAClD,GAAG;AAAA,EAAA;AACN,CACD;AACD,MAAM,cAAc;AAEpB,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1B;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW,GAAG,gDAAgD,SAAS;AAAA,IACtE,GAAG;AAAA,EAAA;AACN,CACD;AACD,WAAW,cAAc;AAEzB,MAAM,mBAAmB,MAAM,WAG7B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1B;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,IACvD,GAAG;AAAA,EAAA;AACN,CACD;AACD,iBAAiB,cAAc;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
7
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/primitives/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAIzD,QAAA,MAAM,MAAM,yJAYV,CAAA;AAGF,QAAA,MAAM,WAAW,gKASf,CAAA;AAGF,QAAA,MAAM,cAAc,iKAYlB,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
10
|
+
//# sourceMappingURL=badge.d.ts.map
|