@ikatec/nebula-react 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -16,6 +16,7 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
16
16
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
17
17
  import * as TabsPrimitive from '@radix-ui/react-tabs';
18
18
  import * as RPNInput from 'react-phone-number-input';
19
+ import { DayPicker, Locale } from 'react-day-picker';
19
20
 
20
21
  declare enum buttonVariantEnum {
21
22
  primary = "\n bg-button-primary-background-default\n hover:bg-button-primary-background-hover\n active:bg-button-primary-background-active\n focus:bg-button-primary-background-focus\n focus:ring-button-primary-border-focus\n text-button-primary-text\n ",
@@ -103,10 +104,10 @@ declare const AlertButton: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLA
103
104
 
104
105
  declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
105
106
  declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
106
- interface PopoverContentProps {
107
+ interface PopoverContentProps extends React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
107
108
  portal?: boolean;
108
109
  }
109
- declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
110
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
110
111
 
111
112
  declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
112
113
 
@@ -279,6 +280,7 @@ declare const StyledAsyncCreatable: {
279
280
 
280
281
  interface InputTextProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
281
282
  icon?: React$1.ReactElement;
283
+ iconPlacement?: 'start' | 'end';
282
284
  isError?: boolean;
283
285
  onClean?: () => void;
284
286
  }
@@ -515,43 +517,6 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
515
517
  }
516
518
  declare const Skeleton: React__default.ForwardRefExoticComponent<SkeletonProps & React__default.RefAttributes<HTMLDivElement>>;
517
519
 
518
- interface Content {
519
- /**
520
- * Path to `node_modules` where `flowbite-react` is installed
521
- *
522
- * ===============================================
523
- *
524
- * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
525
- * @example
526
- * ```
527
- * // tailwind.config.(js|cjs|mjs) file
528
- *
529
- * // cjs
530
- * const flowbite = require("flowbite-react/tailwind");
531
- * // esm
532
- * import flowbite from "flowbite-react/tailwind";
533
- *
534
- * {
535
- * content: [
536
- * // ...
537
- * flowbite.content({ base: "../../" })
538
- * ],
539
- * plugins: [
540
- * // ...
541
- * flowbite.plugin()
542
- * ]
543
- * }
544
- * ```
545
- *
546
- * @default "./"
547
- */
548
- base?: string;
549
- }
550
- declare function content({ base }?: Content): string;
551
- declare const tailwind: {
552
- content: typeof content;
553
- };
554
-
555
520
  /**
556
521
  * Type to store the message key.
557
522
  */
@@ -582,6 +547,9 @@ interface InputSelectMessages {
582
547
  interface InputPhoneMessages {
583
548
  countries: Record<string, string>;
584
549
  }
550
+ interface TimePickerMessages {
551
+ label: string;
552
+ }
585
553
  /**
586
554
  * Type to store the messages.
587
555
  */
@@ -589,13 +557,123 @@ interface Messages {
589
557
  pagination: PaginationMessages;
590
558
  inputSelect: InputSelectMessages;
591
559
  inputPhone: InputPhoneMessages;
560
+ timePicker: TimePickerMessages;
592
561
  }
593
562
 
563
+ /**
564
+ * Type to store the language in the localStorage.
565
+ */
566
+ type Language = 'en-US' | 'es' | 'pt-BR';
567
+ /**
568
+ * Get the language from the localStorage.
569
+ */
570
+ declare const getNebulaLanguage: () => Language | null | undefined;
571
+ /**
572
+ * Set the language in the localStorage.
573
+ */
574
+ declare const setNebulaLanguage: (language: Language) => void;
575
+ /**
576
+ * Messages to use in the NebulaI18nProvider.
577
+ */
578
+ declare const messages: Map<Language | null | undefined, Messages>;
579
+
580
+ type CalendarProps = ComponentProps<typeof DayPicker>;
581
+ declare const localeByi18nKey: Record<Language, Locale>;
582
+ declare const Calendar: ({ numberOfMonths, hideNavigation, month, onNextClick, onPrevClick, components: calendarComponents, ...props }: CalendarProps) => react_jsx_runtime.JSX.Element;
583
+
584
+ interface InputDatePickerSingleProps extends Omit<InputTextProps, 'onChange' | 'value'> {
585
+ value?: string;
586
+ onChange?: (value?: string, calendarDate?: Date) => void;
587
+ numberOfMonths?: CalendarProps['numberOfMonths'];
588
+ portal?: PopoverContentProps['portal'];
589
+ placeholder?: string;
590
+ className: InputTextProps['className'];
591
+ disabledDates?: CalendarProps['disabled'];
592
+ }
593
+ declare const dateIsAvailable: (inputDate?: Date | null, disabledDates?: InputDatePickerSingleProps["disabledDates"]) => boolean;
594
+ declare const InputDatePickerSingle: ({ portal, placeholder, className, value, onChange, numberOfMonths, onClean, disabledDates, ...rest }: InputDatePickerSingleProps) => react_jsx_runtime.JSX.Element;
595
+
596
+ interface InputDateTimePickerSingleProps extends Omit<InputTextProps, 'onChange' | 'value'> {
597
+ value?: string;
598
+ onChange?: (value?: string, calendarDate?: Date, inputTimeValue?: string) => void;
599
+ numberOfMonths?: CalendarProps['numberOfMonths'];
600
+ portal?: PopoverContentProps['portal'];
601
+ placeholder?: string;
602
+ className: InputTextProps['className'];
603
+ disabledDates?: CalendarProps['disabled'];
604
+ }
605
+ declare const InputDateTimePickerSingle: ({ portal, placeholder, className, value, onChange, numberOfMonths, onClean, disabledDates, ...rest }: InputDateTimePickerSingleProps) => react_jsx_runtime.JSX.Element;
606
+
607
+ type InputTimeProps = Omit<React.ComponentProps<typeof InputText>, 'onChange'> & {
608
+ onChange?: (value: string) => void;
609
+ };
610
+ declare const InputTime: React$1.ForwardRefExoticComponent<Omit<InputTimeProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
611
+
612
+ interface TextAreaProps extends React$1.InputHTMLAttributes<HTMLTextAreaElement> {
613
+ isError?: boolean;
614
+ resize?: boolean;
615
+ showCount?: boolean;
616
+ autoResize?: boolean;
617
+ asInput?: boolean;
618
+ }
619
+ /**
620
+ * TextArea component.
621
+ * @example
622
+ * <TextArea
623
+ * leftIcon={<Box className="w-4 h-4 block rounded-sm text-tag-icon" />}
624
+ * placeholder="Insert a text"
625
+ * />
626
+ *
627
+ * @param className - Tailwind classes.
628
+ * @param icon - Input reference icon.
629
+ * @param isError - error identifier in value.
630
+ * @param onClean - text field clear function.
631
+ */
632
+ declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
633
+
634
+ interface Content {
635
+ /**
636
+ * Path to `node_modules` where `flowbite-react` is installed
637
+ *
638
+ * ===============================================
639
+ *
640
+ * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
641
+ * @example
642
+ * ```
643
+ * // tailwind.config.(js|cjs|mjs) file
644
+ *
645
+ * // cjs
646
+ * const flowbite = require("flowbite-react/tailwind");
647
+ * // esm
648
+ * import flowbite from "flowbite-react/tailwind";
649
+ *
650
+ * {
651
+ * content: [
652
+ * // ...
653
+ * flowbite.content({ base: "../../" })
654
+ * ],
655
+ * plugins: [
656
+ * // ...
657
+ * flowbite.plugin()
658
+ * ]
659
+ * }
660
+ * ```
661
+ *
662
+ * @default "./"
663
+ */
664
+ base?: string;
665
+ }
666
+ declare function content({ base }?: Content): string;
667
+ declare const tailwind: {
668
+ content: typeof content;
669
+ };
670
+
594
671
  /**
595
672
  * Context type to use the NebulaI18nProvider.
596
673
  */
597
674
  interface NebulaI18nContextType {
598
675
  messages: Messages;
676
+ locale: Language | null | undefined;
599
677
  }
600
678
  /**
601
679
  * Props to use the NebulaI18nProvider.
@@ -618,21 +696,4 @@ declare const NebulaI18nProvider: ({ children, customI18nStorageKey, }: NebulaI1
618
696
  */
619
697
  declare const useNebulaI18n: () => NebulaI18nContextType;
620
698
 
621
- /**
622
- * Type to store the language in the localStorage.
623
- */
624
- type Language = 'en-US' | 'es' | 'pt-BR';
625
- /**
626
- * Get the language from the localStorage.
627
- */
628
- declare const getNebulaLanguage: () => Language | null | undefined;
629
- /**
630
- * Set the language in the localStorage.
631
- */
632
- declare const setNebulaLanguage: (language: Language) => void;
633
- /**
634
- * Messages to use in the NebulaI18nProvider.
635
- */
636
- declare const messages: Map<Language | null | undefined, Messages>;
637
-
638
- 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, Caption, type CaptionProps, 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, Heading, type HeadingProps, InputPhone, InputText, type InputTextProps, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, 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 };
699
+ 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, Calendar, type CalendarProps, Caption, type CaptionProps, 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, Heading, type HeadingProps, InputDatePickerSingle, type InputDatePickerSingleProps, InputDateTimePickerSingle, type InputDateTimePickerSingleProps, InputPhone, InputText, type InputTextProps, InputTime, type InputTimeProps, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, type PopoverContentProps, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextArea, type TextAreaProps, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useNebulaI18n };
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
16
16
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
17
17
  import * as TabsPrimitive from '@radix-ui/react-tabs';
18
18
  import * as RPNInput from 'react-phone-number-input';
19
+ import { DayPicker, Locale } from 'react-day-picker';
19
20
 
20
21
  declare enum buttonVariantEnum {
21
22
  primary = "\n bg-button-primary-background-default\n hover:bg-button-primary-background-hover\n active:bg-button-primary-background-active\n focus:bg-button-primary-background-focus\n focus:ring-button-primary-border-focus\n text-button-primary-text\n ",
@@ -103,10 +104,10 @@ declare const AlertButton: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLA
103
104
 
104
105
  declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
105
106
  declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
106
- interface PopoverContentProps {
107
+ interface PopoverContentProps extends React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
107
108
  portal?: boolean;
108
109
  }
109
- declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
110
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
110
111
 
111
112
  declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
112
113
 
@@ -279,6 +280,7 @@ declare const StyledAsyncCreatable: {
279
280
 
280
281
  interface InputTextProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
281
282
  icon?: React$1.ReactElement;
283
+ iconPlacement?: 'start' | 'end';
282
284
  isError?: boolean;
283
285
  onClean?: () => void;
284
286
  }
@@ -515,43 +517,6 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
515
517
  }
516
518
  declare const Skeleton: React__default.ForwardRefExoticComponent<SkeletonProps & React__default.RefAttributes<HTMLDivElement>>;
517
519
 
518
- interface Content {
519
- /**
520
- * Path to `node_modules` where `flowbite-react` is installed
521
- *
522
- * ===============================================
523
- *
524
- * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
525
- * @example
526
- * ```
527
- * // tailwind.config.(js|cjs|mjs) file
528
- *
529
- * // cjs
530
- * const flowbite = require("flowbite-react/tailwind");
531
- * // esm
532
- * import flowbite from "flowbite-react/tailwind";
533
- *
534
- * {
535
- * content: [
536
- * // ...
537
- * flowbite.content({ base: "../../" })
538
- * ],
539
- * plugins: [
540
- * // ...
541
- * flowbite.plugin()
542
- * ]
543
- * }
544
- * ```
545
- *
546
- * @default "./"
547
- */
548
- base?: string;
549
- }
550
- declare function content({ base }?: Content): string;
551
- declare const tailwind: {
552
- content: typeof content;
553
- };
554
-
555
520
  /**
556
521
  * Type to store the message key.
557
522
  */
@@ -582,6 +547,9 @@ interface InputSelectMessages {
582
547
  interface InputPhoneMessages {
583
548
  countries: Record<string, string>;
584
549
  }
550
+ interface TimePickerMessages {
551
+ label: string;
552
+ }
585
553
  /**
586
554
  * Type to store the messages.
587
555
  */
@@ -589,13 +557,123 @@ interface Messages {
589
557
  pagination: PaginationMessages;
590
558
  inputSelect: InputSelectMessages;
591
559
  inputPhone: InputPhoneMessages;
560
+ timePicker: TimePickerMessages;
592
561
  }
593
562
 
563
+ /**
564
+ * Type to store the language in the localStorage.
565
+ */
566
+ type Language = 'en-US' | 'es' | 'pt-BR';
567
+ /**
568
+ * Get the language from the localStorage.
569
+ */
570
+ declare const getNebulaLanguage: () => Language | null | undefined;
571
+ /**
572
+ * Set the language in the localStorage.
573
+ */
574
+ declare const setNebulaLanguage: (language: Language) => void;
575
+ /**
576
+ * Messages to use in the NebulaI18nProvider.
577
+ */
578
+ declare const messages: Map<Language | null | undefined, Messages>;
579
+
580
+ type CalendarProps = ComponentProps<typeof DayPicker>;
581
+ declare const localeByi18nKey: Record<Language, Locale>;
582
+ declare const Calendar: ({ numberOfMonths, hideNavigation, month, onNextClick, onPrevClick, components: calendarComponents, ...props }: CalendarProps) => react_jsx_runtime.JSX.Element;
583
+
584
+ interface InputDatePickerSingleProps extends Omit<InputTextProps, 'onChange' | 'value'> {
585
+ value?: string;
586
+ onChange?: (value?: string, calendarDate?: Date) => void;
587
+ numberOfMonths?: CalendarProps['numberOfMonths'];
588
+ portal?: PopoverContentProps['portal'];
589
+ placeholder?: string;
590
+ className: InputTextProps['className'];
591
+ disabledDates?: CalendarProps['disabled'];
592
+ }
593
+ declare const dateIsAvailable: (inputDate?: Date | null, disabledDates?: InputDatePickerSingleProps["disabledDates"]) => boolean;
594
+ declare const InputDatePickerSingle: ({ portal, placeholder, className, value, onChange, numberOfMonths, onClean, disabledDates, ...rest }: InputDatePickerSingleProps) => react_jsx_runtime.JSX.Element;
595
+
596
+ interface InputDateTimePickerSingleProps extends Omit<InputTextProps, 'onChange' | 'value'> {
597
+ value?: string;
598
+ onChange?: (value?: string, calendarDate?: Date, inputTimeValue?: string) => void;
599
+ numberOfMonths?: CalendarProps['numberOfMonths'];
600
+ portal?: PopoverContentProps['portal'];
601
+ placeholder?: string;
602
+ className: InputTextProps['className'];
603
+ disabledDates?: CalendarProps['disabled'];
604
+ }
605
+ declare const InputDateTimePickerSingle: ({ portal, placeholder, className, value, onChange, numberOfMonths, onClean, disabledDates, ...rest }: InputDateTimePickerSingleProps) => react_jsx_runtime.JSX.Element;
606
+
607
+ type InputTimeProps = Omit<React.ComponentProps<typeof InputText>, 'onChange'> & {
608
+ onChange?: (value: string) => void;
609
+ };
610
+ declare const InputTime: React$1.ForwardRefExoticComponent<Omit<InputTimeProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
611
+
612
+ interface TextAreaProps extends React$1.InputHTMLAttributes<HTMLTextAreaElement> {
613
+ isError?: boolean;
614
+ resize?: boolean;
615
+ showCount?: boolean;
616
+ autoResize?: boolean;
617
+ asInput?: boolean;
618
+ }
619
+ /**
620
+ * TextArea component.
621
+ * @example
622
+ * <TextArea
623
+ * leftIcon={<Box className="w-4 h-4 block rounded-sm text-tag-icon" />}
624
+ * placeholder="Insert a text"
625
+ * />
626
+ *
627
+ * @param className - Tailwind classes.
628
+ * @param icon - Input reference icon.
629
+ * @param isError - error identifier in value.
630
+ * @param onClean - text field clear function.
631
+ */
632
+ declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
633
+
634
+ interface Content {
635
+ /**
636
+ * Path to `node_modules` where `flowbite-react` is installed
637
+ *
638
+ * ===============================================
639
+ *
640
+ * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
641
+ * @example
642
+ * ```
643
+ * // tailwind.config.(js|cjs|mjs) file
644
+ *
645
+ * // cjs
646
+ * const flowbite = require("flowbite-react/tailwind");
647
+ * // esm
648
+ * import flowbite from "flowbite-react/tailwind";
649
+ *
650
+ * {
651
+ * content: [
652
+ * // ...
653
+ * flowbite.content({ base: "../../" })
654
+ * ],
655
+ * plugins: [
656
+ * // ...
657
+ * flowbite.plugin()
658
+ * ]
659
+ * }
660
+ * ```
661
+ *
662
+ * @default "./"
663
+ */
664
+ base?: string;
665
+ }
666
+ declare function content({ base }?: Content): string;
667
+ declare const tailwind: {
668
+ content: typeof content;
669
+ };
670
+
594
671
  /**
595
672
  * Context type to use the NebulaI18nProvider.
596
673
  */
597
674
  interface NebulaI18nContextType {
598
675
  messages: Messages;
676
+ locale: Language | null | undefined;
599
677
  }
600
678
  /**
601
679
  * Props to use the NebulaI18nProvider.
@@ -618,21 +696,4 @@ declare const NebulaI18nProvider: ({ children, customI18nStorageKey, }: NebulaI1
618
696
  */
619
697
  declare const useNebulaI18n: () => NebulaI18nContextType;
620
698
 
621
- /**
622
- * Type to store the language in the localStorage.
623
- */
624
- type Language = 'en-US' | 'es' | 'pt-BR';
625
- /**
626
- * Get the language from the localStorage.
627
- */
628
- declare const getNebulaLanguage: () => Language | null | undefined;
629
- /**
630
- * Set the language in the localStorage.
631
- */
632
- declare const setNebulaLanguage: (language: Language) => void;
633
- /**
634
- * Messages to use in the NebulaI18nProvider.
635
- */
636
- declare const messages: Map<Language | null | undefined, Messages>;
637
-
638
- 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, Caption, type CaptionProps, 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, Heading, type HeadingProps, InputPhone, InputText, type InputTextProps, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, 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 };
699
+ 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, Calendar, type CalendarProps, Caption, type CaptionProps, 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, Heading, type HeadingProps, InputDatePickerSingle, type InputDatePickerSingleProps, InputDateTimePickerSingle, type InputDateTimePickerSingleProps, InputPhone, InputText, type InputTextProps, InputTime, type InputTimeProps, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, type PopoverContentProps, PopoverTrigger, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextArea, type TextAreaProps, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useNebulaI18n };