@ikatec/nebula-react 0.0.1-alpha.25 → 1.0.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.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ComponentProps } from 'react';
3
+ import React__default, { ComponentProps, PropsWithChildren, HTMLAttributes } from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as PopoverPrimitive from '@radix-ui/react-popover';
6
6
  import * as LabelPrimitive from '@radix-ui/react-label';
@@ -406,7 +406,9 @@ declare function AccordionTrigger({ className, children, ...props }: React$1.Com
406
406
  declare namespace AccordionTrigger {
407
407
  var displayName: string;
408
408
  }
409
- declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
409
+ declare function AccordionContent({ className, children, separator, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content> & {
410
+ separator?: boolean;
411
+ }): react_jsx_runtime.JSX.Element;
410
412
  declare namespace AccordionContent {
411
413
  var displayName: string;
412
414
  }
@@ -426,6 +428,55 @@ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.Tab
426
428
  declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
427
429
  declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
428
430
 
431
+ interface BoxProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
432
+ border?: boolean;
433
+ paddingSize?: 'sm' | 'md' | 'lg';
434
+ shadow?: 'sm' | 'md' | 'lg';
435
+ variant?: 'primary' | 'secondary';
436
+ }
437
+ declare const Box: ({ className, paddingSize, border, shadow, variant, children, ...rest }: BoxProps) => react_jsx_runtime.JSX.Element;
438
+
439
+ type ToastOptions = {
440
+ description?: string;
441
+ action?: {
442
+ label: React__default.ReactNode;
443
+ variant?: 'secondary' | 'ghost';
444
+ onClick: () => void;
445
+ };
446
+ icon?: React__default.ReactNode;
447
+ };
448
+ declare function Toaster(): react_jsx_runtime.JSX.Element;
449
+ declare function success(message: string, options?: Omit<ToastOptions, 'icon'>): void;
450
+ declare function error(message: string, options?: Omit<ToastOptions, 'icon'>): void;
451
+ declare function info(message: string, options?: Omit<ToastOptions, 'icon'>): void;
452
+ declare function custom(message: string, options?: ToastOptions): void;
453
+ declare function promise<T>(promise: Promise<T>, messages: {
454
+ loading: string;
455
+ success: string;
456
+ error: string;
457
+ }, options?: ToastOptions): Promise<T>;
458
+ declare const toast: {
459
+ success: typeof success;
460
+ error: typeof error;
461
+ info: typeof info;
462
+ custom: typeof custom;
463
+ promise: typeof promise;
464
+ };
465
+
466
+ declare const ActionBar: React$1.ForwardRefExoticComponent<DrawerPrimitive.DialogProps & React$1.RefAttributes<void>>;
467
+ declare const ActionBarTrigger: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
468
+ declare const ActionBarPortal: {
469
+ (props: React$1.ComponentProps<typeof DrawerPrimitive.Portal>): react_jsx_runtime.JSX.Element;
470
+ displayName: string;
471
+ };
472
+ declare const ActionBarClose: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
473
+ declare const ActionBarButton: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
474
+ declare const ActionBarDivider: React$1.ForwardRefExoticComponent<Omit<SeparatorProps, "orientation"> & React$1.RefAttributes<HTMLDivElement>>;
475
+ interface ActionBarContentProps {
476
+ portal?: boolean;
477
+ }
478
+ declare const ActionBarContent: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement> & ActionBarContentProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
479
+
429
480
  interface Content {
430
481
  /**
431
482
  * Path to `node_modules` where `flowbite-react` is installed
@@ -542,4 +593,4 @@ declare const setNebulaLanguage: (language: Language) => void;
542
593
  */
543
594
  declare const messages: Map<Language | null | undefined, Messages>;
544
595
 
545
- export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Checkbox, type CheckboxProps, StyledCreatable as Creatable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, InputText, type InputTextProps, Label, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, getNebulaLanguage, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, useNebulaI18n };
596
+ export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Checkbox, type CheckboxProps, StyledCreatable as Creatable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, InputText, type InputTextProps, Label, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, getNebulaLanguage, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useNebulaI18n };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ComponentProps } from 'react';
3
+ import React__default, { ComponentProps, PropsWithChildren, HTMLAttributes } from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as PopoverPrimitive from '@radix-ui/react-popover';
6
6
  import * as LabelPrimitive from '@radix-ui/react-label';
@@ -406,7 +406,9 @@ declare function AccordionTrigger({ className, children, ...props }: React$1.Com
406
406
  declare namespace AccordionTrigger {
407
407
  var displayName: string;
408
408
  }
409
- declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
409
+ declare function AccordionContent({ className, children, separator, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content> & {
410
+ separator?: boolean;
411
+ }): react_jsx_runtime.JSX.Element;
410
412
  declare namespace AccordionContent {
411
413
  var displayName: string;
412
414
  }
@@ -426,6 +428,55 @@ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.Tab
426
428
  declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
427
429
  declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
428
430
 
431
+ interface BoxProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
432
+ border?: boolean;
433
+ paddingSize?: 'sm' | 'md' | 'lg';
434
+ shadow?: 'sm' | 'md' | 'lg';
435
+ variant?: 'primary' | 'secondary';
436
+ }
437
+ declare const Box: ({ className, paddingSize, border, shadow, variant, children, ...rest }: BoxProps) => react_jsx_runtime.JSX.Element;
438
+
439
+ type ToastOptions = {
440
+ description?: string;
441
+ action?: {
442
+ label: React__default.ReactNode;
443
+ variant?: 'secondary' | 'ghost';
444
+ onClick: () => void;
445
+ };
446
+ icon?: React__default.ReactNode;
447
+ };
448
+ declare function Toaster(): react_jsx_runtime.JSX.Element;
449
+ declare function success(message: string, options?: Omit<ToastOptions, 'icon'>): void;
450
+ declare function error(message: string, options?: Omit<ToastOptions, 'icon'>): void;
451
+ declare function info(message: string, options?: Omit<ToastOptions, 'icon'>): void;
452
+ declare function custom(message: string, options?: ToastOptions): void;
453
+ declare function promise<T>(promise: Promise<T>, messages: {
454
+ loading: string;
455
+ success: string;
456
+ error: string;
457
+ }, options?: ToastOptions): Promise<T>;
458
+ declare const toast: {
459
+ success: typeof success;
460
+ error: typeof error;
461
+ info: typeof info;
462
+ custom: typeof custom;
463
+ promise: typeof promise;
464
+ };
465
+
466
+ declare const ActionBar: React$1.ForwardRefExoticComponent<DrawerPrimitive.DialogProps & React$1.RefAttributes<void>>;
467
+ declare const ActionBarTrigger: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
468
+ declare const ActionBarPortal: {
469
+ (props: React$1.ComponentProps<typeof DrawerPrimitive.Portal>): react_jsx_runtime.JSX.Element;
470
+ displayName: string;
471
+ };
472
+ declare const ActionBarClose: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
473
+ declare const ActionBarButton: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
474
+ declare const ActionBarDivider: React$1.ForwardRefExoticComponent<Omit<SeparatorProps, "orientation"> & React$1.RefAttributes<HTMLDivElement>>;
475
+ interface ActionBarContentProps {
476
+ portal?: boolean;
477
+ }
478
+ declare const ActionBarContent: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement> & ActionBarContentProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
479
+
429
480
  interface Content {
430
481
  /**
431
482
  * Path to `node_modules` where `flowbite-react` is installed
@@ -542,4 +593,4 @@ declare const setNebulaLanguage: (language: Language) => void;
542
593
  */
543
594
  declare const messages: Map<Language | null | undefined, Messages>;
544
595
 
545
- export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Checkbox, type CheckboxProps, StyledCreatable as Creatable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, InputText, type InputTextProps, Label, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, getNebulaLanguage, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, useNebulaI18n };
596
+ export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Checkbox, type CheckboxProps, StyledCreatable as Creatable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, InputText, type InputTextProps, Label, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, getNebulaLanguage, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useNebulaI18n };
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var SwitchPrimitives = require('@radix-ui/react-switch');
20
20
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
21
21
  var AccordionPrimitive = require('@radix-ui/react-accordion');
22
22
  var TabsPrimitive = require('@radix-ui/react-tabs');
23
+ var sonner = require('sonner');
23
24
 
24
25
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
25
26
 
@@ -595,28 +596,35 @@ var __iconNode6 = [
595
596
  ];
596
597
  var ChevronsRight = createLucideIcon("ChevronsRight", __iconNode6);
597
598
 
598
- // ../../node_modules/lucide-react/dist/esm/icons/circle-x.js
599
+ // ../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js
599
600
  var __iconNode7 = [
601
+ ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
602
+ ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
603
+ ];
604
+ var CircleCheckBig = createLucideIcon("CircleCheckBig", __iconNode7);
605
+
606
+ // ../../node_modules/lucide-react/dist/esm/icons/circle-x.js
607
+ var __iconNode8 = [
600
608
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
601
609
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
602
610
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
603
611
  ];
604
- var CircleX = createLucideIcon("CircleX", __iconNode7);
612
+ var CircleX = createLucideIcon("CircleX", __iconNode8);
605
613
 
606
614
  // ../../node_modules/lucide-react/dist/esm/icons/circle.js
607
- var __iconNode8 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
608
- var Circle = createLucideIcon("Circle", __iconNode8);
615
+ var __iconNode9 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
616
+ var Circle = createLucideIcon("Circle", __iconNode9);
609
617
 
610
618
  // ../../node_modules/lucide-react/dist/esm/icons/ellipsis.js
611
- var __iconNode9 = [
619
+ var __iconNode10 = [
612
620
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
613
621
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
614
622
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
615
623
  ];
616
- var Ellipsis = createLucideIcon("Ellipsis", __iconNode9);
624
+ var Ellipsis = createLucideIcon("Ellipsis", __iconNode10);
617
625
 
618
626
  // ../../node_modules/lucide-react/dist/esm/icons/eye-off.js
619
- var __iconNode10 = [
627
+ var __iconNode11 = [
620
628
  [
621
629
  "path",
622
630
  {
@@ -634,10 +642,10 @@ var __iconNode10 = [
634
642
  ],
635
643
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
636
644
  ];
637
- var EyeOff = createLucideIcon("EyeOff", __iconNode10);
645
+ var EyeOff = createLucideIcon("EyeOff", __iconNode11);
638
646
 
639
647
  // ../../node_modules/lucide-react/dist/esm/icons/eye.js
640
- var __iconNode11 = [
648
+ var __iconNode12 = [
641
649
  [
642
650
  "path",
643
651
  {
@@ -647,18 +655,26 @@ var __iconNode11 = [
647
655
  ],
648
656
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
649
657
  ];
650
- var Eye = createLucideIcon("Eye", __iconNode11);
658
+ var Eye = createLucideIcon("Eye", __iconNode12);
659
+
660
+ // ../../node_modules/lucide-react/dist/esm/icons/info.js
661
+ var __iconNode13 = [
662
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
663
+ ["path", { d: "M12 16v-4", key: "1dtifu" }],
664
+ ["path", { d: "M12 8h.01", key: "e9boi3" }]
665
+ ];
666
+ var Info = createLucideIcon("Info", __iconNode13);
651
667
 
652
668
  // ../../node_modules/lucide-react/dist/esm/icons/minus.js
653
- var __iconNode12 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
654
- var Minus = createLucideIcon("Minus", __iconNode12);
669
+ var __iconNode14 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
670
+ var Minus = createLucideIcon("Minus", __iconNode14);
655
671
 
656
672
  // ../../node_modules/lucide-react/dist/esm/icons/x.js
657
- var __iconNode13 = [
673
+ var __iconNode15 = [
658
674
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
659
675
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
660
676
  ];
661
- var X = createLucideIcon("X", __iconNode13);
677
+ var X = createLucideIcon("X", __iconNode15);
662
678
  var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
663
679
  var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
664
680
  var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
@@ -2160,10 +2176,7 @@ function Accordion({
2160
2176
  AccordionPrimitive__namespace.Root,
2161
2177
  {
2162
2178
  collapsible: true,
2163
- className: cn(
2164
- "w-full bg-accordion-background rounded-3xl p-6",
2165
- className
2166
- ),
2179
+ className: cn("w-full", className),
2167
2180
  ...props,
2168
2181
  children
2169
2182
  }
@@ -2179,7 +2192,7 @@ function AccordionItem({
2179
2192
  {
2180
2193
  "data-slot": "accordion-item",
2181
2194
  className: cn(
2182
- "transition-all duration-300 border-b last:border-b-0 last:pb-0 last:mb-0 pb-6 mb-6 border-neutral-200 dark:border-neutral-600",
2195
+ "transition-all duration-300 border-b last:border-b-0 last:pb-0 last:mb-0 pb-6 mb-6 border-accordion-border",
2183
2196
  className
2184
2197
  ),
2185
2198
  ...props,
@@ -2197,15 +2210,21 @@ function AccordionTrigger({
2197
2210
  {
2198
2211
  "data-slot": "accordion-trigger",
2199
2212
  className: cn(
2200
- "flex items-center justify-between w-full transition-all",
2201
- "[&[data-state=open]>svg]:rotate-180 [&>svg]:transition-all duration-200",
2213
+ "flex items-start justify-between w-full transition-all",
2214
+ "[&[data-state=open]_[data-slot=accordion-icon]]:rotate-180 [&_[data-slot=accordion-icon]]:transition-all duration-200",
2202
2215
  "data-[state=open]:mb-6",
2203
2216
  className
2204
2217
  ),
2205
2218
  ...props,
2206
2219
  children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2207
- children,
2208
- /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { className: "nebula-ds text-accordion-icon w-6 h-6" })
2220
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds flex flex-col gap-2", children }),
2221
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds flex items-center justify-center w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx(
2222
+ ChevronDown,
2223
+ {
2224
+ "data-slot": "accordion-icon",
2225
+ className: "nebula-ds text-accordion-icon w-4 h-4"
2226
+ }
2227
+ ) })
2209
2228
  ] })
2210
2229
  }
2211
2230
  ) });
@@ -2213,6 +2232,7 @@ function AccordionTrigger({
2213
2232
  function AccordionContent({
2214
2233
  className,
2215
2234
  children,
2235
+ separator = false,
2216
2236
  ...props
2217
2237
  }) {
2218
2238
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2223,6 +2243,9 @@ function AccordionContent({
2223
2243
  "overflow-hidden transition-all",
2224
2244
  "data-[state=closed]:animate-accordion-up",
2225
2245
  "data-[state=open]:animate-accordion-down",
2246
+ {
2247
+ "data-[state=open]:border-t border-accordion-border py-4": separator
2248
+ },
2226
2249
  className
2227
2250
  ),
2228
2251
  ...props,
@@ -2239,7 +2262,7 @@ function AccordionTitle({
2239
2262
  {
2240
2263
  ...props,
2241
2264
  className: cn(
2242
- "text-start !text-accordion-text-title font-semibold text-xl",
2265
+ "text-start !text-accordion-text-title font-semibold text-xl leading-none",
2243
2266
  className
2244
2267
  )
2245
2268
  }
@@ -2254,7 +2277,7 @@ function AccordionDescription({
2254
2277
  {
2255
2278
  ...props,
2256
2279
  className: cn(
2257
- "text-start !text-accordion-text-description font-normal text-sm min-h-5 mt-1",
2280
+ "text-start !text-accordion-text-description font-normal text-sm leading-none",
2258
2281
  className
2259
2282
  )
2260
2283
  }
@@ -2270,6 +2293,7 @@ var TabsContext = React8__namespace.createContext({});
2270
2293
  var Tabs = React8__namespace.forwardRef(({ isFitted, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsContext.Provider, { value: { isFitted }, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { ref, ...props, children }) }));
2271
2294
  Tabs.displayName = TabsPrimitive__namespace.Root.displayName;
2272
2295
  var TabsList = React8__namespace.forwardRef(({ className, ...props }, ref) => {
2296
+ const { isFitted } = React8__namespace.useContext(TabsContext);
2273
2297
  return /* @__PURE__ */ jsxRuntime.jsx(
2274
2298
  TabsPrimitive__namespace.List,
2275
2299
  {
@@ -2278,9 +2302,11 @@ var TabsList = React8__namespace.forwardRef(({ className, ...props }, ref) => {
2278
2302
  `
2279
2303
  inline-flex
2280
2304
  items-center
2281
- justify-center
2305
+ border-b-[1px]
2306
+ border-tabs-border-default
2282
2307
  w-full
2283
2308
  `,
2309
+ { "justify-center": isFitted },
2284
2310
  className
2285
2311
  ),
2286
2312
  ...props
@@ -2304,12 +2330,13 @@ var TabsTrigger = React8__namespace.forwardRef(({ className, ...props }, ref) =>
2304
2330
  min-h-10
2305
2331
  min-w-[125px]
2306
2332
  gap-2
2333
+ border-b-[2px]
2334
+ border-transparent
2335
+ -mb-[1px]
2307
2336
  text-sm
2308
2337
  font-semibold
2309
2338
  ring-offset-background
2310
2339
  transition-all
2311
- border-b-2
2312
- border-tabs-border-default
2313
2340
  text-tabs-text-default
2314
2341
  focus-visible:outline-none
2315
2342
  disabled:pointer-events-none
@@ -2342,6 +2369,238 @@ var TabsContent = React8__namespace.forwardRef(({ className, ...props }, ref) =>
2342
2369
  }
2343
2370
  ));
2344
2371
  TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
2372
+ var Box = ({
2373
+ className,
2374
+ paddingSize = "md",
2375
+ border = false,
2376
+ shadow = "sm",
2377
+ variant: variant3 = "primary",
2378
+ children,
2379
+ ...rest
2380
+ }) => {
2381
+ return /* @__PURE__ */ jsxRuntime.jsx(
2382
+ "div",
2383
+ {
2384
+ ...rest,
2385
+ className: cn(
2386
+ "w-full rounded-2xl",
2387
+ {
2388
+ "bg-box-background": variant3 === "primary",
2389
+ "bg-box-secondary-background": variant3 === "secondary"
2390
+ },
2391
+ {
2392
+ "p-4": paddingSize === "sm",
2393
+ "p-6": paddingSize === "md",
2394
+ "p-8": paddingSize === "lg"
2395
+ },
2396
+ {
2397
+ "border border-box-border": border
2398
+ },
2399
+ {
2400
+ "shadow-sm": shadow === "sm",
2401
+ "shadow-md": shadow === "md",
2402
+ "shadow-lg": shadow === "lg"
2403
+ },
2404
+ className
2405
+ ),
2406
+ children
2407
+ }
2408
+ );
2409
+ };
2410
+ function Toaster() {
2411
+ return /* @__PURE__ */ jsxRuntime.jsx(sonner.Toaster, { position: "top-right" });
2412
+ }
2413
+ function ToastComponent({
2414
+ type,
2415
+ message,
2416
+ options,
2417
+ t
2418
+ }) {
2419
+ const CustomIcon = React8__namespace.default.isValidElement(options?.icon) ? React8__namespace.default.cloneElement(options.icon, {
2420
+ className: cn("text-toast-icon-default", options.icon.props.className),
2421
+ size: 20
2422
+ }) : null;
2423
+ const typeIcons = {
2424
+ success: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckBig, { className: "nebula-ds text-toast-icon-default", size: 20 }),
2425
+ error: /* @__PURE__ */ jsxRuntime.jsx(CircleX, { className: "nebula-ds text-toast-icon-error", size: 20 }),
2426
+ info: /* @__PURE__ */ jsxRuntime.jsx(Info, { className: "nebula-ds text-toast-icon-default", size: 20 }),
2427
+ custom: CustomIcon
2428
+ };
2429
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds w-[400px] bg-toast-background border border-toast-border rounded-xl p-4 flex items-start justify-start gap-2 shadow-md", children: [
2430
+ /* @__PURE__ */ jsxRuntime.jsx("div", { children: typeIcons[type] }),
2431
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds flex flex-col gap-2 mr-auto", children: [
2432
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds flex flex-col", children: [
2433
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-toast-title text-sm font-semibold", children: message }),
2434
+ options?.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-toast-description text-sm font-medium", children: options.description })
2435
+ ] }),
2436
+ options?.action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds flex gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
2437
+ Button,
2438
+ {
2439
+ size: "sm",
2440
+ variant: options.action.variant || "secondary",
2441
+ onClick: options.action.onClick,
2442
+ children: options.action.label
2443
+ }
2444
+ ) })
2445
+ ] }),
2446
+ /* @__PURE__ */ jsxRuntime.jsx("button", { onClick: () => sonner.toast.dismiss(t), children: /* @__PURE__ */ jsxRuntime.jsx(X, { className: "nebula-ds text-toast-icon-default", size: 20 }) })
2447
+ ] });
2448
+ }
2449
+ function success(message, options) {
2450
+ sonner.toast.custom(
2451
+ (t) => /* @__PURE__ */ jsxRuntime.jsx(
2452
+ ToastComponent,
2453
+ {
2454
+ type: "success",
2455
+ message,
2456
+ options,
2457
+ t
2458
+ }
2459
+ ),
2460
+ {
2461
+ duration: 4e3
2462
+ // 4 seconds
2463
+ }
2464
+ );
2465
+ }
2466
+ function error(message, options) {
2467
+ sonner.toast.custom(
2468
+ (t) => /* @__PURE__ */ jsxRuntime.jsx(ToastComponent, { type: "error", message, options, t }),
2469
+ {
2470
+ duration: 6e3
2471
+ // 6 seconds
2472
+ }
2473
+ );
2474
+ }
2475
+ function info(message, options) {
2476
+ sonner.toast.custom(
2477
+ (t) => /* @__PURE__ */ jsxRuntime.jsx(ToastComponent, { type: "info", message, options, t }),
2478
+ {
2479
+ duration: 4e3
2480
+ // 4 seconds
2481
+ }
2482
+ );
2483
+ }
2484
+ function custom(message, options) {
2485
+ sonner.toast.custom(
2486
+ (t) => /* @__PURE__ */ jsxRuntime.jsx(ToastComponent, { type: "custom", message, options, t }),
2487
+ {
2488
+ duration: 4e3
2489
+ // 4 seconds
2490
+ }
2491
+ );
2492
+ }
2493
+ async function promise(promise2, messages8, options) {
2494
+ const loadingToast = sonner.toast.custom(
2495
+ (t) => /* @__PURE__ */ jsxRuntime.jsx(
2496
+ ToastComponent,
2497
+ {
2498
+ type: "info",
2499
+ message: messages8.loading,
2500
+ options,
2501
+ t
2502
+ }
2503
+ ),
2504
+ { duration: Infinity }
2505
+ );
2506
+ return promise2.then((result) => {
2507
+ sonner.toast.dismiss(loadingToast);
2508
+ sonner.toast.custom(
2509
+ (t) => /* @__PURE__ */ jsxRuntime.jsx(
2510
+ ToastComponent,
2511
+ {
2512
+ type: "success",
2513
+ message: messages8.success,
2514
+ options,
2515
+ t
2516
+ }
2517
+ ),
2518
+ { duration: 4e3 }
2519
+ );
2520
+ return result;
2521
+ }).catch((error2) => {
2522
+ sonner.toast.dismiss(loadingToast);
2523
+ sonner.toast.custom(
2524
+ (t) => /* @__PURE__ */ jsxRuntime.jsx(
2525
+ ToastComponent,
2526
+ {
2527
+ type: "error",
2528
+ message: messages8.error,
2529
+ options,
2530
+ t
2531
+ }
2532
+ ),
2533
+ { duration: 6e3 }
2534
+ );
2535
+ return Promise.reject(error2);
2536
+ });
2537
+ }
2538
+ var toast = {
2539
+ success,
2540
+ error,
2541
+ info,
2542
+ custom,
2543
+ promise
2544
+ };
2545
+ var ActionBar = React8__namespace.forwardRef(({ ...props }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { modal: false, ...props }));
2546
+ ActionBar.displayName = "ActionBar";
2547
+ var ActionBarTrigger = React8__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { ref, ...props }));
2548
+ ActionBarTrigger.displayName = "ActionBarTrigger";
2549
+ var ActionBarPortal = (props) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { ...props });
2550
+ ActionBarPortal.displayName = "ActionBarPortal";
2551
+ var ActionBarClose = React8__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { ref, ...props }));
2552
+ ActionBarClose.displayName = "ActionBarClose";
2553
+ var ActionBarButton = React8__namespace.forwardRef(
2554
+ ({ className, ...props }, ref) => {
2555
+ return /* @__PURE__ */ jsxRuntime.jsx(
2556
+ Button,
2557
+ {
2558
+ ref,
2559
+ variant: "primary",
2560
+ className: cn(className, "rounded-none !text-sm"),
2561
+ tabIndex: -1,
2562
+ ...props
2563
+ }
2564
+ );
2565
+ }
2566
+ );
2567
+ ActionBarButton.displayName = "ActionBarButton";
2568
+ var ActionBarDivider = React8__namespace.forwardRef(({ className, ...props }, ref) => {
2569
+ return /* @__PURE__ */ jsxRuntime.jsx(
2570
+ Separator2,
2571
+ {
2572
+ ref,
2573
+ className: cn("bg-actionBar-divider h-6", className),
2574
+ orientation: "vertical",
2575
+ ...props
2576
+ }
2577
+ );
2578
+ });
2579
+ ActionBarDivider.displayName = "ActionBarDivider";
2580
+ var ActionBarContent = React8__namespace.forwardRef(({ className, children, portal = false, ...props }, ref) => {
2581
+ const Comp = portal ? ActionBarPortal : React8__namespace.Fragment;
2582
+ return /* @__PURE__ */ jsxRuntime.jsx(Comp, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2583
+ DialogPrimitive__namespace.Content,
2584
+ {
2585
+ ref,
2586
+ onInteractOutside: (e) => e.preventDefault(),
2587
+ className: cn(
2588
+ "fixed left-1/2 bottom-[24px] z-50 -translate-x-1/2",
2589
+ "flex items-center justify-items-center rounded-full shadow-lg shadow-actionBar-shadow",
2590
+ "data-[state=open]:animate-slide-up-center data-[state=closed]:animate-slide-down-center",
2591
+ "bg-button-primary-background-default",
2592
+ "overflow-hidden",
2593
+ className
2594
+ ),
2595
+ ...props,
2596
+ children: [
2597
+ /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { className: "nebula-ds sr-only" }),
2598
+ children
2599
+ ]
2600
+ }
2601
+ ) });
2602
+ });
2603
+ ActionBarContent.displayName = "ActionBarContent";
2345
2604
 
2346
2605
  // src/tailwind.ts
2347
2606
  function content({ base = "./" } = {}) {
@@ -2364,11 +2623,13 @@ lucide-react/dist/esm/icons/chevron-left.js:
2364
2623
  lucide-react/dist/esm/icons/chevron-right.js:
2365
2624
  lucide-react/dist/esm/icons/chevrons-left.js:
2366
2625
  lucide-react/dist/esm/icons/chevrons-right.js:
2626
+ lucide-react/dist/esm/icons/circle-check-big.js:
2367
2627
  lucide-react/dist/esm/icons/circle-x.js:
2368
2628
  lucide-react/dist/esm/icons/circle.js:
2369
2629
  lucide-react/dist/esm/icons/ellipsis.js:
2370
2630
  lucide-react/dist/esm/icons/eye-off.js:
2371
2631
  lucide-react/dist/esm/icons/eye.js:
2632
+ lucide-react/dist/esm/icons/info.js:
2372
2633
  lucide-react/dist/esm/icons/minus.js:
2373
2634
  lucide-react/dist/esm/icons/x.js:
2374
2635
  lucide-react/dist/esm/lucide-react.js:
@@ -2386,6 +2647,13 @@ exports.AccordionDescription = AccordionDescription;
2386
2647
  exports.AccordionItem = AccordionItem;
2387
2648
  exports.AccordionTitle = AccordionTitle;
2388
2649
  exports.AccordionTrigger = AccordionTrigger;
2650
+ exports.ActionBar = ActionBar;
2651
+ exports.ActionBarButton = ActionBarButton;
2652
+ exports.ActionBarClose = ActionBarClose;
2653
+ exports.ActionBarContent = ActionBarContent;
2654
+ exports.ActionBarDivider = ActionBarDivider;
2655
+ exports.ActionBarPortal = ActionBarPortal;
2656
+ exports.ActionBarTrigger = ActionBarTrigger;
2389
2657
  exports.Alert = Alert;
2390
2658
  exports.AlertButton = AlertButton;
2391
2659
  exports.AlertDescription = AlertDescription;
@@ -2402,6 +2670,7 @@ exports.AlertTitle = AlertTitle;
2402
2670
  exports.Async = StyledAsync;
2403
2671
  exports.AsyncCreatable = StyledAsyncCreatable;
2404
2672
  exports.Badge = Badge;
2673
+ exports.Box = Box;
2405
2674
  exports.Breadcrumb = Breadcrumb;
2406
2675
  exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
2407
2676
  exports.BreadcrumbItem = BreadcrumbItem;
@@ -2472,6 +2741,7 @@ exports.TabsContent = TabsContent;
2472
2741
  exports.TabsList = TabsList;
2473
2742
  exports.TabsTrigger = TabsTrigger;
2474
2743
  exports.Tag = Tag;
2744
+ exports.Toaster = Toaster;
2475
2745
  exports.Tooltip = Tooltip;
2476
2746
  exports.alertVariants = alertVariants;
2477
2747
  exports.badgeSizeEnum = badgeSizeEnum;
@@ -2485,4 +2755,5 @@ exports.separatorVariants = separatorVariants;
2485
2755
  exports.setNebulaLanguage = setNebulaLanguage;
2486
2756
  exports.tagVariantsEnum = tagVariantsEnum;
2487
2757
  exports.tailwind = tailwind;
2758
+ exports.toast = toast;
2488
2759
  exports.useNebulaI18n = useNebulaI18n;