@designbasekorea/ui 0.4.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -28
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +49 -26
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.css.map +1 -1
- package/dist/index.esm.js +595 -264
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +605 -265
- package/dist/index.js.map +1 -1
- package/dist/index.umd.css +1 -1
- package/dist/index.umd.css.map +1 -1
- package/dist/index.umd.js +608 -269
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -55,12 +55,11 @@ function App() {
|
|
|
55
55
|
</Card.Body>
|
|
56
56
|
</Card>
|
|
57
57
|
|
|
58
|
-
<Accordion
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</Accordion>
|
|
58
|
+
<Accordion
|
|
59
|
+
items={[
|
|
60
|
+
{ id: 'item-1', title: '제목 1', content: '내용 1' }
|
|
61
|
+
]}
|
|
62
|
+
/>
|
|
64
63
|
</div>
|
|
65
64
|
);
|
|
66
65
|
}
|
|
@@ -165,6 +164,7 @@ export default App;
|
|
|
165
164
|
- **Rating** - 별점
|
|
166
165
|
- **Stepper** - 단계 표시
|
|
167
166
|
- **Popover** - 팝오버
|
|
167
|
+
- **AnimationBackground** - 애니메이션 배경 (그라디언트, 펄스, 파도, 파티클, 별, 오로라 + 테마/그리드)
|
|
168
168
|
|
|
169
169
|
## 🎯 컴포넌트 사용 예시
|
|
170
170
|
|
|
@@ -181,14 +181,14 @@ import { Button } from '@designbasekorea/ui';
|
|
|
181
181
|
비활성 버튼
|
|
182
182
|
</Button>
|
|
183
183
|
|
|
184
|
-
<Button variant="
|
|
184
|
+
<Button variant="tertiary" size="s" fullWidth>
|
|
185
185
|
전체 너비 버튼
|
|
186
186
|
</Button>
|
|
187
187
|
```
|
|
188
188
|
|
|
189
189
|
**Props**:
|
|
190
|
-
- `variant`: 'primary' | 'secondary' | '
|
|
191
|
-
- `size`: '
|
|
190
|
+
- `variant`: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger'
|
|
191
|
+
- `size`: 's' | 'm' | 'l'
|
|
192
192
|
- `fullWidth`: boolean
|
|
193
193
|
- `disabled`: boolean
|
|
194
194
|
- `onClick`: () => void
|
|
@@ -225,6 +225,47 @@ import { Input } from '@designbasekorea/ui';
|
|
|
225
225
|
- `prefix`: ReactNode
|
|
226
226
|
- `suffix`: ReactNode
|
|
227
227
|
|
|
228
|
+
### AnimationBackground
|
|
229
|
+
|
|
230
|
+
애니메이션 배경 (그라디언트, 펄스, 파도, 파티클, 별, 오로라). 테마(light/dark)와 그리드 오버레이 지원.
|
|
231
|
+
|
|
232
|
+
```tsx
|
|
233
|
+
import { AnimationBackground } from '@designbasekorea/ui';
|
|
234
|
+
|
|
235
|
+
// 그라디언트
|
|
236
|
+
<AnimationBackground type="gradient" colors={['#667eea', '#764ba2', '#f093fb']}>
|
|
237
|
+
<div>콘텐츠</div>
|
|
238
|
+
</AnimationBackground>
|
|
239
|
+
|
|
240
|
+
// 오로라 (다크/라이트 테마)
|
|
241
|
+
<AnimationBackground type="aurora" theme="dark" intensity="vivid" colors={['#6366f1', '#a855f7', '#ec4899']} />
|
|
242
|
+
|
|
243
|
+
// Light Aurora Mesh (라이트 테마 + 은은한 그리드)
|
|
244
|
+
<AnimationBackground
|
|
245
|
+
type="aurora"
|
|
246
|
+
theme="light"
|
|
247
|
+
colors={['#c084fc', '#f472b6', '#38bdf8']}
|
|
248
|
+
intensity="medium"
|
|
249
|
+
showGrid
|
|
250
|
+
gridOpacity={0.12}
|
|
251
|
+
/>
|
|
252
|
+
|
|
253
|
+
// Blueprint (다크 그라디언트 + 그리드)
|
|
254
|
+
<AnimationBackground
|
|
255
|
+
type="gradient"
|
|
256
|
+
theme="dark"
|
|
257
|
+
colors={['#1e293b', '#0f172a']}
|
|
258
|
+
direction="up"
|
|
259
|
+
showGrid
|
|
260
|
+
gridColor="#60a5fa"
|
|
261
|
+
gridSize={20}
|
|
262
|
+
gridOpacity={0.2}
|
|
263
|
+
/>
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
**타입**: `'gradient' | 'pulse' | 'wave' | 'particles' | 'stars' | 'aurora'`
|
|
267
|
+
**주요 Props**: `type`, `theme` ('light' | 'dark'), `colors`, `intensity` ('subtle' | 'medium' | 'vivid'), `showGrid`, `gridSize`, `gridColor`, `gridOpacity`, `speed`, `direction`, `particleCount`, `starCount`, `clickable`
|
|
268
|
+
|
|
228
269
|
### Card
|
|
229
270
|
|
|
230
271
|
```tsx
|
|
@@ -279,21 +320,11 @@ function MyComponent() {
|
|
|
279
320
|
```tsx
|
|
280
321
|
import { Accordion } from '@designbasekorea/ui';
|
|
281
322
|
|
|
282
|
-
<Accordion
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
</Accordion.Content>
|
|
288
|
-
</Accordion.Item>
|
|
289
|
-
|
|
290
|
-
<Accordion.Item value="item-2">
|
|
291
|
-
<Accordion.Header>두 번째 항목</Accordion.Header>
|
|
292
|
-
<Accordion.Content>
|
|
293
|
-
두 번째 항목의 내용입니다.
|
|
294
|
-
</Accordion.Content>
|
|
295
|
-
</Accordion.Item>
|
|
296
|
-
</Accordion>
|
|
323
|
+
<Accordion
|
|
324
|
+
items={[
|
|
325
|
+
{ id: 'item-1', title: '제목 1', content: '내용 1' }
|
|
326
|
+
]}
|
|
327
|
+
/>
|
|
297
328
|
```
|
|
298
329
|
|
|
299
330
|
### Toast
|
|
@@ -431,7 +462,16 @@ npm run storybook
|
|
|
431
462
|
|
|
432
463
|
## 🔄 버전 히스토리
|
|
433
464
|
|
|
434
|
-
### 0.1
|
|
465
|
+
### 0.5.1 (Latest)
|
|
466
|
+
- ✅ AnimationBackground: 레이어 구조(CanvasLayer, CSSGradientLayer, MeshAuroraLayer, GridOverlay)
|
|
467
|
+
- ✅ theme(light/dark), showGrid, gridSize, gridColor, gridOpacity 지원
|
|
468
|
+
- ✅ Light Aurora Mesh / Blueprint 스타일 및 그리드 라인 전 영역 표시
|
|
469
|
+
- ✅ 타입 정리: gradient, pulse, wave, particles, stars, aurora (레인보우·파이어·오션·선셋 제거)
|
|
470
|
+
|
|
471
|
+
### 0.5.0
|
|
472
|
+
- ✅ Select 모바일 바텀시트 지원 (useMobileBottomSheet)
|
|
473
|
+
|
|
474
|
+
### 0.1.0
|
|
435
475
|
- ✅ 20+ React 컴포넌트 제공
|
|
436
476
|
- ✅ 테마 시스템 통합
|
|
437
477
|
- ✅ TypeScript 지원
|
|
@@ -458,14 +498,14 @@ import { Button } from '@designbasekorea/ui';
|
|
|
458
498
|
|
|
459
499
|
| UI | Tokens | Theme |
|
|
460
500
|
|----|--------|-------|
|
|
461
|
-
| 0.1
|
|
501
|
+
| 0.5.1+ | 0.2.x | 0.2.x |
|
|
462
502
|
|
|
463
503
|
호환되는 버전을 함께 사용하세요.
|
|
464
504
|
|
|
465
505
|
### 3. React 버전
|
|
466
506
|
|
|
467
|
-
- React `
|
|
468
|
-
- React DOM `
|
|
507
|
+
- React `19.0.0+` 필요 (peerDependencies)
|
|
508
|
+
- React DOM `19.0.0+` 필요
|
|
469
509
|
|
|
470
510
|
## 🤝 기여
|
|
471
511
|
|