@dillingerstaffing/strand-svelte 0.5.0 → 0.6.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/dist/css/strand-ui.css +49 -38
- package/dist/index.js +1817 -1789
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Alert/Alert.svelte +10 -0
- package/src/components/Alert/Alert.test.ts +28 -0
- package/src/components/Toast/Toast.svelte +10 -0
- package/src/components/Toast/Toast.test.ts +28 -0
- package/src/components/Toast/ToastProvider.svelte +12 -0
package/dist/css/strand-ui.css
CHANGED
|
@@ -13,34 +13,45 @@
|
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
width: 100%;
|
|
15
15
|
padding: var(--strand-space-6);
|
|
16
|
-
padding-left: var(--strand-space-5);
|
|
17
16
|
border-radius: var(--strand-radius-md);
|
|
18
|
-
border-left: 4px solid transparent;
|
|
19
17
|
font-family: var(--strand-font-sans);
|
|
20
18
|
font-size: var(--strand-text-sm);
|
|
19
|
+
background: var(--strand-surface-recessed);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
/* ── Status variants ── */
|
|
22
|
+
/* ── Status variants (neutral background, status color on prefix only) ── */
|
|
24
23
|
.strand-alert--info {
|
|
25
|
-
background: var(--strand-
|
|
26
|
-
border-left-color: var(--strand-blue-primary);
|
|
24
|
+
background: var(--strand-surface-recessed);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
.strand-alert--success {
|
|
30
|
-
background:
|
|
31
|
-
border-left-color: var(--strand-green-positive);
|
|
28
|
+
background: var(--strand-surface-recessed);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
.strand-alert--warning {
|
|
35
|
-
background:
|
|
36
|
-
border-left-color: var(--strand-amber-caution);
|
|
32
|
+
background: var(--strand-surface-recessed);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
.strand-alert--error {
|
|
40
|
-
background:
|
|
41
|
-
|
|
36
|
+
background: var(--strand-surface-recessed);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ── Status prefix ── */
|
|
40
|
+
.strand-alert__status {
|
|
41
|
+
font-family: var(--strand-font-mono);
|
|
42
|
+
font-size: var(--strand-text-xs);
|
|
43
|
+
font-weight: var(--strand-weight-semibold);
|
|
44
|
+
letter-spacing: var(--strand-tracking-wider);
|
|
45
|
+
text-transform: uppercase;
|
|
46
|
+
margin-right: var(--strand-space-3);
|
|
47
|
+
flex-shrink: 0;
|
|
42
48
|
}
|
|
43
49
|
|
|
50
|
+
.strand-alert--info .strand-alert__status { color: var(--strand-blue-primary); }
|
|
51
|
+
.strand-alert--success .strand-alert__status { color: var(--strand-teal-vital); }
|
|
52
|
+
.strand-alert--warning .strand-alert__status { color: var(--strand-amber-caution); }
|
|
53
|
+
.strand-alert--error .strand-alert__status { color: var(--strand-red-alert); }
|
|
54
|
+
|
|
44
55
|
/* ── Content ── */
|
|
45
56
|
.strand-alert__content {
|
|
46
57
|
flex: 1;
|
|
@@ -53,8 +64,8 @@
|
|
|
53
64
|
display: inline-flex;
|
|
54
65
|
align-items: center;
|
|
55
66
|
justify-content: center;
|
|
56
|
-
width:
|
|
57
|
-
height:
|
|
67
|
+
width: var(--strand-space-6);
|
|
68
|
+
height: var(--strand-space-6);
|
|
58
69
|
margin-left: var(--strand-space-4);
|
|
59
70
|
padding: 0;
|
|
60
71
|
border: none;
|
|
@@ -676,7 +687,7 @@
|
|
|
676
687
|
line-height: var(--strand-leading-relaxed);
|
|
677
688
|
color: var(--strand-blue-midnight);
|
|
678
689
|
background: var(--strand-surface-recessed);
|
|
679
|
-
box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
|
|
690
|
+
box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06); /* strand-blue-abyss at 6% opacity */
|
|
680
691
|
border-radius: var(--strand-radius-lg);
|
|
681
692
|
padding: var(--strand-space-3) var(--strand-space-4);
|
|
682
693
|
overflow-x: auto;
|
|
@@ -919,10 +930,12 @@
|
|
|
919
930
|
|
|
920
931
|
/* ── Label ── */
|
|
921
932
|
.strand-form-field__label {
|
|
922
|
-
font-family: var(--strand-font-
|
|
923
|
-
font-size: var(--strand-text-
|
|
933
|
+
font-family: var(--strand-font-mono);
|
|
934
|
+
font-size: var(--strand-text-xs);
|
|
924
935
|
font-weight: var(--strand-weight-medium);
|
|
925
|
-
|
|
936
|
+
letter-spacing: var(--strand-tracking-widest);
|
|
937
|
+
text-transform: uppercase;
|
|
938
|
+
color: var(--strand-gray-500);
|
|
926
939
|
line-height: var(--strand-leading-snug);
|
|
927
940
|
}
|
|
928
941
|
|
|
@@ -2121,7 +2134,7 @@
|
|
|
2121
2134
|
.strand-tabs [role="tablist"] {
|
|
2122
2135
|
display: flex;
|
|
2123
2136
|
gap: var(--strand-space-1);
|
|
2124
|
-
border-bottom: 1px solid var(--strand-gray-
|
|
2137
|
+
border-bottom: 1px solid var(--strand-gray-200);
|
|
2125
2138
|
}
|
|
2126
2139
|
|
|
2127
2140
|
/* ── Tab button ── */
|
|
@@ -2195,7 +2208,7 @@
|
|
|
2195
2208
|
}
|
|
2196
2209
|
|
|
2197
2210
|
.strand-tag--solid.strand-tag--teal {
|
|
2198
|
-
background:
|
|
2211
|
+
background: var(--strand-surface-recessed);
|
|
2199
2212
|
color: var(--strand-on-teal-tint);
|
|
2200
2213
|
}
|
|
2201
2214
|
|
|
@@ -2205,12 +2218,12 @@
|
|
|
2205
2218
|
}
|
|
2206
2219
|
|
|
2207
2220
|
.strand-tag--solid.strand-tag--amber {
|
|
2208
|
-
background:
|
|
2221
|
+
background: var(--strand-surface-recessed);
|
|
2209
2222
|
color: var(--strand-on-amber-tint);
|
|
2210
2223
|
}
|
|
2211
2224
|
|
|
2212
2225
|
.strand-tag--solid.strand-tag--red {
|
|
2213
|
-
background:
|
|
2226
|
+
background: var(--strand-surface-recessed);
|
|
2214
2227
|
color: var(--strand-on-red-tint);
|
|
2215
2228
|
}
|
|
2216
2229
|
|
|
@@ -2383,7 +2396,6 @@
|
|
|
2383
2396
|
padding: var(--strand-space-4) var(--strand-space-5);
|
|
2384
2397
|
background: var(--strand-surface-elevated);
|
|
2385
2398
|
border-radius: var(--strand-radius-lg);
|
|
2386
|
-
border-left: 4px solid transparent;
|
|
2387
2399
|
box-shadow: var(--strand-elevation-3);
|
|
2388
2400
|
font-family: var(--strand-font-sans);
|
|
2389
2401
|
font-size: var(--strand-text-sm);
|
|
@@ -2391,22 +2403,21 @@
|
|
|
2391
2403
|
animation: strand-toast-in var(--strand-duration-normal) var(--strand-ease-out-expo);
|
|
2392
2404
|
}
|
|
2393
2405
|
|
|
2394
|
-
/* ── Status
|
|
2395
|
-
.strand-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
.strand-toast--warning {
|
|
2404
|
-
border-left-color: var(--strand-amber-caution);
|
|
2406
|
+
/* ── Status prefix ── */
|
|
2407
|
+
.strand-toast__status {
|
|
2408
|
+
font-family: var(--strand-font-mono);
|
|
2409
|
+
font-size: var(--strand-text-xs);
|
|
2410
|
+
font-weight: var(--strand-weight-semibold);
|
|
2411
|
+
letter-spacing: var(--strand-tracking-wider);
|
|
2412
|
+
text-transform: uppercase;
|
|
2413
|
+
margin-right: var(--strand-space-3);
|
|
2414
|
+
flex-shrink: 0;
|
|
2405
2415
|
}
|
|
2406
2416
|
|
|
2407
|
-
.strand-toast--
|
|
2408
|
-
|
|
2409
|
-
}
|
|
2417
|
+
.strand-toast--info .strand-toast__status { color: var(--strand-blue-primary); }
|
|
2418
|
+
.strand-toast--success .strand-toast__status { color: var(--strand-teal-vital); }
|
|
2419
|
+
.strand-toast--warning .strand-toast__status { color: var(--strand-amber-caution); }
|
|
2420
|
+
.strand-toast--error .strand-toast__status { color: var(--strand-red-alert); }
|
|
2410
2421
|
|
|
2411
2422
|
/* ── Message ── */
|
|
2412
2423
|
.strand-toast__message {
|
|
@@ -2421,8 +2432,8 @@
|
|
|
2421
2432
|
display: inline-flex;
|
|
2422
2433
|
align-items: center;
|
|
2423
2434
|
justify-content: center;
|
|
2424
|
-
width:
|
|
2425
|
-
height:
|
|
2435
|
+
width: var(--strand-space-6);
|
|
2436
|
+
height: var(--strand-space-6);
|
|
2426
2437
|
margin-left: var(--strand-space-3);
|
|
2427
2438
|
padding: 0;
|
|
2428
2439
|
border: none;
|