@axis-ds/cli 1.6.1 → 1.7.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/README.md +19 -1
- package/dist/{chunk-NNFSJISD.js → chunk-2PNCUPCG.js} +73 -34
- package/dist/chunk-HFMMK6R4.js +35 -0
- package/dist/{chunk-ZVVACWEW.js → chunk-LVMDBOXD.js} +32 -13
- package/dist/index.js +210 -100
- package/dist/monet.d.ts +4 -1
- package/dist/monet.js +2 -1
- package/dist/registry/agentic-agent-avatar.json +1 -1
- package/dist/registry/agentic-approval-card.json +1 -1
- package/dist/registry/agentic-attachment-card.json +1 -1
- package/dist/registry/agentic-code-block.json +1 -1
- package/dist/registry/agentic-context-panel.json +1 -1
- package/dist/registry/agentic-diff-viewer.json +1 -1
- package/dist/registry/agentic-feedback-buttons.json +1 -1
- package/dist/registry/agentic-message-bubble.json +1 -1
- package/dist/registry/agentic-plan-card.json +1 -1
- package/dist/registry/agentic-recovery-banner.json +1 -1
- package/dist/registry/agentic-run-progress.json +1 -1
- package/dist/registry/agentic-step-timeline.json +1 -1
- package/dist/registry/agentic-token-usage-indicator.json +1 -1
- package/dist/registry/agentic-tool-call-card.json +1 -1
- package/dist/registry/dialog.json +1 -1
- package/dist/registry/index.json +17 -17
- package/dist/registry/registry.json +17 -17
- package/dist/registry/toast.json +1 -1
- package/dist/v0.d.ts +8 -4
- package/dist/v0.js +2 -1
- package/package.json +1 -1
package/dist/registry/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axis",
|
|
3
3
|
"homepage": "https://axis-design-system.pages.dev",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"items": [
|
|
6
6
|
{
|
|
7
7
|
"name": "utils",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"type": "registry:ui",
|
|
58
58
|
"title": "Dialog",
|
|
59
59
|
"description": "AXIS 다이얼로그 컴포넌트 - 모달 UI",
|
|
60
|
-
"sha256": "
|
|
60
|
+
"sha256": "a6c0c65bae56587e78f9b53b92f6949472b51c81722c3d31ee1c76645ec7d94b"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "select",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"type": "registry:ui",
|
|
79
79
|
"title": "Toast",
|
|
80
80
|
"description": "AXIS 토스트 컴포넌트 - 알림 메시지",
|
|
81
|
-
"sha256": "
|
|
81
|
+
"sha256": "c56513bb2338c57ffee093d7c610ce2ec493857621607ad735b1c4bb4806a21a"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"name": "agentic-a11y-labels",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"type": "registry:ui",
|
|
93
93
|
"title": "Run Progress",
|
|
94
94
|
"description": "AI 에이전트 실행 진행률 표시 컴포넌트",
|
|
95
|
-
"sha256": "
|
|
95
|
+
"sha256": "7c5729965b71edc5977a8ff41289b9e8973f0d67ae5469eb419c13207877ef7f"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "agentic-streaming-text",
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
"type": "registry:ui",
|
|
107
107
|
"title": "Approval Card",
|
|
108
108
|
"description": "사용자 승인 요청 카드 컴포넌트",
|
|
109
|
-
"sha256": "
|
|
109
|
+
"sha256": "412651c84e63a69339fc8788e4d75657fde05b0116a9161f7c32e73a3cd1dbd7"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"name": "agentic-step-timeline",
|
|
113
113
|
"type": "registry:ui",
|
|
114
114
|
"title": "Step Timeline",
|
|
115
115
|
"description": "에이전트 실행 단계 타임라인 컴포넌트",
|
|
116
|
-
"sha256": "
|
|
116
|
+
"sha256": "6e451cc2f98a62cd4132221dc5187d710a5ddebb940f602cb838b93004a35a95"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"name": "agentic-thinking-indicator",
|
|
@@ -134,14 +134,14 @@
|
|
|
134
134
|
"type": "registry:ui",
|
|
135
135
|
"title": "Recovery Banner",
|
|
136
136
|
"description": "에러 복구 배너 컴포넌트",
|
|
137
|
-
"sha256": "
|
|
137
|
+
"sha256": "17b3c5f59ccbecba3dcdaa37a4002d0c9b5843d0aa4a8c0635c9051163ff2572"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "agentic-agent-avatar",
|
|
141
141
|
"type": "registry:ui",
|
|
142
142
|
"title": "Agent Avatar",
|
|
143
143
|
"description": "AI 에이전트 아바타 컴포넌트",
|
|
144
|
-
"sha256": "
|
|
144
|
+
"sha256": "2ac9c96807bc5103c9d7266dd7d2daacaac7e3856e17c9f862555c65e0218355"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"name": "agentic-surface-renderer",
|
|
@@ -155,63 +155,63 @@
|
|
|
155
155
|
"type": "registry:ui",
|
|
156
156
|
"title": "Tool Call Card",
|
|
157
157
|
"description": "도구 호출 결과 표시 카드 컴포넌트",
|
|
158
|
-
"sha256": "
|
|
158
|
+
"sha256": "7601f15cb9d796a5bae068ccb5a12b1c02078e2273bdb6be5e9d00324fd54bfb"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"name": "agentic-message-bubble",
|
|
162
162
|
"type": "registry:ui",
|
|
163
163
|
"title": "Message Bubble",
|
|
164
164
|
"description": "대화 메시지 버블 컴포넌트 (user/assistant/system)",
|
|
165
|
-
"sha256": "
|
|
165
|
+
"sha256": "10137195374ecc5db3aba5809eb1229b8fe3c4b3e64a00e1427ed0a5d52f6408"
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"name": "agentic-feedback-buttons",
|
|
169
169
|
"type": "registry:ui",
|
|
170
170
|
"title": "Feedback Buttons",
|
|
171
171
|
"description": "좋아요/싫어요 피드백 버튼 컴포넌트",
|
|
172
|
-
"sha256": "
|
|
172
|
+
"sha256": "f3d4919281f7f811af1e8bf98cbbc32914f830b441e50a53f71d8315c69c6440"
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
"name": "agentic-token-usage-indicator",
|
|
176
176
|
"type": "registry:ui",
|
|
177
177
|
"title": "Token Usage Indicator",
|
|
178
178
|
"description": "토큰 사용량 및 비용 표시 컴포넌트",
|
|
179
|
-
"sha256": "
|
|
179
|
+
"sha256": "b64329101d9a9badf43b05245fbde3235ce0fc9ae5e98747fad874fc786d18b1"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"name": "agentic-context-panel",
|
|
183
183
|
"type": "registry:ui",
|
|
184
184
|
"title": "Context Panel",
|
|
185
185
|
"description": "모델/설정 메타 정보 패널 컴포넌트",
|
|
186
|
-
"sha256": "
|
|
186
|
+
"sha256": "930ef920ebd5bef9d68b38b03e4e5b4d77429a898db323512443c9847621c2eb"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"name": "agentic-code-block",
|
|
190
190
|
"type": "registry:ui",
|
|
191
191
|
"title": "Code Block",
|
|
192
192
|
"description": "코드 표시 + 복사 버튼 컴포넌트",
|
|
193
|
-
"sha256": "
|
|
193
|
+
"sha256": "e67665de3ccbd157e3b4037418760e401b1b77dbacb3456a8dc60594a217aa68"
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
"name": "agentic-plan-card",
|
|
197
197
|
"type": "registry:ui",
|
|
198
198
|
"title": "Plan Card",
|
|
199
199
|
"description": "AI 실행 계획 표시/승인 카드 컴포넌트",
|
|
200
|
-
"sha256": "
|
|
200
|
+
"sha256": "d0ad94a23363711259bd49c54aa5205054a4c6a13bd8abdfeef3fa534b68398e"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "agentic-attachment-card",
|
|
204
204
|
"type": "registry:ui",
|
|
205
205
|
"title": "Attachment Card",
|
|
206
206
|
"description": "파일/이미지 첨부 표시 카드 컴포넌트",
|
|
207
|
-
"sha256": "
|
|
207
|
+
"sha256": "d7116c7dc5c27cb6bc286a0316139d81ffd77c61bbb67a54e034d592183f7f66"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"name": "agentic-diff-viewer",
|
|
211
211
|
"type": "registry:ui",
|
|
212
212
|
"title": "Diff Viewer",
|
|
213
213
|
"description": "코드 변경사항 비교 표시 컴포넌트",
|
|
214
|
-
"sha256": "
|
|
214
|
+
"sha256": "953104e633bce2adb4d6c2a11024e70ffae7cfa6fcd75b2f618e41b5982e81d9"
|
|
215
215
|
}
|
|
216
216
|
]
|
|
217
217
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://ui.shadcn.com/schema/registry.json",
|
|
3
3
|
"name": "axis",
|
|
4
4
|
"homepage": "https://axis-design-system.pages.dev",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.8.1",
|
|
6
6
|
"items": [
|
|
7
7
|
{
|
|
8
8
|
"name": "utils",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"type": "registry:ui",
|
|
59
59
|
"title": "Dialog",
|
|
60
60
|
"description": "AXIS 다이얼로그 컴포넌트 - 모달 UI",
|
|
61
|
-
"sha256": "
|
|
61
|
+
"sha256": "a6c0c65bae56587e78f9b53b92f6949472b51c81722c3d31ee1c76645ec7d94b"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"name": "select",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"type": "registry:ui",
|
|
80
80
|
"title": "Toast",
|
|
81
81
|
"description": "AXIS 토스트 컴포넌트 - 알림 메시지",
|
|
82
|
-
"sha256": "
|
|
82
|
+
"sha256": "c56513bb2338c57ffee093d7c610ce2ec493857621607ad735b1c4bb4806a21a"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"name": "agentic-a11y-labels",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"type": "registry:ui",
|
|
94
94
|
"title": "Run Progress",
|
|
95
95
|
"description": "AI 에이전트 실행 진행률 표시 컴포넌트",
|
|
96
|
-
"sha256": "
|
|
96
|
+
"sha256": "7c5729965b71edc5977a8ff41289b9e8973f0d67ae5469eb419c13207877ef7f"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"name": "agentic-streaming-text",
|
|
@@ -107,14 +107,14 @@
|
|
|
107
107
|
"type": "registry:ui",
|
|
108
108
|
"title": "Approval Card",
|
|
109
109
|
"description": "사용자 승인 요청 카드 컴포넌트",
|
|
110
|
-
"sha256": "
|
|
110
|
+
"sha256": "412651c84e63a69339fc8788e4d75657fde05b0116a9161f7c32e73a3cd1dbd7"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "agentic-step-timeline",
|
|
114
114
|
"type": "registry:ui",
|
|
115
115
|
"title": "Step Timeline",
|
|
116
116
|
"description": "에이전트 실행 단계 타임라인 컴포넌트",
|
|
117
|
-
"sha256": "
|
|
117
|
+
"sha256": "6e451cc2f98a62cd4132221dc5187d710a5ddebb940f602cb838b93004a35a95"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"name": "agentic-thinking-indicator",
|
|
@@ -135,14 +135,14 @@
|
|
|
135
135
|
"type": "registry:ui",
|
|
136
136
|
"title": "Recovery Banner",
|
|
137
137
|
"description": "에러 복구 배너 컴포넌트",
|
|
138
|
-
"sha256": "
|
|
138
|
+
"sha256": "17b3c5f59ccbecba3dcdaa37a4002d0c9b5843d0aa4a8c0635c9051163ff2572"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"name": "agentic-agent-avatar",
|
|
142
142
|
"type": "registry:ui",
|
|
143
143
|
"title": "Agent Avatar",
|
|
144
144
|
"description": "AI 에이전트 아바타 컴포넌트",
|
|
145
|
-
"sha256": "
|
|
145
|
+
"sha256": "2ac9c96807bc5103c9d7266dd7d2daacaac7e3856e17c9f862555c65e0218355"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"name": "agentic-surface-renderer",
|
|
@@ -156,63 +156,63 @@
|
|
|
156
156
|
"type": "registry:ui",
|
|
157
157
|
"title": "Tool Call Card",
|
|
158
158
|
"description": "도구 호출 결과 표시 카드 컴포넌트",
|
|
159
|
-
"sha256": "
|
|
159
|
+
"sha256": "7601f15cb9d796a5bae068ccb5a12b1c02078e2273bdb6be5e9d00324fd54bfb"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "agentic-message-bubble",
|
|
163
163
|
"type": "registry:ui",
|
|
164
164
|
"title": "Message Bubble",
|
|
165
165
|
"description": "대화 메시지 버블 컴포넌트 (user/assistant/system)",
|
|
166
|
-
"sha256": "
|
|
166
|
+
"sha256": "10137195374ecc5db3aba5809eb1229b8fe3c4b3e64a00e1427ed0a5d52f6408"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"name": "agentic-feedback-buttons",
|
|
170
170
|
"type": "registry:ui",
|
|
171
171
|
"title": "Feedback Buttons",
|
|
172
172
|
"description": "좋아요/싫어요 피드백 버튼 컴포넌트",
|
|
173
|
-
"sha256": "
|
|
173
|
+
"sha256": "f3d4919281f7f811af1e8bf98cbbc32914f830b441e50a53f71d8315c69c6440"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"name": "agentic-token-usage-indicator",
|
|
177
177
|
"type": "registry:ui",
|
|
178
178
|
"title": "Token Usage Indicator",
|
|
179
179
|
"description": "토큰 사용량 및 비용 표시 컴포넌트",
|
|
180
|
-
"sha256": "
|
|
180
|
+
"sha256": "b64329101d9a9badf43b05245fbde3235ce0fc9ae5e98747fad874fc786d18b1"
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"name": "agentic-context-panel",
|
|
184
184
|
"type": "registry:ui",
|
|
185
185
|
"title": "Context Panel",
|
|
186
186
|
"description": "모델/설정 메타 정보 패널 컴포넌트",
|
|
187
|
-
"sha256": "
|
|
187
|
+
"sha256": "930ef920ebd5bef9d68b38b03e4e5b4d77429a898db323512443c9847621c2eb"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"name": "agentic-code-block",
|
|
191
191
|
"type": "registry:ui",
|
|
192
192
|
"title": "Code Block",
|
|
193
193
|
"description": "코드 표시 + 복사 버튼 컴포넌트",
|
|
194
|
-
"sha256": "
|
|
194
|
+
"sha256": "e67665de3ccbd157e3b4037418760e401b1b77dbacb3456a8dc60594a217aa68"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"name": "agentic-plan-card",
|
|
198
198
|
"type": "registry:ui",
|
|
199
199
|
"title": "Plan Card",
|
|
200
200
|
"description": "AI 실행 계획 표시/승인 카드 컴포넌트",
|
|
201
|
-
"sha256": "
|
|
201
|
+
"sha256": "d0ad94a23363711259bd49c54aa5205054a4c6a13bd8abdfeef3fa534b68398e"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"name": "agentic-attachment-card",
|
|
205
205
|
"type": "registry:ui",
|
|
206
206
|
"title": "Attachment Card",
|
|
207
207
|
"description": "파일/이미지 첨부 표시 카드 컴포넌트",
|
|
208
|
-
"sha256": "
|
|
208
|
+
"sha256": "d7116c7dc5c27cb6bc286a0316139d81ffd77c61bbb67a54e034d592183f7f66"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
"name": "agentic-diff-viewer",
|
|
212
212
|
"type": "registry:ui",
|
|
213
213
|
"title": "Diff Viewer",
|
|
214
214
|
"description": "코드 변경사항 비교 표시 컴포넌트",
|
|
215
|
-
"sha256": "
|
|
215
|
+
"sha256": "953104e633bce2adb4d6c2a11024e70ffae7cfa6fcd75b2f618e41b5982e81d9"
|
|
216
216
|
}
|
|
217
217
|
]
|
|
218
218
|
}
|
package/dist/registry/toast.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"path": "components/ui/toast.tsx",
|
|
17
17
|
"type": "registry:ui",
|
|
18
|
-
"content": "import * as React from \"react\";\nimport * as ToastPrimitives from \"@radix-ui/react-toast\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"@/registry/axis/lib/utils\";\n\n/** 토스트 알림 시스템의 프로바이더 컴포넌트. 앱 루트에 배치하여 토스트 기능을 활성화한다. */\nconst ToastProvider = ToastPrimitives.Provider;\n\n/** 토스트 알림이 표시되는 뷰포트 영역. 화면 하단 우측에 고정 위치로 렌더링된다. */\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n \"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\n className\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport.displayName;\n\nconst toastVariants = cva(\n \"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full motion-reduce:!animate-none\",\n {\n variants: {\n variant: {\n default:\n \"border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)]\",\n success:\n \"border-[var(--axis-border-success)] bg-[var(--axis-surface-success)] text-[var(--axis-text-success)]\",\n error:\n \"border-[var(--axis-border-error)] bg-[var(--axis-surface-error)] text-[var(--axis-text-error)]\",\n warning:\n \"border-transparent bg-[var(--axis-surface-warning)] text-[var(--axis-text-warning)]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\n/** 토스트 알림의 루트 컴포넌트. default, success, error, warning 변형을 지원하며 스와이프로 닫을 수 있다. */\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\n VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => (\n <ToastPrimitives.Root\n ref={ref}\n className={cn(toastVariants({ variant }), className)}\n {...props}\n />\n));\nToast.displayName = ToastPrimitives.Root.displayName;\n\n/** 토스트 내에 표시되는 액션 버튼 컴포넌트. 사용자 상호작용을 위한 CTA를 제공한다. */\nconst ToastAction = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border px-3 text-sm font-medium transition-colors\",\n \"border-[var(--axis-border-default)] bg-transparent\",\n \"hover:bg-[var(--axis-surface-secondary)]\",\n \"focus:outline-none focus:ring-2 focus:ring-[var(--axis-border-focus)]\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n className\n )}\n {...props}\n />\n));\nToastAction.displayName = ToastPrimitives.Action.displayName;\n\n/** 토스트를 닫는 닫기 버튼 컴포넌트. 호버 시 표시되며 X 아이콘을 포함한다. */\nconst ToastClose = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n \"absolute right-2 top-2 rounded-md p-1 text-[var(--axis-text-secondary)] opacity-0 transition-opacity\",\n \"hover:text-[var(--axis-text-primary)]\",\n \"focus:opacity-100 focus:outline-none focus:ring-2\",\n \"group-hover:opacity-100\",\n className\n )}\n toast-close=\"\"\n {...props}\n >\n <svg className=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </ToastPrimitives.Close>\n));\nToastClose.displayName = ToastPrimitives.Close.displayName;\n\n/** 토스트의 제목을 표시하는 컴포넌트 */\nconst ToastTitle = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title\n ref={ref}\n className={cn(\"text-sm font-semibold\", className)}\n {...props}\n />\n));\nToastTitle.displayName = ToastPrimitives.Title.displayName;\n\n/** 토스트의 상세 설명을 표시하는 컴포넌트 */\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description\n ref={ref}\n className={cn(\"text-sm
|
|
18
|
+
"content": "import * as React from \"react\";\nimport * as ToastPrimitives from \"@radix-ui/react-toast\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"@/registry/axis/lib/utils\";\n\n/** 토스트 알림 시스템의 프로바이더 컴포넌트. 앱 루트에 배치하여 토스트 기능을 활성화한다. */\nconst ToastProvider = ToastPrimitives.Provider;\n\n/** 토스트 알림이 표시되는 뷰포트 영역. 화면 하단 우측에 고정 위치로 렌더링된다. */\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n \"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\n className\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport.displayName;\n\nconst toastVariants = cva(\n \"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full motion-reduce:!animate-none\",\n {\n variants: {\n variant: {\n default:\n \"border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)]\",\n success:\n \"border-[var(--axis-border-success)] bg-[var(--axis-surface-success)] text-[var(--axis-text-success)]\",\n error:\n \"border-[var(--axis-border-error)] bg-[var(--axis-surface-error)] text-[var(--axis-text-error)]\",\n warning:\n \"border-transparent bg-[var(--axis-surface-warning)] text-[var(--axis-text-warning)]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\n/** 토스트 알림의 루트 컴포넌트. default, success, error, warning 변형을 지원하며 스와이프로 닫을 수 있다. */\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\n VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => (\n <ToastPrimitives.Root\n ref={ref}\n className={cn(toastVariants({ variant }), className)}\n {...props}\n />\n));\nToast.displayName = ToastPrimitives.Root.displayName;\n\n/** 토스트 내에 표시되는 액션 버튼 컴포넌트. 사용자 상호작용을 위한 CTA를 제공한다. */\nconst ToastAction = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border px-3 text-sm font-medium transition-colors\",\n \"border-[var(--axis-border-default)] bg-transparent\",\n \"hover:bg-[var(--axis-surface-secondary)]\",\n \"focus:outline-none focus:ring-2 focus:ring-[var(--axis-border-focus)]\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n className\n )}\n {...props}\n />\n));\nToastAction.displayName = ToastPrimitives.Action.displayName;\n\n/** 토스트를 닫는 닫기 버튼 컴포넌트. 호버 시 표시되며 X 아이콘을 포함한다. */\nconst ToastClose = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n \"absolute right-2 top-2 rounded-md p-1 text-[var(--axis-text-secondary)] opacity-0 transition-opacity\",\n \"hover:text-[var(--axis-text-primary)]\",\n \"focus:opacity-100 focus:outline-none focus:ring-2\",\n \"group-hover:opacity-100\",\n className\n )}\n toast-close=\"\"\n {...props}\n >\n <svg className=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </ToastPrimitives.Close>\n));\nToastClose.displayName = ToastPrimitives.Close.displayName;\n\n/** 토스트의 제목을 표시하는 컴포넌트 */\nconst ToastTitle = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title\n ref={ref}\n className={cn(\"text-sm font-semibold\", className)}\n {...props}\n />\n));\nToastTitle.displayName = ToastPrimitives.Title.displayName;\n\n/** 토스트의 상세 설명을 표시하는 컴포넌트 */\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description\n ref={ref}\n className={cn(\"text-sm\", className)}\n {...props}\n />\n));\nToastDescription.displayName = ToastPrimitives.Description.displayName;\n\nexport {\n ToastProvider,\n ToastViewport,\n Toast,\n ToastTitle,\n ToastDescription,\n ToastClose,\n ToastAction,\n};\n"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
}
|
package/dist/v0.d.ts
CHANGED
|
@@ -8,19 +8,23 @@
|
|
|
8
8
|
* npx @axis-ds/cli v0 import <url> # V0 URL에서 가져오기
|
|
9
9
|
* npx @axis-ds/cli v0 setup # GitHub 연동 안내
|
|
10
10
|
*/
|
|
11
|
+
/** 질문을 띄울 수 있는지(WI-0075). 없으면 stdin 이 TTY 인지로 정합니다 */
|
|
12
|
+
interface V0PromptOptions {
|
|
13
|
+
interactive?: boolean;
|
|
14
|
+
}
|
|
11
15
|
declare class V0Client {
|
|
12
16
|
convertCode(code: string, options?: {
|
|
13
17
|
preserveImports?: boolean;
|
|
14
18
|
}): Promise<string>;
|
|
15
19
|
convertFile(filePath: string, outputPath?: string): Promise<void>;
|
|
16
20
|
private showConversionSummary;
|
|
17
|
-
importFromUrl(): Promise<void>;
|
|
21
|
+
importFromUrl(opts?: V0PromptOptions): Promise<void>;
|
|
18
22
|
setupGitHubSync(): Promise<void>;
|
|
19
|
-
convertFromZip(): Promise<void>;
|
|
20
|
-
convertFromClipboard(): Promise<void>;
|
|
23
|
+
convertFromZip(opts?: V0PromptOptions): Promise<void>;
|
|
24
|
+
convertFromClipboard(opts?: V0PromptOptions): Promise<void>;
|
|
21
25
|
showGuide(): void;
|
|
22
26
|
}
|
|
23
27
|
declare function getV0Url(path?: string): string;
|
|
24
28
|
declare function isV0Code(code: string): boolean;
|
|
25
29
|
|
|
26
|
-
export { V0Client, getV0Url, isV0Code };
|
|
30
|
+
export { V0Client, type V0PromptOptions, getV0Url, isV0Code };
|
package/dist/v0.js
CHANGED