@me1a/ui 2.0.14 → 2.0.16

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 (71) hide show
  1. package/dist/index.d.mts +1480 -0
  2. package/dist/index.d.ts +1480 -0
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +2 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +2 -32
  8. package/dist/chunk-472YNZU2.mjs +0 -2
  9. package/dist/chunk-472YNZU2.mjs.map +0 -1
  10. package/dist/chunk-FWZYVYLU.mjs +0 -2
  11. package/dist/chunk-FWZYVYLU.mjs.map +0 -1
  12. package/dist/chunk-GH5JAZCC.js +0 -2
  13. package/dist/chunk-GH5JAZCC.js.map +0 -1
  14. package/dist/chunk-H3TEQK57.mjs +0 -2
  15. package/dist/chunk-H3TEQK57.mjs.map +0 -1
  16. package/dist/chunk-IPKT3LIP.js +0 -2
  17. package/dist/chunk-IPKT3LIP.js.map +0 -1
  18. package/dist/chunk-KITWXTCP.js +0 -2
  19. package/dist/chunk-KITWXTCP.js.map +0 -1
  20. package/dist/chunk-NCY2ZNET.js +0 -2
  21. package/dist/chunk-NCY2ZNET.js.map +0 -1
  22. package/dist/chunk-OAVWSSYJ.mjs +0 -2
  23. package/dist/chunk-OAVWSSYJ.mjs.map +0 -1
  24. package/dist/chunk-Q6STEQO7.js +0 -2
  25. package/dist/chunk-Q6STEQO7.js.map +0 -1
  26. package/dist/chunk-QY2HB6BB.mjs +0 -2
  27. package/dist/chunk-QY2HB6BB.mjs.map +0 -1
  28. package/dist/chunk-XY7LUWOK.mjs +0 -2
  29. package/dist/chunk-XY7LUWOK.mjs.map +0 -1
  30. package/dist/chunk-ZEUOBWG4.js +0 -2
  31. package/dist/chunk-ZEUOBWG4.js.map +0 -1
  32. package/dist/components/atoms/index.d.mts +0 -483
  33. package/dist/components/atoms/index.d.ts +0 -483
  34. package/dist/components/atoms/index.js +0 -2
  35. package/dist/components/atoms/index.js.map +0 -1
  36. package/dist/components/atoms/index.mjs +0 -2
  37. package/dist/components/atoms/index.mjs.map +0 -1
  38. package/dist/components/molecules/index.d.mts +0 -368
  39. package/dist/components/molecules/index.d.ts +0 -368
  40. package/dist/components/molecules/index.js +0 -2
  41. package/dist/components/molecules/index.js.map +0 -1
  42. package/dist/components/molecules/index.mjs +0 -2
  43. package/dist/components/molecules/index.mjs.map +0 -1
  44. package/dist/components/organisms/index.d.mts +0 -531
  45. package/dist/components/organisms/index.d.ts +0 -531
  46. package/dist/components/organisms/index.js +0 -2
  47. package/dist/components/organisms/index.js.map +0 -1
  48. package/dist/components/organisms/index.mjs +0 -2
  49. package/dist/components/organisms/index.mjs.map +0 -1
  50. package/dist/hooks/index.d.mts +0 -3
  51. package/dist/hooks/index.d.ts +0 -3
  52. package/dist/hooks/index.js +0 -2
  53. package/dist/hooks/index.js.map +0 -1
  54. package/dist/hooks/index.mjs +0 -2
  55. package/dist/hooks/index.mjs.map +0 -1
  56. package/dist/input-TJ_d3ROF.d.mts +0 -12
  57. package/dist/input-TJ_d3ROF.d.ts +0 -12
  58. package/dist/tooltip-Bam0zJCO.d.mts +0 -104
  59. package/dist/tooltip-Bam0zJCO.d.ts +0 -104
  60. package/dist/types/index.d.mts +0 -2
  61. package/dist/types/index.d.ts +0 -2
  62. package/dist/types/index.js +0 -2
  63. package/dist/types/index.js.map +0 -1
  64. package/dist/types/index.mjs +0 -2
  65. package/dist/types/index.mjs.map +0 -1
  66. package/dist/utils/index.d.mts +0 -5
  67. package/dist/utils/index.d.ts +0 -5
  68. package/dist/utils/index.js +0 -2
  69. package/dist/utils/index.js.map +0 -1
  70. package/dist/utils/index.mjs +0 -2
  71. package/dist/utils/index.mjs.map +0 -1
@@ -1,483 +0,0 @@
1
- export { a as Button, B as ButtonProps, c as Tooltip, T as TooltipContent, e as TooltipProvider, d as TooltipTrigger, b as buttonVariants } from '../../tooltip-Bam0zJCO.js';
2
- import * as class_variance_authority_types from 'class-variance-authority/types';
3
- import * as React$1 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
- export { I as Input } from '../../input-TJ_d3ROF.js';
8
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
9
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
10
- import '@radix-ui/react-tooltip';
11
-
12
- /**
13
- * Props interface for the TextField component.
14
- * Extends the native input HTML attributes and adds support for variants and icons.
15
- *
16
- * @interface TextFieldProps
17
- * @extends {React.InputHTMLAttributes<HTMLInputElement>}
18
- * @extends {VariantProps<typeof textFieldVariants>}
19
- *
20
- * @property {string} [variant] - The visual style variant of the text field.
21
- * @property {string} [size] - The size variant of the text field.
22
- * @property {string} [className] - Additional CSS classes to apply to the text field.
23
- * @property {React.ReactNode} [startIcon] - Icon to display before the input.
24
- * @property {React.ReactNode} [endIcon] - Icon to display after the input.
25
- * @property {boolean} [loading] - Whether the text field is in a loading state.
26
- * @property {string} [error] - Error message to display below the text field.
27
- * @property {string} [label] - Label text for the text field.
28
- * @property {string} [helperText] - Helper text to display below the text field.
29
- */
30
- interface TextFieldProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof textFieldVariants> {
31
- startIcon?: React$1.ReactNode;
32
- endIcon?: React$1.ReactNode;
33
- loading?: boolean;
34
- error?: string;
35
- label?: string;
36
- helperText?: string;
37
- }
38
-
39
- /**
40
- * Text field variant styles using class-variance-authority.
41
- * Defines the visual styles for different text field variants and sizes.
42
- */
43
- declare const textFieldVariants: (props?: ({
44
- variant?: "default" | "error" | null | undefined;
45
- size?: "default" | "sm" | "lg" | null | undefined;
46
- } & class_variance_authority_types.ClassProp) | undefined) => string;
47
- /**
48
- * A versatile text field component that supports multiple variants, sizes, and icons.
49
- * Built on top of shadcn/ui's Input component.
50
- *
51
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-text-field--docs
52
- *
53
- * @component
54
- * @example
55
- * ```tsx
56
- * // Default text field
57
- * <TextField placeholder="Enter text" />
58
- *
59
- * // With icons
60
- * <TextField startIcon={<SearchIcon />} placeholder="Search..." />
61
- * <TextField endIcon={<CalendarIcon />} placeholder="Select date" />
62
- *
63
- * // With loading state
64
- * <TextField loading placeholder="Loading..." />
65
- *
66
- * // With error
67
- * <TextField error="Invalid input" placeholder="Enter text" />
68
- * ```
69
- */
70
- declare const TextField: React$1.ForwardRefExoticComponent<TextFieldProps & React$1.RefAttributes<HTMLInputElement>>;
71
-
72
- interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
73
- /**
74
- * The maximum width of the container.
75
- * - "sm": 640px
76
- * - "md": 768px
77
- * - "lg": 1024px
78
- * - "xl": 1280px
79
- * - "full": 100%
80
- * - false: No max-width (fluid)
81
- *
82
- * @default "lg"
83
- */
84
- maxWidth?: "sm" | "md" | "lg" | "xl" | "full" | false;
85
- /**
86
- * Whether to disable the default horizontal padding.
87
- * When true, removes the default padding (px-4 sm:px-6 lg:px-8).
88
- *
89
- * @default false
90
- */
91
- disablePadding?: boolean;
92
- /**
93
- * Whether to make the container fluid (no max-width).
94
- * When true, the container will expand to fill its parent's width.
95
- *
96
- * @default false
97
- */
98
- fluid?: boolean;
99
- }
100
- declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
101
-
102
- /**
103
- * Box is a fundamental layout component that serves as a building block for other components.
104
- * It's a polymorphic component that can render as different HTML elements while maintaining
105
- * consistent styling and behavior.
106
- *
107
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-box--docs
108
- *
109
- * @example
110
- * ```tsx
111
- * // Basic usage
112
- * <Box>Content</Box>
113
- *
114
- * // As a different element
115
- * <Box as="section">Section content</Box>
116
- *
117
- * // With custom className
118
- * <Box className="bg-primary text-white p-4">Styled content</Box>
119
- *
120
- * // With custom dimensions
121
- * <Box width="100px" height="200px">Fixed size content</Box>
122
- * <Box width="50%" height="auto">Responsive content</Box>
123
- * ```
124
- */
125
-
126
- type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
127
- type DimensionValue = string | number;
128
- interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
129
- /**
130
- * The HTML element to render the Box as.
131
- * This allows for semantic HTML while maintaining consistent styling.
132
- *
133
- * @default "div"
134
- */
135
- as?: BoxComponent;
136
- /**
137
- * The width of the Box component.
138
- * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
139
- */
140
- width?: DimensionValue;
141
- /**
142
- * The height of the Box component.
143
- * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
144
- */
145
- height?: DimensionValue;
146
- }
147
- declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
148
-
149
- /**
150
- * Stack is a layout component that arranges its children in a vertical or horizontal stack
151
- * with consistent spacing between items. It's built on top of Flexbox and provides
152
- * a simple way to create consistent layouts.
153
- *
154
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-stack--docs
155
- *
156
- * @example
157
- * ```tsx
158
- * // Basic vertical stack
159
- * <Stack>
160
- * <div>Item 1</div>
161
- * <div>Item 2</div>
162
- * <div>Item 3</div>
163
- * </Stack>
164
- *
165
- * // Horizontal stack with custom spacing
166
- * <Stack direction="horizontal" spacing="lg">
167
- * <div>Item 1</div>
168
- * <div>Item 2</div>
169
- * </Stack>
170
- *
171
- * // Centered stack with wrapping
172
- * <Stack direction="horizontal" center wrap>
173
- * <div>Item 1</div>
174
- * <div>Item 2</div>
175
- * <div>Item 3</div>
176
- * </Stack>
177
- *
178
- * // Stack with custom alignment
179
- * <Stack align="center" justify="between">
180
- * <div>Left</div>
181
- * <div>Center</div>
182
- * <div>Right</div>
183
- * </Stack>
184
- *
185
- * // Stack with custom dimensions
186
- * <Stack width="100%" height="200px">
187
- * <div>Full width, fixed height stack</div>
188
- * </Stack>
189
- * ```
190
- */
191
-
192
- interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
193
- /**
194
- * The direction in which to stack the items.
195
- * - "vertical": Items are stacked top to bottom
196
- * - "horizontal": Items are stacked left to right
197
- *
198
- * @default "vertical"
199
- */
200
- direction?: "vertical" | "horizontal";
201
- /**
202
- * The spacing between items in the stack.
203
- * - "none": 0px
204
- * - "xs": 0.25rem (4px)
205
- * - "sm": 0.5rem (8px)
206
- * - "md": 1rem (16px)
207
- * - "lg": 1.5rem (24px)
208
- * - "xl": 2rem (32px)
209
- *
210
- * @default "md"
211
- */
212
- spacing?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
213
- /**
214
- * Whether to allow items to wrap to the next line when they don't fit.
215
- * Only applies to horizontal stacks.
216
- *
217
- * @default false
218
- */
219
- wrap?: boolean;
220
- /**
221
- * Whether to center items both horizontally and vertically.
222
- * This is a shorthand for setting both align and justify to "center".
223
- *
224
- * @default false
225
- */
226
- center?: boolean;
227
- /**
228
- * How to justify items along the main axis.
229
- * - "start": Items are packed toward the start
230
- * - "end": Items are packed toward the end
231
- * - "center": Items are centered
232
- * - "between": Items are evenly distributed with first item at start and last at end
233
- * - "around": Items are evenly distributed with equal space around them
234
- * - "evenly": Items are distributed so that the spacing between any two items is equal
235
- *
236
- * @default undefined
237
- */
238
- justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
239
- /**
240
- * How to align items along the cross axis.
241
- * - "start": Items are aligned at the start
242
- * - "end": Items are aligned at the end
243
- * - "center": Items are centered
244
- * - "stretch": Items are stretched to fill the container
245
- * - "baseline": Items are aligned at their baselines
246
- *
247
- * @default undefined
248
- */
249
- align?: "start" | "end" | "center" | "stretch" | "baseline";
250
- /**
251
- * The width of the stack container.
252
- * Can be any valid CSS width value (e.g., "100%", "200px", "50vw").
253
- *
254
- * @default undefined
255
- */
256
- width?: string;
257
- /**
258
- * The height of the stack container.
259
- * Can be any valid CSS height value (e.g., "100%", "200px", "50vh").
260
- *
261
- * @default undefined
262
- */
263
- height?: string;
264
- }
265
- declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
266
-
267
- /**
268
- * Dialog component for creating accessible dialogs with overlay and content.
269
- * Built on top of Radix UI's Dialog primitive.
270
- *
271
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-dialog--docs
272
- *
273
- * @example
274
- * ```tsx
275
- * <Dialog>
276
- * <DialogTrigger>Open Dialog</DialogTrigger>
277
- * <DialogContent>Dialog Content</DialogContent>
278
- * </Dialog>
279
- */
280
- declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
281
- declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
282
- declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
283
- declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
284
- declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
285
- declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
286
- declare const DialogHeader: {
287
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
288
- displayName: string;
289
- };
290
- declare const DialogFooter: {
291
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
292
- displayName: string;
293
- };
294
- declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
295
- declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
296
-
297
- /**
298
- * Separator component for creating horizontal or vertical dividers.
299
- * Built on top of Radix UI's Separator primitive.
300
- *
301
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-separator--docs
302
- *
303
- */
304
- declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
305
-
306
- /**
307
- * Sheet component for creating accessible sheets with overlay and content.
308
- * Built on top of Radix UI's Sheet primitive.
309
- *
310
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-sheet--docs
311
- *
312
- * @example
313
- * ```tsx
314
- * <Sheet>
315
- * <SheetTrigger>Open Sheet</SheetTrigger>
316
- * <SheetContent>Sheet Content</SheetContent>
317
- * </Sheet>
318
- */
319
- declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
320
- declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
321
- declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
322
- declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
323
- declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
324
- declare const sheetVariants: (props?: ({
325
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
326
- } & class_variance_authority_types.ClassProp) | undefined) => string;
327
- interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
328
- }
329
- declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
330
- declare const SheetHeader: {
331
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
332
- displayName: string;
333
- };
334
- declare const SheetFooter: {
335
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
336
- displayName: string;
337
- };
338
- declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
339
- declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
340
-
341
- /**
342
- * Skeleton component for creating a loading state.
343
- * Built on top of shadcn/ui's Skeleton component.
344
- *
345
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-skeleton--docs
346
- *
347
- * @example
348
- * ```tsx
349
- * <Skeleton className="w-10 h-10" />
350
- * ```
351
- */
352
- declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
353
-
354
- /**
355
- * Avatar component that displays a user's profile picture or fallback.
356
- * Built on top of Radix UI's Avatar primitive.
357
- *
358
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-avatar--docs
359
- *
360
- * @example
361
- * ```tsx
362
- * <Avatar>
363
- * <AvatarImage src="/path/to/image.jpg" alt="User avatar" />
364
- * <AvatarFallback>JD</AvatarFallback>
365
- * </Avatar>
366
- * ```
367
- */
368
- declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
369
- /**
370
- * AvatarImage component that displays the user's profile picture.
371
- * Falls back to AvatarFallback if the image fails to load.
372
- */
373
- declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
374
- /**
375
- * AvatarFallback component that displays when the image fails to load.
376
- * Typically shows the user's initials or a placeholder icon.
377
- */
378
- declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
379
-
380
- type AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;
381
- type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
382
- type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
383
-
384
- declare const badgeVariants: (props?: ({
385
- variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
386
- size?: "default" | "sm" | "lg" | null | undefined;
387
- } & class_variance_authority_types.ClassProp) | undefined) => string;
388
-
389
- interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
390
- /**
391
- * The content to display inside the badge
392
- */
393
- children: React.ReactNode;
394
- /**
395
- * Optional icon to display before the badge content
396
- */
397
- icon?: React.ReactNode;
398
- /**
399
- * Optional icon to display after the badge content
400
- */
401
- iconAfter?: React.ReactNode;
402
- }
403
-
404
- /**
405
- * Badge component for displaying status, counts, or labels.
406
- * Supports various variants, sizes, and optional icons.
407
- *
408
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-badge--docs
409
- *
410
- * @example
411
- * ```tsx
412
- * <Badge variant="success">Active</Badge>
413
- * <Badge variant="warning" icon={<AlertIcon />}>Warning</Badge>
414
- * <Badge variant="info" size="lg" iconAfter={<ArrowIcon />}>New</Badge>
415
- * ```
416
- */
417
- declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
418
-
419
- declare const typographyVariants: (props?: ({
420
- variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
421
- align?: "center" | "left" | "right" | "justify" | null | undefined;
422
- } & class_variance_authority_types.ClassProp) | undefined) => string;
423
- interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
424
- as?: React$1.ElementType;
425
- }
426
- /**
427
- * Typography component for creating accessible text elements.
428
- * Built on top of shadcn/ui's Typography component.
429
- *
430
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-typography--docs
431
- *
432
- */
433
- declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
434
-
435
- type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
436
- type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
437
-
438
- interface PageLoaderProps$1 {
439
- /**
440
- * Optional className to extend the component's styles
441
- */
442
- className?: string;
443
- /**
444
- * Optional size of the loader (default: "default")
445
- */
446
- size?: "sm" | "default" | "lg";
447
- /**
448
- * Optional text to display below the loader
449
- */
450
- text?: string;
451
- /**
452
- * Optional color of the loader (default: "primary")
453
- */
454
- color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
455
- }
456
- /**
457
- * PageLoader component for displaying a loading indicator.
458
- *
459
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-page-loader--docs
460
- *
461
- */
462
- declare function PageLoader({ className, size, text, color }: PageLoaderProps$1): react_jsx_runtime.JSX.Element;
463
-
464
- interface PageLoaderProps {
465
- /**
466
- * Optional className to extend the component's styles
467
- */
468
- className?: string;
469
- /**
470
- * Optional size of the loader (default: "default")
471
- */
472
- size?: "sm" | "default" | "lg";
473
- /**
474
- * Optional text to display below the loader
475
- */
476
- text?: string;
477
- /**
478
- * Optional color of the loader (default: "primary")
479
- */
480
- color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
481
- }
482
-
483
- export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, PageLoader, type PageLoaderProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Stack, type StackProps, TextField, type TextFieldProps, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, typographyVariants };
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkIPKT3LIP_js=require('../../chunk-IPKT3LIP.js'),chunkZEUOBWG4_js=require('../../chunk-ZEUOBWG4.js'),chunkGH5JAZCC_js=require('../../chunk-GH5JAZCC.js'),chunkKITWXTCP_js=require('../../chunk-KITWXTCP.js'),chunkNCY2ZNET_js=require('../../chunk-NCY2ZNET.js'),y=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime'),m=require('@radix-ui/react-dialog'),f=require('@radix-ui/react-avatar');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var y__namespace=/*#__PURE__*/_interopNamespace(y);var m__namespace=/*#__PURE__*/_interopNamespace(m);var f__namespace=/*#__PURE__*/_interopNamespace(f);var K=classVarianceAuthority.cva("w-full",{variants:{variant:{default:"",error:"border-destructive focus-visible:ring-destructive"},size:{default:"h-10",sm:"h-8 text-xs",lg:"h-12 text-base"}},defaultVariants:{variant:"default",size:"default"}}),E=y__namespace.forwardRef((X,D)=>{var u=X,{className:o,variant:t,size:e,startIcon:r,endIcon:a,loading:l=false,error:d,label:p,helperText:c,disabled:g}=u,h=chunkNCY2ZNET_js.c(u,["className","variant","size","startIcon","endIcon","loading","error","label","helperText","disabled"]);let A=y__namespace.useId();return jsxRuntime.jsxs("div",{className:"w-full space-y-2",children:[p&&jsxRuntime.jsx(chunkIPKT3LIP_js.a,{htmlFor:A,children:p}),jsxRuntime.jsxs("div",{className:"relative",children:[r&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:r}),jsxRuntime.jsx(chunkGH5JAZCC_js.a,chunkNCY2ZNET_js.a({id:A,className:chunkKITWXTCP_js.a(K({variant:d?"error":t,size:e,className:o}),r&&"pl-9",(a||l)&&"pr-9"),ref:D,disabled:g||l},h)),(a||l)&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:l?jsxRuntime.jsx(lucideReact.Loader2,{className:"h-4 w-4 animate-spin"}):a})]}),(d||c)&&jsxRuntime.jsx("p",{className:chunkKITWXTCP_js.a("text-sm",d?"text-destructive":"text-muted-foreground"),children:d||c})]})});E.displayName="TextField";var Q=y__namespace.forwardRef((d,l)=>{var p=d,{className:o,maxWidth:t="lg",disablePadding:e=false,fluid:r=false}=p,a=chunkNCY2ZNET_js.c(p,["className","maxWidth","disablePadding","fluid"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:l,className:chunkKITWXTCP_js.a("mx-auto w-full",!e&&"px-4 sm:px-6 lg:px-8",!r&&{"max-w-screen-sm":t==="sm","max-w-screen-md":t==="md","max-w-screen-lg":t==="lg","max-w-screen-xl":t==="xl","max-w-full":t==="full"},o)},a))});Q.displayName="Container";var Y=y__namespace.forwardRef((p,d)=>{var c=p,{as:o="div",className:t,width:e,height:r,style:a}=c,l=chunkNCY2ZNET_js.c(c,["as","className","width","height","style"]);let g=chunkNCY2ZNET_js.a({width:typeof e=="number"?`${e}px`:e,height:typeof r=="number"?`${r}px`:r},a);return jsxRuntime.jsx(o,chunkNCY2ZNET_js.a({ref:d,className:chunkKITWXTCP_js.a(t),style:g},l))});Y.displayName="Box";var _=y__namespace.forwardRef((X,D)=>{var u=X,{className:o,direction:t="vertical",spacing:e="md",wrap:r=false,center:a=false,justify:l,align:d,width:p,height:c,style:g}=u,h=chunkNCY2ZNET_js.c(u,["className","direction","spacing","wrap","center","justify","align","width","height","style"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:D,className:chunkKITWXTCP_js.a("flex",t==="vertical"?"flex-col":"flex-row",{"gap-0":e==="none","gap-1":e==="xs","gap-2":e==="sm","gap-4":e==="md","gap-6":e==="lg","gap-8":e==="xl"},r&&"flex-wrap",a&&"items-center justify-center",l&&{"justify-start":l==="start","justify-end":l==="end","justify-center":l==="center","justify-between":l==="between","justify-around":l==="around","justify-evenly":l==="evenly"},d&&{"items-start":d==="start","items-end":d==="end","items-center":d==="center","items-stretch":d==="stretch","items-baseline":d==="baseline"},o),style:chunkNCY2ZNET_js.a({width:p,height:c},g)},h))});_.displayName="Stack";var rt=m__namespace.Root,ot=m__namespace.Trigger,te=m__namespace.Portal,it=m__namespace.Close,V=y__namespace.forwardRef((r,e)=>{var a=r,{className:o}=a,t=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(m__namespace.Overlay,chunkNCY2ZNET_js.a({ref:e,className:chunkKITWXTCP_js.a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",o)},t))});V.displayName=m__namespace.Overlay.displayName;var ae=y__namespace.forwardRef((a,r)=>{var l=a,{className:o,children:t}=l,e=chunkNCY2ZNET_js.c(l,["className","children"]);return jsxRuntime.jsxs(te,{children:[jsxRuntime.jsx(V,{}),jsxRuntime.jsxs(m__namespace.Content,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:r,className:chunkKITWXTCP_js.a("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",o)},e),{children:[t,jsxRuntime.jsxs(m__namespace.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});ae.displayName=m__namespace.Content.displayName;var re=e=>{var r=e,{className:o}=r,t=chunkNCY2ZNET_js.c(r,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("flex flex-col space-y-1.5 text-center sm:text-left",o)},t))};re.displayName="DialogHeader";var oe=e=>{var r=e,{className:o}=r,t=chunkNCY2ZNET_js.c(r,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",o)},t))};oe.displayName="DialogFooter";var ie=y__namespace.forwardRef((r,e)=>{var a=r,{className:o}=a,t=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(m__namespace.Title,chunkNCY2ZNET_js.a({ref:e,className:chunkKITWXTCP_js.a("text-lg font-semibold leading-none tracking-tight",o)},t))});ie.displayName=m__namespace.Title.displayName;var se=y__namespace.forwardRef((r,e)=>{var a=r,{className:o}=a,t=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(m__namespace.Description,chunkNCY2ZNET_js.a({ref:e,className:chunkKITWXTCP_js.a("text-sm text-muted-foreground",o)},t))});se.displayName=m__namespace.Description.displayName;var z=y__namespace.forwardRef((r,e)=>{var a=r,{className:o}=a,t=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(f__namespace.Root,chunkNCY2ZNET_js.a({ref:e,className:chunkKITWXTCP_js.a("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",o)},t))});z.displayName=f__namespace.Root.displayName;var B=y__namespace.forwardRef((r,e)=>{var a=r,{className:o}=a,t=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(f__namespace.Image,chunkNCY2ZNET_js.a({ref:e,className:chunkKITWXTCP_js.a("aspect-square h-full w-full",o)},t))});B.displayName=f__namespace.Image.displayName;var I=y__namespace.forwardRef((r,e)=>{var a=r,{className:o}=a,t=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(f__namespace.Fallback,chunkNCY2ZNET_js.a({ref:e,className:chunkKITWXTCP_js.a("flex h-full w-full items-center justify-center rounded-full bg-muted",o)},t))});I.displayName=f__namespace.Fallback.displayName;var T=classVarianceAuthority.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-500/80",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-500/80",info:"border-transparent bg-blue-500 text-white hover:bg-blue-500/80"},size:{default:"h-5",sm:"h-4 text-[10px]",lg:"h-6 text-sm"}},defaultVariants:{variant:"default",size:"default"}});var $=y__namespace.forwardRef((c,p)=>{var g=c,{className:o,variant:t,size:e,icon:r,iconAfter:a,children:l}=g,d=chunkNCY2ZNET_js.c(g,["className","variant","size","icon","iconAfter","children"]);return jsxRuntime.jsxs("div",chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:p,className:chunkKITWXTCP_js.a(T({variant:t,size:e}),o)},d),{children:[r&&jsxRuntime.jsx("span",{className:"mr-1",children:r}),l,a&&jsxRuntime.jsx("span",{className:"ml-1",children:a})]}))});$.displayName="Badge";var de=classVarianceAuthority.cva("",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-semibold tracking-tight",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",p:"leading-7 [&:not(:first-child)]:mt-6",blockquote:"mt-6 border-l-2 border-slate-300 pl-6 italic",list:"my-6 ml-6 list-disc [&>li]:mt-2",lead:"text-xl text-muted-foreground",large:"text-lg font-semibold",small:"text-sm font-medium leading-none",muted:"text-sm text-muted-foreground"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}},defaultVariants:{variant:"p",align:"left"}}),pe=y__namespace.forwardRef((d,l)=>{var p=d,{className:o,variant:t,align:e,as:r="p"}=p,a=chunkNCY2ZNET_js.c(p,["className","variant","align","as"]);return jsxRuntime.jsx(r,chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a(de({variant:t,align:e,className:o})),ref:l},a))});pe.displayName="Typography";function Et({className:o,size:t="default",text:e,color:r="primary"}){let a={sm:"h-4 w-4",default:"h-8 w-8",lg:"h-12 w-12"},d={primary:"text-primary",secondary:"text-secondary",accent:"text-accent",muted:"text-muted-foreground",destructive:"text-destructive"}[r]||`text-[${r}]`;return jsxRuntime.jsxs("div",{className:chunkKITWXTCP_js.a("fixed inset-0 z-50 flex min-h-screen flex-col items-center justify-center bg-background/80 backdrop-blur-sm",o),role:"alert","aria-live":"assertive",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:chunkKITWXTCP_js.a("animate-spin",d,a[t]),"aria-hidden":"true"}),e&&jsxRuntime.jsx("p",{className:"mt-4 text-sm text-muted-foreground","aria-label":e,children:e})]})}Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunkZEUOBWG4_js.b}});Object.defineProperty(exports,"Separator",{enumerable:true,get:function(){return chunkZEUOBWG4_js.c}});Object.defineProperty(exports,"Sheet",{enumerable:true,get:function(){return chunkZEUOBWG4_js.d}});Object.defineProperty(exports,"SheetClose",{enumerable:true,get:function(){return chunkZEUOBWG4_js.f}});Object.defineProperty(exports,"SheetContent",{enumerable:true,get:function(){return chunkZEUOBWG4_js.i}});Object.defineProperty(exports,"SheetDescription",{enumerable:true,get:function(){return chunkZEUOBWG4_js.m}});Object.defineProperty(exports,"SheetFooter",{enumerable:true,get:function(){return chunkZEUOBWG4_js.k}});Object.defineProperty(exports,"SheetHeader",{enumerable:true,get:function(){return chunkZEUOBWG4_js.j}});Object.defineProperty(exports,"SheetOverlay",{enumerable:true,get:function(){return chunkZEUOBWG4_js.h}});Object.defineProperty(exports,"SheetPortal",{enumerable:true,get:function(){return chunkZEUOBWG4_js.g}});Object.defineProperty(exports,"SheetTitle",{enumerable:true,get:function(){return chunkZEUOBWG4_js.l}});Object.defineProperty(exports,"SheetTrigger",{enumerable:true,get:function(){return chunkZEUOBWG4_js.e}});Object.defineProperty(exports,"Skeleton",{enumerable:true,get:function(){return chunkZEUOBWG4_js.n}});Object.defineProperty(exports,"Tooltip",{enumerable:true,get:function(){return chunkZEUOBWG4_js.p}});Object.defineProperty(exports,"TooltipContent",{enumerable:true,get:function(){return chunkZEUOBWG4_js.r}});Object.defineProperty(exports,"TooltipProvider",{enumerable:true,get:function(){return chunkZEUOBWG4_js.o}});Object.defineProperty(exports,"TooltipTrigger",{enumerable:true,get:function(){return chunkZEUOBWG4_js.q}});Object.defineProperty(exports,"buttonVariants",{enumerable:true,get:function(){return chunkZEUOBWG4_js.a}});Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunkGH5JAZCC_js.a}});exports.Avatar=z;exports.AvatarFallback=I;exports.AvatarImage=B;exports.Badge=$;exports.Box=Y;exports.Container=Q;exports.Dialog=rt;exports.DialogClose=it;exports.DialogContent=ae;exports.DialogDescription=se;exports.DialogFooter=oe;exports.DialogHeader=re;exports.DialogOverlay=V;exports.DialogPortal=te;exports.DialogTitle=ie;exports.DialogTrigger=ot;exports.PageLoader=Et;exports.Stack=_;exports.TextField=E;exports.Typography=pe;exports.badgeVariants=T;exports.typographyVariants=de;//# sourceMappingURL=index.js.map
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/atoms/text-field/text-field.tsx","../../../src/components/atoms/container/container.tsx","../../../src/components/atoms/box/box.tsx","../../../src/components/atoms/stack/stack.tsx","../../../src/components/atoms/dialog/dialog.tsx","../../../src/components/atoms/avatar/avatar.tsx","../../../src/components/atoms/badge/badge.variants.ts","../../../src/components/atoms/badge/badge.tsx","../../../src/components/atoms/typography/typography.tsx","../../../src/components/atoms/page-loader/page-loader.tsx"],"names":["textFieldVariants","cva","TextField","P","_a","ref","_b","className","variant","size","startIcon","endIcon","loading","error","label","helperText","disabled","props","__objRest","id","jsxs","jsx","Label","Input","__spreadValues","cn","Loader2","Container","H","maxWidth","disablePadding","fluid","Box","F","Component","width","height","style","dimensionStyles","Stack","M","direction","spacing","wrap","center","justify","align","Dialog","m","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","y","DialogContent","children","__spreadProps","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription","Avatar","R","f","AvatarImage","AvatarFallback","badgeVariants","Badge","S","icon","iconAfter","typographyVariants","Typography","q","PageLoader","text","color","sizeClasses","loaderColor"],"mappings":"m8BAYMA,IAAAA,CAAAA,CAAoBC,0BAAI,CAAA,QAAA,CAAU,CACtC,QAAU,CAAA,CACR,OAAS,CAAA,CACP,QAAS,EACT,CAAA,KAAA,CAAO,mDACT,CAAA,CACA,KAAM,CACJ,OAAA,CAAS,MACT,CAAA,EAAA,C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kBAAAA,CAAG+C,GAAmB,CAAE,OAAA,CAAAhE,CAAS,CAAA,KAAA,CAAAsC,EAAO,SAAAvC,CAAAA,CAAU,CAAC,CAAC,EAC/D,GAAKF,CAAAA,CAAAA,CAAAA,CACDY,CACN,CAAA,CAEJ,CACF,EAEAwD,EAAAA,CAAW,WAAc,CAAA,YAAA,CC9BlB,SAASE,EAAW,CAAA,CACzB,SAAApE,CAAAA,CAAAA,CACA,IAAAE,CAAAA,CAAAA,CAAO,SACP,CAAA,IAAA,CAAAmE,EACA,KAAAC,CAAAA,CAAAA,CAAQ,SACV,CAAA,CAAoB,CAClB,IAAMC,CAAAA,CAAc,CAClB,EAAA,CAAI,UACJ,OAAS,CAAA,SAAA,CACT,EAAI,CAAA,WACN,EAUMC,CARe,CAAA,CACnB,OAAS,CAAA,cAAA,CACT,UAAW,gBACX,CAAA,MAAA,CAAQ,aACR,CAAA,KAAA,CAAO,wBACP,WAAa,CAAA,kBACf,CAEiCF,CAAAA,CAAkC,GAAK,CAASA,MAAAA,EAAAA,CAAK,CAEtF,CAAA,CAAA,CAAA,OACEzD,gBAAC,KACC,CAAA,CAAA,SAAA,CAAWK,kBACT,CAAA,6GAAA,CACAlB,CACF,CACA,CAAA,IAAA,CAAK,OACL,CAAA,WAAA,CAAU,YAEV,QAAAc,CAAAA,CAAAA,cAAAA,CAACK,mBAAA,CAAA,CAAQ,UAAWD,kBAAG,CAAA,cAAA,CAAgBsD,CAAaD,CAAAA,CAAAA,CAAYrE,CAAI,CAAC,CAAA,CAAG,aAAY,CAAA,MAAA,CAAO,EAC1FmE,CACCvD,EAAAA,cAAAA,CAAC,GAAE,CAAA,CAAA,SAAA,CAAU,qCAAqC,YAAYuD,CAAAA,CAAAA,CAC3D,QAAAA,CAAAA,CAAAA,CACH,GAEJ,CAEJ","file":"index.js","sourcesContent":["import * as React from \"react\"\nimport { cva } from \"class-variance-authority\"\nimport { cn } from \"@/utils/cn\"\nimport { TextFieldProps } from \"./text-field.types\"\nimport { Loader2 } from \"lucide-react\"\nimport { Input } from \"../input\"\nimport { Label } from \"../label\"\n\n/**\n * Text field variant styles using class-variance-authority.\n * Defines the visual styles for different text field variants and sizes.\n */\nconst textFieldVariants = cva(\"w-full\", {\n variants: {\n variant: {\n default: \"\",\n error: \"border-destructive focus-visible:ring-destructive\"\n },\n size: {\n default: \"h-10\",\n sm: \"h-8 text-xs\",\n lg: \"h-12 text-base\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n})\n\n/**\n * A versatile text field component that supports multiple variants, sizes, and icons.\n * Built on top of shadcn/ui's Input component.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-text-field--docs\n *\n * @component\n * @example\n * ```tsx\n * // Default text field\n * <TextField placeholder=\"Enter text\" />\n *\n * // With icons\n * <TextField startIcon={<SearchIcon />} placeholder=\"Search...\" />\n * <TextField endIcon={<CalendarIcon />} placeholder=\"Select date\" />\n *\n * // With loading state\n * <TextField loading placeholder=\"Loading...\" />\n *\n * // With error\n * <TextField error=\"Invalid input\" placeholder=\"Enter text\" />\n * ```\n */\nconst TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n className,\n variant,\n size,\n startIcon,\n endIcon,\n loading = false,\n error,\n label,\n helperText,\n disabled,\n ...props\n },\n ref\n ) => {\n const id = React.useId()\n\n return (\n <div className=\"w-full space-y-2\">\n {label && <Label htmlFor={id}>{label}</Label>}\n <div className=\"relative\">\n {startIcon && (\n <div className=\"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground\">\n {startIcon}\n </div>\n )}\n <Input\n id={id}\n className={cn(\n textFieldVariants({ variant: error ? \"error\" : variant, size, className }),\n startIcon && \"pl-9\",\n (endIcon || loading) && \"pr-9\"\n )}\n ref={ref}\n disabled={disabled || loading}\n {...props}\n />\n {(endIcon || loading) && (\n <div className=\"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground\">\n {loading ? <Loader2 className=\"h-4 w-4 animate-spin\" /> : endIcon}\n </div>\n )}\n </div>\n {(error || helperText) && (\n <p className={cn(\"text-sm\", error ? \"text-destructive\" : \"text-muted-foreground\")}>\n {error || helperText}\n </p>\n )}\n </div>\n )\n }\n)\n\nTextField.displayName = \"TextField\"\n\nexport { TextField, textFieldVariants }\n","/**\n * Container is a layout component that provides a centered, max-width wrapper for content.\n * It's designed to create consistent horizontal padding and maximum widths across different screen sizes.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-container--docs\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Container>\n * <h1>Page Title</h1>\n * <p>Content goes here...</p>\n * </Container>\n *\n * // With custom max width\n * <Container maxWidth=\"xl\">\n * <h1>Wider Content</h1>\n * </Container>\n *\n * // Fluid container (no max-width)\n * <Container fluid>\n * <h1>Full Width Content</h1>\n * </Container>\n *\n * // Without padding\n * <Container disablePadding>\n * <h1>No Padding Content</h1>\n * </Container>\n * ```\n */\nimport { cn } from \"@/utils\"\nimport * as React from \"react\"\n\nexport interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The maximum width of the container.\n * - \"sm\": 640px\n * - \"md\": 768px\n * - \"lg\": 1024px\n * - \"xl\": 1280px\n * - \"full\": 100%\n * - false: No max-width (fluid)\n *\n * @default \"lg\"\n */\n maxWidth?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\" | false\n /**\n * Whether to disable the default horizontal padding.\n * When true, removes the default padding (px-4 sm:px-6 lg:px-8).\n *\n * @default false\n */\n disablePadding?: boolean\n /**\n * Whether to make the container fluid (no max-width).\n * When true, the container will expand to fill its parent's width.\n *\n * @default false\n */\n fluid?: boolean\n}\n\nconst Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n ({ className, maxWidth = \"lg\", disablePadding = false, fluid = false, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n // Base styles\n \"mx-auto w-full\",\n // Padding\n !disablePadding && \"px-4 sm:px-6 lg:px-8\",\n // Max width\n !fluid && {\n \"max-w-screen-sm\": maxWidth === \"sm\",\n \"max-w-screen-md\": maxWidth === \"md\",\n \"max-w-screen-lg\": maxWidth === \"lg\",\n \"max-w-screen-xl\": maxWidth === \"xl\",\n \"max-w-full\": maxWidth === \"full\"\n },\n className\n )}\n {...props}\n />\n )\n }\n)\n\nContainer.displayName = \"Container\"\n\nexport { Container }\n","/**\n * Box is a fundamental layout component that serves as a building block for other components.\n * It's a polymorphic component that can render as different HTML elements while maintaining\n * consistent styling and behavior.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-box--docs\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Box>Content</Box>\n *\n * // As a different element\n * <Box as=\"section\">Section content</Box>\n *\n * // With custom className\n * <Box className=\"bg-primary text-white p-4\">Styled content</Box>\n *\n * // With custom dimensions\n * <Box width=\"100px\" height=\"200px\">Fixed size content</Box>\n * <Box width=\"50%\" height=\"auto\">Responsive content</Box>\n * ```\n */\nimport * as React from \"react\"\nimport { cn } from \"@/utils\"\n\ntype BoxComponent =\n | \"div\"\n | \"span\"\n | \"section\"\n | \"article\"\n | \"main\"\n | \"aside\"\n | \"header\"\n | \"footer\"\n | \"nav\"\n\ntype DimensionValue = string | number\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The HTML element to render the Box as.\n * This allows for semantic HTML while maintaining consistent styling.\n *\n * @default \"div\"\n */\n as?: BoxComponent\n\n /**\n * The width of the Box component.\n * Can be a number (interpreted as pixels) or a string (e.g., \"100%\", \"50px\", \"10rem\").\n */\n width?: DimensionValue\n\n /**\n * The height of the Box component.\n * Can be a number (interpreted as pixels) or a string (e.g., \"100%\", \"50px\", \"10rem\").\n */\n height?: DimensionValue\n}\n\nconst Box = React.forwardRef<HTMLDivElement, BoxProps>(\n ({ as: Component = \"div\", className, width, height, style, ...props }, ref) => {\n const dimensionStyles = {\n width: typeof width === \"number\" ? `${width}px` : width,\n height: typeof height === \"number\" ? `${height}px` : height,\n ...style\n }\n\n return <Component ref={ref} className={cn(className)} style={dimensionStyles} {...props} />\n }\n)\n\nBox.displayName = \"Box\"\n\nexport { Box }\n","/**\n * Stack is a layout component that arranges its children in a vertical or horizontal stack\n * with consistent spacing between items. It's built on top of Flexbox and provides\n * a simple way to create consistent layouts.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-stack--docs\n *\n * @example\n * ```tsx\n * // Basic vertical stack\n * <Stack>\n * <div>Item 1</div>\n * <div>Item 2</div>\n * <div>Item 3</div>\n * </Stack>\n *\n * // Horizontal stack with custom spacing\n * <Stack direction=\"horizontal\" spacing=\"lg\">\n * <div>Item 1</div>\n * <div>Item 2</div>\n * </Stack>\n *\n * // Centered stack with wrapping\n * <Stack direction=\"horizontal\" center wrap>\n * <div>Item 1</div>\n * <div>Item 2</div>\n * <div>Item 3</div>\n * </Stack>\n *\n * // Stack with custom alignment\n * <Stack align=\"center\" justify=\"between\">\n * <div>Left</div>\n * <div>Center</div>\n * <div>Right</div>\n * </Stack>\n *\n * // Stack with custom dimensions\n * <Stack width=\"100%\" height=\"200px\">\n * <div>Full width, fixed height stack</div>\n * </Stack>\n * ```\n */\nimport * as React from \"react\"\nimport { cn } from \"@/utils\"\n\nexport interface StackProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The direction in which to stack the items.\n * - \"vertical\": Items are stacked top to bottom\n * - \"horizontal\": Items are stacked left to right\n *\n * @default \"vertical\"\n */\n direction?: \"vertical\" | \"horizontal\"\n /**\n * The spacing between items in the stack.\n * - \"none\": 0px\n * - \"xs\": 0.25rem (4px)\n * - \"sm\": 0.5rem (8px)\n * - \"md\": 1rem (16px)\n * - \"lg\": 1.5rem (24px)\n * - \"xl\": 2rem (32px)\n *\n * @default \"md\"\n */\n spacing?: \"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"\n /**\n * Whether to allow items to wrap to the next line when they don't fit.\n * Only applies to horizontal stacks.\n *\n * @default false\n */\n wrap?: boolean\n /**\n * Whether to center items both horizontally and vertically.\n * This is a shorthand for setting both align and justify to \"center\".\n *\n * @default false\n */\n center?: boolean\n /**\n * How to justify items along the main axis.\n * - \"start\": Items are packed toward the start\n * - \"end\": Items are packed toward the end\n * - \"center\": Items are centered\n * - \"between\": Items are evenly distributed with first item at start and last at end\n * - \"around\": Items are evenly distributed with equal space around them\n * - \"evenly\": Items are distributed so that the spacing between any two items is equal\n *\n * @default undefined\n */\n justify?: \"start\" | \"end\" | \"center\" | \"between\" | \"around\" | \"evenly\"\n /**\n * How to align items along the cross axis.\n * - \"start\": Items are aligned at the start\n * - \"end\": Items are aligned at the end\n * - \"center\": Items are centered\n * - \"stretch\": Items are stretched to fill the container\n * - \"baseline\": Items are aligned at their baselines\n *\n * @default undefined\n */\n align?: \"start\" | \"end\" | \"center\" | \"stretch\" | \"baseline\"\n /**\n * The width of the stack container.\n * Can be any valid CSS width value (e.g., \"100%\", \"200px\", \"50vw\").\n *\n * @default undefined\n */\n width?: string\n /**\n * The height of the stack container.\n * Can be any valid CSS height value (e.g., \"100%\", \"200px\", \"50vh\").\n *\n * @default undefined\n */\n height?: string\n}\n\nconst Stack = React.forwardRef<HTMLDivElement, StackProps>(\n (\n {\n className,\n direction = \"vertical\",\n spacing = \"md\",\n wrap = false,\n center = false,\n justify,\n align,\n width,\n height,\n style,\n ...props\n },\n ref\n ) => {\n return (\n <div\n ref={ref}\n className={cn(\n // Base styles\n \"flex\",\n // Direction\n direction === \"vertical\" ? \"flex-col\" : \"flex-row\",\n // Spacing\n {\n \"gap-0\": spacing === \"none\",\n \"gap-1\": spacing === \"xs\",\n \"gap-2\": spacing === \"sm\",\n \"gap-4\": spacing === \"md\",\n \"gap-6\": spacing === \"lg\",\n \"gap-8\": spacing === \"xl\"\n },\n // Wrap\n wrap && \"flex-wrap\",\n // Center\n center && \"items-center justify-center\",\n // Justify\n justify && {\n \"justify-start\": justify === \"start\",\n \"justify-end\": justify === \"end\",\n \"justify-center\": justify === \"center\",\n \"justify-between\": justify === \"between\",\n \"justify-around\": justify === \"around\",\n \"justify-evenly\": justify === \"evenly\"\n },\n // Align\n align && {\n \"items-start\": align === \"start\",\n \"items-end\": align === \"end\",\n \"items-center\": align === \"center\",\n \"items-stretch\": align === \"stretch\",\n \"items-baseline\": align === \"baseline\"\n },\n className\n )}\n style={{\n width,\n height,\n ...style\n }}\n {...props}\n />\n )\n }\n)\n\nStack.displayName = \"Stack\"\n\nexport { Stack }\n","import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { X } from \"lucide-react\"\nimport { cn } from \"@/utils\"\n\n/**\n * Dialog component for creating accessible dialogs with overlay and content.\n * Built on top of Radix UI's Dialog primitive.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-dialog--docs\n *\n * @example\n * ```tsx\n * <Dialog>\n * <DialogTrigger>Open Dialog</DialogTrigger>\n * <DialogContent>Dialog Content</DialogContent>\n * </Dialog>\n */\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"flex flex-col space-y-1.5 text-center sm:text-left\", className)} {...props} />\n)\nDialogHeader.displayName = \"DialogHeader\"\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\", className)}\n {...props}\n />\n)\nDialogFooter.displayName = \"DialogFooter\"\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription\n}\n","import * as React from \"react\"\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\nimport { cn } from \"@/utils/index\"\nimport type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from \"./avatar.types\"\n\n/**\n * Avatar component that displays a user's profile picture or fallback.\n * Built on top of Radix UI's Avatar primitive.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-avatar--docs\n *\n * @example\n * ```tsx\n * <Avatar>\n * <AvatarImage src=\"/path/to/image.jpg\" alt=\"User avatar\" />\n * <AvatarFallback>JD</AvatarFallback>\n * </Avatar>\n * ```\n */\nconst Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(\n ({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn(\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\", className)}\n {...props}\n />\n )\n)\nAvatar.displayName = AvatarPrimitive.Root.displayName\n\n/**\n * AvatarImage component that displays the user's profile picture.\n * Falls back to AvatarFallback if the image fails to load.\n */\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n AvatarImageProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn(\"aspect-square h-full w-full\", className)}\n {...props}\n />\n))\nAvatarImage.displayName = AvatarPrimitive.Image.displayName\n\n/**\n * AvatarFallback component that displays when the image fails to load.\n * Typically shows the user's initials or a placeholder icon.\n */\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n AvatarFallbackProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn(\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n className\n )}\n {...props}\n />\n))\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName\n\nexport { Avatar, AvatarImage, AvatarFallback }\n","import { cva } from \"class-variance-authority\"\n\nexport const badgeVariants = cva(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default: \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n outline: \"text-foreground\",\n success: \"border-transparent bg-green-500 text-white hover:bg-green-500/80\",\n warning: \"border-transparent bg-yellow-500 text-white hover:bg-yellow-500/80\",\n info: \"border-transparent bg-blue-500 text-white hover:bg-blue-500/80\"\n },\n size: {\n default: \"h-5\",\n sm: \"h-4 text-[10px]\",\n lg: \"h-6 text-sm\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n }\n)\n","import * as React from \"react\"\nimport { cn } from \"@/utils/index\"\nimport { badgeVariants } from \"./badge.variants\"\nimport type { BadgeProps } from \"./badge.types\"\n\n/**\n * Badge component for displaying status, counts, or labels.\n * Supports various variants, sizes, and optional icons.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-badge--docs\n *\n * @example\n * ```tsx\n * <Badge variant=\"success\">Active</Badge>\n * <Badge variant=\"warning\" icon={<AlertIcon />}>Warning</Badge>\n * <Badge variant=\"info\" size=\"lg\" iconAfter={<ArrowIcon />}>New</Badge>\n * ```\n */\nconst Badge = React.forwardRef<HTMLDivElement, BadgeProps>(\n ({ className, variant, size, icon, iconAfter, children, ...props }, ref) => {\n return (\n <div ref={ref} className={cn(badgeVariants({ variant, size }), className)} {...props}>\n {icon && <span className=\"mr-1\">{icon}</span>}\n {children}\n {iconAfter && <span className=\"ml-1\">{iconAfter}</span>}\n </div>\n )\n }\n)\n\nBadge.displayName = \"Badge\"\n\nexport { Badge, badgeVariants }\n","import * as React from \"react\"\nimport { cn } from \"@/utils\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nconst typographyVariants = cva(\"\", {\n variants: {\n variant: {\n h1: \"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl\",\n h2: \"scroll-m-20 text-3xl font-semibold tracking-tight\",\n h3: \"scroll-m-20 text-2xl font-semibold tracking-tight\",\n h4: \"scroll-m-20 text-xl font-semibold tracking-tight\",\n h5: \"scroll-m-20 text-lg font-semibold tracking-tight\",\n h6: \"scroll-m-20 text-base font-semibold tracking-tight\",\n p: \"leading-7 [&:not(:first-child)]:mt-6\",\n blockquote: \"mt-6 border-l-2 border-slate-300 pl-6 italic\",\n list: \"my-6 ml-6 list-disc [&>li]:mt-2\",\n lead: \"text-xl text-muted-foreground\",\n large: \"text-lg font-semibold\",\n small: \"text-sm font-medium leading-none\",\n muted: \"text-sm text-muted-foreground\"\n },\n align: {\n left: \"text-left\",\n center: \"text-center\",\n right: \"text-right\",\n justify: \"text-justify\"\n }\n },\n defaultVariants: {\n variant: \"p\",\n align: \"left\"\n }\n})\n\nexport interface TypographyProps\n extends React.HTMLAttributes<HTMLElement>,\n VariantProps<typeof typographyVariants> {\n as?: React.ElementType\n}\n\n/**\n * Typography component for creating accessible text elements.\n * Built on top of shadcn/ui's Typography component.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-typography--docs\n *\n */\nconst Typography = React.forwardRef<HTMLElement, TypographyProps>(\n ({ className, variant, align, as: Component = \"p\", ...props }, ref) => {\n return (\n <Component\n className={cn(typographyVariants({ variant, align, className }))}\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nTypography.displayName = \"Typography\"\n\nexport { Typography, typographyVariants }\n","import { cn } from \"@/utils\"\nimport { Loader2 } from \"lucide-react\"\n\nexport interface PageLoaderProps {\n /**\n * Optional className to extend the component's styles\n */\n className?: string\n /**\n * Optional size of the loader (default: \"default\")\n */\n size?: \"sm\" | \"default\" | \"lg\"\n /**\n * Optional text to display below the loader\n */\n text?: string\n /**\n * Optional color of the loader (default: \"primary\")\n */\n color?: \"primary\" | \"secondary\" | \"accent\" | \"muted\" | \"destructive\" | string\n}\n\n/**\n * PageLoader component for displaying a loading indicator.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-page-loader--docs\n *\n */\n\nexport function PageLoader({\n className,\n size = \"default\",\n text,\n color = \"primary\"\n}: PageLoaderProps) {\n const sizeClasses = {\n sm: \"h-4 w-4\",\n default: \"h-8 w-8\",\n lg: \"h-12 w-12\"\n }\n\n const colorClasses = {\n primary: \"text-primary\",\n secondary: \"text-secondary\",\n accent: \"text-accent\",\n muted: \"text-muted-foreground\",\n destructive: \"text-destructive\"\n }\n\n const loaderColor = colorClasses[color as keyof typeof colorClasses] || `text-[${color}]`\n\n return (\n <div\n className={cn(\n \"fixed inset-0 z-50 flex min-h-screen flex-col items-center justify-center bg-background/80 backdrop-blur-sm\",\n className\n )}\n role=\"alert\"\n aria-live=\"assertive\"\n >\n <Loader2 className={cn(\"animate-spin\", loaderColor, sizeClasses[size])} aria-hidden=\"true\" />\n {text && (\n <p className=\"mt-4 text-sm text-muted-foreground\" aria-label={text}>\n {text}\n </p>\n )}\n </div>\n )\n}\n"]}