@naeil/ui 0.2.0 → 0.3.0
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/CHANGELOG.md +18 -0
- package/DESIGN.md +186 -0
- package/LICENSE +21 -0
- package/README.md +77 -53
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/{chunk-SYI3IKIC.js → chunk-QKVN6Q6C.js} +102 -19
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +9 -9
- package/dist/components/ui/index.d.ts +26 -4
- package/dist/components/ui/index.js +288 -33
- package/dist/source/components/footer.d.ts +15 -0
- package/dist/source/components/footer.js +172 -0
- package/dist/source/components/index.d.ts +11 -0
- package/dist/source/components/index.js +26 -0
- package/dist/source/components/locale-switcher.d.ts +17 -0
- package/dist/source/components/locale-switcher.js +66 -0
- package/dist/source/components/logo.d.ts +9 -0
- package/dist/source/components/logo.js +52 -0
- package/dist/source/components/nav.d.ts +39 -0
- package/dist/source/components/nav.js +412 -0
- package/dist/source/components/theme-provider.d.ts +6 -0
- package/dist/source/components/theme-provider.js +45 -0
- package/dist/source/components/theme-toggle-icon.d.ts +5 -0
- package/dist/source/components/theme-toggle-icon.js +62 -0
- package/dist/source/components/theme-toggle.d.ts +5 -0
- package/dist/source/components/theme-toggle.js +34 -0
- package/dist/source/components/typography.d.ts +12 -0
- package/dist/source/components/typography.js +49 -0
- package/dist/source/components/ui/avatar.d.ts +14 -0
- package/dist/source/components/ui/avatar.js +137 -0
- package/dist/source/components/ui/badge.d.ts +13 -0
- package/dist/source/components/ui/badge.js +76 -0
- package/dist/source/components/ui/button.d.ts +14 -0
- package/dist/source/components/ui/button.js +88 -0
- package/dist/source/components/ui/card.d.ts +13 -0
- package/dist/source/components/ui/card.js +135 -0
- package/dist/source/components/ui/checkbox.d.ts +7 -0
- package/dist/source/components/ui/checkbox.js +58 -0
- package/dist/source/components/ui/dialog.d.ts +20 -0
- package/dist/source/components/ui/dialog.js +182 -0
- package/dist/source/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/source/components/ui/dropdown-menu.js +282 -0
- package/dist/source/components/ui/index.d.ts +19 -0
- package/dist/source/components/ui/index.js +131 -0
- package/dist/source/components/ui/input.d.ts +6 -0
- package/dist/source/components/ui/input.js +49 -0
- package/dist/source/components/ui/select.d.ts +16 -0
- package/dist/source/components/ui/select.js +197 -0
- package/dist/source/components/ui/sonner.d.ts +6 -0
- package/dist/source/components/ui/sonner.js +80 -0
- package/dist/source/components/ui/switch.d.ts +7 -0
- package/dist/source/components/ui/switch.js +54 -0
- package/dist/source/components/ui/tabs.d.ts +10 -0
- package/dist/source/components/ui/tabs.js +57 -0
- package/dist/source/components/ui/textarea.d.ts +6 -0
- package/dist/source/components/ui/textarea.js +46 -0
- package/dist/source/i18n/config.d.ts +6 -0
- package/dist/source/i18n/config.js +12 -0
- package/dist/source/i18n/routing.d.ts +371 -0
- package/dist/source/i18n/routing.js +17 -0
- package/dist/source/lib/design/modal-inert.d.ts +6 -0
- package/dist/source/lib/design/modal-inert.js +73 -0
- package/dist/source/lib/utils.d.ts +5 -0
- package/dist/source/lib/utils.js +8 -0
- package/dist/tokens.ts +217 -0
- package/docs/components/README.md +21 -0
- package/docs/components/avatar.md +47 -0
- package/docs/components/badge.md +29 -0
- package/docs/components/button.md +39 -0
- package/docs/components/card.md +32 -0
- package/docs/components/checkbox.md +35 -0
- package/docs/components/common.md +31 -0
- package/docs/components/composition.md +68 -0
- package/docs/components/dialog.md +41 -0
- package/docs/components/dropdown-menu.md +38 -0
- package/docs/components/input.md +32 -0
- package/docs/components/select.md +39 -0
- package/docs/components/sonner.md +37 -0
- package/docs/components/switch.md +33 -0
- package/docs/components/tabs.md +40 -0
- package/docs/components/textarea.md +35 -0
- package/docs/design/component-demand.md +30 -0
- package/docs/design/public-ui-final-verification.md +96 -0
- package/docs/design/public-ui-release-validation.md +86 -0
- package/docs/design/public-ui-stage3-verification.md +98 -0
- package/docs/design/public-ui-stage4-verification.md +129 -0
- package/docs/design/public-ui-support.md +40 -0
- package/docs/design/v2-migration.md +199 -0
- package/docs/package-release.md +89 -0
- package/licenses/Noto-Sans-JP-OFL.txt +93 -0
- package/licenses/Nunito-Sans-OFL.txt +93 -0
- package/licenses/Pretendard-OFL.txt +94 -0
- package/licenses/React-MIT.txt +21 -0
- package/licenses/Storybook-MIT.txt +21 -0
- package/licenses/popper-MIT.txt +25 -0
- package/licenses/react-remove-scroll-bar-MIT.txt +21 -0
- package/licenses/store2-MIT.txt +22 -0
- package/licenses/toggle-selection-MIT.txt +21 -0
- package/package.json +182 -34
- package/src/styles/components.css +276 -0
- package/src/styles/globals.css +18 -0
- package/src/styles/theme.css +185 -98
- package/messages/en.json +0 -221
- package/messages/ja.json +0 -221
- package/messages/ko.json +0 -221
- package/src/app/globals.css +0 -32
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
import { Checkbox as Primitive } from "radix-ui";
|
|
35
|
+
import { CheckIcon, MinusIcon } from "lucide-react";
|
|
36
|
+
import { cn } from "../../lib/utils.js";
|
|
37
|
+
function Checkbox(_a) {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
className
|
|
40
|
+
} = _b, props = __objRest(_b, [
|
|
41
|
+
"className"
|
|
42
|
+
]);
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
Primitive.Root,
|
|
45
|
+
__spreadProps(__spreadValues({
|
|
46
|
+
"data-slot": "checkbox",
|
|
47
|
+
className: cn("ui-choice ui-focus group/checkbox", className)
|
|
48
|
+
}, props), {
|
|
49
|
+
children: /* @__PURE__ */ jsxs(Primitive.Indicator, { className: "flex items-center justify-center", children: [
|
|
50
|
+
/* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5 group-data-[state=indeterminate]/checkbox:hidden" }),
|
|
51
|
+
/* @__PURE__ */ jsx(MinusIcon, { className: "hidden size-3.5 group-data-[state=indeterminate]/checkbox:block" })
|
|
52
|
+
] })
|
|
53
|
+
})
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
Checkbox
|
|
58
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { Dialog as Dialog$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
declare function Dialog({ ...props }: react.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function DialogTrigger({ ...props }: react.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DialogPortal({ ...props }: react.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function DialogClose({ ...props }: react.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function DialogOverlay({ className, ...props }: react.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: react.ComponentProps<typeof Dialog$1.Content> & {
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function DialogHeader({ className, ...props }: react.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function DialogFooter({ className, showCloseButton, children, ...props }: react.ComponentProps<"div"> & {
|
|
15
|
+
showCloseButton?: boolean;
|
|
16
|
+
}): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function DialogTitle({ className, ...props }: react.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function DialogDescription({ className, ...props }: react.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
import { XIcon } from "lucide-react";
|
|
35
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
36
|
+
import { cn } from "../../lib/utils.js";
|
|
37
|
+
import { Button } from "./button.js";
|
|
38
|
+
function Dialog(_a) {
|
|
39
|
+
var props = __objRest(_a, []);
|
|
40
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
41
|
+
}
|
|
42
|
+
function DialogTrigger(_b) {
|
|
43
|
+
var props = __objRest(_b, []);
|
|
44
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
45
|
+
}
|
|
46
|
+
function DialogPortal(_c) {
|
|
47
|
+
var props = __objRest(_c, []);
|
|
48
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
49
|
+
}
|
|
50
|
+
function DialogClose(_d) {
|
|
51
|
+
var props = __objRest(_d, []);
|
|
52
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
53
|
+
}
|
|
54
|
+
function DialogOverlay(_e) {
|
|
55
|
+
var _f = _e, {
|
|
56
|
+
className
|
|
57
|
+
} = _f, props = __objRest(_f, [
|
|
58
|
+
"className"
|
|
59
|
+
]);
|
|
60
|
+
return /* @__PURE__ */ jsx(
|
|
61
|
+
DialogPrimitive.Overlay,
|
|
62
|
+
__spreadValues({
|
|
63
|
+
"data-slot": "dialog-overlay",
|
|
64
|
+
className: cn("ui-popup fixed inset-0 z-50 bg-black/60 ", className)
|
|
65
|
+
}, props)
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function DialogContent(_g) {
|
|
69
|
+
var _h = _g, {
|
|
70
|
+
className,
|
|
71
|
+
children,
|
|
72
|
+
showCloseButton = true
|
|
73
|
+
} = _h, props = __objRest(_h, [
|
|
74
|
+
"className",
|
|
75
|
+
"children",
|
|
76
|
+
"showCloseButton"
|
|
77
|
+
]);
|
|
78
|
+
return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
79
|
+
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
80
|
+
/* @__PURE__ */ jsxs(
|
|
81
|
+
DialogPrimitive.Content,
|
|
82
|
+
__spreadProps(__spreadValues({
|
|
83
|
+
"data-slot": "dialog-content",
|
|
84
|
+
className: cn(
|
|
85
|
+
"bg-popover ui-popup fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border border-border-strong p-6 sm:max-w-lg",
|
|
86
|
+
className
|
|
87
|
+
)
|
|
88
|
+
}, props), {
|
|
89
|
+
children: [
|
|
90
|
+
children,
|
|
91
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
92
|
+
DialogPrimitive.Close,
|
|
93
|
+
{
|
|
94
|
+
"data-slot": "dialog-close",
|
|
95
|
+
className: "ui-focus absolute top-2 right-2 flex size-10 items-center justify-center rounded-sm text-muted-foreground hover:text-foreground transition-colors ui-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ jsx(XIcon, {}),
|
|
98
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
]
|
|
103
|
+
})
|
|
104
|
+
)
|
|
105
|
+
] });
|
|
106
|
+
}
|
|
107
|
+
function DialogHeader(_i) {
|
|
108
|
+
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
109
|
+
return /* @__PURE__ */ jsx(
|
|
110
|
+
"div",
|
|
111
|
+
__spreadValues({
|
|
112
|
+
"data-slot": "dialog-header",
|
|
113
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className)
|
|
114
|
+
}, props)
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
function DialogFooter(_k) {
|
|
118
|
+
var _l = _k, {
|
|
119
|
+
className,
|
|
120
|
+
showCloseButton = false,
|
|
121
|
+
children
|
|
122
|
+
} = _l, props = __objRest(_l, [
|
|
123
|
+
"className",
|
|
124
|
+
"showCloseButton",
|
|
125
|
+
"children"
|
|
126
|
+
]);
|
|
127
|
+
return /* @__PURE__ */ jsxs(
|
|
128
|
+
"div",
|
|
129
|
+
__spreadProps(__spreadValues({
|
|
130
|
+
"data-slot": "dialog-footer",
|
|
131
|
+
className: cn(
|
|
132
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
133
|
+
className
|
|
134
|
+
)
|
|
135
|
+
}, props), {
|
|
136
|
+
children: [
|
|
137
|
+
children,
|
|
138
|
+
showCloseButton && /* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Close" }) })
|
|
139
|
+
]
|
|
140
|
+
})
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
function DialogTitle(_m) {
|
|
144
|
+
var _n = _m, {
|
|
145
|
+
className
|
|
146
|
+
} = _n, props = __objRest(_n, [
|
|
147
|
+
"className"
|
|
148
|
+
]);
|
|
149
|
+
return /* @__PURE__ */ jsx(
|
|
150
|
+
DialogPrimitive.Title,
|
|
151
|
+
__spreadValues({
|
|
152
|
+
"data-slot": "dialog-title",
|
|
153
|
+
className: cn("text-xl leading-normal font-semibold", className)
|
|
154
|
+
}, props)
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
function DialogDescription(_o) {
|
|
158
|
+
var _p = _o, {
|
|
159
|
+
className
|
|
160
|
+
} = _p, props = __objRest(_p, [
|
|
161
|
+
"className"
|
|
162
|
+
]);
|
|
163
|
+
return /* @__PURE__ */ jsx(
|
|
164
|
+
DialogPrimitive.Description,
|
|
165
|
+
__spreadValues({
|
|
166
|
+
"data-slot": "dialog-description",
|
|
167
|
+
className: cn("text-muted-foreground text-sm", className)
|
|
168
|
+
}, props)
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
export {
|
|
172
|
+
Dialog,
|
|
173
|
+
DialogClose,
|
|
174
|
+
DialogContent,
|
|
175
|
+
DialogDescription,
|
|
176
|
+
DialogFooter,
|
|
177
|
+
DialogHeader,
|
|
178
|
+
DialogOverlay,
|
|
179
|
+
DialogPortal,
|
|
180
|
+
DialogTitle,
|
|
181
|
+
DialogTrigger
|
|
182
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { DropdownMenu as DropdownMenu$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
declare function DropdownMenu({ ...props }: react.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function DropdownMenuPortal({ ...props }: react.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DropdownMenuTrigger({ ...props }: react.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function DropdownMenuContent({ ref, className, sideOffset, ...props }: react.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function DropdownMenuGroup({ ...props }: react.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: react.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
variant?: "default" | "destructive";
|
|
13
|
+
}): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: react.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function DropdownMenuRadioGroup({ ...props }: react.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: react.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: react.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
18
|
+
inset?: boolean;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function DropdownMenuSeparator({ className, ...props }: react.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function DropdownMenuShortcut({ className, ...props }: react.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function DropdownMenuSub({ ...props }: react.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: react.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
24
|
+
inset?: boolean;
|
|
25
|
+
}): react_jsx_runtime.JSX.Element;
|
|
26
|
+
declare function DropdownMenuSubContent({ className, ...props }: react.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
35
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
36
|
+
import { cn } from "../../lib/utils.js";
|
|
37
|
+
import { useOverlayRef, useRadixHiddenInert } from "../../lib/design/modal-inert.js";
|
|
38
|
+
function DropdownMenu(_a) {
|
|
39
|
+
var props = __objRest(_a, []);
|
|
40
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
41
|
+
}
|
|
42
|
+
function DropdownMenuPortal(_b) {
|
|
43
|
+
var props = __objRest(_b, []);
|
|
44
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
45
|
+
}
|
|
46
|
+
function DropdownMenuTrigger(_c) {
|
|
47
|
+
var props = __objRest(_c, []);
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
49
|
+
DropdownMenuPrimitive.Trigger,
|
|
50
|
+
__spreadValues({
|
|
51
|
+
"data-slot": "dropdown-menu-trigger"
|
|
52
|
+
}, props)
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
function DropdownMenuContent(_d) {
|
|
56
|
+
var _e = _d, {
|
|
57
|
+
ref,
|
|
58
|
+
className,
|
|
59
|
+
sideOffset = 4
|
|
60
|
+
} = _e, props = __objRest(_e, [
|
|
61
|
+
"ref",
|
|
62
|
+
"className",
|
|
63
|
+
"sideOffset"
|
|
64
|
+
]);
|
|
65
|
+
const [content, contentRef] = useOverlayRef(ref);
|
|
66
|
+
useRadixHiddenInert(content);
|
|
67
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
68
|
+
DropdownMenuPrimitive.Content,
|
|
69
|
+
__spreadValues({
|
|
70
|
+
ref: contentRef,
|
|
71
|
+
"data-slot": "dropdown-menu-content",
|
|
72
|
+
sideOffset,
|
|
73
|
+
className: cn(
|
|
74
|
+
"ui-menu ui-popup z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border-strong p-1 shadow-md",
|
|
75
|
+
className
|
|
76
|
+
)
|
|
77
|
+
}, props)
|
|
78
|
+
) });
|
|
79
|
+
}
|
|
80
|
+
function DropdownMenuGroup(_f) {
|
|
81
|
+
var props = __objRest(_f, []);
|
|
82
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
83
|
+
}
|
|
84
|
+
function DropdownMenuItem(_g) {
|
|
85
|
+
var _h = _g, {
|
|
86
|
+
className,
|
|
87
|
+
inset,
|
|
88
|
+
variant = "default"
|
|
89
|
+
} = _h, props = __objRest(_h, [
|
|
90
|
+
"className",
|
|
91
|
+
"inset",
|
|
92
|
+
"variant"
|
|
93
|
+
]);
|
|
94
|
+
return /* @__PURE__ */ jsx(
|
|
95
|
+
DropdownMenuPrimitive.Item,
|
|
96
|
+
__spreadValues({
|
|
97
|
+
"data-slot": "dropdown-menu-item",
|
|
98
|
+
"data-inset": inset,
|
|
99
|
+
"data-variant": variant,
|
|
100
|
+
className: cn(
|
|
101
|
+
"focus:bg-surface-subtle data-[variant=destructive]:text-error data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-error data-[variant=destructive]:*:[svg]:!text-error [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-base outline-hidden select-none transition-colors duration-(--ui-motion-fast) data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
102
|
+
className
|
|
103
|
+
)
|
|
104
|
+
}, props)
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function DropdownMenuCheckboxItem(_i) {
|
|
108
|
+
var _j = _i, {
|
|
109
|
+
className,
|
|
110
|
+
children,
|
|
111
|
+
checked
|
|
112
|
+
} = _j, props = __objRest(_j, [
|
|
113
|
+
"className",
|
|
114
|
+
"children",
|
|
115
|
+
"checked"
|
|
116
|
+
]);
|
|
117
|
+
return /* @__PURE__ */ jsxs(
|
|
118
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
119
|
+
__spreadProps(__spreadValues({
|
|
120
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
121
|
+
className: cn(
|
|
122
|
+
"focus:bg-surface-subtle relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-base outline-hidden select-none transition-colors duration-(--ui-motion-fast) data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
123
|
+
className
|
|
124
|
+
),
|
|
125
|
+
checked
|
|
126
|
+
}, props), {
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
129
|
+
children
|
|
130
|
+
]
|
|
131
|
+
})
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
function DropdownMenuRadioGroup(_k) {
|
|
135
|
+
var props = __objRest(_k, []);
|
|
136
|
+
return /* @__PURE__ */ jsx(
|
|
137
|
+
DropdownMenuPrimitive.RadioGroup,
|
|
138
|
+
__spreadValues({
|
|
139
|
+
"data-slot": "dropdown-menu-radio-group"
|
|
140
|
+
}, props)
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
function DropdownMenuRadioItem(_l) {
|
|
144
|
+
var _m = _l, {
|
|
145
|
+
className,
|
|
146
|
+
children
|
|
147
|
+
} = _m, props = __objRest(_m, [
|
|
148
|
+
"className",
|
|
149
|
+
"children"
|
|
150
|
+
]);
|
|
151
|
+
return /* @__PURE__ */ jsxs(
|
|
152
|
+
DropdownMenuPrimitive.RadioItem,
|
|
153
|
+
__spreadProps(__spreadValues({
|
|
154
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
155
|
+
className: cn(
|
|
156
|
+
"focus:bg-surface-subtle relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-base outline-hidden select-none transition-colors duration-(--ui-motion-fast) data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
157
|
+
className
|
|
158
|
+
)
|
|
159
|
+
}, props), {
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
162
|
+
children
|
|
163
|
+
]
|
|
164
|
+
})
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
function DropdownMenuLabel(_n) {
|
|
168
|
+
var _o = _n, {
|
|
169
|
+
className,
|
|
170
|
+
inset
|
|
171
|
+
} = _o, props = __objRest(_o, [
|
|
172
|
+
"className",
|
|
173
|
+
"inset"
|
|
174
|
+
]);
|
|
175
|
+
return /* @__PURE__ */ jsx(
|
|
176
|
+
DropdownMenuPrimitive.Label,
|
|
177
|
+
__spreadValues({
|
|
178
|
+
"data-slot": "dropdown-menu-label",
|
|
179
|
+
"data-inset": inset,
|
|
180
|
+
className: cn(
|
|
181
|
+
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
182
|
+
className
|
|
183
|
+
)
|
|
184
|
+
}, props)
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
function DropdownMenuSeparator(_p) {
|
|
188
|
+
var _q = _p, {
|
|
189
|
+
className
|
|
190
|
+
} = _q, props = __objRest(_q, [
|
|
191
|
+
"className"
|
|
192
|
+
]);
|
|
193
|
+
return /* @__PURE__ */ jsx(
|
|
194
|
+
DropdownMenuPrimitive.Separator,
|
|
195
|
+
__spreadValues({
|
|
196
|
+
"data-slot": "dropdown-menu-separator",
|
|
197
|
+
className: cn("bg-border-subtle -mx-1 my-1 h-px", className)
|
|
198
|
+
}, props)
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
function DropdownMenuShortcut(_r) {
|
|
202
|
+
var _s = _r, {
|
|
203
|
+
className
|
|
204
|
+
} = _s, props = __objRest(_s, [
|
|
205
|
+
"className"
|
|
206
|
+
]);
|
|
207
|
+
return /* @__PURE__ */ jsx(
|
|
208
|
+
"span",
|
|
209
|
+
__spreadValues({
|
|
210
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
211
|
+
className: cn(
|
|
212
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
213
|
+
className
|
|
214
|
+
)
|
|
215
|
+
}, props)
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
function DropdownMenuSub(_t) {
|
|
219
|
+
var props = __objRest(_t, []);
|
|
220
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
221
|
+
}
|
|
222
|
+
function DropdownMenuSubTrigger(_u) {
|
|
223
|
+
var _v = _u, {
|
|
224
|
+
className,
|
|
225
|
+
inset,
|
|
226
|
+
children
|
|
227
|
+
} = _v, props = __objRest(_v, [
|
|
228
|
+
"className",
|
|
229
|
+
"inset",
|
|
230
|
+
"children"
|
|
231
|
+
]);
|
|
232
|
+
return /* @__PURE__ */ jsxs(
|
|
233
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
234
|
+
__spreadProps(__spreadValues({
|
|
235
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
236
|
+
"data-inset": inset,
|
|
237
|
+
className: cn(
|
|
238
|
+
"focus:bg-surface-subtle data-[state=open]:bg-surface-subtle [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-base outline-hidden select-none transition-colors duration-(--ui-motion-fast) data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
239
|
+
className
|
|
240
|
+
)
|
|
241
|
+
}, props), {
|
|
242
|
+
children: [
|
|
243
|
+
children,
|
|
244
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
245
|
+
]
|
|
246
|
+
})
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
function DropdownMenuSubContent(_w) {
|
|
250
|
+
var _x = _w, {
|
|
251
|
+
className
|
|
252
|
+
} = _x, props = __objRest(_x, [
|
|
253
|
+
"className"
|
|
254
|
+
]);
|
|
255
|
+
return /* @__PURE__ */ jsx(
|
|
256
|
+
DropdownMenuPrimitive.SubContent,
|
|
257
|
+
__spreadValues({
|
|
258
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
259
|
+
className: cn(
|
|
260
|
+
"ui-menu ui-popup z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border border-border-strong p-1 shadow-lg",
|
|
261
|
+
className
|
|
262
|
+
)
|
|
263
|
+
}, props)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
export {
|
|
267
|
+
DropdownMenu,
|
|
268
|
+
DropdownMenuCheckboxItem,
|
|
269
|
+
DropdownMenuContent,
|
|
270
|
+
DropdownMenuGroup,
|
|
271
|
+
DropdownMenuItem,
|
|
272
|
+
DropdownMenuLabel,
|
|
273
|
+
DropdownMenuPortal,
|
|
274
|
+
DropdownMenuRadioGroup,
|
|
275
|
+
DropdownMenuRadioItem,
|
|
276
|
+
DropdownMenuSeparator,
|
|
277
|
+
DropdownMenuShortcut,
|
|
278
|
+
DropdownMenuSub,
|
|
279
|
+
DropdownMenuSubContent,
|
|
280
|
+
DropdownMenuSubTrigger,
|
|
281
|
+
DropdownMenuTrigger
|
|
282
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from './avatar.js';
|
|
2
|
+
export { Badge, badgeVariants } from './badge.js';
|
|
3
|
+
export { Button, buttonVariants } from './button.js';
|
|
4
|
+
export { Card, CardAction, CardContent, CardDescription, CardElevated, CardFooter, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './dialog.js';
|
|
6
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './dropdown-menu.js';
|
|
7
|
+
export { Input } from './input.js';
|
|
8
|
+
export { Toaster } from './sonner.js';
|
|
9
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './select.js';
|
|
10
|
+
export { Switch } from './switch.js';
|
|
11
|
+
export { Checkbox } from './checkbox.js';
|
|
12
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from './tabs.js';
|
|
13
|
+
export { Textarea } from './textarea.js';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
15
|
+
import 'react';
|
|
16
|
+
import 'radix-ui';
|
|
17
|
+
import 'class-variance-authority/types';
|
|
18
|
+
import 'class-variance-authority';
|
|
19
|
+
import 'sonner';
|