@hanzo/ui 5.3.28 → 5.3.30
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/3d/button.js +298 -0
- package/dist/3d/button.mjs +273 -0
- package/dist/3d/card.js +234 -0
- package/dist/3d/card.mjs +207 -0
- package/dist/3d/carousel.js +371 -0
- package/dist/3d/carousel.mjs +344 -0
- package/dist/3d/grid.js +362 -0
- package/dist/3d/grid.mjs +337 -0
- package/dist/3d/index.js +1518 -0
- package/dist/3d/index.mjs +1472 -0
- package/dist/3d/marquee.js +352 -0
- package/dist/3d/marquee.mjs +327 -0
- package/dist/3d/pin.js +46 -0
- package/dist/3d/pin.mjs +24 -0
- package/dist/accordion.js +80 -0
- package/dist/accordion.mjs +55 -0
- package/dist/alert-dialog.js +220 -0
- package/dist/alert-dialog.mjs +187 -0
- package/dist/alert.js +68 -0
- package/dist/alert.mjs +64 -0
- package/dist/animation/animated-background.js +424 -0
- package/dist/animation/animated-background.mjs +418 -0
- package/dist/animation/animated-beam.js +119 -0
- package/dist/animation/animated-beam.mjs +97 -0
- package/dist/animation/animated-cursor.js +275 -0
- package/dist/animation/animated-cursor.mjs +270 -0
- package/dist/animation/animated-icon.js +357 -0
- package/dist/animation/animated-icon.mjs +351 -0
- package/dist/animation/animated-list.js +339 -0
- package/dist/animation/animated-list.mjs +333 -0
- package/dist/animation/animated-number.js +283 -0
- package/dist/animation/animated-number.mjs +277 -0
- package/dist/animation/animated-testimonials.js +97 -0
- package/dist/animation/animated-testimonials.mjs +75 -0
- package/dist/animation/animated-tooltip.js +67 -0
- package/dist/animation/animated-tooltip.mjs +45 -0
- package/dist/animation/apple-cards-carousel.js +308 -0
- package/dist/animation/apple-cards-carousel.mjs +285 -0
- package/dist/animation/apple-hello-effect.js +60 -0
- package/dist/animation/apple-hello-effect.mjs +38 -0
- package/dist/animation/index.js +1952 -0
- package/dist/animation/index.mjs +1921 -0
- package/dist/avatar.js +71 -0
- package/dist/avatar.mjs +47 -0
- package/dist/badge.js +66 -0
- package/dist/badge.mjs +40 -0
- package/dist/blocks/index.js +1665 -0
- package/dist/blocks/index.mjs +1626 -0
- package/dist/breadcrumb.js +107 -0
- package/dist/breadcrumb.mjs +99 -0
- package/dist/calendar.js +189 -0
- package/dist/calendar.mjs +164 -0
- package/dist/carousel.js +278 -0
- package/dist/carousel.mjs +249 -0
- package/dist/checkbox.js +60 -0
- package/dist/checkbox.mjs +35 -0
- package/dist/code/block.js +226 -0
- package/dist/code/block.mjs +203 -0
- package/dist/code/compare.js +446 -0
- package/dist/code/compare.mjs +423 -0
- package/dist/code/diff.js +430 -0
- package/dist/code/diff.mjs +407 -0
- package/dist/code/editor.js +243 -0
- package/dist/code/editor.mjs +218 -0
- package/dist/code/explorer.js +291 -0
- package/dist/code/explorer.mjs +268 -0
- package/dist/code/index.js +2551 -0
- package/dist/code/index.mjs +2510 -0
- package/dist/code/preview.js +400 -0
- package/dist/code/preview.mjs +377 -0
- package/dist/code/snippet.js +274 -0
- package/dist/code/snippet.mjs +250 -0
- package/dist/code/tabs.js +75 -0
- package/dist/code/tabs.mjs +53 -0
- package/dist/code/terminal.js +437 -0
- package/dist/code/terminal.mjs +414 -0
- package/dist/collapsible.js +33 -0
- package/dist/collapsible.mjs +9 -0
- package/dist/command.js +262 -0
- package/dist/command.mjs +232 -0
- package/dist/context-menu.js +207 -0
- package/dist/context-menu.mjs +171 -0
- package/dist/device/index.js +3 -0
- package/dist/device/index.mjs +2 -0
- package/dist/dialog.js +151 -0
- package/dist/dialog.mjs +121 -0
- package/dist/dock/basic.js +174 -0
- package/dist/dock/basic.mjs +151 -0
- package/dist/dock/index.js +628 -0
- package/dist/dock/index.mjs +601 -0
- package/dist/dock/limelight-nav.js +295 -0
- package/dist/dock/limelight-nav.mjs +274 -0
- package/dist/dock/macos.js +141 -0
- package/dist/dock/macos.mjs +118 -0
- package/dist/dock/menu.js +70 -0
- package/dist/dock/menu.mjs +48 -0
- package/dist/dock/message.js +144 -0
- package/dist/dock/message.mjs +122 -0
- package/dist/drawer.js +115 -0
- package/dist/drawer.mjs +103 -0
- package/dist/dropdown-menu.js +202 -0
- package/dist/dropdown-menu.mjs +166 -0
- package/dist/finance/AdvancedChart.js +48 -0
- package/dist/finance/AdvancedChart.mjs +46 -0
- package/dist/finance/CompanyProfile.js +48 -0
- package/dist/finance/CompanyProfile.mjs +46 -0
- package/dist/finance/CryptoScreener.js +45 -0
- package/dist/finance/CryptoScreener.mjs +43 -0
- package/dist/finance/Financials.js +52 -0
- package/dist/finance/Financials.mjs +50 -0
- package/dist/finance/ForexScreener.js +46 -0
- package/dist/finance/ForexScreener.mjs +44 -0
- package/dist/finance/MarketOverview.js +104 -0
- package/dist/finance/MarketOverview.mjs +102 -0
- package/dist/finance/NewsTimeline.js +44 -0
- package/dist/finance/NewsTimeline.mjs +42 -0
- package/dist/finance/OrderEntry.js +131 -0
- package/dist/finance/OrderEntry.mjs +129 -0
- package/dist/finance/OrdersHistory.js +64 -0
- package/dist/finance/OrdersHistory.mjs +62 -0
- package/dist/finance/PositionsList.js +80 -0
- package/dist/finance/PositionsList.mjs +78 -0
- package/dist/finance/StockScreener.js +46 -0
- package/dist/finance/StockScreener.mjs +44 -0
- package/dist/finance/SymbolInfo.js +46 -0
- package/dist/finance/SymbolInfo.mjs +44 -0
- package/dist/finance/TechnicalAnalysis.js +54 -0
- package/dist/finance/TechnicalAnalysis.mjs +52 -0
- package/dist/finance/TickerTape.js +56 -0
- package/dist/finance/TickerTape.mjs +54 -0
- package/dist/finance/TradingPanel.js +191 -0
- package/dist/finance/TradingPanel.mjs +189 -0
- package/dist/finance/index.js +930 -0
- package/dist/finance/index.mjs +914 -0
- package/dist/form/index.js +155 -0
- package/dist/form/index.mjs +125 -0
- package/dist/form.js +172 -0
- package/dist/form.mjs +142 -0
- package/dist/hover-card.js +58 -0
- package/dist/hover-card.mjs +34 -0
- package/dist/index.js +8467 -0
- package/dist/index.mjs +8087 -0
- package/dist/input-otp.js +79 -0
- package/dist/input-otp.mjs +54 -0
- package/dist/lib/utils.js +28 -0
- package/dist/lib/utils.mjs +24 -0
- package/dist/navigation/index.js +98 -0
- package/dist/navigation/index.mjs +79 -0
- package/dist/navigation-menu.js +149 -0
- package/dist/navigation-menu.mjs +116 -0
- package/dist/pattern/grid-pattern.js +333 -0
- package/dist/pattern/grid-pattern.mjs +310 -0
- package/dist/pattern/index.js +333 -0
- package/dist/pattern/index.mjs +310 -0
- package/dist/popover.js +63 -0
- package/dist/popover.mjs +37 -0
- package/dist/primitives/index.js +8467 -0
- package/dist/primitives/index.mjs +8087 -0
- package/dist/primitives-export.js +8467 -0
- package/dist/primitives-export.mjs +8087 -0
- package/dist/progress.js +62 -0
- package/dist/progress.mjs +37 -0
- package/dist/project/gantt.js +65 -0
- package/dist/project/gantt.mjs +43 -0
- package/dist/project/index.js +636 -0
- package/dist/project/index.mjs +611 -0
- package/dist/project/kanban.js +597 -0
- package/dist/project/kanban.mjs +572 -0
- package/dist/project/list.js +35 -0
- package/dist/project/list.mjs +12 -0
- package/dist/radio-group.js +68 -0
- package/dist/radio-group.mjs +45 -0
- package/dist/resizable.js +72 -0
- package/dist/resizable.mjs +48 -0
- package/dist/scroll-area.js +89 -0
- package/dist/scroll-area.mjs +66 -0
- package/dist/select.js +140 -0
- package/dist/select.mjs +111 -0
- package/dist/separator.js +59 -0
- package/dist/separator.mjs +34 -0
- package/dist/sheet.js +148 -0
- package/dist/sheet.mjs +117 -0
- package/dist/skeleton.js +32 -0
- package/dist/skeleton.mjs +27 -0
- package/dist/slider.js +99 -0
- package/dist/slider.mjs +73 -0
- package/dist/sonner.js +34 -0
- package/dist/sonner.mjs +29 -0
- package/dist/switch.js +62 -0
- package/dist/switch.mjs +37 -0
- package/dist/table.js +110 -0
- package/dist/table.mjs +101 -0
- package/dist/tabs.js +82 -0
- package/dist/tabs.mjs +57 -0
- package/dist/tailwind/index.js +2023 -0
- package/dist/tailwind/index.mjs +2011 -0
- package/dist/textarea.js +78 -0
- package/dist/textarea.mjs +56 -0
- package/dist/toggle-group.js +118 -0
- package/dist/toggle-group.mjs +93 -0
- package/dist/toggle.js +71 -0
- package/dist/toggle.mjs +48 -0
- package/dist/tooltip.js +67 -0
- package/dist/tooltip.mjs +40 -0
- package/dist/types/index.js +57 -0
- package/dist/types/index.mjs +51 -0
- package/dist/ui/announcement.js +129 -0
- package/dist/ui/announcement.mjs +107 -0
- package/dist/ui/avatar-group.js +88 -0
- package/dist/ui/avatar-group.mjs +65 -0
- package/dist/ui/banner.js +85 -0
- package/dist/ui/banner.mjs +62 -0
- package/dist/ui/cursor.js +78 -0
- package/dist/ui/cursor.mjs +56 -0
- package/dist/ui/index.js +475 -0
- package/dist/ui/index.mjs +442 -0
- package/dist/ui/marquee.js +74 -0
- package/dist/ui/marquee.mjs +52 -0
- package/dist/ui/pill.js +85 -0
- package/dist/ui/pill.mjs +62 -0
- package/dist/ui/spinner.js +28 -0
- package/dist/ui/spinner.mjs +26 -0
- package/dist/ui/tags.js +101 -0
- package/dist/ui/tags.mjs +79 -0
- package/dist/ui/ticker.js +73 -0
- package/dist/ui/ticker.mjs +51 -0
- package/dist/util/index.js +463 -0
- package/dist/util/index.mjs +404 -0
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var inputOtp = require('input-otp');
|
|
6
|
+
var lucideReact = require('lucide-react');
|
|
7
|
+
var clsx = require('clsx');
|
|
8
|
+
var tailwindMerge = require('tailwind-merge');
|
|
9
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
|
+
|
|
31
|
+
var __defProp = Object.defineProperty;
|
|
32
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
33
|
+
function cn(...inputs) {
|
|
34
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
35
|
+
}
|
|
36
|
+
__name(cn, "cn");
|
|
37
|
+
var InputOTP = React__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
|
+
inputOtp.OTPInput,
|
|
39
|
+
{
|
|
40
|
+
ref,
|
|
41
|
+
containerClassName: cn(
|
|
42
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
43
|
+
containerClassName
|
|
44
|
+
),
|
|
45
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
46
|
+
...props
|
|
47
|
+
}
|
|
48
|
+
));
|
|
49
|
+
InputOTP.displayName = "InputOTP";
|
|
50
|
+
var InputOTPGroup = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
51
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
52
|
+
var InputOTPSlot = React__namespace.forwardRef(({ index, className, ...props }, ref) => {
|
|
53
|
+
const inputOTPContext = React__namespace.useContext(inputOtp.OTPInputContext);
|
|
54
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
55
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
ref,
|
|
59
|
+
className: cn(
|
|
60
|
+
"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
61
|
+
isActive && "z-10 ring-1 ring-ring",
|
|
62
|
+
className
|
|
63
|
+
),
|
|
64
|
+
...props,
|
|
65
|
+
children: [
|
|
66
|
+
char,
|
|
67
|
+
hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
});
|
|
72
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
73
|
+
var InputOTPSeparator = React__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Dot, {}) }));
|
|
74
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
75
|
+
|
|
76
|
+
exports.InputOTP = InputOTP;
|
|
77
|
+
exports.InputOTPGroup = InputOTPGroup;
|
|
78
|
+
exports.InputOTPSeparator = InputOTPSeparator;
|
|
79
|
+
exports.InputOTPSlot = InputOTPSlot;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
4
|
+
import { Dot } from 'lucide-react';
|
|
5
|
+
import { clsx } from 'clsx';
|
|
6
|
+
import { twMerge } from 'tailwind-merge';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
11
|
+
function cn(...inputs) {
|
|
12
|
+
return twMerge(clsx(inputs));
|
|
13
|
+
}
|
|
14
|
+
__name(cn, "cn");
|
|
15
|
+
var InputOTP = React.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16
|
+
OTPInput,
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
containerClassName: cn(
|
|
20
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
21
|
+
containerClassName
|
|
22
|
+
),
|
|
23
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
24
|
+
...props
|
|
25
|
+
}
|
|
26
|
+
));
|
|
27
|
+
InputOTP.displayName = "InputOTP";
|
|
28
|
+
var InputOTPGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
29
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
30
|
+
var InputOTPSlot = React.forwardRef(({ index, className, ...props }, ref) => {
|
|
31
|
+
const inputOTPContext = React.useContext(OTPInputContext);
|
|
32
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
33
|
+
return /* @__PURE__ */ jsxs(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
ref,
|
|
37
|
+
className: cn(
|
|
38
|
+
"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
39
|
+
isActive && "z-10 ring-1 ring-ring",
|
|
40
|
+
className
|
|
41
|
+
),
|
|
42
|
+
...props,
|
|
43
|
+
children: [
|
|
44
|
+
char,
|
|
45
|
+
hasFakeCaret && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
});
|
|
50
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
51
|
+
var InputOTPSeparator = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) }));
|
|
52
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
53
|
+
|
|
54
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var clsx = require('clsx');
|
|
4
|
+
var tailwindMerge = require('tailwind-merge');
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
function cn(...inputs) {
|
|
9
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
10
|
+
}
|
|
11
|
+
__name(cn, "cn");
|
|
12
|
+
function formatDate(input) {
|
|
13
|
+
const date = new Date(input);
|
|
14
|
+
return date.toLocaleDateString("en-US", {
|
|
15
|
+
month: "long",
|
|
16
|
+
day: "numeric",
|
|
17
|
+
year: "numeric"
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
__name(formatDate, "formatDate");
|
|
21
|
+
function absoluteUrl(path) {
|
|
22
|
+
return `${process.env.NEXT_PUBLIC_APP_URL || ""}${path}`;
|
|
23
|
+
}
|
|
24
|
+
__name(absoluteUrl, "absoluteUrl");
|
|
25
|
+
|
|
26
|
+
exports.absoluteUrl = absoluteUrl;
|
|
27
|
+
exports.cn = cn;
|
|
28
|
+
exports.formatDate = formatDate;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
function cn(...inputs) {
|
|
7
|
+
return twMerge(clsx(inputs));
|
|
8
|
+
}
|
|
9
|
+
__name(cn, "cn");
|
|
10
|
+
function formatDate(input) {
|
|
11
|
+
const date = new Date(input);
|
|
12
|
+
return date.toLocaleDateString("en-US", {
|
|
13
|
+
month: "long",
|
|
14
|
+
day: "numeric",
|
|
15
|
+
year: "numeric"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
__name(formatDate, "formatDate");
|
|
19
|
+
function absoluteUrl(path) {
|
|
20
|
+
return `${process.env.NEXT_PUBLIC_APP_URL || ""}${path}`;
|
|
21
|
+
}
|
|
22
|
+
__name(absoluteUrl, "absoluteUrl");
|
|
23
|
+
|
|
24
|
+
export { absoluteUrl, cn, formatDate };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
function Component() {
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
10
|
+
}
|
|
11
|
+
__name(Component, "Component");
|
|
12
|
+
function Component2() {
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
14
|
+
}
|
|
15
|
+
__name(Component2, "Component");
|
|
16
|
+
function Component3() {
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
18
|
+
}
|
|
19
|
+
__name(Component3, "Component");
|
|
20
|
+
function Component4() {
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
22
|
+
}
|
|
23
|
+
__name(Component4, "Component");
|
|
24
|
+
function Component5() {
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
26
|
+
}
|
|
27
|
+
__name(Component5, "Component");
|
|
28
|
+
function Component6() {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
30
|
+
}
|
|
31
|
+
__name(Component6, "Component");
|
|
32
|
+
function Component7() {
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
34
|
+
}
|
|
35
|
+
__name(Component7, "Component");
|
|
36
|
+
function Component8() {
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
38
|
+
}
|
|
39
|
+
__name(Component8, "Component");
|
|
40
|
+
function Component9() {
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
42
|
+
}
|
|
43
|
+
__name(Component9, "Component");
|
|
44
|
+
function Component10() {
|
|
45
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
46
|
+
}
|
|
47
|
+
__name(Component10, "Component");
|
|
48
|
+
function Component11() {
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
50
|
+
}
|
|
51
|
+
__name(Component11, "Component");
|
|
52
|
+
function Component12() {
|
|
53
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
54
|
+
}
|
|
55
|
+
__name(Component12, "Component");
|
|
56
|
+
function Component13() {
|
|
57
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
58
|
+
}
|
|
59
|
+
__name(Component13, "Component");
|
|
60
|
+
function Component14() {
|
|
61
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
62
|
+
}
|
|
63
|
+
__name(Component14, "Component");
|
|
64
|
+
function Component15() {
|
|
65
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
66
|
+
}
|
|
67
|
+
__name(Component15, "Component");
|
|
68
|
+
function Component16() {
|
|
69
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
70
|
+
}
|
|
71
|
+
__name(Component16, "Component");
|
|
72
|
+
function Component17() {
|
|
73
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
74
|
+
}
|
|
75
|
+
__name(Component17, "Component");
|
|
76
|
+
function Component18() {
|
|
77
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
78
|
+
}
|
|
79
|
+
__name(Component18, "Component");
|
|
80
|
+
|
|
81
|
+
exports.AIModelSelectorNavigationBar = Component2;
|
|
82
|
+
exports.AdvancedNavigationBar = Component;
|
|
83
|
+
exports.AppSwitcherNavigationBar = Component3;
|
|
84
|
+
exports.BreadcrumbAndFiltersNavigationBar = Component4;
|
|
85
|
+
exports.BreadcrumbNavigationBar = Component5;
|
|
86
|
+
exports.CenteredLogoNavigationBar = Component6;
|
|
87
|
+
exports.CollaborationNavigationBar = Component7;
|
|
88
|
+
exports.CommunicationNavigationBar = Component8;
|
|
89
|
+
exports.ContextSwitcherNavigationBar = Component9;
|
|
90
|
+
exports.DashboardNavigationBar = Component10;
|
|
91
|
+
exports.ECommerceNavigationBar = Component11;
|
|
92
|
+
exports.IconNavigationBar = Component12;
|
|
93
|
+
exports.SearchAndToggleNavigationBar = Component13;
|
|
94
|
+
exports.SimpleNavigationBar = Component14;
|
|
95
|
+
exports.StatusDashboardNavigationBar = Component15;
|
|
96
|
+
exports.TeamSwitcherNavigationBar = Component16;
|
|
97
|
+
exports.TwoTierNavigationBar = Component17;
|
|
98
|
+
exports.UnderlineNavigationBar = Component18;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
function Component() {
|
|
7
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
8
|
+
}
|
|
9
|
+
__name(Component, "Component");
|
|
10
|
+
function Component2() {
|
|
11
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
12
|
+
}
|
|
13
|
+
__name(Component2, "Component");
|
|
14
|
+
function Component3() {
|
|
15
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
16
|
+
}
|
|
17
|
+
__name(Component3, "Component");
|
|
18
|
+
function Component4() {
|
|
19
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
20
|
+
}
|
|
21
|
+
__name(Component4, "Component");
|
|
22
|
+
function Component5() {
|
|
23
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
24
|
+
}
|
|
25
|
+
__name(Component5, "Component");
|
|
26
|
+
function Component6() {
|
|
27
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
28
|
+
}
|
|
29
|
+
__name(Component6, "Component");
|
|
30
|
+
function Component7() {
|
|
31
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
32
|
+
}
|
|
33
|
+
__name(Component7, "Component");
|
|
34
|
+
function Component8() {
|
|
35
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
36
|
+
}
|
|
37
|
+
__name(Component8, "Component");
|
|
38
|
+
function Component9() {
|
|
39
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
40
|
+
}
|
|
41
|
+
__name(Component9, "Component");
|
|
42
|
+
function Component10() {
|
|
43
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
44
|
+
}
|
|
45
|
+
__name(Component10, "Component");
|
|
46
|
+
function Component11() {
|
|
47
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
48
|
+
}
|
|
49
|
+
__name(Component11, "Component");
|
|
50
|
+
function Component12() {
|
|
51
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
52
|
+
}
|
|
53
|
+
__name(Component12, "Component");
|
|
54
|
+
function Component13() {
|
|
55
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
56
|
+
}
|
|
57
|
+
__name(Component13, "Component");
|
|
58
|
+
function Component14() {
|
|
59
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
60
|
+
}
|
|
61
|
+
__name(Component14, "Component");
|
|
62
|
+
function Component15() {
|
|
63
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
64
|
+
}
|
|
65
|
+
__name(Component15, "Component");
|
|
66
|
+
function Component16() {
|
|
67
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
68
|
+
}
|
|
69
|
+
__name(Component16, "Component");
|
|
70
|
+
function Component17() {
|
|
71
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
72
|
+
}
|
|
73
|
+
__name(Component17, "Component");
|
|
74
|
+
function Component18() {
|
|
75
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Component coming soon" }) });
|
|
76
|
+
}
|
|
77
|
+
__name(Component18, "Component");
|
|
78
|
+
|
|
79
|
+
export { Component2 as AIModelSelectorNavigationBar, Component as AdvancedNavigationBar, Component3 as AppSwitcherNavigationBar, Component4 as BreadcrumbAndFiltersNavigationBar, Component5 as BreadcrumbNavigationBar, Component6 as CenteredLogoNavigationBar, Component7 as CollaborationNavigationBar, Component8 as CommunicationNavigationBar, Component9 as ContextSwitcherNavigationBar, Component10 as DashboardNavigationBar, Component11 as ECommerceNavigationBar, Component12 as IconNavigationBar, Component13 as SearchAndToggleNavigationBar, Component14 as SimpleNavigationBar, Component15 as StatusDashboardNavigationBar, Component16 as TeamSwitcherNavigationBar, Component17 as TwoTierNavigationBar, Component18 as UnderlineNavigationBar };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
6
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
+
var lucideReact = require('lucide-react');
|
|
8
|
+
var clsx = require('clsx');
|
|
9
|
+
var tailwindMerge = require('tailwind-merge');
|
|
10
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
+
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n.default = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
33
|
+
var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
|
|
34
|
+
|
|
35
|
+
var __defProp = Object.defineProperty;
|
|
36
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
37
|
+
function cn(...inputs) {
|
|
38
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
39
|
+
}
|
|
40
|
+
__name(cn, "cn");
|
|
41
|
+
var NavigationMenu = React__default.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
+
NavigationMenuPrimitive__namespace.Root,
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
className: cn(
|
|
46
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
...props,
|
|
50
|
+
children
|
|
51
|
+
}
|
|
52
|
+
));
|
|
53
|
+
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
54
|
+
var NavigationMenuList = React__default.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
55
|
+
NavigationMenuPrimitive__namespace.List,
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: cn(
|
|
59
|
+
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
60
|
+
className
|
|
61
|
+
),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
));
|
|
65
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive__namespace.List.displayName;
|
|
66
|
+
var NavigationMenuItem = React__default.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
NavigationMenuPrimitive__namespace.Item,
|
|
68
|
+
{
|
|
69
|
+
ref,
|
|
70
|
+
className: cn("relative", className),
|
|
71
|
+
...props
|
|
72
|
+
}
|
|
73
|
+
));
|
|
74
|
+
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
75
|
+
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
76
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-level-1 text-foreground hover:text-accent focus:text-accent focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-level-1/50 data-[state=open]:bg-level-1/50"
|
|
77
|
+
);
|
|
78
|
+
var NavigationMenuTrigger = React__default.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
79
|
+
NavigationMenuPrimitive__namespace.Trigger,
|
|
80
|
+
{
|
|
81
|
+
ref,
|
|
82
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
83
|
+
...props,
|
|
84
|
+
children: [
|
|
85
|
+
children,
|
|
86
|
+
" ",
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
88
|
+
lucideReact.ChevronDown,
|
|
89
|
+
{
|
|
90
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
91
|
+
"aria-hidden": "true"
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
));
|
|
97
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
98
|
+
var NavigationMenuContent = React__default.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
99
|
+
NavigationMenuPrimitive__namespace.Content,
|
|
100
|
+
{
|
|
101
|
+
ref,
|
|
102
|
+
className: cn(
|
|
103
|
+
"right-0 absolute",
|
|
104
|
+
"absolute top-full w-fit bg-popover mt-[5px]",
|
|
105
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 bg-background overflow-hidden rounded-md border",
|
|
106
|
+
className
|
|
107
|
+
),
|
|
108
|
+
...props
|
|
109
|
+
}
|
|
110
|
+
));
|
|
111
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
112
|
+
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
113
|
+
var NavigationMenuViewport = React__default.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
114
|
+
NavigationMenuPrimitive__namespace.Viewport,
|
|
115
|
+
{
|
|
116
|
+
className: cn(
|
|
117
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border ",
|
|
118
|
+
"bg-background text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
119
|
+
className
|
|
120
|
+
),
|
|
121
|
+
ref,
|
|
122
|
+
...props
|
|
123
|
+
}
|
|
124
|
+
) }));
|
|
125
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
126
|
+
var NavigationMenuIndicator = React__default.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
127
|
+
NavigationMenuPrimitive__namespace.Indicator,
|
|
128
|
+
{
|
|
129
|
+
ref,
|
|
130
|
+
className: cn(
|
|
131
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
132
|
+
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
133
|
+
className
|
|
134
|
+
),
|
|
135
|
+
...props,
|
|
136
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
137
|
+
}
|
|
138
|
+
));
|
|
139
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
|
|
140
|
+
|
|
141
|
+
exports.NavigationMenu = NavigationMenu;
|
|
142
|
+
exports.NavigationMenuContent = NavigationMenuContent;
|
|
143
|
+
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|
|
144
|
+
exports.NavigationMenuItem = NavigationMenuItem;
|
|
145
|
+
exports.NavigationMenuLink = NavigationMenuLink;
|
|
146
|
+
exports.NavigationMenuList = NavigationMenuList;
|
|
147
|
+
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
148
|
+
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
149
|
+
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { ChevronDown } from 'lucide-react';
|
|
6
|
+
import { clsx } from 'clsx';
|
|
7
|
+
import { twMerge } from 'tailwind-merge';
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
12
|
+
function cn(...inputs) {
|
|
13
|
+
return twMerge(clsx(inputs));
|
|
14
|
+
}
|
|
15
|
+
__name(cn, "cn");
|
|
16
|
+
var NavigationMenu = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17
|
+
NavigationMenuPrimitive.Root,
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
className: cn(
|
|
21
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
22
|
+
className
|
|
23
|
+
),
|
|
24
|
+
...props,
|
|
25
|
+
children
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
29
|
+
var NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
30
|
+
NavigationMenuPrimitive.List,
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
className: cn(
|
|
34
|
+
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
35
|
+
className
|
|
36
|
+
),
|
|
37
|
+
...props
|
|
38
|
+
}
|
|
39
|
+
));
|
|
40
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
41
|
+
var NavigationMenuItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
42
|
+
NavigationMenuPrimitive.Item,
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
className: cn("relative", className),
|
|
46
|
+
...props
|
|
47
|
+
}
|
|
48
|
+
));
|
|
49
|
+
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
50
|
+
var navigationMenuTriggerStyle = cva(
|
|
51
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-level-1 text-foreground hover:text-accent focus:text-accent focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-level-1/50 data-[state=open]:bg-level-1/50"
|
|
52
|
+
);
|
|
53
|
+
var NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
54
|
+
NavigationMenuPrimitive.Trigger,
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
58
|
+
...props,
|
|
59
|
+
children: [
|
|
60
|
+
children,
|
|
61
|
+
" ",
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
ChevronDown,
|
|
64
|
+
{
|
|
65
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
66
|
+
"aria-hidden": "true"
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
));
|
|
72
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
73
|
+
var NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
74
|
+
NavigationMenuPrimitive.Content,
|
|
75
|
+
{
|
|
76
|
+
ref,
|
|
77
|
+
className: cn(
|
|
78
|
+
"right-0 absolute",
|
|
79
|
+
"absolute top-full w-fit bg-popover mt-[5px]",
|
|
80
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 bg-background overflow-hidden rounded-md border",
|
|
81
|
+
className
|
|
82
|
+
),
|
|
83
|
+
...props
|
|
84
|
+
}
|
|
85
|
+
));
|
|
86
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
87
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
88
|
+
var NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
89
|
+
NavigationMenuPrimitive.Viewport,
|
|
90
|
+
{
|
|
91
|
+
className: cn(
|
|
92
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border ",
|
|
93
|
+
"bg-background text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
94
|
+
className
|
|
95
|
+
),
|
|
96
|
+
ref,
|
|
97
|
+
...props
|
|
98
|
+
}
|
|
99
|
+
) }));
|
|
100
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
101
|
+
var NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
102
|
+
NavigationMenuPrimitive.Indicator,
|
|
103
|
+
{
|
|
104
|
+
ref,
|
|
105
|
+
className: cn(
|
|
106
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
107
|
+
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
108
|
+
className
|
|
109
|
+
),
|
|
110
|
+
...props,
|
|
111
|
+
children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
112
|
+
}
|
|
113
|
+
));
|
|
114
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
115
|
+
|
|
116
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|