@reopt-ai/opt-ui 1.7.0 → 1.9.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/COMPONENT_CATALOG.md +222 -34
- package/README.md +70 -6
- package/dist/core/index.cjs +170 -155
- package/dist/core/index.d.cts +3 -2
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.js +3 -3
- package/dist/docs/02-components/01-core.md +223 -18
- package/dist/docs/02-components/02-visuals.md +1 -1
- package/dist/docs/02-components/03-shells.md +17 -16
- package/dist/docs/02-components/04-surfaces.md +1 -1
- package/dist/docs/02-components/index.md +4 -4
- package/dist/{field-sidebar-CB8vjvUM.d.ts → field-sidebar-B5vk3luQ.d.cts} +30 -3
- package/dist/{field-sidebar-BTZCBviA.d.cts.map → field-sidebar-B5vk3luQ.d.cts.map} +1 -1
- package/dist/{field-sidebar-Cs-J-5VE.js → field-sidebar-B7QkWvMG.js} +52 -17
- package/dist/{field-sidebar-Cs-J-5VE.js.map → field-sidebar-B7QkWvMG.js.map} +1 -1
- package/dist/{field-sidebar-BTZCBviA.d.cts → field-sidebar-Dk9gJGA_.d.ts} +30 -3
- package/dist/{field-sidebar-CB8vjvUM.d.ts.map → field-sidebar-Dk9gJGA_.d.ts.map} +1 -1
- package/dist/{field-sidebar-CzIQX70-.cjs → field-sidebar-mFHemxBz.cjs} +328 -293
- package/dist/{types-D0FlcYnM.d.ts → field-token-CSOrU5gl.d.cts} +66 -2
- package/dist/field-token-CSOrU5gl.d.cts.map +1 -0
- package/dist/{types-D0FlcYnM.d.cts → field-token-CSOrU5gl.d.ts} +66 -2
- package/dist/field-token-CSOrU5gl.d.ts.map +1 -0
- package/dist/{pagination-DWbvACuN.js → highlight-C2sfnJN8.js} +263 -11
- package/dist/highlight-C2sfnJN8.js.map +1 -0
- package/dist/{pagination-DjfxBcjX.cjs → highlight-CGcrYGMC.cjs} +284 -8
- package/dist/id-registry.cjs +98 -2
- package/dist/id-registry.d.cts.map +1 -1
- package/dist/id-registry.d.ts.map +1 -1
- package/dist/id-registry.js +98 -2
- package/dist/id-registry.js.map +1 -1
- package/dist/id-registry.json +202 -4
- package/dist/index.cjs +664 -643
- package/dist/index.d.cts +5 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/{shader-surface-BUPZ0P-n.js → key-pad-menu-BFd79JoS.js} +855 -19
- package/dist/key-pad-menu-BFd79JoS.js.map +1 -0
- package/dist/{shader-surface-DRrcLrWf.d.cts → key-pad-menu-D8OS_VCT.d.cts} +459 -3
- package/dist/key-pad-menu-D8OS_VCT.d.cts.map +1 -0
- package/dist/{shader-surface-Fav5K9UC.cjs → key-pad-menu-DoGskWbp.cjs} +1103 -201
- package/dist/{shader-surface-BfTP9c1Q.d.ts → key-pad-menu-EEb6Ho5h.d.ts} +459 -3
- package/dist/key-pad-menu-EEb6Ho5h.d.ts.map +1 -0
- package/dist/meta.cjs +641 -0
- package/dist/meta.d.cts.map +1 -1
- package/dist/meta.d.ts.map +1 -1
- package/dist/meta.js +641 -0
- package/dist/meta.js.map +1 -1
- package/dist/shells/index.cjs +1 -1
- package/dist/shells/index.d.cts +1 -1
- package/dist/shells/index.d.ts +1 -1
- package/dist/shells/index.js +1 -1
- package/package.json +2 -2
- package/dist/pagination-DWbvACuN.js.map +0 -1
- package/dist/shader-surface-BUPZ0P-n.js.map +0 -1
- package/dist/shader-surface-BfTP9c1Q.d.ts.map +0 -1
- package/dist/shader-surface-DRrcLrWf.d.cts.map +0 -1
- package/dist/types-D0FlcYnM.d.cts.map +0 -1
- package/dist/types-D0FlcYnM.d.ts.map +0 -1
package/dist/meta.js
CHANGED
|
@@ -1,4 +1,640 @@
|
|
|
1
1
|
const coreMetas = [
|
|
2
|
+
{
|
|
3
|
+
name: "FieldToken",
|
|
4
|
+
category: "core",
|
|
5
|
+
description: "필드 타입을 글리프 하나로 표현하는 토큰. 문자열·숫자·날짜·IP·지오 등 분석 스키마 타입마다 고정된 아이콘과 팔레트 슬롯을 부여해 필드 목록·컬럼 헤더·속성 테이블 전역에서 같은 어휘를 쓴다.",
|
|
6
|
+
slug: "field-token",
|
|
7
|
+
exports: [
|
|
8
|
+
"FieldToken",
|
|
9
|
+
"FIELD_TYPE_TOKENS",
|
|
10
|
+
"resolveFieldType"
|
|
11
|
+
],
|
|
12
|
+
props: { FieldToken: [
|
|
13
|
+
{
|
|
14
|
+
name: "type",
|
|
15
|
+
type: "FieldDataType",
|
|
16
|
+
required: true,
|
|
17
|
+
description: "필드 타입. 백엔드 원본 타입은 resolveFieldType으로 변환"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "size",
|
|
21
|
+
type: "\"xs\" | \"sm\" | \"md\" | \"lg\"",
|
|
22
|
+
default: "\"sm\"",
|
|
23
|
+
description: "토큰 크기"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "fill",
|
|
27
|
+
type: "\"subtle\" | \"solid\" | \"none\"",
|
|
28
|
+
default: "\"subtle\"",
|
|
29
|
+
description: "배경 채우기 방식"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "shape",
|
|
33
|
+
type: "\"square\" | \"circle\"",
|
|
34
|
+
default: "\"square\"",
|
|
35
|
+
description: "토큰 모양"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "title",
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "접근성 이름. 기본값은 타입 이름"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "decorative",
|
|
44
|
+
type: "boolean",
|
|
45
|
+
default: "false",
|
|
46
|
+
description: "인접 텍스트가 타입을 이미 말할 때 접근성 트리에서 제외"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "className",
|
|
50
|
+
type: "string",
|
|
51
|
+
description: "추가 CSS 클래스"
|
|
52
|
+
}
|
|
53
|
+
] },
|
|
54
|
+
ariaRole: "img",
|
|
55
|
+
testDescribe: "FieldToken"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "Facet",
|
|
59
|
+
category: "core",
|
|
60
|
+
description: "필드 값 분포를 카운트와 점유율 막대로 보여주고 그 행 자체가 필터가 되는 패싯. 긴 꼬리는 접어 두고 상위 값부터 읽힌다.",
|
|
61
|
+
slug: "facet",
|
|
62
|
+
exports: ["Facet", "FacetGroup"],
|
|
63
|
+
props: {
|
|
64
|
+
Facet: [
|
|
65
|
+
{
|
|
66
|
+
name: "item",
|
|
67
|
+
type: "FacetItem",
|
|
68
|
+
required: true,
|
|
69
|
+
description: "표시할 값"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "selected",
|
|
73
|
+
type: "boolean",
|
|
74
|
+
default: "false",
|
|
75
|
+
description: "선택 상태"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "onSelect",
|
|
79
|
+
type: "(id: string) => void",
|
|
80
|
+
description: "선택 콜백"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "showShare",
|
|
84
|
+
type: "boolean",
|
|
85
|
+
default: "true",
|
|
86
|
+
description: "점유율 막대 표시"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "share",
|
|
90
|
+
type: "number",
|
|
91
|
+
description: "0–1 점유율. 그룹이 계산해 내려줌"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "countFormatter",
|
|
95
|
+
type: "(count: number) => string",
|
|
96
|
+
description: "카운트 포맷터"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "layout",
|
|
100
|
+
type: "\"vertical\" | \"horizontal\"",
|
|
101
|
+
default: "\"vertical\"",
|
|
102
|
+
description: "배치 방향"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "labels",
|
|
106
|
+
type: "FacetGroupLabels",
|
|
107
|
+
description: "지역화 문자열"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "className",
|
|
111
|
+
type: "string",
|
|
112
|
+
description: "추가 CSS 클래스"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
FacetGroup: [
|
|
116
|
+
{
|
|
117
|
+
name: "items",
|
|
118
|
+
type: "FacetItem[]",
|
|
119
|
+
required: true,
|
|
120
|
+
description: "값 목록"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "selected",
|
|
124
|
+
type: "string[]",
|
|
125
|
+
description: "선택된 id. 생략 시 비제어"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "onSelectedChange",
|
|
129
|
+
type: "(next: string[]) => void",
|
|
130
|
+
description: "선택 변경 콜백"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "selection",
|
|
134
|
+
type: "\"single\" | \"multiple\" | \"none\"",
|
|
135
|
+
default: "\"multiple\"",
|
|
136
|
+
description: "선택 모드"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "layout",
|
|
140
|
+
type: "\"vertical\" | \"horizontal\"",
|
|
141
|
+
default: "\"vertical\"",
|
|
142
|
+
description: "배치 방향"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: "showShare",
|
|
146
|
+
type: "boolean",
|
|
147
|
+
default: "true",
|
|
148
|
+
description: "점유율 막대 표시"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "countFormatter",
|
|
152
|
+
type: "(count: number) => string",
|
|
153
|
+
description: "카운트 포맷터"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "max",
|
|
157
|
+
type: "number",
|
|
158
|
+
description: "접기 전 표시 행 수"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "total",
|
|
162
|
+
type: "number",
|
|
163
|
+
description: "점유율 분모. 생략 시 카운트 합"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "loading",
|
|
167
|
+
type: "boolean",
|
|
168
|
+
default: "false",
|
|
169
|
+
description: "로딩 상태"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "emptyState",
|
|
173
|
+
type: "ReactNode",
|
|
174
|
+
description: "빈 상태 렌더"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "labels",
|
|
178
|
+
type: "FacetGroupLabels",
|
|
179
|
+
description: "지역화 문자열"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "className",
|
|
183
|
+
type: "string",
|
|
184
|
+
description: "추가 CSS 클래스"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: "aria-label",
|
|
188
|
+
type: "string",
|
|
189
|
+
description: "그룹 접근성 이름"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
ariaRole: "group",
|
|
194
|
+
testDescribe: "Facet"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "Expression",
|
|
198
|
+
category: "core",
|
|
199
|
+
description: "조건을 폼이 아니라 문장으로 쓰고 그 자리에서 편집하는 표현식 절. 알림 규칙·세그먼트 필터처럼 읽어서 검증해야 하는 조건에 쓴다.",
|
|
200
|
+
slug: "expression",
|
|
201
|
+
exports: ["Expression", "ExpressionGroup"],
|
|
202
|
+
props: {
|
|
203
|
+
Expression: [
|
|
204
|
+
{
|
|
205
|
+
name: "description",
|
|
206
|
+
type: "ReactNode",
|
|
207
|
+
required: true,
|
|
208
|
+
description: "고정되는 절반 (WHEN, IS ABOVE …)"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "value",
|
|
212
|
+
type: "ReactNode",
|
|
213
|
+
description: "편집되는 절반"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "tone",
|
|
217
|
+
type: "ExpressionTone",
|
|
218
|
+
default: "\"accent\"",
|
|
219
|
+
description: "의미별 색상"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "active",
|
|
223
|
+
type: "boolean",
|
|
224
|
+
default: "false",
|
|
225
|
+
description: "편집기 열림 상태"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "invalid",
|
|
229
|
+
type: "boolean",
|
|
230
|
+
default: "false",
|
|
231
|
+
description: "유효하지 않은 절"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "disabled",
|
|
235
|
+
type: "boolean",
|
|
236
|
+
default: "false",
|
|
237
|
+
description: "비활성"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: "onClick",
|
|
241
|
+
type: "() => void",
|
|
242
|
+
description: "편집기 열기"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: "display",
|
|
246
|
+
type: "\"inline\" | \"stacked\"",
|
|
247
|
+
default: "\"inline\"",
|
|
248
|
+
description: "문장 흐름 유지 vs 값 아래 배치"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
name: "aria-label",
|
|
252
|
+
type: "string",
|
|
253
|
+
description: "접근성 이름"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "className",
|
|
257
|
+
type: "string",
|
|
258
|
+
description: "추가 CSS 클래스"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
ExpressionGroup: [
|
|
262
|
+
{
|
|
263
|
+
name: "children",
|
|
264
|
+
type: "ReactNode",
|
|
265
|
+
required: true,
|
|
266
|
+
description: "절들"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
name: "display",
|
|
270
|
+
type: "\"sentence\" | \"columns\"",
|
|
271
|
+
default: "\"sentence\"",
|
|
272
|
+
description: "문장 배치 vs 컬럼 정렬"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: "className",
|
|
276
|
+
type: "string",
|
|
277
|
+
description: "추가 CSS 클래스"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: "aria-label",
|
|
281
|
+
type: "string",
|
|
282
|
+
description: "그룹 접근성 이름"
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
ariaRole: "group",
|
|
287
|
+
testDescribe: "Expression"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: "TextTruncate",
|
|
291
|
+
category: "core",
|
|
292
|
+
description: "실제 폰트로 실제 가용 폭을 측정해 문자열의 식별력이 가장 낮은 부분을 잘라내는 생략. CSS가 못 하는 앞·중간·양끝 생략을 지원하고 전체 문자열은 접근성 트리에 남는다.",
|
|
293
|
+
slug: "text-truncate",
|
|
294
|
+
exports: ["TextTruncate"],
|
|
295
|
+
props: { TextTruncate: [
|
|
296
|
+
{
|
|
297
|
+
name: "text",
|
|
298
|
+
type: "string",
|
|
299
|
+
required: true,
|
|
300
|
+
description: "전체 문자열"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "truncation",
|
|
304
|
+
type: "TruncationSide",
|
|
305
|
+
default: "\"startEnd\"",
|
|
306
|
+
description: "생략 위치: end | start | middle | startEnd"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "ellipsis",
|
|
310
|
+
type: "string",
|
|
311
|
+
default: "\"…\"",
|
|
312
|
+
description: "생략 기호"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: "width",
|
|
316
|
+
type: "number",
|
|
317
|
+
description: "고정 폭(px). 생략 시 컨테이너 측정"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "children",
|
|
321
|
+
type: "(truncated: string) => React.ReactNode",
|
|
322
|
+
description: "잘린 문자열을 직접 렌더"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: "className",
|
|
326
|
+
type: "string",
|
|
327
|
+
description: "추가 CSS 클래스"
|
|
328
|
+
}
|
|
329
|
+
] },
|
|
330
|
+
testDescribe: "TextTruncate"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: "Highlight",
|
|
334
|
+
category: "core",
|
|
335
|
+
description: "검색어에 해당하는 구간을 <mark>로 표시. 긴 항목 우선 매칭이라 겹치는 검색어도 조각나지 않는다.",
|
|
336
|
+
slug: "highlight",
|
|
337
|
+
exports: ["Highlight"],
|
|
338
|
+
props: { Highlight: [
|
|
339
|
+
{
|
|
340
|
+
name: "text",
|
|
341
|
+
type: "string",
|
|
342
|
+
required: true,
|
|
343
|
+
description: "전체 텍스트"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
name: "search",
|
|
347
|
+
type: "string | string[]",
|
|
348
|
+
required: true,
|
|
349
|
+
description: "검색어 하나 또는 여러 개"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: "caseSensitive",
|
|
353
|
+
type: "boolean",
|
|
354
|
+
default: "false",
|
|
355
|
+
description: "대소문자 구분"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: "firstOnly",
|
|
359
|
+
type: "boolean",
|
|
360
|
+
default: "false",
|
|
361
|
+
description: "첫 일치만 표시"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: "className",
|
|
365
|
+
type: "string",
|
|
366
|
+
description: "추가 CSS 클래스"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "markClassName",
|
|
370
|
+
type: "string",
|
|
371
|
+
description: "mark 요소 추가 클래스"
|
|
372
|
+
}
|
|
373
|
+
] },
|
|
374
|
+
testDescribe: "Highlight"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
name: "LiveRegion",
|
|
378
|
+
category: "core",
|
|
379
|
+
description: "라이브 뷰의 변화를 스크린 리더에 읽어 주는 영역. 스로틀로 폭주를 요약하고 두 노드를 번갈아 써서 같은 문구도 다시 읽힌다.",
|
|
380
|
+
slug: "live-region",
|
|
381
|
+
exports: ["LiveRegion"],
|
|
382
|
+
props: { LiveRegion: [
|
|
383
|
+
{
|
|
384
|
+
name: "message",
|
|
385
|
+
type: "string",
|
|
386
|
+
required: true,
|
|
387
|
+
description: "안내할 문구"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
name: "nonce",
|
|
391
|
+
type: "string | number",
|
|
392
|
+
description: "문구가 같아도 다시 읽히게 하는 값 (카운터·배치 id)"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: "politeness",
|
|
396
|
+
type: "\"polite\" | \"assertive\"",
|
|
397
|
+
default: "\"polite\"",
|
|
398
|
+
description: "끼어들기 여부"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: "throttleMs",
|
|
402
|
+
type: "number",
|
|
403
|
+
default: "0",
|
|
404
|
+
description: "안내 병합 간격(ms)"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: "muted",
|
|
408
|
+
type: "boolean",
|
|
409
|
+
default: "false",
|
|
410
|
+
description: "안내 일시 중단"
|
|
411
|
+
}
|
|
412
|
+
] },
|
|
413
|
+
ariaRole: "status",
|
|
414
|
+
testDescribe: "LiveRegion"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: "ColorPalette",
|
|
418
|
+
category: "core",
|
|
419
|
+
description: "시각화 색 팔레트를 그 팔레트의 모습 그대로 보여 주고 고르게 하는 컴포넌트. 범주형은 블록, 순차·발산형은 그라디언트로 그려 데이터 종류를 그림이 말한다.",
|
|
420
|
+
slug: "color-palette",
|
|
421
|
+
exports: [
|
|
422
|
+
"ColorPaletteDisplay",
|
|
423
|
+
"ColorPalettePicker",
|
|
424
|
+
"THEME_PALETTES"
|
|
425
|
+
],
|
|
426
|
+
props: {
|
|
427
|
+
ColorPaletteDisplay: [
|
|
428
|
+
{
|
|
429
|
+
name: "palette",
|
|
430
|
+
type: "ColorPalette",
|
|
431
|
+
required: true,
|
|
432
|
+
description: "표시할 팔레트"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: "render",
|
|
436
|
+
type: "\"stops\" | \"gradient\"",
|
|
437
|
+
description: "블록 vs 그라디언트. 기본은 palette.kind에서 결정"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: "size",
|
|
441
|
+
type: "\"xs\" | \"sm\" | \"md\" | \"lg\"",
|
|
442
|
+
default: "\"sm\"",
|
|
443
|
+
description: "스와치 높이"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: "aria-label",
|
|
447
|
+
type: "string",
|
|
448
|
+
description: "접근성 이름"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
name: "className",
|
|
452
|
+
type: "string",
|
|
453
|
+
description: "추가 CSS 클래스"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
ColorPalettePicker: [
|
|
457
|
+
{
|
|
458
|
+
name: "palettes",
|
|
459
|
+
type: "ColorPalette[]",
|
|
460
|
+
required: true,
|
|
461
|
+
description: "선택지"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: "value",
|
|
465
|
+
type: "string",
|
|
466
|
+
description: "선택된 팔레트 id"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
name: "onValueChange",
|
|
470
|
+
type: "(id: string) => void",
|
|
471
|
+
description: "선택 콜백"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
name: "label",
|
|
475
|
+
type: "string",
|
|
476
|
+
default: "\"Colour palette\"",
|
|
477
|
+
description: "레이블"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
name: "hideLabel",
|
|
481
|
+
type: "boolean",
|
|
482
|
+
default: "false",
|
|
483
|
+
description: "레이블 시각적 숨김"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "size",
|
|
487
|
+
type: "\"xs\" | \"sm\" | \"md\" | \"lg\"",
|
|
488
|
+
default: "\"sm\"",
|
|
489
|
+
description: "스와치 높이"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
name: "disabled",
|
|
493
|
+
type: "boolean",
|
|
494
|
+
default: "false",
|
|
495
|
+
description: "비활성"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: "className",
|
|
499
|
+
type: "string",
|
|
500
|
+
description: "추가 CSS 클래스"
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
testDescribe: "ColorPalette"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
name: "InlineEdit",
|
|
508
|
+
category: "core",
|
|
509
|
+
description: "대시보드 제목·지표 이름처럼 읽히는 횟수가 훨씬 많은 값을 그 자리에서 고치는 편집. Enter 확정, Escape 되돌리기, 거절된 저장은 입력을 유지한다.",
|
|
510
|
+
slug: "inline-edit",
|
|
511
|
+
exports: ["InlineEdit"],
|
|
512
|
+
props: { InlineEdit: [
|
|
513
|
+
{
|
|
514
|
+
name: "value",
|
|
515
|
+
type: "string",
|
|
516
|
+
required: true,
|
|
517
|
+
description: "현재 값"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
name: "onSave",
|
|
521
|
+
type: "(next: string) => boolean | void | Promise<boolean | void>",
|
|
522
|
+
required: true,
|
|
523
|
+
description: "저장. false를 반환하면 거절하고 편집을 유지"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "as",
|
|
527
|
+
type: "\"span\" | \"h1\" | \"h2\" | \"h3\" | \"h4\"",
|
|
528
|
+
default: "\"span\"",
|
|
529
|
+
description: "읽기 모드 요소"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "size",
|
|
533
|
+
type: "\"sm\" | \"md\" | \"lg\" | \"xl\"",
|
|
534
|
+
default: "\"md\"",
|
|
535
|
+
description: "타이포 크기"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "placeholder",
|
|
539
|
+
type: "string",
|
|
540
|
+
description: "입력 자리표시자"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: "emptyText",
|
|
544
|
+
type: "string",
|
|
545
|
+
default: "\"Untitled\"",
|
|
546
|
+
description: "빈 값 표시"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
name: "disabled",
|
|
550
|
+
type: "boolean",
|
|
551
|
+
default: "false",
|
|
552
|
+
description: "편집 불가"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
name: "maxLength",
|
|
556
|
+
type: "number",
|
|
557
|
+
description: "최대 길이"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
name: "suffix",
|
|
561
|
+
type: "ReactNode",
|
|
562
|
+
description: "읽기 모드 텍스트 뒤 요소"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: "labels",
|
|
566
|
+
type: "InlineEditLabels",
|
|
567
|
+
description: "지역화 문자열"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
name: "className",
|
|
571
|
+
type: "string",
|
|
572
|
+
description: "추가 CSS 클래스"
|
|
573
|
+
}
|
|
574
|
+
] },
|
|
575
|
+
testDescribe: "InlineEdit"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
name: "KeyPadMenu",
|
|
579
|
+
category: "core",
|
|
580
|
+
description: "이름보다 그림으로 알아보기 쉬운 선택지를 타일로 고르는 메뉴. 내부는 실제 radio·checkbox라 키보드와 스크린 리더가 그대로 동작한다.",
|
|
581
|
+
slug: "key-pad-menu",
|
|
582
|
+
exports: ["KeyPadMenu"],
|
|
583
|
+
props: { KeyPadMenu: [
|
|
584
|
+
{
|
|
585
|
+
name: "items",
|
|
586
|
+
type: "KeyPadItem[]",
|
|
587
|
+
required: true,
|
|
588
|
+
description: "타일 목록"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
name: "label",
|
|
592
|
+
type: "string",
|
|
593
|
+
required: true,
|
|
594
|
+
description: "그룹 레이블"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: "selection",
|
|
598
|
+
type: "\"single\" | \"multiple\"",
|
|
599
|
+
default: "\"single\"",
|
|
600
|
+
description: "선택 모드. value·onValueChange의 형태를 결정"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "value",
|
|
604
|
+
type: "string | string[]",
|
|
605
|
+
description: "선택된 id"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: "onValueChange",
|
|
609
|
+
type: "((next: string) => void) | ((next: string[]) => void)",
|
|
610
|
+
description: "선택 콜백. value의 형태를 그대로 받는다"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "columns",
|
|
614
|
+
type: "number | \"auto\"",
|
|
615
|
+
default: "\"auto\"",
|
|
616
|
+
description: "행당 타일 수"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
name: "size",
|
|
620
|
+
type: "\"sm\" | \"md\"",
|
|
621
|
+
default: "\"md\"",
|
|
622
|
+
description: "타일 크기"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
name: "hideLabel",
|
|
626
|
+
type: "boolean",
|
|
627
|
+
default: "false",
|
|
628
|
+
description: "레전드 시각적 숨김"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
name: "className",
|
|
632
|
+
type: "string",
|
|
633
|
+
description: "추가 CSS 클래스"
|
|
634
|
+
}
|
|
635
|
+
] },
|
|
636
|
+
testDescribe: "KeyPadMenu"
|
|
637
|
+
},
|
|
2
638
|
{
|
|
3
639
|
name: "Text",
|
|
4
640
|
category: "core",
|
|
@@ -7775,6 +8411,11 @@ const messages = [
|
|
|
7775
8411
|
type: "(action: LogCellAction) => void",
|
|
7776
8412
|
description: "셀 값 포함/제외 필터"
|
|
7777
8413
|
},
|
|
8414
|
+
{
|
|
8415
|
+
name: "highlightTerms",
|
|
8416
|
+
type: "string[]",
|
|
8417
|
+
description: "셀 텍스트에서 표시할 검색어. 쿼리의 자유 텍스트만 넘긴다"
|
|
8418
|
+
},
|
|
7778
8419
|
{
|
|
7779
8420
|
name: "density",
|
|
7780
8421
|
type: "\"compact\" | \"normal\" | \"comfortable\"",
|