@poodle-kit/ui 0.1.1 → 0.3.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/LICENSE +21 -0
- package/README.md +148 -151
- package/dist/components/image-uploader/image-uploader.d.mts +4 -0
- package/dist/components/image-uploader/image-uploader.d.ts +4 -0
- package/dist/components/image-uploader/image-uploader.js +471 -0
- package/dist/components/image-uploader/image-uploader.js.map +1 -0
- package/dist/components/image-uploader/image-uploader.mjs +452 -0
- package/dist/components/image-uploader/image-uploader.mjs.map +1 -0
- package/dist/image-uploader-BFvQ4s0a.d.mts +100 -0
- package/dist/image-uploader-BFvQ4s0a.d.ts +100 -0
- package/dist/index.css +557 -49
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +82 -12
- package/dist/index.d.ts +82 -12
- package/dist/index.js +976 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +974 -33
- package/dist/index.mjs.map +1 -1
- package/dist/lib/cn.d.mts +5 -0
- package/dist/lib/cn.d.ts +5 -0
- package/dist/lib/cn.js +35 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/cn.mjs +10 -0
- package/dist/lib/cn.mjs.map +1 -0
- package/dist/theme/index.d.mts +287 -0
- package/dist/theme/index.d.ts +287 -0
- package/dist/theme/index.js +386 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/index.mjs +355 -0
- package/dist/theme/index.mjs.map +1 -0
- package/dist/theme/theme.css +110 -0
- package/package.json +25 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 poodle-kit
|
|
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 NONINFRINGEMENT. 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/README.md
CHANGED
|
@@ -1,151 +1,148 @@
|
|
|
1
|
-
# @poodle-kit/ui
|
|
2
|
-
|
|
3
|
-
TypeScript와 Tailwind CSS로 만든 React UI 컴포넌트 라이브러리예요.
|
|
4
|
-
|
|
5
|
-
## 📦 설치하기
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @poodle-kit/ui
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### 같이 필요한 패키지들
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install react@">=18" react-dom@">=18"
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## 💡 사용 방법
|
|
18
|
-
|
|
19
|
-
### 기본 예제
|
|
20
|
-
|
|
21
|
-
```tsx
|
|
22
|
-
import { Button } from '@poodle-kit/ui';
|
|
23
|
-
import '@poodle-kit/ui/styles.css';
|
|
24
|
-
|
|
25
|
-
function App() {
|
|
26
|
-
return (
|
|
27
|
-
<Button
|
|
28
|
-
label="클릭해주세요"
|
|
29
|
-
variant="primary"
|
|
30
|
-
onClick={() => alert('클릭했어요!')}
|
|
31
|
-
/>
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### TypeScript와 함께 사용하기
|
|
37
|
-
|
|
38
|
-
```tsx
|
|
39
|
-
import { Button, ButtonProps } from '@poodle-kit/ui';
|
|
40
|
-
import '@poodle-kit/ui/styles.css';
|
|
41
|
-
|
|
42
|
-
const MyButton: React.FC<ButtonProps> = (props) => {
|
|
43
|
-
return <Button {...props} />;
|
|
44
|
-
};
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## 🎨 컴포넌트
|
|
48
|
-
|
|
49
|
-
### Button
|
|
50
|
-
|
|
51
|
-
다양한 스타일과 크기를 지원하는 버튼 컴포넌트예요.
|
|
52
|
-
|
|
53
|
-
#### Props
|
|
54
|
-
|
|
55
|
-
| Prop
|
|
56
|
-
|
|
57
|
-
| `label`
|
|
58
|
-
| `variant`
|
|
59
|
-
| `size`
|
|
60
|
-
| `fullWidth` | `boolean`
|
|
61
|
-
| `disabled`
|
|
62
|
-
| `onClick`
|
|
63
|
-
|
|
64
|
-
일반적인 HTML button 속성들도 모두 사용할 수 있어요.
|
|
65
|
-
|
|
66
|
-
#### 예제
|
|
67
|
-
|
|
68
|
-
**다양한 스타일**
|
|
69
|
-
|
|
70
|
-
```tsx
|
|
71
|
-
<Button label="Primary" variant="primary" />
|
|
72
|
-
<Button label="Secondary" variant="secondary" />
|
|
73
|
-
<Button label="Ghost" variant="ghost" />
|
|
74
|
-
<Button label="Danger" variant="danger" />
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
**다양한 크기**
|
|
78
|
-
|
|
79
|
-
```tsx
|
|
80
|
-
<Button label="작아요" size="sm" />
|
|
81
|
-
<Button label="보통이에요" size="md" />
|
|
82
|
-
<Button label="커요" size="lg" />
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**전체 너비로 만들기**
|
|
86
|
-
|
|
87
|
-
```tsx
|
|
88
|
-
<Button label="전체 너비 버튼" fullWidth />
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
**비활성화 상태**
|
|
92
|
-
|
|
93
|
-
```tsx
|
|
94
|
-
<Button label="비활성화된 버튼" disabled />
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## 🎨 스타일링
|
|
98
|
-
|
|
99
|
-
이 라이브러리는 Tailwind CSS를 사용해요. 스타일을 꼭 import 해주세요:
|
|
100
|
-
|
|
101
|
-
```tsx
|
|
102
|
-
import '@poodle-kit/ui/styles.css';
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### 커스텀 스타일 적용하기
|
|
106
|
-
|
|
107
|
-
className을 통해 추가 스타일을 적용할 수 있어요:
|
|
108
|
-
|
|
109
|
-
```tsx
|
|
110
|
-
<Button
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
## 📄 라이선스
|
|
150
|
-
|
|
151
|
-
MIT
|
|
1
|
+
# @poodle-kit/ui
|
|
2
|
+
|
|
3
|
+
TypeScript와 Tailwind CSS로 만든 React UI 컴포넌트 라이브러리예요.
|
|
4
|
+
|
|
5
|
+
## 📦 설치하기
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @poodle-kit/ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### 같이 필요한 패키지들
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install react@">=18" react-dom@">=18"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## 💡 사용 방법
|
|
18
|
+
|
|
19
|
+
### 기본 예제
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import { Button } from '@poodle-kit/ui';
|
|
23
|
+
import '@poodle-kit/ui/styles.css';
|
|
24
|
+
|
|
25
|
+
function App() {
|
|
26
|
+
return (
|
|
27
|
+
<Button
|
|
28
|
+
label="클릭해주세요"
|
|
29
|
+
variant="primary"
|
|
30
|
+
onClick={() => alert('클릭했어요!')}
|
|
31
|
+
/>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### TypeScript와 함께 사용하기
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
import { Button, ButtonProps } from '@poodle-kit/ui';
|
|
40
|
+
import '@poodle-kit/ui/styles.css';
|
|
41
|
+
|
|
42
|
+
const MyButton: React.FC<ButtonProps> = (props) => {
|
|
43
|
+
return <Button {...props} />;
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 🎨 컴포넌트
|
|
48
|
+
|
|
49
|
+
### Button
|
|
50
|
+
|
|
51
|
+
다양한 스타일과 크기를 지원하는 버튼 컴포넌트예요.
|
|
52
|
+
|
|
53
|
+
#### Props
|
|
54
|
+
|
|
55
|
+
| Prop | 타입 | 기본값 | 설명 |
|
|
56
|
+
| ----------- | ------------------------------------------------- | ----------- | ------------------------------- |
|
|
57
|
+
| `label` | `string` | - | 버튼에 표시될 텍스트 **(필수)** |
|
|
58
|
+
| `variant` | `"primary" \| "secondary" \| "ghost" \| "danger"` | `"primary"` | 버튼의 스타일 종류 |
|
|
59
|
+
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | 버튼의 크기 |
|
|
60
|
+
| `fullWidth` | `boolean` | `false` | 버튼을 전체 너비로 만들기 |
|
|
61
|
+
| `disabled` | `boolean` | `false` | 버튼 비활성화하기 |
|
|
62
|
+
| `onClick` | `() => void` | - | 클릭 이벤트 핸들러 |
|
|
63
|
+
|
|
64
|
+
일반적인 HTML button 속성들도 모두 사용할 수 있어요.
|
|
65
|
+
|
|
66
|
+
#### 예제
|
|
67
|
+
|
|
68
|
+
**다양한 스타일**
|
|
69
|
+
|
|
70
|
+
```tsx
|
|
71
|
+
<Button label="Primary" variant="primary" />
|
|
72
|
+
<Button label="Secondary" variant="secondary" />
|
|
73
|
+
<Button label="Ghost" variant="ghost" />
|
|
74
|
+
<Button label="Danger" variant="danger" />
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**다양한 크기**
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
<Button label="작아요" size="sm" />
|
|
81
|
+
<Button label="보통이에요" size="md" />
|
|
82
|
+
<Button label="커요" size="lg" />
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**전체 너비로 만들기**
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
<Button label="전체 너비 버튼" fullWidth />
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**비활성화 상태**
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
<Button label="비활성화된 버튼" disabled />
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## 🎨 스타일링
|
|
98
|
+
|
|
99
|
+
이 라이브러리는 Tailwind CSS를 사용해요. 스타일을 꼭 import 해주세요:
|
|
100
|
+
|
|
101
|
+
```tsx
|
|
102
|
+
import '@poodle-kit/ui/styles.css';
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 커스텀 스타일 적용하기
|
|
106
|
+
|
|
107
|
+
className을 통해 추가 스타일을 적용할 수 있어요:
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
<Button label="커스텀" className="my-custom-class" />
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## 🔧 TypeScript 지원
|
|
114
|
+
|
|
115
|
+
TypeScript로 작성되어 완벽한 타입 정의를 제공해요.
|
|
116
|
+
|
|
117
|
+
```tsx
|
|
118
|
+
import type { ButtonProps } from '@poodle-kit/ui';
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## 🌐 브라우저 지원
|
|
122
|
+
|
|
123
|
+
- Chrome (최신 버전)
|
|
124
|
+
- Firefox (최신 버전)
|
|
125
|
+
- Safari (최신 버전)
|
|
126
|
+
- Edge (최신 버전)
|
|
127
|
+
|
|
128
|
+
## 🛠️ 개발하기
|
|
129
|
+
|
|
130
|
+
### 빌드
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npm run build
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Watch 모드
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
npm run dev
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 📦 리포지토리
|
|
143
|
+
|
|
144
|
+
[GitHub](https://github.com/poodle-kit/poodle-kit/tree/main/packages/ui)
|
|
145
|
+
|
|
146
|
+
## 📄 라이선스
|
|
147
|
+
|
|
148
|
+
MIT
|