@sikka/hawa 0.21.11-next → 0.21.12-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/accordion/index.mjs +2 -1
- package/dist/chunk-NFLMC26M.mjs +155 -0
- package/dist/{chunk-TIP3WZV6.mjs → chunk-U2ZNJ3FC.mjs} +1 -150
- package/dist/index.d.mts +3 -35
- package/dist/index.d.ts +3 -35
- package/dist/index.mjs +3 -2
- package/dist/navigationMenu/index.d.mts +39 -0
- package/dist/navigationMenu/index.d.ts +39 -0
- package/dist/navigationMenu/index.js +195 -0
- package/dist/navigationMenu/index.mjs +2 -0
- package/package.json +1 -1
package/dist/accordion/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { Accordion, AccordionContent, AccordionTrigger } from '../chunk-
|
|
1
|
+
export { Accordion, AccordionContent, AccordionTrigger } from '../chunk-U2ZNJ3FC.mjs';
|
|
2
|
+
import '../chunk-NFLMC26M.mjs';
|
|
2
3
|
import '../chunk-J5NJEHQU.mjs';
|
|
3
4
|
import '../chunk-PUQV6URH.mjs';
|
|
4
5
|
import '../chunk-ENZDFGFY.mjs';
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { cn } from './chunk-TE3BKEXL.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
var navigationMenuTriggerStyle = cva(
|
|
7
|
+
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
8
|
+
);
|
|
9
|
+
var NavigationMenuRoot = React.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
10
|
+
NavigationMenuPrimitive.Root,
|
|
11
|
+
{
|
|
12
|
+
ref,
|
|
13
|
+
className: cn(
|
|
14
|
+
"hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
|
|
15
|
+
// "hawa-max-w-max",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
...props
|
|
19
|
+
},
|
|
20
|
+
children,
|
|
21
|
+
/* @__PURE__ */ React.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
22
|
+
));
|
|
23
|
+
var NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
24
|
+
NavigationMenuPrimitive.List,
|
|
25
|
+
{
|
|
26
|
+
ref,
|
|
27
|
+
className: cn(
|
|
28
|
+
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
|
29
|
+
className
|
|
30
|
+
),
|
|
31
|
+
...props
|
|
32
|
+
}
|
|
33
|
+
));
|
|
34
|
+
var NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
35
|
+
NavigationMenuPrimitive.Trigger,
|
|
36
|
+
{
|
|
37
|
+
ref,
|
|
38
|
+
className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
|
|
39
|
+
...props
|
|
40
|
+
},
|
|
41
|
+
children,
|
|
42
|
+
/* @__PURE__ */ React.createElement(
|
|
43
|
+
"svg",
|
|
44
|
+
{
|
|
45
|
+
"aria-label": "Chevron Icon",
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
+
width: "24",
|
|
48
|
+
height: "24",
|
|
49
|
+
viewBox: "0 0 24 24",
|
|
50
|
+
fill: "none",
|
|
51
|
+
stroke: "currentColor",
|
|
52
|
+
strokeWidth: "2",
|
|
53
|
+
strokeLinecap: "round",
|
|
54
|
+
strokeLinejoin: "round",
|
|
55
|
+
"aria-hidden": "true",
|
|
56
|
+
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
57
|
+
},
|
|
58
|
+
/* @__PURE__ */ React.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
59
|
+
)
|
|
60
|
+
));
|
|
61
|
+
var NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
62
|
+
NavigationMenuPrimitive.Content,
|
|
63
|
+
{
|
|
64
|
+
ref,
|
|
65
|
+
className: cn(
|
|
66
|
+
"hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
|
|
67
|
+
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
68
|
+
// animation
|
|
69
|
+
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
...props
|
|
73
|
+
}
|
|
74
|
+
));
|
|
75
|
+
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
|
76
|
+
var NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
className: cn(
|
|
80
|
+
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
81
|
+
)
|
|
82
|
+
},
|
|
83
|
+
/* @__PURE__ */ React.createElement(
|
|
84
|
+
NavigationMenuPrimitive.Viewport,
|
|
85
|
+
{
|
|
86
|
+
className: cn(
|
|
87
|
+
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
|
|
88
|
+
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
|
89
|
+
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
90
|
+
className
|
|
91
|
+
),
|
|
92
|
+
style: {
|
|
93
|
+
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
|
94
|
+
},
|
|
95
|
+
ref,
|
|
96
|
+
...props
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
));
|
|
100
|
+
var NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
101
|
+
NavigationMenuPrimitive.Indicator,
|
|
102
|
+
{
|
|
103
|
+
ref,
|
|
104
|
+
className: cn(
|
|
105
|
+
"hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
|
|
106
|
+
className
|
|
107
|
+
),
|
|
108
|
+
...props
|
|
109
|
+
},
|
|
110
|
+
/* @__PURE__ */ React.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
|
111
|
+
));
|
|
112
|
+
var NavigationMenu = ({
|
|
113
|
+
viewportClassNames,
|
|
114
|
+
rootClassNames,
|
|
115
|
+
triggerClassNames,
|
|
116
|
+
actionFirst,
|
|
117
|
+
...props
|
|
118
|
+
}) => {
|
|
119
|
+
return /* @__PURE__ */ React.createElement(
|
|
120
|
+
NavigationMenuRoot,
|
|
121
|
+
{
|
|
122
|
+
dir: props.direction,
|
|
123
|
+
delayDuration: 0,
|
|
124
|
+
className: rootClassNames,
|
|
125
|
+
viewportClassNames
|
|
126
|
+
},
|
|
127
|
+
/* @__PURE__ */ React.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(NavigationMenuTrigger, { className: cn(triggerClassNames) }, item.trigger), /* @__PURE__ */ React.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React.createElement(
|
|
128
|
+
NavigationMenuLink,
|
|
129
|
+
{
|
|
130
|
+
href: actionFirst ? void 0 : item.path,
|
|
131
|
+
onClick: () => {
|
|
132
|
+
if (item.action) {
|
|
133
|
+
item.action();
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
className: cn(
|
|
137
|
+
navigationMenuTriggerStyle(),
|
|
138
|
+
"hawa-cursor-pointer hawa-select-none",
|
|
139
|
+
triggerClassNames
|
|
140
|
+
)
|
|
141
|
+
},
|
|
142
|
+
item.trigger
|
|
143
|
+
))))
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
147
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
148
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
149
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
150
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
151
|
+
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
152
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
153
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
154
|
+
|
|
155
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle };
|
|
@@ -24,7 +24,6 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
|
24
24
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
25
25
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
26
26
|
import { Command as Command$1 } from 'cmdk';
|
|
27
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
28
27
|
import { Pagination as Pagination$1 } from 'react-headless-pagination';
|
|
29
28
|
|
|
30
29
|
var ActionCard = (props) => {
|
|
@@ -6263,154 +6262,6 @@ var ProgressCircle = React37__default.forwardRef((props, ref) => {
|
|
|
6263
6262
|
));
|
|
6264
6263
|
});
|
|
6265
6264
|
ProgressCircle.displayName = "ProgressCircle";
|
|
6266
|
-
var navigationMenuTriggerStyle = cva(
|
|
6267
|
-
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
6268
|
-
);
|
|
6269
|
-
var NavigationMenuRoot = React37.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
6270
|
-
NavigationMenuPrimitive.Root,
|
|
6271
|
-
{
|
|
6272
|
-
ref,
|
|
6273
|
-
className: cn(
|
|
6274
|
-
"hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
|
|
6275
|
-
// "hawa-max-w-max",
|
|
6276
|
-
className
|
|
6277
|
-
),
|
|
6278
|
-
...props
|
|
6279
|
-
},
|
|
6280
|
-
children,
|
|
6281
|
-
/* @__PURE__ */ React37.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
6282
|
-
));
|
|
6283
|
-
var NavigationMenuList = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
6284
|
-
NavigationMenuPrimitive.List,
|
|
6285
|
-
{
|
|
6286
|
-
ref,
|
|
6287
|
-
className: cn(
|
|
6288
|
-
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
|
6289
|
-
className
|
|
6290
|
-
),
|
|
6291
|
-
...props
|
|
6292
|
-
}
|
|
6293
|
-
));
|
|
6294
|
-
var NavigationMenuTrigger = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
6295
|
-
NavigationMenuPrimitive.Trigger,
|
|
6296
|
-
{
|
|
6297
|
-
ref,
|
|
6298
|
-
className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
|
|
6299
|
-
...props
|
|
6300
|
-
},
|
|
6301
|
-
children,
|
|
6302
|
-
/* @__PURE__ */ React37.createElement(
|
|
6303
|
-
"svg",
|
|
6304
|
-
{
|
|
6305
|
-
"aria-label": "Chevron Icon",
|
|
6306
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6307
|
-
width: "24",
|
|
6308
|
-
height: "24",
|
|
6309
|
-
viewBox: "0 0 24 24",
|
|
6310
|
-
fill: "none",
|
|
6311
|
-
stroke: "currentColor",
|
|
6312
|
-
strokeWidth: "2",
|
|
6313
|
-
strokeLinecap: "round",
|
|
6314
|
-
strokeLinejoin: "round",
|
|
6315
|
-
"aria-hidden": "true",
|
|
6316
|
-
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6317
|
-
},
|
|
6318
|
-
/* @__PURE__ */ React37.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
6319
|
-
)
|
|
6320
|
-
));
|
|
6321
|
-
var NavigationMenuContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
6322
|
-
NavigationMenuPrimitive.Content,
|
|
6323
|
-
{
|
|
6324
|
-
ref,
|
|
6325
|
-
className: cn(
|
|
6326
|
-
"hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
|
|
6327
|
-
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
6328
|
-
// animation
|
|
6329
|
-
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
|
6330
|
-
className
|
|
6331
|
-
),
|
|
6332
|
-
...props
|
|
6333
|
-
}
|
|
6334
|
-
));
|
|
6335
|
-
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React37.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React37.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React37.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React37.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React37.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
|
6336
|
-
var NavigationMenuViewport = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
6337
|
-
"div",
|
|
6338
|
-
{
|
|
6339
|
-
className: cn(
|
|
6340
|
-
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
6341
|
-
)
|
|
6342
|
-
},
|
|
6343
|
-
/* @__PURE__ */ React37.createElement(
|
|
6344
|
-
NavigationMenuPrimitive.Viewport,
|
|
6345
|
-
{
|
|
6346
|
-
className: cn(
|
|
6347
|
-
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
|
|
6348
|
-
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
|
6349
|
-
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
6350
|
-
className
|
|
6351
|
-
),
|
|
6352
|
-
style: {
|
|
6353
|
-
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
|
6354
|
-
},
|
|
6355
|
-
ref,
|
|
6356
|
-
...props
|
|
6357
|
-
}
|
|
6358
|
-
)
|
|
6359
|
-
));
|
|
6360
|
-
var NavigationMenuIndicator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
6361
|
-
NavigationMenuPrimitive.Indicator,
|
|
6362
|
-
{
|
|
6363
|
-
ref,
|
|
6364
|
-
className: cn(
|
|
6365
|
-
"hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
|
|
6366
|
-
className
|
|
6367
|
-
),
|
|
6368
|
-
...props
|
|
6369
|
-
},
|
|
6370
|
-
/* @__PURE__ */ React37.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
|
6371
|
-
));
|
|
6372
|
-
var NavigationMenu = ({
|
|
6373
|
-
viewportClassNames,
|
|
6374
|
-
rootClassNames,
|
|
6375
|
-
triggerClassNames,
|
|
6376
|
-
actionFirst,
|
|
6377
|
-
...props
|
|
6378
|
-
}) => {
|
|
6379
|
-
return /* @__PURE__ */ React37.createElement(
|
|
6380
|
-
NavigationMenuRoot,
|
|
6381
|
-
{
|
|
6382
|
-
dir: props.direction,
|
|
6383
|
-
delayDuration: 0,
|
|
6384
|
-
className: rootClassNames,
|
|
6385
|
-
viewportClassNames
|
|
6386
|
-
},
|
|
6387
|
-
/* @__PURE__ */ React37.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React37.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(NavigationMenuTrigger, { className: cn(triggerClassNames) }, item.trigger), /* @__PURE__ */ React37.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React37.createElement(
|
|
6388
|
-
NavigationMenuLink,
|
|
6389
|
-
{
|
|
6390
|
-
href: actionFirst ? void 0 : item.path,
|
|
6391
|
-
onClick: () => {
|
|
6392
|
-
if (item.action) {
|
|
6393
|
-
item.action();
|
|
6394
|
-
}
|
|
6395
|
-
},
|
|
6396
|
-
className: cn(
|
|
6397
|
-
navigationMenuTriggerStyle(),
|
|
6398
|
-
"hawa-cursor-pointer hawa-select-none",
|
|
6399
|
-
triggerClassNames
|
|
6400
|
-
)
|
|
6401
|
-
},
|
|
6402
|
-
item.trigger
|
|
6403
|
-
))))
|
|
6404
|
-
);
|
|
6405
|
-
};
|
|
6406
|
-
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6407
|
-
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
6408
|
-
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
6409
|
-
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
6410
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6411
|
-
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
6412
|
-
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
6413
|
-
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
6414
6265
|
var StopPropagationWrapper = (props) => {
|
|
6415
6266
|
const handleClick = (e) => {
|
|
6416
6267
|
e.stopPropagation();
|
|
@@ -6926,4 +6777,4 @@ var PricingCard = ({
|
|
|
6926
6777
|
);
|
|
6927
6778
|
};
|
|
6928
6779
|
|
|
6929
|
-
export { Accordion, AccordionContent, AccordionTrigger, ActionCard, AdCard, Alert, AppStores, Avatar, BackToTop, BadEmoji, Badge, BadgedComponent, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckMark, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, EyeIcon, FileDropzone, FileUploader, GoodEmoji, HiddenEyeIcon, Input, InterfaceSettings, ItemCard, Label, LandingCard, Logos,
|
|
6780
|
+
export { Accordion, AccordionContent, AccordionTrigger, ActionCard, AdCard, Alert, AppStores, Avatar, BackToTop, BadEmoji, Badge, BadgedComponent, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckMark, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, EyeIcon, FileDropzone, FileUploader, GoodEmoji, HiddenEyeIcon, Input, InterfaceSettings, ItemCard, Label, LandingCard, Logos, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, Progress, ProgressCircle, Radio, ScrollArea, ScrollBar, ScrollIndicator, Select, Separator, SimpleTable, Slider, SortButton, StopPropagationWrapper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, UncheckMark, VeryBadEmoji, VeryGoodEmoji, buttonVariants, reducer, toast, useClipboard, useToast };
|
package/dist/index.d.mts
CHANGED
|
@@ -22,12 +22,13 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
|
22
22
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
23
23
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
24
24
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from './sheet/index.mjs';
|
|
25
|
-
|
|
25
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle } from './navigationMenu/index.mjs';
|
|
26
26
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
27
27
|
import * as embla_carousel from 'embla-carousel';
|
|
28
28
|
import '@radix-ui/react-dropdown-menu';
|
|
29
29
|
import '@radix-ui/react-accordion';
|
|
30
30
|
import '@tanstack/react-table';
|
|
31
|
+
import '@radix-ui/react-navigation-menu';
|
|
31
32
|
|
|
32
33
|
type ImageCardTypes = {
|
|
33
34
|
children: any;
|
|
@@ -847,39 +848,6 @@ interface ProgressCircleProps extends React__default.HTMLAttributes<HTMLDivEleme
|
|
|
847
848
|
}
|
|
848
849
|
declare const ProgressCircle: React__default.ForwardRefExoticComponent<ProgressCircleProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
849
850
|
|
|
850
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
851
|
-
type StandardNavigationMenuItemProps = {
|
|
852
|
-
icon?: React$1.ReactNode;
|
|
853
|
-
title: string;
|
|
854
|
-
subtitle?: string;
|
|
855
|
-
};
|
|
856
|
-
type NavigationMenuItemProps = {
|
|
857
|
-
trigger: any;
|
|
858
|
-
content?: any;
|
|
859
|
-
action?: any;
|
|
860
|
-
path?: string;
|
|
861
|
-
};
|
|
862
|
-
type NavigationMenuTypes = {
|
|
863
|
-
items: NavigationMenuItemProps[];
|
|
864
|
-
rootClassNames?: string;
|
|
865
|
-
viewportClassNames?: string;
|
|
866
|
-
triggerClassNames?: string;
|
|
867
|
-
actionFirst?: boolean;
|
|
868
|
-
direction?: DirectionType;
|
|
869
|
-
};
|
|
870
|
-
declare const NavigationMenuRoot: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & {
|
|
871
|
-
viewportClassNames?: string | undefined;
|
|
872
|
-
} & React$1.RefAttributes<HTMLElement>>;
|
|
873
|
-
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
874
|
-
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
875
|
-
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
876
|
-
declare const StandardNavigationMenuItem: React$1.FC<StandardNavigationMenuItemProps & React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
|
|
877
|
-
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
878
|
-
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
879
|
-
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
880
|
-
declare const NavigationMenuItem$1: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
881
|
-
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
882
|
-
|
|
883
851
|
declare const StopPropagationWrapper: (props: any) => React__default.JSX.Element;
|
|
884
852
|
|
|
885
853
|
declare const FileUploader: ({ handleFile, className }: any) => React__default.JSX.Element;
|
|
@@ -1648,4 +1616,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1648
1616
|
handleTabChange: (index: any) => void;
|
|
1649
1617
|
};
|
|
1650
1618
|
|
|
1651
|
-
export { ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar,
|
|
1619
|
+
export { ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, type PricingCardProps, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, SidebarGroup, SidebarItem, Slider, SortButton, Stats, StopPropagationWrapper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -22,12 +22,13 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
|
22
22
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
23
23
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
24
24
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from './sheet/index.js';
|
|
25
|
-
|
|
25
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle } from './navigationMenu/index.js';
|
|
26
26
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
27
27
|
import * as embla_carousel from 'embla-carousel';
|
|
28
28
|
import '@radix-ui/react-dropdown-menu';
|
|
29
29
|
import '@radix-ui/react-accordion';
|
|
30
30
|
import '@tanstack/react-table';
|
|
31
|
+
import '@radix-ui/react-navigation-menu';
|
|
31
32
|
|
|
32
33
|
type ImageCardTypes = {
|
|
33
34
|
children: any;
|
|
@@ -847,39 +848,6 @@ interface ProgressCircleProps extends React__default.HTMLAttributes<HTMLDivEleme
|
|
|
847
848
|
}
|
|
848
849
|
declare const ProgressCircle: React__default.ForwardRefExoticComponent<ProgressCircleProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
849
850
|
|
|
850
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
851
|
-
type StandardNavigationMenuItemProps = {
|
|
852
|
-
icon?: React$1.ReactNode;
|
|
853
|
-
title: string;
|
|
854
|
-
subtitle?: string;
|
|
855
|
-
};
|
|
856
|
-
type NavigationMenuItemProps = {
|
|
857
|
-
trigger: any;
|
|
858
|
-
content?: any;
|
|
859
|
-
action?: any;
|
|
860
|
-
path?: string;
|
|
861
|
-
};
|
|
862
|
-
type NavigationMenuTypes = {
|
|
863
|
-
items: NavigationMenuItemProps[];
|
|
864
|
-
rootClassNames?: string;
|
|
865
|
-
viewportClassNames?: string;
|
|
866
|
-
triggerClassNames?: string;
|
|
867
|
-
actionFirst?: boolean;
|
|
868
|
-
direction?: DirectionType;
|
|
869
|
-
};
|
|
870
|
-
declare const NavigationMenuRoot: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & {
|
|
871
|
-
viewportClassNames?: string | undefined;
|
|
872
|
-
} & React$1.RefAttributes<HTMLElement>>;
|
|
873
|
-
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
874
|
-
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
875
|
-
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
876
|
-
declare const StandardNavigationMenuItem: React$1.FC<StandardNavigationMenuItemProps & React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
|
|
877
|
-
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
878
|
-
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
879
|
-
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
880
|
-
declare const NavigationMenuItem$1: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
881
|
-
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
882
|
-
|
|
883
851
|
declare const StopPropagationWrapper: (props: any) => React__default.JSX.Element;
|
|
884
852
|
|
|
885
853
|
declare const FileUploader: ({ handleFile, className }: any) => React__default.JSX.Element;
|
|
@@ -1648,4 +1616,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1648
1616
|
handleTabChange: (index: any) => void;
|
|
1649
1617
|
};
|
|
1650
1618
|
|
|
1651
|
-
export { ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar,
|
|
1619
|
+
export { ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, type PricingCardProps, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, SidebarGroup, SidebarItem, Slider, SortButton, Stats, StopPropagationWrapper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Card, CardTitle, CardContent, Chip, Tooltip, Button, Logos, Alert, CardFooter, Input, EyeIcon, HiddenEyeIcon, Select, Checkbox, StopPropagationWrapper, CardHeader, CardDescription, PinInput, Radio, Textarea, Popover, Label, Tabs, TabsList, TabsTrigger, TabsContent, ScrollArea, PricingCard, CheckMark, UncheckMark, Progress, PhoneInput, VeryGoodEmoji, GoodEmoji, BadEmoji, VeryBadEmoji } from './chunk-
|
|
2
|
-
export { Accordion, ActionCard, AdCard, Alert, AppStores, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, FileDropzone, FileUploader, Input, InterfaceSettings, ItemCard, Label, LandingCard, Logos,
|
|
1
|
+
import { Card, CardTitle, CardContent, Chip, Tooltip, Button, Logos, Alert, CardFooter, Input, EyeIcon, HiddenEyeIcon, Select, Checkbox, StopPropagationWrapper, CardHeader, CardDescription, PinInput, Radio, Textarea, Popover, Label, Tabs, TabsList, TabsTrigger, TabsContent, ScrollArea, PricingCard, CheckMark, UncheckMark, Progress, PhoneInput, VeryGoodEmoji, GoodEmoji, BadEmoji, VeryBadEmoji } from './chunk-U2ZNJ3FC.mjs';
|
|
2
|
+
export { Accordion, ActionCard, AdCard, Alert, AppStores, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, FileDropzone, FileUploader, Input, InterfaceSettings, ItemCard, Label, LandingCard, Logos, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, Progress, ProgressCircle, Radio, ScrollArea, ScrollBar, ScrollIndicator, Select, Separator, SimpleTable, Slider, SortButton, StopPropagationWrapper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, reducer, toast, useClipboard, useToast } from './chunk-U2ZNJ3FC.mjs';
|
|
3
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle } from './chunk-NFLMC26M.mjs';
|
|
3
4
|
import { Skeleton } from './chunk-J5NJEHQU.mjs';
|
|
4
5
|
export { Skeleton } from './chunk-J5NJEHQU.mjs';
|
|
5
6
|
import { Loading } from './chunk-PUQV6URH.mjs';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
import { D as DirectionType } from '../commonTypes-CKtkuNFH.mjs';
|
|
5
|
+
|
|
6
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
7
|
+
type StandardNavigationMenuItemProps = {
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
};
|
|
12
|
+
type NavigationMenuItemProps = {
|
|
13
|
+
trigger: any;
|
|
14
|
+
content?: any;
|
|
15
|
+
action?: any;
|
|
16
|
+
path?: string;
|
|
17
|
+
};
|
|
18
|
+
type NavigationMenuTypes = {
|
|
19
|
+
items: NavigationMenuItemProps[];
|
|
20
|
+
rootClassNames?: string;
|
|
21
|
+
viewportClassNames?: string;
|
|
22
|
+
triggerClassNames?: string;
|
|
23
|
+
actionFirst?: boolean;
|
|
24
|
+
direction?: DirectionType;
|
|
25
|
+
};
|
|
26
|
+
declare const NavigationMenuRoot: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
27
|
+
viewportClassNames?: string | undefined;
|
|
28
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
29
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
30
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const StandardNavigationMenuItem: React.FC<StandardNavigationMenuItemProps & React.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
|
|
33
|
+
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const NavigationMenu: React.FC<NavigationMenuTypes>;
|
|
36
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
37
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
38
|
+
|
|
39
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
import { D as DirectionType } from '../commonTypes-CKtkuNFH.js';
|
|
5
|
+
|
|
6
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
7
|
+
type StandardNavigationMenuItemProps = {
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
};
|
|
12
|
+
type NavigationMenuItemProps = {
|
|
13
|
+
trigger: any;
|
|
14
|
+
content?: any;
|
|
15
|
+
action?: any;
|
|
16
|
+
path?: string;
|
|
17
|
+
};
|
|
18
|
+
type NavigationMenuTypes = {
|
|
19
|
+
items: NavigationMenuItemProps[];
|
|
20
|
+
rootClassNames?: string;
|
|
21
|
+
viewportClassNames?: string;
|
|
22
|
+
triggerClassNames?: string;
|
|
23
|
+
actionFirst?: boolean;
|
|
24
|
+
direction?: DirectionType;
|
|
25
|
+
};
|
|
26
|
+
declare const NavigationMenuRoot: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
27
|
+
viewportClassNames?: string | undefined;
|
|
28
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
29
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
30
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const StandardNavigationMenuItem: React.FC<StandardNavigationMenuItemProps & React.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
|
|
33
|
+
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const NavigationMenu: React.FC<NavigationMenuTypes>;
|
|
36
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
37
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
38
|
+
|
|
39
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var clsx = require('clsx');
|
|
7
|
+
var tailwindMerge = require('tailwind-merge');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
+
var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
|
|
29
|
+
|
|
30
|
+
// components/elements/navigationMenu/NavigationMenu.tsx
|
|
31
|
+
function cn(...inputs) {
|
|
32
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// components/elements/navigationMenu/NavigationMenu.tsx
|
|
36
|
+
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
37
|
+
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
38
|
+
);
|
|
39
|
+
var NavigationMenuRoot = React__namespace.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React__namespace.createElement(
|
|
40
|
+
NavigationMenuPrimitive__namespace.Root,
|
|
41
|
+
{
|
|
42
|
+
ref,
|
|
43
|
+
className: cn(
|
|
44
|
+
"hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
|
|
45
|
+
// "hawa-max-w-max",
|
|
46
|
+
className
|
|
47
|
+
),
|
|
48
|
+
...props
|
|
49
|
+
},
|
|
50
|
+
children,
|
|
51
|
+
/* @__PURE__ */ React__namespace.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
52
|
+
));
|
|
53
|
+
var NavigationMenuList = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React__namespace.createElement(
|
|
54
|
+
NavigationMenuPrimitive__namespace.List,
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
className: cn(
|
|
58
|
+
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
|
59
|
+
className
|
|
60
|
+
),
|
|
61
|
+
...props
|
|
62
|
+
}
|
|
63
|
+
));
|
|
64
|
+
var NavigationMenuTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React__namespace.createElement(
|
|
65
|
+
NavigationMenuPrimitive__namespace.Trigger,
|
|
66
|
+
{
|
|
67
|
+
ref,
|
|
68
|
+
className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
|
|
69
|
+
...props
|
|
70
|
+
},
|
|
71
|
+
children,
|
|
72
|
+
/* @__PURE__ */ React__namespace.createElement(
|
|
73
|
+
"svg",
|
|
74
|
+
{
|
|
75
|
+
"aria-label": "Chevron Icon",
|
|
76
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
77
|
+
width: "24",
|
|
78
|
+
height: "24",
|
|
79
|
+
viewBox: "0 0 24 24",
|
|
80
|
+
fill: "none",
|
|
81
|
+
stroke: "currentColor",
|
|
82
|
+
strokeWidth: "2",
|
|
83
|
+
strokeLinecap: "round",
|
|
84
|
+
strokeLinejoin: "round",
|
|
85
|
+
"aria-hidden": "true",
|
|
86
|
+
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
87
|
+
},
|
|
88
|
+
/* @__PURE__ */ React__namespace.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
89
|
+
)
|
|
90
|
+
));
|
|
91
|
+
var NavigationMenuContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React__namespace.createElement(
|
|
92
|
+
NavigationMenuPrimitive__namespace.Content,
|
|
93
|
+
{
|
|
94
|
+
ref,
|
|
95
|
+
className: cn(
|
|
96
|
+
"hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
|
|
97
|
+
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
98
|
+
// animation
|
|
99
|
+
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
|
100
|
+
className
|
|
101
|
+
),
|
|
102
|
+
...props
|
|
103
|
+
}
|
|
104
|
+
));
|
|
105
|
+
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React__namespace.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React__namespace.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React__namespace.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React__namespace.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React__namespace.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
|
106
|
+
var NavigationMenuViewport = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React__namespace.createElement(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
className: cn(
|
|
110
|
+
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
111
|
+
)
|
|
112
|
+
},
|
|
113
|
+
/* @__PURE__ */ React__namespace.createElement(
|
|
114
|
+
NavigationMenuPrimitive__namespace.Viewport,
|
|
115
|
+
{
|
|
116
|
+
className: cn(
|
|
117
|
+
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
|
|
118
|
+
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
|
119
|
+
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
120
|
+
className
|
|
121
|
+
),
|
|
122
|
+
style: {
|
|
123
|
+
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
|
124
|
+
},
|
|
125
|
+
ref,
|
|
126
|
+
...props
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
));
|
|
130
|
+
var NavigationMenuIndicator = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React__namespace.createElement(
|
|
131
|
+
NavigationMenuPrimitive__namespace.Indicator,
|
|
132
|
+
{
|
|
133
|
+
ref,
|
|
134
|
+
className: cn(
|
|
135
|
+
"hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
|
|
136
|
+
className
|
|
137
|
+
),
|
|
138
|
+
...props
|
|
139
|
+
},
|
|
140
|
+
/* @__PURE__ */ React__namespace.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
|
141
|
+
));
|
|
142
|
+
var NavigationMenu = ({
|
|
143
|
+
viewportClassNames,
|
|
144
|
+
rootClassNames,
|
|
145
|
+
triggerClassNames,
|
|
146
|
+
actionFirst,
|
|
147
|
+
...props
|
|
148
|
+
}) => {
|
|
149
|
+
return /* @__PURE__ */ React__namespace.createElement(
|
|
150
|
+
NavigationMenuRoot,
|
|
151
|
+
{
|
|
152
|
+
dir: props.direction,
|
|
153
|
+
delayDuration: 0,
|
|
154
|
+
className: rootClassNames,
|
|
155
|
+
viewportClassNames
|
|
156
|
+
},
|
|
157
|
+
/* @__PURE__ */ React__namespace.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React__namespace.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement(NavigationMenuTrigger, { className: cn(triggerClassNames) }, item.trigger), /* @__PURE__ */ React__namespace.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React__namespace.createElement(
|
|
158
|
+
NavigationMenuLink,
|
|
159
|
+
{
|
|
160
|
+
href: actionFirst ? void 0 : item.path,
|
|
161
|
+
onClick: () => {
|
|
162
|
+
if (item.action) {
|
|
163
|
+
item.action();
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
className: cn(
|
|
167
|
+
navigationMenuTriggerStyle(),
|
|
168
|
+
"hawa-cursor-pointer hawa-select-none",
|
|
169
|
+
triggerClassNames
|
|
170
|
+
)
|
|
171
|
+
},
|
|
172
|
+
item.trigger
|
|
173
|
+
))))
|
|
174
|
+
);
|
|
175
|
+
};
|
|
176
|
+
var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
177
|
+
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
178
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
179
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
180
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive__namespace.List.displayName;
|
|
181
|
+
NavigationMenuRoot.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
182
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
|
|
183
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
184
|
+
|
|
185
|
+
exports.NavigationMenu = NavigationMenu;
|
|
186
|
+
exports.NavigationMenuContent = NavigationMenuContent;
|
|
187
|
+
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|
|
188
|
+
exports.NavigationMenuItem = NavigationMenuItem;
|
|
189
|
+
exports.NavigationMenuLink = NavigationMenuLink;
|
|
190
|
+
exports.NavigationMenuList = NavigationMenuList;
|
|
191
|
+
exports.NavigationMenuRoot = NavigationMenuRoot;
|
|
192
|
+
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
193
|
+
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
194
|
+
exports.StandardNavigationMenuItem = StandardNavigationMenuItem;
|
|
195
|
+
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle } from '../chunk-NFLMC26M.mjs';
|
|
2
|
+
import '../chunk-TE3BKEXL.mjs';
|