podo-ui 0.9.7 → 1.0.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/cdn/podo-datepicker.css +1 -1
- package/cdn/podo-datepicker.js +1 -1
- package/cdn/podo-datepicker.min.css +1 -1
- package/cdn/podo-datepicker.min.js +1 -1
- package/cdn/podo-ui.css +4 -1
- package/cdn/podo-ui.min.css +1 -1
- package/dist/react/atom/editor.d.ts.map +1 -1
- package/dist/react/atom/editor.js +94 -2
- package/dist/svelte/actions/portal.d.ts +18 -0
- package/dist/svelte/actions/portal.js +42 -0
- package/dist/svelte/atom/Avatar.svelte +97 -0
- package/dist/svelte/atom/Avatar.svelte.d.ts +31 -0
- package/dist/svelte/atom/Button.svelte +86 -0
- package/dist/svelte/atom/Button.svelte.d.ts +26 -0
- package/dist/svelte/atom/Checkbox.svelte +56 -0
- package/dist/svelte/atom/Checkbox.svelte.d.ts +16 -0
- package/dist/svelte/atom/Chip.svelte +60 -0
- package/dist/svelte/atom/Chip.svelte.d.ts +25 -0
- package/dist/svelte/atom/Editor.svelte +1314 -0
- package/dist/svelte/atom/Editor.svelte.d.ts +30 -0
- package/dist/svelte/atom/EditorView.svelte +16 -0
- package/dist/svelte/atom/EditorView.svelte.d.ts +9 -0
- package/dist/svelte/atom/File.svelte +33 -0
- package/dist/svelte/atom/File.svelte.d.ts +14 -0
- package/dist/svelte/atom/Input.svelte +80 -0
- package/dist/svelte/atom/Input.svelte.d.ts +19 -0
- package/dist/svelte/atom/Label.svelte +43 -0
- package/dist/svelte/atom/Label.svelte.d.ts +19 -0
- package/dist/svelte/atom/Radio.svelte +69 -0
- package/dist/svelte/atom/Radio.svelte.d.ts +26 -0
- package/dist/svelte/atom/RadioGroup.svelte +46 -0
- package/dist/svelte/atom/RadioGroup.svelte.d.ts +16 -0
- package/dist/svelte/atom/Select.svelte +65 -0
- package/dist/svelte/atom/Select.svelte.d.ts +26 -0
- package/dist/svelte/atom/Textarea.svelte +53 -0
- package/dist/svelte/atom/Textarea.svelte.d.ts +13 -0
- package/dist/svelte/atom/Toggle.svelte +48 -0
- package/dist/svelte/atom/Toggle.svelte.d.ts +14 -0
- package/dist/svelte/atom/Tooltip.svelte +78 -0
- package/dist/svelte/atom/Tooltip.svelte.d.ts +23 -0
- package/dist/svelte/atom/avatar.module.scss +82 -0
- package/dist/svelte/atom/editor-view.module.scss +251 -0
- package/dist/svelte/atom/input.module.scss +98 -0
- package/dist/svelte/atom/textarea.module.scss +17 -0
- package/dist/svelte/atom/tooltip.module.scss +227 -0
- package/dist/svelte/index.d.ts +26 -0
- package/dist/svelte/index.js +30 -0
- package/dist/svelte/molecule/DatePicker.svelte +986 -0
- package/dist/svelte/molecule/DatePicker.svelte.d.ts +71 -0
- package/dist/svelte/molecule/Field.svelte +81 -0
- package/dist/svelte/molecule/Field.svelte.d.ts +26 -0
- package/dist/svelte/molecule/Pagination.svelte +95 -0
- package/dist/svelte/molecule/Pagination.svelte.d.ts +14 -0
- package/dist/svelte/molecule/Tab.svelte +69 -0
- package/dist/svelte/molecule/Tab.svelte.d.ts +26 -0
- package/dist/svelte/molecule/TabPanel.svelte +24 -0
- package/dist/svelte/molecule/TabPanel.svelte.d.ts +14 -0
- package/dist/svelte/molecule/Table.svelte +109 -0
- package/dist/svelte/molecule/Table.svelte.d.ts +54 -0
- package/dist/svelte/molecule/Toast.svelte +111 -0
- package/dist/svelte/molecule/Toast.svelte.d.ts +25 -0
- package/dist/svelte/molecule/ToastProvider.svelte +74 -0
- package/dist/svelte/molecule/ToastProvider.svelte.d.ts +8 -0
- package/dist/svelte/molecule/field.module.scss +22 -0
- package/dist/svelte/molecule/pagination.module.scss +61 -0
- package/dist/svelte/molecule/toast-container.module.scss +70 -0
- package/dist/svelte/molecule/toast.module.scss +12 -0
- package/dist/svelte/stores/toast.d.ts +45 -0
- package/dist/svelte/stores/toast.js +55 -0
- package/dist/svelte/stores/validation.d.ts +15 -0
- package/dist/svelte/stores/validation.js +38 -0
- package/global.scss +1 -0
- package/package.json +32 -5
- package/vite-fonts.scss +1 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
@use '../../../mixin.scss' as *;
|
|
2
|
+
|
|
3
|
+
.tooltipWrapper {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tooltipBox {
|
|
9
|
+
position: absolute;
|
|
10
|
+
padding: s(2) s(4);
|
|
11
|
+
border-radius: r(3);
|
|
12
|
+
font-family: 'Pretendard', -apple-system, sans-serif;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
line-height: 22.4px;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
z-index: 1000;
|
|
18
|
+
|
|
19
|
+
// Default variant
|
|
20
|
+
&.variantDefault {
|
|
21
|
+
background-color: color(default-deep);
|
|
22
|
+
color: color(text-action-reverse) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Info variant
|
|
26
|
+
&.variantInfo {
|
|
27
|
+
background-color: color(info);
|
|
28
|
+
color: color(text-action-reverse) !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Arrow styles
|
|
32
|
+
&::before {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
width: 12px;
|
|
36
|
+
height: 12px;
|
|
37
|
+
transform-origin: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Top positions
|
|
41
|
+
&.top,
|
|
42
|
+
&.topLeft,
|
|
43
|
+
&.topRight {
|
|
44
|
+
bottom: calc(100% + var(--tooltip-offset, 8px));
|
|
45
|
+
|
|
46
|
+
&::before {
|
|
47
|
+
bottom: -6px;
|
|
48
|
+
border-radius: 0 0 2px 0;
|
|
49
|
+
transform: rotate(45deg);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.variantDefault::before {
|
|
53
|
+
background-color: color(default-deep);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.variantInfo::before {
|
|
57
|
+
background-color: color(info);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.top {
|
|
62
|
+
left: 50%;
|
|
63
|
+
transform: translateX(-50%);
|
|
64
|
+
|
|
65
|
+
&::before {
|
|
66
|
+
left: 50%;
|
|
67
|
+
transform: translateX(-50%) rotate(45deg);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.topLeft {
|
|
72
|
+
left: 0;
|
|
73
|
+
|
|
74
|
+
&::before {
|
|
75
|
+
left: 8px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.topRight {
|
|
80
|
+
right: 0;
|
|
81
|
+
|
|
82
|
+
&::before {
|
|
83
|
+
right: 8px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Bottom positions
|
|
88
|
+
&.bottom,
|
|
89
|
+
&.bottomLeft,
|
|
90
|
+
&.bottomRight {
|
|
91
|
+
top: calc(100% + var(--tooltip-offset, 8px));
|
|
92
|
+
|
|
93
|
+
&::before {
|
|
94
|
+
top: -6px;
|
|
95
|
+
border-radius: 2px 0 0 0;
|
|
96
|
+
transform: rotate(45deg);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.variantDefault::before {
|
|
100
|
+
background-color: color(default-deep);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.variantInfo::before {
|
|
104
|
+
background-color: color(info);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.bottom {
|
|
109
|
+
left: 50%;
|
|
110
|
+
transform: translateX(-50%);
|
|
111
|
+
|
|
112
|
+
&::before {
|
|
113
|
+
left: 50%;
|
|
114
|
+
transform: translateX(-50%) rotate(45deg);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.bottomLeft {
|
|
119
|
+
left: 0;
|
|
120
|
+
|
|
121
|
+
&::before {
|
|
122
|
+
left: 8px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.bottomRight {
|
|
127
|
+
right: 0;
|
|
128
|
+
|
|
129
|
+
&::before {
|
|
130
|
+
right: 8px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Left positions
|
|
135
|
+
&.left,
|
|
136
|
+
&.leftTop,
|
|
137
|
+
&.leftBottom {
|
|
138
|
+
right: calc(100% + var(--tooltip-offset, 8px));
|
|
139
|
+
|
|
140
|
+
&::before {
|
|
141
|
+
right: -6px;
|
|
142
|
+
border-radius: 0 2px 0 0;
|
|
143
|
+
transform: rotate(45deg);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.variantDefault::before {
|
|
147
|
+
background-color: color(default-deep);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&.variantInfo::before {
|
|
151
|
+
background-color: color(info);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.left {
|
|
156
|
+
top: 50%;
|
|
157
|
+
transform: translateY(-50%);
|
|
158
|
+
|
|
159
|
+
&::before {
|
|
160
|
+
top: 50%;
|
|
161
|
+
transform: translateY(-50%) rotate(45deg);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.leftTop {
|
|
166
|
+
top: 0;
|
|
167
|
+
|
|
168
|
+
&::before {
|
|
169
|
+
top: 8px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.leftBottom {
|
|
174
|
+
bottom: 0;
|
|
175
|
+
|
|
176
|
+
&::before {
|
|
177
|
+
bottom: 8px;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Right positions
|
|
182
|
+
&.right,
|
|
183
|
+
&.rightTop,
|
|
184
|
+
&.rightBottom {
|
|
185
|
+
left: calc(100% + var(--tooltip-offset, 8px));
|
|
186
|
+
|
|
187
|
+
&::before {
|
|
188
|
+
left: -6px;
|
|
189
|
+
border-radius: 0 0 0 2px;
|
|
190
|
+
transform: rotate(45deg);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&.variantDefault::before {
|
|
194
|
+
background-color: color(default-deep);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.variantInfo::before {
|
|
198
|
+
background-color: color(info);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.right {
|
|
203
|
+
top: 50%;
|
|
204
|
+
transform: translateY(-50%);
|
|
205
|
+
|
|
206
|
+
&::before {
|
|
207
|
+
top: 50%;
|
|
208
|
+
transform: translateY(-50%) rotate(45deg);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&.rightTop {
|
|
213
|
+
top: 0;
|
|
214
|
+
|
|
215
|
+
&::before {
|
|
216
|
+
top: 8px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&.rightBottom {
|
|
221
|
+
bottom: 0;
|
|
222
|
+
|
|
223
|
+
&::before {
|
|
224
|
+
bottom: 8px;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { default as Button } from './atom/Button.svelte';
|
|
2
|
+
export { default as Input } from './atom/Input.svelte';
|
|
3
|
+
export { default as Textarea } from './atom/Textarea.svelte';
|
|
4
|
+
export { default as Label } from './atom/Label.svelte';
|
|
5
|
+
export { default as Checkbox } from './atom/Checkbox.svelte';
|
|
6
|
+
export { default as Radio, type RadioGroupOption } from './atom/Radio.svelte';
|
|
7
|
+
export { default as RadioGroup } from './atom/RadioGroup.svelte';
|
|
8
|
+
export { default as Select, type SelectOption } from './atom/Select.svelte';
|
|
9
|
+
export { default as Toggle } from './atom/Toggle.svelte';
|
|
10
|
+
export { default as File } from './atom/File.svelte';
|
|
11
|
+
export { default as Avatar } from './atom/Avatar.svelte';
|
|
12
|
+
export { default as Chip } from './atom/Chip.svelte';
|
|
13
|
+
export { default as Tooltip } from './atom/Tooltip.svelte';
|
|
14
|
+
export { default as EditorView } from './atom/EditorView.svelte';
|
|
15
|
+
export { default as Editor, type ToolbarItem as EditorToolbarItem } from './atom/Editor.svelte';
|
|
16
|
+
export { default as Field } from './molecule/Field.svelte';
|
|
17
|
+
export { default as Pagination } from './molecule/Pagination.svelte';
|
|
18
|
+
export { default as Tab, type TabItem } from './molecule/Tab.svelte';
|
|
19
|
+
export { default as TabPanel } from './molecule/TabPanel.svelte';
|
|
20
|
+
export { default as Table, type TableColumn } from './molecule/Table.svelte';
|
|
21
|
+
export { default as Toast } from './molecule/Toast.svelte';
|
|
22
|
+
export { default as ToastProvider } from './molecule/ToastProvider.svelte';
|
|
23
|
+
export { default as DatePicker, type DatePickerMode, type DatePickerType, type DatePickerValue, type TimeValue, type DateRange, type DateCondition, type DateTimeLimit, type MinuteStep, type YearRange, type CalendarInitial, type InitialCalendar, } from './molecule/DatePicker.svelte';
|
|
24
|
+
export { createValidation, type ValidationStore, } from './stores/validation';
|
|
25
|
+
export { createToastContext, useToast, type ToastContext, type ToastOptions, type ToastData, type ToastPosition, type ToastTheme, } from './stores/toast';
|
|
26
|
+
export { portal } from './actions/portal';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Atom components
|
|
2
|
+
export { default as Button } from './atom/Button.svelte';
|
|
3
|
+
export { default as Input } from './atom/Input.svelte';
|
|
4
|
+
export { default as Textarea } from './atom/Textarea.svelte';
|
|
5
|
+
export { default as Label } from './atom/Label.svelte';
|
|
6
|
+
export { default as Checkbox } from './atom/Checkbox.svelte';
|
|
7
|
+
export { default as Radio } from './atom/Radio.svelte';
|
|
8
|
+
export { default as RadioGroup } from './atom/RadioGroup.svelte';
|
|
9
|
+
export { default as Select } from './atom/Select.svelte';
|
|
10
|
+
export { default as Toggle } from './atom/Toggle.svelte';
|
|
11
|
+
export { default as File } from './atom/File.svelte';
|
|
12
|
+
export { default as Avatar } from './atom/Avatar.svelte';
|
|
13
|
+
export { default as Chip } from './atom/Chip.svelte';
|
|
14
|
+
export { default as Tooltip } from './atom/Tooltip.svelte';
|
|
15
|
+
export { default as EditorView } from './atom/EditorView.svelte';
|
|
16
|
+
export { default as Editor } from './atom/Editor.svelte';
|
|
17
|
+
// Molecule components
|
|
18
|
+
export { default as Field } from './molecule/Field.svelte';
|
|
19
|
+
export { default as Pagination } from './molecule/Pagination.svelte';
|
|
20
|
+
export { default as Tab } from './molecule/Tab.svelte';
|
|
21
|
+
export { default as TabPanel } from './molecule/TabPanel.svelte';
|
|
22
|
+
export { default as Table } from './molecule/Table.svelte';
|
|
23
|
+
export { default as Toast } from './molecule/Toast.svelte';
|
|
24
|
+
export { default as ToastProvider } from './molecule/ToastProvider.svelte';
|
|
25
|
+
export { default as DatePicker, } from './molecule/DatePicker.svelte';
|
|
26
|
+
// Stores
|
|
27
|
+
export { createValidation, } from './stores/validation';
|
|
28
|
+
export { createToastContext, useToast, } from './stores/toast';
|
|
29
|
+
// Actions
|
|
30
|
+
export { portal } from './actions/portal';
|