@x-plat/design-system 0.5.2 → 0.5.3
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/dist/components/Accordion/index.cjs +38 -31
- package/dist/components/Accordion/index.css +1 -0
- package/dist/components/Accordion/index.js +38 -31
- package/dist/components/Alert/index.css +1 -0
- package/dist/components/Breadcrumb/index.css +3 -0
- package/dist/components/Button/index.css +1 -0
- package/dist/components/Calendar/index.cjs +103 -62
- package/dist/components/Calendar/index.css +1 -0
- package/dist/components/Calendar/index.js +103 -62
- package/dist/components/Card/index.css +2 -0
- package/dist/components/CardTab/index.css +1 -0
- package/dist/components/Chart/index.cjs +106 -83
- package/dist/components/Chart/index.css +1 -0
- package/dist/components/Chart/index.js +106 -83
- package/dist/components/DatePicker/index.cjs +36 -15
- package/dist/components/DatePicker/index.css +2 -0
- package/dist/components/DatePicker/index.js +36 -15
- package/dist/components/EmptyState/index.css +1 -0
- package/dist/components/FileUpload/index.css +2 -0
- package/dist/components/HtmlTypeWriter/index.css +1 -0
- package/dist/components/Pagination/index.css +8 -8
- package/dist/components/Spinner/index.css +7 -2
- package/dist/components/Steps/index.cjs +1 -4
- package/dist/components/Steps/index.css +15 -36
- package/dist/components/Steps/index.js +1 -4
- package/dist/components/Swiper/index.cjs +16 -12
- package/dist/components/Swiper/index.css +1 -0
- package/dist/components/Swiper/index.js +16 -12
- package/dist/components/Switch/index.css +20 -19
- package/dist/components/Tab/index.css +16 -2
- package/dist/components/Table/index.cjs +4 -4
- package/dist/components/Table/index.css +1 -0
- package/dist/components/Table/index.d.cts +2 -5
- package/dist/components/Table/index.d.ts +2 -5
- package/dist/components/Table/index.js +4 -4
- package/dist/components/Video/index.cjs +32 -43
- package/dist/components/Video/index.css +4 -4
- package/dist/components/Video/index.d.cts +1 -5
- package/dist/components/Video/index.d.ts +1 -5
- package/dist/components/Video/index.js +32 -43
- package/dist/components/index.cjs +339 -257
- package/dist/components/index.css +88 -71
- package/dist/components/index.js +339 -257
- package/dist/index.cjs +339 -257
- package/dist/index.css +88 -71
- package/dist/index.js +339 -257
- package/guidelines/Guidelines.md +11 -4
- package/package.json +1 -2
package/guidelines/Guidelines.md
CHANGED
|
@@ -7,17 +7,24 @@ React 기반 디자인 시스템 라이브러리이다. Figma Make Kit과 1:1
|
|
|
7
7
|
## 핵심 규칙
|
|
8
8
|
|
|
9
9
|
1. **컴포넌트에 `color`, `className`, `style` prop이 없다.** 색상과 스타일은 내부 semantic 토큰으로 고정한다.
|
|
10
|
-
2.
|
|
10
|
+
2. **컴포넌트는 반드시 GridItem 또는 래퍼로 감싸서 사용한다.** 컴포넌트는 `width: 100%`로 부모를 채우므로, 부모(GridItem/래퍼)에서 너비를 제어한다.
|
|
11
11
|
3. **CSS로 DS 컴포넌트 스타일을 오버라이드하지 않는다.**
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
|
-
// 올바른
|
|
14
|
+
// 올바른 방법: GridItem으로 감싸서 너비 제어
|
|
15
|
+
<FullGrid>
|
|
16
|
+
<GridItem column={{ default: 6 }}>
|
|
17
|
+
<Button type="primary">저장</Button>
|
|
18
|
+
</GridItem>
|
|
19
|
+
</FullGrid>
|
|
20
|
+
|
|
21
|
+
// 또는 래퍼 div
|
|
15
22
|
<div className="button-wrapper">
|
|
16
23
|
<Button type="primary">저장</Button>
|
|
17
24
|
</div>
|
|
18
25
|
|
|
19
|
-
//
|
|
20
|
-
<Button style={{
|
|
26
|
+
// 금지: 컴포넌트에 직접 스타일
|
|
27
|
+
<Button style={{ width: "200px" }}>저장</Button>
|
|
21
28
|
```
|
|
22
29
|
|
|
23
30
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-plat/design-system",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "XPLAT UI Design System",
|
|
5
5
|
"author": "XPLAT WOONG",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"files": [
|
|
49
49
|
"dist",
|
|
50
50
|
"global.d.ts",
|
|
51
|
-
".npmrc",
|
|
52
51
|
"guidelines"
|
|
53
52
|
],
|
|
54
53
|
"scripts": {
|