@publish.os/nextjs 0.0.1-alpha.5 → 0.0.1-alpha.6
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/README.md +1 -1
- package/dist/config/createNextConfig.js +3 -3
- package/dist/index.js +7 -5
- package/dist/kernel/components/blocks/color-palette.js +35 -4
- package/dist/kernel/components/blocks/logo-block.js +1 -1
- package/dist/kernel/components/blocks/nav-breadcrumb.js +2 -12
- package/dist/kernel/components/mdx/components/image.js +1 -1
- package/dist/kernel/components/ui/breadcrumb-trail.d.ts +3 -1
- package/dist/kernel/components/ui/breadcrumb-trail.js +1 -0
- package/dist/kernel/components/ui/breadcrumb.d.ts +1 -5
- package/dist/kernel/components/ui/breadcrumb.js +1 -16
- package/dist/kernel/components/ui/menu.js +5 -5
- package/dist/kernel/components/ui/navigation-menu.js +2 -2
- package/dist/kernel/components/ui/popover.js +5 -11
- package/dist/kernel/components/ui/select.js +5 -5
- package/dist/kernel/components/ui/text.js +109 -106
- package/dist/kernel/components/ui/tooltip.js +2 -2
- package/dist/kernel/defaults.registry.d.ts +60 -69
- package/dist/kernel/defaults.registry.js +59 -67
- package/dist/kernel/routes/agent/markdown.js +2 -2
- package/dist/kernel/routes/metadata/feed.js +2 -2
- package/dist/kernel/routes/metadata/llms.js +4 -2
- package/dist/kernel/routes/metadata/og-image.d.ts +1 -1
- package/dist/kernel/routes/metadata/robots.js +2 -2
- package/dist/kernel/routes/metadata/sitemap.js +2 -2
- package/dist/utils/cn.d.ts +1 -1
- package/package.json +2 -6
- package/release/package.json +3 -2
- package/release/release.json +5 -5
- package/release/{pnpm-lock.yaml → runtime-pnpm-lock.yaml} +135 -34
- package/dist/cache/tags.cjs +0 -79
- package/dist/cache/tags.d.cts +0 -13
- package/dist/config/createNextConfig.cjs +0 -52
- package/dist/config/createNextConfig.d.cts +0 -8
- package/dist/config.cjs +0 -78
- package/dist/config.d.cts +0 -101
- package/dist/config.d.ts +0 -101
- package/dist/config.js +0 -48
- package/dist/index.cjs +0 -1266
- package/dist/index.d.cts +0 -18
- package/dist/kernel/components/blocks/AgentActions.cjs +0 -425
- package/dist/kernel/components/blocks/AgentActions.d.cts +0 -52
- package/dist/kernel/components/blocks/animated-icon-swap.cjs +0 -101
- package/dist/kernel/components/blocks/animated-icon-swap.d.cts +0 -16
- package/dist/kernel/components/blocks/color-palette.cjs +0 -413
- package/dist/kernel/components/blocks/color-palette.d.cts +0 -7
- package/dist/kernel/components/blocks/design-system-preview.cjs +0 -593
- package/dist/kernel/components/blocks/design-system-preview.d.cts +0 -29
- package/dist/kernel/components/blocks/link-playground.cjs +0 -816
- package/dist/kernel/components/blocks/link-playground.d.cts +0 -5
- package/dist/kernel/components/blocks/logo-block.cjs +0 -156
- package/dist/kernel/components/blocks/logo-block.d.cts +0 -21
- package/dist/kernel/components/blocks/nav-breadcrumb.cjs +0 -122
- package/dist/kernel/components/blocks/nav-breadcrumb.d.cts +0 -11
- package/dist/kernel/components/blocks/navbar.cjs +0 -154
- package/dist/kernel/components/blocks/navbar.d.cts +0 -16
- package/dist/kernel/components/blocks/navigation-progress-playground.cjs +0 -735
- package/dist/kernel/components/blocks/navigation-progress-playground.d.cts +0 -5
- package/dist/kernel/components/blocks/navigation-progress.cjs +0 -270
- package/dist/kernel/components/blocks/navigation-progress.d.cts +0 -16
- package/dist/kernel/components/blocks/next-prev.cjs +0 -142
- package/dist/kernel/components/blocks/next-prev.d.cts +0 -11
- package/dist/kernel/components/blocks/page-list.cjs +0 -59
- package/dist/kernel/components/blocks/page-list.d.cts +0 -11
- package/dist/kernel/components/blocks/search.cjs +0 -717
- package/dist/kernel/components/blocks/search.d.cts +0 -77
- package/dist/kernel/components/blocks/sidebar-node.cjs +0 -309
- package/dist/kernel/components/blocks/sidebar-node.d.cts +0 -8
- package/dist/kernel/components/blocks/sidebar.cjs +0 -317
- package/dist/kernel/components/blocks/sidebar.d.cts +0 -33
- package/dist/kernel/components/blocks/theme-toggle.cjs +0 -31
- package/dist/kernel/components/blocks/theme-toggle.d.cts +0 -6
- package/dist/kernel/components/blocks/toc.cjs +0 -356
- package/dist/kernel/components/blocks/toc.d.cts +0 -10
- package/dist/kernel/components/mdx/components/blockquote.cjs +0 -66
- package/dist/kernel/components/mdx/components/blockquote.d.cts +0 -6
- package/dist/kernel/components/mdx/components/callout.cjs +0 -137
- package/dist/kernel/components/mdx/components/callout.d.cts +0 -18
- package/dist/kernel/components/mdx/components/code-block.cjs +0 -39
- package/dist/kernel/components/mdx/components/code-block.d.cts +0 -9
- package/dist/kernel/components/mdx/components/figure-caption.cjs +0 -63
- package/dist/kernel/components/mdx/components/figure-caption.d.cts +0 -6
- package/dist/kernel/components/mdx/components/figure.cjs +0 -78
- package/dist/kernel/components/mdx/components/figure.d.cts +0 -10
- package/dist/kernel/components/mdx/components/footnotes.cjs +0 -66
- package/dist/kernel/components/mdx/components/footnotes.d.cts +0 -6
- package/dist/kernel/components/mdx/components/heading-copy-link.cjs +0 -108
- package/dist/kernel/components/mdx/components/heading-copy-link.d.cts +0 -23
- package/dist/kernel/components/mdx/components/heading.cjs +0 -166
- package/dist/kernel/components/mdx/components/heading.d.cts +0 -8
- package/dist/kernel/components/mdx/components/hr.cjs +0 -34
- package/dist/kernel/components/mdx/components/hr.d.cts +0 -9
- package/dist/kernel/components/mdx/components/image-zoom.cjs +0 -49
- package/dist/kernel/components/mdx/components/image-zoom.d.cts +0 -10
- package/dist/kernel/components/mdx/components/image.cjs +0 -192
- package/dist/kernel/components/mdx/components/image.d.cts +0 -21
- package/dist/kernel/components/mdx/components/inline-code.cjs +0 -66
- package/dist/kernel/components/mdx/components/inline-code.d.cts +0 -6
- package/dist/kernel/components/mdx/components/kbd.cjs +0 -34
- package/dist/kernel/components/mdx/components/kbd.d.cts +0 -10
- package/dist/kernel/components/mdx/components/link.cjs +0 -49
- package/dist/kernel/components/mdx/components/link.d.cts +0 -11
- package/dist/kernel/components/mdx/components/paragraph.cjs +0 -87
- package/dist/kernel/components/mdx/components/paragraph.d.cts +0 -5
- package/dist/kernel/components/mdx/components/pre.cjs +0 -66
- package/dist/kernel/components/mdx/components/pre.d.cts +0 -6
- package/dist/kernel/components/mdx/components/strikethrough.cjs +0 -63
- package/dist/kernel/components/mdx/components/strikethrough.d.cts +0 -6
- package/dist/kernel/components/mdx/components/table.cjs +0 -59
- package/dist/kernel/components/mdx/components/table.d.cts +0 -10
- package/dist/kernel/components/mdx/components/task-list.cjs +0 -88
- package/dist/kernel/components/mdx/components/task-list.d.cts +0 -8
- package/dist/kernel/components/mdx/components/video-player.cjs +0 -173
- package/dist/kernel/components/mdx/components/video-player.d.cts +0 -18
- package/dist/kernel/components/mdx/components/video.cjs +0 -185
- package/dist/kernel/components/mdx/components/video.d.cts +0 -15
- package/dist/kernel/components/mdx/error-boundary.cjs +0 -62
- package/dist/kernel/components/mdx/error-boundary.d.cts +0 -8
- package/dist/kernel/components/mdx/error-fallback.cjs +0 -58
- package/dist/kernel/components/mdx/error-fallback.d.cts +0 -9
- package/dist/kernel/components/mdx/mdx.cjs +0 -141
- package/dist/kernel/components/mdx/mdx.d.cts +0 -22
- package/dist/kernel/components/mdx/rehype-heading-ids.cjs +0 -113
- package/dist/kernel/components/mdx/rehype-heading-ids.d.cts +0 -10
- package/dist/kernel/components/mdx/types.cjs +0 -18
- package/dist/kernel/components/mdx/types.d.cts +0 -18
- package/dist/kernel/components/ui/accordion.cjs +0 -104
- package/dist/kernel/components/ui/accordion.d.cts +0 -16
- package/dist/kernel/components/ui/breadcrumb-trail.cjs +0 -238
- package/dist/kernel/components/ui/breadcrumb-trail.d.cts +0 -13
- package/dist/kernel/components/ui/breadcrumb.cjs +0 -399
- package/dist/kernel/components/ui/breadcrumb.d.cts +0 -52
- package/dist/kernel/components/ui/button-group.cjs +0 -143
- package/dist/kernel/components/ui/button-group.d.cts +0 -19
- package/dist/kernel/components/ui/button.cjs +0 -139
- package/dist/kernel/components/ui/button.d.cts +0 -22
- package/dist/kernel/components/ui/card.cjs +0 -133
- package/dist/kernel/components/ui/card.d.cts +0 -17
- package/dist/kernel/components/ui/dialog.cjs +0 -149
- package/dist/kernel/components/ui/dialog.d.cts +0 -22
- package/dist/kernel/components/ui/drawer.cjs +0 -163
- package/dist/kernel/components/ui/drawer.d.cts +0 -24
- package/dist/kernel/components/ui/input.cjs +0 -96
- package/dist/kernel/components/ui/input.d.cts +0 -18
- package/dist/kernel/components/ui/kbd.cjs +0 -105
- package/dist/kernel/components/ui/kbd.d.cts +0 -13
- package/dist/kernel/components/ui/link.cjs +0 -253
- package/dist/kernel/components/ui/link.d.cts +0 -31
- package/dist/kernel/components/ui/menu.cjs +0 -301
- package/dist/kernel/components/ui/menu.d.cts +0 -70
- package/dist/kernel/components/ui/meta-key.cjs +0 -34
- package/dist/kernel/components/ui/meta-key.d.cts +0 -12
- package/dist/kernel/components/ui/navigation-menu.cjs +0 -253
- package/dist/kernel/components/ui/navigation-menu.d.cts +0 -47
- package/dist/kernel/components/ui/popover.cjs +0 -168
- package/dist/kernel/components/ui/popover.d.cts +0 -24
- package/dist/kernel/components/ui/progress.cjs +0 -112
- package/dist/kernel/components/ui/progress.d.cts +0 -16
- package/dist/kernel/components/ui/scroll-area.cjs +0 -413
- package/dist/kernel/components/ui/scroll-area.d.cts +0 -58
- package/dist/kernel/components/ui/select.cjs +0 -244
- package/dist/kernel/components/ui/select.d.cts +0 -40
- package/dist/kernel/components/ui/separator.cjs +0 -73
- package/dist/kernel/components/ui/separator.d.cts +0 -8
- package/dist/kernel/components/ui/table.cjs +0 -131
- package/dist/kernel/components/ui/table.d.cts +0 -11
- package/dist/kernel/components/ui/tabs.cjs +0 -450
- package/dist/kernel/components/ui/tabs.d.cts +0 -82
- package/dist/kernel/components/ui/tag.cjs +0 -104
- package/dist/kernel/components/ui/tag.d.cts +0 -14
- package/dist/kernel/components/ui/text.cjs +0 -184
- package/dist/kernel/components/ui/text.d.cts +0 -17
- package/dist/kernel/components/ui/theme-toggle.cjs +0 -108
- package/dist/kernel/components/ui/theme-toggle.d.cts +0 -10
- package/dist/kernel/components/ui/toast.cjs +0 -154
- package/dist/kernel/components/ui/toast.d.cts +0 -26
- package/dist/kernel/components/ui/tooltip.cjs +0 -127
- package/dist/kernel/components/ui/tooltip.d.cts +0 -20
- package/dist/kernel/defaults.registry.cjs +0 -541
- package/dist/kernel/defaults.registry.d.cts +0 -469
- package/dist/kernel/routes/agent/markdown.cjs +0 -202
- package/dist/kernel/routes/agent/markdown.d.cts +0 -58
- package/dist/kernel/routes/layouts/group.cjs +0 -181
- package/dist/kernel/routes/layouts/group.d.cts +0 -20
- package/dist/kernel/routes/metadata/feed.cjs +0 -293
- package/dist/kernel/routes/metadata/feed.d.cts +0 -20
- package/dist/kernel/routes/metadata/llms.cjs +0 -239
- package/dist/kernel/routes/metadata/llms.d.cts +0 -26
- package/dist/kernel/routes/metadata/og-image.cjs +0 -630
- package/dist/kernel/routes/metadata/og-image.d.cts +0 -62
- package/dist/kernel/routes/metadata/robots.cjs +0 -148
- package/dist/kernel/routes/metadata/robots.d.cts +0 -6
- package/dist/kernel/routes/metadata/sitemap.cjs +0 -192
- package/dist/kernel/routes/metadata/sitemap.d.cts +0 -8
- package/dist/kernel/routes/pages/group.cjs +0 -263
- package/dist/kernel/routes/pages/group.d.cts +0 -17
- package/dist/kernel/routes/pages/leaf.cjs +0 -421
- package/dist/kernel/routes/pages/leaf.d.cts +0 -36
- package/dist/kernel/routes/pages/root.cjs +0 -229
- package/dist/kernel/routes/pages/root.d.cts +0 -16
- package/dist/keyboard-shortcuts.cjs +0 -345
- package/dist/keyboard-shortcuts.d.cts +0 -34
- package/dist/resolvers/manifest-resolver.cjs +0 -111
- package/dist/resolvers/manifest-resolver.d.cts +0 -13
- package/dist/search.cjs +0 -411
- package/dist/search.d.cts +0 -20
- package/dist/types.cjs +0 -30
- package/dist/types.d.cts +0 -269
- package/dist/utils/cn.cjs +0 -49
- package/dist/utils/cn.d.cts +0 -15
- package/dist/utils/heading-ids.cjs +0 -119
- package/dist/utils/heading-ids.d.cts +0 -15
- package/dist/utils/pretty-date.cjs +0 -55
- package/dist/utils/pretty-date.d.cts +0 -6
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/kernel/components/ui/meta-key.tsx
|
|
21
|
-
var meta_key_exports = {};
|
|
22
|
-
__export(meta_key_exports, {
|
|
23
|
-
MetaKey: () => MetaKey
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(meta_key_exports);
|
|
26
|
-
var import_kbd = require("./kbd.js");
|
|
27
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
-
function MetaKey({ children, ...props }) {
|
|
29
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_kbd.Kbd, { ...props, children: children ?? "\u2318" });
|
|
30
|
-
}
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
MetaKey
|
|
34
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { KbdProps } from './kbd.cjs';
|
|
3
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
import 'class-variance-authority/types';
|
|
5
|
-
import 'class-variance-authority';
|
|
6
|
-
|
|
7
|
-
type MetaKeyProps = Omit<KbdProps, "children"> & {
|
|
8
|
-
children?: ComponentPropsWithoutRef<"kbd">["children"];
|
|
9
|
-
};
|
|
10
|
-
declare function MetaKey({ children, ...props }: MetaKeyProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { MetaKey, type MetaKeyProps };
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/kernel/components/ui/navigation-menu.tsx
|
|
22
|
-
var navigation_menu_exports = {};
|
|
23
|
-
__export(navigation_menu_exports, {
|
|
24
|
-
NavigationMenu: () => NavigationMenu,
|
|
25
|
-
NavigationMenuArrow: () => NavigationMenuArrow,
|
|
26
|
-
NavigationMenuBackdrop: () => NavigationMenuBackdrop,
|
|
27
|
-
NavigationMenuContent: () => NavigationMenuContent,
|
|
28
|
-
NavigationMenuIcon: () => NavigationMenuIcon,
|
|
29
|
-
NavigationMenuItem: () => NavigationMenuItem,
|
|
30
|
-
NavigationMenuLink: () => NavigationMenuLink,
|
|
31
|
-
NavigationMenuList: () => NavigationMenuList,
|
|
32
|
-
NavigationMenuPopup: () => NavigationMenuPopup,
|
|
33
|
-
NavigationMenuPortal: () => NavigationMenuPortal,
|
|
34
|
-
NavigationMenuPositioner: () => NavigationMenuPositioner,
|
|
35
|
-
NavigationMenuRoot: () => NavigationMenuRoot,
|
|
36
|
-
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
37
|
-
NavigationMenuViewport: () => NavigationMenuViewport
|
|
38
|
-
});
|
|
39
|
-
module.exports = __toCommonJS(navigation_menu_exports);
|
|
40
|
-
var import_navigation_menu = require("@base-ui/react/navigation-menu");
|
|
41
|
-
|
|
42
|
-
// src/utils/cn.ts
|
|
43
|
-
var import_clsx = require("clsx");
|
|
44
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
45
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
46
|
-
extend: {
|
|
47
|
-
classGroups: {
|
|
48
|
-
z: [
|
|
49
|
-
"z-content",
|
|
50
|
-
"z-nav",
|
|
51
|
-
"z-overlay",
|
|
52
|
-
"z-modal",
|
|
53
|
-
"z-search",
|
|
54
|
-
"z-toast",
|
|
55
|
-
"z-progress"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
function cn(...inputs) {
|
|
61
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// src/kernel/components/ui/navigation-menu.tsx
|
|
65
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
66
|
-
function NavigationMenuRoot({
|
|
67
|
-
className,
|
|
68
|
-
...props
|
|
69
|
-
}) {
|
|
70
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_navigation_menu.NavigationMenu.Root, { className: cn("relative", className), ...props });
|
|
71
|
-
}
|
|
72
|
-
function NavigationMenuList({
|
|
73
|
-
className,
|
|
74
|
-
...props
|
|
75
|
-
}) {
|
|
76
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
77
|
-
import_navigation_menu.NavigationMenu.List,
|
|
78
|
-
{
|
|
79
|
-
className: cn(
|
|
80
|
-
"flex list-none items-center gap-1 p-0 data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",
|
|
81
|
-
className
|
|
82
|
-
),
|
|
83
|
-
...props
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
function NavigationMenuItem(props) {
|
|
88
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_navigation_menu.NavigationMenu.Item, { ...props });
|
|
89
|
-
}
|
|
90
|
-
var navigationMenuTriggerClassName = [
|
|
91
|
-
"inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-button px-3 py-1.5 text-sm font-medium leading-none text-foreground-2 outline-none transition-colors duration-150 ease-out",
|
|
92
|
-
"hover:bg-surface-hover hover:text-foreground-1 active:bg-surface-active data-[popup-open]:bg-surface-active data-[popup-open]:text-foreground-1",
|
|
93
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
94
|
-
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
95
|
-
].join(" ");
|
|
96
|
-
function NavigationMenuTrigger({
|
|
97
|
-
className,
|
|
98
|
-
...props
|
|
99
|
-
}) {
|
|
100
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
101
|
-
import_navigation_menu.NavigationMenu.Trigger,
|
|
102
|
-
{
|
|
103
|
-
className: cn(navigationMenuTriggerClassName, className),
|
|
104
|
-
...props
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
function NavigationMenuIcon({
|
|
109
|
-
className,
|
|
110
|
-
...props
|
|
111
|
-
}) {
|
|
112
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
113
|
-
import_navigation_menu.NavigationMenu.Icon,
|
|
114
|
-
{
|
|
115
|
-
className: cn(
|
|
116
|
-
"flex size-4 items-center justify-center transition-transform duration-150 ease-out data-[popup-open]:rotate-180 motion-reduce:transition-none",
|
|
117
|
-
className
|
|
118
|
-
),
|
|
119
|
-
...props
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
function NavigationMenuContent({
|
|
124
|
-
className,
|
|
125
|
-
...props
|
|
126
|
-
}) {
|
|
127
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
128
|
-
import_navigation_menu.NavigationMenu.Content,
|
|
129
|
-
{
|
|
130
|
-
className: cn("outline-none", className),
|
|
131
|
-
...props
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
function NavigationMenuLink({
|
|
136
|
-
className,
|
|
137
|
-
...props
|
|
138
|
-
}) {
|
|
139
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
140
|
-
import_navigation_menu.NavigationMenu.Link,
|
|
141
|
-
{
|
|
142
|
-
className: cn(
|
|
143
|
-
navigationMenuTriggerClassName,
|
|
144
|
-
"!no-underline hover:!no-underline active:!no-underline data-active:bg-surface-active data-active:text-foreground-1 data-[state=path-active]:bg-surface-active data-[state=path-active]:text-foreground-1",
|
|
145
|
-
className
|
|
146
|
-
),
|
|
147
|
-
...props
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
function NavigationMenuBackdrop({
|
|
152
|
-
className,
|
|
153
|
-
...props
|
|
154
|
-
}) {
|
|
155
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
|
-
import_navigation_menu.NavigationMenu.Backdrop,
|
|
157
|
-
{
|
|
158
|
-
className: cn("fixed inset-0 z-overlay", className),
|
|
159
|
-
...props
|
|
160
|
-
}
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
function NavigationMenuPortal(props) {
|
|
164
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_navigation_menu.NavigationMenu.Portal, { ...props });
|
|
165
|
-
}
|
|
166
|
-
function NavigationMenuPositioner({
|
|
167
|
-
className,
|
|
168
|
-
sideOffset = 8,
|
|
169
|
-
...props
|
|
170
|
-
}) {
|
|
171
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
172
|
-
import_navigation_menu.NavigationMenu.Positioner,
|
|
173
|
-
{
|
|
174
|
-
className: cn("z-overlay outline-none", className),
|
|
175
|
-
sideOffset,
|
|
176
|
-
...props
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
function NavigationMenuPopup({
|
|
181
|
-
className,
|
|
182
|
-
...props
|
|
183
|
-
}) {
|
|
184
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
185
|
-
import_navigation_menu.NavigationMenu.Popup,
|
|
186
|
-
{
|
|
187
|
-
className: cn(
|
|
188
|
-
"animate-popup min-w-56 rounded-popup border border-[color:var(--surface-menu-border)] bg-surface-menu p-2 text-surface-menu-foreground shadow-lg outline-none",
|
|
189
|
-
className
|
|
190
|
-
),
|
|
191
|
-
...props
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
function NavigationMenuViewport({
|
|
196
|
-
className,
|
|
197
|
-
...props
|
|
198
|
-
}) {
|
|
199
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
200
|
-
import_navigation_menu.NavigationMenu.Viewport,
|
|
201
|
-
{
|
|
202
|
-
className: cn("overflow-hidden outline-none", className),
|
|
203
|
-
...props
|
|
204
|
-
}
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
function NavigationMenuArrow({
|
|
208
|
-
className,
|
|
209
|
-
...props
|
|
210
|
-
}) {
|
|
211
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
212
|
-
import_navigation_menu.NavigationMenu.Arrow,
|
|
213
|
-
{
|
|
214
|
-
className: cn(
|
|
215
|
-
"size-2 rotate-45 border border-[color:var(--surface-menu-border)] bg-surface-menu",
|
|
216
|
-
className
|
|
217
|
-
),
|
|
218
|
-
...props
|
|
219
|
-
}
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
var NavigationMenu = Object.assign(NavigationMenuRoot, {
|
|
223
|
-
Arrow: NavigationMenuArrow,
|
|
224
|
-
Backdrop: NavigationMenuBackdrop,
|
|
225
|
-
Content: NavigationMenuContent,
|
|
226
|
-
Icon: NavigationMenuIcon,
|
|
227
|
-
Item: NavigationMenuItem,
|
|
228
|
-
Link: NavigationMenuLink,
|
|
229
|
-
List: NavigationMenuList,
|
|
230
|
-
Popup: NavigationMenuPopup,
|
|
231
|
-
Portal: NavigationMenuPortal,
|
|
232
|
-
Positioner: NavigationMenuPositioner,
|
|
233
|
-
Root: NavigationMenuRoot,
|
|
234
|
-
Trigger: NavigationMenuTrigger,
|
|
235
|
-
Viewport: NavigationMenuViewport
|
|
236
|
-
});
|
|
237
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
238
|
-
0 && (module.exports = {
|
|
239
|
-
NavigationMenu,
|
|
240
|
-
NavigationMenuArrow,
|
|
241
|
-
NavigationMenuBackdrop,
|
|
242
|
-
NavigationMenuContent,
|
|
243
|
-
NavigationMenuIcon,
|
|
244
|
-
NavigationMenuItem,
|
|
245
|
-
NavigationMenuLink,
|
|
246
|
-
NavigationMenuList,
|
|
247
|
-
NavigationMenuPopup,
|
|
248
|
-
NavigationMenuPortal,
|
|
249
|
-
NavigationMenuPositioner,
|
|
250
|
-
NavigationMenuRoot,
|
|
251
|
-
NavigationMenuTrigger,
|
|
252
|
-
NavigationMenuViewport
|
|
253
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
|
|
3
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
|
|
5
|
-
type NavigationMenuProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Root>;
|
|
6
|
-
type NavigationMenuListProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.List>;
|
|
7
|
-
type NavigationMenuItemProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Item>;
|
|
8
|
-
type NavigationMenuTriggerProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Trigger>;
|
|
9
|
-
type NavigationMenuIconProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Icon>;
|
|
10
|
-
type NavigationMenuContentProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Content>;
|
|
11
|
-
type NavigationMenuLinkProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Link>;
|
|
12
|
-
type NavigationMenuBackdropProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Backdrop>;
|
|
13
|
-
type NavigationMenuPortalProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Portal>;
|
|
14
|
-
type NavigationMenuPositionerProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Positioner>;
|
|
15
|
-
type NavigationMenuPopupProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Popup>;
|
|
16
|
-
type NavigationMenuViewportProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Viewport>;
|
|
17
|
-
type NavigationMenuArrowProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Arrow>;
|
|
18
|
-
declare function NavigationMenuRoot({ className, ...props }: NavigationMenuProps): react_jsx_runtime.JSX.Element;
|
|
19
|
-
declare function NavigationMenuList({ className, ...props }: NavigationMenuListProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
declare function NavigationMenuItem(props: NavigationMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
21
|
-
declare function NavigationMenuTrigger({ className, ...props }: NavigationMenuTriggerProps): react_jsx_runtime.JSX.Element;
|
|
22
|
-
declare function NavigationMenuIcon({ className, ...props }: NavigationMenuIconProps): react_jsx_runtime.JSX.Element;
|
|
23
|
-
declare function NavigationMenuContent({ className, ...props }: NavigationMenuContentProps): react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare function NavigationMenuLink({ className, ...props }: NavigationMenuLinkProps): react_jsx_runtime.JSX.Element;
|
|
25
|
-
declare function NavigationMenuBackdrop({ className, ...props }: NavigationMenuBackdropProps): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare function NavigationMenuPortal(props: NavigationMenuPortalProps): react_jsx_runtime.JSX.Element;
|
|
27
|
-
declare function NavigationMenuPositioner({ className, sideOffset, ...props }: NavigationMenuPositionerProps): react_jsx_runtime.JSX.Element;
|
|
28
|
-
declare function NavigationMenuPopup({ className, ...props }: NavigationMenuPopupProps): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare function NavigationMenuViewport({ className, ...props }: NavigationMenuViewportProps): react_jsx_runtime.JSX.Element;
|
|
30
|
-
declare function NavigationMenuArrow({ className, ...props }: NavigationMenuArrowProps): react_jsx_runtime.JSX.Element;
|
|
31
|
-
declare const NavigationMenu: typeof NavigationMenuRoot & {
|
|
32
|
-
Arrow: typeof NavigationMenuArrow;
|
|
33
|
-
Backdrop: typeof NavigationMenuBackdrop;
|
|
34
|
-
Content: typeof NavigationMenuContent;
|
|
35
|
-
Icon: typeof NavigationMenuIcon;
|
|
36
|
-
Item: typeof NavigationMenuItem;
|
|
37
|
-
Link: typeof NavigationMenuLink;
|
|
38
|
-
List: typeof NavigationMenuList;
|
|
39
|
-
Popup: typeof NavigationMenuPopup;
|
|
40
|
-
Portal: typeof NavigationMenuPortal;
|
|
41
|
-
Positioner: typeof NavigationMenuPositioner;
|
|
42
|
-
Root: typeof NavigationMenuRoot;
|
|
43
|
-
Trigger: typeof NavigationMenuTrigger;
|
|
44
|
-
Viewport: typeof NavigationMenuViewport;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export { NavigationMenu, NavigationMenuArrow, type NavigationMenuArrowProps, NavigationMenuBackdrop, type NavigationMenuBackdropProps, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuIcon, type NavigationMenuIconProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, NavigationMenuPopup, type NavigationMenuPopupProps, NavigationMenuPortal, type NavigationMenuPortalProps, NavigationMenuPositioner, type NavigationMenuPositionerProps, type NavigationMenuProps, NavigationMenuRoot, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps };
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/kernel/components/ui/popover.tsx
|
|
22
|
-
var popover_exports = {};
|
|
23
|
-
__export(popover_exports, {
|
|
24
|
-
Popover: () => Popover,
|
|
25
|
-
PopoverArrow: () => PopoverArrow,
|
|
26
|
-
PopoverClose: () => PopoverClose,
|
|
27
|
-
PopoverDescription: () => PopoverDescription,
|
|
28
|
-
PopoverPopup: () => PopoverPopup,
|
|
29
|
-
PopoverPortal: () => PopoverPortal,
|
|
30
|
-
PopoverPositioner: () => PopoverPositioner,
|
|
31
|
-
PopoverTitle: () => PopoverTitle,
|
|
32
|
-
PopoverTrigger: () => PopoverTrigger
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(popover_exports);
|
|
35
|
-
var import_popover = require("@base-ui/react/popover");
|
|
36
|
-
|
|
37
|
-
// src/utils/cn.ts
|
|
38
|
-
var import_clsx = require("clsx");
|
|
39
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
40
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
41
|
-
extend: {
|
|
42
|
-
classGroups: {
|
|
43
|
-
z: [
|
|
44
|
-
"z-content",
|
|
45
|
-
"z-nav",
|
|
46
|
-
"z-overlay",
|
|
47
|
-
"z-modal",
|
|
48
|
-
"z-search",
|
|
49
|
-
"z-toast",
|
|
50
|
-
"z-progress"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
function cn(...inputs) {
|
|
56
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// src/kernel/components/ui/popover.tsx
|
|
60
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
61
|
-
function Popover(props) {
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popover.Popover.Root, { ...props });
|
|
63
|
-
}
|
|
64
|
-
function PopoverTrigger({ className, ...props }) {
|
|
65
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
|
-
import_popover.Popover.Trigger,
|
|
67
|
-
{
|
|
68
|
-
className: cn(
|
|
69
|
-
"rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
70
|
-
className
|
|
71
|
-
),
|
|
72
|
-
...props
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
function PopoverPortal(props) {
|
|
77
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popover.Popover.Portal, { ...props });
|
|
78
|
-
}
|
|
79
|
-
function PopoverPositioner({
|
|
80
|
-
className,
|
|
81
|
-
sideOffset = 8,
|
|
82
|
-
...props
|
|
83
|
-
}) {
|
|
84
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
-
import_popover.Popover.Positioner,
|
|
86
|
-
{
|
|
87
|
-
className: cn("z-50 outline-none", className),
|
|
88
|
-
sideOffset,
|
|
89
|
-
...props
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
function PopoverPopup({ className, ...props }) {
|
|
94
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
95
|
-
import_popover.Popover.Popup,
|
|
96
|
-
{
|
|
97
|
-
className: cn(
|
|
98
|
-
"animate-popup w-72 rounded-popup border border-[color:var(--surface-menu-border)] bg-surface-menu p-4 text-surface-menu-foreground shadow-lg outline-none",
|
|
99
|
-
className
|
|
100
|
-
),
|
|
101
|
-
...props
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
function PopoverTitle({ className, ...props }) {
|
|
106
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
107
|
-
import_popover.Popover.Title,
|
|
108
|
-
{
|
|
109
|
-
className: cn(
|
|
110
|
-
"text-sm font-semibold text-surface-menu-foreground",
|
|
111
|
-
className
|
|
112
|
-
),
|
|
113
|
-
...props
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
function PopoverDescription({
|
|
118
|
-
className,
|
|
119
|
-
...props
|
|
120
|
-
}) {
|
|
121
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
122
|
-
import_popover.Popover.Description,
|
|
123
|
-
{
|
|
124
|
-
className: cn(
|
|
125
|
-
"mt-1 text-sm leading-6 text-surface-menu-disabled-foreground",
|
|
126
|
-
className
|
|
127
|
-
),
|
|
128
|
-
...props
|
|
129
|
-
}
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
function PopoverClose({ className, ...props }) {
|
|
133
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
134
|
-
import_popover.Popover.Close,
|
|
135
|
-
{
|
|
136
|
-
className: cn(
|
|
137
|
-
"inline-flex size-8 items-center justify-center rounded-button text-surface-menu-disabled-foreground transition-colors hover:bg-surface-menu-hover hover:text-surface-menu-hover-foreground",
|
|
138
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
139
|
-
className
|
|
140
|
-
),
|
|
141
|
-
...props
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
function PopoverArrow({ className, ...props }) {
|
|
146
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
147
|
-
import_popover.Popover.Arrow,
|
|
148
|
-
{
|
|
149
|
-
className: cn(
|
|
150
|
-
"size-2 rotate-45 border border-[color:var(--surface-menu-border)] bg-surface-menu",
|
|
151
|
-
className
|
|
152
|
-
),
|
|
153
|
-
...props
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
158
|
-
0 && (module.exports = {
|
|
159
|
-
Popover,
|
|
160
|
-
PopoverArrow,
|
|
161
|
-
PopoverClose,
|
|
162
|
-
PopoverDescription,
|
|
163
|
-
PopoverPopup,
|
|
164
|
-
PopoverPortal,
|
|
165
|
-
PopoverPositioner,
|
|
166
|
-
PopoverTitle,
|
|
167
|
-
PopoverTrigger
|
|
168
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
3
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
|
|
5
|
-
type PopoverProps = ComponentPropsWithoutRef<typeof Popover$1.Root>;
|
|
6
|
-
type PopoverTriggerProps = ComponentPropsWithoutRef<typeof Popover$1.Trigger>;
|
|
7
|
-
type PopoverPortalProps = ComponentPropsWithoutRef<typeof Popover$1.Portal>;
|
|
8
|
-
type PopoverPositionerProps = ComponentPropsWithoutRef<typeof Popover$1.Positioner>;
|
|
9
|
-
type PopoverPopupProps = ComponentPropsWithoutRef<typeof Popover$1.Popup>;
|
|
10
|
-
type PopoverTitleProps = ComponentPropsWithoutRef<typeof Popover$1.Title>;
|
|
11
|
-
type PopoverDescriptionProps = ComponentPropsWithoutRef<typeof Popover$1.Description>;
|
|
12
|
-
type PopoverCloseProps = ComponentPropsWithoutRef<typeof Popover$1.Close>;
|
|
13
|
-
type PopoverArrowProps = ComponentPropsWithoutRef<typeof Popover$1.Arrow>;
|
|
14
|
-
declare function Popover(props: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
15
|
-
declare function PopoverTrigger({ className, ...props }: PopoverTriggerProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
declare function PopoverPortal(props: PopoverPortalProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
declare function PopoverPositioner({ className, sideOffset, ...props }: PopoverPositionerProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
declare function PopoverPopup({ className, ...props }: PopoverPopupProps): react_jsx_runtime.JSX.Element;
|
|
19
|
-
declare function PopoverTitle({ className, ...props }: PopoverTitleProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
21
|
-
declare function PopoverClose({ className, ...props }: PopoverCloseProps): react_jsx_runtime.JSX.Element;
|
|
22
|
-
declare function PopoverArrow({ className, ...props }: PopoverArrowProps): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { Popover, PopoverArrow, type PopoverArrowProps, PopoverClose, type PopoverCloseProps, PopoverDescription, type PopoverDescriptionProps, PopoverPopup, type PopoverPopupProps, PopoverPortal, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerProps, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/kernel/components/ui/progress.tsx
|
|
22
|
-
var progress_exports = {};
|
|
23
|
-
__export(progress_exports, {
|
|
24
|
-
Progress: () => Progress,
|
|
25
|
-
ProgressIndicator: () => ProgressIndicator,
|
|
26
|
-
ProgressLabel: () => ProgressLabel,
|
|
27
|
-
ProgressTrack: () => ProgressTrack,
|
|
28
|
-
ProgressValue: () => ProgressValue
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(progress_exports);
|
|
31
|
-
var import_progress = require("@base-ui/react/progress");
|
|
32
|
-
|
|
33
|
-
// src/utils/cn.ts
|
|
34
|
-
var import_clsx = require("clsx");
|
|
35
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
36
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
37
|
-
extend: {
|
|
38
|
-
classGroups: {
|
|
39
|
-
z: [
|
|
40
|
-
"z-content",
|
|
41
|
-
"z-nav",
|
|
42
|
-
"z-overlay",
|
|
43
|
-
"z-modal",
|
|
44
|
-
"z-search",
|
|
45
|
-
"z-toast",
|
|
46
|
-
"z-progress"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
function cn(...inputs) {
|
|
52
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// src/kernel/components/ui/progress.tsx
|
|
56
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
-
function Progress(props) {
|
|
58
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_progress.Progress.Root, { ...props });
|
|
59
|
-
}
|
|
60
|
-
function ProgressTrack({ className, ...props }) {
|
|
61
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
-
import_progress.Progress.Track,
|
|
63
|
-
{
|
|
64
|
-
className: cn(
|
|
65
|
-
"h-2 overflow-hidden rounded-panel bg-surface-3",
|
|
66
|
-
className
|
|
67
|
-
),
|
|
68
|
-
...props
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
function ProgressIndicator({
|
|
73
|
-
className,
|
|
74
|
-
...props
|
|
75
|
-
}) {
|
|
76
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
77
|
-
import_progress.Progress.Indicator,
|
|
78
|
-
{
|
|
79
|
-
className: cn(
|
|
80
|
-
"h-full w-full rounded-[inherit] bg-accent-1 transition-transform",
|
|
81
|
-
className
|
|
82
|
-
),
|
|
83
|
-
...props
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
function ProgressLabel({ className, ...props }) {
|
|
88
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
|
-
import_progress.Progress.Label,
|
|
90
|
-
{
|
|
91
|
-
className: cn("text-sm font-medium text-foreground-1", className),
|
|
92
|
-
...props
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
function ProgressValue({ className, ...props }) {
|
|
97
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
98
|
-
import_progress.Progress.Value,
|
|
99
|
-
{
|
|
100
|
-
className: cn("text-sm text-foreground-2", className),
|
|
101
|
-
...props
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
106
|
-
0 && (module.exports = {
|
|
107
|
-
Progress,
|
|
108
|
-
ProgressIndicator,
|
|
109
|
-
ProgressLabel,
|
|
110
|
-
ProgressTrack,
|
|
111
|
-
ProgressValue
|
|
112
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
3
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
|
|
5
|
-
type ProgressProps = ComponentPropsWithoutRef<typeof Progress$1.Root>;
|
|
6
|
-
type ProgressTrackProps = ComponentPropsWithoutRef<typeof Progress$1.Track>;
|
|
7
|
-
type ProgressIndicatorProps = ComponentPropsWithoutRef<typeof Progress$1.Indicator>;
|
|
8
|
-
type ProgressLabelProps = ComponentPropsWithoutRef<typeof Progress$1.Label>;
|
|
9
|
-
type ProgressValueProps = ComponentPropsWithoutRef<typeof Progress$1.Value>;
|
|
10
|
-
declare function Progress(props: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
declare function ProgressTrack({ className, ...props }: ProgressTrackProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
13
|
-
declare function ProgressLabel({ className, ...props }: ProgressLabelProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
declare function ProgressValue({ className, ...props }: ProgressValueProps): react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressTrack, type ProgressTrackProps, ProgressValue, type ProgressValueProps };
|