@sikka/hawa 0.13.15-next → 0.13.16-next
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.css +20 -0
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +14 -6
- package/dist/index.mjs +12 -6
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2049,19 +2049,36 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2049
2049
|
--tw-gradient-to: rgb(74 222 128 / 0) var(--tw-gradient-to-position);
|
|
2050
2050
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2051
2051
|
}
|
|
2052
|
+
.hawa-from-green-500 {
|
|
2053
|
+
--tw-gradient-from: #22c55e var(--tw-gradient-from-position);
|
|
2054
|
+
--tw-gradient-to: rgb(34 197 94 / 0) var(--tw-gradient-to-position);
|
|
2055
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2056
|
+
}
|
|
2052
2057
|
.hawa-from-pink-500 {
|
|
2053
2058
|
--tw-gradient-from: #ec4899 var(--tw-gradient-from-position);
|
|
2054
2059
|
--tw-gradient-to: rgb(236 72 153 / 0) var(--tw-gradient-to-position);
|
|
2055
2060
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2056
2061
|
}
|
|
2062
|
+
.hawa-from-pink-700 {
|
|
2063
|
+
--tw-gradient-from: #be185d var(--tw-gradient-from-position);
|
|
2064
|
+
--tw-gradient-to: rgb(190 24 93 / 0) var(--tw-gradient-to-position);
|
|
2065
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2066
|
+
}
|
|
2057
2067
|
.hawa-via-blue-500 {
|
|
2058
2068
|
--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);
|
|
2059
2069
|
--tw-gradient-stops: var(--tw-gradient-from), #3b82f6 var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
2060
2070
|
}
|
|
2071
|
+
.hawa-via-blue-700 {
|
|
2072
|
+
--tw-gradient-to: rgb(29 78 216 / 0) var(--tw-gradient-to-position);
|
|
2073
|
+
--tw-gradient-stops: var(--tw-gradient-from), #1d4ed8 var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
2074
|
+
}
|
|
2061
2075
|
.hawa-via-red-500 {
|
|
2062
2076
|
--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);
|
|
2063
2077
|
--tw-gradient-stops: var(--tw-gradient-from), #ef4444 var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
2064
2078
|
}
|
|
2079
|
+
.hawa-to-purple-500 {
|
|
2080
|
+
--tw-gradient-to: #a855f7 var(--tw-gradient-to-position);
|
|
2081
|
+
}
|
|
2065
2082
|
.hawa-to-purple-600 {
|
|
2066
2083
|
--tw-gradient-to: #9333ea var(--tw-gradient-to-position);
|
|
2067
2084
|
}
|
|
@@ -2071,6 +2088,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2071
2088
|
.hawa-to-yellow-500 {
|
|
2072
2089
|
--tw-gradient-to: #eab308 var(--tw-gradient-to-position);
|
|
2073
2090
|
}
|
|
2091
|
+
.hawa-to-yellow-600 {
|
|
2092
|
+
--tw-gradient-to: #ca8a04 var(--tw-gradient-to-position);
|
|
2093
|
+
}
|
|
2074
2094
|
.hawa-bg-cover {
|
|
2075
2095
|
background-size: cover;
|
|
2076
2096
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -325,13 +325,14 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
325
325
|
}
|
|
326
326
|
declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
|
|
327
327
|
|
|
328
|
+
type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
|
|
328
329
|
type ChipTypes = {
|
|
329
330
|
/** The text inside the chip */
|
|
330
331
|
label: string;
|
|
331
332
|
/** The small icon before the chip label */
|
|
332
333
|
icon?: JSX.Element;
|
|
333
334
|
/** The color of the chip, must be a tailwind color */
|
|
334
|
-
color?:
|
|
335
|
+
color?: ChipColors;
|
|
335
336
|
/** The size of the chip */
|
|
336
337
|
size?: "small" | "normal" | "large";
|
|
337
338
|
/** Enable/Disable the dot before the label of the chip */
|
|
@@ -343,7 +344,7 @@ type ChipTypes = {
|
|
|
343
344
|
declare const Chip: FC<ChipTypes>;
|
|
344
345
|
|
|
345
346
|
type AlertTypes = {
|
|
346
|
-
severity?: SeverityType;
|
|
347
|
+
severity?: SeverityType | "hyper" | "oceanic";
|
|
347
348
|
/** The title of the alert placed above the text of the alert. Can be used alone */
|
|
348
349
|
title?: any;
|
|
349
350
|
/** The text of the alert placed below the title of the alert. Can be used alone */
|
|
@@ -359,7 +360,7 @@ type AlertTypes = {
|
|
|
359
360
|
variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
|
|
360
361
|
}
|
|
361
362
|
];
|
|
362
|
-
|
|
363
|
+
persistent?: boolean;
|
|
363
364
|
icon?: any;
|
|
364
365
|
className?: any;
|
|
365
366
|
};
|
|
@@ -857,6 +858,10 @@ declare const Stats: FC<StatTypes>;
|
|
|
857
858
|
type Item$1 = {
|
|
858
859
|
value: string;
|
|
859
860
|
label: string;
|
|
861
|
+
badge?: {
|
|
862
|
+
label: string;
|
|
863
|
+
color: ChipColors;
|
|
864
|
+
};
|
|
860
865
|
icon?: any;
|
|
861
866
|
subitems?: SubItem$1[];
|
|
862
867
|
onClick?: () => void;
|
|
@@ -1677,4 +1682,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1677
1682
|
handleTabChange: (index: any) => void;
|
|
1678
1683
|
};
|
|
1679
1684
|
|
|
1680
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1685
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -325,13 +325,14 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
325
325
|
}
|
|
326
326
|
declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
|
|
327
327
|
|
|
328
|
+
type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
|
|
328
329
|
type ChipTypes = {
|
|
329
330
|
/** The text inside the chip */
|
|
330
331
|
label: string;
|
|
331
332
|
/** The small icon before the chip label */
|
|
332
333
|
icon?: JSX.Element;
|
|
333
334
|
/** The color of the chip, must be a tailwind color */
|
|
334
|
-
color?:
|
|
335
|
+
color?: ChipColors;
|
|
335
336
|
/** The size of the chip */
|
|
336
337
|
size?: "small" | "normal" | "large";
|
|
337
338
|
/** Enable/Disable the dot before the label of the chip */
|
|
@@ -343,7 +344,7 @@ type ChipTypes = {
|
|
|
343
344
|
declare const Chip: FC<ChipTypes>;
|
|
344
345
|
|
|
345
346
|
type AlertTypes = {
|
|
346
|
-
severity?: SeverityType;
|
|
347
|
+
severity?: SeverityType | "hyper" | "oceanic";
|
|
347
348
|
/** The title of the alert placed above the text of the alert. Can be used alone */
|
|
348
349
|
title?: any;
|
|
349
350
|
/** The text of the alert placed below the title of the alert. Can be used alone */
|
|
@@ -359,7 +360,7 @@ type AlertTypes = {
|
|
|
359
360
|
variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
|
|
360
361
|
}
|
|
361
362
|
];
|
|
362
|
-
|
|
363
|
+
persistent?: boolean;
|
|
363
364
|
icon?: any;
|
|
364
365
|
className?: any;
|
|
365
366
|
};
|
|
@@ -857,6 +858,10 @@ declare const Stats: FC<StatTypes>;
|
|
|
857
858
|
type Item$1 = {
|
|
858
859
|
value: string;
|
|
859
860
|
label: string;
|
|
861
|
+
badge?: {
|
|
862
|
+
label: string;
|
|
863
|
+
color: ChipColors;
|
|
864
|
+
};
|
|
860
865
|
icon?: any;
|
|
861
866
|
subitems?: SubItem$1[];
|
|
862
867
|
onClick?: () => void;
|
|
@@ -1677,4 +1682,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1677
1682
|
handleTabChange: (index: any) => void;
|
|
1678
1683
|
};
|
|
1679
1684
|
|
|
1680
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1685
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -2518,14 +2518,18 @@ var Alert = function(_param) {
|
|
|
2518
2518
|
info: "",
|
|
2519
2519
|
warning: "",
|
|
2520
2520
|
error: "",
|
|
2521
|
-
success: ""
|
|
2521
|
+
success: "",
|
|
2522
|
+
hyper: "",
|
|
2523
|
+
oceanic: ""
|
|
2522
2524
|
};
|
|
2523
2525
|
var styleVariant = {
|
|
2524
2526
|
none: "hawa-text-gray-700 hawa-bg-gray-100 dark:hawa-bg-gray-900 ",
|
|
2525
2527
|
info: "hawa-text-info-foreground hawa-bg-info/90",
|
|
2526
2528
|
warning: "hawa-text-warning-foreground hawa-bg-warning/90",
|
|
2527
2529
|
error: "hawa-text-destructive-foreground hawa-bg-destructive/90",
|
|
2528
|
-
success: "hawa-text-success-foreground hawa-bg-success/90"
|
|
2530
|
+
success: "hawa-text-success-foreground hawa-bg-success/90",
|
|
2531
|
+
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
|
|
2532
|
+
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
|
|
2529
2533
|
};
|
|
2530
2534
|
return /* @__PURE__ */ import_react16.default.createElement("div", {
|
|
2531
2535
|
ref: alertRef
|
|
@@ -2542,7 +2546,7 @@ var Alert = function(_param) {
|
|
|
2542
2546
|
}, /* @__PURE__ */ import_react16.default.createElement("span", {
|
|
2543
2547
|
className: (0, import_clsx6.default)("hawa-font-bold", direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8")
|
|
2544
2548
|
}, props.title), /* @__PURE__ */ import_react16.default.createElement("span", {
|
|
2545
|
-
className: (0, import_clsx6.default)(direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8", props.
|
|
2549
|
+
className: (0, import_clsx6.default)(direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8", props.persistent ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]")
|
|
2546
2550
|
}, props.text), props.actions && /* @__PURE__ */ import_react16.default.createElement("div", {
|
|
2547
2551
|
className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2"
|
|
2548
2552
|
}, props.actions.map(function(act, index) {
|
|
@@ -2551,7 +2555,7 @@ var Alert = function(_param) {
|
|
|
2551
2555
|
variant: act.variant,
|
|
2552
2556
|
onClick: act.onClick()
|
|
2553
2557
|
}, act.label);
|
|
2554
|
-
})))), !props.
|
|
2558
|
+
})))), !props.persistent && /* @__PURE__ */ import_react16.default.createElement("button", {
|
|
2555
2559
|
type: "button",
|
|
2556
2560
|
"data-dismiss-target": "#alert-default",
|
|
2557
2561
|
"aria-label": "Close",
|
|
@@ -6806,8 +6810,12 @@ var SidebarItem = function(_param) {
|
|
|
6806
6810
|
}, /* @__PURE__ */ React58.createElement("div", {
|
|
6807
6811
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
6808
6812
|
}, item.icon && item.icon, /* @__PURE__ */ React58.createElement("span", {
|
|
6809
|
-
className: cn("hawa-whitespace-nowrap hawa-transition-all", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6810
|
-
}, item.label
|
|
6813
|
+
className: cn("hawa-whitespace-nowrap hawa-transition-all hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6814
|
+
}, item.label, " ", item.badge && /* @__PURE__ */ React58.createElement(Chip, {
|
|
6815
|
+
label: item.badge.label,
|
|
6816
|
+
color: "hyper",
|
|
6817
|
+
size: "small"
|
|
6818
|
+
}))));
|
|
6811
6819
|
}
|
|
6812
6820
|
};
|
|
6813
6821
|
// components/layout/Copyrights.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -2033,14 +2033,18 @@ var Alert = ({
|
|
|
2033
2033
|
info: "",
|
|
2034
2034
|
warning: "",
|
|
2035
2035
|
error: "",
|
|
2036
|
-
success: ""
|
|
2036
|
+
success: "",
|
|
2037
|
+
hyper: "",
|
|
2038
|
+
oceanic: ""
|
|
2037
2039
|
};
|
|
2038
2040
|
let styleVariant = {
|
|
2039
2041
|
none: "hawa-text-gray-700 hawa-bg-gray-100 dark:hawa-bg-gray-900 ",
|
|
2040
2042
|
info: "hawa-text-info-foreground hawa-bg-info/90",
|
|
2041
2043
|
warning: "hawa-text-warning-foreground hawa-bg-warning/90",
|
|
2042
2044
|
error: "hawa-text-destructive-foreground hawa-bg-destructive/90",
|
|
2043
|
-
success: "hawa-text-success-foreground hawa-bg-success/90"
|
|
2045
|
+
success: "hawa-text-success-foreground hawa-bg-success/90",
|
|
2046
|
+
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
|
|
2047
|
+
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
|
|
2044
2048
|
};
|
|
2045
2049
|
return /* @__PURE__ */ React25.createElement("div", { ref: alertRef }, /* @__PURE__ */ React25.createElement(
|
|
2046
2050
|
"div",
|
|
@@ -2074,7 +2078,7 @@ var Alert = ({
|
|
|
2074
2078
|
{
|
|
2075
2079
|
className: clsx6(
|
|
2076
2080
|
direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8",
|
|
2077
|
-
props.
|
|
2081
|
+
props.persistent ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]"
|
|
2078
2082
|
)
|
|
2079
2083
|
},
|
|
2080
2084
|
props.text
|
|
@@ -2087,7 +2091,7 @@ var Alert = ({
|
|
|
2087
2091
|
},
|
|
2088
2092
|
act.label
|
|
2089
2093
|
))))),
|
|
2090
|
-
!props.
|
|
2094
|
+
!props.persistent && /* @__PURE__ */ React25.createElement(
|
|
2091
2095
|
"button",
|
|
2092
2096
|
{
|
|
2093
2097
|
type: "button",
|
|
@@ -6644,11 +6648,13 @@ var SidebarItem = ({
|
|
|
6644
6648
|
"span",
|
|
6645
6649
|
{
|
|
6646
6650
|
className: cn(
|
|
6647
|
-
"hawa-whitespace-nowrap hawa-transition-all",
|
|
6651
|
+
"hawa-whitespace-nowrap hawa-transition-all hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center",
|
|
6648
6652
|
isOpen ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
6649
6653
|
)
|
|
6650
6654
|
},
|
|
6651
|
-
item.label
|
|
6655
|
+
item.label,
|
|
6656
|
+
" ",
|
|
6657
|
+
item.badge && /* @__PURE__ */ React58.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
|
6652
6658
|
))
|
|
6653
6659
|
);
|
|
6654
6660
|
}
|