varsel 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/styles.css +735 -143
  2. package/package.json +5 -4
package/dist/styles.css CHANGED
@@ -1,174 +1,766 @@
1
- @import "tailwindcss";
2
- @source "./**/*.{svelte,js}";
3
-
1
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme, base, components, utilities;
4
+ @layer theme {
5
+ :root, :host {
6
+ --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
7
+ "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
+ "Courier New", monospace;
10
+ --spacing: 0.25rem;
11
+ --container-sm: 24rem;
12
+ --text-sm: 0.875rem;
13
+ --text-sm--line-height: calc(1.25 / 0.875);
14
+ --font-weight-medium: 500;
15
+ --leading-snug: 1.375;
16
+ --default-transition-duration: 150ms;
17
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
18
+ --default-font-family: var(--font-sans);
19
+ --default-mono-font-family: var(--font-mono);
20
+ --color-vs-popover: var(--vs-popover);
21
+ --color-vs-popover-muted: var(--vs-popover-muted);
22
+ --color-vs-foreground: var(--vs-foreground);
23
+ --color-vs-border: var(--vs-border);
24
+ --color-vs-ring: var(--vs-ring);
25
+ --color-vs-ring-offset: var(--vs-ring-offset);
26
+ --color-vs-destructive: var(--vs-destructive);
27
+ --color-vs-warning: var(--vs-warning);
28
+ --color-vs-success: var(--vs-success);
29
+ --shadow-vs-button: var(--shadow-vs-button);
30
+ --shadow-vs-toast: var(--shadow-vs-toast);
31
+ --radius-vs-sm: calc(var(--radius-base) * 2);
32
+ --radius-vs-md: calc(var(--radius-base) * 3);
33
+ --radius-vs-lg: calc(var(--radius-base) * 4);
34
+ --ease-vs-button: var(--ease-vs-button);
35
+ --ease-vs-toast: var(--ease-vs-toast);
36
+ }
37
+ }
38
+ @layer base {
39
+ *, ::after, ::before, ::backdrop, ::file-selector-button {
40
+ box-sizing: border-box;
41
+ margin: 0;
42
+ padding: 0;
43
+ border: 0 solid;
44
+ }
45
+ html, :host {
46
+ line-height: 1.5;
47
+ -webkit-text-size-adjust: 100%;
48
+ tab-size: 4;
49
+ font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
50
+ font-feature-settings: var(--default-font-feature-settings, normal);
51
+ font-variation-settings: var(--default-font-variation-settings, normal);
52
+ -webkit-tap-highlight-color: transparent;
53
+ }
54
+ hr {
55
+ height: 0;
56
+ color: inherit;
57
+ border-top-width: 1px;
58
+ }
59
+ abbr:where([title]) {
60
+ -webkit-text-decoration: underline dotted;
61
+ text-decoration: underline dotted;
62
+ }
63
+ h1, h2, h3, h4, h5, h6 {
64
+ font-size: inherit;
65
+ font-weight: inherit;
66
+ }
67
+ a {
68
+ color: inherit;
69
+ -webkit-text-decoration: inherit;
70
+ text-decoration: inherit;
71
+ }
72
+ b, strong {
73
+ font-weight: bolder;
74
+ }
75
+ code, kbd, samp, pre {
76
+ font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
77
+ font-feature-settings: var(--default-mono-font-feature-settings, normal);
78
+ font-variation-settings: var(--default-mono-font-variation-settings, normal);
79
+ font-size: 1em;
80
+ }
81
+ small {
82
+ font-size: 80%;
83
+ }
84
+ sub, sup {
85
+ font-size: 75%;
86
+ line-height: 0;
87
+ position: relative;
88
+ vertical-align: baseline;
89
+ }
90
+ sub {
91
+ bottom: -0.25em;
92
+ }
93
+ sup {
94
+ top: -0.5em;
95
+ }
96
+ table {
97
+ text-indent: 0;
98
+ border-color: inherit;
99
+ border-collapse: collapse;
100
+ }
101
+ :-moz-focusring {
102
+ outline: auto;
103
+ }
104
+ progress {
105
+ vertical-align: baseline;
106
+ }
107
+ summary {
108
+ display: list-item;
109
+ }
110
+ ol, ul, menu {
111
+ list-style: none;
112
+ }
113
+ img, svg, video, canvas, audio, iframe, embed, object {
114
+ display: block;
115
+ vertical-align: middle;
116
+ }
117
+ img, video {
118
+ max-width: 100%;
119
+ height: auto;
120
+ }
121
+ button, input, select, optgroup, textarea, ::file-selector-button {
122
+ font: inherit;
123
+ font-feature-settings: inherit;
124
+ font-variation-settings: inherit;
125
+ letter-spacing: inherit;
126
+ color: inherit;
127
+ border-radius: 0;
128
+ background-color: transparent;
129
+ opacity: 1;
130
+ }
131
+ :where(select:is([multiple], [size])) optgroup {
132
+ font-weight: bolder;
133
+ }
134
+ :where(select:is([multiple], [size])) optgroup option {
135
+ padding-inline-start: 20px;
136
+ }
137
+ ::file-selector-button {
138
+ margin-inline-end: 4px;
139
+ }
140
+ ::placeholder {
141
+ opacity: 1;
142
+ }
143
+ @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
144
+ ::placeholder {
145
+ color: currentcolor;
146
+ @supports (color: color-mix(in lab, red, red)) {
147
+ color: color-mix(in oklab, currentcolor 50%, transparent);
148
+ }
149
+ }
150
+ }
151
+ textarea {
152
+ resize: vertical;
153
+ }
154
+ ::-webkit-search-decoration {
155
+ -webkit-appearance: none;
156
+ }
157
+ ::-webkit-date-and-time-value {
158
+ min-height: 1lh;
159
+ text-align: inherit;
160
+ }
161
+ ::-webkit-datetime-edit {
162
+ display: inline-flex;
163
+ }
164
+ ::-webkit-datetime-edit-fields-wrapper {
165
+ padding: 0;
166
+ }
167
+ ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
168
+ padding-block: 0;
169
+ }
170
+ ::-webkit-calendar-picker-indicator {
171
+ line-height: 1;
172
+ }
173
+ :-moz-ui-invalid {
174
+ box-shadow: none;
175
+ }
176
+ button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
177
+ appearance: button;
178
+ }
179
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
180
+ height: auto;
181
+ }
182
+ [hidden]:where(:not([hidden="until-found"])) {
183
+ display: none !important;
184
+ }
185
+ }
186
+ @layer utilities {
187
+ .pointer-events-auto {
188
+ pointer-events: auto;
189
+ }
190
+ .pointer-events-none {
191
+ pointer-events: none;
192
+ }
193
+ .absolute {
194
+ position: absolute;
195
+ }
196
+ .fixed {
197
+ position: fixed;
198
+ }
199
+ .relative {
200
+ position: relative;
201
+ }
202
+ .inset-0 {
203
+ inset: calc(var(--spacing) * 0);
204
+ }
205
+ .top-2 {
206
+ top: calc(var(--spacing) * 2);
207
+ }
208
+ .top-4 {
209
+ top: calc(var(--spacing) * 4);
210
+ }
211
+ .right-2 {
212
+ right: calc(var(--spacing) * 2);
213
+ }
214
+ .right-4 {
215
+ right: calc(var(--spacing) * 4);
216
+ }
217
+ .bottom-4 {
218
+ bottom: calc(var(--spacing) * 4);
219
+ }
220
+ .left-1\/2 {
221
+ left: calc(1/2 * 100%);
222
+ }
223
+ .left-4 {
224
+ left: calc(var(--spacing) * 4);
225
+ }
226
+ .z-50 {
227
+ z-index: 50;
228
+ }
229
+ .container {
230
+ width: 100%;
231
+ @media (width >= 40rem) {
232
+ max-width: 40rem;
233
+ }
234
+ @media (width >= 48rem) {
235
+ max-width: 48rem;
236
+ }
237
+ @media (width >= 64rem) {
238
+ max-width: 64rem;
239
+ }
240
+ @media (width >= 80rem) {
241
+ max-width: 80rem;
242
+ }
243
+ @media (width >= 96rem) {
244
+ max-width: 96rem;
245
+ }
246
+ }
247
+ .mt-3 {
248
+ margin-top: calc(var(--spacing) * 3);
249
+ }
250
+ .mb-1 {
251
+ margin-bottom: calc(var(--spacing) * 1);
252
+ }
253
+ .flex {
254
+ display: flex;
255
+ }
256
+ .hidden {
257
+ display: none;
258
+ }
259
+ .inline-flex {
260
+ display: inline-flex;
261
+ }
262
+ .h-4 {
263
+ height: calc(var(--spacing) * 4);
264
+ }
265
+ .w-4 {
266
+ width: calc(var(--spacing) * 4);
267
+ }
268
+ .w-full {
269
+ width: 100%;
270
+ }
271
+ .max-w-sm {
272
+ max-width: var(--container-sm);
273
+ }
274
+ .min-w-0 {
275
+ min-width: calc(var(--spacing) * 0);
276
+ }
277
+ .shrink-0 {
278
+ flex-shrink: 0;
279
+ }
280
+ .-translate-x-1\/2 {
281
+ --tw-translate-x: calc(calc(1/2 * 100%) * -1);
282
+ translate: var(--tw-translate-x) var(--tw-translate-y);
283
+ }
284
+ .transform {
285
+ transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
286
+ }
287
+ .cursor-grab {
288
+ cursor: grab;
289
+ }
290
+ .cursor-grabbing {
291
+ cursor: grabbing;
292
+ }
293
+ .cursor-pointer {
294
+ cursor: pointer;
295
+ }
296
+ .items-center {
297
+ align-items: center;
298
+ }
299
+ .justify-center {
300
+ justify-content: center;
301
+ }
302
+ .gap-3 {
303
+ gap: calc(var(--spacing) * 3);
304
+ }
305
+ .overflow-hidden {
306
+ overflow: hidden;
307
+ }
308
+ .rounded-vs-lg {
309
+ border-radius: var(--radius-vs-lg);
310
+ }
311
+ .rounded-vs-md {
312
+ border-radius: var(--radius-vs-md);
313
+ }
314
+ .rounded-vs-sm {
315
+ border-radius: var(--radius-vs-sm);
316
+ }
317
+ .border {
318
+ border-style: var(--tw-border-style);
319
+ border-width: 1px;
320
+ }
321
+ .border-vs-border {
322
+ border-color: var(--color-vs-border);
323
+ }
324
+ .bg-vs-foreground {
325
+ background-color: var(--color-vs-foreground);
326
+ }
327
+ .bg-vs-popover {
328
+ background-color: var(--color-vs-popover);
329
+ }
330
+ .p-1 {
331
+ padding: calc(var(--spacing) * 1);
332
+ }
333
+ .p-4 {
334
+ padding: calc(var(--spacing) * 4);
335
+ }
336
+ .px-3 {
337
+ padding-inline: calc(var(--spacing) * 3);
338
+ }
339
+ .py-1\.5 {
340
+ padding-block: calc(var(--spacing) * 1.5);
341
+ }
342
+ .pr-8 {
343
+ padding-right: calc(var(--spacing) * 8);
344
+ }
345
+ .text-sm {
346
+ font-size: var(--text-sm);
347
+ line-height: var(--tw-leading, var(--text-sm--line-height));
348
+ }
349
+ .leading-none {
350
+ --tw-leading: 1;
351
+ line-height: 1;
352
+ }
353
+ .leading-snug {
354
+ --tw-leading: var(--leading-snug);
355
+ line-height: var(--leading-snug);
356
+ }
357
+ .font-medium {
358
+ --tw-font-weight: var(--font-weight-medium);
359
+ font-weight: var(--font-weight-medium);
360
+ }
361
+ .text-balance {
362
+ text-wrap: balance;
363
+ }
364
+ .text-vs-destructive\/90 {
365
+ color: var(--color-vs-destructive);
366
+ @supports (color: color-mix(in lab, red, red)) {
367
+ color: color-mix(in oklab, var(--color-vs-destructive) 90%, transparent);
368
+ }
369
+ }
370
+ .text-vs-foreground {
371
+ color: var(--color-vs-foreground);
372
+ }
373
+ .text-vs-foreground\/45 {
374
+ color: var(--color-vs-foreground);
375
+ @supports (color: color-mix(in lab, red, red)) {
376
+ color: color-mix(in oklab, var(--color-vs-foreground) 45%, transparent);
377
+ }
378
+ }
379
+ .text-vs-foreground\/70 {
380
+ color: var(--color-vs-foreground);
381
+ @supports (color: color-mix(in lab, red, red)) {
382
+ color: color-mix(in oklab, var(--color-vs-foreground) 70%, transparent);
383
+ }
384
+ }
385
+ .text-vs-popover {
386
+ color: var(--color-vs-popover);
387
+ }
388
+ .text-vs-success\/90 {
389
+ color: var(--color-vs-success);
390
+ @supports (color: color-mix(in lab, red, red)) {
391
+ color: color-mix(in oklab, var(--color-vs-success) 90%, transparent);
392
+ }
393
+ }
394
+ .text-vs-warning\/90 {
395
+ color: var(--color-vs-warning);
396
+ @supports (color: color-mix(in lab, red, red)) {
397
+ color: color-mix(in oklab, var(--color-vs-warning) 90%, transparent);
398
+ }
399
+ }
400
+ .shadow-vs-button {
401
+ --tw-shadow: var(--shadow-vs-button);
402
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
403
+ }
404
+ .shadow-vs-toast {
405
+ --tw-shadow: var(--shadow-vs-toast);
406
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
407
+ }
408
+ .transition-\[background-color\,color\,box-shadow\] {
409
+ transition-property: background-color,color,box-shadow;
410
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
411
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
412
+ }
413
+ .duration-100 {
414
+ --tw-duration: 100ms;
415
+ transition-duration: 100ms;
416
+ }
417
+ .ease-vs-button {
418
+ --tw-ease: var(--ease-vs-button);
419
+ transition-timing-function: var(--ease-vs-button);
420
+ }
421
+ .will-change-transform {
422
+ will-change: transform;
423
+ }
424
+ .select-none {
425
+ -webkit-user-select: none;
426
+ user-select: none;
427
+ }
428
+ .hover\:bg-vs-popover-muted {
429
+ &:hover {
430
+ @media (hover: hover) {
431
+ background-color: var(--color-vs-popover-muted);
432
+ }
433
+ }
434
+ }
435
+ .hover\:text-vs-foreground\/70 {
436
+ &:hover {
437
+ @media (hover: hover) {
438
+ color: var(--color-vs-foreground);
439
+ @supports (color: color-mix(in lab, red, red)) {
440
+ color: color-mix(in oklab, var(--color-vs-foreground) 70%, transparent);
441
+ }
442
+ }
443
+ }
444
+ }
445
+ .focus-visible\:ring-1 {
446
+ &:focus-visible {
447
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
448
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
449
+ }
450
+ }
451
+ .focus-visible\:ring-vs-ring\/50 {
452
+ &:focus-visible {
453
+ --tw-ring-color: var(--color-vs-ring);
454
+ @supports (color: color-mix(in lab, red, red)) {
455
+ --tw-ring-color: color-mix(in oklab, var(--color-vs-ring) 50%, transparent);
456
+ }
457
+ }
458
+ }
459
+ .focus-visible\:ring-offset-1 {
460
+ &:focus-visible {
461
+ --tw-ring-offset-width: 1px;
462
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
463
+ }
464
+ }
465
+ .focus-visible\:ring-offset-vs-ring-offset\/50 {
466
+ &:focus-visible {
467
+ --tw-ring-offset-color: var(--color-vs-ring-offset);
468
+ @supports (color: color-mix(in lab, red, red)) {
469
+ --tw-ring-offset-color: color-mix(in oklab, var(--color-vs-ring-offset) 50%, transparent);
470
+ }
471
+ }
472
+ }
473
+ .focus-visible\:outline-none {
474
+ &:focus-visible {
475
+ --tw-outline-style: none;
476
+ outline-style: none;
477
+ }
478
+ }
479
+ }
4
480
  :root {
5
- --base-hue: 265;
6
- --color-vs-popover: oklch(1 0 0);
7
- --color-vs-popover-muted: oklch(0.96 0.002 var(--base-hue));
8
- --color-vs-foreground: oklch(0.1408 0.0044 var(--base-hue));
9
- --color-vs-border: oklch(0.8925 0.0014 var(--base-hue));
10
- --color-vs-ring: oklch(0.55 0.012 var(--base-hue));
11
- --color-vs-ring-offset: oklch(0.96 0.002 var(--base-hue));
12
- --color-vs-destructive: oklch(0.62 0.21 25);
13
- --color-vs-warning: oklch(0.8 0.2 75);
14
- --color-vs-success: oklch(0.7 0.18 155);
15
-
16
- --shadow-vs-button:
17
- 0px 1px 1px -0.5px rgba(0, 0, 0, 0.15), 0px 3px 3px -1.5px
481
+ --base-hue: 265;
482
+ --color-vs-popover: oklch(1 0 0);
483
+ --color-vs-popover-muted: oklch(0.96 0.002 var(--base-hue));
484
+ --color-vs-foreground: oklch(0.1408 0.0044 var(--base-hue));
485
+ --color-vs-border: oklch(0.8925 0.0014 var(--base-hue));
486
+ --color-vs-ring: oklch(0.55 0.012 var(--base-hue));
487
+ --color-vs-ring-offset: oklch(0.96 0.002 var(--base-hue));
488
+ --color-vs-destructive: oklch(0.62 0.21 25);
489
+ --color-vs-warning: oklch(0.8 0.2 75);
490
+ --color-vs-success: oklch(0.7 0.18 155);
491
+ --shadow-vs-button: 0px 1px 1px -0.5px rgba(0, 0, 0, 0.15), 0px 3px 3px -1.5px
18
492
  rgba(0, 0, 0, 0.05);
19
- --shadow-vs-toast:
20
- 0px 1px 1px -0.5px rgba(0, 0, 0, 0.15),
493
+ --shadow-vs-toast: 0px 1px 1px -0.5px rgba(0, 0, 0, 0.15),
21
494
  0px 3px 3px -1.5px rgba(0, 0, 0, 0.05),
22
495
  0px 6px 6px -3px rgba(0, 0, 0, 0.05),
23
496
  0px 12px 12px -6px rgba(0, 0, 0, 0.05),
24
497
  0px 24px 24px -12px rgba(0, 0, 0, 0.05),
25
498
  0px 48px 48px -24px rgba(0, 0, 0, 0.05);
26
- --radius-base: 0.125rem;
27
- --ease-vs-button: cubic-bezier(0.25, 0.46, 0.45, 0.94);
28
- --ease-vs-toast: cubic-bezier(0.32, 0.72, 0, 1);
499
+ --radius-base: 0.125rem;
500
+ --ease-vs-button: cubic-bezier(0.25, 0.46, 0.45, 0.94);
501
+ --ease-vs-toast: cubic-bezier(0.32, 0.72, 0, 1);
29
502
  }
30
-
31
503
  .dark {
32
- --color-vs-popover: oklch(0.2139 0.0101 var(--base-hue));
33
- --color-vs-popover-muted: oklch(0.2502 0.016 var(--base-hue));
34
- --color-vs-foreground: oklch(0.9824 0.0013 var(--base-hue));
35
- --color-vs-border: oklch(0.278 0.015 var(--base-hue));
36
- --color-vs-ring: oklch(0.58 0.012 var(--base-hue));
37
- --color-vs-ring-offset: oklch(0.15 0.005 var(--base-hue));
38
- --color-vs-destructive: oklch(0.72 0.27 25);
39
- --color-vs-warning: oklch(0.82 0.24 85);
40
- --color-vs-success: oklch(0.78 0.25 155);
41
- }
42
-
43
- @theme {
44
- --color-vs-popover: var(--vs-popover);
45
- --color-vs-popover-muted: var(--vs-popover-muted);
46
- --color-vs-foreground: var(--vs-foreground);
47
- --color-vs-border: var(--vs-border);
48
- --color-vs-ring: var(--vs-ring);
49
- --color-vs-ring-offset: var(--vs-ring-offset);
50
- --color-vs-destructive: var(--vs-destructive);
51
- --color-vs-warning: var(--vs-warning);
52
- --color-vs-success: var(--vs-success);
53
- --shadow-vs-button: var(--shadow-vs-button);
54
- --shadow-vs-toast: var(--shadow-vs-toast);
55
- --radius-vs-sm: calc(var(--radius-base) * 2);
56
- --radius-vs-md: calc(var(--radius-base) * 3);
57
- --radius-vs-lg: calc(var(--radius-base) * 4);
58
- --ease-vs-button: var(--ease-vs-button);
59
- --ease-vs-toast: var(--ease-vs-toast);
60
- }
61
-
504
+ --color-vs-popover: oklch(0.2139 0.0101 var(--base-hue));
505
+ --color-vs-popover-muted: oklch(0.2502 0.016 var(--base-hue));
506
+ --color-vs-foreground: oklch(0.9824 0.0013 var(--base-hue));
507
+ --color-vs-border: oklch(0.278 0.015 var(--base-hue));
508
+ --color-vs-ring: oklch(0.58 0.012 var(--base-hue));
509
+ --color-vs-ring-offset: oklch(0.15 0.005 var(--base-hue));
510
+ --color-vs-destructive: oklch(0.72 0.27 25);
511
+ --color-vs-warning: oklch(0.82 0.24 85);
512
+ --color-vs-success: oklch(0.78 0.25 155);
513
+ }
62
514
  .vs-spinner {
63
- display: inline-flex;
64
- width: 1rem;
65
- height: 1rem;
66
- align-items: center;
67
- justify-content: center;
68
- flex-shrink: 0;
69
- position: absolute;
70
- inset: 0;
71
- transform-origin: center;
72
- }
73
-
515
+ display: inline-flex;
516
+ width: 1rem;
517
+ height: 1rem;
518
+ align-items: center;
519
+ justify-content: center;
520
+ flex-shrink: 0;
521
+ position: absolute;
522
+ inset: 0;
523
+ transform-origin: center;
524
+ }
74
525
  .vs-spinner--active {
75
- opacity: 1;
526
+ opacity: 1;
76
527
  }
77
-
78
528
  .vs-spinner--finish {
79
- animation: vs-spinner-finish 0.42s cubic-bezier(0.32, 0.72, 0, 1) forwards;
529
+ animation: vs-spinner-finish 0.42s cubic-bezier(0.32, 0.72, 0, 1) forwards;
80
530
  }
81
-
82
531
  .vs-spinner svg {
83
- width: 100%;
84
- height: 100%;
85
- animation: vs-spin 1s linear infinite;
532
+ width: 100%;
533
+ height: 100%;
534
+ animation: vs-spin 1s linear infinite;
86
535
  }
87
-
88
536
  .vs-icon {
89
- display: inline-flex;
90
- width: 1rem;
91
- height: 1rem;
92
- align-items: center;
93
- justify-content: center;
94
- flex-shrink: 0;
95
- position: absolute;
96
- inset: 0;
97
- }
98
-
537
+ display: inline-flex;
538
+ width: 1rem;
539
+ height: 1rem;
540
+ align-items: center;
541
+ justify-content: center;
542
+ flex-shrink: 0;
543
+ position: absolute;
544
+ inset: 0;
545
+ }
99
546
  .vs-icon--static {
100
- opacity: 1;
101
- transform: scale(1);
547
+ opacity: 1;
548
+ transform: scale(1);
102
549
  }
103
-
104
550
  .vs-icon--waiting {
105
- opacity: 0;
106
- transform: scale(0.75) rotate(-6deg);
551
+ opacity: 0;
552
+ transform: scale(0.75) rotate(-6deg);
107
553
  }
108
-
109
554
  .vs-icon--pop {
110
- animation: vs-icon-pop 0.36s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
555
+ animation: vs-icon-pop 0.36s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
111
556
  }
112
-
113
557
  .vs-icon svg {
114
- width: 100%;
115
- height: 100%;
558
+ width: 100%;
559
+ height: 100%;
116
560
  }
117
-
118
561
  @keyframes vs-spin {
119
- to {
120
- transform: rotate(360deg);
121
- }
562
+ to {
563
+ transform: rotate(360deg);
564
+ }
122
565
  }
123
-
124
566
  @keyframes vs-spinner-finish {
125
- 0% {
126
- opacity: 1;
127
- transform: scale(1) rotate(0deg);
128
- filter: blur(0);
129
- }
130
- 60% {
131
- opacity: 0.65;
132
- transform: scale(0.55) rotate(140deg);
133
- filter: blur(0.3px);
134
- }
135
- 100% {
136
- opacity: 0;
137
- transform: scale(0) rotate(220deg);
138
- filter: blur(0.8px);
139
- }
140
- }
141
-
567
+ 0% {
568
+ opacity: 1;
569
+ transform: scale(1) rotate(0deg);
570
+ filter: blur(0);
571
+ }
572
+ 60% {
573
+ opacity: 0.65;
574
+ transform: scale(0.55) rotate(140deg);
575
+ filter: blur(0.3px);
576
+ }
577
+ 100% {
578
+ opacity: 0;
579
+ transform: scale(0) rotate(220deg);
580
+ filter: blur(0.8px);
581
+ }
582
+ }
142
583
  @keyframes vs-icon-pop {
143
- 0% {
144
- opacity: 0;
145
- transform: scale(0.5) rotate(-10deg);
146
- filter: blur(2px);
147
- }
148
- 60% {
149
- opacity: 1;
150
- transform: scale(1.18) rotate(2deg);
151
- filter: blur(0);
152
- }
153
- 100% {
154
- opacity: 1;
155
- transform: scale(1) rotate(0deg);
156
- filter: blur(0);
157
- }
158
- }
159
-
584
+ 0% {
585
+ opacity: 0;
586
+ transform: scale(0.5) rotate(-10deg);
587
+ filter: blur(2px);
588
+ }
589
+ 60% {
590
+ opacity: 1;
591
+ transform: scale(1.18) rotate(2deg);
592
+ filter: blur(0);
593
+ }
594
+ 100% {
595
+ opacity: 1;
596
+ transform: scale(1) rotate(0deg);
597
+ filter: blur(0);
598
+ }
599
+ }
160
600
  @media (prefers-reduced-motion: reduce) {
161
- .vs-spinner svg {
162
- animation-duration: 2s;
163
- }
164
-
165
- .vs-spinner--finish {
166
- animation-duration: 0s;
167
- }
168
-
169
- .vs-icon--pop {
170
- animation: none;
171
- opacity: 1;
172
- transform: scale(1);
173
- }
601
+ .vs-spinner svg {
602
+ animation-duration: 2s;
603
+ }
604
+ .vs-spinner--finish {
605
+ animation-duration: 0s;
606
+ }
607
+ .vs-icon--pop {
608
+ animation: none;
609
+ opacity: 1;
610
+ transform: scale(1);
611
+ }
612
+ }
613
+ @property --tw-translate-x {
614
+ syntax: "*";
615
+ inherits: false;
616
+ initial-value: 0;
617
+ }
618
+ @property --tw-translate-y {
619
+ syntax: "*";
620
+ inherits: false;
621
+ initial-value: 0;
622
+ }
623
+ @property --tw-translate-z {
624
+ syntax: "*";
625
+ inherits: false;
626
+ initial-value: 0;
627
+ }
628
+ @property --tw-rotate-x {
629
+ syntax: "*";
630
+ inherits: false;
631
+ }
632
+ @property --tw-rotate-y {
633
+ syntax: "*";
634
+ inherits: false;
635
+ }
636
+ @property --tw-rotate-z {
637
+ syntax: "*";
638
+ inherits: false;
639
+ }
640
+ @property --tw-skew-x {
641
+ syntax: "*";
642
+ inherits: false;
643
+ }
644
+ @property --tw-skew-y {
645
+ syntax: "*";
646
+ inherits: false;
647
+ }
648
+ @property --tw-border-style {
649
+ syntax: "*";
650
+ inherits: false;
651
+ initial-value: solid;
652
+ }
653
+ @property --tw-leading {
654
+ syntax: "*";
655
+ inherits: false;
656
+ }
657
+ @property --tw-font-weight {
658
+ syntax: "*";
659
+ inherits: false;
660
+ }
661
+ @property --tw-shadow {
662
+ syntax: "*";
663
+ inherits: false;
664
+ initial-value: 0 0 #0000;
665
+ }
666
+ @property --tw-shadow-color {
667
+ syntax: "*";
668
+ inherits: false;
669
+ }
670
+ @property --tw-shadow-alpha {
671
+ syntax: "<percentage>";
672
+ inherits: false;
673
+ initial-value: 100%;
674
+ }
675
+ @property --tw-inset-shadow {
676
+ syntax: "*";
677
+ inherits: false;
678
+ initial-value: 0 0 #0000;
679
+ }
680
+ @property --tw-inset-shadow-color {
681
+ syntax: "*";
682
+ inherits: false;
683
+ }
684
+ @property --tw-inset-shadow-alpha {
685
+ syntax: "<percentage>";
686
+ inherits: false;
687
+ initial-value: 100%;
688
+ }
689
+ @property --tw-ring-color {
690
+ syntax: "*";
691
+ inherits: false;
692
+ }
693
+ @property --tw-ring-shadow {
694
+ syntax: "*";
695
+ inherits: false;
696
+ initial-value: 0 0 #0000;
697
+ }
698
+ @property --tw-inset-ring-color {
699
+ syntax: "*";
700
+ inherits: false;
701
+ }
702
+ @property --tw-inset-ring-shadow {
703
+ syntax: "*";
704
+ inherits: false;
705
+ initial-value: 0 0 #0000;
706
+ }
707
+ @property --tw-ring-inset {
708
+ syntax: "*";
709
+ inherits: false;
710
+ }
711
+ @property --tw-ring-offset-width {
712
+ syntax: "<length>";
713
+ inherits: false;
714
+ initial-value: 0px;
715
+ }
716
+ @property --tw-ring-offset-color {
717
+ syntax: "*";
718
+ inherits: false;
719
+ initial-value: #fff;
720
+ }
721
+ @property --tw-ring-offset-shadow {
722
+ syntax: "*";
723
+ inherits: false;
724
+ initial-value: 0 0 #0000;
725
+ }
726
+ @property --tw-duration {
727
+ syntax: "*";
728
+ inherits: false;
729
+ }
730
+ @property --tw-ease {
731
+ syntax: "*";
732
+ inherits: false;
733
+ }
734
+ @layer properties {
735
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
736
+ *, ::before, ::after, ::backdrop {
737
+ --tw-translate-x: 0;
738
+ --tw-translate-y: 0;
739
+ --tw-translate-z: 0;
740
+ --tw-rotate-x: initial;
741
+ --tw-rotate-y: initial;
742
+ --tw-rotate-z: initial;
743
+ --tw-skew-x: initial;
744
+ --tw-skew-y: initial;
745
+ --tw-border-style: solid;
746
+ --tw-leading: initial;
747
+ --tw-font-weight: initial;
748
+ --tw-shadow: 0 0 #0000;
749
+ --tw-shadow-color: initial;
750
+ --tw-shadow-alpha: 100%;
751
+ --tw-inset-shadow: 0 0 #0000;
752
+ --tw-inset-shadow-color: initial;
753
+ --tw-inset-shadow-alpha: 100%;
754
+ --tw-ring-color: initial;
755
+ --tw-ring-shadow: 0 0 #0000;
756
+ --tw-inset-ring-color: initial;
757
+ --tw-inset-ring-shadow: 0 0 #0000;
758
+ --tw-ring-inset: initial;
759
+ --tw-ring-offset-width: 0px;
760
+ --tw-ring-offset-color: #fff;
761
+ --tw-ring-offset-shadow: 0 0 #0000;
762
+ --tw-duration: initial;
763
+ --tw-ease: initial;
764
+ }
765
+ }
174
766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "varsel",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Headless yet opinionated toast notifications for Svelte apps.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "scripts": {
39
- "build": "svelte-package",
40
- "prepublishOnly": "bun run build",
39
+ "build:css": "npx @tailwindcss/cli -i ./src/lib/styles.css -o ./dist/styles.css --watch",
40
+ "build": "bun run build:css && svelte-package",
41
41
  "check": "svelte-check --tsconfig ./tsconfig.json",
42
42
  "dev": "svelte-package --watch",
43
43
  "lint": "tsc -p tsconfig.json --noEmit"
@@ -56,6 +56,7 @@
56
56
  "svelte": "^5.46.0",
57
57
  "svelte-check": "^4.3.4",
58
58
  "tslib": "^2.8.1",
59
- "typescript": "^5.9.3"
59
+ "typescript": "^5.9.3",
60
+ "@tailwindcss/cli": "^4"
60
61
  }
61
62
  }