@ikatec/nebula-react 1.0.16 → 1.0.18
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 +48 -2
- package/dist/index.d.ts +48 -2
- package/dist/index.js +7 -15
- package/dist/index.mjs +7 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -498,7 +498,7 @@ declare const Paragraph: React__default.ForwardRefExoticComponent<ParagraphProps
|
|
|
498
498
|
interface CaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
|
|
499
499
|
}
|
|
500
500
|
declare const Caption: React__default.ForwardRefExoticComponent<CaptionProps & React__default.RefAttributes<HTMLTableCaptionElement>>;
|
|
501
|
-
interface LinkProps extends
|
|
501
|
+
interface LinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
502
502
|
size?: 'md' | 'sm';
|
|
503
503
|
asChild?: boolean;
|
|
504
504
|
children: ReactNode;
|
|
@@ -550,6 +550,9 @@ interface InputPhoneMessages {
|
|
|
550
550
|
interface TimePickerMessages {
|
|
551
551
|
label: string;
|
|
552
552
|
}
|
|
553
|
+
interface FileUploadMessages {
|
|
554
|
+
deleteAll: string;
|
|
555
|
+
}
|
|
553
556
|
/**
|
|
554
557
|
* Type to store the messages.
|
|
555
558
|
*/
|
|
@@ -558,6 +561,7 @@ interface Messages {
|
|
|
558
561
|
inputSelect: InputSelectMessages;
|
|
559
562
|
inputPhone: InputPhoneMessages;
|
|
560
563
|
timePicker: TimePickerMessages;
|
|
564
|
+
fileUpload: FileUploadMessages;
|
|
561
565
|
}
|
|
562
566
|
|
|
563
567
|
/**
|
|
@@ -609,6 +613,48 @@ type InputTimeProps = Omit<React.ComponentProps<typeof InputText>, 'onChange'> &
|
|
|
609
613
|
};
|
|
610
614
|
declare const InputTime: React$1.ForwardRefExoticComponent<Omit<InputTimeProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
611
615
|
|
|
616
|
+
type FileMetadata = {
|
|
617
|
+
name: string;
|
|
618
|
+
size: number;
|
|
619
|
+
type: string;
|
|
620
|
+
url: string;
|
|
621
|
+
id: string;
|
|
622
|
+
};
|
|
623
|
+
type FileWithPreview = {
|
|
624
|
+
file: File | FileMetadata;
|
|
625
|
+
id: string;
|
|
626
|
+
preview?: string;
|
|
627
|
+
};
|
|
628
|
+
type FileUploadOptions = {
|
|
629
|
+
maxFiles?: number;
|
|
630
|
+
maxSize?: number;
|
|
631
|
+
accept?: string;
|
|
632
|
+
multiple?: boolean;
|
|
633
|
+
initialFiles?: FileMetadata[];
|
|
634
|
+
onFilesChange?: (files: FileWithPreview[]) => void;
|
|
635
|
+
onFilesAdded?: (addedFiles: FileWithPreview[]) => void;
|
|
636
|
+
};
|
|
637
|
+
declare enum FileUploadError {
|
|
638
|
+
MAX_FILES_EXCEEDED = "MAX_FILES_EXCEEDED",
|
|
639
|
+
MAXIMUM_FILE_SIZE_EXCEEDED = "MAXIMUM_FILE_SIZE_EXCEEDED",
|
|
640
|
+
INVALID_FORMAT = "INVALID_FORMAT"
|
|
641
|
+
}
|
|
642
|
+
declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
643
|
+
|
|
644
|
+
interface FileUploadProps extends Omit<FileUploadOptions, 'maxSize'> {
|
|
645
|
+
maxSizeMB?: number;
|
|
646
|
+
title: string;
|
|
647
|
+
subtitle: string;
|
|
648
|
+
showPreview?: boolean;
|
|
649
|
+
imagePreview?: (file?: FileWithPreview) => ReactNode;
|
|
650
|
+
onError?: (errors: {
|
|
651
|
+
file?: File | FileMetadata;
|
|
652
|
+
error: FileUploadError;
|
|
653
|
+
}[]) => void;
|
|
654
|
+
disabled?: boolean;
|
|
655
|
+
}
|
|
656
|
+
declare function FileUpload({ maxSizeMB, subtitle, title, imagePreview, showPreview, onError, maxFiles, ...rest }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
657
|
+
|
|
612
658
|
interface TextAreaProps extends React$1.InputHTMLAttributes<HTMLTextAreaElement> {
|
|
613
659
|
isError?: boolean;
|
|
614
660
|
resize?: boolean;
|
|
@@ -696,4 +742,4 @@ declare const NebulaI18nProvider: ({ children, customI18nStorageKey, }: NebulaI1
|
|
|
696
742
|
*/
|
|
697
743
|
declare const useNebulaI18n: () => NebulaI18nContextType;
|
|
698
744
|
|
|
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 };
|
|
745
|
+
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, type FileMetadata, FileUpload, FileUploadError, type FileUploadOptions, type FileWithPreview, 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, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useNebulaI18n };
|
package/dist/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ declare const Paragraph: React__default.ForwardRefExoticComponent<ParagraphProps
|
|
|
498
498
|
interface CaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
|
|
499
499
|
}
|
|
500
500
|
declare const Caption: React__default.ForwardRefExoticComponent<CaptionProps & React__default.RefAttributes<HTMLTableCaptionElement>>;
|
|
501
|
-
interface LinkProps extends
|
|
501
|
+
interface LinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
502
502
|
size?: 'md' | 'sm';
|
|
503
503
|
asChild?: boolean;
|
|
504
504
|
children: ReactNode;
|
|
@@ -550,6 +550,9 @@ interface InputPhoneMessages {
|
|
|
550
550
|
interface TimePickerMessages {
|
|
551
551
|
label: string;
|
|
552
552
|
}
|
|
553
|
+
interface FileUploadMessages {
|
|
554
|
+
deleteAll: string;
|
|
555
|
+
}
|
|
553
556
|
/**
|
|
554
557
|
* Type to store the messages.
|
|
555
558
|
*/
|
|
@@ -558,6 +561,7 @@ interface Messages {
|
|
|
558
561
|
inputSelect: InputSelectMessages;
|
|
559
562
|
inputPhone: InputPhoneMessages;
|
|
560
563
|
timePicker: TimePickerMessages;
|
|
564
|
+
fileUpload: FileUploadMessages;
|
|
561
565
|
}
|
|
562
566
|
|
|
563
567
|
/**
|
|
@@ -609,6 +613,48 @@ type InputTimeProps = Omit<React.ComponentProps<typeof InputText>, 'onChange'> &
|
|
|
609
613
|
};
|
|
610
614
|
declare const InputTime: React$1.ForwardRefExoticComponent<Omit<InputTimeProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
611
615
|
|
|
616
|
+
type FileMetadata = {
|
|
617
|
+
name: string;
|
|
618
|
+
size: number;
|
|
619
|
+
type: string;
|
|
620
|
+
url: string;
|
|
621
|
+
id: string;
|
|
622
|
+
};
|
|
623
|
+
type FileWithPreview = {
|
|
624
|
+
file: File | FileMetadata;
|
|
625
|
+
id: string;
|
|
626
|
+
preview?: string;
|
|
627
|
+
};
|
|
628
|
+
type FileUploadOptions = {
|
|
629
|
+
maxFiles?: number;
|
|
630
|
+
maxSize?: number;
|
|
631
|
+
accept?: string;
|
|
632
|
+
multiple?: boolean;
|
|
633
|
+
initialFiles?: FileMetadata[];
|
|
634
|
+
onFilesChange?: (files: FileWithPreview[]) => void;
|
|
635
|
+
onFilesAdded?: (addedFiles: FileWithPreview[]) => void;
|
|
636
|
+
};
|
|
637
|
+
declare enum FileUploadError {
|
|
638
|
+
MAX_FILES_EXCEEDED = "MAX_FILES_EXCEEDED",
|
|
639
|
+
MAXIMUM_FILE_SIZE_EXCEEDED = "MAXIMUM_FILE_SIZE_EXCEEDED",
|
|
640
|
+
INVALID_FORMAT = "INVALID_FORMAT"
|
|
641
|
+
}
|
|
642
|
+
declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
643
|
+
|
|
644
|
+
interface FileUploadProps extends Omit<FileUploadOptions, 'maxSize'> {
|
|
645
|
+
maxSizeMB?: number;
|
|
646
|
+
title: string;
|
|
647
|
+
subtitle: string;
|
|
648
|
+
showPreview?: boolean;
|
|
649
|
+
imagePreview?: (file?: FileWithPreview) => ReactNode;
|
|
650
|
+
onError?: (errors: {
|
|
651
|
+
file?: File | FileMetadata;
|
|
652
|
+
error: FileUploadError;
|
|
653
|
+
}[]) => void;
|
|
654
|
+
disabled?: boolean;
|
|
655
|
+
}
|
|
656
|
+
declare function FileUpload({ maxSizeMB, subtitle, title, imagePreview, showPreview, onError, maxFiles, ...rest }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
657
|
+
|
|
612
658
|
interface TextAreaProps extends React$1.InputHTMLAttributes<HTMLTextAreaElement> {
|
|
613
659
|
isError?: boolean;
|
|
614
660
|
resize?: boolean;
|
|
@@ -696,4 +742,4 @@ declare const NebulaI18nProvider: ({ children, customI18nStorageKey, }: NebulaI1
|
|
|
696
742
|
*/
|
|
697
743
|
declare const useNebulaI18n: () => NebulaI18nContextType;
|
|
698
744
|
|
|
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 };
|
|
745
|
+
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, type FileMetadata, FileUpload, FileUploadError, type FileUploadOptions, type FileWithPreview, 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, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useNebulaI18n };
|
package/dist/index.js
CHANGED
|
@@ -3717,9 +3717,10 @@ var Calendar = ({
|
|
|
3717
3717
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3718
3718
|
"div",
|
|
3719
3719
|
{
|
|
3720
|
-
className: cn("flex justify-between items-center !h-9
|
|
3720
|
+
className: cn("flex justify-between items-center !h-9", {
|
|
3721
3721
|
"ps-3": numberOfMonths === 1,
|
|
3722
|
-
"mb-0": showMonthGridSelection
|
|
3722
|
+
"mb-0": showMonthGridSelection,
|
|
3723
|
+
"mb-3": !showMonthGridSelection
|
|
3723
3724
|
}),
|
|
3724
3725
|
children: [
|
|
3725
3726
|
!hideNavigation && numberOfMonths > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3800,7 +3801,8 @@ var Calendar = ({
|
|
|
3800
3801
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3801
3802
|
Box,
|
|
3802
3803
|
{
|
|
3803
|
-
|
|
3804
|
+
paddingSize: "none",
|
|
3805
|
+
className: "nebula-ds z-40 flex gap-2 flex-col justify-between w-full",
|
|
3804
3806
|
border: false,
|
|
3805
3807
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds z-40 grid grid-cols-2 gap-1 bg-inherit pt-2", children: MONTHS.map((monthOption) => {
|
|
3806
3808
|
const monthOptionAsDate = new Date(monthOption);
|
|
@@ -3851,17 +3853,7 @@ var Calendar = ({
|
|
|
3851
3853
|
return /* @__PURE__ */ jsxRuntime.jsx("tr", { ...props2 });
|
|
3852
3854
|
},
|
|
3853
3855
|
Weekday(props2) {
|
|
3854
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3855
|
-
"th",
|
|
3856
|
-
{
|
|
3857
|
-
...props2,
|
|
3858
|
-
className: cn(
|
|
3859
|
-
props2.className,
|
|
3860
|
-
"font-medium text-xs !text-calendar-weekDay-color"
|
|
3861
|
-
),
|
|
3862
|
-
children: String(props2.children)?.toUpperCase()?.[0]
|
|
3863
|
-
}
|
|
3864
|
-
);
|
|
3856
|
+
return /* @__PURE__ */ jsxRuntime.jsx("th", { ...props2, className: cn(props2.className), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds font-medium text-xs !text-calendar-weekDay-color text-center pb-2", children: String(props2.children)?.toUpperCase()?.[0] }) });
|
|
3865
3857
|
},
|
|
3866
3858
|
Footer(props2) {
|
|
3867
3859
|
if (showMonthGridSelection) return void 0;
|
|
@@ -4835,7 +4827,7 @@ var TextArea = React8__namespace.forwardRef(
|
|
|
4835
4827
|
};
|
|
4836
4828
|
}, [asInput, autoResize, props.value]);
|
|
4837
4829
|
React8__namespace.useImperativeHandle(ref, () => innerRef.current);
|
|
4838
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds relative", children: [
|
|
4830
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds relative w-full", children: [
|
|
4839
4831
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4840
4832
|
"div",
|
|
4841
4833
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -3677,9 +3677,10 @@ var Calendar = ({
|
|
|
3677
3677
|
return /* @__PURE__ */ jsxs(
|
|
3678
3678
|
"div",
|
|
3679
3679
|
{
|
|
3680
|
-
className: cn("flex justify-between items-center !h-9
|
|
3680
|
+
className: cn("flex justify-between items-center !h-9", {
|
|
3681
3681
|
"ps-3": numberOfMonths === 1,
|
|
3682
|
-
"mb-0": showMonthGridSelection
|
|
3682
|
+
"mb-0": showMonthGridSelection,
|
|
3683
|
+
"mb-3": !showMonthGridSelection
|
|
3683
3684
|
}),
|
|
3684
3685
|
children: [
|
|
3685
3686
|
!hideNavigation && numberOfMonths > 1 && /* @__PURE__ */ jsx(
|
|
@@ -3760,7 +3761,8 @@ var Calendar = ({
|
|
|
3760
3761
|
return /* @__PURE__ */ jsx(
|
|
3761
3762
|
Box,
|
|
3762
3763
|
{
|
|
3763
|
-
|
|
3764
|
+
paddingSize: "none",
|
|
3765
|
+
className: "nebula-ds z-40 flex gap-2 flex-col justify-between w-full",
|
|
3764
3766
|
border: false,
|
|
3765
3767
|
children: /* @__PURE__ */ jsx("div", { className: "nebula-ds z-40 grid grid-cols-2 gap-1 bg-inherit pt-2", children: MONTHS.map((monthOption) => {
|
|
3766
3768
|
const monthOptionAsDate = new Date(monthOption);
|
|
@@ -3811,17 +3813,7 @@ var Calendar = ({
|
|
|
3811
3813
|
return /* @__PURE__ */ jsx("tr", { ...props2 });
|
|
3812
3814
|
},
|
|
3813
3815
|
Weekday(props2) {
|
|
3814
|
-
return /* @__PURE__ */ jsx(
|
|
3815
|
-
"th",
|
|
3816
|
-
{
|
|
3817
|
-
...props2,
|
|
3818
|
-
className: cn(
|
|
3819
|
-
props2.className,
|
|
3820
|
-
"font-medium text-xs !text-calendar-weekDay-color"
|
|
3821
|
-
),
|
|
3822
|
-
children: String(props2.children)?.toUpperCase()?.[0]
|
|
3823
|
-
}
|
|
3824
|
-
);
|
|
3816
|
+
return /* @__PURE__ */ jsx("th", { ...props2, className: cn(props2.className), children: /* @__PURE__ */ jsx("div", { className: "nebula-ds font-medium text-xs !text-calendar-weekDay-color text-center pb-2", children: String(props2.children)?.toUpperCase()?.[0] }) });
|
|
3825
3817
|
},
|
|
3826
3818
|
Footer(props2) {
|
|
3827
3819
|
if (showMonthGridSelection) return void 0;
|
|
@@ -4795,7 +4787,7 @@ var TextArea = React8.forwardRef(
|
|
|
4795
4787
|
};
|
|
4796
4788
|
}, [asInput, autoResize, props.value]);
|
|
4797
4789
|
React8.useImperativeHandle(ref, () => innerRef.current);
|
|
4798
|
-
return /* @__PURE__ */ jsxs("div", { className: "nebula-ds relative", children: [
|
|
4790
|
+
return /* @__PURE__ */ jsxs("div", { className: "nebula-ds relative w-full", children: [
|
|
4799
4791
|
/* @__PURE__ */ jsx(
|
|
4800
4792
|
"div",
|
|
4801
4793
|
{
|