@me1a/ui 2.0.12 → 2.0.13

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
package/dist/index.d.ts DELETED
@@ -1,1475 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React$1 from 'react';
3
- import { TextareaHTMLAttributes } from 'react';
4
- import { VariantProps } from 'class-variance-authority';
5
- import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import * as DialogPrimitive from '@radix-ui/react-dialog';
7
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
8
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
9
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
10
- import * as _radix_ui_react_slot from '@radix-ui/react-slot';
11
- import { Slot } from '@radix-ui/react-slot';
12
- import * as react_hook_form from 'react-hook-form';
13
- import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
14
- import * as LabelPrimitive from '@radix-ui/react-label';
15
- import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
16
- import * as vaul from 'vaul';
17
- import { Drawer as Drawer$1 } from 'vaul';
18
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
19
- import { ClassValue } from 'clsx';
20
-
21
- /**
22
- * Props interface for the Button component.
23
- * Extends the native button HTML attributes and adds support for variants and asChild prop.
24
- * Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
25
- *
26
- * @interface ButtonProps
27
- * @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
28
- * @extends {VariantProps<typeof buttonVariants>}
29
- *
30
- * @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
31
- * @property {ButtonVariant} [variant] - The visual style variant of the button.
32
- * @property {ButtonSize} [size] - The size variant of the button.
33
- * @property {string} [className] - Additional CSS classes to apply to the button.
34
- * @property {React.ReactNode} [startIcon] - Icon to display before the button text.
35
- * @property {React.ReactNode} [endIcon] - Icon to display after the button text.
36
- * @property {boolean} [loading] - Whether the button is in a loading state.
37
- * @property {string} [type] - The type of button (button, submit, reset). Defaults to "button".
38
- * @property {string} [aria-label] - Accessible label for the button. Falls back to button text if not provided.
39
- */
40
- interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
41
- asChild?: boolean;
42
- startIcon?: React$1.ReactNode;
43
- endIcon?: React$1.ReactNode;
44
- loading?: boolean;
45
- type?: "button" | "submit" | "reset";
46
- "aria-label"?: string;
47
- }
48
-
49
- /**
50
- * Button variant styles using class-variance-authority.
51
- * Defines the visual styles for different button variants and sizes.
52
- * Follows WCAG 2.1 Level AA guidelines for accessibility.
53
- *
54
- * @example
55
- * ```tsx
56
- * <Button variant="primary" size="lg">Click me</Button>
57
- * ```
58
- */
59
- declare const buttonVariants: (props?: ({
60
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
61
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
62
- } & class_variance_authority_types.ClassProp) | undefined) => string;
63
- /**
64
- * A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
65
- * Built on top of Radix UI's Slot primitive for maximum flexibility.
66
- * Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
67
- *
68
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-button--docs
69
- *
70
- * @component
71
- * @example
72
- * ```tsx
73
- * // Default button
74
- * <Button>Click me</Button>
75
- *
76
- * // Destructive button with small size
77
- * <Button variant="destructive" size="sm">Delete</Button>
78
- *
79
- * // As a link
80
- * <Button variant="link" asChild>
81
- * <a href="/about">About</a>
82
- * </Button>
83
- *
84
- * // With icons
85
- * <Button startIcon={<Icon />}>With Start Icon</Button>
86
- * <Button endIcon={<Icon />}>With End Icon</Button>
87
- *
88
- * // Loading state
89
- * <Button loading>Loading</Button>
90
- * ```
91
- *
92
- * @param {ButtonProps} props - The component props
93
- * @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
94
- * @returns {JSX.Element} A button element
95
- */
96
- declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
97
-
98
- /**
99
- * Props interface for the TextField component.
100
- * Extends the native input HTML attributes and adds support for variants and icons.
101
- *
102
- * @interface TextFieldProps
103
- * @extends {React.InputHTMLAttributes<HTMLInputElement>}
104
- * @extends {VariantProps<typeof textFieldVariants>}
105
- *
106
- * @property {string} [variant] - The visual style variant of the text field.
107
- * @property {string} [size] - The size variant of the text field.
108
- * @property {string} [className] - Additional CSS classes to apply to the text field.
109
- * @property {React.ReactNode} [startIcon] - Icon to display before the input.
110
- * @property {React.ReactNode} [endIcon] - Icon to display after the input.
111
- * @property {boolean} [loading] - Whether the text field is in a loading state.
112
- * @property {string} [error] - Error message to display below the text field.
113
- * @property {string} [label] - Label text for the text field.
114
- * @property {string} [helperText] - Helper text to display below the text field.
115
- */
116
- interface TextFieldProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof textFieldVariants> {
117
- startIcon?: React$1.ReactNode;
118
- endIcon?: React$1.ReactNode;
119
- loading?: boolean;
120
- error?: string;
121
- label?: string;
122
- helperText?: string;
123
- }
124
-
125
- /**
126
- * Text field variant styles using class-variance-authority.
127
- * Defines the visual styles for different text field variants and sizes.
128
- */
129
- declare const textFieldVariants: (props?: ({
130
- variant?: "default" | "error" | null | undefined;
131
- size?: "default" | "sm" | "lg" | null | undefined;
132
- } & class_variance_authority_types.ClassProp) | undefined) => string;
133
- /**
134
- * A versatile text field component that supports multiple variants, sizes, and icons.
135
- * Built on top of shadcn/ui's Input component.
136
- *
137
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-text-field--docs
138
- *
139
- * @component
140
- * @example
141
- * ```tsx
142
- * // Default text field
143
- * <TextField placeholder="Enter text" />
144
- *
145
- * // With icons
146
- * <TextField startIcon={<SearchIcon />} placeholder="Search..." />
147
- * <TextField endIcon={<CalendarIcon />} placeholder="Select date" />
148
- *
149
- * // With loading state
150
- * <TextField loading placeholder="Loading..." />
151
- *
152
- * // With error
153
- * <TextField error="Invalid input" placeholder="Enter text" />
154
- * ```
155
- */
156
- declare const TextField: React$1.ForwardRefExoticComponent<TextFieldProps & React$1.RefAttributes<HTMLInputElement>>;
157
-
158
- interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
159
- /**
160
- * The maximum width of the container.
161
- * - "sm": 640px
162
- * - "md": 768px
163
- * - "lg": 1024px
164
- * - "xl": 1280px
165
- * - "full": 100%
166
- * - false: No max-width (fluid)
167
- *
168
- * @default "lg"
169
- */
170
- maxWidth?: "sm" | "md" | "lg" | "xl" | "full" | false;
171
- /**
172
- * Whether to disable the default horizontal padding.
173
- * When true, removes the default padding (px-4 sm:px-6 lg:px-8).
174
- *
175
- * @default false
176
- */
177
- disablePadding?: boolean;
178
- /**
179
- * Whether to make the container fluid (no max-width).
180
- * When true, the container will expand to fill its parent's width.
181
- *
182
- * @default false
183
- */
184
- fluid?: boolean;
185
- }
186
- declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
187
-
188
- /**
189
- * Box is a fundamental layout component that serves as a building block for other components.
190
- * It's a polymorphic component that can render as different HTML elements while maintaining
191
- * consistent styling and behavior.
192
- *
193
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-box--docs
194
- *
195
- * @example
196
- * ```tsx
197
- * // Basic usage
198
- * <Box>Content</Box>
199
- *
200
- * // As a different element
201
- * <Box as="section">Section content</Box>
202
- *
203
- * // With custom className
204
- * <Box className="bg-primary text-white p-4">Styled content</Box>
205
- *
206
- * // With custom dimensions
207
- * <Box width="100px" height="200px">Fixed size content</Box>
208
- * <Box width="50%" height="auto">Responsive content</Box>
209
- * ```
210
- */
211
-
212
- type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
213
- type DimensionValue = string | number;
214
- interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
215
- /**
216
- * The HTML element to render the Box as.
217
- * This allows for semantic HTML while maintaining consistent styling.
218
- *
219
- * @default "div"
220
- */
221
- as?: BoxComponent;
222
- /**
223
- * The width of the Box component.
224
- * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
225
- */
226
- width?: DimensionValue;
227
- /**
228
- * The height of the Box component.
229
- * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
230
- */
231
- height?: DimensionValue;
232
- }
233
- declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
234
-
235
- /**
236
- * Stack is a layout component that arranges its children in a vertical or horizontal stack
237
- * with consistent spacing between items. It's built on top of Flexbox and provides
238
- * a simple way to create consistent layouts.
239
- *
240
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-stack--docs
241
- *
242
- * @example
243
- * ```tsx
244
- * // Basic vertical stack
245
- * <Stack>
246
- * <div>Item 1</div>
247
- * <div>Item 2</div>
248
- * <div>Item 3</div>
249
- * </Stack>
250
- *
251
- * // Horizontal stack with custom spacing
252
- * <Stack direction="horizontal" spacing="lg">
253
- * <div>Item 1</div>
254
- * <div>Item 2</div>
255
- * </Stack>
256
- *
257
- * // Centered stack with wrapping
258
- * <Stack direction="horizontal" center wrap>
259
- * <div>Item 1</div>
260
- * <div>Item 2</div>
261
- * <div>Item 3</div>
262
- * </Stack>
263
- *
264
- * // Stack with custom alignment
265
- * <Stack align="center" justify="between">
266
- * <div>Left</div>
267
- * <div>Center</div>
268
- * <div>Right</div>
269
- * </Stack>
270
- *
271
- * // Stack with custom dimensions
272
- * <Stack width="100%" height="200px">
273
- * <div>Full width, fixed height stack</div>
274
- * </Stack>
275
- * ```
276
- */
277
-
278
- interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
279
- /**
280
- * The direction in which to stack the items.
281
- * - "vertical": Items are stacked top to bottom
282
- * - "horizontal": Items are stacked left to right
283
- *
284
- * @default "vertical"
285
- */
286
- direction?: "vertical" | "horizontal";
287
- /**
288
- * The spacing between items in the stack.
289
- * - "none": 0px
290
- * - "xs": 0.25rem (4px)
291
- * - "sm": 0.5rem (8px)
292
- * - "md": 1rem (16px)
293
- * - "lg": 1.5rem (24px)
294
- * - "xl": 2rem (32px)
295
- *
296
- * @default "md"
297
- */
298
- spacing?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
299
- /**
300
- * Whether to allow items to wrap to the next line when they don't fit.
301
- * Only applies to horizontal stacks.
302
- *
303
- * @default false
304
- */
305
- wrap?: boolean;
306
- /**
307
- * Whether to center items both horizontally and vertically.
308
- * This is a shorthand for setting both align and justify to "center".
309
- *
310
- * @default false
311
- */
312
- center?: boolean;
313
- /**
314
- * How to justify items along the main axis.
315
- * - "start": Items are packed toward the start
316
- * - "end": Items are packed toward the end
317
- * - "center": Items are centered
318
- * - "between": Items are evenly distributed with first item at start and last at end
319
- * - "around": Items are evenly distributed with equal space around them
320
- * - "evenly": Items are distributed so that the spacing between any two items is equal
321
- *
322
- * @default undefined
323
- */
324
- justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
325
- /**
326
- * How to align items along the cross axis.
327
- * - "start": Items are aligned at the start
328
- * - "end": Items are aligned at the end
329
- * - "center": Items are centered
330
- * - "stretch": Items are stretched to fill the container
331
- * - "baseline": Items are aligned at their baselines
332
- *
333
- * @default undefined
334
- */
335
- align?: "start" | "end" | "center" | "stretch" | "baseline";
336
- /**
337
- * The width of the stack container.
338
- * Can be any valid CSS width value (e.g., "100%", "200px", "50vw").
339
- *
340
- * @default undefined
341
- */
342
- width?: string;
343
- /**
344
- * The height of the stack container.
345
- * Can be any valid CSS height value (e.g., "100%", "200px", "50vh").
346
- *
347
- * @default undefined
348
- */
349
- height?: string;
350
- }
351
- declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
352
-
353
- /**
354
- * Dialog component for creating accessible dialogs with overlay and content.
355
- * Built on top of Radix UI's Dialog primitive.
356
- *
357
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-dialog--docs
358
- *
359
- * @example
360
- * ```tsx
361
- * <Dialog>
362
- * <DialogTrigger>Open Dialog</DialogTrigger>
363
- * <DialogContent>Dialog Content</DialogContent>
364
- * </Dialog>
365
- */
366
- declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
367
- declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
368
- declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
369
- declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
370
- declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
371
- declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
372
- declare const DialogHeader: {
373
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
374
- displayName: string;
375
- };
376
- declare const DialogFooter: {
377
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
378
- displayName: string;
379
- };
380
- declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
381
- declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
382
-
383
- /**
384
- * Input component for creating accessible input fields.
385
- * Built on top of shadcn/ui's Input component.
386
- *
387
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-input--docs
388
- *
389
- */
390
- declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
391
-
392
- /**
393
- * Separator component for creating horizontal or vertical dividers.
394
- * Built on top of Radix UI's Separator primitive.
395
- *
396
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-separator--docs
397
- *
398
- */
399
- declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
400
-
401
- /**
402
- * Sheet component for creating accessible sheets with overlay and content.
403
- * Built on top of Radix UI's Sheet primitive.
404
- *
405
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-sheet--docs
406
- *
407
- * @example
408
- * ```tsx
409
- * <Sheet>
410
- * <SheetTrigger>Open Sheet</SheetTrigger>
411
- * <SheetContent>Sheet Content</SheetContent>
412
- * </Sheet>
413
- */
414
- declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
415
- declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
416
- declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
417
- declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
418
- declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
419
- declare const sheetVariants: (props?: ({
420
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
421
- } & class_variance_authority_types.ClassProp) | undefined) => string;
422
- interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
423
- }
424
- declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
425
- declare const SheetHeader: {
426
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
427
- displayName: string;
428
- };
429
- declare const SheetFooter: {
430
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
431
- displayName: string;
432
- };
433
- declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
434
- declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
435
-
436
- /**
437
- * Skeleton component for creating a loading state.
438
- * Built on top of shadcn/ui's Skeleton component.
439
- *
440
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-skeleton--docs
441
- *
442
- * @example
443
- * ```tsx
444
- * <Skeleton className="w-10 h-10" />
445
- * ```
446
- */
447
- declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
448
-
449
- /**
450
- * Avatar component that displays a user's profile picture or fallback.
451
- * Built on top of Radix UI's Avatar primitive.
452
- *
453
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-avatar--docs
454
- *
455
- * @example
456
- * ```tsx
457
- * <Avatar>
458
- * <AvatarImage src="/path/to/image.jpg" alt="User avatar" />
459
- * <AvatarFallback>JD</AvatarFallback>
460
- * </Avatar>
461
- * ```
462
- */
463
- declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
464
- /**
465
- * AvatarImage component that displays the user's profile picture.
466
- * Falls back to AvatarFallback if the image fails to load.
467
- */
468
- declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
469
- /**
470
- * AvatarFallback component that displays when the image fails to load.
471
- * Typically shows the user's initials or a placeholder icon.
472
- */
473
- declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
474
-
475
- type AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;
476
- type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
477
- type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
478
-
479
- /**
480
- * TooltipProvider component for creating accessible tooltips.
481
- * Built on top of Radix UI's Tooltip primitive.
482
- *
483
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-tooltip--docs
484
- *
485
- * @example
486
- * ```tsx
487
- * <TooltipProvider>
488
- * <Tooltip>
489
- * <TooltipTrigger>Hover me</TooltipTrigger>
490
- * <TooltipContent>Tooltip content</TooltipContent>
491
- * </Tooltip>
492
- * </TooltipProvider>
493
- * ```
494
- */
495
- declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
496
- declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
497
- declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
498
- declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
499
-
500
- declare const badgeVariants: (props?: ({
501
- variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
502
- size?: "default" | "sm" | "lg" | null | undefined;
503
- } & class_variance_authority_types.ClassProp) | undefined) => string;
504
-
505
- interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
506
- /**
507
- * The content to display inside the badge
508
- */
509
- children: React.ReactNode;
510
- /**
511
- * Optional icon to display before the badge content
512
- */
513
- icon?: React.ReactNode;
514
- /**
515
- * Optional icon to display after the badge content
516
- */
517
- iconAfter?: React.ReactNode;
518
- }
519
-
520
- /**
521
- * Badge component for displaying status, counts, or labels.
522
- * Supports various variants, sizes, and optional icons.
523
- *
524
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-badge--docs
525
- *
526
- * @example
527
- * ```tsx
528
- * <Badge variant="success">Active</Badge>
529
- * <Badge variant="warning" icon={<AlertIcon />}>Warning</Badge>
530
- * <Badge variant="info" size="lg" iconAfter={<ArrowIcon />}>New</Badge>
531
- * ```
532
- */
533
- declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
534
-
535
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
536
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
537
- declare const useFormField: () => {
538
- invalid: boolean;
539
- isDirty: boolean;
540
- isTouched: boolean;
541
- isValidating: boolean;
542
- error?: react_hook_form.FieldError;
543
- id: string;
544
- name: string;
545
- formItemId: string;
546
- formDescriptionId: string;
547
- formMessageId: string;
548
- };
549
- declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
550
- declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
551
- declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
552
- declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
553
- declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
554
-
555
- /**
556
- * Props interface for the Form component.
557
- * Extends react-hook-form's FormProvider props.
558
- */
559
- interface FormProps<TFieldValues extends FieldValues = FieldValues> {
560
- /**
561
- * The form context value
562
- */
563
- context: React$1.Context<TFieldValues>;
564
- /**
565
- * The form children
566
- */
567
- children: React$1.ReactNode;
568
- }
569
- /**
570
- * Props interface for the FormField component.
571
- * Extends react-hook-form's Controller props.
572
- */
573
- interface FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends ControllerProps<TFieldValues, TName> {
574
- }
575
- /**
576
- * Props interface for the FormItem component.
577
- * Extends HTML div attributes.
578
- */
579
- interface FormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
580
- }
581
- /**
582
- * Props interface for the FormLabel component.
583
- * Extends Radix UI Label props.
584
- */
585
- interface FormLabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
586
- }
587
- /**
588
- * Props interface for the FormControl component.
589
- * Extends Radix UI Slot props.
590
- */
591
- interface FormControlProps extends React$1.ComponentPropsWithoutRef<typeof Slot> {
592
- }
593
- /**
594
- * Props interface for the FormDescription component.
595
- * Extends HTML paragraph attributes.
596
- */
597
- interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
598
- }
599
- /**
600
- * Props interface for the FormMessage component.
601
- * Extends HTML paragraph attributes.
602
- */
603
- interface FormMessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
604
- /**
605
- * The message content
606
- */
607
- children?: React$1.ReactNode;
608
- }
609
- /**
610
- * Context value type for form field context
611
- */
612
- type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
613
- name: TName;
614
- };
615
- /**
616
- * Context value type for form item context
617
- */
618
- type FormItemContextValue = {
619
- id: string;
620
- };
621
-
622
- declare const typographyVariants: (props?: ({
623
- variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
624
- align?: "center" | "left" | "right" | "justify" | null | undefined;
625
- } & class_variance_authority_types.ClassProp) | undefined) => string;
626
- interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
627
- as?: React$1.ElementType;
628
- }
629
- /**
630
- * Typography component for creating accessible text elements.
631
- * Built on top of shadcn/ui's Typography component.
632
- *
633
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-typography--docs
634
- *
635
- */
636
- declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
637
-
638
- type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
639
- type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
640
-
641
- interface PageLoaderProps$1 {
642
- /**
643
- * Optional className to extend the component's styles
644
- */
645
- className?: string;
646
- /**
647
- * Optional size of the loader (default: "default")
648
- */
649
- size?: "sm" | "default" | "lg";
650
- /**
651
- * Optional text to display below the loader
652
- */
653
- text?: string;
654
- /**
655
- * Optional color of the loader (default: "primary")
656
- */
657
- color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
658
- }
659
- /**
660
- * PageLoader component for displaying a loading indicator.
661
- *
662
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-page-loader--docs
663
- *
664
- */
665
- declare function PageLoader({ className, size, text, color }: PageLoaderProps$1): react_jsx_runtime.JSX.Element;
666
-
667
- interface PageLoaderProps {
668
- /**
669
- * Optional className to extend the component's styles
670
- */
671
- className?: string;
672
- /**
673
- * Optional size of the loader (default: "default")
674
- */
675
- size?: "sm" | "default" | "lg";
676
- /**
677
- * Optional text to display below the loader
678
- */
679
- text?: string;
680
- /**
681
- * Optional color of the loader (default: "primary")
682
- */
683
- color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
684
- }
685
-
686
- /**
687
- * Card is a flexible container component that can be used to group related content and actions.
688
- * It provides a consistent visual style with a subtle border, shadow, and rounded corners.
689
- *
690
- * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs
691
- *
692
- * @example
693
- * ```tsx
694
- * // Basic card
695
- * <Card>
696
- * <CardHeader>
697
- * <CardTitle>Card Title</CardTitle>
698
- * <CardDescription>Card Description</CardDescription>
699
- * </CardHeader>
700
- * <CardContent>
701
- * <p>Card content goes here.</p>
702
- * </CardContent>
703
- * <CardFooter>
704
- * <Button>Action</Button>
705
- * </CardFooter>
706
- * </Card>
707
- *
708
- * // Card with custom styling
709
- * <Card className="bg-primary text-primary-foreground">
710
- * <CardHeader>
711
- * <CardTitle>Custom Styled Card</CardTitle>
712
- * </CardHeader>
713
- * <CardContent>
714
- * <p>This card has custom background and text colors.</p>
715
- * </CardContent>
716
- * </Card>
717
- * ```
718
- */
719
-
720
- /**
721
- * The main card container component.
722
- * Provides the base styling for the card including border, shadow, and rounded corners.
723
- */
724
- declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
725
- /**
726
- * Header section of the card.
727
- * Typically contains the card title and description.
728
- * Includes padding and spacing for consistent layout.
729
- */
730
- declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
731
- /**
732
- * Title component for the card.
733
- * Should be used within CardHeader.
734
- * Provides consistent typography styling for card titles.
735
- */
736
- declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
737
- /**
738
- * Description component for the card.
739
- * Should be used within CardHeader.
740
- * Provides consistent typography styling for card descriptions.
741
- */
742
- declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
743
- /**
744
- * Main content section of the card.
745
- * Includes padding and removes top padding to maintain consistent spacing with the header.
746
- */
747
- declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
748
- /**
749
- * Footer section of the card.
750
- * Typically contains action buttons or additional information.
751
- * Includes padding and removes top padding to maintain consistent spacing with the content.
752
- */
753
- declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
754
-
755
- declare const navigationMenuTriggerStyle: (props?: ({
756
- variant?: "default" | "ghost" | "link" | "mobile" | null | undefined;
757
- } & class_variance_authority_types.ClassProp) | undefined) => string;
758
-
759
- interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
760
- /**
761
- * The content of the navigation menu
762
- */
763
- children: React.ReactNode;
764
- /**
765
- * Optional className for the root element
766
- */
767
- className?: string;
768
- }
769
- interface NavigationMenuListProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> {
770
- /**
771
- * Optional className for the list element
772
- */
773
- className?: string;
774
- }
775
- interface NavigationMenuItemProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item> {
776
- /**
777
- * Optional className for the item element
778
- */
779
- className?: string;
780
- }
781
- interface NavigationMenuTriggerProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>, VariantProps<typeof navigationMenuTriggerStyle> {
782
- /**
783
- * Optional className for the trigger element
784
- */
785
- className?: string;
786
- }
787
- interface NavigationMenuContentProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> {
788
- /**
789
- * Optional className for the content element
790
- */
791
- className?: string;
792
- }
793
- interface NavigationMenuLinkProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link> {
794
- /**
795
- * Optional className for the link element
796
- */
797
- className?: string;
798
- }
799
- interface NavigationMenuViewportProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> {
800
- /**
801
- * Optional className for the viewport element
802
- */
803
- className?: string;
804
- }
805
- interface NavigationMenuIndicatorProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> {
806
- /**
807
- * Optional className for the indicator element
808
- */
809
- className?: string;
810
- }
811
-
812
- /**
813
- * NavigationMenu component for creating accessible navigation menus with dropdowns.
814
- * Built on top of Radix UI's NavigationMenu primitive.
815
- *
816
- * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-navigation-menu--docs
817
- *
818
- * @example
819
- * ```tsx
820
- * <NavigationMenu>
821
- * <NavigationMenuList>
822
- * <NavigationMenuItem>
823
- * <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>
824
- * <NavigationMenuContent>
825
- * <ul className="grid gap-3 p-4 md:w-[400px] lg:w-[500px]">
826
- * <li className="row-span-3">
827
- * <NavigationMenuLink asChild>
828
- * <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">
829
- * <div className="mb-2 mt-4 text-lg font-medium">shadcn/ui</div>
830
- * <p className="text-sm leading-tight text-muted-foreground">
831
- * Beautifully designed components built with Radix UI and Tailwind CSS.
832
- * </p>
833
- * </a>
834
- * </NavigationMenuLink>
835
- * </li>
836
- * </ul>
837
- * </NavigationMenuContent>
838
- * </NavigationMenuItem>
839
- * </NavigationMenuList>
840
- * </NavigationMenu>
841
- * ```
842
- */
843
- declare const NavigationMenu: React$1.ForwardRefExoticComponent<NavigationMenuProps & React$1.RefAttributes<HTMLElement>>;
844
- declare const NavigationMenuList: React$1.ForwardRefExoticComponent<NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>>;
845
- declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
846
- declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
847
- declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
848
- declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
849
- declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>>;
850
- declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
851
-
852
- interface RHFTextFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends Omit<React$1.ComponentProps<typeof Input>, "name"> {
853
- /** The name of the field in the form */
854
- name: TName;
855
- /** Optional label for the field */
856
- label?: string;
857
- /** Optional description text below the field */
858
- description?: string;
859
- /** Optional warning text to display */
860
- warningText?: string;
861
- /** Whether the field is required */
862
- required?: boolean;
863
- /** Whether the field is disabled */
864
- disabled?: boolean;
865
- /** Whether the field is read-only */
866
- readOnly?: boolean;
867
- /** The type of input (text, number, email, etc.) */
868
- type?: React$1.HTMLInputTypeAttribute;
869
- /** Optional placeholder text */
870
- placeholder?: string;
871
- /** Optional aria-label for accessibility */
872
- "aria-label"?: string;
873
- /** Optional aria-describedby for accessibility */
874
- "aria-describedby"?: string;
875
- }
876
-
877
- /**
878
- * A text field component that integrates with React Hook Form.
879
- * Provides form validation, error handling, and accessibility features.
880
- *
881
- * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextfield--docs
882
- *
883
- * * @example
884
- * ```tsx
885
- * <Form>
886
- * <RHFTextField name="name" label="Name" />
887
- * <RHFTextField name="email" label="Email" />
888
- * </Form>
889
- * ```
890
- */
891
- 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;
892
-
893
- interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
894
- /**
895
- * Whether the textarea should automatically resize
896
- */
897
- autoResize?: boolean;
898
- }
899
-
900
- /**
901
- * Textarea component for creating accessible text areas.
902
- * Built on top of shadcn/ui's Textarea component.
903
- *
904
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-textarea--docs
905
- *
906
- * @example
907
- * ```tsx
908
- * <Textarea placeholder="Enter text" />
909
- * ```
910
- */
911
- declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
912
-
913
- interface RHFTextareaProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends Omit<React$1.ComponentProps<typeof Textarea>, "name"> {
914
- /** The name of the field in the form */
915
- name: TName;
916
- /** Optional label for the field */
917
- label?: string;
918
- /** Optional description text below the field */
919
- description?: string;
920
- /** Optional warning text to display */
921
- warningText?: string;
922
- /** Whether the field is required */
923
- required?: boolean;
924
- /** Whether the field is disabled */
925
- disabled?: boolean;
926
- /** Whether the field is read-only */
927
- readOnly?: boolean;
928
- /** Optional placeholder text */
929
- placeholder?: string;
930
- /** Optional aria-label for accessibility */
931
- "aria-label"?: string;
932
- /** Optional aria-describedby for accessibility */
933
- "aria-describedby"?: string;
934
- /** Whether the textarea should automatically resize */
935
- autoResize?: boolean;
936
- }
937
-
938
- /**
939
- * A textarea component that integrates with React Hook Form.
940
- * Provides form validation, error handling, and accessibility features.
941
- *
942
- * @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextarea--docs
943
- *
944
- * @example
945
- * ```tsx
946
- * <Form>
947
- * <RHFTextarea name="description" label="Description" />
948
- * </Form>
949
- * ```
950
- */
951
- 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;
952
-
953
- declare const Drawer: {
954
- ({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
955
- displayName: string;
956
- };
957
- /**
958
- * The trigger element that opens the drawer.
959
- * Should be used with the `asChild` prop to wrap your own trigger element.
960
- */
961
- declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
962
- /**
963
- * Portal component that renders the drawer content outside the DOM hierarchy.
964
- * This ensures proper stacking context and accessibility.
965
- */
966
- declare const DrawerPortal: typeof vaul.Portal;
967
- /**
968
- * Close button component for the drawer.
969
- * Should be used with the `asChild` prop to wrap your own close button.
970
- */
971
- declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
972
- /**
973
- * Overlay component that appears behind the drawer.
974
- * Provides a semi-transparent backdrop and handles click-outside behavior.
975
- */
976
- declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
977
- /**
978
- * The main content container for the drawer.
979
- * Includes the handle bar at the top and manages the slide-up animation.
980
- */
981
- declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
982
- /**
983
- * Header section of the drawer.
984
- * Typically contains the title and description.
985
- */
986
- declare const DrawerHeader: {
987
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
988
- displayName: string;
989
- };
990
- /**
991
- * Footer section of the drawer.
992
- * Typically contains action buttons.
993
- */
994
- declare const DrawerFooter: {
995
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
996
- displayName: string;
997
- };
998
- /**
999
- * Title component for the drawer.
1000
- * Should be used within DrawerHeader.
1001
- */
1002
- declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
1003
- /**
1004
- * Description component for the drawer.
1005
- * Should be used within DrawerHeader.
1006
- */
1007
- declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
1008
-
1009
- type SidebarContextProps$1 = {
1010
- state: "expanded" | "collapsed";
1011
- open: boolean;
1012
- setOpen: (open: boolean) => void;
1013
- openMobile: boolean;
1014
- setOpenMobile: (open: boolean) => void;
1015
- isMobile: boolean;
1016
- toggleSidebar: () => void;
1017
- };
1018
- declare function useSidebar(): SidebarContextProps$1;
1019
- declare const SidebarProvider: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
1020
- defaultOpen?: boolean;
1021
- open?: boolean;
1022
- onOpenChange?: (open: boolean) => void;
1023
- }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1024
- /**
1025
- * A flexible sidebar component that supports various layouts and configurations.
1026
- * The sidebar can be positioned on either side of the screen and supports different
1027
- * visual styles and collapse behaviors.
1028
- *
1029
- * @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-sidebar--docs
1030
- *
1031
- * @example
1032
- * ```tsx
1033
- * <Sidebar>
1034
- * <SidebarHeader>
1035
- * <SidebarTitle>Dashboard</SidebarTitle>
1036
- * </SidebarHeader>
1037
- * <SidebarContent>
1038
- * <SidebarMenu>
1039
- * <SidebarMenuItem icon={<HomeIcon />}>Home</SidebarMenuItem>
1040
- * <SidebarMenuItem icon={<SettingsIcon />}>Settings</SidebarMenuItem>
1041
- * </SidebarMenu>
1042
- * </SidebarContent>
1043
- * <SidebarFooter>
1044
- * <SidebarTrigger />
1045
- * </SidebarFooter>
1046
- * </Sidebar>
1047
- * ```
1048
- */
1049
- declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
1050
- side?: "left" | "right";
1051
- variant?: "sidebar" | "floating" | "inset";
1052
- collapsible?: "offcanvas" | "icon" | "none";
1053
- }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1054
- declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1055
- declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1056
- declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1057
- declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1058
- declare const SidebarHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1059
- declare const SidebarFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1060
- declare const SidebarSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1061
- declare const SidebarContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1062
- declare const SidebarGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1063
- declare const SidebarGroupLabel: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
1064
- asChild?: boolean;
1065
- }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1066
- declare const SidebarGroupAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
1067
- asChild?: boolean;
1068
- }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1069
- declare const SidebarGroupContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1070
- declare const SidebarMenu: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
1071
- declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
1072
- declare const sidebarMenuButtonVariants: (props?: ({
1073
- variant?: "default" | "outline" | null | undefined;
1074
- size?: "default" | "sm" | "lg" | null | undefined;
1075
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1076
- declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
1077
- asChild?: boolean;
1078
- isActive?: boolean;
1079
- tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
1080
- } & VariantProps<(props?: ({
1081
- variant?: "default" | "outline" | null | undefined;
1082
- size?: "default" | "sm" | "lg" | null | undefined;
1083
- } & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1084
- declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
1085
- asChild?: boolean;
1086
- showOnHover?: boolean;
1087
- }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1088
- declare const SidebarMenuBadge: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1089
- declare const SidebarMenuSkeleton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
1090
- showIcon?: boolean;
1091
- }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1092
- declare const SidebarMenuSub: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
1093
- declare const SidebarMenuSubItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
1094
- declare const SidebarMenuSubButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
1095
- asChild?: boolean;
1096
- size?: "sm" | "md";
1097
- isActive?: boolean;
1098
- }, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
1099
-
1100
- type SidebarContextProps = {
1101
- state: "expanded" | "collapsed";
1102
- open: boolean;
1103
- setOpen: (open: boolean) => void;
1104
- openMobile: boolean;
1105
- setOpenMobile: (open: boolean) => void;
1106
- isMobile: boolean;
1107
- toggleSidebar: () => void;
1108
- };
1109
- type SidebarProps = React$1.ComponentProps<"div"> & {
1110
- side?: "left" | "right";
1111
- variant?: "sidebar" | "floating" | "inset";
1112
- collapsible?: "offcanvas" | "icon" | "none";
1113
- };
1114
- type SidebarProviderProps = React$1.ComponentProps<"div"> & {
1115
- defaultOpen?: boolean;
1116
- open?: boolean;
1117
- onOpenChange?: (open: boolean) => void;
1118
- };
1119
- type SidebarMenuButtonProps = React$1.ComponentProps<"button"> & {
1120
- asChild?: boolean;
1121
- isActive?: boolean;
1122
- tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
1123
- } & VariantProps<typeof sidebarMenuButtonVariants>;
1124
- type SidebarMenuActionProps = React$1.ComponentProps<"button"> & {
1125
- asChild?: boolean;
1126
- showOnHover?: boolean;
1127
- };
1128
- type SidebarMenuSubButtonProps = React$1.ComponentProps<"a"> & {
1129
- asChild?: boolean;
1130
- size?: "sm" | "md";
1131
- isActive?: boolean;
1132
- };
1133
- type SidebarMenuSkeletonProps = React$1.ComponentProps<"div"> & {
1134
- showIcon?: boolean;
1135
- };
1136
- type SidebarGroupLabelProps = React$1.ComponentProps<"div"> & {
1137
- asChild?: boolean;
1138
- };
1139
- type SidebarGroupActionProps = React$1.ComponentProps<"button"> & {
1140
- asChild?: boolean;
1141
- };
1142
-
1143
- /**
1144
- * DropdownMenu component for creating accessible dropdown menus.
1145
- * Built on top of Radix UI's DropdownMenu primitive.
1146
- *
1147
- * @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
1148
- *
1149
- * @example
1150
- * ```tsx
1151
- * <DropdownMenu>
1152
- * <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
1153
- * <DropdownMenuContent>
1154
- * <DropdownMenuItem>Item 1</DropdownMenuItem>
1155
- * <DropdownMenuItem>Item 2</DropdownMenuItem>
1156
- * <DropdownMenuItem>Item 3</DropdownMenuItem>
1157
- * </DropdownMenuContent>
1158
- * </DropdownMenu>
1159
- * ```
1160
- */
1161
- declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
1162
- declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
1163
- declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
1164
- declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
1165
- declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
1166
- declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
1167
- declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
1168
- inset?: boolean;
1169
- } & React$1.RefAttributes<HTMLDivElement>>;
1170
- declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1171
- declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1172
- declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
1173
- inset?: boolean;
1174
- } & React$1.RefAttributes<HTMLDivElement>>;
1175
- declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1176
- declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1177
- declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
1178
- inset?: boolean;
1179
- } & React$1.RefAttributes<HTMLDivElement>>;
1180
- declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1181
- declare const DropdownMenuShortcut: {
1182
- ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
1183
- displayName: string;
1184
- };
1185
-
1186
- declare const dropdownMenuTriggerStyle: (props?: ({
1187
- variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
1188
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
1189
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1190
-
1191
- type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
1192
- interface DropdownMenuProps {
1193
- /**
1194
- * The content of the dropdown menu
1195
- */
1196
- children: React.ReactNode;
1197
- /**
1198
- * The open state of the dropdown menu
1199
- */
1200
- open?: boolean;
1201
- /**
1202
- * The default open state of the dropdown menu
1203
- */
1204
- defaultOpen?: boolean;
1205
- /**
1206
- * The controlled open state of the dropdown menu
1207
- */
1208
- onOpenChange?: (open: boolean) => void;
1209
- /**
1210
- * The modal state of the dropdown menu
1211
- */
1212
- modal?: boolean;
1213
- }
1214
- interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, DropdownMenuTriggerVariants {
1215
- /**
1216
- * The content of the trigger
1217
- */
1218
- children: React.ReactNode;
1219
- /**
1220
- * The variant of the trigger
1221
- */
1222
- variant?: DropdownMenuTriggerVariants["variant"];
1223
- /**
1224
- * The size of the trigger
1225
- */
1226
- size?: DropdownMenuTriggerVariants["size"];
1227
- }
1228
- interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
1229
- /**
1230
- * The content of the dropdown menu
1231
- */
1232
- children: React.ReactNode;
1233
- /**
1234
- * The side offset of the dropdown menu
1235
- */
1236
- sideOffset?: number;
1237
- /**
1238
- * The align offset of the dropdown menu
1239
- */
1240
- alignOffset?: number;
1241
- /**
1242
- * The side of the dropdown menu
1243
- */
1244
- side?: "top" | "right" | "bottom" | "left";
1245
- /**
1246
- * The alignment of the dropdown menu
1247
- */
1248
- align?: "start" | "center" | "end";
1249
- /**
1250
- * The collision padding of the dropdown menu
1251
- */
1252
- collisionPadding?: number;
1253
- /**
1254
- * The collision boundary of the dropdown menu
1255
- */
1256
- collisionBoundary?: Element | null | Array<Element | null>;
1257
- /**
1258
- * The arrow padding of the dropdown menu
1259
- */
1260
- arrowPadding?: number;
1261
- /**
1262
- * The sticky state of the dropdown menu
1263
- */
1264
- sticky?: "partial" | "always";
1265
- /**
1266
- * The hide when detached state of the dropdown menu
1267
- */
1268
- hideWhenDetached?: boolean;
1269
- /**
1270
- * The update position strategy of the dropdown menu
1271
- */
1272
- updatePositionStrategy?: "optimized" | "always";
1273
- /**
1274
- * The force mount state of the dropdown menu
1275
- */
1276
- forceMount?: boolean;
1277
- /**
1278
- * The container of the dropdown menu
1279
- */
1280
- container?: HTMLElement;
1281
- }
1282
- interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
1283
- /**
1284
- * The content of the dropdown menu item
1285
- */
1286
- children: React.ReactNode;
1287
- /**
1288
- * The inset state of the dropdown menu item
1289
- */
1290
- inset?: boolean;
1291
- /**
1292
- * The disabled state of the dropdown menu item
1293
- */
1294
- disabled?: boolean;
1295
- /**
1296
- * The selected state of the dropdown menu item
1297
- */
1298
- selected?: boolean;
1299
- }
1300
- interface DropdownMenuCheckboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
1301
- /**
1302
- * The content of the dropdown menu checkbox item
1303
- */
1304
- children: React.ReactNode;
1305
- /**
1306
- * The checked state of the dropdown menu checkbox item
1307
- */
1308
- checked?: boolean;
1309
- /**
1310
- * The disabled state of the dropdown menu checkbox item
1311
- */
1312
- disabled?: boolean;
1313
- /**
1314
- * The on checked change handler of the dropdown menu checkbox item
1315
- */
1316
- onCheckedChange?: (checked: boolean) => void;
1317
- }
1318
- interface DropdownMenuRadioItemProps extends React.HTMLAttributes<HTMLDivElement> {
1319
- /**
1320
- * The content of the dropdown menu radio item
1321
- */
1322
- children: React.ReactNode;
1323
- /**
1324
- * The value of the dropdown menu radio item
1325
- */
1326
- value: string;
1327
- /**
1328
- * The disabled state of the dropdown menu radio item
1329
- */
1330
- disabled?: boolean;
1331
- }
1332
- interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
1333
- /**
1334
- * The content of the dropdown menu label
1335
- */
1336
- children: React.ReactNode;
1337
- /**
1338
- * The inset state of the dropdown menu label
1339
- */
1340
- inset?: boolean;
1341
- }
1342
- interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
1343
- }
1344
- interface DropdownMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
1345
- /**
1346
- * The content of the dropdown menu shortcut
1347
- */
1348
- children: React.ReactNode;
1349
- }
1350
- interface DropdownMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
1351
- /**
1352
- * The content of the dropdown menu group
1353
- */
1354
- children: React.ReactNode;
1355
- }
1356
- interface DropdownMenuPortalProps {
1357
- /**
1358
- * The content of the dropdown menu portal
1359
- */
1360
- children: React.ReactNode;
1361
- /**
1362
- * The container of the dropdown menu portal
1363
- */
1364
- container?: HTMLElement;
1365
- }
1366
- interface DropdownMenuSubProps {
1367
- /**
1368
- * The content of the dropdown menu sub
1369
- */
1370
- children: React.ReactNode;
1371
- /**
1372
- * The open state of the dropdown menu sub
1373
- */
1374
- open?: boolean;
1375
- /**
1376
- * The default open state of the dropdown menu sub
1377
- */
1378
- defaultOpen?: boolean;
1379
- /**
1380
- * The controlled open state of the dropdown menu sub
1381
- */
1382
- onOpenChange?: (open: boolean) => void;
1383
- }
1384
- interface DropdownMenuSubContentProps extends React.HTMLAttributes<HTMLDivElement> {
1385
- /**
1386
- * The content of the dropdown menu sub content
1387
- */
1388
- children: React.ReactNode;
1389
- /**
1390
- * The side offset of the dropdown menu sub content
1391
- */
1392
- sideOffset?: number;
1393
- /**
1394
- * The align offset of the dropdown menu sub content
1395
- */
1396
- alignOffset?: number;
1397
- /**
1398
- * The side of the dropdown menu sub content
1399
- */
1400
- side?: "top" | "right" | "bottom" | "left";
1401
- /**
1402
- * The alignment of the dropdown menu sub content
1403
- */
1404
- align?: "start" | "center" | "end";
1405
- /**
1406
- * The collision padding of the dropdown menu sub content
1407
- */
1408
- collisionPadding?: number;
1409
- /**
1410
- * The collision boundary of the dropdown menu sub content
1411
- */
1412
- collisionBoundary?: Element | null | Array<Element | null>;
1413
- /**
1414
- * The arrow padding of the dropdown menu sub content
1415
- */
1416
- arrowPadding?: number;
1417
- /**
1418
- * The sticky state of the dropdown menu sub content
1419
- */
1420
- sticky?: "partial" | "always";
1421
- /**
1422
- * The hide when detached state of the dropdown menu sub content
1423
- */
1424
- hideWhenDetached?: boolean;
1425
- /**
1426
- * The update position strategy of the dropdown menu sub content
1427
- */
1428
- updatePositionStrategy?: "optimized" | "always";
1429
- /**
1430
- * The force mount state of the dropdown menu sub content
1431
- */
1432
- forceMount?: boolean;
1433
- /**
1434
- * The container of the dropdown menu sub content
1435
- */
1436
- container?: HTMLElement;
1437
- }
1438
- interface DropdownMenuSubTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
1439
- /**
1440
- * The content of the dropdown menu sub trigger
1441
- */
1442
- children: React.ReactNode;
1443
- /**
1444
- * The inset state of the dropdown menu sub trigger
1445
- */
1446
- inset?: boolean;
1447
- /**
1448
- * The disabled state of the dropdown menu sub trigger
1449
- */
1450
- disabled?: boolean;
1451
- }
1452
- interface DropdownMenuRadioGroupProps {
1453
- /**
1454
- * The content of the dropdown menu radio group
1455
- */
1456
- children: React.ReactNode;
1457
- /**
1458
- * The value of the dropdown menu radio group
1459
- */
1460
- value?: string;
1461
- /**
1462
- * The default value of the dropdown menu radio group
1463
- */
1464
- defaultValue?: string;
1465
- /**
1466
- * The controlled value of the dropdown menu radio group
1467
- */
1468
- onValueChange?: (value: string) => void;
1469
- }
1470
-
1471
- declare function useIsMobile(): boolean;
1472
-
1473
- declare function cn(...inputs: ClassValue[]): string;
1474
-
1475
- export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, 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, Input, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, PageLoader, type PageLoaderProps, RHFTextField, RHFTextarea, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, type SidebarGroupActionProps, SidebarGroupContent, SidebarGroupLabel, type SidebarGroupLabelProps, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, type SidebarMenuActionProps, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, type SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Stack, type StackProps, TextField, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, buttonVariants, cn, sidebarMenuButtonVariants, textFieldVariants, typographyVariants, useFormField, useIsMobile, useSidebar };