ui-svelte 0.2.12 → 0.2.14
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 +2 -2
- package/dist/charts/ArcChart.svelte +0 -1
- package/dist/control/Fab.svelte +103 -0
- package/dist/control/Fab.svelte.d.ts +25 -0
- package/dist/control/Record.svelte +0 -3
- package/dist/control/ToggleTheme.svelte +1 -1
- package/dist/control/Video.svelte +2 -0
- package/dist/control/css/btn.css +17 -17
- package/dist/control/css/fab.css +84 -0
- package/dist/control/css/media.css +7 -7
- package/dist/control/css/toggle-group.css +1 -17
- package/dist/css/decorations.css +348 -189
- package/dist/css/utilities.css +0 -4
- package/dist/display/Accordion.svelte +3 -3
- package/dist/display/Accordion.svelte.d.ts +1 -1
- package/dist/display/Card.svelte +3 -3
- package/dist/display/Card.svelte.d.ts +1 -1
- package/dist/display/Code.svelte +1 -1
- package/dist/display/Collapsible.svelte +3 -3
- package/dist/display/Collapsible.svelte.d.ts +1 -1
- package/dist/display/Countdown.svelte +169 -0
- package/dist/display/Countdown.svelte.d.ts +21 -0
- package/dist/display/Item.svelte +12 -0
- package/dist/display/Item.svelte.d.ts +2 -0
- package/dist/display/Marquee.svelte +0 -2
- package/dist/display/Section.svelte +3 -3
- package/dist/display/Section.svelte.d.ts +1 -1
- package/dist/display/css/accordion.css +14 -14
- package/dist/display/css/alert.css +42 -15
- package/dist/display/css/avatar.css +36 -36
- package/dist/display/css/card.css +108 -36
- package/dist/display/css/chip.css +16 -16
- package/dist/display/css/collapsible.css +32 -32
- package/dist/display/css/countdown.css +206 -0
- package/dist/display/css/item.css +24 -0
- package/dist/display/css/marquee.css +0 -3
- package/dist/display/css/section.css +88 -109
- package/dist/display/css/table.css +1 -16
- package/dist/form/ColorField.svelte +60 -2
- package/dist/form/DragDrop.svelte +317 -87
- package/dist/form/DragDrop.svelte.d.ts +1 -0
- package/dist/form/Dropzone.svelte +3 -3
- package/dist/form/Dropzone.svelte.d.ts +1 -1
- package/dist/form/ImageCropper.svelte +135 -4
- package/dist/form/RadioGroup.svelte +6 -2
- package/dist/form/RadioGroup.svelte.d.ts +1 -1
- package/dist/form/Slider.svelte +6 -2
- package/dist/form/Slider.svelte.d.ts +1 -1
- package/dist/form/TextField.svelte +13 -4
- package/dist/form/TextField.svelte.d.ts +3 -2
- package/dist/form/Toggle.svelte +6 -2
- package/dist/form/Toggle.svelte.d.ts +1 -1
- package/dist/form/css/control.css +14 -14
- package/dist/form/css/csv-field.css +8 -13
- package/dist/form/css/drag-drop.css +90 -127
- package/dist/form/css/dropzone.css +8 -8
- package/dist/form/css/editor.css +14 -14
- package/dist/form/css/image-cropper.css +28 -7
- package/dist/form/css/radio-group.css +25 -0
- package/dist/form/css/slider.css +36 -0
- package/dist/form/css/textarea.css +14 -14
- package/dist/form/css/toggle.css +12 -0
- package/dist/hooks/use-chat.svelte.js +1 -1
- package/dist/hooks/use-form.svelte.js +3 -3
- package/dist/hooks/use-search.svelte.js +0 -3
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +4 -0
- package/dist/index.css +28 -48
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/dist/layout/Provider.svelte +5 -5
- package/dist/layout/Sidebar.svelte +17 -8
- package/dist/layout/Sidebar.svelte.d.ts +2 -1
- package/dist/layout/css/app-bar.css +8 -7
- package/dist/layout/css/footer.css +7 -7
- package/dist/layout/css/sidebar.css +120 -59
- package/dist/navigation/BottomNav.svelte +23 -14
- package/dist/navigation/css/bottom-nav.css +74 -34
- package/dist/navigation/css/nav-menu.css +14 -15
- package/dist/navigation/css/side-nav.css +14 -15
- package/dist/overlay/AlertDialog.svelte +58 -0
- package/dist/overlay/AlertDialog.svelte.d.ts +14 -25
- package/dist/overlay/Command.svelte +177 -170
- package/dist/overlay/Command.svelte.d.ts +12 -3
- package/dist/overlay/Drawer.svelte +4 -4
- package/dist/overlay/Drawer.svelte.d.ts +1 -1
- package/dist/overlay/Modal.svelte +4 -4
- package/dist/overlay/Modal.svelte.d.ts +1 -1
- package/dist/overlay/Tooltip.svelte +0 -5
- package/dist/overlay/css/command.css +30 -42
- package/dist/overlay/css/drawer.css +10 -10
- package/dist/overlay/css/modal.css +70 -18
- package/dist/overlay/css/toast.css +42 -14
- package/dist/overlay/css/tooltip.css +49 -23
- package/dist/stores/theme.svelte.js +19 -12
- package/package.json +3 -2
- package/dist/utils/charts.d.ts +0 -27
- package/dist/utils/charts.js +0 -140
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.drag-drop {
|
|
3
3
|
@apply relative w-full;
|
|
4
|
+
--dd-color: var(--color-muted);
|
|
5
|
+
--dd-on-color: var(--color-on-muted);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.drag-drop.is-primary {
|
|
9
|
+
--dd-color: var(--color-primary);
|
|
10
|
+
--dd-on-color: var(--color-on-primary);
|
|
11
|
+
--dd-soft: var(--color-soft-primary);
|
|
12
|
+
}
|
|
13
|
+
.drag-drop.is-secondary {
|
|
14
|
+
--dd-color: var(--color-secondary);
|
|
15
|
+
--dd-on-color: var(--color-on-secondary);
|
|
16
|
+
--dd-soft: var(--color-soft-secondary);
|
|
17
|
+
}
|
|
18
|
+
.drag-drop.is-muted {
|
|
19
|
+
--dd-color: var(--color-muted);
|
|
20
|
+
--dd-on-color: var(--color-on-muted);
|
|
21
|
+
--dd-soft: var(--color-soft-muted);
|
|
22
|
+
}
|
|
23
|
+
.drag-drop.is-success {
|
|
24
|
+
--dd-color: var(--color-success);
|
|
25
|
+
--dd-on-color: var(--color-on-success);
|
|
26
|
+
--dd-soft: var(--color-soft-success);
|
|
27
|
+
}
|
|
28
|
+
.drag-drop.is-info {
|
|
29
|
+
--dd-color: var(--color-info);
|
|
30
|
+
--dd-on-color: var(--color-on-info);
|
|
31
|
+
--dd-soft: var(--color-soft-info);
|
|
32
|
+
}
|
|
33
|
+
.drag-drop.is-danger {
|
|
34
|
+
--dd-color: var(--color-danger);
|
|
35
|
+
--dd-on-color: var(--color-on-danger);
|
|
36
|
+
--dd-soft: var(--color-soft-danger);
|
|
37
|
+
}
|
|
38
|
+
.drag-drop.is-warning {
|
|
39
|
+
--dd-color: var(--color-warning);
|
|
40
|
+
--dd-on-color: var(--color-on-warning);
|
|
41
|
+
--dd-soft: var(--color-soft-warning);
|
|
4
42
|
}
|
|
5
43
|
|
|
6
44
|
.drag-drop.is-horizontal {
|
|
@@ -28,8 +66,7 @@
|
|
|
28
66
|
}
|
|
29
67
|
|
|
30
68
|
.drag-drop-group-header {
|
|
31
|
-
@apply flex items-center justify-between gap-2 px-3 py-2 mb-2;
|
|
32
|
-
@apply font-semibold;
|
|
69
|
+
@apply flex items-center justify-between gap-2 px-3 py-2 mb-2 font-semibold;
|
|
33
70
|
}
|
|
34
71
|
|
|
35
72
|
.drag-drop-group-title {
|
|
@@ -38,129 +75,59 @@
|
|
|
38
75
|
|
|
39
76
|
.drag-drop-group-count {
|
|
40
77
|
@apply px-2 py-0.5 text-xs rounded-full;
|
|
41
|
-
|
|
78
|
+
background: oklch(from var(--dd-color) l c h / 0.15);
|
|
42
79
|
}
|
|
43
80
|
|
|
44
81
|
.drag-drop-list {
|
|
45
82
|
@apply flex flex-col gap-2 min-h-24 p-2 rounded-ui;
|
|
46
83
|
@apply transition-colors duration-200;
|
|
47
84
|
}
|
|
48
|
-
.drag-drop.is-soft {
|
|
49
|
-
|
|
50
|
-
@apply rounded-ui;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.is-primary .drag-drop-list {
|
|
54
|
-
@apply bg-on-primary/50;
|
|
55
|
-
}
|
|
56
|
-
&.is-secondary .drag-drop-list {
|
|
57
|
-
@apply bg-on-secondary/50;
|
|
58
|
-
}
|
|
59
|
-
&.is-muted .drag-drop-list {
|
|
60
|
-
@apply bg-muted/50;
|
|
61
|
-
}
|
|
62
|
-
&.is-success .drag-drop-list {
|
|
63
|
-
@apply bg-on-success/50;
|
|
64
|
-
}
|
|
65
|
-
&.is-info .drag-drop-list {
|
|
66
|
-
@apply bg-on-info/50;
|
|
67
|
-
}
|
|
68
|
-
&.is-danger .drag-drop-list {
|
|
69
|
-
@apply bg-on-danger/50;
|
|
70
|
-
}
|
|
71
|
-
&.is-warning .drag-drop-list {
|
|
72
|
-
@apply bg-on-warning/50;
|
|
73
|
-
}
|
|
85
|
+
.drag-drop.is-soft .drag-drop-list {
|
|
86
|
+
background: oklch(from var(--dd-soft, var(--dd-color)) l c h / 0.5);
|
|
74
87
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
.drag-drop-list {
|
|
78
|
-
@apply rounded-ui;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.is-primary .drag-drop-list {
|
|
82
|
-
@apply bg-primary/20;
|
|
83
|
-
}
|
|
84
|
-
&.is-secondary .drag-drop-list {
|
|
85
|
-
@apply bg-secondary/20;
|
|
86
|
-
}
|
|
87
|
-
&.is-muted .drag-drop-list {
|
|
88
|
-
@apply bg-on-muted/10;
|
|
89
|
-
}
|
|
90
|
-
&.is-success .drag-drop-list {
|
|
91
|
-
@apply bg-success/20;
|
|
92
|
-
}
|
|
93
|
-
&.is-info .drag-drop-list {
|
|
94
|
-
@apply bg-info/20;
|
|
95
|
-
}
|
|
96
|
-
&.is-danger .drag-drop-list {
|
|
97
|
-
@apply bg-danger/20;
|
|
98
|
-
}
|
|
99
|
-
&.is-warning .drag-drop-list {
|
|
100
|
-
@apply bg-warning/20;
|
|
101
|
-
}
|
|
88
|
+
.drag-drop.is-solid .drag-drop-list {
|
|
89
|
+
background: oklch(from var(--dd-color) l c h / 0.2);
|
|
102
90
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
@apply rounded-ui border-2 border-dashed;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&.is-primary .drag-drop-list {
|
|
110
|
-
@apply border-primary/30;
|
|
111
|
-
}
|
|
112
|
-
&.is-secondary .drag-drop-list {
|
|
113
|
-
@apply border-secondary/30;
|
|
114
|
-
}
|
|
115
|
-
&.is-muted .drag-drop-list {
|
|
116
|
-
@apply border-muted;
|
|
117
|
-
}
|
|
118
|
-
&.is-success .drag-drop-list {
|
|
119
|
-
@apply border-success/30;
|
|
120
|
-
}
|
|
121
|
-
&.is-info .drag-drop-list {
|
|
122
|
-
@apply border-info/30;
|
|
123
|
-
}
|
|
124
|
-
&.is-danger .drag-drop-list {
|
|
125
|
-
@apply border-danger/30;
|
|
126
|
-
}
|
|
127
|
-
&.is-warning .drag-drop-list {
|
|
128
|
-
@apply border-warning/30;
|
|
129
|
-
}
|
|
91
|
+
.drag-drop.is-outlined .drag-drop-list {
|
|
92
|
+
@apply border-2 border-dashed;
|
|
93
|
+
border-color: oklch(from var(--dd-color) l c h / 0.3);
|
|
130
94
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.drag-drop-list {
|
|
134
|
-
@apply bg-transparent;
|
|
135
|
-
}
|
|
95
|
+
.drag-drop.is-ghost .drag-drop-list {
|
|
96
|
+
@apply bg-transparent;
|
|
136
97
|
}
|
|
137
|
-
|
|
138
98
|
.drag-drop-item {
|
|
139
99
|
@apply relative flex items-center gap-3 p-3 rounded-ui cursor-grab;
|
|
140
100
|
@apply bg-surface border border-transparent;
|
|
141
101
|
@apply transition-all duration-200;
|
|
142
|
-
|
|
102
|
+
-webkit-touch-callout: none;
|
|
103
|
+
-webkit-user-select: none;
|
|
104
|
+
-webkit-tap-highlight-color: transparent;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.drag-drop-item:hover {
|
|
108
|
+
border-color: oklch(from var(--dd-color) l c h / 0.2);
|
|
109
|
+
@apply shadow-sm;
|
|
143
110
|
}
|
|
144
111
|
|
|
145
112
|
.drag-drop-item.is-dragging {
|
|
146
|
-
@apply opacity-50 cursor-grabbing scale-[1.02];
|
|
147
|
-
|
|
113
|
+
@apply opacity-50 cursor-grabbing scale-[1.02] shadow-lg;
|
|
114
|
+
border-color: oklch(from var(--dd-color) l c h / 0.3);
|
|
148
115
|
}
|
|
149
116
|
|
|
150
117
|
.drag-drop-item.is-drag-over {
|
|
151
|
-
|
|
118
|
+
border-color: oklch(from var(--dd-color) l c h / 0.5);
|
|
152
119
|
}
|
|
153
120
|
|
|
154
|
-
.drag-drop-item.is-drag-over::before
|
|
121
|
+
.drag-drop-item.is-drag-over::before,
|
|
122
|
+
.drag-drop-item.is-touch-drag-over::before {
|
|
155
123
|
content: '';
|
|
156
|
-
@apply absolute -top-1.5 left-0 right-0 h-0.5;
|
|
157
|
-
|
|
124
|
+
@apply absolute -top-1.5 left-0 right-0 h-0.5 rounded-full;
|
|
125
|
+
background: var(--dd-color);
|
|
158
126
|
}
|
|
159
127
|
|
|
160
128
|
.drag-drop-item-content {
|
|
161
129
|
@apply flex-1 min-w-0 truncate;
|
|
162
130
|
}
|
|
163
|
-
|
|
164
131
|
.drag-drop-handle {
|
|
165
132
|
@apply shrink-0 opacity-30 cursor-grab;
|
|
166
133
|
@apply transition-opacity duration-200;
|
|
@@ -177,31 +144,29 @@
|
|
|
177
144
|
.drag-drop-empty {
|
|
178
145
|
@apply flex items-center justify-center min-h-24 p-4;
|
|
179
146
|
@apply text-sm opacity-50 text-center;
|
|
180
|
-
@apply border-2 border-dashed
|
|
147
|
+
@apply border-2 border-dashed rounded-ui;
|
|
181
148
|
@apply transition-all duration-200;
|
|
149
|
+
border-color: oklch(from var(--dd-color) l c h / 0.2);
|
|
182
150
|
}
|
|
183
151
|
|
|
184
152
|
.drag-drop-empty.is-drag-over {
|
|
185
|
-
|
|
153
|
+
border-color: oklch(from var(--dd-color) l c h / 0.5);
|
|
154
|
+
background: oklch(from var(--dd-color) l c h / 0.05);
|
|
186
155
|
}
|
|
187
156
|
|
|
188
157
|
.drag-drop.is-sm {
|
|
189
158
|
.drag-drop-item {
|
|
190
159
|
@apply p-2 gap-2 text-sm;
|
|
191
160
|
}
|
|
192
|
-
|
|
193
161
|
.drag-drop-handle svg {
|
|
194
162
|
@apply size-3;
|
|
195
163
|
}
|
|
196
|
-
|
|
197
164
|
.drag-drop-group-header {
|
|
198
165
|
@apply text-sm px-2 py-1;
|
|
199
166
|
}
|
|
200
|
-
|
|
201
167
|
.drag-drop-list {
|
|
202
168
|
@apply gap-1.5 p-1.5;
|
|
203
169
|
}
|
|
204
|
-
|
|
205
170
|
.drag-drop-empty {
|
|
206
171
|
@apply min-h-16 text-xs;
|
|
207
172
|
}
|
|
@@ -211,15 +176,12 @@
|
|
|
211
176
|
.drag-drop-item {
|
|
212
177
|
@apply p-3 gap-3 text-base;
|
|
213
178
|
}
|
|
214
|
-
|
|
215
179
|
.drag-drop-handle svg {
|
|
216
180
|
@apply size-4;
|
|
217
181
|
}
|
|
218
|
-
|
|
219
182
|
.drag-drop-group-header {
|
|
220
183
|
@apply text-base px-3 py-2;
|
|
221
184
|
}
|
|
222
|
-
|
|
223
185
|
.drag-drop-list {
|
|
224
186
|
@apply gap-2 p-2;
|
|
225
187
|
}
|
|
@@ -229,43 +191,44 @@
|
|
|
229
191
|
.drag-drop-item {
|
|
230
192
|
@apply p-4 gap-4 text-lg;
|
|
231
193
|
}
|
|
232
|
-
|
|
233
194
|
.drag-drop-handle svg {
|
|
234
195
|
@apply size-5;
|
|
235
196
|
}
|
|
236
|
-
|
|
237
197
|
.drag-drop-group-header {
|
|
238
198
|
@apply text-lg px-4 py-3;
|
|
239
199
|
}
|
|
240
|
-
|
|
241
200
|
.drag-drop-list {
|
|
242
201
|
@apply gap-3 p-3;
|
|
243
202
|
}
|
|
244
|
-
|
|
245
203
|
.drag-drop-empty {
|
|
246
204
|
@apply min-h-32;
|
|
247
205
|
}
|
|
248
206
|
}
|
|
249
207
|
|
|
250
|
-
.drag-drop.is-
|
|
251
|
-
@apply
|
|
208
|
+
.drag-drop.is-touch-dragging {
|
|
209
|
+
@apply select-none touch-none;
|
|
252
210
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
.drag-drop.is-muted .drag-drop-item.is-drag-over::before {
|
|
257
|
-
@apply bg-on-muted;
|
|
258
|
-
}
|
|
259
|
-
.drag-drop.is-success .drag-drop-item.is-drag-over::before {
|
|
260
|
-
@apply bg-success;
|
|
261
|
-
}
|
|
262
|
-
.drag-drop.is-info .drag-drop-item.is-drag-over::before {
|
|
263
|
-
@apply bg-info;
|
|
211
|
+
|
|
212
|
+
.drag-drop-item.is-touch-drag-over {
|
|
213
|
+
border-color: oklch(from var(--dd-color) l c h / 0.5);
|
|
264
214
|
}
|
|
265
|
-
|
|
266
|
-
|
|
215
|
+
|
|
216
|
+
.drag-drop-ghost {
|
|
217
|
+
@apply rounded-ui bg-surface;
|
|
218
|
+
border: 1px solid oklch(from var(--dd-color) l c h / 0.3);
|
|
267
219
|
}
|
|
268
|
-
|
|
269
|
-
|
|
220
|
+
|
|
221
|
+
@media (pointer: coarse) {
|
|
222
|
+
.drag-drop-item {
|
|
223
|
+
touch-action: pan-y;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.drag-drop.is-touch-dragging .drag-drop-item {
|
|
227
|
+
touch-action: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.drag-drop-handle {
|
|
231
|
+
@apply opacity-50;
|
|
232
|
+
}
|
|
270
233
|
}
|
|
271
234
|
}
|
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
|
|
23
23
|
.dropzone-input.is-soft {
|
|
24
24
|
&.is-primary {
|
|
25
|
-
@apply bg-
|
|
25
|
+
@apply bg-soft-primary text-primary border-primary;
|
|
26
26
|
}
|
|
27
27
|
&.is-secondary {
|
|
28
|
-
@apply bg-
|
|
28
|
+
@apply bg-soft-secondary text-secondary border-secondary;
|
|
29
29
|
}
|
|
30
30
|
&.is-muted {
|
|
31
|
-
@apply bg-muted text-on-muted border-muted;
|
|
31
|
+
@apply bg-soft-muted text-on-muted border-muted;
|
|
32
32
|
}
|
|
33
33
|
&.is-success {
|
|
34
|
-
@apply bg-
|
|
34
|
+
@apply bg-soft-success text-success border-success;
|
|
35
35
|
}
|
|
36
36
|
&.is-info {
|
|
37
|
-
@apply bg-
|
|
37
|
+
@apply bg-soft-info text-info border-info;
|
|
38
38
|
}
|
|
39
39
|
&.is-warning {
|
|
40
|
-
@apply bg-
|
|
40
|
+
@apply bg-soft-warning text-warning border-warning;
|
|
41
41
|
}
|
|
42
42
|
&.is-danger {
|
|
43
|
-
@apply bg-
|
|
43
|
+
@apply bg-soft-danger text-danger border-danger;
|
|
44
44
|
}
|
|
45
|
-
&.is-
|
|
45
|
+
&.is-background {
|
|
46
46
|
@apply bg-background text-on-background border-muted;
|
|
47
47
|
}
|
|
48
48
|
&.is-surface {
|
package/dist/form/css/editor.css
CHANGED
|
@@ -75,51 +75,51 @@
|
|
|
75
75
|
@apply rounded-ui;
|
|
76
76
|
|
|
77
77
|
&.is-primary {
|
|
78
|
-
@apply bg-
|
|
78
|
+
@apply bg-soft-primary text-primary;
|
|
79
79
|
&.is-active {
|
|
80
|
-
@apply bg-
|
|
80
|
+
@apply bg-soft-primary/90;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&.is-secondary {
|
|
85
|
-
@apply bg-
|
|
85
|
+
@apply bg-soft-secondary text-secondary;
|
|
86
86
|
&.is-active {
|
|
87
|
-
@apply bg-
|
|
87
|
+
@apply bg-soft-secondary/90;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&.is-muted {
|
|
92
|
-
@apply bg-muted text-
|
|
92
|
+
@apply bg-soft-muted text-muted;
|
|
93
93
|
&.is-active {
|
|
94
|
-
@apply bg-muted/90;
|
|
94
|
+
@apply bg-soft-muted/90;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&.is-success {
|
|
99
|
-
@apply bg-
|
|
99
|
+
@apply bg-soft-success text-success;
|
|
100
100
|
&.is-active {
|
|
101
|
-
@apply bg-
|
|
101
|
+
@apply bg-soft-success/90;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&.is-info {
|
|
106
|
-
@apply bg-
|
|
106
|
+
@apply bg-soft-info text-info;
|
|
107
107
|
&.is-active {
|
|
108
|
-
@apply bg-
|
|
108
|
+
@apply bg-soft-info/90;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&.is-danger {
|
|
113
|
-
@apply bg-
|
|
113
|
+
@apply bg-soft-danger text-danger;
|
|
114
114
|
&.is-active {
|
|
115
|
-
@apply bg-
|
|
115
|
+
@apply bg-soft-danger/90;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&.is-warning {
|
|
120
|
-
@apply bg-
|
|
120
|
+
@apply bg-soft-warning text-warning;
|
|
121
121
|
&.is-active {
|
|
122
|
-
@apply bg-
|
|
122
|
+
@apply bg-soft-warning/90;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -40,25 +40,25 @@
|
|
|
40
40
|
|
|
41
41
|
.image-cropper-avatar.is-soft {
|
|
42
42
|
&.is-primary {
|
|
43
|
-
@apply bg-
|
|
43
|
+
@apply bg-soft-primary/10 text-primary border-primary/30;
|
|
44
44
|
}
|
|
45
45
|
&.is-secondary {
|
|
46
|
-
@apply bg-
|
|
46
|
+
@apply bg-soft-secondary/10 text-secondary border-secondary/30;
|
|
47
47
|
}
|
|
48
48
|
&.is-muted {
|
|
49
|
-
@apply bg-muted/50 text-on-muted border-muted;
|
|
49
|
+
@apply bg-soft-muted/50 text-on-muted border-muted;
|
|
50
50
|
}
|
|
51
51
|
&.is-success {
|
|
52
|
-
@apply bg-
|
|
52
|
+
@apply bg-soft-success/10 text-success border-success/30;
|
|
53
53
|
}
|
|
54
54
|
&.is-info {
|
|
55
|
-
@apply bg-
|
|
55
|
+
@apply bg-soft-info/10 text-info border-info/30;
|
|
56
56
|
}
|
|
57
57
|
&.is-warning {
|
|
58
|
-
@apply bg-
|
|
58
|
+
@apply bg-soft-warning/10 text-warning border-warning/30;
|
|
59
59
|
}
|
|
60
60
|
&.is-danger {
|
|
61
|
-
@apply bg-
|
|
61
|
+
@apply bg-soft-danger/10 text-danger border-danger/30;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -261,6 +261,10 @@
|
|
|
261
261
|
@apply cursor-move;
|
|
262
262
|
@apply transition-shadow duration-300;
|
|
263
263
|
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
|
|
264
|
+
-webkit-touch-callout: none;
|
|
265
|
+
-webkit-user-select: none;
|
|
266
|
+
-webkit-tap-highlight-color: transparent;
|
|
267
|
+
touch-action: none;
|
|
264
268
|
}
|
|
265
269
|
|
|
266
270
|
.crop-area.is-circle {
|
|
@@ -340,6 +344,23 @@
|
|
|
340
344
|
@apply scale-125 bg-primary/90;
|
|
341
345
|
}
|
|
342
346
|
|
|
347
|
+
@media (pointer: coarse) {
|
|
348
|
+
.resize-handle {
|
|
349
|
+
@apply opacity-100 w-5 h-5;
|
|
350
|
+
touch-action: none;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.resize-handle.handle-n,
|
|
354
|
+
.resize-handle.handle-s {
|
|
355
|
+
@apply w-10 h-3;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.resize-handle.handle-e,
|
|
359
|
+
.resize-handle.handle-w {
|
|
360
|
+
@apply w-3 h-10;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
343
364
|
.image-cropper-canvas {
|
|
344
365
|
@apply hidden;
|
|
345
366
|
}
|
|
@@ -29,6 +29,31 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
&.is-success {
|
|
33
|
+
@apply checked:border-success;
|
|
34
|
+
&:checked {
|
|
35
|
+
@apply after:bg-success;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&.is-info {
|
|
39
|
+
@apply checked:border-info;
|
|
40
|
+
&:checked {
|
|
41
|
+
@apply after:bg-info;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&.is-danger {
|
|
45
|
+
@apply checked:border-danger;
|
|
46
|
+
&:checked {
|
|
47
|
+
@apply after:bg-danger;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
&.is-warning {
|
|
51
|
+
@apply checked:border-warning;
|
|
52
|
+
&:checked {
|
|
53
|
+
@apply after:bg-warning;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
32
57
|
&.is-sm {
|
|
33
58
|
@apply w-4 h-4;
|
|
34
59
|
&:checked {
|
package/dist/form/css/slider.css
CHANGED
|
@@ -50,6 +50,42 @@
|
|
|
50
50
|
@apply bg-on-muted;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
+
&.is-success {
|
|
54
|
+
--slider-color: var(--color-success);
|
|
55
|
+
&::-webkit-slider-thumb {
|
|
56
|
+
@apply bg-success;
|
|
57
|
+
}
|
|
58
|
+
&::-moz-range-thumb {
|
|
59
|
+
@apply bg-success;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
&.is-info {
|
|
63
|
+
--slider-color: var(--color-info);
|
|
64
|
+
&::-webkit-slider-thumb {
|
|
65
|
+
@apply bg-info;
|
|
66
|
+
}
|
|
67
|
+
&::-moz-range-thumb {
|
|
68
|
+
@apply bg-info;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&.is-warning {
|
|
72
|
+
--slider-color: var(--color-warning);
|
|
73
|
+
&::-webkit-slider-thumb {
|
|
74
|
+
@apply bg-warning;
|
|
75
|
+
}
|
|
76
|
+
&::-moz-range-thumb {
|
|
77
|
+
@apply bg-warning;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
&.is-danger {
|
|
81
|
+
--slider-color: var(--color-danger);
|
|
82
|
+
&::-webkit-slider-thumb {
|
|
83
|
+
@apply bg-danger;
|
|
84
|
+
}
|
|
85
|
+
&::-moz-range-thumb {
|
|
86
|
+
@apply bg-danger;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
53
89
|
&.is-sm {
|
|
54
90
|
@apply h-1 my-1;
|
|
55
91
|
&::-webkit-slider-thumb {
|
|
@@ -49,51 +49,51 @@
|
|
|
49
49
|
@apply rounded-ui;
|
|
50
50
|
|
|
51
51
|
&.is-primary {
|
|
52
|
-
@apply bg-
|
|
52
|
+
@apply bg-soft-primary text-primary;
|
|
53
53
|
&.is-active {
|
|
54
|
-
@apply bg-
|
|
54
|
+
@apply bg-soft-primary/90;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&.is-secondary {
|
|
59
|
-
@apply bg-
|
|
59
|
+
@apply bg-soft-secondary text-secondary;
|
|
60
60
|
&.is-active {
|
|
61
|
-
@apply bg-
|
|
61
|
+
@apply bg-soft-secondary/90;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
&.is-muted {
|
|
66
|
-
@apply bg-muted text-on-muted;
|
|
66
|
+
@apply bg-soft-muted text-on-muted;
|
|
67
67
|
&.is-active {
|
|
68
|
-
@apply bg-muted/90;
|
|
68
|
+
@apply bg-soft-muted/90;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&.is-success {
|
|
73
|
-
@apply bg-
|
|
73
|
+
@apply bg-soft-success text-success;
|
|
74
74
|
&.is-active {
|
|
75
|
-
@apply bg-
|
|
75
|
+
@apply bg-soft-success/90;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&.is-info {
|
|
80
|
-
@apply bg-
|
|
80
|
+
@apply bg-soft-info text-info;
|
|
81
81
|
&.is-active {
|
|
82
|
-
@apply bg-
|
|
82
|
+
@apply bg-soft-info/90;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&.is-danger {
|
|
87
|
-
@apply bg-
|
|
87
|
+
@apply bg-soft-danger text-danger;
|
|
88
88
|
&.is-active {
|
|
89
|
-
@apply bg-
|
|
89
|
+
@apply bg-soft-danger/90;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&.is-warning {
|
|
94
|
-
@apply bg-
|
|
94
|
+
@apply bg-soft-warning text-warning;
|
|
95
95
|
&.is-active {
|
|
96
|
-
@apply bg-
|
|
96
|
+
@apply bg-soft-warning/90;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
package/dist/form/css/toggle.css
CHANGED
|
@@ -22,6 +22,18 @@
|
|
|
22
22
|
&.is-muted {
|
|
23
23
|
@apply bg-on-muted;
|
|
24
24
|
}
|
|
25
|
+
&.is-success {
|
|
26
|
+
@apply bg-success;
|
|
27
|
+
}
|
|
28
|
+
&.is-info {
|
|
29
|
+
@apply bg-info;
|
|
30
|
+
}
|
|
31
|
+
&.is-danger {
|
|
32
|
+
@apply bg-danger;
|
|
33
|
+
}
|
|
34
|
+
&.is-warning {
|
|
35
|
+
@apply bg-warning;
|
|
36
|
+
}
|
|
25
37
|
}
|
|
26
38
|
|
|
27
39
|
.toggle-label-left,
|
|
@@ -35,7 +35,7 @@ export const useChat = (config) => {
|
|
|
35
35
|
const loadedMessages = config.transformMessage
|
|
36
36
|
? data.messages.map(config.transformMessage)
|
|
37
37
|
: data.messages;
|
|
38
|
-
messages = loadedMessages.reverse();
|
|
38
|
+
messages = loadedMessages.reverse();
|
|
39
39
|
hasMore = data.hasMore ?? false;
|
|
40
40
|
if (messages.length > 0) {
|
|
41
41
|
oldestMessageId = messages[0].id;
|
|
@@ -36,7 +36,7 @@ export const useForm = (config) => {
|
|
|
36
36
|
toast.show({
|
|
37
37
|
title: config.errorTitle || 'Error',
|
|
38
38
|
description: config.errorDescription || 'An error occurred while submitting the form.',
|
|
39
|
-
|
|
39
|
+
color: 'danger',
|
|
40
40
|
duration: 3000
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -48,7 +48,7 @@ export const useForm = (config) => {
|
|
|
48
48
|
toast.show({
|
|
49
49
|
title: config.successTitle || 'Success',
|
|
50
50
|
description: config.successDescription || 'Form submitted successfully.',
|
|
51
|
-
|
|
51
|
+
color: 'success',
|
|
52
52
|
duration: 3000
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -63,7 +63,7 @@ export const useForm = (config) => {
|
|
|
63
63
|
toast.show({
|
|
64
64
|
title: config.errorTitle || 'Error',
|
|
65
65
|
description: config.errorDescription || 'An error occurred while submitting the form.',
|
|
66
|
-
|
|
66
|
+
color: 'danger',
|
|
67
67
|
duration: 3000
|
|
68
68
|
});
|
|
69
69
|
}
|