@thalassic/themes 22.0.1 → 22.1.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/package.json +1 -1
- package/themes/thalassic/components/{_file-uploader.scss → _file-input.scss} +34 -12
- package/themes/thalassic/components/_form-item.scss +1 -1
- package/themes/thalassic/components/_odometer.scss +2 -1
- package/themes/thalassic/components/index.scss +1 -1
- package/themes/thalassic/components/tabs/_tabs.scss +9 -0
- package/themes/thalassic/components/toggle-group/_toggle-group.scss +9 -0
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@use '../mixins' as mixins;
|
|
2
2
|
|
|
3
|
-
.tls-file-
|
|
4
|
-
--tls-file-
|
|
5
|
-
--tls-file-
|
|
3
|
+
.tls-file-input {
|
|
4
|
+
--tls-file-input-border-color: var(--color-outline-variant);
|
|
5
|
+
--tls-file-input-border-radius: var(--radius-md);
|
|
6
|
+
--tls-file-input-drop-zone-padding: var(--spacing-6);
|
|
7
|
+
--tls-file-input-label-font-size: var(--font-body-medium-size);
|
|
6
8
|
|
|
7
9
|
display: inline-flex;
|
|
8
10
|
flex-direction: column;
|
|
@@ -14,6 +16,26 @@
|
|
|
14
16
|
width: 100%;
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
&--button {
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
|
|
22
|
+
.tls-file-input__hint {
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
|
|
25
|
+
text-align: start;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--sm {
|
|
30
|
+
--tls-file-input-drop-zone-padding: var(--spacing-4);
|
|
31
|
+
--tls-file-input-label-font-size: var(--font-body-small-size);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--lg {
|
|
35
|
+
--tls-file-input-drop-zone-padding: var(--spacing-8);
|
|
36
|
+
--tls-file-input-label-font-size: var(--font-body-large-size);
|
|
37
|
+
}
|
|
38
|
+
|
|
17
39
|
&__input {
|
|
18
40
|
display: none;
|
|
19
41
|
}
|
|
@@ -24,10 +46,10 @@
|
|
|
24
46
|
align-items: center;
|
|
25
47
|
justify-content: center;
|
|
26
48
|
|
|
27
|
-
padding: var(--
|
|
49
|
+
padding: var(--tls-file-input-drop-zone-padding);
|
|
28
50
|
|
|
29
|
-
border: 2px dashed var(--tls-file-
|
|
30
|
-
border-radius: var(--tls-file-
|
|
51
|
+
border: 2px dashed var(--tls-file-input-border-color);
|
|
52
|
+
border-radius: var(--tls-file-input-border-radius);
|
|
31
53
|
color: var(--color-on-surface-variant);
|
|
32
54
|
|
|
33
55
|
cursor: pointer;
|
|
@@ -43,13 +65,13 @@
|
|
|
43
65
|
|
|
44
66
|
&:hover:not(&--disabled),
|
|
45
67
|
&--dragging {
|
|
46
|
-
--tls-file-
|
|
68
|
+
--tls-file-input-border-color: var(--color-primary);
|
|
47
69
|
|
|
48
70
|
background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
|
|
49
71
|
}
|
|
50
72
|
|
|
51
73
|
&--rejected {
|
|
52
|
-
--tls-file-
|
|
74
|
+
--tls-file-input-border-color: var(--color-danger);
|
|
53
75
|
|
|
54
76
|
color: var(--color-danger);
|
|
55
77
|
background-color: color-mix(in srgb, var(--color-danger) 8%, transparent);
|
|
@@ -64,7 +86,7 @@
|
|
|
64
86
|
&__label {
|
|
65
87
|
pointer-events: none;
|
|
66
88
|
|
|
67
|
-
font-size: var(--
|
|
89
|
+
font-size: var(--tls-file-input-label-font-size);
|
|
68
90
|
text-align: center;
|
|
69
91
|
}
|
|
70
92
|
|
|
@@ -136,12 +158,12 @@
|
|
|
136
158
|
}
|
|
137
159
|
|
|
138
160
|
&--disabled {
|
|
139
|
-
.tls-file-
|
|
161
|
+
.tls-file-input__drop-zone {
|
|
140
162
|
pointer-events: none;
|
|
141
163
|
}
|
|
142
164
|
}
|
|
143
165
|
|
|
144
|
-
&:not(.tls-file-
|
|
145
|
-
--tls-file-
|
|
166
|
+
&:not(.tls-file-input--disabled).tls-file-input--touched.tls-file-input--invalid {
|
|
167
|
+
--tls-file-input-border-color: var(--color-danger);
|
|
146
168
|
}
|
|
147
169
|
}
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
// digit swaps instantly.
|
|
60
60
|
@include mixins.motion(essential) {
|
|
61
61
|
&--animate {
|
|
62
|
-
transition: transform var(--tls-odometer-duration, 600ms) var(--tls-odometer-easing)
|
|
62
|
+
transition: transform var(--tls-odometer-duration, 600ms) var(--tls-odometer-easing)
|
|
63
|
+
var(--tls-odometer-delay, 0ms);
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--tls-tabs-border-width: 1px;
|
|
7
7
|
--tls-tabs-active-border-color: var(--color-primary);
|
|
8
8
|
--tls-tabs-active-border-width: 2px;
|
|
9
|
+
--tls-tabs-disabled-opacity: 0.38;
|
|
9
10
|
--tls-tabs-content-padding: var(--spacing-4);
|
|
10
11
|
|
|
11
12
|
background: var(--tls-tabs-background-color);
|
|
@@ -42,6 +43,14 @@
|
|
|
42
43
|
border-color: var(--tls-tabs-active-border-color);
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
&.tls-tabs-header__item--disabled {
|
|
47
|
+
opacity: var(--tls-tabs-disabled-opacity);
|
|
48
|
+
|
|
49
|
+
.tls-tabs-header__item-button {
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
45
54
|
&-button {
|
|
46
55
|
padding: var(--spacing-3) var(--spacing-6);
|
|
47
56
|
|