@bluewardai/react-ui 0.0.0-stage → 0.1.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 +14 -0
- package/LICENSE +21 -0
- package/NOTICE +8 -0
- package/README.md +70 -2
- package/dist/index.js +388 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +41 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
버전 번호 규칙: `주.부.수` (예: 0.1.0)
|
|
4
|
+
- 수(patch): 버그 수정
|
|
5
|
+
- 부(minor): 기능 추가 (기존 사용법은 그대로)
|
|
6
|
+
- 주(major): 기존 사용법이 바뀌는 변경
|
|
7
|
+
|
|
8
|
+
## 0.1.0 — 2026-11-19
|
|
9
|
+
|
|
10
|
+
첫 배포.
|
|
11
|
+
|
|
12
|
+
- 디자인 토큰: 색상, 간격, 반경, 글꼴, 그림자, 겹침 순서 (`styles.css`의 CSS 변수)
|
|
13
|
+
- 컴포넌트: `Button`, `IconButton`, `TextField`, `Field`, `Checkbox`, `RadioGroup`/`Radio`, `Switch`, `Badge`, `Spinner`, `Icon`
|
|
14
|
+
- 아이콘 34개 (`iconNames`로 목록 조회)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 rendez0829
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Blueward React UI
|
|
2
|
+
Package: @bluewardai/react-ui
|
|
3
|
+
Author and maintainer: rendez0829
|
|
4
|
+
Copyright (c) 2026 rendez0829.
|
|
5
|
+
Licensed under the MIT License. See LICENSE.
|
|
6
|
+
|
|
7
|
+
This package has no runtime dependencies other than its React peer dependency.
|
|
8
|
+
All components, styles, and icon shapes were written for this package.
|
package/README.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @bluewardai/react-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Blueward 업무 화면용 React 컴포넌트. React 외에 다른 라이브러리에 의존하지 않습니다.
|
|
4
|
+
|
|
5
|
+
## 설치
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @bluewardai/react-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
React 19가 필요합니다.
|
|
12
|
+
|
|
13
|
+
## 사용법
|
|
14
|
+
|
|
15
|
+
앱 시작 파일에서 스타일을 한 번 불러옵니다.
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
// src/main.jsx
|
|
19
|
+
import '@bluewardai/react-ui/styles.css'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
화면에서 컴포넌트를 import해서 씁니다.
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
import { useState } from 'react'
|
|
26
|
+
import { Button, TextField } from '@bluewardai/react-ui'
|
|
27
|
+
|
|
28
|
+
export function SearchBar({ onSearch }) {
|
|
29
|
+
const [keyword, setKeyword] = useState('')
|
|
30
|
+
return (
|
|
31
|
+
<div style={{ display: 'flex', gap: 8, alignItems: 'flex-end' }}>
|
|
32
|
+
<TextField label="거래처" value={keyword} onChange={(e) => setKeyword(e.target.value)} />
|
|
33
|
+
<Button variant="primary" icon="search" onClick={() => onSearch(keyword)}>
|
|
34
|
+
조회
|
|
35
|
+
</Button>
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 제공 항목
|
|
42
|
+
|
|
43
|
+
| 이름 | 설명 |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `Button` | 버튼 (primary · secondary · ghost · danger, sm · md · lg, 로딩) |
|
|
46
|
+
| `IconButton` | 아이콘만 있는 버튼 |
|
|
47
|
+
| `TextField` | 라벨·도움말·오류가 포함된 한 줄 입력 |
|
|
48
|
+
| `Field` | 직접 만든 입력 요소에 라벨·오류 틀을 씌우는 공통 틀 |
|
|
49
|
+
| `Checkbox` | 체크박스 (부분 선택 지원) |
|
|
50
|
+
| `RadioGroup`, `Radio` | 라디오 묶음 |
|
|
51
|
+
| `Switch` | 즉시 적용되는 켜기/끄기 |
|
|
52
|
+
| `Badge` | 상태 배지 |
|
|
53
|
+
| `Spinner` | 로딩 표시 |
|
|
54
|
+
| `Icon`, `iconNames` | 선 아이콘 34개 |
|
|
55
|
+
|
|
56
|
+
## 디자인 토큰
|
|
57
|
+
|
|
58
|
+
`styles.css`가 `:root`에 CSS 변수를 정의합니다. 앱 스타일에서도 같은 값을 쓸 수 있습니다.
|
|
59
|
+
|
|
60
|
+
```css
|
|
61
|
+
.panel {
|
|
62
|
+
padding: var(--space-16);
|
|
63
|
+
border: 1px solid var(--color-border-default);
|
|
64
|
+
border-radius: var(--radius-8);
|
|
65
|
+
color: var(--color-text-primary);
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## 라이선스
|
|
70
|
+
|
|
71
|
+
MIT © rendez0829
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as n, use as r, useId as i } from "react";
|
|
3
|
+
// src/utils/cx.js
|
|
4
|
+
function a(...e) {
|
|
5
|
+
return e.filter(Boolean).join(" ");
|
|
6
|
+
}
|
|
7
|
+
var o = {
|
|
8
|
+
badge: "bw-badge-RsuMz",
|
|
9
|
+
dot: "bw-dot-i0c-G",
|
|
10
|
+
success: "bw-success-u9JiS",
|
|
11
|
+
info: "bw-info-na6DQ",
|
|
12
|
+
warning: "bw-warning-nsGp-",
|
|
13
|
+
danger: "bw-danger-PD2hz",
|
|
14
|
+
neutral: "bw-neutral-lulSm"
|
|
15
|
+
};
|
|
16
|
+
// src/components/Badge/Badge.jsx
|
|
17
|
+
function s({ tone: n = "neutral", dot: r = !0, className: i, children: s, ...c }) {
|
|
18
|
+
return /* @__PURE__ */ t("span", {
|
|
19
|
+
className: a(o.badge, o[n], i),
|
|
20
|
+
...c,
|
|
21
|
+
children: [r && /* @__PURE__ */ e("span", {
|
|
22
|
+
className: o.dot,
|
|
23
|
+
"aria-hidden": "true"
|
|
24
|
+
}), s]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
// src/components/Icon/icons.js
|
|
28
|
+
var c = {
|
|
29
|
+
grid: "<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"/>",
|
|
30
|
+
file: "<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\"/><path d=\"M14 3v6h6\"/><path d=\"M8 13h8M8 17h5\"/>",
|
|
31
|
+
link: "<path d=\"M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1\"/><path d=\"M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1\"/>",
|
|
32
|
+
compare: "<path d=\"M7 4v16M17 4v16\"/><path d=\"M3 8l4-4 4 4\"/><path d=\"M13 16l4 4 4-4\"/>",
|
|
33
|
+
percent: "<path d=\"M19 5L5 19\"/><circle cx=\"7\" cy=\"7\" r=\"2.5\"/><circle cx=\"17\" cy=\"17\" r=\"2.5\"/>",
|
|
34
|
+
sliders: "<path d=\"M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12\"/><circle cx=\"16\" cy=\"6\" r=\"2\"/><circle cx=\"10\" cy=\"12\" r=\"2\"/><circle cx=\"18\" cy=\"18\" r=\"2\"/>",
|
|
35
|
+
search: "<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M20 20l-3.5-3.5\"/>",
|
|
36
|
+
bell: "<path d=\"M12 3.5v1.5\"/><path d=\"M7 16.5V11a5 5 0 0 1 10 0v5.5\"/><path d=\"M4.5 16.5h15\"/><path d=\"M10 20h4\"/>",
|
|
37
|
+
building: "<rect x=\"4\" y=\"3\" width=\"16\" height=\"18\" rx=\"1.5\"/><path d=\"M9 7h1M14 7h1M9 11h1M14 11h1M9 15h1M14 15h1\"/>",
|
|
38
|
+
check: "<path d=\"M5 12.5l4.5 4.5L19 7.5\"/>",
|
|
39
|
+
x: "<path d=\"M6 6l12 12M18 6L6 18\"/>",
|
|
40
|
+
plus: "<path d=\"M12 5v14M5 12h14\"/>",
|
|
41
|
+
minus: "<path d=\"M5 12h14\"/>",
|
|
42
|
+
calendar: "<rect x=\"3.5\" y=\"5\" width=\"17\" height=\"15.5\" rx=\"2\"/><path d=\"M3.5 10h17M8 3v4M16 3v4\"/>",
|
|
43
|
+
chevronDown: "<path d=\"M6 9l6 6 6-6\"/>",
|
|
44
|
+
chevronUp: "<path d=\"M6 15l6-6 6 6\"/>",
|
|
45
|
+
chevronLeft: "<path d=\"M15 6l-6 6 6 6\"/>",
|
|
46
|
+
chevronRight: "<path d=\"M9 6l6 6-6 6\"/>",
|
|
47
|
+
arrowRight: "<path d=\"M5 12h14M13 6l6 6-6 6\"/>",
|
|
48
|
+
arrowUp: "<path d=\"M12 19V5M6 11l6-6 6 6\"/>",
|
|
49
|
+
arrowDown: "<path d=\"M12 5v14M6 13l6 6 6-6\"/>",
|
|
50
|
+
alert: "<path d=\"M12 3l9.5 17H2.5z\"/><path d=\"M12 10v4M12 17.5v.01\"/>",
|
|
51
|
+
info: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 11v5M12 7.5v.01\"/>",
|
|
52
|
+
checkCircle: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M8 12.5l2.7 2.7L16 10\"/>",
|
|
53
|
+
xCircle: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M9 9l6 6M15 9l-6 6\"/>",
|
|
54
|
+
help: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17v.01\"/>",
|
|
55
|
+
upload: "<path d=\"M12 15V4M7 9l5-5 5 5\"/><path d=\"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3\"/>",
|
|
56
|
+
download: "<path d=\"M12 4v11M7 10l5 5 5-5\"/><path d=\"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3\"/>",
|
|
57
|
+
filter: "<path d=\"M4 5h16l-6 7.5V19l-4-2v-4.5z\"/>",
|
|
58
|
+
more: "<circle cx=\"5.5\" cy=\"12\" r=\"1\"/><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"18.5\" cy=\"12\" r=\"1\"/>",
|
|
59
|
+
refresh: "<path d=\"M20 12a8 8 0 1 1-2.34-5.66L20 8.5\"/><path d=\"M20 4v4.5h-4.5\"/>",
|
|
60
|
+
columns: "<rect x=\"3.5\" y=\"4\" width=\"17\" height=\"16\" rx=\"2\"/><path d=\"M9.5 4v16M14.5 4v16\"/>",
|
|
61
|
+
sort: "<path d=\"M8 4v16M4 8l4-4 4 4M16 20V4M12 16l4 4 4-4\"/>",
|
|
62
|
+
external: "<path d=\"M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\"/>"
|
|
63
|
+
}, l = Object.keys(c);
|
|
64
|
+
function u({ name: t, size: n = 20, label: r, className: i, ...a }) {
|
|
65
|
+
let o = c[t];
|
|
66
|
+
return o ? /* @__PURE__ */ e("svg", {
|
|
67
|
+
width: n,
|
|
68
|
+
height: n,
|
|
69
|
+
viewBox: "0 0 24 24",
|
|
70
|
+
fill: "none",
|
|
71
|
+
stroke: "currentColor",
|
|
72
|
+
strokeWidth: "1.8",
|
|
73
|
+
strokeLinecap: "round",
|
|
74
|
+
strokeLinejoin: "round",
|
|
75
|
+
className: i,
|
|
76
|
+
role: r ? "img" : void 0,
|
|
77
|
+
"aria-label": r,
|
|
78
|
+
"aria-hidden": !r || void 0,
|
|
79
|
+
focusable: "false",
|
|
80
|
+
dangerouslySetInnerHTML: { __html: o },
|
|
81
|
+
...a
|
|
82
|
+
}) : null;
|
|
83
|
+
}
|
|
84
|
+
var d = {
|
|
85
|
+
spinner: "bw-spinner-GpFZS",
|
|
86
|
+
spin: "bw-spin-LFfLH"
|
|
87
|
+
};
|
|
88
|
+
// src/components/Spinner/Spinner.jsx
|
|
89
|
+
function f({ size: t = 16, label: n, className: r }) {
|
|
90
|
+
return /* @__PURE__ */ e("span", {
|
|
91
|
+
className: a(d.spinner, r),
|
|
92
|
+
style: {
|
|
93
|
+
width: t,
|
|
94
|
+
height: t
|
|
95
|
+
},
|
|
96
|
+
role: n ? "status" : void 0,
|
|
97
|
+
"aria-label": n,
|
|
98
|
+
"aria-hidden": !n || void 0
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
var p = {
|
|
102
|
+
button: "bw-button-2ZuB7",
|
|
103
|
+
label: "bw-label-UJ3Zt",
|
|
104
|
+
sm: "bw-sm-NhG0g",
|
|
105
|
+
md: "bw-md-hH4h3",
|
|
106
|
+
lg: "bw-lg-2plQf",
|
|
107
|
+
fullWidth: "bw-fullWidth-36oJT",
|
|
108
|
+
primary: "bw-primary-s1sM6",
|
|
109
|
+
secondary: "bw-secondary-R0waJ",
|
|
110
|
+
ghost: "bw-ghost-1KINV",
|
|
111
|
+
danger: "bw-danger-V4fX8"
|
|
112
|
+
}, m = {
|
|
113
|
+
sm: 16,
|
|
114
|
+
md: 18,
|
|
115
|
+
lg: 20
|
|
116
|
+
};
|
|
117
|
+
function h({ variant: n = "secondary", size: r = "md", icon: i, loading: o = !1, fullWidth: s = !1, disabled: c = !1, type: l = "button", className: d, children: h, ref: g, ..._ }) {
|
|
118
|
+
let v = c || o;
|
|
119
|
+
return /* @__PURE__ */ t("button", {
|
|
120
|
+
ref: g,
|
|
121
|
+
type: l,
|
|
122
|
+
className: a(p.button, p[n], p[r], s && p.fullWidth, d),
|
|
123
|
+
disabled: v,
|
|
124
|
+
"aria-busy": o || void 0,
|
|
125
|
+
..._,
|
|
126
|
+
children: [o ? /* @__PURE__ */ e(f, { size: m[r] - 2 }) : i && /* @__PURE__ */ e(u, {
|
|
127
|
+
name: i,
|
|
128
|
+
size: m[r]
|
|
129
|
+
}), h != null && /* @__PURE__ */ e("span", {
|
|
130
|
+
className: p.label,
|
|
131
|
+
children: h
|
|
132
|
+
})]
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
// src/utils/mergeRefs.js
|
|
136
|
+
function g(...e) {
|
|
137
|
+
return (t) => {
|
|
138
|
+
for (let n of e) typeof n == "function" ? n(t) : n && (n.current = t);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
var _ = {
|
|
142
|
+
checkbox: "bw-checkbox-lSeQj",
|
|
143
|
+
input: "bw-input-2kt-h",
|
|
144
|
+
box: "bw-box-OCPee",
|
|
145
|
+
mark: "bw-mark-MRzLE",
|
|
146
|
+
disabled: "bw-disabled-x7-eg",
|
|
147
|
+
label: "bw-label-cwRtI"
|
|
148
|
+
};
|
|
149
|
+
// src/components/Checkbox/Checkbox.jsx
|
|
150
|
+
function v({ checked: n, indeterminate: r = !1, disabled: i, className: o, children: s, ref: c, ...l }) {
|
|
151
|
+
return /* @__PURE__ */ t("label", {
|
|
152
|
+
className: a(_.checkbox, i && _.disabled, o),
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ e("input", {
|
|
155
|
+
ref: g((e) => {
|
|
156
|
+
e && (e.indeterminate = r);
|
|
157
|
+
}, c),
|
|
158
|
+
type: "checkbox",
|
|
159
|
+
className: _.input,
|
|
160
|
+
checked: n,
|
|
161
|
+
disabled: i,
|
|
162
|
+
...l
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ e("span", {
|
|
165
|
+
className: _.box,
|
|
166
|
+
"aria-hidden": "true",
|
|
167
|
+
children: /* @__PURE__ */ e(u, {
|
|
168
|
+
name: r ? "minus" : "check",
|
|
169
|
+
size: 14,
|
|
170
|
+
className: _.mark
|
|
171
|
+
})
|
|
172
|
+
}),
|
|
173
|
+
s != null && /* @__PURE__ */ e("span", {
|
|
174
|
+
className: _.label,
|
|
175
|
+
children: s
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
var y = {
|
|
181
|
+
field: "bw-field-m7I4B",
|
|
182
|
+
label: "bw-label-LAQio",
|
|
183
|
+
required: "bw-required-8HCWC",
|
|
184
|
+
message: "bw-message-RGBLS",
|
|
185
|
+
error: "bw-error-m0uol"
|
|
186
|
+
};
|
|
187
|
+
// src/components/Field/Field.jsx
|
|
188
|
+
function b({ id: n, label: r, required: o = !1, helperText: s, error: c, className: l, children: u }) {
|
|
189
|
+
let d = i(), f = n ?? d, p = `${f}-message`, m = c || s, h = {
|
|
190
|
+
id: f,
|
|
191
|
+
"aria-invalid": c ? !0 : void 0,
|
|
192
|
+
"aria-describedby": m ? p : void 0,
|
|
193
|
+
"aria-required": o || void 0
|
|
194
|
+
};
|
|
195
|
+
return /* @__PURE__ */ t("div", {
|
|
196
|
+
className: a(y.field, l),
|
|
197
|
+
children: [
|
|
198
|
+
r && /* @__PURE__ */ t("label", {
|
|
199
|
+
htmlFor: f,
|
|
200
|
+
className: y.label,
|
|
201
|
+
children: [r, o && /* @__PURE__ */ e("span", {
|
|
202
|
+
className: y.required,
|
|
203
|
+
"aria-hidden": "true",
|
|
204
|
+
children: "*"
|
|
205
|
+
})]
|
|
206
|
+
}),
|
|
207
|
+
u(h),
|
|
208
|
+
m && /* @__PURE__ */ e("p", {
|
|
209
|
+
id: p,
|
|
210
|
+
className: a(y.message, c && y.error),
|
|
211
|
+
children: m
|
|
212
|
+
})
|
|
213
|
+
]
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
var x = {
|
|
217
|
+
iconButton: "bw-iconButton-JAF-a",
|
|
218
|
+
sm: "bw-sm--tgrW",
|
|
219
|
+
md: "bw-md-Rq8Ph",
|
|
220
|
+
ghost: "bw-ghost-Xo7aA",
|
|
221
|
+
secondary: "bw-secondary-bawOo"
|
|
222
|
+
};
|
|
223
|
+
// src/components/IconButton/IconButton.jsx
|
|
224
|
+
function S({ icon: t, label: n, variant: r = "ghost", size: i = "md", type: o = "button", className: s, ref: c, ...l }) {
|
|
225
|
+
return /* @__PURE__ */ e("button", {
|
|
226
|
+
ref: c,
|
|
227
|
+
type: o,
|
|
228
|
+
"aria-label": n,
|
|
229
|
+
title: n,
|
|
230
|
+
className: a(x.iconButton, x[r], x[i], s),
|
|
231
|
+
...l,
|
|
232
|
+
children: /* @__PURE__ */ e(u, {
|
|
233
|
+
name: t,
|
|
234
|
+
size: i === "sm" ? 16 : 20
|
|
235
|
+
})
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
var C = {
|
|
239
|
+
group: "bw-group-oi329",
|
|
240
|
+
legend: "bw-legend-Touvj",
|
|
241
|
+
options: "bw-options-ciXxq",
|
|
242
|
+
horizontal: "bw-horizontal-1Ovgu",
|
|
243
|
+
vertical: "bw-vertical-WksGU",
|
|
244
|
+
radio: "bw-radio-MfgN-",
|
|
245
|
+
input: "bw-input-7R8ZN",
|
|
246
|
+
circle: "bw-circle-6v2W0",
|
|
247
|
+
disabled: "bw-disabled-0-cna",
|
|
248
|
+
error: "bw-error-wem7t"
|
|
249
|
+
}, w = n(null);
|
|
250
|
+
function T({ label: n, name: r, value: o, onChange: s, direction: c = "horizontal", disabled: l = !1, error: u, className: d, children: f }) {
|
|
251
|
+
let p = i(), m = `${p}-error`;
|
|
252
|
+
return /* @__PURE__ */ t("fieldset", {
|
|
253
|
+
className: a(C.group, d),
|
|
254
|
+
disabled: l,
|
|
255
|
+
"aria-invalid": u ? !0 : void 0,
|
|
256
|
+
"aria-describedby": u ? m : void 0,
|
|
257
|
+
children: [
|
|
258
|
+
n && /* @__PURE__ */ e("legend", {
|
|
259
|
+
className: C.legend,
|
|
260
|
+
children: n
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ e("div", {
|
|
263
|
+
className: a(C.options, C[c]),
|
|
264
|
+
children: /* @__PURE__ */ e(w, {
|
|
265
|
+
value: {
|
|
266
|
+
name: r ?? p,
|
|
267
|
+
value: o,
|
|
268
|
+
onChange: s
|
|
269
|
+
},
|
|
270
|
+
children: f
|
|
271
|
+
})
|
|
272
|
+
}),
|
|
273
|
+
u && /* @__PURE__ */ e("p", {
|
|
274
|
+
id: m,
|
|
275
|
+
className: C.error,
|
|
276
|
+
children: u
|
|
277
|
+
})
|
|
278
|
+
]
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
function E({ value: n, disabled: i, className: o, children: s }) {
|
|
282
|
+
let c = r(w);
|
|
283
|
+
if (!c) throw Error("Radio는 RadioGroup 안에서만 사용할 수 있습니다.");
|
|
284
|
+
return /* @__PURE__ */ t("label", {
|
|
285
|
+
className: a(C.radio, i && C.disabled, o),
|
|
286
|
+
children: [
|
|
287
|
+
/* @__PURE__ */ e("input", {
|
|
288
|
+
type: "radio",
|
|
289
|
+
className: C.input,
|
|
290
|
+
name: c.name,
|
|
291
|
+
value: n,
|
|
292
|
+
checked: c.value === n,
|
|
293
|
+
disabled: i,
|
|
294
|
+
onChange: () => c.onChange?.(n)
|
|
295
|
+
}),
|
|
296
|
+
/* @__PURE__ */ e("span", {
|
|
297
|
+
className: C.circle,
|
|
298
|
+
"aria-hidden": "true"
|
|
299
|
+
}),
|
|
300
|
+
/* @__PURE__ */ e("span", {
|
|
301
|
+
className: C.label,
|
|
302
|
+
children: s
|
|
303
|
+
})
|
|
304
|
+
]
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
var D = {
|
|
308
|
+
switch: "bw-switch-hgdMu",
|
|
309
|
+
input: "bw-input-5BPNu",
|
|
310
|
+
track: "bw-track-7ObdZ",
|
|
311
|
+
knob: "bw-knob-vKNOc",
|
|
312
|
+
disabled: "bw-disabled-2aZ0V",
|
|
313
|
+
label: "bw-label-LrH7V"
|
|
314
|
+
};
|
|
315
|
+
// src/components/Switch/Switch.jsx
|
|
316
|
+
function O({ checked: n, disabled: r, className: i, children: o, ref: s, ...c }) {
|
|
317
|
+
return /* @__PURE__ */ t("label", {
|
|
318
|
+
className: a(D.switch, r && D.disabled, i),
|
|
319
|
+
children: [
|
|
320
|
+
/* @__PURE__ */ e("input", {
|
|
321
|
+
ref: s,
|
|
322
|
+
type: "checkbox",
|
|
323
|
+
role: "switch",
|
|
324
|
+
className: D.input,
|
|
325
|
+
checked: n,
|
|
326
|
+
disabled: r,
|
|
327
|
+
...c
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ e("span", {
|
|
330
|
+
className: D.track,
|
|
331
|
+
"aria-hidden": "true",
|
|
332
|
+
children: /* @__PURE__ */ e("span", { className: D.knob })
|
|
333
|
+
}),
|
|
334
|
+
o != null && /* @__PURE__ */ e("span", {
|
|
335
|
+
className: D.label,
|
|
336
|
+
children: o
|
|
337
|
+
})
|
|
338
|
+
]
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
var k = {
|
|
342
|
+
box: "bw-box-uOcZi",
|
|
343
|
+
md: "bw-md-fIzHt",
|
|
344
|
+
lg: "bw-lg-fOSc9",
|
|
345
|
+
input: "bw-input-RL-My",
|
|
346
|
+
icon: "bw-icon-ZSvhD",
|
|
347
|
+
suffix: "bw-suffix-yUKcd",
|
|
348
|
+
invalid: "bw-invalid-DJ4jM",
|
|
349
|
+
readOnly: "bw-readOnly-nyGcj",
|
|
350
|
+
disabled: "bw-disabled-XqQQ1"
|
|
351
|
+
};
|
|
352
|
+
// src/components/TextField/TextField.jsx
|
|
353
|
+
function A({ label: n, required: r, helperText: i, error: o, size: s = "md", icon: c, suffix: l, id: d, className: f, disabled: p, readOnly: m, ref: h, ...g }) {
|
|
354
|
+
return /* @__PURE__ */ e(b, {
|
|
355
|
+
id: d,
|
|
356
|
+
label: n,
|
|
357
|
+
required: r,
|
|
358
|
+
helperText: i,
|
|
359
|
+
error: o,
|
|
360
|
+
className: f,
|
|
361
|
+
children: (n) => /* @__PURE__ */ t("div", {
|
|
362
|
+
className: a(k.box, k[s], o && k.invalid, p && k.disabled, m && k.readOnly),
|
|
363
|
+
children: [
|
|
364
|
+
c && /* @__PURE__ */ e(u, {
|
|
365
|
+
name: c,
|
|
366
|
+
size: 16,
|
|
367
|
+
className: k.icon
|
|
368
|
+
}),
|
|
369
|
+
/* @__PURE__ */ e("input", {
|
|
370
|
+
ref: h,
|
|
371
|
+
className: k.input,
|
|
372
|
+
disabled: p,
|
|
373
|
+
readOnly: m,
|
|
374
|
+
required: r,
|
|
375
|
+
...n,
|
|
376
|
+
...g
|
|
377
|
+
}),
|
|
378
|
+
l && /* @__PURE__ */ e("span", {
|
|
379
|
+
className: k.suffix,
|
|
380
|
+
children: l
|
|
381
|
+
})
|
|
382
|
+
]
|
|
383
|
+
})
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
export { s as Badge, h as Button, v as Checkbox, b as Field, u as Icon, S as IconButton, E as Radio, T as RadioGroup, f as Spinner, O as Switch, A as TextField, l as iconNames };
|
|
387
|
+
|
|
388
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["styles","styles","styles","styles","styles","styles","styles","styles","styles","cx","names","Badge_module_default","Badge","rest","tone","className","dot","children","icons","iconNames","Icon","body","name","size","label","Spinner_module_default","Spinner","Button_module_default","iconSize","Button","isDisabled","disabled","loading","variant","fullWidth","icon","mergeRefs","refs","ref","element","Checkbox_module_default","Checkbox","indeterminate","Field_module_default","Field","autoId","useId","controlId","id","messageId","message","error","helperText","control","required","IconButton_module_default","IconButton","Radio_module_default","RadioContext","createContext","RadioGroup","autoName","errorId","direction","Radio","group","use","value","Switch_module_default","\"switch\"","Switch","TextField_module_default","TextField","inputProps","readOnly","suffix"],"sources":["../src/utils/cx.js","../src/components/Badge/Badge.jsx","../src/components/Icon/icons.js","../src/components/Icon/Icon.jsx","../src/components/Spinner/Spinner.jsx","../src/components/Button/Button.jsx","../src/utils/mergeRefs.js","../src/components/Checkbox/Checkbox.jsx","../src/components/Field/Field.jsx","../src/components/IconButton/IconButton.jsx","../src/components/Radio/Radio.jsx","../src/components/Switch/Switch.jsx","../src/components/TextField/TextField.jsx"],"sourcesContent":["/**\n * cx.js — CSS 클래스 이름을 합쳐 주는 작은 도우미 함수\n *\n * 컴포넌트는 상황에 따라 여러 클래스를 붙인다.\n * 예) 버튼이면 \"기본 모양\" + \"파란색\" + \"큰 크기\" + (전체 너비일 때만) \"전체 너비\"\n *\n * 조건부 클래스를 직접 문자열로 이어 붙이면 \"undefined\"나 \"false\"가 섞이기 쉬우므로,\n * 값이 있는 것(참값)만 골라 공백 하나로 이어 붙인다.\n *\n * 사용 예:\n * cx('a', isBig && 'b', undefined, 'c') // 결과: \"a b c\" (isBig이 true일 때)\n * cx('a', false && 'b') // 결과: \"a\"\n */\nexport function cx(...names) {\n // ...names : 넘어온 인자들을 배열 하나로 모은다 (나머지 매개변수 문법).\n // filter(Boolean) : false, null, undefined, '' 같은 \"거짓\" 값을 걸러낸다.\n return names.filter(Boolean).join(' ')\n}\n","/**\n * Badge.jsx — 상태 표시 배지 (발행완료, 전송중, 실패 …)\n *\n * ▣ 규칙\n * 상태는 색만으로 구분하지 않고 항상 글자를 함께 쓴다(색을 구분하기 어려운 사용자를 위해).\n * tone(색 계열)은 의미로 고른다.\n * success: 완료·정상 info: 진행 중 warning: 주의·대기 danger: 실패·오류 neutral: 임시저장·기타\n *\n * ▣ 사용 예\n * <Badge tone=\"success\">발행완료</Badge>\n * <Badge tone=\"danger\">전송실패</Badge>\n * <Badge tone=\"neutral\" dot={false}>임시저장</Badge>\n */\nimport { cx } from '../../utils/cx.js'\nimport styles from './Badge.module.css'\n\n/**\n * @param {object} props\n * @param {'success'|'info'|'warning'|'danger'|'neutral'} [props.tone='neutral'] 색 계열\n * @param {boolean} [props.dot=true] 글자 앞 작은 점 표시\n * @param {React.ReactNode} props.children 표시 글자\n */\nexport function Badge({ tone = 'neutral', dot = true, className, children, ...rest }) {\n return (\n <span className={cx(styles.badge, styles[tone], className)} {...rest}>\n {dot && <span className={styles.dot} aria-hidden=\"true\" />}\n {children}\n </span>\n )\n}\n","/**\n * icons.js — 아이콘 도형 데이터 (이 라이브러리에서 직접 그린 것)\n *\n * 각 값은 <svg viewBox=\"0 0 24 24\"> 안에 들어갈 도형(path, rect, circle) 문자열이다.\n * Icon 컴포넌트가 선 굵기 1.8, 둥근 끝, 색은 currentColor로 그려 준다.\n *\n * ▣ 새 아이콘을 추가할 때\n * - 24x24 격자 안에 2~3px 여백을 두고 선(stroke)만으로 그린다(채우기 없음).\n * - 다른 아이콘 세트의 도형 데이터를 복사해 오지 않는다. 라이선스 고지 의무가 생길 수 있다.\n * (MIT 라이선스 아이콘을 쓰려면 THIRD_PARTY_NOTICES.md에 출처를 함께 적는다)\n * - 키 이름은 낙타표기(chevronDown)로 하고, 문서 사이트 아이콘 목록에서 모양을 확인한다.\n */\nexport const icons = {\n grid: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"/>',\n file: '<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\"/><path d=\"M14 3v6h6\"/><path d=\"M8 13h8M8 17h5\"/>',\n link: '<path d=\"M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1\"/><path d=\"M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1\"/>',\n compare: '<path d=\"M7 4v16M17 4v16\"/><path d=\"M3 8l4-4 4 4\"/><path d=\"M13 16l4 4 4-4\"/>',\n percent: '<path d=\"M19 5L5 19\"/><circle cx=\"7\" cy=\"7\" r=\"2.5\"/><circle cx=\"17\" cy=\"17\" r=\"2.5\"/>',\n sliders: '<path d=\"M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12\"/><circle cx=\"16\" cy=\"6\" r=\"2\"/><circle cx=\"10\" cy=\"12\" r=\"2\"/><circle cx=\"18\" cy=\"18\" r=\"2\"/>',\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M20 20l-3.5-3.5\"/>',\n // 종: 위 손잡이 + 곧은 몸통 + 넓은 받침 + 아래 추\n bell: '<path d=\"M12 3.5v1.5\"/><path d=\"M7 16.5V11a5 5 0 0 1 10 0v5.5\"/><path d=\"M4.5 16.5h15\"/><path d=\"M10 20h4\"/>',\n building: '<rect x=\"4\" y=\"3\" width=\"16\" height=\"18\" rx=\"1.5\"/><path d=\"M9 7h1M14 7h1M9 11h1M14 11h1M9 15h1M14 15h1\"/>',\n check: '<path d=\"M5 12.5l4.5 4.5L19 7.5\"/>',\n x: '<path d=\"M6 6l12 12M18 6L6 18\"/>',\n plus: '<path d=\"M12 5v14M5 12h14\"/>',\n minus: '<path d=\"M5 12h14\"/>',\n calendar: '<rect x=\"3.5\" y=\"5\" width=\"17\" height=\"15.5\" rx=\"2\"/><path d=\"M3.5 10h17M8 3v4M16 3v4\"/>',\n chevronDown: '<path d=\"M6 9l6 6 6-6\"/>',\n chevronUp: '<path d=\"M6 15l6-6 6 6\"/>',\n chevronLeft: '<path d=\"M15 6l-6 6 6 6\"/>',\n chevronRight: '<path d=\"M9 6l6 6-6 6\"/>',\n arrowRight: '<path d=\"M5 12h14M13 6l6 6-6 6\"/>',\n arrowUp: '<path d=\"M12 19V5M6 11l6-6 6 6\"/>',\n arrowDown: '<path d=\"M12 5v14M6 13l6 6 6-6\"/>',\n alert: '<path d=\"M12 3l9.5 17H2.5z\"/><path d=\"M12 10v4M12 17.5v.01\"/>',\n info: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 11v5M12 7.5v.01\"/>',\n checkCircle: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M8 12.5l2.7 2.7L16 10\"/>',\n xCircle: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M9 9l6 6M15 9l-6 6\"/>',\n help: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17v.01\"/>',\n upload: '<path d=\"M12 15V4M7 9l5-5 5 5\"/><path d=\"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3\"/>',\n download: '<path d=\"M12 4v11M7 10l5 5 5-5\"/><path d=\"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3\"/>',\n filter: '<path d=\"M4 5h16l-6 7.5V19l-4-2v-4.5z\"/>',\n more: '<circle cx=\"5.5\" cy=\"12\" r=\"1\"/><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"18.5\" cy=\"12\" r=\"1\"/>',\n refresh: '<path d=\"M20 12a8 8 0 1 1-2.34-5.66L20 8.5\"/><path d=\"M20 4v4.5h-4.5\"/>',\n columns: '<rect x=\"3.5\" y=\"4\" width=\"17\" height=\"16\" rx=\"2\"/><path d=\"M9.5 4v16M14.5 4v16\"/>',\n sort: '<path d=\"M8 4v16M4 8l4-4 4 4M16 20V4M12 16l4 4 4-4\"/>',\n external: '<path d=\"M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\"/>',\n}\n","/**\n * Icon.jsx — 선(라인) 아이콘 컴포넌트\n *\n * ▣ React 기초: \"컴포넌트\"란?\n * 화면 조각을 돌려주는 함수다. 함수 이름은 대문자로 시작하고,\n * 다른 곳에서 <Icon name=\"search\" /> 처럼 HTML 태그처럼 쓴다.\n * 태그에 적은 속성(name=\"search\")은 함수의 첫 번째 인자 객체(props)로 들어온다.\n *\n * ▣ 이 컴포넌트가 하는 일\n * icons.js에 등록된 SVG 도형을 이름으로 찾아 <svg>로 그린다.\n * 색은 직접 정하지 않고 currentColor(부모 요소의 글자색)를 따른다.\n * 그래서 버튼 글자색이 바뀌면 아이콘 색도 자동으로 같이 바뀐다.\n *\n * ▣ 사용 예\n * <Icon name=\"search\" /> // 장식용 (스크린리더가 읽지 않음)\n * <Icon name=\"alert\" label=\"경고\" size={16} /> // 의미가 있는 아이콘 (스크린리더가 \"경고\"라고 읽음)\n */\nimport { icons } from './icons.js'\n\n/** 등록된 아이콘 이름 목록. 문서 사이트의 아이콘 목록 화면에서 쓴다. */\nexport const iconNames = Object.keys(icons)\n\n/**\n * @param {object} props\n * @param {string} props.name 아이콘 이름 (icons.js의 키. 예: 'search', 'calendar')\n * @param {number} [props.size=20] 가로·세로 크기(px)\n * @param {string} [props.label] 접근성 이름. 아이콘만으로 의미를 전달할 때만 넣는다.\n * @param {string} [props.className] 바깥에서 추가로 붙일 CSS 클래스\n *\n * `...rest` : 위에서 이름을 꺼낸 것 외의 나머지 속성을 모두 모은 객체.\n * 아래 <svg {...rest}>로 그대로 넘겨서 style, onClick 등도 쓸 수 있게 한다.\n */\nexport function Icon({ name, size = 20, label, className, ...rest }) {\n const body = icons[name]\n\n // 등록되지 않은 이름이면 아무것도 그리지 않는다.\n // (React 컴포넌트에서 null을 돌려주면 \"화면에 아무것도 없음\"이라는 뜻)\n if (!body) return null\n\n // 아래의 <svg ...> 부분이 JSX 문법이다. HTML처럼 보이지만 JavaScript 안에 쓰는 화면 표현이다.\n // 중괄호 { } 안에는 JavaScript 값을 넣는다. 예) width={size} → size 변수 값이 들어간다.\n // HTML과 다른 점: class 대신 className, stroke-width 대신 strokeWidth 처럼 낙타표기를 쓴다.\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.8\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={className}\n // 접근성: label이 있으면 \"그림(img)\"으로 읽히고, 없으면 스크린리더에서 완전히 숨긴다.\n role={label ? 'img' : undefined}\n aria-label={label}\n aria-hidden={label ? undefined : true}\n // 일부 브라우저에서 SVG가 Tab 키 포커스를 받는 것을 막는다.\n focusable=\"false\"\n // icons.js의 도형 문자열을 그대로 <svg> 안에 넣는다.\n // 우리가 직접 작성한 고정 문자열만 넣으므로 안전하다. (사용자 입력을 넣으면 절대 안 된다)\n dangerouslySetInnerHTML={{ __html: body }}\n {...rest}\n />\n )\n}\n","/**\n * Spinner.jsx — 빙글빙글 도는 로딩 표시\n *\n * 테두리 4면 중 오른쪽 한 면만 투명하게 만든 원을 CSS 애니메이션으로 회전시킨다.\n * 색은 부모 글자색(currentColor)을 따른다. 그래서 파란 버튼 안에서는 흰색, 흰 화면에서는 글자색으로 보인다.\n *\n * 사용 예:\n * <Spinner /> // 버튼 안 등 장식용\n * <Spinner size={24} label=\"불러오는 중\" /> // 단독으로 쓸 때는 label을 넣어 스크린리더에 상태를 알린다\n */\n\n// CSS Modules: 'Spinner.module.css'를 불러오면 styles 객체가 생긴다.\n// styles.spinner 는 실제로는 \"bw-spinner-a1B2c\" 같은 고유한 이름으로 바뀌어 있어서,\n// 다른 컴포넌트나 사용하는 앱의 CSS와 이름이 겹쳐 깨지는 일이 없다.\nimport { cx } from '../../utils/cx.js'\nimport styles from './Spinner.module.css'\n\n/**\n * @param {object} props\n * @param {number} [props.size=16] 지름(px)\n * @param {string} [props.label] 접근성 이름. 있으면 role=\"status\"로 읽힌다.\n * @param {string} [props.className]\n */\nexport function Spinner({ size = 16, label, className }) {\n return (\n <span\n className={cx(styles.spinner, className)}\n // style={{ ... }} : 바깥 중괄호는 \"JS 값\", 안쪽 중괄호는 \"객체\". 숫자는 px로 처리된다.\n style={{ width: size, height: size }}\n role={label ? 'status' : undefined}\n aria-label={label}\n aria-hidden={label ? undefined : true}\n />\n )\n}\n","/**\n * Button.jsx — 버튼\n *\n * ▣ 언제 어떤 variant(스타일)를 쓰나\n * - primary : 화면에서 가장 중요한 행동 1개 (조회, 발행, 저장). 한 영역에 하나만 둔다.\n * - secondary : 보조 행동 (취소, 엑셀 다운로드 등). 기본값.\n * - ghost : 표 안·툴바처럼 눈에 덜 띄어야 하는 행동.\n * - danger : 삭제·발행 취소처럼 되돌리기 어려운 행동.\n *\n * ▣ 크기(size)\n * - sm 32px / md 40px(기본) / lg 48px(로그인 등 큰 화면)\n *\n * ▣ 사용 예\n * <Button variant=\"primary\" onClick={handleSearch}>조회</Button>\n * <Button icon=\"download\">엑셀 다운로드</Button>\n * <Button variant=\"primary\" loading={isSaving}>저장</Button> // 저장 중에는 스피너 + 클릭 막힘\n * <Button type=\"submit\" variant=\"primary\">로그인</Button> // 폼 제출 버튼은 type=\"submit\"을 꼭 지정\n */\nimport { cx } from '../../utils/cx.js'\nimport { Icon } from '../Icon/Icon.jsx'\nimport { Spinner } from '../Spinner/Spinner.jsx'\nimport styles from './Button.module.css'\n\n/** 버튼 크기별 아이콘 크기(px) */\nconst iconSize = { sm: 16, md: 18, lg: 20 }\n\n/**\n * @param {object} props\n * @param {'primary'|'secondary'|'ghost'|'danger'} [props.variant='secondary'] 버튼 스타일\n * @param {'sm'|'md'|'lg'} [props.size='md'] 크기\n * @param {string} [props.icon] 글자 앞에 붙일 아이콘 이름 (Icon 컴포넌트의 name)\n * @param {boolean} [props.loading=false] true면 스피너를 보여주고 클릭을 막는다\n * @param {boolean} [props.fullWidth=false] 부모 너비를 꽉 채운다\n * @param {boolean} [props.disabled=false] 비활성\n * @param {'button'|'submit'|'reset'} [props.type='button']\n * HTML 버튼의 기본 type은 \"submit\"이라 폼 안에 두면 의도치 않게 제출된다.\n * 그래서 여기서는 기본값을 \"button\"으로 바꿔 둔다.\n * @param {React.ReactNode} [props.children] 버튼 글자. 태그 사이에 쓴 내용이 children으로 들어온다.\n * @param {React.Ref} [props.ref]\n * ref: 실제 <button> DOM 요소를 바깥에서 직접 잡을 때 쓴다(예: 포커스 이동).\n * React 19부터는 일반 props처럼 받을 수 있다.\n * 나머지(onClick, aria-*, title 등)는 ...rest로 모아서 <button>에 그대로 넘긴다.\n */\nexport function Button({\n variant = 'secondary',\n size = 'md',\n icon,\n loading = false,\n fullWidth = false,\n disabled = false,\n type = 'button',\n className,\n children,\n ref,\n ...rest\n}) {\n // 로딩 중에도 버튼을 눌러 같은 요청이 두 번 가지 않도록 비활성 처리한다.\n const isDisabled = disabled || loading\n\n return (\n <button\n ref={ref}\n type={type}\n // styles[variant] : variant 값이 'primary'면 styles.primary 클래스를 고른다.\n // fullWidth && styles.fullWidth : fullWidth가 true일 때만 클래스가 붙는다.\n className={cx(styles.button, styles[variant], styles[size], fullWidth && styles.fullWidth, className)}\n disabled={isDisabled}\n // 스크린리더에 \"처리 중\"임을 알린다. false일 때는 속성 자체를 빼기 위해 undefined로 둔다.\n aria-busy={loading || undefined}\n {...rest}\n >\n {/*\n 조건부 렌더링:\n - loading이면 스피너를 보여주고\n - 아니면 icon이 있을 때만 아이콘을 보여준다. (A && <B/> 는 \"A가 참이면 B를 그린다\")\n */}\n {loading ? <Spinner size={iconSize[size] - 2} /> : icon && <Icon name={icon} size={iconSize[size]} />}\n\n {/* 글자가 있을 때만 감싼다. 글자가 너무 길면 CSS에서 말줄임(…) 처리한다. */}\n {children != null && <span className={styles.label}>{children}</span>}\n </button>\n )\n}\n","/**\n * mergeRefs.js — ref 여러 개를 하나로 합치는 도우미\n *\n * ▣ ref란?\n * React는 보통 화면을 \"데이터 → 화면\" 방향으로만 다룬다.\n * 하지만 가끔 실제 HTML 요소를 직접 만져야 할 때가 있다(포커스 주기, 체크박스의 '부분 선택' 표시 등).\n * 이때 요소를 붙잡는 손잡이가 ref다.\n *\n * ▣ 왜 합치나?\n * 컴포넌트 내부에서도 요소가 필요하고(예: indeterminate 설정),\n * 컴포넌트를 쓰는 바깥쪽에서도 ref를 넘길 수 있다.\n * <input ref={...}>에는 하나만 줄 수 있으므로, 둘 다 받도록 묶어 준다.\n *\n * ref는 두 가지 모양이 있다.\n * 1) 함수 ref : (element) => { ... } → 함수를 불러 준다\n * 2) 객체 ref : useRef()가 만든 { current } → current에 넣어 준다\n */\nexport function mergeRefs(...refs) {\n return (element) => {\n for (const ref of refs) {\n if (typeof ref === 'function') ref(element)\n else if (ref) ref.current = element\n }\n }\n}\n","/**\n * Checkbox.jsx — 체크박스\n *\n * ▣ 만드는 방법\n * 진짜 <input type=\"checkbox\">는 그대로 두되 눈에 보이지 않게 숨기고(키보드·스크린리더·폼 제출은 그대로 동작),\n * 그 옆에 우리가 디자인한 네모(span)를 그린다. 브라우저 기본 체크박스는 모양을 바꾸기 어렵기 때문이다.\n * 전체를 <label>로 감싸서 네모나 글자 어디를 눌러도 체크된다.\n *\n * ▣ indeterminate(부분 선택)\n * 표 머리의 \"전체 선택\" 체크박스에서 일부 행만 선택됐을 때 가로줄(−)로 표시하는 상태.\n * 이 상태는 HTML 속성으로는 지정할 수 없고 JavaScript로 요소에 직접 넣어야 해서 ref를 쓴다.\n *\n * ▣ 사용 예\n * const [agree, setAgree] = useState(false)\n * <Checkbox checked={agree} onChange={(e) => setAgree(e.target.checked)}>아이디 저장</Checkbox>\n *\n * // 표 전체 선택\n * <Checkbox\n * checked={allSelected}\n * indeterminate={someSelected && !allSelected}\n * onChange={toggleAll}\n * aria-label=\"전체 선택\"\n * />\n */\nimport { cx } from '../../utils/cx.js'\nimport { mergeRefs } from '../../utils/mergeRefs.js'\nimport { Icon } from '../Icon/Icon.jsx'\nimport styles from './Checkbox.module.css'\n\n/**\n * @param {object} props\n * @param {boolean}[props.checked] 체크 여부 (state와 연결)\n * @param {boolean}[props.indeterminate] 부분 선택 표시\n * @param {boolean}[props.disabled]\n * @param {React.ReactNode} [props.children] 오른쪽 글자. 글자가 없으면 aria-label을 꼭 넣는다.\n * 나머지(onChange, name, value, aria-label …)는 <input>에 그대로 전달.\n */\nexport function Checkbox({ checked, indeterminate = false, disabled, className, children, ref, ...rest }) {\n // 함수 ref: <input>이 화면에 붙을 때 React가 이 함수를 요소와 함께 불러 준다.\n // 그때 indeterminate 값을 요소에 직접 넣는다. (값이 바뀌어 다시 그릴 때도 다시 불린다)\n const setIndeterminate = (element) => {\n if (element) element.indeterminate = indeterminate\n }\n\n return (\n <label className={cx(styles.checkbox, disabled && styles.disabled, className)}>\n <input\n ref={mergeRefs(setIndeterminate, ref)}\n type=\"checkbox\"\n className={styles.input}\n checked={checked}\n disabled={disabled}\n {...rest}\n />\n {/* 눈에 보이는 네모. 체크 상태에 따른 색은 CSS가 숨긴 input의 상태를 보고 정한다. */}\n <span className={styles.box} aria-hidden=\"true\">\n <Icon name={indeterminate ? 'minus' : 'check'} size={14} className={styles.mark} />\n </span>\n {children != null && <span className={styles.label}>{children}</span>}\n </label>\n )\n}\n","/**\n * Field.jsx — 입력 컨트롤 공통 틀 (라벨 + 컨트롤 + 도움말/오류 문구)\n *\n * TextField, Select, DatePicker 같은 입력 컴포넌트는 모두\n * [라벨 *]\n * [ 입력 상자 ]\n * 도움말 또는 오류 문구\n * 모양이 같다. 이 공통 부분을 한 곳에 모아 두고, 각 컴포넌트는 \"입력 상자\"만 만든다.\n *\n * ▣ 접근성 연결 (왜 id가 필요한가)\n * 스크린리더가 입력칸에 들어갔을 때 \"거래처, 필수, 입력 상자, 코드를 입력하세요\" 처럼\n * 라벨과 안내 문구를 함께 읽어 주려면, 라벨/문구와 입력칸이 id로 연결되어 있어야 한다.\n * - <label htmlFor={id}> ↔ <input id={id}>\n * - <p id={messageId}> ↔ <input aria-describedby={messageId}>\n *\n * ▣ \"함수형 children\" 패턴\n * 보통 children은 태그 사이의 내용이지만, 여기서는 함수를 받는다.\n * Field가 만든 id와 aria 속성 묶음(control)을 그 함수에 넘겨 주면,\n * 입력 컴포넌트가 원하는 위치(<input>)에 그대로 펼쳐 붙일 수 있다.\n *\n * <Field label=\"거래처\" required error={errorMessage}>\n * {(control) => <input {...control} />}\n * </Field>\n *\n * 라이브러리에 없는 입력 컨트롤을 직접 만들 때도 이 Field로 감싸면 모양과 접근성이 맞춰진다.\n */\nimport { useId } from 'react'\nimport { cx } from '../../utils/cx.js'\nimport styles from './Field.module.css'\n\n/**\n * @param {object} props\n * @param {string} [props.id] 입력칸 id. 안 주면 자동으로 만든다.\n * @param {string} [props.label] 라벨 글자\n * @param {boolean}[props.required] 필수 여부. 라벨 옆에 빨간 * 표시\n * @param {string} [props.helperText] 평소에 보이는 도움말\n * @param {string} [props.error] 오류 문구. 값이 있으면 도움말 대신 빨간 글자로 보이고 입력칸이 오류 상태가 된다.\n * @param {(control: object) => React.ReactNode} props.children 입력칸을 그리는 함수\n */\nexport function Field({ id, label, required = false, helperText, error, className, children }) {\n // useId : React가 제공하는 \"훅(hook)\" 중 하나.\n // 훅은 이름이 use로 시작하는 특별한 함수로, 컴포넌트 안에서만 부를 수 있다.\n // useId는 화면 전체에서 겹치지 않는 고유 id(예: \":r3:\")를 만들어 준다.\n // 같은 화면에 TextField가 여러 개 있어도 id가 충돌하지 않는다.\n const autoId = useId()\n const controlId = id ?? autoId // ?? : 왼쪽 값이 null/undefined일 때만 오른쪽 값을 쓴다\n const messageId = `${controlId}-message`\n\n // 오류가 있으면 오류 문구를, 없으면 도움말을 보여준다.\n const message = error || helperText\n\n // 입력칸에 붙일 속성 묶음. undefined인 속성은 React가 HTML에 아예 쓰지 않는다.\n const control = {\n id: controlId,\n 'aria-invalid': error ? true : undefined, // 스크린리더에 \"잘못된 값\" 상태를 알림\n 'aria-describedby': message ? messageId : undefined, // 안내 문구를 함께 읽게 연결\n 'aria-required': required || undefined,\n }\n\n return (\n <div className={cx(styles.field, className)}>\n {label && (\n // htmlFor : HTML의 for 속성. 라벨을 클릭하면 연결된 입력칸으로 커서가 이동한다.\n <label htmlFor={controlId} className={styles.label}>\n {label}\n {required && (\n // 별표는 눈으로만 보면 되므로 스크린리더에서는 숨긴다 (필수 여부는 aria-required로 전달됨)\n <span className={styles.required} aria-hidden=\"true\">\n *\n </span>\n )}\n </label>\n )}\n\n {/* 입력칸 그리기: 부모가 넘긴 함수에 control 묶음을 전달한다 */}\n {children(control)}\n\n {message && (\n <p id={messageId} className={cx(styles.message, error && styles.error)}>\n {message}\n </p>\n )}\n </div>\n )\n}\n","/**\n * IconButton.jsx — 아이콘만 있는 버튼 (닫기, 새로고침, 더보기, 컬럼 설정 등)\n *\n * 글자가 없기 때문에 화면을 못 보는 사용자는 이 버튼이 무엇인지 알 수 없다.\n * 그래서 label(접근성 이름)을 필수로 받는다. label은 마우스를 올렸을 때 브라우저 툴팁으로도 보인다.\n *\n * 사용 예:\n * <IconButton icon=\"refresh\" label=\"새로고침\" onClick={reload} />\n * <IconButton icon=\"x\" label=\"닫기\" size=\"sm\" />\n * <IconButton icon=\"columns\" label=\"컬럼 설정\" variant=\"secondary\" />\n */\nimport { cx } from '../../utils/cx.js'\nimport { Icon } from '../Icon/Icon.jsx'\nimport styles from './IconButton.module.css'\n\n/**\n * @param {object} props\n * @param {string} props.icon 아이콘 이름 (필수)\n * @param {string} props.label 버튼의 뜻 (필수). 예: \"닫기\"\n * @param {'ghost'|'secondary'} [props.variant='ghost'] ghost: 배경 없음 / secondary: 흰 배경 + 테두리\n * @param {'sm'|'md'} [props.size='md'] sm 32px / md 40px\n */\nexport function IconButton({ icon, label, variant = 'ghost', size = 'md', type = 'button', className, ref, ...rest }) {\n return (\n <button\n ref={ref}\n type={type}\n aria-label={label} // 스크린리더가 읽는 이름\n title={label} // 마우스를 올리면 보이는 툴팁\n className={cx(styles.iconButton, styles[variant], styles[size], className)}\n {...rest}\n >\n <Icon name={icon} size={size === 'sm' ? 16 : 20} />\n </button>\n )\n}\n","/**\n * Radio.jsx — 라디오 버튼 묶음 (RadioGroup + Radio)\n *\n * ▣ 언제 쓰나\n * 선택지 2~5개 중 하나만 고를 때. 6개 이상이면 Select, 고르는 즉시 화면 보기가 바뀌면 SegmentedControl.\n *\n * ▣ \"묶음 컴포넌트(compound component)\" 패턴\n * 라디오는 항상 여러 개가 한 묶음으로 동작한다(같은 name, 하나만 선택).\n * 그래서 바깥 RadioGroup이 name·선택값·onChange를 갖고, 안쪽 Radio들은 그것을 \"Context\"로 받아 쓴다.\n *\n * ▷ Context란? 부모가 정한 값을 중간 단계를 거치지 않고 자식들이 바로 꺼내 쓰게 하는 React 기능.\n * RadioGroup이 <RadioContext value={...}>로 감싸면, 그 안의 Radio는 use(RadioContext)로 값을 꺼낸다.\n * 덕분에 Radio마다 name/checked/onChange를 일일이 넘기지 않아도 된다.\n *\n * ▣ 사용 예\n * const [type, setType] = useState('sales')\n * <RadioGroup label=\"구분\" name=\"billType\" value={type} onChange={setType}>\n * <Radio value=\"sales\">매출</Radio>\n * <Radio value=\"purchase\">매입</Radio>\n * <Radio value=\"reverse\" disabled>역발행</Radio>\n * </RadioGroup>\n *\n * onChange는 이벤트가 아니라 \"선택된 값\"을 바로 받는다(위 예에서는 'sales' 같은 문자열).\n */\nimport { createContext, use, useId } from 'react'\nimport { cx } from '../../utils/cx.js'\nimport styles from './Radio.module.css'\n\n// 묶음 정보(name, 선택값, 변경 함수, 비활성)를 자식 Radio에 전달하는 통로\nconst RadioContext = createContext(null)\n\n/**\n * @param {object} props\n * @param {string} [props.label] 묶음 제목 (fieldset의 legend로 들어간다)\n * @param {string} [props.name] HTML name. 안 주면 자동 생성\n * @param {string} props.value 현재 선택된 값\n * @param {(value: string) => void} props.onChange 선택이 바뀌면 새 값으로 불린다\n * @param {'horizontal'|'vertical'} [props.direction='horizontal'] 배치 방향\n * @param {boolean} [props.disabled] 묶음 전체 비활성\n * @param {string} [props.error] 오류 문구\n */\nexport function RadioGroup({\n label,\n name,\n value,\n onChange,\n direction = 'horizontal',\n disabled = false,\n error,\n className,\n children,\n}) {\n const autoName = useId()\n const errorId = `${autoName}-error`\n return (\n // fieldset + legend : \"이 라디오들은 '구분'이라는 한 질문의 선택지\"라는 것을 스크린리더에 알린다\n <fieldset\n className={cx(styles.group, className)}\n disabled={disabled}\n aria-invalid={error ? true : undefined}\n aria-describedby={error ? errorId : undefined}\n >\n {label && <legend className={styles.legend}>{label}</legend>}\n <div className={cx(styles.options, styles[direction])}>\n {/* React 19에서는 Context 자체를 태그로 써서 값을 내려준다 */}\n <RadioContext value={{ name: name ?? autoName, value, onChange }}>{children}</RadioContext>\n </div>\n {error && (\n <p id={errorId} className={styles.error}>\n {error}\n </p>\n )}\n </fieldset>\n )\n}\n\n/**\n * @param {object} props\n * @param {string} props.value 이 선택지의 값\n * @param {boolean}[props.disabled] 이 선택지만 비활성\n * @param {React.ReactNode} props.children 표시 글자\n */\nexport function Radio({ value, disabled, className, children }) {\n // use(RadioContext) : 가장 가까운 RadioGroup이 내려준 값을 꺼낸다\n const group = use(RadioContext)\n if (!group) throw new Error('Radio는 RadioGroup 안에서만 사용할 수 있습니다.')\n\n return (\n <label className={cx(styles.radio, disabled && styles.disabled, className)}>\n <input\n type=\"radio\"\n className={styles.input}\n name={group.name}\n value={value}\n checked={group.value === value}\n disabled={disabled}\n onChange={() => group.onChange?.(value)}\n />\n <span className={styles.circle} aria-hidden=\"true\" />\n <span className={styles.label}>{children}</span>\n </label>\n )\n}\n","/**\n * Switch.jsx — 켜기/끄기 스위치\n *\n * ▣ Checkbox와의 차이\n * - Switch : 누르는 즉시 적용되는 설정 (예: \"자동 발행 사용\"). 저장 버튼이 따로 없다.\n * - Checkbox: 폼 안에서 고른 뒤 [저장]을 눌러야 반영되는 선택.\n *\n * ▣ 만드는 방법\n * Checkbox와 같이 진짜 <input type=\"checkbox\">를 숨기고 role=\"switch\"를 붙인다.\n * 스크린리더는 \"스위치, 켬/끔\"으로 읽는다. 키보드 Space로 켜고 끈다.\n *\n * ▣ 사용 예\n * const [auto, setAuto] = useState(true)\n * <Switch checked={auto} onChange={(e) => setAuto(e.target.checked)}>자동 발행</Switch>\n */\nimport { cx } from '../../utils/cx.js'\nimport styles from './Switch.module.css'\n\n/**\n * @param {object} props\n * @param {boolean}[props.checked] 켜짐 여부\n * @param {boolean}[props.disabled]\n * @param {React.ReactNode} [props.children] 오른쪽 글자. 없으면 aria-label 필수.\n * 나머지(onChange, name …)는 <input>에 전달.\n */\nexport function Switch({ checked, disabled, className, children, ref, ...rest }) {\n return (\n <label className={cx(styles.switch, disabled && styles.disabled, className)}>\n <input\n ref={ref}\n type=\"checkbox\"\n role=\"switch\"\n className={styles.input}\n checked={checked}\n disabled={disabled}\n {...rest}\n />\n {/* 트랙(긴 타원)과 손잡이(원). 위치·색은 CSS가 input 상태를 보고 바꾼다 */}\n <span className={styles.track} aria-hidden=\"true\">\n <span className={styles.knob} />\n </span>\n {children != null && <span className={styles.label}>{children}</span>}\n </label>\n )\n}\n","/**\n * TextField.jsx — 한 줄 입력칸\n *\n * ▣ 규칙\n * - 라벨은 항상 입력칸 위에 둔다(placeholder를 라벨 대신 쓰지 않는다. 입력하면 사라져서 무슨 칸인지 모르게 된다).\n * - 필수 항목은 required → 라벨 옆 빨간 *.\n * - 검증 실패는 error=\"문구\" → 빨간 테두리 + 빨간 문구.\n * - size: md 36px(업무 화면 기본) | lg 44px(로그인 화면 등)\n *\n * ▣ 값 다루기 (React의 \"제어 컴포넌트\")\n * React에서는 입력값을 보통 state(컴포넌트가 기억하는 값)에 담고,\n * value로 보여주고 onChange로 갱신한다.\n *\n * const [corpId, setCorpId] = useState('') // 처음 값은 빈 문자열\n * <TextField\n * label=\"그룹코드\"\n * value={corpId} // 화면에 보여줄 값\n * onChange={(e) => setCorpId(e.target.value)} // 타이핑할 때마다 state를 갱신\n * />\n *\n * value, onChange, placeholder, type, name, autoComplete, maxLength 등\n * <input>이 받는 속성은 모두 그대로 넘길 수 있다(...inputProps).\n *\n * ▣ 사용 예\n * <TextField label=\"아이디\" required autoComplete=\"username\" />\n * <TextField label=\"비밀번호\" type=\"password\" size=\"lg\" />\n * <TextField label=\"사업자번호\" error=\"10자리 숫자를 입력하세요.\" />\n * <TextField label=\"공급가액\" suffix=\"원\" inputMode=\"numeric\" />\n * <TextField label=\"거래처\" icon=\"search\" placeholder=\"이름 또는 코드\" />\n */\nimport { cx } from '../../utils/cx.js'\nimport { Field } from '../Field/Field.jsx'\nimport { Icon } from '../Icon/Icon.jsx'\nimport styles from './TextField.module.css'\n\n/**\n * @param {object} props\n * @param {string} [props.label] 라벨\n * @param {boolean}[props.required] 필수 여부\n * @param {string} [props.helperText] 도움말\n * @param {string} [props.error] 오류 문구 (있으면 오류 상태)\n * @param {'md'|'lg'} [props.size='md'] 높이\n * @param {string} [props.icon] 입력칸 왼쪽 아이콘 이름\n * @param {React.ReactNode} [props.suffix] 입력칸 오른쪽 단위 글자 (예: \"원\", \"%\")\n * @param {boolean}[props.disabled] 비활성 (회색, 입력 불가, 폼 제출 시 값이 빠짐)\n * @param {boolean}[props.readOnly] 읽기 전용 (입력은 불가하지만 값은 선택·복사 가능, 폼 제출에 포함)\n * @param {React.Ref} [props.ref] 실제 <input> 요소 (예: ref.current.focus()로 커서 이동)\n */\nexport function TextField({\n label,\n required,\n helperText,\n error,\n size = 'md',\n icon,\n suffix,\n id,\n className,\n disabled,\n readOnly,\n ref,\n ...inputProps\n}) {\n return (\n <Field id={id} label={label} required={required} helperText={helperText} error={error} className={className}>\n {/* Field가 넘겨준 control(id, aria-*)을 <input>에 펼쳐서 라벨·안내 문구와 연결한다 */}\n {(control) => (\n <div\n className={cx(\n styles.box,\n styles[size],\n error && styles.invalid,\n disabled && styles.disabled,\n readOnly && styles.readOnly,\n )}\n >\n {icon && <Icon name={icon} size={16} className={styles.icon} />}\n <input\n ref={ref}\n className={styles.input}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n {...control}\n {...inputProps}\n />\n {suffix && <span className={styles.suffix}>{suffix}</span>}\n </div>\n )}\n </Field>\n )\n}\n"],"mappings":"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"}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
:root{--color-bg-canvas:#f4f6f9;--color-bg-surface:#fff;--color-bg-subtle:#f8fafc;--color-bg-brand:#14243a;--color-bg-brand-soft:#eaf1fd;--color-bg-hover:#f1f5f9;--color-bg-disabled:#f1f3f6;--color-bg-selected:var(--color-bg-brand-soft);--color-bg-overlay:#0b14247a;--color-bg-inverse:#1e293b;--color-border-default:#e2e8f0;--color-border-strong:#cbd5e1;--color-border-focus:var(--color-action-primary);--color-border-danger:var(--color-status-danger);--color-text-primary:#14243a;--color-text-secondary:#526077;--color-text-tertiary:#8592a6;--color-text-disabled:#a3adbd;--color-text-inverse:#fff;--color-text-brand:#2563db;--color-text-link:var(--color-text-brand);--color-action-primary:#2563db;--color-action-primary-hover:#1c50b8;--color-action-secondary-hover:var(--color-bg-hover);--color-action-danger:var(--color-status-danger);--color-action-danger-hover:#a11f16;--color-status-success:#15803d;--color-status-success-soft:#e8f6ee;--color-status-warning:#b45309;--color-status-warning-soft:#fef4e2;--color-status-danger:#c2271c;--color-status-danger-soft:#fdecea;--color-status-info:var(--color-text-brand);--color-status-info-soft:var(--color-bg-brand-soft);--space-4:4px;--space-8:8px;--space-12:12px;--space-16:16px;--space-20:20px;--space-24:24px;--space-32:32px;--space-40:40px;--radius-4:4px;--radius-6:6px;--radius-8:8px;--radius-12:12px;--radius-full:9999px;--font-family-base:"Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;--font-family-mono:ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;--font-weight-regular:400;--font-weight-medium:500;--font-weight-bold:700;--font-size-display:32px;--font-size-heading-1:22px;--font-size-heading-2:17px;--font-size-heading-3:15px;--font-size-body:14px;--font-size-caption:12px;--font-size-kpi:26px;--line-height-tight:1.3;--line-height-base:1.5;--control-height-sm:32px;--control-height-md:36px;--control-height-lg:44px;--shadow-sm:0 1px 2px #00000014;--shadow-popover:0 6px 16px #0a14241f, 0 1px 3px #0a14240f;--shadow-focus:0 0 0 3px #2563db2e;--shadow-focus-danger:0 0 0 3px #c2271c26;--duration-fast:.12s;--duration-base:.18s;--easing-standard:cubic-bezier(.2, 0, 0, 1);--z-dropdown:1000;--z-overlay:1100;--z-dialog:1200;--z-toast:1300;--z-tooltip:1400}@media (prefers-reduced-motion:reduce){:root{--duration-fast:0s;--duration-base:0s}}.bw-badge-RsuMz{padding:2px var(--space-8);border-radius:var(--radius-4);font-family:var(--font-family-base);font-size:var(--font-size-caption);font-weight:var(--font-weight-medium);line-height:var(--line-height-base);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.bw-dot-i0c-G{border-radius:var(--radius-full);background:currentColor;width:6px;height:6px}.bw-success-u9JiS{background:var(--color-status-success-soft);color:var(--color-status-success)}.bw-info-na6DQ{background:var(--color-status-info-soft);color:var(--color-status-info)}.bw-warning-nsGp-{background:var(--color-status-warning-soft);color:var(--color-status-warning)}.bw-danger-PD2hz{background:var(--color-status-danger-soft);color:var(--color-status-danger)}.bw-neutral-lulSm{background:var(--color-bg-canvas);color:var(--color-text-secondary)}.bw-spinner-GpFZS{border-radius:var(--radius-full);opacity:.8;border:2px solid;border-right-color:#0000;flex:none;animation:.7s linear infinite bw-spin-LFfLH;display:inline-block}@keyframes bw-spin-LFfLH{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.bw-spinner-GpFZS{animation-duration:1.6s}}.bw-button-2ZuB7{justify-content:center;align-items:center;gap:var(--space-8);box-sizing:border-box;border-radius:var(--radius-6);font-family:var(--font-family-base);font-weight:var(--font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--duration-fast) var(--easing-standard), border-color var(--duration-fast) var(--easing-standard), box-shadow var(--duration-fast) var(--easing-standard);border:1px solid #0000;line-height:1;display:inline-flex}.bw-button-2ZuB7:focus-visible{box-shadow:var(--shadow-focus);outline:none}.bw-button-2ZuB7:disabled{cursor:not-allowed}.bw-label-UJ3Zt{text-overflow:ellipsis;overflow:hidden}.bw-sm-NhG0g{height:var(--control-height-sm);padding:0 var(--space-12);gap:var(--space-4);font-size:var(--font-size-caption)}.bw-md-hH4h3{height:40px;padding:0 var(--space-16);font-size:var(--font-size-body)}.bw-lg-2plQf{height:48px;padding:0 var(--space-20);font-size:var(--font-size-body)}.bw-fullWidth-36oJT{width:100%}.bw-primary-s1sM6{background:var(--color-action-primary);color:var(--color-text-inverse)}.bw-primary-s1sM6:hover:not(:disabled){background:var(--color-action-primary-hover)}.bw-secondary-R0waJ{background:var(--color-bg-surface);border-color:var(--color-border-strong);color:var(--color-text-primary)}.bw-secondary-R0waJ:hover:not(:disabled){background:var(--color-action-secondary-hover)}.bw-ghost-1KINV{color:var(--color-text-brand);background:0 0}.bw-ghost-1KINV:hover:not(:disabled){background:var(--color-bg-hover)}.bw-danger-V4fX8{background:var(--color-action-danger);color:var(--color-text-inverse)}.bw-danger-V4fX8:hover:not(:disabled){background:var(--color-action-danger-hover)}.bw-danger-V4fX8:focus-visible{box-shadow:var(--shadow-focus-danger)}.bw-button-2ZuB7:disabled:not([aria-busy=true]){background:var(--color-bg-disabled);border-color:var(--color-border-default);color:var(--color-text-disabled)}.bw-ghost-1KINV:disabled:not([aria-busy=true]){background:0 0;border-color:#0000}.bw-button-2ZuB7[aria-busy=true]{cursor:progress}.bw-checkbox-lSeQj{align-items:center;gap:var(--space-8);font-family:var(--font-family-base);font-size:var(--font-size-body);color:var(--color-text-secondary);cursor:pointer;display:inline-flex;position:relative}.bw-input-2kt-h{opacity:0;width:1px;height:1px;margin:0;position:absolute}.bw-box-OCPee{box-sizing:border-box;border:1.5px solid var(--color-border-strong);border-radius:var(--radius-4);background:var(--color-bg-surface);width:18px;height:18px;color:var(--color-text-inverse);transition:background-color var(--duration-fast) var(--easing-standard), border-color var(--duration-fast) var(--easing-standard);flex:none;justify-content:center;align-items:center;display:inline-flex}.bw-mark-MRzLE{opacity:0}.bw-input-2kt-h:checked+.bw-box-OCPee,.bw-input-2kt-h:indeterminate+.bw-box-OCPee{border-color:var(--color-action-primary);background:var(--color-action-primary)}.bw-input-2kt-h:checked+.bw-box-OCPee .bw-mark-MRzLE,.bw-input-2kt-h:indeterminate+.bw-box-OCPee .bw-mark-MRzLE{opacity:1}.bw-input-2kt-h:focus-visible+.bw-box-OCPee{box-shadow:var(--shadow-focus)}.bw-checkbox-lSeQj:hover .bw-input-2kt-h:not(:disabled):not(:checked)+.bw-box-OCPee{border-color:var(--color-action-primary)}.bw-disabled-x7-eg{color:var(--color-text-disabled);cursor:not-allowed}.bw-input-2kt-h:disabled+.bw-box-OCPee{border-color:var(--color-bg-disabled);background:var(--color-bg-disabled)}.bw-input-2kt-h:disabled:checked+.bw-box-OCPee,.bw-input-2kt-h:disabled:indeterminate+.bw-box-OCPee{border-color:var(--color-text-disabled);background:var(--color-text-disabled)}.bw-label-cwRtI{line-height:var(--line-height-base)}.bw-field-m7I4B{min-width:0;font-family:var(--font-family-base);flex-direction:column;gap:6px;display:flex}.bw-label-LAQio{font-size:var(--font-size-caption);font-weight:var(--font-weight-medium);line-height:var(--line-height-base);color:var(--color-text-secondary);gap:2px;display:inline-flex}.bw-required-8HCWC{color:var(--color-status-danger)}.bw-message-RGBLS{font-size:var(--font-size-caption);line-height:var(--line-height-base);color:var(--color-text-tertiary);margin:0}.bw-error-m0uol{color:var(--color-status-danger)}.bw-iconButton-JAF-a{box-sizing:border-box;border-radius:var(--radius-6);color:var(--color-text-secondary);cursor:pointer;transition:background-color var(--duration-fast) var(--easing-standard);border:1px solid #0000;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.bw-iconButton-JAF-a:focus-visible{box-shadow:var(--shadow-focus);outline:none}.bw-iconButton-JAF-a:hover:not(:disabled){background:var(--color-bg-hover);color:var(--color-text-primary)}.bw-iconButton-JAF-a:disabled{color:var(--color-text-disabled);cursor:not-allowed}.bw-sm--tgrW{width:var(--control-height-sm);height:var(--control-height-sm)}.bw-md-Rq8Ph{width:40px;height:40px}.bw-ghost-Xo7aA{background:0 0}.bw-secondary-bawOo{background:var(--color-bg-surface);border-color:var(--color-border-strong)}.bw-group-oi329{min-width:0;font-family:var(--font-family-base);border:0;margin:0;padding:0}.bw-legend-Touvj{font-size:var(--font-size-caption);font-weight:var(--font-weight-medium);color:var(--color-text-secondary);margin-bottom:6px;padding:0}.bw-options-ciXxq{display:flex}.bw-horizontal-1Ovgu{gap:var(--space-8) var(--space-20);flex-wrap:wrap}.bw-vertical-WksGU{gap:var(--space-8);flex-direction:column}.bw-radio-MfgN-{align-items:center;gap:var(--space-8);font-size:var(--font-size-body);color:var(--color-text-secondary);cursor:pointer;display:inline-flex;position:relative}.bw-input-7R8ZN{opacity:0;width:1px;height:1px;margin:0;position:absolute}.bw-circle-6v2W0{box-sizing:border-box;border:1.5px solid var(--color-border-strong);border-radius:var(--radius-full);background:var(--color-bg-surface);width:18px;height:18px;transition:border var(--duration-fast) var(--easing-standard);flex:none}.bw-input-7R8ZN:checked+.bw-circle-6v2W0{border:5px solid var(--color-action-primary)}.bw-input-7R8ZN:focus-visible+.bw-circle-6v2W0{box-shadow:var(--shadow-focus)}.bw-radio-MfgN-:hover .bw-input-7R8ZN:not(:disabled):not(:checked)+.bw-circle-6v2W0{border-color:var(--color-action-primary)}.bw-disabled-0-cna,.bw-group-oi329:disabled .bw-radio-MfgN-{color:var(--color-text-disabled);cursor:not-allowed}.bw-input-7R8ZN:disabled+.bw-circle-6v2W0{border-color:var(--color-bg-disabled);background:var(--color-bg-disabled)}.bw-input-7R8ZN:disabled:checked+.bw-circle-6v2W0{border-color:var(--color-text-disabled);background:var(--color-bg-surface)}.bw-error-wem7t{font-size:var(--font-size-caption);color:var(--color-status-danger);margin:6px 0 0}.bw-switch-hgdMu{align-items:center;gap:var(--space-8);font-family:var(--font-family-base);font-size:var(--font-size-body);color:var(--color-text-secondary);cursor:pointer;display:inline-flex;position:relative}.bw-input-5BPNu{opacity:0;width:1px;height:1px;margin:0;position:absolute}.bw-track-7ObdZ{box-sizing:border-box;border-radius:var(--radius-full);background:var(--color-border-strong);width:36px;height:20px;transition:background-color var(--duration-base) var(--easing-standard);flex:none;align-items:center;padding:2px;display:inline-flex}.bw-knob-vKNOc{border-radius:var(--radius-full);background:var(--color-bg-surface);width:16px;height:16px;box-shadow:var(--shadow-sm);transition:transform var(--duration-base) var(--easing-standard)}.bw-input-5BPNu:checked+.bw-track-7ObdZ{background:var(--color-action-primary)}.bw-input-5BPNu:checked+.bw-track-7ObdZ .bw-knob-vKNOc{transform:translate(16px)}.bw-input-5BPNu:focus-visible+.bw-track-7ObdZ{box-shadow:var(--shadow-focus)}.bw-disabled-2aZ0V{color:var(--color-text-disabled);cursor:not-allowed}.bw-input-5BPNu:disabled+.bw-track-7ObdZ{background:var(--color-bg-disabled)}.bw-input-5BPNu:disabled:checked+.bw-track-7ObdZ{background:var(--color-text-disabled)}.bw-label-LrH7V{line-height:var(--line-height-base)}.bw-box-uOcZi{align-items:center;gap:var(--space-8);box-sizing:border-box;padding:0 var(--space-12);border:1px solid var(--color-border-strong);border-radius:var(--radius-6);background:var(--color-bg-surface);transition:border-color var(--duration-fast) var(--easing-standard), box-shadow var(--duration-fast) var(--easing-standard);display:flex}.bw-box-uOcZi:focus-within{border-color:var(--color-border-focus);box-shadow:var(--shadow-focus)}.bw-md-fIzHt{height:var(--control-height-md)}.bw-lg-fOSc9{height:var(--control-height-lg)}.bw-input-RL-My{min-width:0;height:100%;font-family:var(--font-family-base);font-size:var(--font-size-body);color:var(--color-text-primary);background:0 0;border:0;outline:none;flex:1;padding:0}.bw-input-RL-My::placeholder{color:var(--color-text-tertiary)}.bw-icon-ZSvhD{color:var(--color-text-tertiary);flex:none}.bw-suffix-yUKcd{font-size:var(--font-size-caption);color:var(--color-text-secondary);flex:none}.bw-invalid-DJ4jM,.bw-invalid-DJ4jM:focus-within{border-color:var(--color-border-danger)}.bw-invalid-DJ4jM:focus-within{box-shadow:var(--shadow-focus-danger)}.bw-readOnly-nyGcj{background:var(--color-bg-subtle)}.bw-disabled-XqQQ1{background:var(--color-bg-disabled);border-color:var(--color-border-default)}.bw-disabled-XqQQ1 .bw-input-RL-My{color:var(--color-text-disabled);cursor:not-allowed}
|
|
2
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluewardai/react-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Blueward 업무용 React UI 컴포넌트 (React 외 의존성 없음)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"ui",
|
|
8
|
+
"components",
|
|
9
|
+
"design-system",
|
|
10
|
+
"blueward"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "rendez0829",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"CHANGELOG.md",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"NOTICE"
|
|
21
|
+
],
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"module": "./dist/index.js",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": "./dist/index.js",
|
|
26
|
+
"./styles.css": "./dist/styles.css",
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"**/*.css"
|
|
31
|
+
],
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react": "^19.0.0",
|
|
34
|
+
"react-dom": "^19.0.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "vite build",
|
|
41
|
+
"prepublishOnly": "npm run build"
|
|
42
|
+
}
|
|
43
|
+
}
|