@me1a/ui 2.0.16 → 2.1.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/chunk-6454H4US.mjs +2 -0
- package/dist/chunk-6454H4US.mjs.map +1 -0
- package/dist/chunk-6T4HWNUP.mjs +2 -0
- package/dist/chunk-6T4HWNUP.mjs.map +1 -0
- package/dist/chunk-7NSRDJ5C.mjs +2 -0
- package/dist/chunk-7NSRDJ5C.mjs.map +1 -0
- package/dist/chunk-7XUAZU77.js +2 -0
- package/dist/chunk-7XUAZU77.js.map +1 -0
- package/dist/chunk-GATZOHQ6.js +2 -0
- package/dist/chunk-GATZOHQ6.js.map +1 -0
- package/dist/chunk-K7EIJSYQ.js +2 -0
- package/dist/chunk-K7EIJSYQ.js.map +1 -0
- package/dist/chunk-KITWXTCP.js +2 -0
- package/dist/chunk-KITWXTCP.js.map +1 -0
- package/dist/chunk-N7FJ37S5.mjs +2 -0
- package/dist/chunk-N7FJ37S5.mjs.map +1 -0
- package/dist/chunk-OAVWSSYJ.mjs +2 -0
- package/dist/chunk-OAVWSSYJ.mjs.map +1 -0
- package/dist/chunk-OGPL6C4X.mjs +2 -0
- package/dist/chunk-OGPL6C4X.mjs.map +1 -0
- package/dist/chunk-OOA3MPNF.js +2 -0
- package/dist/chunk-OOA3MPNF.js.map +1 -0
- package/dist/chunk-OTTUYH3A.mjs +2 -0
- package/dist/chunk-OTTUYH3A.mjs.map +1 -0
- package/dist/chunk-OXHAHXFJ.mjs +2 -0
- package/dist/chunk-OXHAHXFJ.mjs.map +1 -0
- package/dist/chunk-Q6STEQO7.js +2 -0
- package/dist/chunk-Q6STEQO7.js.map +1 -0
- package/dist/chunk-T26KLXLH.mjs +2 -0
- package/dist/chunk-T26KLXLH.mjs.map +1 -0
- package/dist/chunk-VRAFWYEU.js +2 -0
- package/dist/chunk-VRAFWYEU.js.map +1 -0
- package/dist/chunk-VSUJPOCO.js +2 -0
- package/dist/chunk-VSUJPOCO.js.map +1 -0
- package/dist/chunk-WCELM33L.js +2 -0
- package/dist/chunk-WCELM33L.js.map +1 -0
- package/dist/chunk-XG6EVSUB.js +2 -0
- package/dist/chunk-XG6EVSUB.js.map +1 -0
- package/dist/chunk-XY7LUWOK.mjs +2 -0
- package/dist/chunk-XY7LUWOK.mjs.map +1 -0
- package/dist/components/atoms/index.d.mts +532 -0
- package/dist/components/atoms/index.d.ts +532 -0
- package/dist/components/atoms/index.js +2 -0
- package/dist/components/atoms/index.js.map +1 -0
- package/dist/components/atoms/index.mjs +2 -0
- package/dist/components/atoms/index.mjs.map +1 -0
- package/dist/components/molecules/index.d.mts +368 -0
- package/dist/components/molecules/index.d.ts +368 -0
- package/dist/components/molecules/index.js +2 -0
- package/dist/components/molecules/index.js.map +1 -0
- package/dist/components/molecules/index.mjs +2 -0
- package/dist/components/molecules/index.mjs.map +1 -0
- package/dist/components/organisms/index.d.mts +531 -0
- package/dist/components/organisms/index.d.ts +531 -0
- package/dist/components/organisms/index.js +2 -0
- package/dist/components/organisms/index.js.map +1 -0
- package/dist/components/organisms/index.mjs +2 -0
- package/dist/components/organisms/index.mjs.map +1 -0
- package/dist/hooks/index.d.mts +3 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/index.mjs +2 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/index.d.mts +23 -1480
- package/dist/index.d.ts +23 -1480
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/input-TJ_d3ROF.d.mts +12 -0
- package/dist/input-TJ_d3ROF.d.ts +12 -0
- package/dist/tooltip-Vd-UgSJF.d.mts +104 -0
- package/dist/tooltip-Vd-UgSJF.d.ts +104 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +2 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/utils/index.d.mts +5 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +10 -7
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
+
import * as react_hook_form from 'react-hook-form';
|
|
8
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
9
|
+
import { I as Input } from '../../input-TJ_d3ROF.js';
|
|
10
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
11
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
12
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Card is a flexible container component that can be used to group related content and actions.
|
|
16
|
+
* It provides a consistent visual style with a subtle border, shadow, and rounded corners.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The main card container component.
|
|
22
|
+
* Provides the base styling for the card including border, shadow, and rounded corners.
|
|
23
|
+
* * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* // Basic card
|
|
28
|
+
* <Card>
|
|
29
|
+
* <CardHeader>
|
|
30
|
+
* <CardTitle>Card Title</CardTitle>
|
|
31
|
+
* <CardDescription>Card Description</CardDescription>
|
|
32
|
+
* </CardHeader>
|
|
33
|
+
* <CardContent>
|
|
34
|
+
* <p>Card content goes here.</p>
|
|
35
|
+
* </CardContent>
|
|
36
|
+
* <CardFooter>
|
|
37
|
+
* <Button>Action</Button>
|
|
38
|
+
* </CardFooter>
|
|
39
|
+
* </Card>
|
|
40
|
+
*
|
|
41
|
+
* // Card with custom styling
|
|
42
|
+
* <Card className="bg-primary text-primary-foreground">
|
|
43
|
+
* <CardHeader>
|
|
44
|
+
* <CardTitle>Custom Styled Card</CardTitle>
|
|
45
|
+
* </CardHeader>
|
|
46
|
+
* <CardContent>
|
|
47
|
+
* <p>This card has custom background and text colors.</p>
|
|
48
|
+
* </CardContent>
|
|
49
|
+
* </Card>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
/**
|
|
54
|
+
* Header section of the card.
|
|
55
|
+
* Typically contains the card title and description.
|
|
56
|
+
* Includes padding and spacing for consistent layout.
|
|
57
|
+
*/
|
|
58
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
/**
|
|
60
|
+
* Title component for the card.
|
|
61
|
+
* Should be used within CardHeader.
|
|
62
|
+
* Provides consistent typography styling for card titles.
|
|
63
|
+
*/
|
|
64
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
65
|
+
/**
|
|
66
|
+
* Description component for the card.
|
|
67
|
+
* Should be used within CardHeader.
|
|
68
|
+
* Provides consistent typography styling for card descriptions.
|
|
69
|
+
*/
|
|
70
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
71
|
+
/**
|
|
72
|
+
* Main content section of the card.
|
|
73
|
+
* Includes padding and removes top padding to maintain consistent spacing with the header.
|
|
74
|
+
*/
|
|
75
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
/**
|
|
77
|
+
* Footer section of the card.
|
|
78
|
+
* Typically contains action buttons or additional information.
|
|
79
|
+
* Includes padding and removes top padding to maintain consistent spacing with the content.
|
|
80
|
+
*/
|
|
81
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
|
|
83
|
+
declare const navigationMenuTriggerStyle: (props?: ({
|
|
84
|
+
variant?: "default" | "ghost" | "link" | "mobile" | null | undefined;
|
|
85
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
86
|
+
|
|
87
|
+
interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
|
|
88
|
+
/**
|
|
89
|
+
* The content of the navigation menu
|
|
90
|
+
*/
|
|
91
|
+
children: React.ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* Optional className for the root element
|
|
94
|
+
*/
|
|
95
|
+
className?: string;
|
|
96
|
+
}
|
|
97
|
+
interface NavigationMenuListProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> {
|
|
98
|
+
/**
|
|
99
|
+
* Optional className for the list element
|
|
100
|
+
*/
|
|
101
|
+
className?: string;
|
|
102
|
+
}
|
|
103
|
+
interface NavigationMenuItemProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item> {
|
|
104
|
+
/**
|
|
105
|
+
* Optional className for the item element
|
|
106
|
+
*/
|
|
107
|
+
className?: string;
|
|
108
|
+
}
|
|
109
|
+
interface NavigationMenuTriggerProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>, VariantProps<typeof navigationMenuTriggerStyle> {
|
|
110
|
+
/**
|
|
111
|
+
* Optional className for the trigger element
|
|
112
|
+
*/
|
|
113
|
+
className?: string;
|
|
114
|
+
}
|
|
115
|
+
interface NavigationMenuContentProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> {
|
|
116
|
+
/**
|
|
117
|
+
* Optional className for the content element
|
|
118
|
+
*/
|
|
119
|
+
className?: string;
|
|
120
|
+
}
|
|
121
|
+
interface NavigationMenuLinkProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link> {
|
|
122
|
+
/**
|
|
123
|
+
* Optional className for the link element
|
|
124
|
+
*/
|
|
125
|
+
className?: string;
|
|
126
|
+
}
|
|
127
|
+
interface NavigationMenuViewportProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> {
|
|
128
|
+
/**
|
|
129
|
+
* Optional className for the viewport element
|
|
130
|
+
*/
|
|
131
|
+
className?: string;
|
|
132
|
+
}
|
|
133
|
+
interface NavigationMenuIndicatorProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> {
|
|
134
|
+
/**
|
|
135
|
+
* Optional className for the indicator element
|
|
136
|
+
*/
|
|
137
|
+
className?: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* NavigationMenu component for creating accessible navigation menus with dropdowns.
|
|
142
|
+
* Built on top of Radix UI's NavigationMenu primitive.
|
|
143
|
+
*
|
|
144
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-navigation-menu--docs
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```tsx
|
|
148
|
+
* <NavigationMenu>
|
|
149
|
+
* <NavigationMenuList>
|
|
150
|
+
* <NavigationMenuItem>
|
|
151
|
+
* <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>
|
|
152
|
+
* <NavigationMenuContent>
|
|
153
|
+
* <ul className="grid gap-3 p-4 md:w-[400px] lg:w-[500px]">
|
|
154
|
+
* <li className="row-span-3">
|
|
155
|
+
* <NavigationMenuLink asChild>
|
|
156
|
+
* <a className="flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md">
|
|
157
|
+
* <div className="mb-2 mt-4 text-lg font-medium">shadcn/ui</div>
|
|
158
|
+
* <p className="text-sm leading-tight text-muted-foreground">
|
|
159
|
+
* Beautifully designed components built with Radix UI and Tailwind CSS.
|
|
160
|
+
* </p>
|
|
161
|
+
* </a>
|
|
162
|
+
* </NavigationMenuLink>
|
|
163
|
+
* </li>
|
|
164
|
+
* </ul>
|
|
165
|
+
* </NavigationMenuContent>
|
|
166
|
+
* </NavigationMenuItem>
|
|
167
|
+
* </NavigationMenuList>
|
|
168
|
+
* </NavigationMenu>
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
declare const NavigationMenu: React$1.ForwardRefExoticComponent<NavigationMenuProps & React$1.RefAttributes<HTMLElement>>;
|
|
172
|
+
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
173
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
174
|
+
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
175
|
+
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
176
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
177
|
+
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
178
|
+
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
179
|
+
|
|
180
|
+
interface RHFTextFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends Omit<React$1.ComponentProps<typeof Input>, "name"> {
|
|
181
|
+
/** The name of the field in the form */
|
|
182
|
+
name: TName;
|
|
183
|
+
/** Optional label for the field */
|
|
184
|
+
label?: string;
|
|
185
|
+
/** Optional description text below the field */
|
|
186
|
+
description?: string;
|
|
187
|
+
/** Optional warning text to display */
|
|
188
|
+
warningText?: string;
|
|
189
|
+
/** Whether the field is required */
|
|
190
|
+
required?: boolean;
|
|
191
|
+
/** Whether the field is disabled */
|
|
192
|
+
disabled?: boolean;
|
|
193
|
+
/** Whether the field is read-only */
|
|
194
|
+
readOnly?: boolean;
|
|
195
|
+
/** The type of input (text, number, email, etc.) */
|
|
196
|
+
type?: React$1.HTMLInputTypeAttribute;
|
|
197
|
+
/** Optional placeholder text */
|
|
198
|
+
placeholder?: string;
|
|
199
|
+
/** Optional aria-label for accessibility */
|
|
200
|
+
"aria-label"?: string;
|
|
201
|
+
/** Optional aria-describedby for accessibility */
|
|
202
|
+
"aria-describedby"?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* A text field component that integrates with React Hook Form.
|
|
207
|
+
* Provides form validation, error handling, and accessibility features.
|
|
208
|
+
*
|
|
209
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextfield--docs
|
|
210
|
+
*
|
|
211
|
+
* * @example
|
|
212
|
+
* ```tsx
|
|
213
|
+
* <Form>
|
|
214
|
+
* <RHFTextField name="name" label="Name" />
|
|
215
|
+
* <RHFTextField name="email" label="Email" />
|
|
216
|
+
* </Form>
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
declare function RHFTextField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, label, description, className, type, warningText, required, disabled, readOnly, placeholder, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, onBlur, ...other }: RHFTextFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
220
|
+
|
|
221
|
+
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
222
|
+
/**
|
|
223
|
+
* Whether the textarea should automatically resize
|
|
224
|
+
*/
|
|
225
|
+
autoResize?: boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Textarea component for creating accessible text areas.
|
|
230
|
+
* Built on top of shadcn/ui's Textarea component.
|
|
231
|
+
*
|
|
232
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-textarea--docs
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* ```tsx
|
|
236
|
+
* <Textarea placeholder="Enter text" />
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
239
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
240
|
+
|
|
241
|
+
interface RHFTextareaProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends Omit<React$1.ComponentProps<typeof Textarea>, "name"> {
|
|
242
|
+
/** The name of the field in the form */
|
|
243
|
+
name: TName;
|
|
244
|
+
/** Optional label for the field */
|
|
245
|
+
label?: string;
|
|
246
|
+
/** Optional description text below the field */
|
|
247
|
+
description?: string;
|
|
248
|
+
/** Optional warning text to display */
|
|
249
|
+
warningText?: string;
|
|
250
|
+
/** Whether the field is required */
|
|
251
|
+
required?: boolean;
|
|
252
|
+
/** Whether the field is disabled */
|
|
253
|
+
disabled?: boolean;
|
|
254
|
+
/** Whether the field is read-only */
|
|
255
|
+
readOnly?: boolean;
|
|
256
|
+
/** Optional placeholder text */
|
|
257
|
+
placeholder?: string;
|
|
258
|
+
/** Optional aria-label for accessibility */
|
|
259
|
+
"aria-label"?: string;
|
|
260
|
+
/** Optional aria-describedby for accessibility */
|
|
261
|
+
"aria-describedby"?: string;
|
|
262
|
+
/** Whether the textarea should automatically resize */
|
|
263
|
+
autoResize?: boolean;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* A textarea component that integrates with React Hook Form.
|
|
268
|
+
* Provides form validation, error handling, and accessibility features.
|
|
269
|
+
*
|
|
270
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextarea--docs
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* ```tsx
|
|
274
|
+
* <Form>
|
|
275
|
+
* <RHFTextarea name="description" label="Description" />
|
|
276
|
+
* </Form>
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
declare function RHFTextarea<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, label, description, className, warningText, required, disabled, readOnly, placeholder, autoResize, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, onBlur, ...other }: RHFTextareaProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
280
|
+
|
|
281
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
282
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
283
|
+
declare const useFormField: () => {
|
|
284
|
+
invalid: boolean;
|
|
285
|
+
isDirty: boolean;
|
|
286
|
+
isTouched: boolean;
|
|
287
|
+
isValidating: boolean;
|
|
288
|
+
error?: react_hook_form.FieldError;
|
|
289
|
+
id: string;
|
|
290
|
+
name: string;
|
|
291
|
+
formItemId: string;
|
|
292
|
+
formDescriptionId: string;
|
|
293
|
+
formMessageId: string;
|
|
294
|
+
};
|
|
295
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
296
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
297
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
298
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
299
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Props interface for the Form component.
|
|
303
|
+
* Extends react-hook-form's FormProvider props.
|
|
304
|
+
*/
|
|
305
|
+
interface FormProps<TFieldValues extends FieldValues = FieldValues> {
|
|
306
|
+
/**
|
|
307
|
+
* The form context value
|
|
308
|
+
*/
|
|
309
|
+
context: React$1.Context<TFieldValues>;
|
|
310
|
+
/**
|
|
311
|
+
* The form children
|
|
312
|
+
*/
|
|
313
|
+
children: React$1.ReactNode;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Props interface for the FormField component.
|
|
317
|
+
* Extends react-hook-form's Controller props.
|
|
318
|
+
*/
|
|
319
|
+
interface FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends ControllerProps<TFieldValues, TName> {
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Props interface for the FormItem component.
|
|
323
|
+
* Extends HTML div attributes.
|
|
324
|
+
*/
|
|
325
|
+
interface FormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Props interface for the FormLabel component.
|
|
329
|
+
* Extends Radix UI Label props.
|
|
330
|
+
*/
|
|
331
|
+
interface FormLabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Props interface for the FormControl component.
|
|
335
|
+
* Extends Radix UI Slot props.
|
|
336
|
+
*/
|
|
337
|
+
interface FormControlProps extends React$1.ComponentPropsWithoutRef<typeof Slot> {
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Props interface for the FormDescription component.
|
|
341
|
+
* Extends HTML paragraph attributes.
|
|
342
|
+
*/
|
|
343
|
+
interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Props interface for the FormMessage component.
|
|
347
|
+
* Extends HTML paragraph attributes.
|
|
348
|
+
*/
|
|
349
|
+
interface FormMessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
350
|
+
/**
|
|
351
|
+
* The message content
|
|
352
|
+
*/
|
|
353
|
+
children?: React$1.ReactNode;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Context value type for form field context
|
|
357
|
+
*/
|
|
358
|
+
type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
359
|
+
name: TName;
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Context value type for form item context
|
|
363
|
+
*/
|
|
364
|
+
type FormItemContextValue = {
|
|
365
|
+
id: string;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldContextValue, type FormFieldProps, FormItem, type FormItemContextValue, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, RHFTextField, RHFTextarea, useFormField };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk7XUAZU77_js=require('../../chunk-7XUAZU77.js');require('../../chunk-OOA3MPNF.js'),require('../../chunk-WCELM33L.js'),require('../../chunk-KITWXTCP.js');Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunk7XUAZU77_js.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunk7XUAZU77_js.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunk7XUAZU77_js.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunk7XUAZU77_js.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunk7XUAZU77_js.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunk7XUAZU77_js.c}});Object.defineProperty(exports,"Form",{enumerable:true,get:function(){return chunk7XUAZU77_js.o}});Object.defineProperty(exports,"FormControl",{enumerable:true,get:function(){return chunk7XUAZU77_js.t}});Object.defineProperty(exports,"FormDescription",{enumerable:true,get:function(){return chunk7XUAZU77_js.u}});Object.defineProperty(exports,"FormField",{enumerable:true,get:function(){return chunk7XUAZU77_js.p}});Object.defineProperty(exports,"FormItem",{enumerable:true,get:function(){return chunk7XUAZU77_js.r}});Object.defineProperty(exports,"FormLabel",{enumerable:true,get:function(){return chunk7XUAZU77_js.s}});Object.defineProperty(exports,"FormMessage",{enumerable:true,get:function(){return chunk7XUAZU77_js.v}});Object.defineProperty(exports,"NavigationMenu",{enumerable:true,get:function(){return chunk7XUAZU77_js.g}});Object.defineProperty(exports,"NavigationMenuContent",{enumerable:true,get:function(){return chunk7XUAZU77_js.k}});Object.defineProperty(exports,"NavigationMenuIndicator",{enumerable:true,get:function(){return chunk7XUAZU77_js.n}});Object.defineProperty(exports,"NavigationMenuItem",{enumerable:true,get:function(){return chunk7XUAZU77_js.i}});Object.defineProperty(exports,"NavigationMenuLink",{enumerable:true,get:function(){return chunk7XUAZU77_js.l}});Object.defineProperty(exports,"NavigationMenuList",{enumerable:true,get:function(){return chunk7XUAZU77_js.h}});Object.defineProperty(exports,"NavigationMenuTrigger",{enumerable:true,get:function(){return chunk7XUAZU77_js.j}});Object.defineProperty(exports,"NavigationMenuViewport",{enumerable:true,get:function(){return chunk7XUAZU77_js.m}});Object.defineProperty(exports,"RHFTextField",{enumerable:true,get:function(){return chunk7XUAZU77_js.w}});Object.defineProperty(exports,"RHFTextarea",{enumerable:true,get:function(){return chunk7XUAZU77_js.x}});Object.defineProperty(exports,"useFormField",{enumerable:true,get:function(){return chunk7XUAZU77_js.q}});//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle,o as Form,t as FormControl,u as FormDescription,p as FormField,r as FormItem,s as FormLabel,v as FormMessage,g as NavigationMenu,k as NavigationMenuContent,n as NavigationMenuIndicator,i as NavigationMenuItem,l as NavigationMenuLink,h as NavigationMenuList,j as NavigationMenuTrigger,m as NavigationMenuViewport,w as RHFTextField,x as RHFTextarea,q as useFormField}from'../../chunk-6T4HWNUP.mjs';import'../../chunk-OXHAHXFJ.mjs';import'../../chunk-6454H4US.mjs';import'../../chunk-OAVWSSYJ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|