@me1a/ui 2.1.8 → 2.2.0

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 (70) hide show
  1. package/dist/atoms.cjs.js +1 -1
  2. package/dist/atoms.d.mts +546 -16
  3. package/dist/atoms.d.ts +546 -16
  4. package/dist/atoms.esm.js +1 -1
  5. package/dist/checkbox-DxgDKaHx.d.mts +108 -0
  6. package/dist/checkbox-DxgDKaHx.d.ts +108 -0
  7. package/dist/chunk-23T2PH5G.esm.js +2 -0
  8. package/dist/{chunk-5ZMFQLBF.esm.js.map → chunk-23T2PH5G.esm.js.map} +1 -1
  9. package/dist/chunk-2QG3QTSW.cjs.js +2 -0
  10. package/dist/chunk-2QG3QTSW.cjs.js.map +1 -0
  11. package/dist/chunk-DTM5LZHM.cjs.js +2 -0
  12. package/dist/chunk-DTM5LZHM.cjs.js.map +1 -0
  13. package/dist/chunk-HW32JE75.cjs.js +2 -0
  14. package/dist/chunk-HW32JE75.cjs.js.map +1 -0
  15. package/dist/chunk-J5A6PILI.cjs.js +2 -0
  16. package/dist/chunk-J5A6PILI.cjs.js.map +1 -0
  17. package/dist/{chunk-IXYLGKQT.cjs.js → chunk-JIRS6MWF.cjs.js} +2 -2
  18. package/dist/{chunk-IXYLGKQT.cjs.js.map → chunk-JIRS6MWF.cjs.js.map} +1 -1
  19. package/dist/chunk-JUZG25DH.esm.js +2 -0
  20. package/dist/chunk-JUZG25DH.esm.js.map +1 -0
  21. package/dist/chunk-MOYOCJW6.esm.js +2 -0
  22. package/dist/chunk-MOYOCJW6.esm.js.map +1 -0
  23. package/dist/chunk-Q76IMLQ3.esm.js +2 -0
  24. package/dist/chunk-Q76IMLQ3.esm.js.map +1 -0
  25. package/dist/chunk-STRDPP3B.esm.js +2 -0
  26. package/dist/chunk-STRDPP3B.esm.js.map +1 -0
  27. package/dist/chunk-UK47BFA3.cjs.js +2 -0
  28. package/dist/chunk-UK47BFA3.cjs.js.map +1 -0
  29. package/dist/chunk-YEZB7AOJ.esm.js +2 -0
  30. package/dist/chunk-YEZB7AOJ.esm.js.map +1 -0
  31. package/dist/index.cjs.js +1 -1
  32. package/dist/index.d.mts +11 -3
  33. package/dist/index.d.ts +11 -3
  34. package/dist/index.esm.js +1 -1
  35. package/dist/molecules.cjs.js +1 -1
  36. package/dist/molecules.d.mts +30 -1
  37. package/dist/molecules.d.ts +30 -1
  38. package/dist/molecules.esm.js +1 -1
  39. package/dist/organisms.cjs.js +1 -1
  40. package/dist/organisms.esm.js +1 -1
  41. package/dist/rhf.cjs.js +1 -1
  42. package/dist/rhf.cjs.js.map +1 -1
  43. package/dist/rhf.d.mts +211 -2
  44. package/dist/rhf.d.ts +211 -2
  45. package/dist/rhf.esm.js +1 -1
  46. package/dist/rhf.esm.js.map +1 -1
  47. package/package.json +24 -12
  48. package/dist/chunk-3HTFCAYW.esm.js +0 -2
  49. package/dist/chunk-3HTFCAYW.esm.js.map +0 -1
  50. package/dist/chunk-5ZMFQLBF.esm.js +0 -2
  51. package/dist/chunk-7NN2L46N.esm.js +0 -2
  52. package/dist/chunk-7NN2L46N.esm.js.map +0 -1
  53. package/dist/chunk-BR7Z6MCL.cjs.js +0 -2
  54. package/dist/chunk-BR7Z6MCL.cjs.js.map +0 -1
  55. package/dist/chunk-C4ZAMI2P.cjs.js +0 -2
  56. package/dist/chunk-C4ZAMI2P.cjs.js.map +0 -1
  57. package/dist/chunk-EBPUGBUT.esm.js +0 -2
  58. package/dist/chunk-EBPUGBUT.esm.js.map +0 -1
  59. package/dist/chunk-ELZV2CGE.cjs.js +0 -2
  60. package/dist/chunk-ELZV2CGE.cjs.js.map +0 -1
  61. package/dist/chunk-LCAU4YZI.esm.js +0 -2
  62. package/dist/chunk-LCAU4YZI.esm.js.map +0 -1
  63. package/dist/chunk-OZY26HWB.cjs.js +0 -2
  64. package/dist/chunk-OZY26HWB.cjs.js.map +0 -1
  65. package/dist/chunk-PEQ3VT44.esm.js +0 -2
  66. package/dist/chunk-PEQ3VT44.esm.js.map +0 -1
  67. package/dist/chunk-UAZIJGWR.cjs.js +0 -2
  68. package/dist/chunk-UAZIJGWR.cjs.js.map +0 -1
  69. package/dist/input-Ruz0ZoY6.d.mts +0 -12
  70. package/dist/input-Ruz0ZoY6.d.ts +0 -12
package/dist/atoms.d.ts CHANGED
@@ -1,15 +1,25 @@
1
- export { B as Button, a as ButtonProps, T as Tooltip, d as TooltipContent, e as TooltipProvider, c as TooltipTrigger, b as buttonVariants } from './tooltip-B4jzaurK.js';
1
+ import { a as ButtonProps } from './tooltip-B4jzaurK.js';
2
+ export { B as Button, T as Tooltip, d as TooltipContent, e as TooltipProvider, c as TooltipTrigger, b as buttonVariants } from './tooltip-B4jzaurK.js';
2
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
4
  import * as React$1 from 'react';
5
+ import { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react';
4
6
  import { VariantProps } from 'class-variance-authority';
5
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
8
  import * as DialogPrimitive from '@radix-ui/react-dialog';
7
- export { I as Input } from './input-Ruz0ZoY6.js';
9
+ import { DialogProps } from '@radix-ui/react-dialog';
10
+ export { C as Checkbox, I as Input, L as Label, a as LabelProps, R as RadioGroup, b as RadioGroupItem, d as RadioItemContainer, c as RadioItemLabel, S as Switch } from './checkbox-DxgDKaHx.js';
8
11
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
9
12
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
10
- import * as LabelPrimitive from '@radix-ui/react-label';
11
13
  export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from './toast-2xT7L1tJ.js';
14
+ import * as ResizablePrimitive from 'react-resizable-panels';
15
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
16
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
17
+ import { Command as Command$1 } from 'cmdk';
18
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
19
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
20
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
12
21
  import '@radix-ui/react-tooltip';
22
+ import '@radix-ui/react-label';
13
23
  import '@radix-ui/react-toast';
14
24
 
15
25
  /**
@@ -483,18 +493,6 @@ interface PageLoaderProps {
483
493
  color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
484
494
  }
485
495
 
486
- declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
487
- interface LabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
488
- }
489
- /**
490
- * Label component for creating accessible labels.
491
- * Built on top of Radix UI's Label primitive.
492
- *
493
- * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-label--docs
494
- *
495
- */
496
- declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
497
-
498
496
  /**
499
497
  * Toaster component for managing and displaying toast notifications.
500
498
  * Built on top of the Toast primitive components.
@@ -518,4 +516,536 @@ declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefA
518
516
  */
519
517
  declare function Toaster(): react_jsx_runtime.JSX.Element;
520
518
 
521
- 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, Label, type LabelProps, PageLoader, type PageLoaderProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Stack, type StackProps, TextField, type TextFieldProps, Toaster, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, typographyVariants };
519
+ interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
520
+ }
521
+ interface TableHeaderProps extends React$1.HTMLAttributes<HTMLTableSectionElement> {
522
+ }
523
+ interface TableBodyProps extends React$1.HTMLAttributes<HTMLTableSectionElement> {
524
+ }
525
+ interface TableFooterProps extends React$1.HTMLAttributes<HTMLTableSectionElement> {
526
+ }
527
+ interface TableRowProps extends React$1.HTMLAttributes<HTMLTableRowElement> {
528
+ }
529
+ interface TableHeadProps extends React$1.ThHTMLAttributes<HTMLTableCellElement> {
530
+ }
531
+ interface TableCellProps extends React$1.TdHTMLAttributes<HTMLTableCellElement> {
532
+ }
533
+ interface TableCaptionProps extends React$1.HTMLAttributes<HTMLTableCaptionElement> {
534
+ }
535
+
536
+ /**
537
+ * Table component that provides a structured way to display data in rows and columns.
538
+ * Built on top of native HTML table elements with enhanced styling and accessibility.
539
+ *
540
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-table--docs
541
+ *
542
+ * @example
543
+ * ```tsx
544
+ * <Table>
545
+ * <TableHeader>
546
+ * <TableRow>
547
+ * <TableHead>Name</TableHead>
548
+ * <TableHead>Email</TableHead>
549
+ * </TableRow>
550
+ * </TableHeader>
551
+ * <TableBody>
552
+ * <TableRow>
553
+ * <TableCell>John Doe</TableCell>
554
+ * <TableCell>john@example.com</TableCell>
555
+ * </TableRow>
556
+ * </TableBody>
557
+ * </Table>
558
+ * ```
559
+ */
560
+ declare const Table: React$1.ForwardRefExoticComponent<TableProps & React$1.RefAttributes<HTMLTableElement>>;
561
+ declare const TableHeader: React$1.ForwardRefExoticComponent<TableHeaderProps & React$1.RefAttributes<HTMLTableSectionElement>>;
562
+ declare const TableBody: React$1.ForwardRefExoticComponent<TableBodyProps & React$1.RefAttributes<HTMLTableSectionElement>>;
563
+ declare const TableFooter: React$1.ForwardRefExoticComponent<TableFooterProps & React$1.RefAttributes<HTMLTableSectionElement>>;
564
+ declare const TableRow: React$1.ForwardRefExoticComponent<TableRowProps & React$1.RefAttributes<HTMLTableRowElement>>;
565
+ declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
566
+ declare const TableCell: React$1.ForwardRefExoticComponent<TableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
567
+ declare const TableCaption: React$1.ForwardRefExoticComponent<TableCaptionProps & React$1.RefAttributes<HTMLTableCaptionElement>>;
568
+
569
+ /**
570
+ * Resizable component that provides resizable panel functionality.
571
+ * Built on top of react-resizable-panels.
572
+ *
573
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-resizable--docs
574
+ *
575
+ * @example
576
+ * ```tsx
577
+ * <ResizablePanelGroup>
578
+ * <ResizablePanel defaultSize={20}>
579
+ * <div>Left Panel</div>
580
+ * </ResizablePanel>
581
+ * <ResizableHandle withHandle />
582
+ * <ResizablePanel defaultSize={80}>
583
+ * <div>Right Panel</div>
584
+ * </ResizablePanel>
585
+ * </ResizablePanelGroup>
586
+ * ```
587
+ */
588
+ declare const ResizablePanelGroup: ({ className, ...props }: ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react_jsx_runtime.JSX.Element;
589
+ declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLSpanElement | HTMLInputElement | HTMLLabelElement | HTMLObjectElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDivElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
590
+ className?: string;
591
+ collapsedSize?: number | undefined;
592
+ collapsible?: boolean | undefined;
593
+ defaultSize?: number | undefined;
594
+ id?: string;
595
+ maxSize?: number | undefined;
596
+ minSize?: number | undefined;
597
+ onCollapse?: ResizablePrimitive.PanelOnCollapse;
598
+ onExpand?: ResizablePrimitive.PanelOnExpand;
599
+ onResize?: ResizablePrimitive.PanelOnResize;
600
+ order?: number;
601
+ style?: object;
602
+ tagName?: keyof HTMLElementTagNameMap | undefined;
603
+ } & {
604
+ children?: React$1.ReactNode | undefined;
605
+ } & React$1.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
606
+ declare const ResizableHandle: ({ withHandle, className, ...props }: ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
607
+ withHandle?: boolean;
608
+ }) => react_jsx_runtime.JSX.Element;
609
+
610
+ type ResizablePanelGroupProps = ComponentProps<typeof ResizablePrimitive.PanelGroup>;
611
+ type ResizablePanelProps = ComponentProps<typeof ResizablePrimitive.Panel>;
612
+ type ResizableHandleProps = ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
613
+ withHandle?: boolean;
614
+ };
615
+
616
+ type SelectOption = {
617
+ id: string;
618
+ label: string;
619
+ startIcon?: React$1.ReactNode;
620
+ endIcon?: React$1.ReactNode;
621
+ className?: string;
622
+ disabled?: boolean;
623
+ };
624
+ type SelectProps = {
625
+ /** Whether the select is searchable */
626
+ searchable?: boolean;
627
+ /** Whether the select should take up the full width of its container */
628
+ fullWidth?: boolean;
629
+ /** Currently selected value */
630
+ value: string;
631
+ /** Array of options to display in the select */
632
+ options: SelectOption[];
633
+ /** Callback fired when the value changes */
634
+ onChange: (value: string) => void;
635
+ /** Render a custom CommandList for the select, if not provided, the select will render a default CommandList with the options */
636
+ renderCommandList?: (options: SelectOption[]) => React$1.ReactNode;
637
+ /** Placeholder text to show when no value is selected */
638
+ placeholder?: string;
639
+ /** Whether the select is disabled */
640
+ disabled?: boolean;
641
+ /** Whether the select is required */
642
+ required?: boolean;
643
+ /** Error message to display */
644
+ error?: string;
645
+ /** Additional class name for the select */
646
+ className?: string;
647
+ /** ID for the select element */
648
+ id?: string;
649
+ };
650
+ /**
651
+ * SearchableSelect component that provides a searchable dropdown select input.
652
+ * Built on top of Radix UI's Select primitive.
653
+ *
654
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs-atoms-select--docs
655
+ *
656
+ * @example
657
+ * ```tsx
658
+ * <Select
659
+ * options={[
660
+ * { id: "1", label: "Option 1" },
661
+ * { id: "2", label: "Option 2" }
662
+ * ]}
663
+ * value="1"
664
+ * onChange={setValue}
665
+ * required
666
+ * />
667
+ * ```
668
+ */
669
+ declare function Select({ options, value, onChange, placeholder, disabled, required, error, className, fullWidth, searchable, id, renderCommandList }: SelectProps): react_jsx_runtime.JSX.Element;
670
+
671
+ type MultiSelectOption = {
672
+ id: string;
673
+ label: string;
674
+ startIcon?: React$1.ReactNode;
675
+ endIcon?: React$1.ReactNode;
676
+ className?: string;
677
+ disabled?: boolean;
678
+ };
679
+ type MultiSelectProps = {
680
+ /** Whether the select is searchable */
681
+ searchable?: boolean;
682
+ /** Whether the select should take up the full width of its container */
683
+ fullWidth?: boolean;
684
+ /** Array of options to display in the select */
685
+ options: MultiSelectOption[];
686
+ /** Currently selected values */
687
+ value: string[];
688
+ /** Callback fired when the values change */
689
+ onChange: (value: string[]) => void;
690
+ /** Render a custom CommandList for the select, if not provided, the select will render a default CommandList with the options */
691
+ renderCommandList?: (options: MultiSelectOption[]) => React$1.ReactNode;
692
+ /** Placeholder text to show when no value is selected */
693
+ placeholder?: string;
694
+ /** Whether the select is disabled */
695
+ disabled?: boolean;
696
+ /** Whether the select is required */
697
+ required?: boolean;
698
+ /** Error message to display */
699
+ error?: string;
700
+ /** Additional class name for the select */
701
+ className?: string;
702
+ /** ID for the select element */
703
+ id?: string;
704
+ /** Maximum number of selections allowed */
705
+ maxSelections?: number;
706
+ /** Whether to show the select all option */
707
+ showSelectAll?: boolean;
708
+ };
709
+ /**
710
+ * MultiSelect component that provides a searchable dropdown select input with multiple selection.
711
+ * Built on top of Radix UI's Select primitive.
712
+ *
713
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs-atoms-multiselect--docs
714
+ *
715
+ * @example
716
+ * ```tsx
717
+ * <MultiSelect
718
+ * options={[
719
+ * { id: "1", label: "Option 1" },
720
+ * { id: "2", label: "Option 2" }
721
+ * ]}
722
+ * value={["1"]}
723
+ * onChange={setValue}
724
+ * showSelectAll
725
+ * />
726
+ * ```
727
+ */
728
+ declare function MultiSelect({ options, value, onChange, placeholder, disabled, required, error, className, fullWidth, searchable, id, maxSelections, showSelectAll, renderCommandList }: MultiSelectProps): react_jsx_runtime.JSX.Element;
729
+
730
+ type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;
731
+
732
+ /**
733
+ * Collapsible component that allows content to be expanded and collapsed.
734
+ * Built on top of Radix UI's Collapsible primitive.
735
+ *
736
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-collapsible--docs
737
+ *
738
+ * @example
739
+ * ```tsx
740
+ * <Collapsible>
741
+ * <CollapsibleTrigger>Toggle</CollapsibleTrigger>
742
+ * <CollapsibleContent>Content</CollapsibleContent>
743
+ * </Collapsible>
744
+ * ```
745
+ */
746
+ declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
747
+ declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
748
+ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
749
+
750
+ type CollapsibleProps = React$1.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>;
751
+ type CollapsibleTriggerProps = React$1.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>;
752
+ type CollapsibleContentProps = React$1.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Content>;
753
+
754
+ type CommandProps = ComponentPropsWithoutRef<typeof Command$1>;
755
+ type CommandRef = ElementRef<typeof Command$1>;
756
+ type CommandDialogProps = DialogProps;
757
+ type CommandInputProps = ComponentPropsWithoutRef<typeof Command$1.Input>;
758
+ type CommandInputRef = ElementRef<typeof Command$1.Input>;
759
+ type CommandListProps = ComponentPropsWithoutRef<typeof Command$1.List>;
760
+ type CommandListRef = ElementRef<typeof Command$1.List>;
761
+ type CommandEmptyProps = ComponentPropsWithoutRef<typeof Command$1.Empty>;
762
+ type CommandEmptyRef = ElementRef<typeof Command$1.Empty>;
763
+ type CommandGroupProps = ComponentPropsWithoutRef<typeof Command$1.Group>;
764
+ type CommandGroupRef = ElementRef<typeof Command$1.Group>;
765
+ type CommandSeparatorProps = ComponentPropsWithoutRef<typeof Command$1.Separator>;
766
+ type CommandSeparatorRef = ElementRef<typeof Command$1.Separator>;
767
+ type CommandItemProps = ComponentPropsWithoutRef<typeof Command$1.Item>;
768
+ type CommandItemRef = ElementRef<typeof Command$1.Item>;
769
+ type CommandShortcutProps = React$1.HTMLAttributes<HTMLSpanElement>;
770
+
771
+ /**
772
+ * Command component that provides a command palette interface.
773
+ * Built on top of cmdk and Radix UI's Dialog primitive.
774
+ *
775
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-command--docs
776
+ *
777
+ * @example
778
+ * ```tsx
779
+ * <Command>
780
+ * <CommandInput placeholder="Search..." />
781
+ * <CommandList>
782
+ * <CommandEmpty>No results found.</CommandEmpty>
783
+ * <CommandGroup heading="Suggestions">
784
+ * <CommandItem>Calendar</CommandItem>
785
+ * <CommandItem>Search</CommandItem>
786
+ * </CommandGroup>
787
+ * </CommandList>
788
+ * </Command>
789
+ * ```
790
+ */
791
+ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
792
+ children?: React$1.ReactNode;
793
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
794
+ ref?: React$1.Ref<HTMLDivElement>;
795
+ } & {
796
+ asChild?: boolean;
797
+ }, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
798
+ label?: string;
799
+ shouldFilter?: boolean;
800
+ filter?: (value: string, search: string, keywords?: string[]) => number;
801
+ defaultValue?: string;
802
+ value?: string;
803
+ onValueChange?: (value: string) => void;
804
+ loop?: boolean;
805
+ disablePointerSelection?: boolean;
806
+ vimBindings?: boolean;
807
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
808
+ declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
809
+ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
810
+ ref?: React$1.Ref<HTMLInputElement>;
811
+ } & {
812
+ asChild?: boolean;
813
+ }, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
814
+ value?: string;
815
+ onValueChange?: (search: string) => void;
816
+ } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
817
+ declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
818
+ children?: React$1.ReactNode;
819
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
820
+ ref?: React$1.Ref<HTMLDivElement>;
821
+ } & {
822
+ asChild?: boolean;
823
+ }, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
824
+ label?: string;
825
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
826
+ declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
827
+ children?: React$1.ReactNode;
828
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
829
+ ref?: React$1.Ref<HTMLDivElement>;
830
+ } & {
831
+ asChild?: boolean;
832
+ }, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
833
+ declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
834
+ children?: React$1.ReactNode;
835
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
836
+ ref?: React$1.Ref<HTMLDivElement>;
837
+ } & {
838
+ asChild?: boolean;
839
+ }, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
840
+ heading?: React$1.ReactNode;
841
+ value?: string;
842
+ forceMount?: boolean;
843
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
844
+ declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
845
+ ref?: React$1.Ref<HTMLDivElement>;
846
+ } & {
847
+ asChild?: boolean;
848
+ }, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
849
+ alwaysRender?: boolean;
850
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
851
+ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
852
+ children?: React$1.ReactNode;
853
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
854
+ ref?: React$1.Ref<HTMLDivElement>;
855
+ } & {
856
+ asChild?: boolean;
857
+ }, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
858
+ disabled?: boolean;
859
+ onSelect?: (value: string) => void;
860
+ value?: string;
861
+ keywords?: string[];
862
+ forceMount?: boolean;
863
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
864
+ declare const CommandShortcut: {
865
+ ({ className, ...props }: CommandShortcutProps): react_jsx_runtime.JSX.Element;
866
+ displayName: string;
867
+ };
868
+
869
+ /**
870
+ * Pagination component that provides navigation controls for paginated content.
871
+ * Built on top of shadcn/ui's button component.
872
+ *
873
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-pagination--docs
874
+ *
875
+ * @example
876
+ * ```tsx
877
+ * <Pagination>
878
+ * <PaginationContent>
879
+ * <PaginationItem>
880
+ * <PaginationPrevious href="#" />
881
+ * </PaginationItem>
882
+ * <PaginationItem>
883
+ * <PaginationLink href="#" isActive>1</PaginationLink>
884
+ * </PaginationItem>
885
+ * <PaginationItem>
886
+ * <PaginationEllipsis />
887
+ * </PaginationItem>
888
+ * <PaginationItem>
889
+ * <PaginationNext href="#" />
890
+ * </PaginationItem>
891
+ * </PaginationContent>
892
+ * </Pagination>
893
+ * ```
894
+ */
895
+ declare const Pagination: {
896
+ ({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
897
+ displayName: string;
898
+ };
899
+ declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
900
+ declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
901
+ type PaginationLinkProps$1 = {
902
+ isActive?: boolean;
903
+ } & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
904
+ declare const PaginationLink: {
905
+ ({ className, isActive, size, children, ...props }: PaginationLinkProps$1): react_jsx_runtime.JSX.Element;
906
+ displayName: string;
907
+ };
908
+ declare const PaginationPrevious: {
909
+ ({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
910
+ displayName: string;
911
+ };
912
+ declare const PaginationNext: {
913
+ ({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
914
+ displayName: string;
915
+ };
916
+ declare const PaginationEllipsis: {
917
+ ({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
918
+ displayName: string;
919
+ };
920
+
921
+ type PaginationLinkProps = {
922
+ isActive?: boolean;
923
+ } & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
924
+
925
+ type RadioGroupProps = React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
926
+ type RadioGroupItemProps = React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
927
+
928
+ /**
929
+ * Props for a single-item accordion
930
+ */
931
+ type AccordionSingleProps = React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & {
932
+ /** The type of accordion - must be "single" for this variant */
933
+ type: "single";
934
+ /** The default value of the accordion item */
935
+ defaultValue?: string;
936
+ /** The controlled value of the accordion item */
937
+ value?: string;
938
+ /** Callback fired when the value changes */
939
+ onValueChange?: (_value: string) => void;
940
+ /** Whether the accordion item can be collapsed */
941
+ collapsible?: boolean;
942
+ };
943
+ /**
944
+ * Props for a multiple-item accordion
945
+ */
946
+ type AccordionMultipleProps = React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & {
947
+ /** The type of accordion - must be "multiple" for this variant */
948
+ type: "multiple";
949
+ /** The default values of the accordion items */
950
+ defaultValue?: string[];
951
+ /** The controlled values of the accordion items */
952
+ value?: string[];
953
+ /** Callback fired when the values change */
954
+ onValueChange?: (_value: string[]) => void;
955
+ };
956
+ /**
957
+ * Props for the Accordion component
958
+ */
959
+ type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
960
+ /**
961
+ * Props for an individual accordion item
962
+ */
963
+ interface AccordionItemProps extends React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {
964
+ /** The value of the accordion item */
965
+ value: string;
966
+ }
967
+ /**
968
+ * Props for the accordion trigger button
969
+ */
970
+ interface AccordionTriggerProps extends React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> {
971
+ /** The content of the accordion trigger */
972
+ children: React$1.ReactNode;
973
+ }
974
+ /**
975
+ * Props for the accordion content panel
976
+ */
977
+ interface AccordionContentProps extends React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> {
978
+ /** The content of the accordion panel */
979
+ children: React$1.ReactNode;
980
+ }
981
+
982
+ /**
983
+ * Accordion component that displays a list of expandable/collapsible sections.
984
+ * Built on top of Radix UI's Accordion primitive.
985
+ *
986
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-accordion--docs
987
+ *
988
+ * @example
989
+ * ```tsx
990
+ * <Accordion type="single" collapsible>
991
+ * <AccordionItem value="item-1">
992
+ * <AccordionTrigger>Section 1</AccordionTrigger>
993
+ * <AccordionContent>Content 1</AccordionContent>
994
+ * </AccordionItem>
995
+ * <AccordionItem value="item-2">
996
+ * <AccordionTrigger>Section 2</AccordionTrigger>
997
+ * <AccordionContent>Content 2</AccordionContent>
998
+ * </AccordionItem>
999
+ * </Accordion>
1000
+ * ```
1001
+ */
1002
+ declare const Accordion: React$1.ForwardRefExoticComponent<((Omit<AccordionPrimitive.AccordionSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
1003
+ type: "single";
1004
+ defaultValue?: string;
1005
+ value?: string;
1006
+ onValueChange?: (_value: string) => void;
1007
+ collapsible?: boolean;
1008
+ }) | (Omit<AccordionPrimitive.AccordionMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
1009
+ type: "multiple";
1010
+ defaultValue?: string[];
1011
+ value?: string[];
1012
+ onValueChange?: (_value: string[]) => void;
1013
+ })) & React$1.RefAttributes<HTMLDivElement>>;
1014
+ declare const AccordionItem: React$1.ForwardRefExoticComponent<AccordionItemProps & React$1.RefAttributes<HTMLDivElement>>;
1015
+ declare const AccordionTrigger: React$1.ForwardRefExoticComponent<AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
1016
+ declare const AccordionContent: React$1.ForwardRefExoticComponent<AccordionContentProps & React$1.RefAttributes<HTMLDivElement>>;
1017
+
1018
+ type CheckboxProps = React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
1019
+
1020
+ interface BreadcrumbProps extends React$1.ComponentPropsWithoutRef<"nav"> {
1021
+ separator?: React$1.ReactNode;
1022
+ }
1023
+ interface BreadcrumbListProps extends React$1.ComponentPropsWithoutRef<"ol"> {
1024
+ }
1025
+ interface BreadcrumbItemProps extends React$1.ComponentPropsWithoutRef<"li"> {
1026
+ }
1027
+ interface BreadcrumbLinkProps extends React$1.ComponentPropsWithoutRef<"a"> {
1028
+ asChild?: boolean;
1029
+ }
1030
+ interface BreadcrumbPageProps extends React$1.ComponentPropsWithoutRef<"span"> {
1031
+ }
1032
+ interface BreadcrumbSeparatorProps extends React$1.ComponentProps<"li"> {
1033
+ }
1034
+ interface BreadcrumbEllipsisProps extends React$1.ComponentProps<"span"> {
1035
+ }
1036
+
1037
+ declare const Breadcrumb: React$1.ForwardRefExoticComponent<BreadcrumbProps & React$1.RefAttributes<HTMLElement>>;
1038
+ declare const BreadcrumbList: React$1.ForwardRefExoticComponent<BreadcrumbListProps & React$1.RefAttributes<HTMLOListElement>>;
1039
+ declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<BreadcrumbItemProps & React$1.RefAttributes<HTMLLIElement>>;
1040
+ declare const BreadcrumbLink: React$1.ForwardRefExoticComponent<BreadcrumbLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
1041
+ declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<BreadcrumbPageProps & React$1.RefAttributes<HTMLSpanElement>>;
1042
+ declare const BreadcrumbSeparator: {
1043
+ ({ children, className, ...props }: BreadcrumbSeparatorProps): react_jsx_runtime.JSX.Element;
1044
+ displayName: string;
1045
+ };
1046
+ declare const BreadcrumbEllipsis: {
1047
+ ({ className, ...props }: BreadcrumbEllipsisProps): react_jsx_runtime.JSX.Element;
1048
+ displayName: string;
1049
+ };
1050
+
1051
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, ButtonProps, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, type CommandEmptyRef, CommandGroup, type CommandGroupProps, type CommandGroupRef, CommandInput, type CommandInputProps, type CommandInputRef, CommandItem, type CommandItemProps, type CommandItemRef, CommandList, type CommandListProps, type CommandListRef, type CommandProps, type CommandRef, CommandSeparator, type CommandSeparatorProps, type CommandSeparatorRef, CommandShortcut, type CommandShortcutProps, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, MultiSelect, type MultiSelectOption, type MultiSelectProps, PageLoader, type PageLoaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type RadioGroupItemProps, type RadioGroupProps, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, Select, type SelectOption, type SelectProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Stack, type StackProps, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, TextField, type TextFieldProps, Toaster, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, typographyVariants };
package/dist/atoms.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- export{o as Avatar,q as AvatarFallback,p as AvatarImage,s as Badge,c as Box,b as Container,e as Dialog,h as DialogClose,j as DialogContent,n as DialogDescription,l as DialogFooter,k as DialogHeader,i as DialogOverlay,g as DialogPortal,m as DialogTitle,f as DialogTrigger,v as PageLoader,d as Stack,a as TextField,y as Toast,z as ToastAction,A as ToastClose,C as ToastDescription,w as ToastProvider,B as ToastTitle,x as ToastViewport,D as Toaster,u as Typography,r as badgeVariants,t as typographyVariants}from'./chunk-LCAU4YZI.esm.js';import'./chunk-JKTYFZ5M.esm.js';export{a as Label}from'./chunk-7NN2L46N.esm.js';export{b as Button,c as Separator,d as Sheet,f as SheetClose,i as SheetContent,m as SheetDescription,k as SheetFooter,j as SheetHeader,h as SheetOverlay,g as SheetPortal,l as SheetTitle,e as SheetTrigger,n as Skeleton,p as Tooltip,r as TooltipContent,o as TooltipProvider,q as TooltipTrigger,a as buttonVariants}from'./chunk-3HTFCAYW.esm.js';export{a as Input}from'./chunk-EBPUGBUT.esm.js';import'./chunk-C26U3FL4.esm.js';//# sourceMappingURL=atoms.esm.js.map
1
+ export{ia as Accordion,la as AccordionContent,ja as AccordionItem,ka as AccordionTrigger,o as Avatar,q as AvatarFallback,p as AvatarImage,s as Badge,c as Box,ma as Breadcrumb,sa as BreadcrumbEllipsis,oa as BreadcrumbItem,pa as BreadcrumbLink,na as BreadcrumbList,qa as BreadcrumbPage,ra as BreadcrumbSeparator,_ as Collapsible,aa as CollapsibleContent,$ as CollapsibleTrigger,P as Command,Q as CommandDialog,T as CommandEmpty,U as CommandGroup,R as CommandInput,W as CommandItem,S as CommandList,V as CommandSeparator,X as CommandShortcut,b as Container,e as Dialog,h as DialogClose,j as DialogContent,n as DialogDescription,l as DialogFooter,k as DialogHeader,i as DialogOverlay,g as DialogPortal,m as DialogTitle,f as DialogTrigger,Z as MultiSelect,v as PageLoader,ba as Pagination,ca as PaginationContent,ha as PaginationEllipsis,da as PaginationItem,ea as PaginationLink,ga as PaginationNext,fa as PaginationPrevious,O as ResizableHandle,N as ResizablePanel,M as ResizablePanelGroup,Y as Select,d as Stack,E as Table,G as TableBody,L as TableCaption,K as TableCell,H as TableFooter,J as TableHead,F as TableHeader,I as TableRow,a as TextField,y as Toast,z as ToastAction,A as ToastClose,C as ToastDescription,w as ToastProvider,B as ToastTitle,x as ToastViewport,D as Toaster,u as Typography,r as badgeVariants,t as typographyVariants}from'./chunk-Q76IMLQ3.esm.js';import'./chunk-JKTYFZ5M.esm.js';export{g as Checkbox,a as Label,c as RadioGroup,d as RadioGroupItem,e as RadioItemContainer,f as RadioItemLabel,b as Switch}from'./chunk-MOYOCJW6.esm.js';export{a as Separator,b as Sheet,d as SheetClose,g as SheetContent,k as SheetDescription,i as SheetFooter,h as SheetHeader,f as SheetOverlay,e as SheetPortal,j as SheetTitle,c as SheetTrigger,l as Skeleton,n as Tooltip,p as TooltipContent,m as TooltipProvider,o as TooltipTrigger}from'./chunk-YEZB7AOJ.esm.js';export{b as Button,c as Input,a as buttonVariants}from'./chunk-JUZG25DH.esm.js';import'./chunk-C26U3FL4.esm.js';//# sourceMappingURL=atoms.esm.js.map
2
2
  //# sourceMappingURL=atoms.esm.js.map