@me1a/ui 2.0.12 → 2.0.14

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.
Files changed (73) hide show
  1. package/dist/chunk-472YNZU2.mjs +2 -0
  2. package/dist/chunk-472YNZU2.mjs.map +1 -0
  3. package/dist/chunk-FWZYVYLU.mjs +2 -0
  4. package/dist/chunk-FWZYVYLU.mjs.map +1 -0
  5. package/dist/chunk-GH5JAZCC.js +2 -0
  6. package/dist/chunk-GH5JAZCC.js.map +1 -0
  7. package/dist/chunk-H3TEQK57.mjs +2 -0
  8. package/dist/chunk-H3TEQK57.mjs.map +1 -0
  9. package/dist/chunk-IPKT3LIP.js +2 -0
  10. package/dist/chunk-IPKT3LIP.js.map +1 -0
  11. package/dist/chunk-KITWXTCP.js +2 -0
  12. package/dist/chunk-KITWXTCP.js.map +1 -0
  13. package/dist/chunk-NCY2ZNET.js +2 -0
  14. package/dist/chunk-NCY2ZNET.js.map +1 -0
  15. package/dist/chunk-OAVWSSYJ.mjs +2 -0
  16. package/dist/chunk-OAVWSSYJ.mjs.map +1 -0
  17. package/dist/chunk-Q6STEQO7.js +2 -0
  18. package/dist/chunk-Q6STEQO7.js.map +1 -0
  19. package/dist/chunk-QY2HB6BB.mjs +2 -0
  20. package/dist/chunk-QY2HB6BB.mjs.map +1 -0
  21. package/dist/chunk-XY7LUWOK.mjs +2 -0
  22. package/dist/chunk-XY7LUWOK.mjs.map +1 -0
  23. package/dist/chunk-ZEUOBWG4.js +2 -0
  24. package/dist/chunk-ZEUOBWG4.js.map +1 -0
  25. package/dist/components/atoms/index.d.mts +483 -0
  26. package/dist/components/atoms/index.d.ts +483 -0
  27. package/dist/components/atoms/index.js +2 -0
  28. package/dist/components/atoms/index.js.map +1 -0
  29. package/dist/components/atoms/index.mjs +2 -0
  30. package/dist/components/atoms/index.mjs.map +1 -0
  31. package/dist/components/molecules/index.d.mts +368 -0
  32. package/dist/components/molecules/index.d.ts +368 -0
  33. package/dist/components/molecules/index.js +2 -0
  34. package/dist/components/molecules/index.js.map +1 -0
  35. package/dist/components/molecules/index.mjs +2 -0
  36. package/dist/components/molecules/index.mjs.map +1 -0
  37. package/dist/components/organisms/index.d.mts +531 -0
  38. package/dist/components/organisms/index.d.ts +531 -0
  39. package/dist/components/organisms/index.js +2 -0
  40. package/dist/components/organisms/index.js.map +1 -0
  41. package/dist/components/organisms/index.mjs +2 -0
  42. package/dist/components/organisms/index.mjs.map +1 -0
  43. package/dist/hooks/index.d.mts +3 -0
  44. package/dist/hooks/index.d.ts +3 -0
  45. package/dist/hooks/index.js +2 -0
  46. package/dist/hooks/index.js.map +1 -0
  47. package/dist/hooks/index.mjs +2 -0
  48. package/dist/hooks/index.mjs.map +1 -0
  49. package/dist/input-TJ_d3ROF.d.mts +12 -0
  50. package/dist/input-TJ_d3ROF.d.ts +12 -0
  51. package/dist/tooltip-Bam0zJCO.d.mts +104 -0
  52. package/dist/tooltip-Bam0zJCO.d.ts +104 -0
  53. package/dist/types/index.d.mts +2 -0
  54. package/dist/types/index.d.ts +2 -0
  55. package/dist/types/index.js +2 -0
  56. package/dist/types/index.js.map +1 -0
  57. package/dist/types/index.mjs +2 -0
  58. package/dist/types/index.mjs.map +1 -0
  59. package/dist/utils/index.d.mts +5 -0
  60. package/dist/utils/index.d.ts +5 -0
  61. package/dist/utils/index.js +2 -0
  62. package/dist/utils/index.js.map +1 -0
  63. package/dist/utils/index.mjs +2 -0
  64. package/dist/utils/index.mjs.map +1 -0
  65. package/package.json +38 -1
  66. package/dist/index.css +0 -2
  67. package/dist/index.css.map +0 -1
  68. package/dist/index.d.mts +0 -1475
  69. package/dist/index.d.ts +0 -1475
  70. package/dist/index.js +0 -2
  71. package/dist/index.js.map +0 -1
  72. package/dist/index.mjs +0 -2
  73. package/dist/index.mjs.map +0 -1
@@ -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
+ * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * // Basic card
23
+ * <Card>
24
+ * <CardHeader>
25
+ * <CardTitle>Card Title</CardTitle>
26
+ * <CardDescription>Card Description</CardDescription>
27
+ * </CardHeader>
28
+ * <CardContent>
29
+ * <p>Card content goes here.</p>
30
+ * </CardContent>
31
+ * <CardFooter>
32
+ * <Button>Action</Button>
33
+ * </CardFooter>
34
+ * </Card>
35
+ *
36
+ * // Card with custom styling
37
+ * <Card className="bg-primary text-primary-foreground">
38
+ * <CardHeader>
39
+ * <CardTitle>Custom Styled Card</CardTitle>
40
+ * </CardHeader>
41
+ * <CardContent>
42
+ * <p>This card has custom background and text colors.</p>
43
+ * </CardContent>
44
+ * </Card>
45
+ * ```
46
+ */
47
+
48
+ /**
49
+ * The main card container component.
50
+ * Provides the base styling for the card including border, shadow, and rounded corners.
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" | "link" | "ghost" | "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 chunkIPKT3LIP_js=require('../../chunk-IPKT3LIP.js'),chunkGH5JAZCC_js=require('../../chunk-GH5JAZCC.js'),chunkKITWXTCP_js=require('../../chunk-KITWXTCP.js'),chunkNCY2ZNET_js=require('../../chunk-NCY2ZNET.js'),p=require('react'),jsxRuntime=require('react/jsx-runtime'),l=require('@radix-ui/react-navigation-menu'),lucideReact=require('lucide-react'),classVarianceAuthority=require('class-variance-authority'),reactHookForm=require('react-hook-form'),reactSlot=require('@radix-ui/react-slot');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var p__namespace=/*#__PURE__*/_interopNamespace(p);var l__namespace=/*#__PURE__*/_interopNamespace(l);var ae=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("rounded-lg border bg-card text-card-foreground shadow-sm",t)},a))});ae.displayName="Card";var oe=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("flex flex-col space-y-1.5 p-6",t)},a))});oe.displayName="CardHeader";var ie=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx("h3",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("text-2xl font-semibold leading-none tracking-tight",t)},a))});ie.displayName="CardTitle";var re=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx("p",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("text-sm text-muted-foreground",t)},a))});re.displayName="CardDescription";var ne=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("p-6 pt-0",t)},a))});ne.displayName="CardContent";var se=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("flex items-center p-6 pt-0",t)},a))});se.displayName="CardFooter";var G=classVarianceAuthority.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{variant:{default:"text-foreground",ghost:"hover:bg-transparent hover:underline",link:"text-primary underline-offset-4 hover:underline",mobile:"w-full justify-between border-b border-border py-4 text-base font-medium"}},defaultVariants:{variant:"default"}});var J=p__namespace.forwardRef((e,n)=>{var i=e,{className:t,children:a}=i,o=chunkNCY2ZNET_js.c(i,["className","children"]);return jsxRuntime.jsxs(l__namespace.Root,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:n,className:chunkKITWXTCP_js.a("relative z-10 flex max-w-max flex-1 items-center justify-center",t)},o),{children:[a,jsxRuntime.jsx(O,{})]}))});J.displayName=l__namespace.Root.displayName;var K=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx(l__namespace.List,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("group flex flex-1 list-none items-center justify-center space-x-1",t)},a))});K.displayName=l__namespace.List.displayName;var de=l__namespace.Item,Q=p__namespace.forwardRef((i,e)=>{var d=i,{className:t,children:a,variant:o}=d,n=chunkNCY2ZNET_js.c(d,["className","children","variant"]);return jsxRuntime.jsxs(l__namespace.Trigger,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:e,className:chunkKITWXTCP_js.a(G({variant:o}),t)},n),{children:[a," ",jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}))});Q.displayName=l__namespace.Trigger.displayName;var U=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx(l__namespace.Content,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",t)},a))});U.displayName=l__namespace.Content.displayName;var ue=l__namespace.Link,O=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx("div",{className:chunkKITWXTCP_js.a("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(l__namespace.Viewport,chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:o},a))})});O.displayName=l__namespace.Viewport.displayName;var X=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);return jsxRuntime.jsx(l__namespace.Indicator,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t)},a),{children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}))});X.displayName=l__namespace.Indicator.displayName;var ge=reactHookForm.FormProvider,Z=p__namespace.createContext({}),D=a=>{var t=chunkNCY2ZNET_js.c(a,[]);return jsxRuntime.jsx(Z.Provider,{value:{name:t.name},children:jsxRuntime.jsx(reactHookForm.Controller,chunkNCY2ZNET_js.a({},t))})},A=()=>{let t=p__namespace.useContext(Z),a=p__namespace.useContext(_),{getFieldState:o,formState:n}=reactHookForm.useFormContext(),e=o(t.name,n);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:i}=a;return chunkNCY2ZNET_js.a({id:i,name:t.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`},e)},_=p__namespace.createContext({}),C=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);let i=p__namespace.useId();return jsxRuntime.jsx(_.Provider,{value:{id:i},children:jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("space-y-2",t)},a))})});C.displayName="FormItem";var L=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);let{error:i,formItemId:d}=A();return jsxRuntime.jsx(chunkIPKT3LIP_js.a,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a(i&&"text-destructive",t),htmlFor:d},a))});L.displayName="FormLabel";var w=p__namespace.forwardRef((o,a)=>{var t=chunkNCY2ZNET_js.c(o,[]);let{error:n,formItemId:e,formDescriptionId:i,formMessageId:d}=A();return jsxRuntime.jsx(reactSlot.Slot,chunkNCY2ZNET_js.a({ref:a,id:e,"aria-describedby":n?`${i} ${d}`:`${i}`,"aria-invalid":!!n},t))});w.displayName="FormControl";var V=p__namespace.forwardRef((n,o)=>{var e=n,{className:t}=e,a=chunkNCY2ZNET_js.c(e,["className"]);let{formDescriptionId:i}=A();return jsxRuntime.jsx("p",chunkNCY2ZNET_js.a({ref:o,id:i,className:chunkKITWXTCP_js.a("text-sm text-muted-foreground",t)},a))});V.displayName="FormDescription";var I=p__namespace.forwardRef((e,n)=>{var i=e,{className:t,children:a}=i,o=chunkNCY2ZNET_js.c(i,["className","children"]);var T;let{error:d,formMessageId:c}=A(),v=d?String((T=d==null?void 0:d.message)!=null?T:""):a;return v?jsxRuntime.jsx("p",chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:n,id:c,className:chunkKITWXTCP_js.a("text-sm font-medium text-destructive",t)},o),{children:v})):null});I.displayName="FormMessage";function Qe(te){var E=te,{name:t,label:a,description:o,className:n,type:e="text",warningText:i,required:d,disabled:c,readOnly:v,placeholder:T,"aria-label":S,"aria-describedby":k,onBlur:x}=E,$=chunkNCY2ZNET_js.c(E,["name","label","description","className","type","warningText","required","disabled","readOnly","placeholder","aria-label","aria-describedby","onBlur"]);let{control:z}=reactHookForm.useFormContext();return jsxRuntime.jsx(D,{name:t,control:z,render:({field:u,fieldState:{error:f}})=>jsxRuntime.jsxs(C,{children:[a&&jsxRuntime.jsxs(L,{children:[a,d&&jsxRuntime.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),jsxRuntime.jsx(w,{children:jsxRuntime.jsx(chunkGH5JAZCC_js.a,chunkNCY2ZNET_js.a(chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({},u),{type:e,value:e==="number"&&u.value===0?"":u.value,onChange:F=>{e==="number"?u.onChange(Number(F.target.value)):u.onChange(F.target.value);},onBlur:F=>{e!=="number"&&typeof u.value=="string"&&u.onChange(u.value.trim()),u.onBlur(),x==null||x(F);},className:chunkKITWXTCP_js.a(f&&"border-destructive focus-visible:ring-destructive",n),disabled:c,readOnly:v,required:d,placeholder:T,"aria-label":S,"aria-describedby":k,"aria-invalid":!!f,"aria-required":d}),$))}),o&&jsxRuntime.jsx(V,{children:o}),f&&jsxRuntime.jsx(I,{children:f.message}),!f&&i&&jsxRuntime.jsx("p",{className:"text-sm text-yellow-600 dark:text-yellow-500",role:"alert",children:i})]})})}var W=p__namespace.forwardRef((e,n)=>{var i=e,{className:t,autoResize:a=false}=i,o=chunkNCY2ZNET_js.c(i,["className","autoResize"]);let d=p__namespace.useRef(null);return p__namespace.useEffect(()=>{if(!a||!d.current)return;let c=d.current,v=()=>{c.style.height="auto",c.style.height=`${c.scrollHeight}px`;};return c.addEventListener("input",v),v(),()=>c.removeEventListener("input",v)},[a]),jsxRuntime.jsx("textarea",chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n},o))});W.displayName="Textarea";function rt(te){var E=te,{name:t,label:a,description:o,className:n,warningText:e,required:i,disabled:d,readOnly:c,placeholder:v,autoResize:T,"aria-label":S,"aria-describedby":k,onBlur:x}=E,$=chunkNCY2ZNET_js.c(E,["name","label","description","className","warningText","required","disabled","readOnly","placeholder","autoResize","aria-label","aria-describedby","onBlur"]);let{control:z}=reactHookForm.useFormContext();return jsxRuntime.jsx(D,{name:t,control:z,render:({field:u,fieldState:{error:f}})=>jsxRuntime.jsxs(C,{children:[a&&jsxRuntime.jsxs(L,{children:[a,i&&jsxRuntime.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),jsxRuntime.jsx(w,{children:jsxRuntime.jsx(W,chunkNCY2ZNET_js.a(chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({},u),{value:u.value,onChange:F=>{u.onChange(F.target.value);},onBlur:F=>{typeof u.value=="string"&&u.onChange(u.value.trim()),u.onBlur(),x==null||x(F);},className:chunkKITWXTCP_js.a(f&&"border-destructive focus-visible:ring-destructive",n),disabled:d,readOnly:c,required:i,placeholder:v,"aria-label":S,"aria-describedby":k,"aria-invalid":!!f,"aria-required":i,autoResize:T}),$))}),o&&jsxRuntime.jsx(V,{children:o}),f&&jsxRuntime.jsx(I,{children:f.message}),!f&&e&&jsxRuntime.jsx("p",{className:"text-sm text-yellow-600 dark:text-yellow-500",role:"alert",children:e})]})})}exports.Card=ae;exports.CardContent=ne;exports.CardDescription=re;exports.CardFooter=se;exports.CardHeader=oe;exports.CardTitle=ie;exports.Form=ge;exports.FormControl=w;exports.FormDescription=V;exports.FormField=D;exports.FormItem=C;exports.FormLabel=L;exports.FormMessage=I;exports.NavigationMenu=J;exports.NavigationMenuContent=U;exports.NavigationMenuIndicator=X;exports.NavigationMenuItem=de;exports.NavigationMenuLink=ue;exports.NavigationMenuList=K;exports.NavigationMenuTrigger=Q;exports.NavigationMenuViewport=O;exports.RHFTextField=Qe;exports.RHFTextarea=rt;exports.useFormField=A;//# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/molecules/card/card.tsx","../../../src/components/molecules/navigation-menu/navigation-menu.variants.ts","../../../src/components/molecules/navigation-menu/navigation-menu.tsx","../../../src/components/molecules/rhf/rhf-text-field/rhf-text-field.tsx","../../../src/components/molecules/rhf/form/form.tsx","../../../src/components/atoms/textarea/textarea.tsx","../../../src/components/molecules/rhf/rhf-textarea/rhf-textarea.tsx"],"names":["Card","R","_a","ref","_b","className","props","__objRest","jsx","__spreadValues","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","navigationMenuTriggerStyle","cva","NavigationMenu","P","children","jsxs","l","__spreadProps","NavigationMenuViewport","NavigationMenuList","NavigationMenuItem","NavigationMenuTrigger","variant","ChevronDown","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator","Form","FormProvider","FormFieldContext","p","FormField","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","body","RHFTextField","name","label","description","type","warningText","required","disabled","readOnly","placeholder","ariaLabel","ariaDescribedby","onBlur","other","control","field","Input","e","Textarea","H","autoResize","internalRef","textarea","resizeTextarea","RHFTextarea"],"mappings":"o5BAwCA,IAAMA,GAAaC,YACjB,CAAA,UAAA,CAAA,CAACC,EAAyBC,CAAK,GAAA,CAA9B,IAAAC,CAAAF,CAAAA,CAAAA,CAAE,WAAAG,CAzCL,CAAA,CAyCGD,EAAgBE,CAAAC,CAAAA,kBAAAA,CAAhBH,CAAgB,CAAA,CAAd,cACD,OAAAI,cAAAA,CAAC,MAAAC,kBAAA,CAAA,CACC,IAAKN,CACL,CAAA,SAAA,CAAWO,mBAAG,0DAA4DL,CAAAA,CAAS,GAC/EC,CACN,CAAA,CAAA,CAEJ,EACAN,EAAK,CAAA,WAAA,CAAc,OAObW,IAAAA,EAAAA,CAAmBV,YACvB,CAAA,UAAA,CAAA,CAACC,EAAyBC,CAAK,GAAA,CAA9B,IAAAC,CAAAF,CAAAA,CAAAA,CAAE,WAAAG,CAzDL,CAAA,CAyDGD,EAAgBE,CAAAC,CAAAA,kBAAAA,CAAhBH,EAAgB,CAAd,WAAA,CAAA,CAAA,CACD,OAAAI,cAAC,CAAA,KAAA,CAAAC,mBAAA,CAAI,GAAA,CAAKN,EAAK,SAAWO,CAAAA,kBAAAA,CAAG,gCAAiCL,CAAS,CAAA,CAAA,CAAOC,EAAO,CAEzF,CAAA,EACAK,GAAW,WAAc,CAAA,YAAA,KAOnBC,EAAkB,CAAAX,YAAA,CAAA,UAAA,CACtB,CAACC,CAAyBC,CAAAA,CAAAA,GAAK,CAA9B,IAAAC,CAAAA,CAAAF,EAAE,CAAAG,SAAAA,CAAAA,CArEL,CAqEGD,CAAAA,CAAAA,CAAgBE,EAAAC,kBAAhBH,CAAAA,CAAAA,CAAgB,CAAd,WACD,CAAA,CAAA,CAAA,OAAAI,eAAC,IAAAC,CAAAA,kBAAAA,CAAA,CACC,GAAKN,CAAAA,CAAAA,CACL,UAAWO,kBAAG,C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ACTwC,CAAAA,CAAAA,EAAS,oDACT7C,CACF,CAAA,CACA,SAAU8D,CACV,CAAA,QAAA,CAAUC,EACV,QAAUF,CAAAA,CAAAA,CACV,WAAaG,CAAAA,CAAAA,CACb,aAAYC,CACZ,CAAA,kBAAA,CAAkBC,EAClB,cAAc,CAAA,CAAC,CAACrB,CAChB,CAAA,eAAA,CAAegB,EACf,UAAYc,CAAAA,CAAAA,CAAAA,CAAAA,CACRP,EACN,CACF,CAAA,CAAA,CACCV,GAAevD,cAACiD,CAAAA,CAAAA,CAAA,CAAiB,QAAAM,CAAAA,CAAAA,CAAY,EAC7Cb,CAAS1C,EAAAA,cAAAA,CAACkD,EAAA,CAAa,QAAA,CAAAR,EAAM,OAAQ,CAAA,CAAA,CACrC,CAACA,CAASe,EAAAA,CAAAA,EACTzD,eAAC,GAAE,CAAA,CAAA,SAAA,CAAU,+CAA+C,IAAK,CAAA,OAAA,CAC9D,SAAAyD,CACH,CAAA,CAAA,CAAA,CAEJ,EAEJ,CAEJ","file":"index.js","sourcesContent":["/**\n * Card is a flexible container component that can be used to group related content and actions.\n * It provides a consistent visual style with a subtle border, shadow, and rounded corners.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs\n *\n * @example\n * ```tsx\n * // Basic card\n * <Card>\n * <CardHeader>\n * <CardTitle>Card Title</CardTitle>\n * <CardDescription>Card Description</CardDescription>\n * </CardHeader>\n * <CardContent>\n * <p>Card content goes here.</p>\n * </CardContent>\n * <CardFooter>\n * <Button>Action</Button>\n * </CardFooter>\n * </Card>\n *\n * // Card with custom styling\n * <Card className=\"bg-primary text-primary-foreground\">\n * <CardHeader>\n * <CardTitle>Custom Styled Card</CardTitle>\n * </CardHeader>\n * <CardContent>\n * <p>This card has custom background and text colors.</p>\n * </CardContent>\n * </Card>\n * ```\n */\nimport * as React from \"react\"\nimport { cn } from \"@/utils\"\n\n/**\n * The main card container component.\n * Provides the base styling for the card including border, shadow, and rounded corners.\n */\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"rounded-lg border bg-card text-card-foreground shadow-sm\", className)}\n {...props}\n />\n )\n)\nCard.displayName = \"Card\"\n\n/**\n * Header section of the card.\n * Typically contains the card title and description.\n * Includes padding and spacing for consistent layout.\n */\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex flex-col space-y-1.5 p-6\", className)} {...props} />\n )\n)\nCardHeader.displayName = \"CardHeader\"\n\n/**\n * Title component for the card.\n * Should be used within CardHeader.\n * Provides consistent typography styling for card titles.\n */\nconst CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\"text-2xl font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = \"CardTitle\"\n\n/**\n * Description component for the card.\n * Should be used within CardHeader.\n * Provides consistent typography styling for card descriptions.\n */\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn(\"text-sm text-muted-foreground\", className)} {...props} />\n))\nCardDescription.displayName = \"CardDescription\"\n\n/**\n * Main content section of the card.\n * Includes padding and removes top padding to maintain consistent spacing with the header.\n */\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n )\n)\nCardContent.displayName = \"CardContent\"\n\n/**\n * Footer section of the card.\n * Typically contains action buttons or additional information.\n * Includes padding and removes top padding to maintain consistent spacing with the content.\n */\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center p-6 pt-0\", className)} {...props} />\n )\n)\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import { cva } from \"class-variance-authority\"\n\nexport const navigationMenuTriggerStyle = cva(\n \"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50\",\n {\n variants: {\n variant: {\n default: \"text-foreground\",\n ghost: \"hover:bg-transparent hover:underline\",\n link: \"text-primary underline-offset-4 hover:underline\",\n mobile: \"w-full justify-between border-b border-border py-4 text-base font-medium\"\n }\n },\n defaultVariants: {\n variant: \"default\"\n }\n }\n)\n","import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { ChevronDown } from \"lucide-react\"\nimport { cn } from \"@/utils/index\"\nimport { navigationMenuTriggerStyle } from \"./navigation-menu.variants\"\nimport type {\n NavigationMenuProps,\n NavigationMenuListProps,\n NavigationMenuItemProps,\n NavigationMenuTriggerProps,\n NavigationMenuContentProps,\n NavigationMenuLinkProps,\n NavigationMenuViewportProps,\n NavigationMenuIndicatorProps\n} from \"./navigation-menu.types\"\n\n/**\n * NavigationMenu component for creating accessible navigation menus with dropdowns.\n * Built on top of Radix UI's NavigationMenu primitive.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-navigation-menu--docs\n *\n * @example\n * ```tsx\n * <NavigationMenu>\n * <NavigationMenuList>\n * <NavigationMenuItem>\n * <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>\n * <NavigationMenuContent>\n * <ul className=\"grid gap-3 p-4 md:w-[400px] lg:w-[500px]\">\n * <li className=\"row-span-3\">\n * <NavigationMenuLink asChild>\n * <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\">\n * <div className=\"mb-2 mt-4 text-lg font-medium\">shadcn/ui</div>\n * <p className=\"text-sm leading-tight text-muted-foreground\">\n * Beautifully designed components built with Radix UI and Tailwind CSS.\n * </p>\n * </a>\n * </NavigationMenuLink>\n * </li>\n * </ul>\n * </NavigationMenuContent>\n * </NavigationMenuItem>\n * </NavigationMenuList>\n * </NavigationMenu>\n * ```\n */\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n NavigationMenuProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\"relative z-10 flex max-w-max flex-1 items-center justify-center\", className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n NavigationMenuListProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\"group flex flex-1 list-none items-center justify-center space-x-1\", className)}\n {...props}\n />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n NavigationMenuTriggerProps\n>(({ className, children, variant, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle({ variant }), className)}\n {...props}\n >\n {children}{\" \"}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n NavigationMenuContentProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto\",\n className\n )}\n {...props}\n />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n NavigationMenuViewportProps\n>(({ className, ...props }, ref) => (\n <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n \"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n))\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n NavigationMenuIndicatorProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport\n}\n","import * as React from \"react\"\nimport { useFormContext, type FieldValues, type FieldPath } from \"react-hook-form\"\nimport { Input } from \"@/components/atoms/input\"\nimport {\n FormControl,\n FormItem,\n FormMessage,\n FormLabel,\n FormDescription,\n FormField\n} from \"@/components/molecules/rhf/form\"\nimport { cn } from \"@/utils/cn\"\nimport { type RHFTextFieldProps } from \"./rhf-text-field.types\"\n\n// ----------------------------------------------------------------------\n\n/**\n * A text field component that integrates with React Hook Form.\n * Provides form validation, error handling, and accessibility features.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextfield--docs\n *\n * * @example\n * ```tsx\n * <Form>\n * <RHFTextField name=\"name\" label=\"Name\" />\n * <RHFTextField name=\"email\" label=\"Email\" />\n * </Form>\n * ```\n */\nexport function RHFTextField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n name,\n label,\n description,\n className,\n type = \"text\",\n warningText,\n required,\n disabled,\n readOnly,\n placeholder,\n \"aria-label\": ariaLabel,\n \"aria-describedby\": ariaDescribedby,\n onBlur,\n ...other\n}: RHFTextFieldProps<TFieldValues, TName>) {\n const { control } = useFormContext<TFieldValues>()\n\n return (\n <FormField\n name={name}\n control={control}\n render={({ field, fieldState: { error } }) => (\n <FormItem>\n {label && (\n <FormLabel>\n {label}\n {required && <span className=\"text-destructive ml-1\">*</span>}\n </FormLabel>\n )}\n <FormControl>\n <Input\n {...field}\n type={type}\n value={type === \"number\" && field.value === 0 ? \"\" : field.value}\n onChange={(e) => {\n if (type === \"number\") {\n field.onChange(Number(e.target.value))\n } else {\n field.onChange(e.target.value)\n }\n }}\n onBlur={(e) => {\n // trim if a string\n if (type !== \"number\" && typeof field.value === \"string\") {\n field.onChange(field.value.trim())\n }\n field.onBlur() // pass to react-hook-form\n onBlur?.(e) // pass to wrapper\n }}\n className={cn(\n error && \"border-destructive focus-visible:ring-destructive\",\n className\n )}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n placeholder={placeholder}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={!!error}\n aria-required={required}\n {...other}\n />\n </FormControl>\n {description && <FormDescription>{description}</FormDescription>}\n {error && <FormMessage>{error.message}</FormMessage>}\n {!error && warningText && (\n <p className=\"text-sm text-yellow-600 dark:text-yellow-500\" role=\"alert\">\n {warningText}\n </p>\n )}\n </FormItem>\n )}\n />\n )\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport {\n Controller,\n FormProvider,\n useFormContext,\n type ControllerProps,\n type FieldPath,\n type FieldValues\n} from \"react-hook-form\"\n\nimport { cn } from \"@/utils/cn\"\nimport { Label } from \"@/components/atoms/label\"\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within <FormField>\")\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue)\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const id = React.useId()\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n )\n }\n)\nFormItem.displayName = \"FormItem\"\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n\n return (\n <Label\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n htmlFor={formItemId}\n {...props}\n />\n )\n})\nFormLabel.displayName = \"FormLabel\"\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n )\n})\nFormControl.displayName = \"FormControl\"\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n )\n})\nFormDescription.displayName = \"FormDescription\"\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const body = error ? String(error?.message ?? \"\") : children\n\n if (!body) {\n return null\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-sm font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n )\n})\nFormMessage.displayName = \"FormMessage\"\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField\n}\n","import * as React from \"react\"\nimport { cn } from \"@/utils/index\"\nimport { TextareaProps } from \"./textarea.types\"\n\n/**\n * Textarea component for creating accessible text areas.\n * Built on top of shadcn/ui's Textarea component.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-textarea--docs\n *\n * @example\n * ```tsx\n * <Textarea placeholder=\"Enter text\" />\n * ```\n */\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, autoResize = false, ...props }, ref) => {\n const internalRef = React.useRef<HTMLTextAreaElement>(null)\n\n React.useEffect(() => {\n if (!autoResize || !internalRef.current) return\n\n const textarea = internalRef.current\n const resizeTextarea = () => {\n textarea.style.height = \"auto\"\n textarea.style.height = `${textarea.scrollHeight}px`\n }\n\n textarea.addEventListener(\"input\", resizeTextarea)\n resizeTextarea() // Initial resize\n\n return () => textarea.removeEventListener(\"input\", resizeTextarea)\n }, [autoResize])\n\n return (\n <textarea\n className={cn(\n \"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n","import * as React from \"react\"\nimport { useFormContext, type FieldValues, type FieldPath } from \"react-hook-form\"\nimport { Textarea } from \"@/components/atoms/textarea\"\nimport {\n FormControl,\n FormItem,\n FormMessage,\n FormLabel,\n FormDescription,\n FormField\n} from \"@/components/molecules/rhf/form\"\nimport { cn } from \"@/utils/cn\"\nimport { type RHFTextareaProps } from \"./rhf-textarea.types\"\n\n// ----------------------------------------------------------------------\n\n/**\n * A textarea component that integrates with React Hook Form.\n * Provides form validation, error handling, and accessibility features.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextarea--docs\n *\n * @example\n * ```tsx\n * <Form>\n * <RHFTextarea name=\"description\" label=\"Description\" />\n * </Form>\n * ```\n */\nexport function RHFTextarea<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n name,\n label,\n description,\n className,\n warningText,\n required,\n disabled,\n readOnly,\n placeholder,\n autoResize,\n \"aria-label\": ariaLabel,\n \"aria-describedby\": ariaDescribedby,\n onBlur,\n ...other\n}: RHFTextareaProps<TFieldValues, TName>) {\n const { control } = useFormContext<TFieldValues>()\n\n return (\n <FormField\n name={name}\n control={control}\n render={({ field, fieldState: { error } }) => (\n <FormItem>\n {label && (\n <FormLabel>\n {label}\n {required && <span className=\"text-destructive ml-1\">*</span>}\n </FormLabel>\n )}\n <FormControl>\n <Textarea\n {...field}\n value={field.value}\n onChange={(e) => {\n field.onChange(e.target.value)\n }}\n onBlur={(e) => {\n // trim if a string\n if (typeof field.value === \"string\") {\n field.onChange(field.value.trim())\n }\n field.onBlur() // pass to react-hook-form\n onBlur?.(e) // pass to wrapper\n }}\n className={cn(\n error && \"border-destructive focus-visible:ring-destructive\",\n className\n )}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n placeholder={placeholder}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={!!error}\n aria-required={required}\n autoResize={autoResize}\n {...other}\n />\n </FormControl>\n {description && <FormDescription>{description}</FormDescription>}\n {error && <FormMessage>{error.message}</FormMessage>}\n {!error && warningText && (\n <p className=\"text-sm text-yellow-600 dark:text-yellow-500\" role=\"alert\">\n {warningText}\n </p>\n )}\n </FormItem>\n )}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$2}from'../../chunk-QY2HB6BB.mjs';import {a as a$3}from'../../chunk-472YNZU2.mjs';import {a as a$1}from'../../chunk-OAVWSSYJ.mjs';import {c,a,b}from'../../chunk-H3TEQK57.mjs';import*as p from'react';import {jsx,jsxs}from'react/jsx-runtime';import*as l from'@radix-ui/react-navigation-menu';import {ChevronDown}from'lucide-react';import {cva}from'class-variance-authority';import {useFormContext,FormProvider,Controller}from'react-hook-form';import {Slot}from'@radix-ui/react-slot';var ae=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx("div",a({ref:o,className:a$1("rounded-lg border bg-card text-card-foreground shadow-sm",t)},a$2))});ae.displayName="Card";var oe=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx("div",a({ref:o,className:a$1("flex flex-col space-y-1.5 p-6",t)},a$2))});oe.displayName="CardHeader";var ie=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx("h3",a({ref:o,className:a$1("text-2xl font-semibold leading-none tracking-tight",t)},a$2))});ie.displayName="CardTitle";var re=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx("p",a({ref:o,className:a$1("text-sm text-muted-foreground",t)},a$2))});re.displayName="CardDescription";var ne=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx("div",a({ref:o,className:a$1("p-6 pt-0",t)},a$2))});ne.displayName="CardContent";var se=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx("div",a({ref:o,className:a$1("flex items-center p-6 pt-0",t)},a$2))});se.displayName="CardFooter";var G=cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{variant:{default:"text-foreground",ghost:"hover:bg-transparent hover:underline",link:"text-primary underline-offset-4 hover:underline",mobile:"w-full justify-between border-b border-border py-4 text-base font-medium"}},defaultVariants:{variant:"default"}});var J=p.forwardRef((e,n)=>{var i=e,{className:t,children:a$2}=i,o=c(i,["className","children"]);return jsxs(l.Root,b(a({ref:n,className:a$1("relative z-10 flex max-w-max flex-1 items-center justify-center",t)},o),{children:[a$2,jsx(O,{})]}))});J.displayName=l.Root.displayName;var K=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx(l.List,a({ref:o,className:a$1("group flex flex-1 list-none items-center justify-center space-x-1",t)},a$2))});K.displayName=l.List.displayName;var de=l.Item,Q=p.forwardRef((i,e)=>{var d=i,{className:t,children:a$2,variant:o}=d,n=c(d,["className","children","variant"]);return jsxs(l.Trigger,b(a({ref:e,className:a$1(G({variant:o}),t)},n),{children:[a$2," ",jsx(ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}))});Q.displayName=l.Trigger.displayName;var U=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx(l.Content,a({ref:o,className:a$1("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",t)},a$2))});U.displayName=l.Content.displayName;var ue=l.Link,O=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx("div",{className:a$1("absolute left-0 top-full flex justify-center"),children:jsx(l.Viewport,a({className:a$1("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:o},a$2))})});O.displayName=l.Viewport.displayName;var X=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);return jsx(l.Indicator,b(a({ref:o,className:a$1("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t)},a$2),{children:jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}))});X.displayName=l.Indicator.displayName;var ge=FormProvider,Z=p.createContext({}),D=a$1=>{var t=c(a$1,[]);return jsx(Z.Provider,{value:{name:t.name},children:jsx(Controller,a({},t))})},A=()=>{let t=p.useContext(Z),a$1=p.useContext(_),{getFieldState:o,formState:n}=useFormContext(),e=o(t.name,n);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:i}=a$1;return a({id:i,name:t.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`},e)},_=p.createContext({}),C=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);let i=p.useId();return jsx(_.Provider,{value:{id:i},children:jsx("div",a({ref:o,className:a$1("space-y-2",t)},a$2))})});C.displayName="FormItem";var L=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$3=c(e,["className"]);let{error:i,formItemId:d}=A();return jsx(a$2,a({ref:o,className:a$1(i&&"text-destructive",t),htmlFor:d},a$3))});L.displayName="FormLabel";var w=p.forwardRef((o,a$1)=>{var t=c(o,[]);let{error:n,formItemId:e,formDescriptionId:i,formMessageId:d}=A();return jsx(Slot,a({ref:a$1,id:e,"aria-describedby":n?`${i} ${d}`:`${i}`,"aria-invalid":!!n},t))});w.displayName="FormControl";var V=p.forwardRef((n,o)=>{var e=n,{className:t}=e,a$2=c(e,["className"]);let{formDescriptionId:i}=A();return jsx("p",a({ref:o,id:i,className:a$1("text-sm text-muted-foreground",t)},a$2))});V.displayName="FormDescription";var I=p.forwardRef((e,n)=>{var i=e,{className:t,children:a$2}=i,o=c(i,["className","children"]);var T;let{error:d,formMessageId:c$1}=A(),v=d?String((T=d==null?void 0:d.message)!=null?T:""):a$2;return v?jsx("p",b(a({ref:n,id:c$1,className:a$1("text-sm font-medium text-destructive",t)},o),{children:v})):null});I.displayName="FormMessage";function Qe(te){var E=te,{name:t,label:a$2,description:o,className:n,type:e="text",warningText:i,required:d,disabled:c$1,readOnly:v,placeholder:T,"aria-label":S,"aria-describedby":k,onBlur:x}=E,$=c(E,["name","label","description","className","type","warningText","required","disabled","readOnly","placeholder","aria-label","aria-describedby","onBlur"]);let{control:z}=useFormContext();return jsx(D,{name:t,control:z,render:({field:u,fieldState:{error:f}})=>jsxs(C,{children:[a$2&&jsxs(L,{children:[a$2,d&&jsx("span",{className:"text-destructive ml-1",children:"*"})]}),jsx(w,{children:jsx(a$3,a(b(a({},u),{type:e,value:e==="number"&&u.value===0?"":u.value,onChange:F=>{e==="number"?u.onChange(Number(F.target.value)):u.onChange(F.target.value);},onBlur:F=>{e!=="number"&&typeof u.value=="string"&&u.onChange(u.value.trim()),u.onBlur(),x==null||x(F);},className:a$1(f&&"border-destructive focus-visible:ring-destructive",n),disabled:c$1,readOnly:v,required:d,placeholder:T,"aria-label":S,"aria-describedby":k,"aria-invalid":!!f,"aria-required":d}),$))}),o&&jsx(V,{children:o}),f&&jsx(I,{children:f.message}),!f&&i&&jsx("p",{className:"text-sm text-yellow-600 dark:text-yellow-500",role:"alert",children:i})]})})}var W=p.forwardRef((e,n)=>{var i=e,{className:t,autoResize:a$2=false}=i,o=c(i,["className","autoResize"]);let d=p.useRef(null);return p.useEffect(()=>{if(!a$2||!d.current)return;let c=d.current,v=()=>{c.style.height="auto",c.style.height=`${c.scrollHeight}px`;};return c.addEventListener("input",v),v(),()=>c.removeEventListener("input",v)},[a$2]),jsx("textarea",a({className:a$1("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n},o))});W.displayName="Textarea";function rt(te){var E=te,{name:t,label:a$2,description:o,className:n,warningText:e,required:i,disabled:d,readOnly:c$1,placeholder:v,autoResize:T,"aria-label":S,"aria-describedby":k,onBlur:x}=E,$=c(E,["name","label","description","className","warningText","required","disabled","readOnly","placeholder","autoResize","aria-label","aria-describedby","onBlur"]);let{control:z}=useFormContext();return jsx(D,{name:t,control:z,render:({field:u,fieldState:{error:f}})=>jsxs(C,{children:[a$2&&jsxs(L,{children:[a$2,i&&jsx("span",{className:"text-destructive ml-1",children:"*"})]}),jsx(w,{children:jsx(W,a(b(a({},u),{value:u.value,onChange:F=>{u.onChange(F.target.value);},onBlur:F=>{typeof u.value=="string"&&u.onChange(u.value.trim()),u.onBlur(),x==null||x(F);},className:a$1(f&&"border-destructive focus-visible:ring-destructive",n),disabled:d,readOnly:c$1,required:i,placeholder:v,"aria-label":S,"aria-describedby":k,"aria-invalid":!!f,"aria-required":i,autoResize:T}),$))}),o&&jsx(V,{children:o}),f&&jsx(I,{children:f.message}),!f&&e&&jsx("p",{className:"text-sm text-yellow-600 dark:text-yellow-500",role:"alert",children:e})]})})}export{ae as Card,ne as CardContent,re as CardDescription,se as CardFooter,oe as CardHeader,ie as CardTitle,ge as Form,w as FormControl,V as FormDescription,D as FormField,C as FormItem,L as FormLabel,I as FormMessage,J as NavigationMenu,U as NavigationMenuContent,X as NavigationMenuIndicator,de as NavigationMenuItem,ue as NavigationMenuLink,K as NavigationMenuList,Q as NavigationMenuTrigger,O as NavigationMenuViewport,Qe as RHFTextField,rt as RHFTextarea,A as useFormField};//# sourceMappingURL=index.mjs.map
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/molecules/card/card.tsx","../../../src/components/molecules/navigation-menu/navigation-menu.variants.ts","../../../src/components/molecules/navigation-menu/navigation-menu.tsx","../../../src/components/molecules/rhf/rhf-text-field/rhf-text-field.tsx","../../../src/components/molecules/rhf/form/form.tsx","../../../src/components/atoms/textarea/textarea.tsx","../../../src/components/molecules/rhf/rhf-textarea/rhf-textarea.tsx"],"names":["Card","R","_a","ref","_b","className","props","__objRest","jsx","__spreadValues","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","navigationMenuTriggerStyle","cva","NavigationMenu","P","children","jsxs","__spreadProps","NavigationMenuViewport","NavigationMenuList","NavigationMenuItem","NavigationMenuTrigger","variant","ChevronDown","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator","Form","FormProvider","FormFieldContext","FormField","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","body","RHFTextField","name","label","description","type","warningText","required","disabled","readOnly","placeholder","ariaLabel","ariaDescribedby","onBlur","other","control","field","Input","e","Textarea","H","autoResize","internalRef","textarea","resizeTextarea","RHFTextarea"],"mappings":"+eAwCA,IAAMA,GAAaC,CACjB,CAAA,UAAA,CAAA,CAACC,EAAyBC,CAAK,GAAA,CAA9B,IAAAC,CAAAF,CAAAA,CAAAA,CAAE,WAAAG,CAzCL,CAAA,CAyCGD,EAAgBE,GAAAC,CAAAA,CAAAA,CAAhBH,CAAgB,CAAA,CAAd,cACD,OAAAI,GAAAA,CAAC,MAAAC,CAAA,CAAA,CACC,IAAKN,CACL,CAAA,SAAA,CAAWO,IAAG,0DAA4DL,CAAAA,CAAS,GAC/EC,GACN,CAAA,CAAA,CAEJ,EACAN,EAAK,CAAA,WAAA,CAAc,OAObW,IAAAA,EAAAA,CAAmBV,CACvB,CAAA,UAAA,CAAA,CAACC,EA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,SAAU,CAAA,uBAAA,CAAwB,aAAC,CACxD,CAAA,CAAA,CAAA,CAEFA,IAAC2C,CAAA,CAAA,CACC,SAAA3C,GAACoE,CAAAA,CAAAA,CAAAnE,EAAAa,CAAAb,CAAAA,CAAAA,CAAA,GACKgE,CADL,CAAA,CAAA,CAEC,KAAOA,CAAAA,CAAAA,CAAM,MACb,QAAWE,CAAAA,CAAAA,EAAM,CACfF,CAAM,CAAA,QAAA,CAASE,EAAE,MAAO,CAAA,KAAK,EAC/B,CACA,CAAA,MAAA,CAASA,GAAM,CAET,OAAOF,EAAM,KAAU,EAAA,QAAA,EACzBA,EAAM,QAASA,CAAAA,CAAAA,CAAM,MAAM,IAAK,EAAC,EAEnCA,CAAM,CAAA,MAAA,GACNH,CAAA,EAAA,IAAA,EAAAA,EAASK,CACX,EAAA,CAAA,CACA,UAAWjE,GACTsC,CAAAA,CAAAA,EAAS,oDACT3C,CACF,CAAA,CACA,SAAU4D,CACV,CAAA,QAAA,CAAUC,IACV,QAAUF,CAAAA,CAAAA,CACV,WAAaG,CAAAA,CAAAA,CACb,aAAYC,CACZ,CAAA,kBAAA,CAAkBC,EAClB,cAAc,CAAA,CAAC,CAACrB,CAChB,CAAA,eAAA,CAAegB,EACf,UAAYc,CAAAA,CAAAA,CAAAA,CAAAA,CACRP,EACN,CACF,CAAA,CAAA,CACCV,GAAerD,GAAC+C,CAAAA,CAAAA,CAAA,CAAiB,QAAAM,CAAAA,CAAAA,CAAY,EAC7Cb,CAASxC,EAAAA,GAAAA,CAACgD,EAAA,CAAa,QAAA,CAAAR,EAAM,OAAQ,CAAA,CAAA,CACrC,CAACA,CAASe,EAAAA,CAAAA,EACTvD,IAAC,GAAE,CAAA,CAAA,SAAA,CAAU,+CAA+C,IAAK,CAAA,OAAA,CAC9D,SAAAuD,CACH,CAAA,CAAA,CAAA,CAEJ,EAEJ,CAEJ","file":"index.mjs","sourcesContent":["/**\n * Card is a flexible container component that can be used to group related content and actions.\n * It provides a consistent visual style with a subtle border, shadow, and rounded corners.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs\n *\n * @example\n * ```tsx\n * // Basic card\n * <Card>\n * <CardHeader>\n * <CardTitle>Card Title</CardTitle>\n * <CardDescription>Card Description</CardDescription>\n * </CardHeader>\n * <CardContent>\n * <p>Card content goes here.</p>\n * </CardContent>\n * <CardFooter>\n * <Button>Action</Button>\n * </CardFooter>\n * </Card>\n *\n * // Card with custom styling\n * <Card className=\"bg-primary text-primary-foreground\">\n * <CardHeader>\n * <CardTitle>Custom Styled Card</CardTitle>\n * </CardHeader>\n * <CardContent>\n * <p>This card has custom background and text colors.</p>\n * </CardContent>\n * </Card>\n * ```\n */\nimport * as React from \"react\"\nimport { cn } from \"@/utils\"\n\n/**\n * The main card container component.\n * Provides the base styling for the card including border, shadow, and rounded corners.\n */\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"rounded-lg border bg-card text-card-foreground shadow-sm\", className)}\n {...props}\n />\n )\n)\nCard.displayName = \"Card\"\n\n/**\n * Header section of the card.\n * Typically contains the card title and description.\n * Includes padding and spacing for consistent layout.\n */\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex flex-col space-y-1.5 p-6\", className)} {...props} />\n )\n)\nCardHeader.displayName = \"CardHeader\"\n\n/**\n * Title component for the card.\n * Should be used within CardHeader.\n * Provides consistent typography styling for card titles.\n */\nconst CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\"text-2xl font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = \"CardTitle\"\n\n/**\n * Description component for the card.\n * Should be used within CardHeader.\n * Provides consistent typography styling for card descriptions.\n */\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn(\"text-sm text-muted-foreground\", className)} {...props} />\n))\nCardDescription.displayName = \"CardDescription\"\n\n/**\n * Main content section of the card.\n * Includes padding and removes top padding to maintain consistent spacing with the header.\n */\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n )\n)\nCardContent.displayName = \"CardContent\"\n\n/**\n * Footer section of the card.\n * Typically contains action buttons or additional information.\n * Includes padding and removes top padding to maintain consistent spacing with the content.\n */\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center p-6 pt-0\", className)} {...props} />\n )\n)\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import { cva } from \"class-variance-authority\"\n\nexport const navigationMenuTriggerStyle = cva(\n \"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50\",\n {\n variants: {\n variant: {\n default: \"text-foreground\",\n ghost: \"hover:bg-transparent hover:underline\",\n link: \"text-primary underline-offset-4 hover:underline\",\n mobile: \"w-full justify-between border-b border-border py-4 text-base font-medium\"\n }\n },\n defaultVariants: {\n variant: \"default\"\n }\n }\n)\n","import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { ChevronDown } from \"lucide-react\"\nimport { cn } from \"@/utils/index\"\nimport { navigationMenuTriggerStyle } from \"./navigation-menu.variants\"\nimport type {\n NavigationMenuProps,\n NavigationMenuListProps,\n NavigationMenuItemProps,\n NavigationMenuTriggerProps,\n NavigationMenuContentProps,\n NavigationMenuLinkProps,\n NavigationMenuViewportProps,\n NavigationMenuIndicatorProps\n} from \"./navigation-menu.types\"\n\n/**\n * NavigationMenu component for creating accessible navigation menus with dropdowns.\n * Built on top of Radix UI's NavigationMenu primitive.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-navigation-menu--docs\n *\n * @example\n * ```tsx\n * <NavigationMenu>\n * <NavigationMenuList>\n * <NavigationMenuItem>\n * <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>\n * <NavigationMenuContent>\n * <ul className=\"grid gap-3 p-4 md:w-[400px] lg:w-[500px]\">\n * <li className=\"row-span-3\">\n * <NavigationMenuLink asChild>\n * <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\">\n * <div className=\"mb-2 mt-4 text-lg font-medium\">shadcn/ui</div>\n * <p className=\"text-sm leading-tight text-muted-foreground\">\n * Beautifully designed components built with Radix UI and Tailwind CSS.\n * </p>\n * </a>\n * </NavigationMenuLink>\n * </li>\n * </ul>\n * </NavigationMenuContent>\n * </NavigationMenuItem>\n * </NavigationMenuList>\n * </NavigationMenu>\n * ```\n */\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n NavigationMenuProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\"relative z-10 flex max-w-max flex-1 items-center justify-center\", className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n NavigationMenuListProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\"group flex flex-1 list-none items-center justify-center space-x-1\", className)}\n {...props}\n />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n NavigationMenuTriggerProps\n>(({ className, children, variant, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle({ variant }), className)}\n {...props}\n >\n {children}{\" \"}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n NavigationMenuContentProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto\",\n className\n )}\n {...props}\n />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n NavigationMenuViewportProps\n>(({ className, ...props }, ref) => (\n <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n \"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n))\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n NavigationMenuIndicatorProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport\n}\n","import * as React from \"react\"\nimport { useFormContext, type FieldValues, type FieldPath } from \"react-hook-form\"\nimport { Input } from \"@/components/atoms/input\"\nimport {\n FormControl,\n FormItem,\n FormMessage,\n FormLabel,\n FormDescription,\n FormField\n} from \"@/components/molecules/rhf/form\"\nimport { cn } from \"@/utils/cn\"\nimport { type RHFTextFieldProps } from \"./rhf-text-field.types\"\n\n// ----------------------------------------------------------------------\n\n/**\n * A text field component that integrates with React Hook Form.\n * Provides form validation, error handling, and accessibility features.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextfield--docs\n *\n * * @example\n * ```tsx\n * <Form>\n * <RHFTextField name=\"name\" label=\"Name\" />\n * <RHFTextField name=\"email\" label=\"Email\" />\n * </Form>\n * ```\n */\nexport function RHFTextField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n name,\n label,\n description,\n className,\n type = \"text\",\n warningText,\n required,\n disabled,\n readOnly,\n placeholder,\n \"aria-label\": ariaLabel,\n \"aria-describedby\": ariaDescribedby,\n onBlur,\n ...other\n}: RHFTextFieldProps<TFieldValues, TName>) {\n const { control } = useFormContext<TFieldValues>()\n\n return (\n <FormField\n name={name}\n control={control}\n render={({ field, fieldState: { error } }) => (\n <FormItem>\n {label && (\n <FormLabel>\n {label}\n {required && <span className=\"text-destructive ml-1\">*</span>}\n </FormLabel>\n )}\n <FormControl>\n <Input\n {...field}\n type={type}\n value={type === \"number\" && field.value === 0 ? \"\" : field.value}\n onChange={(e) => {\n if (type === \"number\") {\n field.onChange(Number(e.target.value))\n } else {\n field.onChange(e.target.value)\n }\n }}\n onBlur={(e) => {\n // trim if a string\n if (type !== \"number\" && typeof field.value === \"string\") {\n field.onChange(field.value.trim())\n }\n field.onBlur() // pass to react-hook-form\n onBlur?.(e) // pass to wrapper\n }}\n className={cn(\n error && \"border-destructive focus-visible:ring-destructive\",\n className\n )}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n placeholder={placeholder}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={!!error}\n aria-required={required}\n {...other}\n />\n </FormControl>\n {description && <FormDescription>{description}</FormDescription>}\n {error && <FormMessage>{error.message}</FormMessage>}\n {!error && warningText && (\n <p className=\"text-sm text-yellow-600 dark:text-yellow-500\" role=\"alert\">\n {warningText}\n </p>\n )}\n </FormItem>\n )}\n />\n )\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport {\n Controller,\n FormProvider,\n useFormContext,\n type ControllerProps,\n type FieldPath,\n type FieldValues\n} from \"react-hook-form\"\n\nimport { cn } from \"@/utils/cn\"\nimport { Label } from \"@/components/atoms/label\"\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within <FormField>\")\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue)\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const id = React.useId()\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n )\n }\n)\nFormItem.displayName = \"FormItem\"\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n\n return (\n <Label\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n htmlFor={formItemId}\n {...props}\n />\n )\n})\nFormLabel.displayName = \"FormLabel\"\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n )\n})\nFormControl.displayName = \"FormControl\"\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n )\n})\nFormDescription.displayName = \"FormDescription\"\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const body = error ? String(error?.message ?? \"\") : children\n\n if (!body) {\n return null\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-sm font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n )\n})\nFormMessage.displayName = \"FormMessage\"\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField\n}\n","import * as React from \"react\"\nimport { cn } from \"@/utils/index\"\nimport { TextareaProps } from \"./textarea.types\"\n\n/**\n * Textarea component for creating accessible text areas.\n * Built on top of shadcn/ui's Textarea component.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-textarea--docs\n *\n * @example\n * ```tsx\n * <Textarea placeholder=\"Enter text\" />\n * ```\n */\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, autoResize = false, ...props }, ref) => {\n const internalRef = React.useRef<HTMLTextAreaElement>(null)\n\n React.useEffect(() => {\n if (!autoResize || !internalRef.current) return\n\n const textarea = internalRef.current\n const resizeTextarea = () => {\n textarea.style.height = \"auto\"\n textarea.style.height = `${textarea.scrollHeight}px`\n }\n\n textarea.addEventListener(\"input\", resizeTextarea)\n resizeTextarea() // Initial resize\n\n return () => textarea.removeEventListener(\"input\", resizeTextarea)\n }, [autoResize])\n\n return (\n <textarea\n className={cn(\n \"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n","import * as React from \"react\"\nimport { useFormContext, type FieldValues, type FieldPath } from \"react-hook-form\"\nimport { Textarea } from \"@/components/atoms/textarea\"\nimport {\n FormControl,\n FormItem,\n FormMessage,\n FormLabel,\n FormDescription,\n FormField\n} from \"@/components/molecules/rhf/form\"\nimport { cn } from \"@/utils/cn\"\nimport { type RHFTextareaProps } from \"./rhf-textarea.types\"\n\n// ----------------------------------------------------------------------\n\n/**\n * A textarea component that integrates with React Hook Form.\n * Provides form validation, error handling, and accessibility features.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextarea--docs\n *\n * @example\n * ```tsx\n * <Form>\n * <RHFTextarea name=\"description\" label=\"Description\" />\n * </Form>\n * ```\n */\nexport function RHFTextarea<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n name,\n label,\n description,\n className,\n warningText,\n required,\n disabled,\n readOnly,\n placeholder,\n autoResize,\n \"aria-label\": ariaLabel,\n \"aria-describedby\": ariaDescribedby,\n onBlur,\n ...other\n}: RHFTextareaProps<TFieldValues, TName>) {\n const { control } = useFormContext<TFieldValues>()\n\n return (\n <FormField\n name={name}\n control={control}\n render={({ field, fieldState: { error } }) => (\n <FormItem>\n {label && (\n <FormLabel>\n {label}\n {required && <span className=\"text-destructive ml-1\">*</span>}\n </FormLabel>\n )}\n <FormControl>\n <Textarea\n {...field}\n value={field.value}\n onChange={(e) => {\n field.onChange(e.target.value)\n }}\n onBlur={(e) => {\n // trim if a string\n if (typeof field.value === \"string\") {\n field.onChange(field.value.trim())\n }\n field.onBlur() // pass to react-hook-form\n onBlur?.(e) // pass to wrapper\n }}\n className={cn(\n error && \"border-destructive focus-visible:ring-destructive\",\n className\n )}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n placeholder={placeholder}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={!!error}\n aria-required={required}\n autoResize={autoResize}\n {...other}\n />\n </FormControl>\n {description && <FormDescription>{description}</FormDescription>}\n {error && <FormMessage>{error.message}</FormMessage>}\n {!error && warningText && (\n <p className=\"text-sm text-yellow-600 dark:text-yellow-500\" role=\"alert\">\n {warningText}\n </p>\n )}\n </FormItem>\n )}\n />\n )\n}\n"]}