@unikit-bridge/ui 0.1.0 → 0.2.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/src/index.ts CHANGED
@@ -40,6 +40,282 @@ export {
40
40
  type BadgeProps,
41
41
  } from "./components/badge";
42
42
 
43
+ // ── shadcn 카탈로그 1차 배치 23종(사이클 30, T-4 통합) ──────────────────────
44
+
45
+ export { Checkbox, type CheckboxProps } from "./components/checkbox";
46
+
47
+ export {
48
+ RadioGroup,
49
+ RadioGroupItem,
50
+ type RadioGroupProps,
51
+ type RadioGroupItemProps,
52
+ } from "./components/radio-group";
53
+
54
+ export {
55
+ Switch,
56
+ switchTrackVariants,
57
+ switchThumbVariants,
58
+ type SwitchProps,
59
+ } from "./components/switch";
60
+
61
+ export {
62
+ Toggle,
63
+ toggleVariants,
64
+ toggleTextVariants,
65
+ type ToggleProps,
66
+ } from "./components/toggle";
67
+
68
+ export {
69
+ ToggleGroup,
70
+ ToggleGroupItem,
71
+ type ToggleGroupProps,
72
+ type ToggleGroupItemProps,
73
+ } from "./components/toggle-group";
74
+
75
+ export {
76
+ Tabs,
77
+ TabsList,
78
+ TabsTrigger,
79
+ TabsContent,
80
+ tabsListVariants,
81
+ type TabsProps,
82
+ type TabsListProps,
83
+ type TabsTriggerProps,
84
+ type TabsContentProps,
85
+ } from "./components/tabs";
86
+
87
+ export {
88
+ Accordion,
89
+ AccordionItem,
90
+ AccordionTrigger,
91
+ AccordionContent,
92
+ type AccordionProps,
93
+ type AccordionItemProps,
94
+ type AccordionTriggerProps,
95
+ type AccordionContentProps,
96
+ } from "./components/accordion";
97
+
98
+ export {
99
+ Collapsible,
100
+ CollapsibleTrigger,
101
+ CollapsibleContent,
102
+ type CollapsibleProps,
103
+ type CollapsibleTriggerProps,
104
+ type CollapsibleContentProps,
105
+ } from "./components/collapsible";
106
+
107
+ export { Progress, type ProgressProps } from "./components/progress";
108
+
109
+ export { AspectRatio, type AspectRatioProps } from "./components/aspect-ratio";
110
+
111
+ export {
112
+ Skeleton,
113
+ skeletonVariants,
114
+ type SkeletonProps,
115
+ } from "./components/skeleton";
116
+
117
+ export {
118
+ Separator,
119
+ separatorVariants,
120
+ type SeparatorProps,
121
+ } from "./components/separator";
122
+
123
+ export {
124
+ Alert,
125
+ AlertTitle,
126
+ AlertDescription,
127
+ alertVariants,
128
+ alertGlyphVariants,
129
+ alertTitleVariants,
130
+ alertDescriptionVariants,
131
+ type AlertProps,
132
+ type AlertTitleProps,
133
+ type AlertDescriptionProps,
134
+ } from "./components/alert";
135
+
136
+ export {
137
+ Kbd,
138
+ KbdGroup,
139
+ kbdVariants,
140
+ kbdTextVariants,
141
+ kbdGroupVariants,
142
+ type KbdProps,
143
+ type KbdGroupProps,
144
+ } from "./components/kbd";
145
+
146
+ export {
147
+ Table,
148
+ TableHeader,
149
+ TableBody,
150
+ TableFooter,
151
+ TableRow,
152
+ TableHead,
153
+ TableCell,
154
+ TableCaption,
155
+ tableContainerVariants,
156
+ tableVariants,
157
+ tableHeaderVariants,
158
+ tableBodyVariants,
159
+ tableFooterVariants,
160
+ tableRowVariants,
161
+ tableHeadVariants,
162
+ tableHeadTextVariants,
163
+ tableCellVariants,
164
+ tableCellTextVariants,
165
+ tableCaptionVariants,
166
+ tableCaptionTextVariants,
167
+ type TableProps,
168
+ type TableHeaderProps,
169
+ type TableBodyProps,
170
+ type TableFooterProps,
171
+ type TableRowProps,
172
+ type TableHeadProps,
173
+ type TableCellProps,
174
+ type TableCaptionProps,
175
+ } from "./components/table";
176
+
177
+ export {
178
+ Breadcrumb,
179
+ BreadcrumbList,
180
+ BreadcrumbItem,
181
+ BreadcrumbLink,
182
+ BreadcrumbPage,
183
+ BreadcrumbSeparator,
184
+ BreadcrumbEllipsis,
185
+ breadcrumbListVariants,
186
+ breadcrumbItemVariants,
187
+ breadcrumbLinkVariants,
188
+ breadcrumbLinkTextVariants,
189
+ breadcrumbPageVariants,
190
+ breadcrumbSeparatorVariants,
191
+ breadcrumbSeparatorTextVariants,
192
+ breadcrumbEllipsisVariants,
193
+ breadcrumbEllipsisTextVariants,
194
+ type BreadcrumbProps,
195
+ type BreadcrumbListProps,
196
+ type BreadcrumbItemProps,
197
+ type BreadcrumbLinkProps,
198
+ type BreadcrumbPageProps,
199
+ type BreadcrumbSeparatorProps,
200
+ type BreadcrumbEllipsisProps,
201
+ } from "./components/breadcrumb";
202
+
203
+ export {
204
+ Pagination,
205
+ PaginationContent,
206
+ PaginationLink,
207
+ PaginationItem,
208
+ PaginationPrevious,
209
+ PaginationNext,
210
+ PaginationEllipsis,
211
+ paginationVariants,
212
+ paginationContentVariants,
213
+ paginationGlyphVariants,
214
+ paginationLabelVariants,
215
+ paginationEllipsisVariants,
216
+ paginationEllipsisTextVariants,
217
+ type PaginationProps,
218
+ type PaginationContentProps,
219
+ type PaginationLinkProps,
220
+ type PaginationItemProps,
221
+ type PaginationPreviousProps,
222
+ type PaginationNextProps,
223
+ type PaginationEllipsisProps,
224
+ } from "./components/pagination";
225
+
226
+ export {
227
+ Textarea,
228
+ textareaVariants,
229
+ type TextareaProps,
230
+ } from "./components/textarea";
231
+
232
+ export {
233
+ Avatar,
234
+ AvatarImage,
235
+ AvatarFallback,
236
+ AvatarBadge,
237
+ AvatarGroup,
238
+ AvatarGroupCount,
239
+ type AvatarSize,
240
+ type AvatarProps,
241
+ type AvatarImageProps,
242
+ type AvatarFallbackProps,
243
+ type AvatarBadgeProps,
244
+ type AvatarGroupProps,
245
+ type AvatarGroupCountProps,
246
+ } from "./components/avatar";
247
+
248
+ export {
249
+ Empty,
250
+ EmptyHeader,
251
+ EmptyTitle,
252
+ EmptyDescription,
253
+ EmptyContent,
254
+ EmptyMedia,
255
+ type EmptyProps,
256
+ type EmptyHeaderProps,
257
+ type EmptyTitleProps,
258
+ type EmptyDescriptionProps,
259
+ type EmptyContentProps,
260
+ type EmptyMediaProps,
261
+ } from "./components/empty";
262
+
263
+ export {
264
+ Field,
265
+ FieldLabel,
266
+ FieldDescription,
267
+ FieldError,
268
+ FieldGroup,
269
+ FieldLegend,
270
+ FieldSeparator,
271
+ FieldSet,
272
+ FieldContent,
273
+ FieldTitle,
274
+ type FieldSetProps,
275
+ type FieldLegendProps,
276
+ type FieldGroupProps,
277
+ type FieldProps,
278
+ type FieldContentProps,
279
+ type FieldLabelProps,
280
+ type FieldTitleProps,
281
+ type FieldDescriptionProps,
282
+ type FieldSeparatorProps,
283
+ type FieldErrorProps,
284
+ } from "./components/field";
285
+
286
+ export {
287
+ Item,
288
+ ItemMedia,
289
+ ItemContent,
290
+ ItemActions,
291
+ ItemGroup,
292
+ ItemSeparator,
293
+ ItemTitle,
294
+ ItemDescription,
295
+ ItemHeader,
296
+ ItemFooter,
297
+ type ItemGroupProps,
298
+ type ItemSeparatorProps,
299
+ type ItemProps,
300
+ type ItemMediaProps,
301
+ type ItemContentProps,
302
+ type ItemTitleProps,
303
+ type ItemDescriptionProps,
304
+ type ItemActionsProps,
305
+ type ItemHeaderProps,
306
+ type ItemFooterProps,
307
+ } from "./components/item";
308
+
309
+ export {
310
+ ButtonGroup,
311
+ ButtonGroupSeparator,
312
+ ButtonGroupText,
313
+ buttonGroupVariants,
314
+ type ButtonGroupProps,
315
+ type ButtonGroupTextProps,
316
+ type ButtonGroupSeparatorProps,
317
+ } from "./components/button-group";
318
+
43
319
  // 테마(T-5가 packages/unikit/src/theme/ 을 병렬 생성) — 디렉터리 존재 여부와
44
320
  // 무관하게 이 라인은 항상 유지한다(T-6 지시).
45
321
  export * from "./theme";
@@ -9,7 +9,8 @@
9
9
  * - 다크 primary = 주색-500
10
10
  * - 다크 primary-foreground = 중립-950 (주색-950은 blue에서 4.00:1로 미달 — 중립-950은 3종 전부 ≥5.48)
11
11
  * - 중립 계열 N = blue→slate, emerald→zinc, amber→stone (shadcn 관례)
12
- * - destructive 쌍·radius = 기본 테마(tokens.ts)값 공통
12
+ * - destructive 쌍·radius = 기본 테마(tokens.ts)값 공통 — 다크 --destructive는
13
+ * 사이클 30 G4/G5 조정값(0 72% 65%, red-400 계) 반영(22-design-plan §2.3 수정 이력)
13
14
  *
14
15
  * 기본 테마(zinc)는 이 파일에 없다 — src/theme/tokens.ts의 lightTokens/darkTokens이
15
16
  * 곧 기본 프리셋이다(값 사본 금지). registry 항목 이름 매핑은 generate-design.ts의
@@ -74,7 +75,7 @@ export const themePresets = {
74
75
  "--muted-foreground": "215 20.2% 65.1%",
75
76
  "--accent": "217.2 32.6% 17.5%",
76
77
  "--accent-foreground": "210 40% 98%",
77
- "--destructive": "0 62.8% 30.6%",
78
+ "--destructive": "0 72% 65%",
78
79
  "--destructive-foreground": "0 0% 98%",
79
80
  "--border": "217.2 32.6% 17.5%",
80
81
  "--input": "217.2 32.6% 17.5%",
@@ -123,7 +124,7 @@ export const themePresets = {
123
124
  "--muted-foreground": "240 5% 64.9%",
124
125
  "--accent": "240 3.7% 15.9%",
125
126
  "--accent-foreground": "0 0% 98%",
126
- "--destructive": "0 62.8% 30.6%",
127
+ "--destructive": "0 72% 65%",
127
128
  "--destructive-foreground": "0 0% 98%",
128
129
  "--border": "240 3.7% 15.9%",
129
130
  "--input": "240 3.7% 15.9%",
@@ -172,7 +173,7 @@ export const themePresets = {
172
173
  "--muted-foreground": "24 5.4% 63.9%",
173
174
  "--accent": "12 6.5% 15.1%",
174
175
  "--accent-foreground": "60 9.1% 97.8%",
175
- "--destructive": "0 62.8% 30.6%",
176
+ "--destructive": "0 72% 65%",
176
177
  "--destructive-foreground": "0 0% 98%",
177
178
  "--border": "12 6.5% 15.1%",
178
179
  "--input": "12 6.5% 15.1%",
@@ -8,6 +8,8 @@
8
8
  *
9
9
  * 주의: 값을 임의로 변경하면 안 된다 — 수정이 필요하면 설계 문서(02-design)를 먼저 고친다.
10
10
  * `--destructive`(라이트)는 shadcn 기본값이 아닌 red-600 계(02-design §2.1 주석, WCAG AA 확보).
11
+ * `--destructive`(다크)도 shadcn 원본 대비 red-400 계로 조정(사이클 30 G4 — 원본 값은
12
+ * 다크 배경 대비 1.99:1로 텍스트가 사실상 안 읽힘. 조정값 6.1:1).
11
13
  * `--radius`는 스킴과 무관한 공통값(§2.2)이며 두 객체에 동일하게 포함한다.
12
14
  */
13
15
 
@@ -53,7 +55,7 @@ export const darkTokens = {
53
55
  "--muted-foreground": "240 5% 64.9%",
54
56
  "--accent": "240 3.7% 15.9%",
55
57
  "--accent-foreground": "0 0% 98%",
56
- "--destructive": "0 62.8% 30.6%",
58
+ "--destructive": "0 72% 65%",
57
59
  "--destructive-foreground": "0 0% 98%",
58
60
  "--border": "240 3.7% 15.9%",
59
61
  "--input": "240 3.7% 15.9%",