@ikatec/nebula-react 1.0.13 → 1.0.15

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,14 +104,21 @@ 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
 
113
- declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
114
+ interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
115
+ noCardWrapper?: boolean;
116
+ }
117
+ /**
118
+ * Table component that can be used with or without a card wrapper.
119
+ * If `noCardWrapper` is true, it renders a simple table without the card styling.
120
+ */
121
+ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & TableProps & React$1.RefAttributes<HTMLTableElement>>;
114
122
  declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
115
123
  declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
116
124
  declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
@@ -272,6 +280,7 @@ declare const StyledAsyncCreatable: {
272
280
 
273
281
  interface InputTextProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
274
282
  icon?: React$1.ReactElement;
283
+ iconPlacement?: 'start' | 'end';
275
284
  isError?: boolean;
276
285
  onClean?: () => void;
277
286
  }
@@ -431,7 +440,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
431
440
 
432
441
  interface BoxProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
433
442
  border?: boolean;
434
- paddingSize?: 'sm' | 'md' | 'lg' | 'xl';
443
+ paddingSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
435
444
  shadow?: 'sm' | 'md' | 'lg';
436
445
  variant?: 'primary' | 'secondary';
437
446
  }
@@ -508,43 +517,6 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
508
517
  }
509
518
  declare const Skeleton: React__default.ForwardRefExoticComponent<SkeletonProps & React__default.RefAttributes<HTMLDivElement>>;
510
519
 
511
- interface Content {
512
- /**
513
- * Path to `node_modules` where `flowbite-react` is installed
514
- *
515
- * ===============================================
516
- *
517
- * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
518
- * @example
519
- * ```
520
- * // tailwind.config.(js|cjs|mjs) file
521
- *
522
- * // cjs
523
- * const flowbite = require("flowbite-react/tailwind");
524
- * // esm
525
- * import flowbite from "flowbite-react/tailwind";
526
- *
527
- * {
528
- * content: [
529
- * // ...
530
- * flowbite.content({ base: "../../" })
531
- * ],
532
- * plugins: [
533
- * // ...
534
- * flowbite.plugin()
535
- * ]
536
- * }
537
- * ```
538
- *
539
- * @default "./"
540
- */
541
- base?: string;
542
- }
543
- declare function content({ base }?: Content): string;
544
- declare const tailwind: {
545
- content: typeof content;
546
- };
547
-
548
520
  /**
549
521
  * Type to store the message key.
550
522
  */
@@ -575,6 +547,9 @@ interface InputSelectMessages {
575
547
  interface InputPhoneMessages {
576
548
  countries: Record<string, string>;
577
549
  }
550
+ interface TimePickerMessages {
551
+ label: string;
552
+ }
578
553
  /**
579
554
  * Type to store the messages.
580
555
  */
@@ -582,13 +557,122 @@ interface Messages {
582
557
  pagination: PaginationMessages;
583
558
  inputSelect: InputSelectMessages;
584
559
  inputPhone: InputPhoneMessages;
560
+ timePicker: TimePickerMessages;
561
+ }
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
+ }
618
+ /**
619
+ * TextArea component.
620
+ * @example
621
+ * <TextArea
622
+ * leftIcon={<Box className="w-4 h-4 block rounded-sm text-tag-icon" />}
623
+ * placeholder="Insert a text"
624
+ * />
625
+ *
626
+ * @param className - Tailwind classes.
627
+ * @param icon - Input reference icon.
628
+ * @param isError - error identifier in value.
629
+ * @param onClean - text field clear function.
630
+ */
631
+ declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
632
+
633
+ interface Content {
634
+ /**
635
+ * Path to `node_modules` where `flowbite-react` is installed
636
+ *
637
+ * ===============================================
638
+ *
639
+ * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
640
+ * @example
641
+ * ```
642
+ * // tailwind.config.(js|cjs|mjs) file
643
+ *
644
+ * // cjs
645
+ * const flowbite = require("flowbite-react/tailwind");
646
+ * // esm
647
+ * import flowbite from "flowbite-react/tailwind";
648
+ *
649
+ * {
650
+ * content: [
651
+ * // ...
652
+ * flowbite.content({ base: "../../" })
653
+ * ],
654
+ * plugins: [
655
+ * // ...
656
+ * flowbite.plugin()
657
+ * ]
658
+ * }
659
+ * ```
660
+ *
661
+ * @default "./"
662
+ */
663
+ base?: string;
585
664
  }
665
+ declare function content({ base }?: Content): string;
666
+ declare const tailwind: {
667
+ content: typeof content;
668
+ };
586
669
 
587
670
  /**
588
671
  * Context type to use the NebulaI18nProvider.
589
672
  */
590
673
  interface NebulaI18nContextType {
591
674
  messages: Messages;
675
+ locale: Language | null | undefined;
592
676
  }
593
677
  /**
594
678
  * Props to use the NebulaI18nProvider.
@@ -611,21 +695,4 @@ declare const NebulaI18nProvider: ({ children, customI18nStorageKey, }: NebulaI1
611
695
  */
612
696
  declare const useNebulaI18n: () => NebulaI18nContextType;
613
697
 
614
- /**
615
- * Type to store the language in the localStorage.
616
- */
617
- type Language = 'en-US' | 'es' | 'pt-BR';
618
- /**
619
- * Get the language from the localStorage.
620
- */
621
- declare const getNebulaLanguage: () => Language | null | undefined;
622
- /**
623
- * Set the language in the localStorage.
624
- */
625
- declare const setNebulaLanguage: (language: Language) => void;
626
- /**
627
- * Messages to use in the NebulaI18nProvider.
628
- */
629
- declare const messages: Map<Language | null | undefined, Messages>;
630
-
631
- 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 };
698
+ 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,14 +104,21 @@ 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
 
113
- declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
114
+ interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
115
+ noCardWrapper?: boolean;
116
+ }
117
+ /**
118
+ * Table component that can be used with or without a card wrapper.
119
+ * If `noCardWrapper` is true, it renders a simple table without the card styling.
120
+ */
121
+ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & TableProps & React$1.RefAttributes<HTMLTableElement>>;
114
122
  declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
115
123
  declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
116
124
  declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
@@ -272,6 +280,7 @@ declare const StyledAsyncCreatable: {
272
280
 
273
281
  interface InputTextProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
274
282
  icon?: React$1.ReactElement;
283
+ iconPlacement?: 'start' | 'end';
275
284
  isError?: boolean;
276
285
  onClean?: () => void;
277
286
  }
@@ -431,7 +440,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
431
440
 
432
441
  interface BoxProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
433
442
  border?: boolean;
434
- paddingSize?: 'sm' | 'md' | 'lg' | 'xl';
443
+ paddingSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
435
444
  shadow?: 'sm' | 'md' | 'lg';
436
445
  variant?: 'primary' | 'secondary';
437
446
  }
@@ -508,43 +517,6 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
508
517
  }
509
518
  declare const Skeleton: React__default.ForwardRefExoticComponent<SkeletonProps & React__default.RefAttributes<HTMLDivElement>>;
510
519
 
511
- interface Content {
512
- /**
513
- * Path to `node_modules` where `flowbite-react` is installed
514
- *
515
- * ===============================================
516
- *
517
- * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
518
- * @example
519
- * ```
520
- * // tailwind.config.(js|cjs|mjs) file
521
- *
522
- * // cjs
523
- * const flowbite = require("flowbite-react/tailwind");
524
- * // esm
525
- * import flowbite from "flowbite-react/tailwind";
526
- *
527
- * {
528
- * content: [
529
- * // ...
530
- * flowbite.content({ base: "../../" })
531
- * ],
532
- * plugins: [
533
- * // ...
534
- * flowbite.plugin()
535
- * ]
536
- * }
537
- * ```
538
- *
539
- * @default "./"
540
- */
541
- base?: string;
542
- }
543
- declare function content({ base }?: Content): string;
544
- declare const tailwind: {
545
- content: typeof content;
546
- };
547
-
548
520
  /**
549
521
  * Type to store the message key.
550
522
  */
@@ -575,6 +547,9 @@ interface InputSelectMessages {
575
547
  interface InputPhoneMessages {
576
548
  countries: Record<string, string>;
577
549
  }
550
+ interface TimePickerMessages {
551
+ label: string;
552
+ }
578
553
  /**
579
554
  * Type to store the messages.
580
555
  */
@@ -582,13 +557,122 @@ interface Messages {
582
557
  pagination: PaginationMessages;
583
558
  inputSelect: InputSelectMessages;
584
559
  inputPhone: InputPhoneMessages;
560
+ timePicker: TimePickerMessages;
561
+ }
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
+ }
618
+ /**
619
+ * TextArea component.
620
+ * @example
621
+ * <TextArea
622
+ * leftIcon={<Box className="w-4 h-4 block rounded-sm text-tag-icon" />}
623
+ * placeholder="Insert a text"
624
+ * />
625
+ *
626
+ * @param className - Tailwind classes.
627
+ * @param icon - Input reference icon.
628
+ * @param isError - error identifier in value.
629
+ * @param onClean - text field clear function.
630
+ */
631
+ declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
632
+
633
+ interface Content {
634
+ /**
635
+ * Path to `node_modules` where `flowbite-react` is installed
636
+ *
637
+ * ===============================================
638
+ *
639
+ * For monorepo setup where `flowbite-react` is installed in the root `node_modules` but used in `apps/web` directory
640
+ * @example
641
+ * ```
642
+ * // tailwind.config.(js|cjs|mjs) file
643
+ *
644
+ * // cjs
645
+ * const flowbite = require("flowbite-react/tailwind");
646
+ * // esm
647
+ * import flowbite from "flowbite-react/tailwind";
648
+ *
649
+ * {
650
+ * content: [
651
+ * // ...
652
+ * flowbite.content({ base: "../../" })
653
+ * ],
654
+ * plugins: [
655
+ * // ...
656
+ * flowbite.plugin()
657
+ * ]
658
+ * }
659
+ * ```
660
+ *
661
+ * @default "./"
662
+ */
663
+ base?: string;
585
664
  }
665
+ declare function content({ base }?: Content): string;
666
+ declare const tailwind: {
667
+ content: typeof content;
668
+ };
586
669
 
587
670
  /**
588
671
  * Context type to use the NebulaI18nProvider.
589
672
  */
590
673
  interface NebulaI18nContextType {
591
674
  messages: Messages;
675
+ locale: Language | null | undefined;
592
676
  }
593
677
  /**
594
678
  * Props to use the NebulaI18nProvider.
@@ -611,21 +695,4 @@ declare const NebulaI18nProvider: ({ children, customI18nStorageKey, }: NebulaI1
611
695
  */
612
696
  declare const useNebulaI18n: () => NebulaI18nContextType;
613
697
 
614
- /**
615
- * Type to store the language in the localStorage.
616
- */
617
- type Language = 'en-US' | 'es' | 'pt-BR';
618
- /**
619
- * Get the language from the localStorage.
620
- */
621
- declare const getNebulaLanguage: () => Language | null | undefined;
622
- /**
623
- * Set the language in the localStorage.
624
- */
625
- declare const setNebulaLanguage: (language: Language) => void;
626
- /**
627
- * Messages to use in the NebulaI18nProvider.
628
- */
629
- declare const messages: Map<Language | null | undefined, Messages>;
630
-
631
- 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 };
698
+ 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 };