@naeil/ui 0.2.0 → 0.4.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.
Files changed (109) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/DESIGN.md +194 -0
  3. package/LICENSE +21 -0
  4. package/README.md +77 -53
  5. package/THIRD_PARTY_NOTICES.md +51 -0
  6. package/dist/{chunk-SYI3IKIC.js → chunk-QKVN6Q6C.js} +102 -19
  7. package/dist/components/index.d.ts +17 -8
  8. package/dist/components/index.js +1278 -251
  9. package/dist/components/ui/index.d.ts +27 -5
  10. package/dist/components/ui/index.js +288 -33
  11. package/dist/source/components/brand-artwork.generated.d.ts +162 -0
  12. package/dist/source/components/brand-artwork.generated.js +1103 -0
  13. package/dist/source/components/footer.d.ts +15 -0
  14. package/dist/source/components/footer.js +128 -0
  15. package/dist/source/components/index.d.ts +11 -0
  16. package/dist/source/components/index.js +26 -0
  17. package/dist/source/components/locale-switcher.d.ts +17 -0
  18. package/dist/source/components/locale-switcher.js +66 -0
  19. package/dist/source/components/logo.d.ts +18 -0
  20. package/dist/source/components/logo.js +91 -0
  21. package/dist/source/components/nav.d.ts +39 -0
  22. package/dist/source/components/nav.js +375 -0
  23. package/dist/source/components/theme-provider.d.ts +6 -0
  24. package/dist/source/components/theme-provider.js +45 -0
  25. package/dist/source/components/theme-toggle-icon.d.ts +5 -0
  26. package/dist/source/components/theme-toggle-icon.js +62 -0
  27. package/dist/source/components/theme-toggle.d.ts +5 -0
  28. package/dist/source/components/theme-toggle.js +34 -0
  29. package/dist/source/components/typography.d.ts +12 -0
  30. package/dist/source/components/typography.js +49 -0
  31. package/dist/source/components/ui/avatar.d.ts +14 -0
  32. package/dist/source/components/ui/avatar.js +137 -0
  33. package/dist/source/components/ui/badge.d.ts +13 -0
  34. package/dist/source/components/ui/badge.js +76 -0
  35. package/dist/source/components/ui/button.d.ts +14 -0
  36. package/dist/source/components/ui/button.js +88 -0
  37. package/dist/source/components/ui/card.d.ts +13 -0
  38. package/dist/source/components/ui/card.js +135 -0
  39. package/dist/source/components/ui/checkbox.d.ts +7 -0
  40. package/dist/source/components/ui/checkbox.js +58 -0
  41. package/dist/source/components/ui/dialog.d.ts +20 -0
  42. package/dist/source/components/ui/dialog.js +182 -0
  43. package/dist/source/components/ui/dropdown-menu.d.ts +28 -0
  44. package/dist/source/components/ui/dropdown-menu.js +282 -0
  45. package/dist/source/components/ui/index.d.ts +19 -0
  46. package/dist/source/components/ui/index.js +131 -0
  47. package/dist/source/components/ui/input.d.ts +6 -0
  48. package/dist/source/components/ui/input.js +49 -0
  49. package/dist/source/components/ui/select.d.ts +16 -0
  50. package/dist/source/components/ui/select.js +197 -0
  51. package/dist/source/components/ui/sonner.d.ts +6 -0
  52. package/dist/source/components/ui/sonner.js +80 -0
  53. package/dist/source/components/ui/switch.d.ts +7 -0
  54. package/dist/source/components/ui/switch.js +54 -0
  55. package/dist/source/components/ui/tabs.d.ts +10 -0
  56. package/dist/source/components/ui/tabs.js +57 -0
  57. package/dist/source/components/ui/textarea.d.ts +6 -0
  58. package/dist/source/components/ui/textarea.js +46 -0
  59. package/dist/source/i18n/config.d.ts +6 -0
  60. package/dist/source/i18n/config.js +12 -0
  61. package/dist/source/i18n/routing.d.ts +371 -0
  62. package/dist/source/i18n/routing.js +17 -0
  63. package/dist/source/lib/design/modal-inert.d.ts +6 -0
  64. package/dist/source/lib/design/modal-inert.js +73 -0
  65. package/dist/source/lib/utils.d.ts +5 -0
  66. package/dist/source/lib/utils.js +8 -0
  67. package/dist/tokens.ts +217 -0
  68. package/docs/components/README.md +21 -0
  69. package/docs/components/avatar.md +47 -0
  70. package/docs/components/badge.md +29 -0
  71. package/docs/components/button.md +39 -0
  72. package/docs/components/card.md +32 -0
  73. package/docs/components/checkbox.md +35 -0
  74. package/docs/components/common.md +31 -0
  75. package/docs/components/composition.md +68 -0
  76. package/docs/components/dialog.md +41 -0
  77. package/docs/components/dropdown-menu.md +38 -0
  78. package/docs/components/input.md +32 -0
  79. package/docs/components/select.md +39 -0
  80. package/docs/components/sonner.md +37 -0
  81. package/docs/components/switch.md +33 -0
  82. package/docs/components/tabs.md +40 -0
  83. package/docs/components/textarea.md +35 -0
  84. package/docs/design/component-demand.md +30 -0
  85. package/docs/design/public-ui-final-verification.md +96 -0
  86. package/docs/design/public-ui-release-validation.md +86 -0
  87. package/docs/design/public-ui-stage3-verification.md +98 -0
  88. package/docs/design/public-ui-stage4-verification.md +129 -0
  89. package/docs/design/public-ui-support.md +42 -0
  90. package/docs/design/v2-migration.md +229 -0
  91. package/docs/package-release.md +108 -0
  92. package/licenses/Lato-OFL.txt +93 -0
  93. package/licenses/Noto-Sans-JP-OFL.txt +93 -0
  94. package/licenses/Nunito-Sans-OFL.txt +93 -0
  95. package/licenses/Pretendard-OFL.txt +94 -0
  96. package/licenses/React-MIT.txt +21 -0
  97. package/licenses/Storybook-MIT.txt +21 -0
  98. package/licenses/popper-MIT.txt +25 -0
  99. package/licenses/react-remove-scroll-bar-MIT.txt +21 -0
  100. package/licenses/store2-MIT.txt +22 -0
  101. package/licenses/toggle-selection-MIT.txt +21 -0
  102. package/package.json +184 -34
  103. package/src/styles/components.css +276 -0
  104. package/src/styles/globals.css +18 -0
  105. package/src/styles/theme.css +185 -98
  106. package/messages/en.json +0 -221
  107. package/messages/ja.json +0 -221
  108. package/messages/ko.json +0 -221
  109. package/src/app/globals.css +0 -32
@@ -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';
@@ -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,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+
4
+ declare function Input({ className, type, ...props }: react.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
5
+
6
+ export { Input };