@sikka/hawa 0.38.2-next → 0.38.4-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/{DropdownMenu-ChxqadLu.d.ts → DropdownMenu-Cxlm5lZl.d.ts} +6 -2
- package/dist/{DropdownMenu-BYiPSEYy.d.mts → DropdownMenu-Dly5lsqz.d.mts} +6 -2
- package/dist/appLayout/index.js +6 -3
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +6 -3
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +6 -3
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +6 -3
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +6 -3
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/pricing/index.js +1 -1
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-V7O5MQZQ.mjs → chunk-GVPIM5KC.mjs} +7 -5
- package/dist/{chunk-F23GAE2P.mjs → chunk-GZVEFVSJ.mjs} +1 -1
- package/dist/{chunk-UDJFVH2I.mjs → chunk-RZJPAN5T.mjs} +1 -1
- package/dist/dataTable/index.js +6 -3
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +6 -3
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +7 -2
- package/dist/dropdownMenu/index.d.ts +7 -2
- package/dist/dropdownMenu/index.js +7 -5
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +7 -5
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -1
- package/dist/elements/index.d.ts +2 -1
- package/dist/elements/index.js +7 -5
- package/dist/elements/index.mjs +5 -5
- package/dist/index.css +2201 -1759
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +6 -3
- package/dist/layout/index.mjs +2 -2
- package/dist/splitButton/index.js +6 -3
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +6 -3
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -25,6 +25,7 @@ import { HighlightProps } from 'prism-react-renderer';
|
|
25
25
|
import { EmblaOptionsType } from 'embla-carousel';
|
26
26
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
27
27
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
28
|
+
export { Portal as DropdownMenuPortal } from '@headlessui/react';
|
28
29
|
|
29
30
|
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
30
31
|
clickable?: boolean;
|
@@ -107,7 +108,6 @@ declare function Skeleton({ className, content, animation, fade, ...props }: Ske
|
|
107
108
|
declare const DropdownMenuRoot: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
108
109
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
109
110
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
110
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
111
111
|
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
112
112
|
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
113
113
|
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
@@ -170,6 +170,11 @@ interface DropdownMenuProps {
|
|
170
170
|
trigger?: any;
|
171
171
|
items: MenuItemType[];
|
172
172
|
direction?: DirectionType;
|
173
|
+
classNames?: {
|
174
|
+
trigger?: string;
|
175
|
+
content?: string;
|
176
|
+
item?: string;
|
177
|
+
};
|
173
178
|
className?: ExtendedDropdownMenuContentProps["className"];
|
174
179
|
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
175
180
|
triggerProps?: DropdownMenuPrimitive.DropdownMenuTriggerProps;
|
@@ -2237,4 +2242,4 @@ type HotkeyItem = [
|
|
2237
2242
|
];
|
2238
2243
|
declare function useShortcuts(hotkeys: HotkeyItem[], tagsToIgnore?: string[], triggerOnContentEditable?: boolean): void;
|
2239
2244
|
|
2240
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel,
|
2245
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, FullCommand, type FullCommandItem, HorizontalPricing, type Hotkey, type HotkeyItem, type HotkeyItemOptions, Input, InterfaceSettings, ItemCard, type KeyboardModifiers, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, getHotkeyHandler, getHotkeyMatcher, navigationMenuTriggerStyle, parseHotkey, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useShortcuts, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
@@ -25,6 +25,7 @@ import { HighlightProps } from 'prism-react-renderer';
|
|
25
25
|
import { EmblaOptionsType } from 'embla-carousel';
|
26
26
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
27
27
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
28
|
+
export { Portal as DropdownMenuPortal } from '@headlessui/react';
|
28
29
|
|
29
30
|
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
30
31
|
clickable?: boolean;
|
@@ -107,7 +108,6 @@ declare function Skeleton({ className, content, animation, fade, ...props }: Ske
|
|
107
108
|
declare const DropdownMenuRoot: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
108
109
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
109
110
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
110
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
111
111
|
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
112
112
|
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
113
113
|
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
@@ -170,6 +170,11 @@ interface DropdownMenuProps {
|
|
170
170
|
trigger?: any;
|
171
171
|
items: MenuItemType[];
|
172
172
|
direction?: DirectionType;
|
173
|
+
classNames?: {
|
174
|
+
trigger?: string;
|
175
|
+
content?: string;
|
176
|
+
item?: string;
|
177
|
+
};
|
173
178
|
className?: ExtendedDropdownMenuContentProps["className"];
|
174
179
|
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
175
180
|
triggerProps?: DropdownMenuPrimitive.DropdownMenuTriggerProps;
|
@@ -2237,4 +2242,4 @@ type HotkeyItem = [
|
|
2237
2242
|
];
|
2238
2243
|
declare function useShortcuts(hotkeys: HotkeyItem[], tagsToIgnore?: string[], triggerOnContentEditable?: boolean): void;
|
2239
2244
|
|
2240
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel,
|
2245
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, FullCommand, type FullCommandItem, HorizontalPricing, type Hotkey, type HotkeyItem, type HotkeyItemOptions, Input, InterfaceSettings, ItemCard, type KeyboardModifiers, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, getHotkeyHandler, getHotkeyMatcher, navigationMenuTriggerStyle, parseHotkey, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useShortcuts, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
@@ -103,7 +103,7 @@ __export(components_exports, {
|
|
103
103
|
DropdownMenuGroup: () => DropdownMenuGroup,
|
104
104
|
DropdownMenuItem: () => DropdownMenuItem,
|
105
105
|
DropdownMenuLabel: () => DropdownMenuLabel,
|
106
|
-
DropdownMenuPortal: () =>
|
106
|
+
DropdownMenuPortal: () => import_react4.Portal,
|
107
107
|
DropdownMenuRadio: () => DropdownMenuRadio,
|
108
108
|
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
109
109
|
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
@@ -708,7 +708,6 @@ var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
708
708
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
709
709
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
710
710
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
711
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
712
711
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
713
712
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
714
713
|
var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
@@ -771,7 +770,7 @@ var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...pro
|
|
771
770
|
}
|
772
771
|
)));
|
773
772
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
774
|
-
var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
773
|
+
var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, LinkComponent = "a", ...props }, ref) => {
|
775
774
|
return /* @__PURE__ */ React5.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React5.createElement(
|
776
775
|
DropdownMenuPrimitive.Item,
|
777
776
|
{
|
@@ -894,6 +893,7 @@ var DropdownMenu = ({
|
|
894
893
|
sideOffset,
|
895
894
|
side,
|
896
895
|
className,
|
896
|
+
classNames,
|
897
897
|
triggerClassname,
|
898
898
|
triggerProps,
|
899
899
|
align,
|
@@ -931,7 +931,7 @@ var DropdownMenu = ({
|
|
931
931
|
DropdownMenuTrigger,
|
932
932
|
{
|
933
933
|
asChild: true,
|
934
|
-
className: triggerClassname,
|
934
|
+
className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
|
935
935
|
...triggerProps
|
936
936
|
},
|
937
937
|
trigger
|
@@ -945,6 +945,7 @@ var DropdownMenu = ({
|
|
945
945
|
alignOffset,
|
946
946
|
className: cn(
|
947
947
|
className,
|
948
|
+
classNames == null ? void 0 : classNames.content,
|
948
949
|
widthStyles[width],
|
949
950
|
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
950
951
|
),
|
@@ -1069,7 +1070,8 @@ var DropdownMenu = ({
|
|
1069
1070
|
className: cn(
|
1070
1071
|
sizeStyles2[size],
|
1071
1072
|
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
|
1072
|
-
item.presist && "focus:hawa-bg-transparent"
|
1073
|
+
item.presist && "focus:hawa-bg-transparent",
|
1074
|
+
classNames == null ? void 0 : classNames.item
|
1073
1075
|
)
|
1074
1076
|
},
|
1075
1077
|
item.icon && item.icon,
|
package/dist/index.mjs
CHANGED
@@ -459,7 +459,6 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
459
459
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
460
460
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
461
461
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
462
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
463
462
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
464
463
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
465
464
|
var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
@@ -522,7 +521,7 @@ var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...pro
|
|
522
521
|
}
|
523
522
|
)));
|
524
523
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
525
|
-
var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
524
|
+
var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, LinkComponent = "a", ...props }, ref) => {
|
526
525
|
return /* @__PURE__ */ React5.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React5.createElement(
|
527
526
|
DropdownMenuPrimitive.Item,
|
528
527
|
{
|
@@ -645,6 +644,7 @@ var DropdownMenu = ({
|
|
645
644
|
sideOffset,
|
646
645
|
side,
|
647
646
|
className,
|
647
|
+
classNames,
|
648
648
|
triggerClassname,
|
649
649
|
triggerProps,
|
650
650
|
align,
|
@@ -682,7 +682,7 @@ var DropdownMenu = ({
|
|
682
682
|
DropdownMenuTrigger,
|
683
683
|
{
|
684
684
|
asChild: true,
|
685
|
-
className: triggerClassname,
|
685
|
+
className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
|
686
686
|
...triggerProps
|
687
687
|
},
|
688
688
|
trigger
|
@@ -696,6 +696,7 @@ var DropdownMenu = ({
|
|
696
696
|
alignOffset,
|
697
697
|
className: cn(
|
698
698
|
className,
|
699
|
+
classNames == null ? void 0 : classNames.content,
|
699
700
|
widthStyles[width],
|
700
701
|
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
701
702
|
),
|
@@ -820,7 +821,8 @@ var DropdownMenu = ({
|
|
820
821
|
className: cn(
|
821
822
|
sizeStyles2[size],
|
822
823
|
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
|
823
|
-
item.presist && "focus:hawa-bg-transparent"
|
824
|
+
item.presist && "focus:hawa-bg-transparent",
|
825
|
+
classNames == null ? void 0 : classNames.item
|
824
826
|
)
|
825
827
|
},
|
826
828
|
item.icon && item.icon,
|
@@ -13038,7 +13040,7 @@ export {
|
|
13038
13040
|
DropdownMenuGroup,
|
13039
13041
|
DropdownMenuItem,
|
13040
13042
|
DropdownMenuLabel,
|
13041
|
-
DropdownMenuPortal,
|
13043
|
+
Portal as DropdownMenuPortal,
|
13042
13044
|
DropdownMenuRadio,
|
13043
13045
|
DropdownMenuRadioGroup,
|
13044
13046
|
DropdownMenuRadioItem,
|
package/dist/layout/index.d.mts
CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
2
2
|
import React__default, { FC } from 'react';
|
3
3
|
import { D as DirectionType } from '../commonTypes-C-g8nFFC.mjs';
|
4
4
|
import { C as ChipColors } from '../Chip-CGl24Kd9.mjs';
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-Dly5lsqz.mjs';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
8
8
|
|
package/dist/layout/index.d.ts
CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
2
2
|
import React__default, { FC } from 'react';
|
3
3
|
import { D as DirectionType } from '../commonTypes-C-g8nFFC.js';
|
4
4
|
import { C as ChipColors } from '../Chip-Cato49ar.js';
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-Cxlm5lZl.js';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
8
8
|
|
package/dist/layout/index.js
CHANGED
@@ -1205,7 +1205,7 @@ var DropdownMenuContent = React13.forwardRef(({ className, sideOffset = 4, ...pr
|
|
1205
1205
|
}
|
1206
1206
|
)));
|
1207
1207
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
1208
|
-
var DropdownMenuItem = React13.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
1208
|
+
var DropdownMenuItem = React13.forwardRef(({ className, inset, badged, slug, LinkComponent = "a", ...props }, ref) => {
|
1209
1209
|
return /* @__PURE__ */ React13.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React13.createElement(
|
1210
1210
|
DropdownMenuPrimitive.Item,
|
1211
1211
|
{
|
@@ -1328,6 +1328,7 @@ var DropdownMenu = ({
|
|
1328
1328
|
sideOffset,
|
1329
1329
|
side,
|
1330
1330
|
className,
|
1331
|
+
classNames,
|
1331
1332
|
triggerClassname,
|
1332
1333
|
triggerProps,
|
1333
1334
|
align,
|
@@ -1365,7 +1366,7 @@ var DropdownMenu = ({
|
|
1365
1366
|
DropdownMenuTrigger,
|
1366
1367
|
{
|
1367
1368
|
asChild: true,
|
1368
|
-
className: triggerClassname,
|
1369
|
+
className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
|
1369
1370
|
...triggerProps
|
1370
1371
|
},
|
1371
1372
|
trigger
|
@@ -1379,6 +1380,7 @@ var DropdownMenu = ({
|
|
1379
1380
|
alignOffset,
|
1380
1381
|
className: cn(
|
1381
1382
|
className,
|
1383
|
+
classNames == null ? void 0 : classNames.content,
|
1382
1384
|
widthStyles[width],
|
1383
1385
|
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
1384
1386
|
),
|
@@ -1503,7 +1505,8 @@ var DropdownMenu = ({
|
|
1503
1505
|
className: cn(
|
1504
1506
|
sizeStyles[size],
|
1505
1507
|
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
|
1506
|
-
item.presist && "focus:hawa-bg-transparent"
|
1508
|
+
item.presist && "focus:hawa-bg-transparent",
|
1509
|
+
classNames == null ? void 0 : classNames.item
|
1507
1510
|
)
|
1508
1511
|
},
|
1509
1512
|
item.icon && item.icon,
|
package/dist/layout/index.mjs
CHANGED
@@ -3,7 +3,7 @@ import {
|
|
3
3
|
Sheet,
|
4
4
|
SheetContent,
|
5
5
|
SheetTrigger
|
6
|
-
} from "../chunk-
|
6
|
+
} from "../chunk-GZVEFVSJ.mjs";
|
7
7
|
import {
|
8
8
|
Button,
|
9
9
|
Card,
|
@@ -16,7 +16,7 @@ import {
|
|
16
16
|
Skeleton,
|
17
17
|
Tooltip,
|
18
18
|
cn
|
19
|
-
} from "../chunk-
|
19
|
+
} from "../chunk-GVPIM5KC.mjs";
|
20
20
|
import {
|
21
21
|
useBreakpoint,
|
22
22
|
useClickOutside
|
@@ -113,7 +113,7 @@ var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...prop
|
|
113
113
|
}
|
114
114
|
)));
|
115
115
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
116
|
-
var DropdownMenuItem = React.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
116
|
+
var DropdownMenuItem = React.forwardRef(({ className, inset, badged, slug, LinkComponent = "a", ...props }, ref) => {
|
117
117
|
return /* @__PURE__ */ React.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React.createElement(
|
118
118
|
DropdownMenuPrimitive.Item,
|
119
119
|
{
|
@@ -236,6 +236,7 @@ var DropdownMenu = ({
|
|
236
236
|
sideOffset,
|
237
237
|
side,
|
238
238
|
className,
|
239
|
+
classNames,
|
239
240
|
triggerClassname,
|
240
241
|
triggerProps,
|
241
242
|
align,
|
@@ -273,7 +274,7 @@ var DropdownMenu = ({
|
|
273
274
|
DropdownMenuTrigger,
|
274
275
|
{
|
275
276
|
asChild: true,
|
276
|
-
className: triggerClassname,
|
277
|
+
className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
|
277
278
|
...triggerProps
|
278
279
|
},
|
279
280
|
trigger
|
@@ -287,6 +288,7 @@ var DropdownMenu = ({
|
|
287
288
|
alignOffset,
|
288
289
|
className: cn(
|
289
290
|
className,
|
291
|
+
classNames == null ? void 0 : classNames.content,
|
290
292
|
widthStyles[width],
|
291
293
|
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
292
294
|
),
|
@@ -411,7 +413,8 @@ var DropdownMenu = ({
|
|
411
413
|
className: cn(
|
412
414
|
sizeStyles[size],
|
413
415
|
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
|
414
|
-
item.presist && "focus:hawa-bg-transparent"
|
416
|
+
item.presist && "focus:hawa-bg-transparent",
|
417
|
+
classNames == null ? void 0 : classNames.item
|
415
418
|
)
|
416
419
|
},
|
417
420
|
item.icon && item.icon,
|