@pop-ui/foundation 0.0.35 → 0.0.36-test.1

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 ADDED
@@ -0,0 +1,50 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-01-22
9
+
10
+ ### ✨ Added
11
+
12
+ - **IconCaution**: 새로운 경고 아이콘 추가
13
+ - **IconInfo**: 새로운 정보 아이콘 추가
14
+
15
+ ### 🔄 Changed
16
+
17
+ - **아이콘 이름 변경**: 명확성을 위해 일부 아이콘 이름 변경
18
+ - `IconUp` → `IconCaretUp`
19
+ - `IconDown` → `IconCaretDown`
20
+ - **오타 수정**: `IconMetaBall` → `IconMeatBall`
21
+
22
+ ### 🔄 Internal Changes
23
+
24
+ 아이콘 시스템 내부 구조를 개선했습니다. API는 이전 버전과 100% 호환됩니다.
25
+
26
+ - 아이콘 폴더 구조 개편 (flat → 아이콘별 폴더)
27
+ - 기존: `icons/IconCalendar.tsx`
28
+ - 신규: `icons/calendar/Calendar.tsx`
29
+ - Export 구조는 동일하게 유지
30
+ - 코드 구조 개선으로 유지보수성 향상
31
+ - 향후 다양한 아이콘 스타일 추가 준비
32
+
33
+ ### 💡 Usage (동일)
34
+
35
+ ```tsx
36
+ import { IconCalendar, IconStar } from '@pop-ui/foundation'
37
+
38
+ // Line 스타일 (기본)
39
+ <IconCalendar />
40
+
41
+ // Filled 스타일 (filled prop 사용)
42
+ <IconCalendar filled />
43
+ ```
44
+
45
+ ---
46
+
47
+ ## [0.0.33] - 2026-01-21
48
+
49
+ Previous versions
50
+
package/README.md CHANGED
@@ -42,7 +42,7 @@ const MyComponent = () => {
42
42
  import {
43
43
  SemanticColorPrimary,
44
44
  SemanticColorWarning,
45
- BgColorButtonBgPrimaryDefault
45
+ BgColorButtonBgPrimaryDefault,
46
46
  } from '@pop-ui/foundation';
47
47
  ```
48
48
 
@@ -69,6 +69,7 @@ function MyComponent() {
69
69
 
70
70
  - `size?: number` - 아이콘 크기 (기본값: 원본 크기)
71
71
  - `color?: string` - 아이콘 색상 (기본값: ColorGray900 = #333333)
72
+ - `variant?: 'line' | 'filled'` - 스타일 변형 (기본값: `'line'`. 일부 아이콘만 `filled` 지원)
72
73
  - `className?: string` - CSS 클래스
73
74
  - `style?: CSSProperties` - 인라인 스타일
74
75
  - 기타 표준 SVG 속성들
@@ -96,6 +97,10 @@ import { IcChevronDown, ColorGray900 } from '@pop-ui/foundation';
96
97
  // 색상 변경
97
98
  <IcChevronDown color="#1971C2" />
98
99
 
100
+ // variant (line | filled, 일부 아이콘만 filled 지원)
101
+ <IcChevronDown variant="line" />
102
+ <IcChevronDown variant="filled" />
103
+
99
104
  // CSS 클래스 사용
100
105
  <IcChevronDown className="my-icon" />
101
106
 
@@ -132,6 +137,54 @@ const cssVar = getCSSVariableRef('gray', '900'); // "var(--color-gray-900)"
132
137
  console.log(colorNames); // ['gray', 'aqua', 'red', ...]
133
138
  ```
134
139
 
140
+ ### 4. Illustrations 아이콘
141
+
142
+ 2색 이상의 다중 색상을 포함하는 일러스트레이션 아이콘입니다. 색상이 고정되어 있어 color prop 없이 size만 제어합니다.
143
+
144
+ 일러스트레이션 vs 아이콘
145
+ 구분아이콘 (Icon)일러스트레이션 (Illustration)색상단색, color prop으로 변경 가능다중 색상 고정variantline / filled 지원색상별 별도 컴포넌트
146
+
147
+ ```tsx
148
+ import { IllustrationPopcorn, IllustrationDiscounttagMint } from '@pop-ui/foundation';
149
+
150
+ function MyComponent() {
151
+ return (
152
+ <div>
153
+ <IllustrationPopcorn size={48} />
154
+ <IllustrationDiscounttagMint size={32} />
155
+ </div>
156
+ );
157
+ }
158
+ ```
159
+
160
+ ### 5. 메타데이터 및 카테고리 분류
161
+
162
+ 아이콘과 일러스트레이션은 공통 카테고리 분류 체계로 관리됩니다.
163
+
164
+ #### 카테고리
165
+
166
+ | 카테고리 | 설명
167
+ | --------- | --------------------------------
168
+ | `CONTENT` | 콘텐츠, 미디어, 문서, 위치, 등급
169
+ | `ACTION` | 동작 및 사용자 인터랙션
170
+ | `STATUS` | 상태 및 알림
171
+ | `BRAND` | 브랜드 전용
172
+ | `SYSTEM` | 시스템 및 설정
173
+
174
+ #### 메타데이터 사용
175
+
176
+ ```tsx
177
+ import { iconMetadata, IconCategory } from '@pop-ui/foundation';
178
+ import { illustrationMetadata, IllustrationCategory } from '@pop-ui/foundation';
179
+
180
+ // 아이콘 메타데이터 조회
181
+ iconMetadata.IconBookmark.categories; // [IconCategory.ACTION]
182
+ iconMetadata.IconBookmark.variants; // ['line', 'filled']
183
+
184
+ // 일러스트레이션 메타데이터 조회
185
+ illustrationMetadata.IllustrationPopcorn.categories; // [IllustrationCategory.CONTENT]
186
+ ```
187
+
135
188
  ## 개발
136
189
 
137
190
  ### Token 생성
@@ -151,6 +204,13 @@ yarn build
151
204
 
152
205
  **참고**: Token 파일을 수정한 후에는 반드시 위 과정을 거쳐 재생성해야 합니다.
153
206
 
207
+ ### 아이콘/일러스트레이션 추가 방법
208
+
209
+ 1. Figma에서 SVG export
210
+ 2. SVG → TSX 변환 (JSX 속성 변환, `viewBox` 유지, `width={size}` / `height={size}` 적용)
211
+ 3. 해당 메타데이터 파일에 카테고리 등록
212
+ 4. `index.ts` 배럴 파일에 export 추가
213
+
154
214
  ## 타입 정의
155
215
 
156
216
  ### IIconProps
@@ -161,6 +221,17 @@ import type { IIconProps } from '@pop-ui/foundation';
161
221
  interface IIconProps extends SVGProps<SVGSVGElement> {
162
222
  size?: number;
163
223
  color?: string;
224
+ variant?: 'line' | 'filled';
225
+ }
226
+ ```
227
+
228
+ ### IIllustrationProps
229
+
230
+ ```typescript
231
+ import type { IIllustrationProps } from '@pop-ui/foundation';
232
+
233
+ interface IIllustrationProps extends SVGProps<SVGSVGElement> {
234
+ size?: number;
164
235
  }
165
236
  ```
166
237