@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,131 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar,
|
|
3
|
+
AvatarImage,
|
|
4
|
+
AvatarFallback,
|
|
5
|
+
AvatarBadge,
|
|
6
|
+
AvatarGroup,
|
|
7
|
+
AvatarGroupCount
|
|
8
|
+
} from "./avatar.js";
|
|
9
|
+
import { Badge, badgeVariants } from "./badge.js";
|
|
10
|
+
import { Button, buttonVariants } from "./button.js";
|
|
11
|
+
import {
|
|
12
|
+
Card,
|
|
13
|
+
CardElevated,
|
|
14
|
+
CardHeader,
|
|
15
|
+
CardFooter,
|
|
16
|
+
CardTitle,
|
|
17
|
+
CardAction,
|
|
18
|
+
CardDescription,
|
|
19
|
+
CardContent
|
|
20
|
+
} from "./card.js";
|
|
21
|
+
import {
|
|
22
|
+
Dialog,
|
|
23
|
+
DialogClose,
|
|
24
|
+
DialogContent,
|
|
25
|
+
DialogDescription,
|
|
26
|
+
DialogFooter,
|
|
27
|
+
DialogHeader,
|
|
28
|
+
DialogOverlay,
|
|
29
|
+
DialogPortal,
|
|
30
|
+
DialogTitle,
|
|
31
|
+
DialogTrigger
|
|
32
|
+
} from "./dialog.js";
|
|
33
|
+
import {
|
|
34
|
+
DropdownMenu,
|
|
35
|
+
DropdownMenuPortal,
|
|
36
|
+
DropdownMenuTrigger,
|
|
37
|
+
DropdownMenuContent,
|
|
38
|
+
DropdownMenuGroup,
|
|
39
|
+
DropdownMenuLabel,
|
|
40
|
+
DropdownMenuItem,
|
|
41
|
+
DropdownMenuCheckboxItem,
|
|
42
|
+
DropdownMenuRadioGroup,
|
|
43
|
+
DropdownMenuRadioItem,
|
|
44
|
+
DropdownMenuSeparator,
|
|
45
|
+
DropdownMenuShortcut,
|
|
46
|
+
DropdownMenuSub,
|
|
47
|
+
DropdownMenuSubTrigger,
|
|
48
|
+
DropdownMenuSubContent
|
|
49
|
+
} from "./dropdown-menu.js";
|
|
50
|
+
import { Input } from "./input.js";
|
|
51
|
+
import { Toaster } from "./sonner.js";
|
|
52
|
+
import {
|
|
53
|
+
Select,
|
|
54
|
+
SelectValue,
|
|
55
|
+
SelectGroup,
|
|
56
|
+
SelectTrigger,
|
|
57
|
+
SelectContent,
|
|
58
|
+
SelectItem,
|
|
59
|
+
SelectLabel,
|
|
60
|
+
SelectSeparator,
|
|
61
|
+
SelectScrollUpButton,
|
|
62
|
+
SelectScrollDownButton
|
|
63
|
+
} from "./select.js";
|
|
64
|
+
import { Switch } from "./switch.js";
|
|
65
|
+
import { Checkbox } from "./checkbox.js";
|
|
66
|
+
import { Tabs, TabsList, TabsTrigger, TabsContent } from "./tabs.js";
|
|
67
|
+
import { Textarea } from "./textarea.js";
|
|
68
|
+
export {
|
|
69
|
+
Avatar,
|
|
70
|
+
AvatarBadge,
|
|
71
|
+
AvatarFallback,
|
|
72
|
+
AvatarGroup,
|
|
73
|
+
AvatarGroupCount,
|
|
74
|
+
AvatarImage,
|
|
75
|
+
Badge,
|
|
76
|
+
Button,
|
|
77
|
+
Card,
|
|
78
|
+
CardAction,
|
|
79
|
+
CardContent,
|
|
80
|
+
CardDescription,
|
|
81
|
+
CardElevated,
|
|
82
|
+
CardFooter,
|
|
83
|
+
CardHeader,
|
|
84
|
+
CardTitle,
|
|
85
|
+
Checkbox,
|
|
86
|
+
Dialog,
|
|
87
|
+
DialogClose,
|
|
88
|
+
DialogContent,
|
|
89
|
+
DialogDescription,
|
|
90
|
+
DialogFooter,
|
|
91
|
+
DialogHeader,
|
|
92
|
+
DialogOverlay,
|
|
93
|
+
DialogPortal,
|
|
94
|
+
DialogTitle,
|
|
95
|
+
DialogTrigger,
|
|
96
|
+
DropdownMenu,
|
|
97
|
+
DropdownMenuCheckboxItem,
|
|
98
|
+
DropdownMenuContent,
|
|
99
|
+
DropdownMenuGroup,
|
|
100
|
+
DropdownMenuItem,
|
|
101
|
+
DropdownMenuLabel,
|
|
102
|
+
DropdownMenuPortal,
|
|
103
|
+
DropdownMenuRadioGroup,
|
|
104
|
+
DropdownMenuRadioItem,
|
|
105
|
+
DropdownMenuSeparator,
|
|
106
|
+
DropdownMenuShortcut,
|
|
107
|
+
DropdownMenuSub,
|
|
108
|
+
DropdownMenuSubContent,
|
|
109
|
+
DropdownMenuSubTrigger,
|
|
110
|
+
DropdownMenuTrigger,
|
|
111
|
+
Input,
|
|
112
|
+
Select,
|
|
113
|
+
SelectContent,
|
|
114
|
+
SelectGroup,
|
|
115
|
+
SelectItem,
|
|
116
|
+
SelectLabel,
|
|
117
|
+
SelectScrollDownButton,
|
|
118
|
+
SelectScrollUpButton,
|
|
119
|
+
SelectSeparator,
|
|
120
|
+
SelectTrigger,
|
|
121
|
+
SelectValue,
|
|
122
|
+
Switch,
|
|
123
|
+
Tabs,
|
|
124
|
+
TabsContent,
|
|
125
|
+
TabsList,
|
|
126
|
+
TabsTrigger,
|
|
127
|
+
Textarea,
|
|
128
|
+
Toaster,
|
|
129
|
+
badgeVariants,
|
|
130
|
+
buttonVariants
|
|
131
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
|
+
import { cn } from "../../lib/utils.js";
|
|
31
|
+
function Input(_a) {
|
|
32
|
+
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
"input",
|
|
35
|
+
__spreadValues({
|
|
36
|
+
type,
|
|
37
|
+
"data-slot": "input",
|
|
38
|
+
className: cn(
|
|
39
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground ui-control ui-focus border-input w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base transition-colors duration-(--ui-motion-fast) file:inline-flex file:h-7 file:border-0 file:bg-background file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 ",
|
|
40
|
+
"ui-focus",
|
|
41
|
+
"aria-invalid:border-error",
|
|
42
|
+
className
|
|
43
|
+
)
|
|
44
|
+
}, props)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
Input
|
|
49
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { Select as Select$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
declare const Select: react.FC<Select$1.SelectProps>;
|
|
6
|
+
declare const SelectValue: react.ForwardRefExoticComponent<Select$1.SelectValueProps & react.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
declare const SelectGroup: react.ForwardRefExoticComponent<Select$1.SelectGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare function SelectTrigger({ className, children, ...props }: react.ComponentProps<typeof Select$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function SelectContent({ ref, className, children, position, sideOffset, ...props }: react.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function SelectItem({ className, children, ...props }: react.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function SelectLabel({ className, ...props }: react.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: react.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: react.ComponentProps<typeof Select$1.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: react.ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -0,0 +1,197 @@
|
|
|
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 { Select as Primitive } from "radix-ui";
|
|
35
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
36
|
+
import { cn } from "../../lib/utils.js";
|
|
37
|
+
import { useOverlayRef, useRadixHiddenInert } from "../../lib/design/modal-inert.js";
|
|
38
|
+
const Select = Primitive.Root;
|
|
39
|
+
const SelectValue = Primitive.Value;
|
|
40
|
+
const SelectGroup = Primitive.Group;
|
|
41
|
+
function SelectTrigger(_a) {
|
|
42
|
+
var _b = _a, {
|
|
43
|
+
className,
|
|
44
|
+
children
|
|
45
|
+
} = _b, props = __objRest(_b, [
|
|
46
|
+
"className",
|
|
47
|
+
"children"
|
|
48
|
+
]);
|
|
49
|
+
return /* @__PURE__ */ jsxs(
|
|
50
|
+
Primitive.Trigger,
|
|
51
|
+
__spreadProps(__spreadValues({
|
|
52
|
+
"data-slot": "select-trigger",
|
|
53
|
+
className: cn(
|
|
54
|
+
"ui-control ui-focus flex w-full items-center justify-between gap-2 border border-input bg-background px-3 text-left text-foreground disabled:cursor-not-allowed disabled:opacity-45 data-[placeholder]:text-muted-foreground [&>span]:min-w-0 [&>span]:truncate",
|
|
55
|
+
className
|
|
56
|
+
)
|
|
57
|
+
}, props), {
|
|
58
|
+
children: [
|
|
59
|
+
children,
|
|
60
|
+
/* @__PURE__ */ jsx(Primitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 shrink-0" }) })
|
|
61
|
+
]
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
function SelectContent(_c) {
|
|
66
|
+
var _d = _c, {
|
|
67
|
+
ref,
|
|
68
|
+
className,
|
|
69
|
+
children,
|
|
70
|
+
position = "popper",
|
|
71
|
+
sideOffset = 6
|
|
72
|
+
} = _d, props = __objRest(_d, [
|
|
73
|
+
"ref",
|
|
74
|
+
"className",
|
|
75
|
+
"children",
|
|
76
|
+
"position",
|
|
77
|
+
"sideOffset"
|
|
78
|
+
]);
|
|
79
|
+
const [content, contentRef] = useOverlayRef(ref);
|
|
80
|
+
useRadixHiddenInert(content);
|
|
81
|
+
return /* @__PURE__ */ jsx(Primitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
82
|
+
Primitive.Content,
|
|
83
|
+
__spreadProps(__spreadValues({
|
|
84
|
+
ref: contentRef,
|
|
85
|
+
"data-slot": "select-content",
|
|
86
|
+
position,
|
|
87
|
+
sideOffset,
|
|
88
|
+
className: cn(
|
|
89
|
+
"ui-menu ui-popup z-50 max-h-(--radix-select-content-available-height) min-w-(--radix-select-trigger-width) max-w-[calc(100vw-24px)] overflow-hidden",
|
|
90
|
+
className
|
|
91
|
+
)
|
|
92
|
+
}, props), {
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
95
|
+
/* @__PURE__ */ jsx(Primitive.Viewport, { className: "p-1", children }),
|
|
96
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
97
|
+
]
|
|
98
|
+
})
|
|
99
|
+
) });
|
|
100
|
+
}
|
|
101
|
+
function SelectItem(_e) {
|
|
102
|
+
var _f = _e, {
|
|
103
|
+
className,
|
|
104
|
+
children
|
|
105
|
+
} = _f, props = __objRest(_f, [
|
|
106
|
+
"className",
|
|
107
|
+
"children"
|
|
108
|
+
]);
|
|
109
|
+
return /* @__PURE__ */ jsxs(
|
|
110
|
+
Primitive.Item,
|
|
111
|
+
__spreadProps(__spreadValues({
|
|
112
|
+
"data-slot": "select-item",
|
|
113
|
+
className: cn(
|
|
114
|
+
"relative flex cursor-default items-center rounded-sm py-2 pr-9 pl-3 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-45",
|
|
115
|
+
className
|
|
116
|
+
)
|
|
117
|
+
}, props), {
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsx(Primitive.ItemText, { children }),
|
|
120
|
+
/* @__PURE__ */ jsx(Primitive.ItemIndicator, { className: "absolute right-3", children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
121
|
+
]
|
|
122
|
+
})
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
function SelectLabel(_g) {
|
|
126
|
+
var _h = _g, {
|
|
127
|
+
className
|
|
128
|
+
} = _h, props = __objRest(_h, [
|
|
129
|
+
"className"
|
|
130
|
+
]);
|
|
131
|
+
return /* @__PURE__ */ jsx(
|
|
132
|
+
Primitive.Label,
|
|
133
|
+
__spreadValues({
|
|
134
|
+
"data-slot": "select-label",
|
|
135
|
+
className: cn(
|
|
136
|
+
"px-3 py-2 text-sm font-medium text-muted-foreground",
|
|
137
|
+
className
|
|
138
|
+
)
|
|
139
|
+
}, props)
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
function SelectSeparator(_i) {
|
|
143
|
+
var _j = _i, {
|
|
144
|
+
className
|
|
145
|
+
} = _j, props = __objRest(_j, [
|
|
146
|
+
"className"
|
|
147
|
+
]);
|
|
148
|
+
return /* @__PURE__ */ jsx(
|
|
149
|
+
Primitive.Separator,
|
|
150
|
+
__spreadValues({
|
|
151
|
+
"data-slot": "select-separator",
|
|
152
|
+
className: cn("my-1 h-px bg-border", className)
|
|
153
|
+
}, props)
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
function SelectScrollUpButton(_k) {
|
|
157
|
+
var _l = _k, {
|
|
158
|
+
className
|
|
159
|
+
} = _l, props = __objRest(_l, [
|
|
160
|
+
"className"
|
|
161
|
+
]);
|
|
162
|
+
return /* @__PURE__ */ jsx(
|
|
163
|
+
Primitive.ScrollUpButton,
|
|
164
|
+
__spreadProps(__spreadValues({
|
|
165
|
+
className: cn("flex h-8 items-center justify-center", className)
|
|
166
|
+
}, props), {
|
|
167
|
+
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
168
|
+
})
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
function SelectScrollDownButton(_m) {
|
|
172
|
+
var _n = _m, {
|
|
173
|
+
className
|
|
174
|
+
} = _n, props = __objRest(_n, [
|
|
175
|
+
"className"
|
|
176
|
+
]);
|
|
177
|
+
return /* @__PURE__ */ jsx(
|
|
178
|
+
Primitive.ScrollDownButton,
|
|
179
|
+
__spreadProps(__spreadValues({
|
|
180
|
+
className: cn("flex h-8 items-center justify-center", className)
|
|
181
|
+
}, props), {
|
|
182
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
183
|
+
})
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
Select,
|
|
188
|
+
SelectContent,
|
|
189
|
+
SelectGroup,
|
|
190
|
+
SelectItem,
|
|
191
|
+
SelectLabel,
|
|
192
|
+
SelectScrollDownButton,
|
|
193
|
+
SelectScrollUpButton,
|
|
194
|
+
SelectSeparator,
|
|
195
|
+
SelectTrigger,
|
|
196
|
+
SelectValue
|
|
197
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __spreadValues = (a, b) => {
|
|
8
|
+
for (var prop in b || (b = {}))
|
|
9
|
+
if (__hasOwnProp.call(b, prop))
|
|
10
|
+
__defNormalProp(a, prop, b[prop]);
|
|
11
|
+
if (__getOwnPropSymbols)
|
|
12
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
+
if (__propIsEnum.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
}
|
|
16
|
+
return a;
|
|
17
|
+
};
|
|
18
|
+
var __objRest = (source, exclude) => {
|
|
19
|
+
var target = {};
|
|
20
|
+
for (var prop in source)
|
|
21
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
+
target[prop] = source[prop];
|
|
23
|
+
if (source != null && __getOwnPropSymbols)
|
|
24
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
}
|
|
28
|
+
return target;
|
|
29
|
+
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
31
|
+
import {
|
|
32
|
+
CircleCheckIcon,
|
|
33
|
+
InfoIcon,
|
|
34
|
+
Loader2Icon,
|
|
35
|
+
OctagonXIcon,
|
|
36
|
+
TriangleAlertIcon
|
|
37
|
+
} from "lucide-react";
|
|
38
|
+
import { useTheme } from "next-themes";
|
|
39
|
+
import { Toaster as Sonner } from "sonner";
|
|
40
|
+
const Toaster = (_a) => {
|
|
41
|
+
var props = __objRest(_a, []);
|
|
42
|
+
const { theme = "system" } = useTheme();
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
Sonner,
|
|
45
|
+
__spreadValues({
|
|
46
|
+
theme,
|
|
47
|
+
className: "toaster group font-sans",
|
|
48
|
+
position: "bottom-right",
|
|
49
|
+
duration: 4e3,
|
|
50
|
+
icons: {
|
|
51
|
+
success: /* @__PURE__ */ jsx(CircleCheckIcon, { className: "size-4" }),
|
|
52
|
+
info: /* @__PURE__ */ jsx(InfoIcon, { className: "size-4" }),
|
|
53
|
+
warning: /* @__PURE__ */ jsx(TriangleAlertIcon, { className: "size-4" }),
|
|
54
|
+
error: /* @__PURE__ */ jsx(OctagonXIcon, { className: "size-4" }),
|
|
55
|
+
loading: /* @__PURE__ */ jsx(Loader2Icon, { className: "size-4 animate-spin" })
|
|
56
|
+
},
|
|
57
|
+
style: {
|
|
58
|
+
"--normal-bg": "var(--popover)",
|
|
59
|
+
"--normal-text": "var(--card-foreground)",
|
|
60
|
+
"--normal-border": "var(--border-strong)",
|
|
61
|
+
"--success-bg": "var(--popover)",
|
|
62
|
+
"--success-text": "var(--success)",
|
|
63
|
+
"--success-border": "var(--border-strong)",
|
|
64
|
+
"--error-bg": "var(--popover)",
|
|
65
|
+
"--error-text": "var(--error)",
|
|
66
|
+
"--error-border": "var(--border-strong)",
|
|
67
|
+
"--info-bg": "var(--popover)",
|
|
68
|
+
"--info-text": "var(--info)",
|
|
69
|
+
"--info-border": "var(--border-strong)",
|
|
70
|
+
"--warning-bg": "var(--popover)",
|
|
71
|
+
"--warning-text": "var(--warning)",
|
|
72
|
+
"--warning-border": "var(--border-strong)",
|
|
73
|
+
"--border-radius": "var(--radius-md-value)"
|
|
74
|
+
}
|
|
75
|
+
}, props)
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
Toaster
|
|
80
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { Switch as Switch$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
declare function Switch({ className, ...props }: react.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
export { Switch };
|
|
@@ -0,0 +1,54 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
34
|
+
import { Switch as Primitive } from "radix-ui";
|
|
35
|
+
import { cn } from "../../lib/utils.js";
|
|
36
|
+
function Switch(_a) {
|
|
37
|
+
var _b = _a, {
|
|
38
|
+
className
|
|
39
|
+
} = _b, props = __objRest(_b, [
|
|
40
|
+
"className"
|
|
41
|
+
]);
|
|
42
|
+
return /* @__PURE__ */ jsx(
|
|
43
|
+
Primitive.Root,
|
|
44
|
+
__spreadProps(__spreadValues({
|
|
45
|
+
"data-slot": "switch",
|
|
46
|
+
className: cn("ui-choice ui-focus", className)
|
|
47
|
+
}, props), {
|
|
48
|
+
children: /* @__PURE__ */ jsx(Primitive.Thumb, { "data-slot": "switch-thumb" })
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
Switch
|
|
54
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { Tabs as Tabs$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
declare function Tabs({ className, ...props }: react.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function TabsList({ className, ...props }: react.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function TabsTrigger({ className, ...props }: react.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function TabsContent({ className, ...props }: react.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __spreadValues = (a, b) => {
|
|
8
|
+
for (var prop in b || (b = {}))
|
|
9
|
+
if (__hasOwnProp.call(b, prop))
|
|
10
|
+
__defNormalProp(a, prop, b[prop]);
|
|
11
|
+
if (__getOwnPropSymbols)
|
|
12
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
+
if (__propIsEnum.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
}
|
|
16
|
+
return a;
|
|
17
|
+
};
|
|
18
|
+
var __objRest = (source, exclude) => {
|
|
19
|
+
var target = {};
|
|
20
|
+
for (var prop in source)
|
|
21
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
+
target[prop] = source[prop];
|
|
23
|
+
if (source != null && __getOwnPropSymbols)
|
|
24
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
}
|
|
28
|
+
return target;
|
|
29
|
+
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
31
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
32
|
+
import { cn } from "../../lib/utils.js";
|
|
33
|
+
function Tabs(_a) {
|
|
34
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
35
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Root, __spreadValues({ "data-slot": "tabs", className: cn("ui-tabs min-w-0", className) }, props));
|
|
36
|
+
}
|
|
37
|
+
function TabsList(_c) {
|
|
38
|
+
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
39
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.List, __spreadValues({ "data-slot": "tabs-list", className: cn("ui-tabs-list", className) }, props));
|
|
40
|
+
}
|
|
41
|
+
function TabsTrigger(_e) {
|
|
42
|
+
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
43
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, __spreadValues({ "data-slot": "tabs-trigger", className: cn(
|
|
44
|
+
"ui-tabs-trigger ui-control ui-focus h-auto min-h-(--ui-control-height) w-max max-w-full shrink-0 whitespace-normal break-words rounded-md border-b-2 px-3 text-base leading-normal font-medium disabled:cursor-not-allowed disabled:opacity-50",
|
|
45
|
+
className
|
|
46
|
+
) }, props));
|
|
47
|
+
}
|
|
48
|
+
function TabsContent(_g) {
|
|
49
|
+
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
50
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Content, __spreadValues({ "data-slot": "tabs-content", className: cn("ui-focus min-w-0 break-words", className) }, props));
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
Tabs,
|
|
54
|
+
TabsContent,
|
|
55
|
+
TabsList,
|
|
56
|
+
TabsTrigger
|
|
57
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
|
+
import { cn } from "../../lib/utils.js";
|
|
31
|
+
function Textarea(_a) {
|
|
32
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
"textarea",
|
|
35
|
+
__spreadValues({
|
|
36
|
+
"data-slot": "textarea",
|
|
37
|
+
className: cn(
|
|
38
|
+
"ui-textarea ui-focus w-full min-w-0 resize-y rounded-md border border-input bg-background px-3 py-2 text-base leading-normal placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-error",
|
|
39
|
+
className
|
|
40
|
+
)
|
|
41
|
+
}, props)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
Textarea
|
|
46
|
+
};
|