@me1a/ui 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +153 -0
- package/dist/index.d.ts +153 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -63,6 +63,8 @@ declare const buttonVariants: (props?: ({
|
|
|
63
63
|
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
64
64
|
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
65
65
|
*
|
|
66
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-button--docs
|
|
67
|
+
*
|
|
66
68
|
* @component
|
|
67
69
|
* @example
|
|
68
70
|
* ```tsx
|
|
@@ -130,6 +132,8 @@ declare const textFieldVariants: (props?: ({
|
|
|
130
132
|
* A versatile text field component that supports multiple variants, sizes, and icons.
|
|
131
133
|
* Built on top of shadcn/ui's Input component.
|
|
132
134
|
*
|
|
135
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-text-field--docs
|
|
136
|
+
*
|
|
133
137
|
* @component
|
|
134
138
|
* @example
|
|
135
139
|
* ```tsx
|
|
@@ -184,6 +188,8 @@ declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & Reac
|
|
|
184
188
|
* It's a polymorphic component that can render as different HTML elements while maintaining
|
|
185
189
|
* consistent styling and behavior.
|
|
186
190
|
*
|
|
191
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-box--docs
|
|
192
|
+
*
|
|
187
193
|
* @example
|
|
188
194
|
* ```tsx
|
|
189
195
|
* // Basic usage
|
|
@@ -229,6 +235,8 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
|
|
|
229
235
|
* with consistent spacing between items. It's built on top of Flexbox and provides
|
|
230
236
|
* a simple way to create consistent layouts.
|
|
231
237
|
*
|
|
238
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-stack--docs
|
|
239
|
+
*
|
|
232
240
|
* @example
|
|
233
241
|
* ```tsx
|
|
234
242
|
* // Basic vertical stack
|
|
@@ -340,6 +348,19 @@ interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
340
348
|
}
|
|
341
349
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
342
350
|
|
|
351
|
+
/**
|
|
352
|
+
* Dialog component for creating accessible dialogs with overlay and content.
|
|
353
|
+
* Built on top of Radix UI's Dialog primitive.
|
|
354
|
+
*
|
|
355
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-dialog--docs
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* ```tsx
|
|
359
|
+
* <Dialog>
|
|
360
|
+
* <DialogTrigger>Open Dialog</DialogTrigger>
|
|
361
|
+
* <DialogContent>Dialog Content</DialogContent>
|
|
362
|
+
* </Dialog>
|
|
363
|
+
*/
|
|
343
364
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
344
365
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
345
366
|
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
@@ -357,10 +378,37 @@ declare const DialogFooter: {
|
|
|
357
378
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
358
379
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
359
380
|
|
|
381
|
+
/**
|
|
382
|
+
* Input component for creating accessible input fields.
|
|
383
|
+
* Built on top of shadcn/ui's Input component.
|
|
384
|
+
*
|
|
385
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-input--docs
|
|
386
|
+
*
|
|
387
|
+
*/
|
|
360
388
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
361
389
|
|
|
390
|
+
/**
|
|
391
|
+
* Separator component for creating horizontal or vertical dividers.
|
|
392
|
+
* Built on top of Radix UI's Separator primitive.
|
|
393
|
+
*
|
|
394
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-separator--docs
|
|
395
|
+
*
|
|
396
|
+
*/
|
|
362
397
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
363
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Sheet component for creating accessible sheets with overlay and content.
|
|
401
|
+
* Built on top of Radix UI's Sheet primitive.
|
|
402
|
+
*
|
|
403
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-sheet--docs
|
|
404
|
+
*
|
|
405
|
+
* @example
|
|
406
|
+
* ```tsx
|
|
407
|
+
* <Sheet>
|
|
408
|
+
* <SheetTrigger>Open Sheet</SheetTrigger>
|
|
409
|
+
* <SheetContent>Sheet Content</SheetContent>
|
|
410
|
+
* </Sheet>
|
|
411
|
+
*/
|
|
364
412
|
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
365
413
|
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
366
414
|
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -383,12 +431,25 @@ declare const SheetFooter: {
|
|
|
383
431
|
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
384
432
|
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
385
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Skeleton component for creating a loading state.
|
|
436
|
+
* Built on top of shadcn/ui's Skeleton component.
|
|
437
|
+
*
|
|
438
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-skeleton--docs
|
|
439
|
+
*
|
|
440
|
+
* @example
|
|
441
|
+
* ```tsx
|
|
442
|
+
* <Skeleton className="w-10 h-10" />
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
386
445
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
387
446
|
|
|
388
447
|
/**
|
|
389
448
|
* Avatar component that displays a user's profile picture or fallback.
|
|
390
449
|
* Built on top of Radix UI's Avatar primitive.
|
|
391
450
|
*
|
|
451
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-avatar--docs
|
|
452
|
+
*
|
|
392
453
|
* @example
|
|
393
454
|
* ```tsx
|
|
394
455
|
* <Avatar>
|
|
@@ -413,6 +474,22 @@ type AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;
|
|
|
413
474
|
type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
|
|
414
475
|
type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
|
|
415
476
|
|
|
477
|
+
/**
|
|
478
|
+
* TooltipProvider component for creating accessible tooltips.
|
|
479
|
+
* Built on top of Radix UI's Tooltip primitive.
|
|
480
|
+
*
|
|
481
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-tooltip--docs
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```tsx
|
|
485
|
+
* <TooltipProvider>
|
|
486
|
+
* <Tooltip>
|
|
487
|
+
* <TooltipTrigger>Hover me</TooltipTrigger>
|
|
488
|
+
* <TooltipContent>Tooltip content</TooltipContent>
|
|
489
|
+
* </Tooltip>
|
|
490
|
+
* </TooltipProvider>
|
|
491
|
+
* ```
|
|
492
|
+
*/
|
|
416
493
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
417
494
|
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
418
495
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -442,6 +519,8 @@ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
442
519
|
* Badge component for displaying status, counts, or labels.
|
|
443
520
|
* Supports various variants, sizes, and optional icons.
|
|
444
521
|
*
|
|
522
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-badge--docs
|
|
523
|
+
*
|
|
445
524
|
* @example
|
|
446
525
|
* ```tsx
|
|
447
526
|
* <Badge variant="success">Active</Badge>
|
|
@@ -538,6 +617,18 @@ interface FormProviderProps {
|
|
|
538
617
|
/**
|
|
539
618
|
* Form component that provides form context to all child components.
|
|
540
619
|
* Built on top of react-hook-form's FormProvider.
|
|
620
|
+
*
|
|
621
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-form--docs
|
|
622
|
+
*
|
|
623
|
+
* @example
|
|
624
|
+
* ```tsx
|
|
625
|
+
* <Form>
|
|
626
|
+
* <FormField>
|
|
627
|
+
* <FormItem>
|
|
628
|
+
* <FormLabel>Name</FormLabel>
|
|
629
|
+
* </FormItem>
|
|
630
|
+
* </FormField>
|
|
631
|
+
* </Form>
|
|
541
632
|
*/
|
|
542
633
|
declare const Form: ({ children, methods, onSubmit }: FormProviderProps) => react_jsx_runtime.JSX.Element;
|
|
543
634
|
/**
|
|
@@ -589,6 +680,13 @@ declare const typographyVariants: (props?: ({
|
|
|
589
680
|
interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
590
681
|
as?: React$1.ElementType;
|
|
591
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* Typography component for creating accessible text elements.
|
|
685
|
+
* Built on top of shadcn/ui's Typography component.
|
|
686
|
+
*
|
|
687
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-typography--docs
|
|
688
|
+
*
|
|
689
|
+
*/
|
|
592
690
|
declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
|
|
593
691
|
|
|
594
692
|
type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
|
|
@@ -612,6 +710,12 @@ interface PageLoaderProps$1 {
|
|
|
612
710
|
*/
|
|
613
711
|
color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
|
|
614
712
|
}
|
|
713
|
+
/**
|
|
714
|
+
* PageLoader component for displaying a loading indicator.
|
|
715
|
+
*
|
|
716
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-page-loader--docs
|
|
717
|
+
*
|
|
718
|
+
*/
|
|
615
719
|
declare function PageLoader({ className, size, text, color }: PageLoaderProps$1): react_jsx_runtime.JSX.Element;
|
|
616
720
|
|
|
617
721
|
interface PageLoaderProps {
|
|
@@ -637,6 +741,8 @@ interface PageLoaderProps {
|
|
|
637
741
|
* Card is a flexible container component that can be used to group related content and actions.
|
|
638
742
|
* It provides a consistent visual style with a subtle border, shadow, and rounded corners.
|
|
639
743
|
*
|
|
744
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs
|
|
745
|
+
*
|
|
640
746
|
* @example
|
|
641
747
|
* ```tsx
|
|
642
748
|
* // Basic card
|
|
@@ -761,6 +867,8 @@ interface NavigationMenuIndicatorProps extends React.ComponentPropsWithoutRef<ty
|
|
|
761
867
|
* NavigationMenu component for creating accessible navigation menus with dropdowns.
|
|
762
868
|
* Built on top of Radix UI's NavigationMenu primitive.
|
|
763
869
|
*
|
|
870
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-navigation-menu--docs
|
|
871
|
+
*
|
|
764
872
|
* @example
|
|
765
873
|
* ```tsx
|
|
766
874
|
* <NavigationMenu>
|
|
@@ -824,6 +932,8 @@ interface RHFTextFieldProps<TFieldValues extends FieldValues = FieldValues, TNam
|
|
|
824
932
|
* A text field component that integrates with React Hook Form.
|
|
825
933
|
* Provides form validation, error handling, and accessibility features.
|
|
826
934
|
*
|
|
935
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-text-field--docs
|
|
936
|
+
*
|
|
827
937
|
* @example
|
|
828
938
|
* ```tsx
|
|
829
939
|
* <RHFTextField
|
|
@@ -914,6 +1024,31 @@ declare const SidebarProvider: React$1.ForwardRefExoticComponent<Omit<React$1.Cl
|
|
|
914
1024
|
open?: boolean;
|
|
915
1025
|
onOpenChange?: (open: boolean) => void;
|
|
916
1026
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1027
|
+
/**
|
|
1028
|
+
* A flexible sidebar component that supports various layouts and configurations.
|
|
1029
|
+
* The sidebar can be positioned on either side of the screen and supports different
|
|
1030
|
+
* visual styles and collapse behaviors.
|
|
1031
|
+
*
|
|
1032
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-sidebar--docs
|
|
1033
|
+
*
|
|
1034
|
+
* @example
|
|
1035
|
+
* ```tsx
|
|
1036
|
+
* <Sidebar>
|
|
1037
|
+
* <SidebarHeader>
|
|
1038
|
+
* <SidebarTitle>Dashboard</SidebarTitle>
|
|
1039
|
+
* </SidebarHeader>
|
|
1040
|
+
* <SidebarContent>
|
|
1041
|
+
* <SidebarMenu>
|
|
1042
|
+
* <SidebarMenuItem icon={<HomeIcon />}>Home</SidebarMenuItem>
|
|
1043
|
+
* <SidebarMenuItem icon={<SettingsIcon />}>Settings</SidebarMenuItem>
|
|
1044
|
+
* </SidebarMenu>
|
|
1045
|
+
* </SidebarContent>
|
|
1046
|
+
* <SidebarFooter>
|
|
1047
|
+
* <SidebarTrigger />
|
|
1048
|
+
* </SidebarFooter>
|
|
1049
|
+
* </Sidebar>
|
|
1050
|
+
* ```
|
|
1051
|
+
*/
|
|
917
1052
|
declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
918
1053
|
side?: "left" | "right";
|
|
919
1054
|
variant?: "sidebar" | "floating" | "inset";
|
|
@@ -1008,6 +1143,24 @@ type SidebarGroupActionProps = React$1.ComponentProps<"button"> & {
|
|
|
1008
1143
|
asChild?: boolean;
|
|
1009
1144
|
};
|
|
1010
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* DropdownMenu component for creating accessible dropdown menus.
|
|
1148
|
+
* Built on top of Radix UI's DropdownMenu primitive.
|
|
1149
|
+
*
|
|
1150
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
|
|
1151
|
+
*
|
|
1152
|
+
* @example
|
|
1153
|
+
* ```tsx
|
|
1154
|
+
* <DropdownMenu>
|
|
1155
|
+
* <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
|
|
1156
|
+
* <DropdownMenuContent>
|
|
1157
|
+
* <DropdownMenuItem>Item 1</DropdownMenuItem>
|
|
1158
|
+
* <DropdownMenuItem>Item 2</DropdownMenuItem>
|
|
1159
|
+
* <DropdownMenuItem>Item 3</DropdownMenuItem>
|
|
1160
|
+
* </DropdownMenuContent>
|
|
1161
|
+
* </DropdownMenu>
|
|
1162
|
+
* ```
|
|
1163
|
+
*/
|
|
1011
1164
|
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
1012
1165
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1013
1166
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -63,6 +63,8 @@ declare const buttonVariants: (props?: ({
|
|
|
63
63
|
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
64
64
|
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
65
65
|
*
|
|
66
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-button--docs
|
|
67
|
+
*
|
|
66
68
|
* @component
|
|
67
69
|
* @example
|
|
68
70
|
* ```tsx
|
|
@@ -130,6 +132,8 @@ declare const textFieldVariants: (props?: ({
|
|
|
130
132
|
* A versatile text field component that supports multiple variants, sizes, and icons.
|
|
131
133
|
* Built on top of shadcn/ui's Input component.
|
|
132
134
|
*
|
|
135
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-text-field--docs
|
|
136
|
+
*
|
|
133
137
|
* @component
|
|
134
138
|
* @example
|
|
135
139
|
* ```tsx
|
|
@@ -184,6 +188,8 @@ declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & Reac
|
|
|
184
188
|
* It's a polymorphic component that can render as different HTML elements while maintaining
|
|
185
189
|
* consistent styling and behavior.
|
|
186
190
|
*
|
|
191
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-box--docs
|
|
192
|
+
*
|
|
187
193
|
* @example
|
|
188
194
|
* ```tsx
|
|
189
195
|
* // Basic usage
|
|
@@ -229,6 +235,8 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
|
|
|
229
235
|
* with consistent spacing between items. It's built on top of Flexbox and provides
|
|
230
236
|
* a simple way to create consistent layouts.
|
|
231
237
|
*
|
|
238
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-stack--docs
|
|
239
|
+
*
|
|
232
240
|
* @example
|
|
233
241
|
* ```tsx
|
|
234
242
|
* // Basic vertical stack
|
|
@@ -340,6 +348,19 @@ interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
340
348
|
}
|
|
341
349
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
342
350
|
|
|
351
|
+
/**
|
|
352
|
+
* Dialog component for creating accessible dialogs with overlay and content.
|
|
353
|
+
* Built on top of Radix UI's Dialog primitive.
|
|
354
|
+
*
|
|
355
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-dialog--docs
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* ```tsx
|
|
359
|
+
* <Dialog>
|
|
360
|
+
* <DialogTrigger>Open Dialog</DialogTrigger>
|
|
361
|
+
* <DialogContent>Dialog Content</DialogContent>
|
|
362
|
+
* </Dialog>
|
|
363
|
+
*/
|
|
343
364
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
344
365
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
345
366
|
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
@@ -357,10 +378,37 @@ declare const DialogFooter: {
|
|
|
357
378
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
358
379
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
359
380
|
|
|
381
|
+
/**
|
|
382
|
+
* Input component for creating accessible input fields.
|
|
383
|
+
* Built on top of shadcn/ui's Input component.
|
|
384
|
+
*
|
|
385
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-input--docs
|
|
386
|
+
*
|
|
387
|
+
*/
|
|
360
388
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
361
389
|
|
|
390
|
+
/**
|
|
391
|
+
* Separator component for creating horizontal or vertical dividers.
|
|
392
|
+
* Built on top of Radix UI's Separator primitive.
|
|
393
|
+
*
|
|
394
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-separator--docs
|
|
395
|
+
*
|
|
396
|
+
*/
|
|
362
397
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
363
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Sheet component for creating accessible sheets with overlay and content.
|
|
401
|
+
* Built on top of Radix UI's Sheet primitive.
|
|
402
|
+
*
|
|
403
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-sheet--docs
|
|
404
|
+
*
|
|
405
|
+
* @example
|
|
406
|
+
* ```tsx
|
|
407
|
+
* <Sheet>
|
|
408
|
+
* <SheetTrigger>Open Sheet</SheetTrigger>
|
|
409
|
+
* <SheetContent>Sheet Content</SheetContent>
|
|
410
|
+
* </Sheet>
|
|
411
|
+
*/
|
|
364
412
|
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
365
413
|
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
366
414
|
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -383,12 +431,25 @@ declare const SheetFooter: {
|
|
|
383
431
|
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
384
432
|
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
385
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Skeleton component for creating a loading state.
|
|
436
|
+
* Built on top of shadcn/ui's Skeleton component.
|
|
437
|
+
*
|
|
438
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-skeleton--docs
|
|
439
|
+
*
|
|
440
|
+
* @example
|
|
441
|
+
* ```tsx
|
|
442
|
+
* <Skeleton className="w-10 h-10" />
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
386
445
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
387
446
|
|
|
388
447
|
/**
|
|
389
448
|
* Avatar component that displays a user's profile picture or fallback.
|
|
390
449
|
* Built on top of Radix UI's Avatar primitive.
|
|
391
450
|
*
|
|
451
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-avatar--docs
|
|
452
|
+
*
|
|
392
453
|
* @example
|
|
393
454
|
* ```tsx
|
|
394
455
|
* <Avatar>
|
|
@@ -413,6 +474,22 @@ type AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;
|
|
|
413
474
|
type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
|
|
414
475
|
type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
|
|
415
476
|
|
|
477
|
+
/**
|
|
478
|
+
* TooltipProvider component for creating accessible tooltips.
|
|
479
|
+
* Built on top of Radix UI's Tooltip primitive.
|
|
480
|
+
*
|
|
481
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-tooltip--docs
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```tsx
|
|
485
|
+
* <TooltipProvider>
|
|
486
|
+
* <Tooltip>
|
|
487
|
+
* <TooltipTrigger>Hover me</TooltipTrigger>
|
|
488
|
+
* <TooltipContent>Tooltip content</TooltipContent>
|
|
489
|
+
* </Tooltip>
|
|
490
|
+
* </TooltipProvider>
|
|
491
|
+
* ```
|
|
492
|
+
*/
|
|
416
493
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
417
494
|
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
418
495
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -442,6 +519,8 @@ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
442
519
|
* Badge component for displaying status, counts, or labels.
|
|
443
520
|
* Supports various variants, sizes, and optional icons.
|
|
444
521
|
*
|
|
522
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-badge--docs
|
|
523
|
+
*
|
|
445
524
|
* @example
|
|
446
525
|
* ```tsx
|
|
447
526
|
* <Badge variant="success">Active</Badge>
|
|
@@ -538,6 +617,18 @@ interface FormProviderProps {
|
|
|
538
617
|
/**
|
|
539
618
|
* Form component that provides form context to all child components.
|
|
540
619
|
* Built on top of react-hook-form's FormProvider.
|
|
620
|
+
*
|
|
621
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-form--docs
|
|
622
|
+
*
|
|
623
|
+
* @example
|
|
624
|
+
* ```tsx
|
|
625
|
+
* <Form>
|
|
626
|
+
* <FormField>
|
|
627
|
+
* <FormItem>
|
|
628
|
+
* <FormLabel>Name</FormLabel>
|
|
629
|
+
* </FormItem>
|
|
630
|
+
* </FormField>
|
|
631
|
+
* </Form>
|
|
541
632
|
*/
|
|
542
633
|
declare const Form: ({ children, methods, onSubmit }: FormProviderProps) => react_jsx_runtime.JSX.Element;
|
|
543
634
|
/**
|
|
@@ -589,6 +680,13 @@ declare const typographyVariants: (props?: ({
|
|
|
589
680
|
interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
590
681
|
as?: React$1.ElementType;
|
|
591
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* Typography component for creating accessible text elements.
|
|
685
|
+
* Built on top of shadcn/ui's Typography component.
|
|
686
|
+
*
|
|
687
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-typography--docs
|
|
688
|
+
*
|
|
689
|
+
*/
|
|
592
690
|
declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
|
|
593
691
|
|
|
594
692
|
type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
|
|
@@ -612,6 +710,12 @@ interface PageLoaderProps$1 {
|
|
|
612
710
|
*/
|
|
613
711
|
color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
|
|
614
712
|
}
|
|
713
|
+
/**
|
|
714
|
+
* PageLoader component for displaying a loading indicator.
|
|
715
|
+
*
|
|
716
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-page-loader--docs
|
|
717
|
+
*
|
|
718
|
+
*/
|
|
615
719
|
declare function PageLoader({ className, size, text, color }: PageLoaderProps$1): react_jsx_runtime.JSX.Element;
|
|
616
720
|
|
|
617
721
|
interface PageLoaderProps {
|
|
@@ -637,6 +741,8 @@ interface PageLoaderProps {
|
|
|
637
741
|
* Card is a flexible container component that can be used to group related content and actions.
|
|
638
742
|
* It provides a consistent visual style with a subtle border, shadow, and rounded corners.
|
|
639
743
|
*
|
|
744
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs
|
|
745
|
+
*
|
|
640
746
|
* @example
|
|
641
747
|
* ```tsx
|
|
642
748
|
* // Basic card
|
|
@@ -761,6 +867,8 @@ interface NavigationMenuIndicatorProps extends React.ComponentPropsWithoutRef<ty
|
|
|
761
867
|
* NavigationMenu component for creating accessible navigation menus with dropdowns.
|
|
762
868
|
* Built on top of Radix UI's NavigationMenu primitive.
|
|
763
869
|
*
|
|
870
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-navigation-menu--docs
|
|
871
|
+
*
|
|
764
872
|
* @example
|
|
765
873
|
* ```tsx
|
|
766
874
|
* <NavigationMenu>
|
|
@@ -824,6 +932,8 @@ interface RHFTextFieldProps<TFieldValues extends FieldValues = FieldValues, TNam
|
|
|
824
932
|
* A text field component that integrates with React Hook Form.
|
|
825
933
|
* Provides form validation, error handling, and accessibility features.
|
|
826
934
|
*
|
|
935
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-text-field--docs
|
|
936
|
+
*
|
|
827
937
|
* @example
|
|
828
938
|
* ```tsx
|
|
829
939
|
* <RHFTextField
|
|
@@ -914,6 +1024,31 @@ declare const SidebarProvider: React$1.ForwardRefExoticComponent<Omit<React$1.Cl
|
|
|
914
1024
|
open?: boolean;
|
|
915
1025
|
onOpenChange?: (open: boolean) => void;
|
|
916
1026
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1027
|
+
/**
|
|
1028
|
+
* A flexible sidebar component that supports various layouts and configurations.
|
|
1029
|
+
* The sidebar can be positioned on either side of the screen and supports different
|
|
1030
|
+
* visual styles and collapse behaviors.
|
|
1031
|
+
*
|
|
1032
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-sidebar--docs
|
|
1033
|
+
*
|
|
1034
|
+
* @example
|
|
1035
|
+
* ```tsx
|
|
1036
|
+
* <Sidebar>
|
|
1037
|
+
* <SidebarHeader>
|
|
1038
|
+
* <SidebarTitle>Dashboard</SidebarTitle>
|
|
1039
|
+
* </SidebarHeader>
|
|
1040
|
+
* <SidebarContent>
|
|
1041
|
+
* <SidebarMenu>
|
|
1042
|
+
* <SidebarMenuItem icon={<HomeIcon />}>Home</SidebarMenuItem>
|
|
1043
|
+
* <SidebarMenuItem icon={<SettingsIcon />}>Settings</SidebarMenuItem>
|
|
1044
|
+
* </SidebarMenu>
|
|
1045
|
+
* </SidebarContent>
|
|
1046
|
+
* <SidebarFooter>
|
|
1047
|
+
* <SidebarTrigger />
|
|
1048
|
+
* </SidebarFooter>
|
|
1049
|
+
* </Sidebar>
|
|
1050
|
+
* ```
|
|
1051
|
+
*/
|
|
917
1052
|
declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
918
1053
|
side?: "left" | "right";
|
|
919
1054
|
variant?: "sidebar" | "floating" | "inset";
|
|
@@ -1008,6 +1143,24 @@ type SidebarGroupActionProps = React$1.ComponentProps<"button"> & {
|
|
|
1008
1143
|
asChild?: boolean;
|
|
1009
1144
|
};
|
|
1010
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* DropdownMenu component for creating accessible dropdown menus.
|
|
1148
|
+
* Built on top of Radix UI's DropdownMenu primitive.
|
|
1149
|
+
*
|
|
1150
|
+
* @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
|
|
1151
|
+
*
|
|
1152
|
+
* @example
|
|
1153
|
+
* ```tsx
|
|
1154
|
+
* <DropdownMenu>
|
|
1155
|
+
* <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
|
|
1156
|
+
* <DropdownMenuContent>
|
|
1157
|
+
* <DropdownMenuItem>Item 1</DropdownMenuItem>
|
|
1158
|
+
* <DropdownMenuItem>Item 2</DropdownMenuItem>
|
|
1159
|
+
* <DropdownMenuItem>Item 3</DropdownMenuItem>
|
|
1160
|
+
* </DropdownMenuContent>
|
|
1161
|
+
* </DropdownMenu>
|
|
1162
|
+
* ```
|
|
1163
|
+
*/
|
|
1011
1164
|
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
1012
1165
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1013
1166
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|