@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,143 +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/button-group.tsx
|
|
21
|
-
var button_group_exports = {};
|
|
22
|
-
__export(button_group_exports, {
|
|
23
|
-
ButtonGroup: () => ButtonGroup,
|
|
24
|
-
ButtonGroupSeparator: () => ButtonGroupSeparator,
|
|
25
|
-
ButtonGroupText: () => ButtonGroupText,
|
|
26
|
-
buttonGroupVariants: () => buttonGroupVariants
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(button_group_exports);
|
|
29
|
-
var import_button = require("./button.js");
|
|
30
|
-
var import_separator = require("./separator.js");
|
|
31
|
-
|
|
32
|
-
// src/utils/cn.ts
|
|
33
|
-
var import_clsx = require("clsx");
|
|
34
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
35
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
36
|
-
extend: {
|
|
37
|
-
classGroups: {
|
|
38
|
-
z: [
|
|
39
|
-
"z-content",
|
|
40
|
-
"z-nav",
|
|
41
|
-
"z-overlay",
|
|
42
|
-
"z-modal",
|
|
43
|
-
"z-search",
|
|
44
|
-
"z-toast",
|
|
45
|
-
"z-progress"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
function cn(...inputs) {
|
|
51
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// src/kernel/components/ui/button-group.tsx
|
|
55
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
56
|
-
var import_jsx_runtime = (
|
|
57
|
-
// biome-ignore lint/a11y/useSemanticElements: ButtonGroup can wrap buttons, links, inputs, and composite triggers; fieldset semantics would be too narrow.
|
|
58
|
-
require("react/jsx-runtime")
|
|
59
|
-
);
|
|
60
|
-
var buttonGroupVariants = (0, import_class_variance_authority.cva)(
|
|
61
|
-
[
|
|
62
|
-
"inline-flex w-fit items-stretch",
|
|
63
|
-
"has-[>[data-slot=button-group]]:gap-2",
|
|
64
|
-
"[&>*]:focus-visible:relative [&>*]:focus-visible:z-10",
|
|
65
|
-
"[&>input]:flex-1",
|
|
66
|
-
"[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit"
|
|
67
|
-
].join(" "),
|
|
68
|
-
{
|
|
69
|
-
variants: {
|
|
70
|
-
orientation: {
|
|
71
|
-
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>*:has(+[data-slot=button-group-separator])]:border-r-0",
|
|
72
|
-
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>*:has(+[data-slot=button-group-separator])]:border-b-0"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
defaultVariants: {
|
|
76
|
-
orientation: "horizontal"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
function ButtonGroup({
|
|
81
|
-
className,
|
|
82
|
-
orientation,
|
|
83
|
-
...props
|
|
84
|
-
}) {
|
|
85
|
-
const resolvedOrientation = orientation ?? "horizontal";
|
|
86
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
|
-
"div",
|
|
88
|
-
{
|
|
89
|
-
className: cn(
|
|
90
|
-
buttonGroupVariants({ orientation: resolvedOrientation }),
|
|
91
|
-
className
|
|
92
|
-
),
|
|
93
|
-
"data-orientation": resolvedOrientation,
|
|
94
|
-
"data-slot": "button-group",
|
|
95
|
-
role: "group",
|
|
96
|
-
...props
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
function ButtonGroupText({
|
|
101
|
-
className,
|
|
102
|
-
size,
|
|
103
|
-
variant = "soft",
|
|
104
|
-
...props
|
|
105
|
-
}) {
|
|
106
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
className: cn(
|
|
110
|
-
(0, import_button.buttonVariants)({ iconOnly: false, size, variant }),
|
|
111
|
-
"pointer-events-none",
|
|
112
|
-
className
|
|
113
|
-
),
|
|
114
|
-
"data-slot": "button-group-text",
|
|
115
|
-
...props
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
function ButtonGroupSeparator({
|
|
120
|
-
className,
|
|
121
|
-
orientation = "vertical",
|
|
122
|
-
...props
|
|
123
|
-
}) {
|
|
124
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
125
|
-
import_separator.Separator,
|
|
126
|
-
{
|
|
127
|
-
className: cn(
|
|
128
|
-
"relative !m-0 shrink-0 self-stretch bg-stroke-3 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px",
|
|
129
|
-
className
|
|
130
|
-
),
|
|
131
|
-
"data-slot": "button-group-separator",
|
|
132
|
-
orientation,
|
|
133
|
-
...props
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
138
|
-
0 && (module.exports = {
|
|
139
|
-
ButtonGroup,
|
|
140
|
-
ButtonGroupSeparator,
|
|
141
|
-
ButtonGroupText,
|
|
142
|
-
buttonGroupVariants
|
|
143
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { ButtonVariantProps } from './button.cjs';
|
|
4
|
-
import { SeparatorProps } from './separator.cjs';
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
7
|
-
import '@base-ui/react/separator';
|
|
8
|
-
|
|
9
|
-
declare const buttonGroupVariants: (props?: ({
|
|
10
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
11
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
-
type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & VariantProps<typeof buttonGroupVariants>;
|
|
13
|
-
declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
type ButtonGroupTextProps = Omit<ComponentPropsWithoutRef<"div">, "color"> & Pick<ButtonVariantProps, "size" | "variant">;
|
|
15
|
-
declare function ButtonGroupText({ className, size, variant, ...props }: ButtonGroupTextProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
type ButtonGroupSeparatorProps = SeparatorProps;
|
|
17
|
-
declare function ButtonGroupSeparator({ className, orientation, ...props }: ButtonGroupSeparatorProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, buttonGroupVariants };
|
|
@@ -1,139 +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/button.tsx
|
|
21
|
-
var button_exports = {};
|
|
22
|
-
__export(button_exports, {
|
|
23
|
-
Button: () => Button,
|
|
24
|
-
buttonVariants: () => buttonVariants
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(button_exports);
|
|
27
|
-
var import_button = require("@base-ui/react/button");
|
|
28
|
-
|
|
29
|
-
// src/utils/cn.ts
|
|
30
|
-
var import_clsx = require("clsx");
|
|
31
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
32
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
33
|
-
extend: {
|
|
34
|
-
classGroups: {
|
|
35
|
-
z: [
|
|
36
|
-
"z-content",
|
|
37
|
-
"z-nav",
|
|
38
|
-
"z-overlay",
|
|
39
|
-
"z-modal",
|
|
40
|
-
"z-search",
|
|
41
|
-
"z-toast",
|
|
42
|
-
"z-progress"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
function cn(...inputs) {
|
|
48
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// src/kernel/components/ui/button.tsx
|
|
52
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
53
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
|
-
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
55
|
-
[
|
|
56
|
-
"inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-button border font-medium leading-none",
|
|
57
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
58
|
-
"disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
59
|
-
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
60
|
-
].join(" "),
|
|
61
|
-
{
|
|
62
|
-
variants: {
|
|
63
|
-
variant: {
|
|
64
|
-
solid: "border-accent-solid bg-accent-solid text-accent-foreground shadow-sm hover:not-data-disabled:border-accent-solid-hover hover:not-data-disabled:bg-accent-solid-hover active:not-data-disabled:border-accent-solid-active active:not-data-disabled:bg-accent-solid-active data-[state=path-active]:border-accent-solid-hover data-[state=path-active]:bg-accent-solid-hover",
|
|
65
|
-
soft: "border-0 bg-accent-soft text-accent-1 hover:not-data-disabled:bg-accent-soft-hover active:not-data-disabled:bg-accent-soft-active data-[state=path-active]:bg-accent-soft-active",
|
|
66
|
-
outline: "border-stroke-2 bg-transparent text-foreground-1 hover:not-data-disabled:bg-surface-hover active:not-data-disabled:bg-surface-active data-[state=path-active]:border-accent-border data-[state=path-active]:bg-accent-soft-hover data-[state=path-active]:text-accent-1",
|
|
67
|
-
ghost: "border-transparent bg-transparent text-foreground-2 hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1 active:not-data-disabled:bg-surface-active data-[state=path-active]:bg-accent-soft-hover data-[state=path-active]:text-accent-1"
|
|
68
|
-
},
|
|
69
|
-
size: {
|
|
70
|
-
xs: "h-7 gap-1.5 px-2 text-xs",
|
|
71
|
-
sm: "h-8 px-3 text-sm",
|
|
72
|
-
md: "h-10 px-4 text-sm",
|
|
73
|
-
lg: "h-11 px-5 text-base",
|
|
74
|
-
xl: "h-12 px-6 text-base"
|
|
75
|
-
},
|
|
76
|
-
iconOnly: {
|
|
77
|
-
false: "",
|
|
78
|
-
true: "gap-0 px-0"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
compoundVariants: [
|
|
82
|
-
{ className: "size-7 p-0", iconOnly: true, size: "xs" },
|
|
83
|
-
{ className: "size-8 p-0", iconOnly: true, size: "sm" },
|
|
84
|
-
{ className: "size-10 p-0", iconOnly: true, size: "md" },
|
|
85
|
-
{ className: "size-11 p-0", iconOnly: true, size: "lg" },
|
|
86
|
-
{ className: "size-12 p-0", iconOnly: true, size: "xl" }
|
|
87
|
-
],
|
|
88
|
-
defaultVariants: {
|
|
89
|
-
iconOnly: false,
|
|
90
|
-
size: "md",
|
|
91
|
-
variant: "solid"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
function Spinner() {
|
|
96
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
|
-
"span",
|
|
98
|
-
{
|
|
99
|
-
"aria-hidden": "true",
|
|
100
|
-
className: "size-4 animate-spin rounded-full border-2 border-current border-r-transparent"
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
function Button({
|
|
105
|
-
active,
|
|
106
|
-
children,
|
|
107
|
-
className,
|
|
108
|
-
disabled,
|
|
109
|
-
iconOnly,
|
|
110
|
-
leftIcon,
|
|
111
|
-
loading,
|
|
112
|
-
rightIcon,
|
|
113
|
-
size,
|
|
114
|
-
type = "button",
|
|
115
|
-
variant,
|
|
116
|
-
...props
|
|
117
|
-
}) {
|
|
118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
119
|
-
import_button.Button,
|
|
120
|
-
{
|
|
121
|
-
className: cn(buttonVariants({ iconOnly, size, variant }), className),
|
|
122
|
-
"data-state": active ? "path-active" : void 0,
|
|
123
|
-
disabled: disabled || loading,
|
|
124
|
-
focusableWhenDisabled: loading,
|
|
125
|
-
type,
|
|
126
|
-
...props,
|
|
127
|
-
children: [
|
|
128
|
-
loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, {}) : leftIcon,
|
|
129
|
-
children,
|
|
130
|
-
!loading && rightIcon
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
136
|
-
0 && (module.exports = {
|
|
137
|
-
Button,
|
|
138
|
-
buttonVariants
|
|
139
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
5
|
-
|
|
6
|
-
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "solid" | "soft" | "outline" | "ghost" | null | undefined;
|
|
8
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
-
iconOnly?: boolean | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
type ButtonVariantProps = VariantProps<typeof buttonVariants>;
|
|
12
|
-
type ButtonProps = {
|
|
13
|
-
active?: boolean;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
leftIcon?: ReactNode;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
rightIcon?: ReactNode;
|
|
19
|
-
} & ButtonVariantProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
|
|
20
|
-
declare function Button({ active, children, className, disabled, iconOnly, leftIcon, loading, rightIcon, size, type, variant, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
export { Button, type ButtonProps, type ButtonVariantProps, buttonVariants };
|
|
@@ -1,133 +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/card.tsx
|
|
21
|
-
var card_exports = {};
|
|
22
|
-
__export(card_exports, {
|
|
23
|
-
Card: () => Card,
|
|
24
|
-
CardContent: () => CardContent,
|
|
25
|
-
CardDescription: () => CardDescription,
|
|
26
|
-
CardHeader: () => CardHeader,
|
|
27
|
-
CardTitle: () => CardTitle,
|
|
28
|
-
cardVariants: () => cardVariants
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(card_exports);
|
|
31
|
-
|
|
32
|
-
// src/utils/cn.ts
|
|
33
|
-
var import_clsx = require("clsx");
|
|
34
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
35
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
36
|
-
extend: {
|
|
37
|
-
classGroups: {
|
|
38
|
-
z: [
|
|
39
|
-
"z-content",
|
|
40
|
-
"z-nav",
|
|
41
|
-
"z-overlay",
|
|
42
|
-
"z-modal",
|
|
43
|
-
"z-search",
|
|
44
|
-
"z-toast",
|
|
45
|
-
"z-progress"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
function cn(...inputs) {
|
|
51
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// src/kernel/components/ui/card.tsx
|
|
55
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
56
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
-
var cardVariants = (0, import_class_variance_authority.cva)("rounded-card border text-foreground-1", {
|
|
58
|
-
variants: {
|
|
59
|
-
variant: {
|
|
60
|
-
default: "border-stroke-2 bg-surface-1",
|
|
61
|
-
elevated: "border-stroke-3 bg-surface-2 shadow-sm",
|
|
62
|
-
ghost: "border-transparent bg-transparent",
|
|
63
|
-
inset: "border-stroke-3 bg-surface-2"
|
|
64
|
-
},
|
|
65
|
-
padding: {
|
|
66
|
-
none: "p-0",
|
|
67
|
-
sm: "p-3",
|
|
68
|
-
md: "p-4",
|
|
69
|
-
lg: "p-6"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
defaultVariants: {
|
|
73
|
-
padding: "md",
|
|
74
|
-
variant: "default"
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
function Card({ className, padding, variant, ...props }) {
|
|
78
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
79
|
-
"div",
|
|
80
|
-
{
|
|
81
|
-
className: cn(cardVariants({ padding, variant }), className),
|
|
82
|
-
...props
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
function CardHeader({
|
|
87
|
-
className,
|
|
88
|
-
...props
|
|
89
|
-
}) {
|
|
90
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("grid gap-1.5", className), ...props });
|
|
91
|
-
}
|
|
92
|
-
function CardTitle({
|
|
93
|
-
className,
|
|
94
|
-
...props
|
|
95
|
-
}) {
|
|
96
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
|
-
"h3",
|
|
98
|
-
{
|
|
99
|
-
className: cn(
|
|
100
|
-
"text-base font-semibold leading-6 text-foreground-1",
|
|
101
|
-
className
|
|
102
|
-
),
|
|
103
|
-
...props
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
function CardDescription({
|
|
108
|
-
className,
|
|
109
|
-
...props
|
|
110
|
-
}) {
|
|
111
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
112
|
-
"p",
|
|
113
|
-
{
|
|
114
|
-
className: cn("text-sm leading-6 text-foreground-2", className),
|
|
115
|
-
...props
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
function CardContent({
|
|
120
|
-
className,
|
|
121
|
-
...props
|
|
122
|
-
}) {
|
|
123
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("mt-4", className), ...props });
|
|
124
|
-
}
|
|
125
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
126
|
-
0 && (module.exports = {
|
|
127
|
-
Card,
|
|
128
|
-
CardContent,
|
|
129
|
-
CardDescription,
|
|
130
|
-
CardHeader,
|
|
131
|
-
CardTitle,
|
|
132
|
-
cardVariants
|
|
133
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { HTMLAttributes } from 'react';
|
|
5
|
-
|
|
6
|
-
declare const cardVariants: (props?: ({
|
|
7
|
-
variant?: "ghost" | "inset" | "default" | "elevated" | null | undefined;
|
|
8
|
-
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
type CardProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>;
|
|
11
|
-
declare function Card({ className, padding, variant, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
declare function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
13
|
-
declare function CardTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
14
|
-
declare function CardDescription({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
15
|
-
declare function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { Card, CardContent, CardDescription, CardHeader, type CardProps, CardTitle, cardVariants };
|
|
@@ -1,149 +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/dialog.tsx
|
|
22
|
-
var dialog_exports = {};
|
|
23
|
-
__export(dialog_exports, {
|
|
24
|
-
Dialog: () => Dialog,
|
|
25
|
-
DialogBackdrop: () => DialogBackdrop,
|
|
26
|
-
DialogClose: () => DialogClose,
|
|
27
|
-
DialogDescription: () => DialogDescription,
|
|
28
|
-
DialogPopup: () => DialogPopup,
|
|
29
|
-
DialogPortal: () => DialogPortal,
|
|
30
|
-
DialogTitle: () => DialogTitle,
|
|
31
|
-
DialogTrigger: () => DialogTrigger
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(dialog_exports);
|
|
34
|
-
var import_dialog = require("@base-ui/react/dialog");
|
|
35
|
-
|
|
36
|
-
// src/utils/cn.ts
|
|
37
|
-
var import_clsx = require("clsx");
|
|
38
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
39
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
40
|
-
extend: {
|
|
41
|
-
classGroups: {
|
|
42
|
-
z: [
|
|
43
|
-
"z-content",
|
|
44
|
-
"z-nav",
|
|
45
|
-
"z-overlay",
|
|
46
|
-
"z-modal",
|
|
47
|
-
"z-search",
|
|
48
|
-
"z-toast",
|
|
49
|
-
"z-progress"
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
function cn(...inputs) {
|
|
55
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// src/kernel/components/ui/dialog.tsx
|
|
59
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
|
-
function Dialog(props) {
|
|
61
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Root, { ...props });
|
|
62
|
-
}
|
|
63
|
-
function DialogTrigger({ className, ...props }) {
|
|
64
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
65
|
-
import_dialog.Dialog.Trigger,
|
|
66
|
-
{
|
|
67
|
-
className: cn(
|
|
68
|
-
"rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
69
|
-
className
|
|
70
|
-
),
|
|
71
|
-
...props
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
function DialogPortal(props) {
|
|
76
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Portal, { ...props });
|
|
77
|
-
}
|
|
78
|
-
function DialogBackdrop({ className, ...props }) {
|
|
79
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
-
import_dialog.Dialog.Backdrop,
|
|
81
|
-
{
|
|
82
|
-
className: cn(
|
|
83
|
-
"animate-overlay fixed inset-0 z-modal h-dvh w-dvw bg-overlay-background",
|
|
84
|
-
className
|
|
85
|
-
),
|
|
86
|
-
...props
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
function DialogPopup({ className, ...props }) {
|
|
91
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
|
-
import_dialog.Dialog.Popup,
|
|
93
|
-
{
|
|
94
|
-
className: cn(
|
|
95
|
-
"animate-dialog-popup fixed left-1/2 top-1/2 z-modal w-[min(92vw,32rem)] -translate-x-1/2 -translate-y-1/2 rounded-dialog border border-stroke-2 bg-surface-1 p-6 text-foreground-1 shadow-lg outline-none",
|
|
96
|
-
className
|
|
97
|
-
),
|
|
98
|
-
...props
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
function DialogTitle({ className, ...props }) {
|
|
103
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
104
|
-
import_dialog.Dialog.Title,
|
|
105
|
-
{
|
|
106
|
-
className: cn(
|
|
107
|
-
"text-lg font-semibold tracking-tight text-foreground-1",
|
|
108
|
-
className
|
|
109
|
-
),
|
|
110
|
-
...props
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
function DialogDescription({
|
|
115
|
-
className,
|
|
116
|
-
...props
|
|
117
|
-
}) {
|
|
118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
|
-
import_dialog.Dialog.Description,
|
|
120
|
-
{
|
|
121
|
-
className: cn("mt-2 text-sm leading-6 text-foreground-2", className),
|
|
122
|
-
...props
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
function DialogClose({ className, ...props }) {
|
|
127
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
128
|
-
import_dialog.Dialog.Close,
|
|
129
|
-
{
|
|
130
|
-
className: cn(
|
|
131
|
-
"inline-flex size-8 items-center justify-center rounded-button text-foreground-3 transition-colors hover:bg-surface-hover hover:text-foreground-1",
|
|
132
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
133
|
-
className
|
|
134
|
-
),
|
|
135
|
-
...props
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
140
|
-
0 && (module.exports = {
|
|
141
|
-
Dialog,
|
|
142
|
-
DialogBackdrop,
|
|
143
|
-
DialogClose,
|
|
144
|
-
DialogDescription,
|
|
145
|
-
DialogPopup,
|
|
146
|
-
DialogPortal,
|
|
147
|
-
DialogTitle,
|
|
148
|
-
DialogTrigger
|
|
149
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
3
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
|
|
5
|
-
type DialogProps = ComponentPropsWithoutRef<typeof Dialog$1.Root>;
|
|
6
|
-
type DialogTriggerProps = ComponentPropsWithoutRef<typeof Dialog$1.Trigger>;
|
|
7
|
-
type DialogPortalProps = ComponentPropsWithoutRef<typeof Dialog$1.Portal>;
|
|
8
|
-
type DialogBackdropProps = ComponentPropsWithoutRef<typeof Dialog$1.Backdrop>;
|
|
9
|
-
type DialogPopupProps = ComponentPropsWithoutRef<typeof Dialog$1.Popup>;
|
|
10
|
-
type DialogTitleProps = ComponentPropsWithoutRef<typeof Dialog$1.Title>;
|
|
11
|
-
type DialogDescriptionProps = ComponentPropsWithoutRef<typeof Dialog$1.Description>;
|
|
12
|
-
type DialogCloseProps = ComponentPropsWithoutRef<typeof Dialog$1.Close>;
|
|
13
|
-
declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
declare function DialogTrigger({ className, ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
|
|
15
|
-
declare function DialogPortal(props: DialogPortalProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
declare function DialogBackdrop({ className, ...props }: DialogBackdropProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
declare function DialogPopup({ className, ...props }: DialogPopupProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
|
|
19
|
-
declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
declare function DialogClose({ className, ...props }: DialogCloseProps): react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
export { Dialog, DialogBackdrop, type DialogBackdropProps, DialogClose, type DialogCloseProps, DialogDescription, type DialogDescriptionProps, DialogPopup, type DialogPopupProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps };
|