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