@ibis-design/css 0.8.1 → 0.9.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/README.md +21 -14
- package/dist/components/banner.css +13 -17
- package/dist/components/button.css +13 -13
- package/dist/components/checkbox.css +29 -11
- package/dist/components/chips.css +8 -8
- package/dist/components/dropdown.css +12 -20
- package/dist/components/dropdownButton.css +13 -20
- package/dist/components/navButton.css +233 -0
- package/dist/components/pillTab.css +7 -12
- package/dist/components/radio.css +14 -13
- package/dist/components/switch.css +5 -8
- package/dist/components/textInput.css +12 -15
- package/dist/components/textarea.css +7 -13
- package/dist/components/textlink.css +6 -14
- package/dist/components/tipIndicator.css +4 -10
- package/dist/components/toaster.css +21 -27
- package/dist/design-tokens.css +250 -122
- package/dist/tailwind.preset.js +1 -1
- package/dist/tailwind.theme.js +40 -1
- package/package.json +33 -31
- package/src/lib/assemble-design-tokens.ts +20 -0
- package/src/lib/set-theme.ts +73 -0
- package/src/lib/themes.ts +74 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/* Shared nav button styles — import via @ibis-design/css/components/navButton.css */
|
|
2
|
+
|
|
3
|
+
.ib-nav-button {
|
|
4
|
+
min-width: 4em;
|
|
5
|
+
height: 3.5em;
|
|
6
|
+
border: var(--border-width-default) solid transparent;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
transition:
|
|
9
|
+
filter var(--transition-duration-fast) var(--transition-timing-default),
|
|
10
|
+
transform var(--transition-duration-fast) var(--transition-timing-default),
|
|
11
|
+
box-shadow var(--transition-duration-fast) var(--transition-timing-default);
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ib-nav-button-drawer {
|
|
18
|
+
height: 3.5em;
|
|
19
|
+
width: 100%;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ib-nav-button-rail {
|
|
24
|
+
height: 3.5em;
|
|
25
|
+
width: 4em;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ib-nav-button-content {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
gap: var(--spacing-2);
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ib-nav-button-icon {
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ib-nav-button-label {
|
|
46
|
+
font-family: var(--font-family-sans);
|
|
47
|
+
font-weight: var(--font-weight-normal);
|
|
48
|
+
font-size: var(--font-size-body-md);
|
|
49
|
+
text-align: left;
|
|
50
|
+
margin-left: var(--spacing-1);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ib-nav-button-bottom-container {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
gap: var(--spacing-1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ib-nav-button-bottom {
|
|
62
|
+
height: 3.5em;
|
|
63
|
+
width: 5em;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
align-items: center;
|
|
66
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
67
|
+
border-radius: var(--border-radius-xl);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ib-nav-button-bottom-label {
|
|
71
|
+
font-family: var(--font-family-sans);
|
|
72
|
+
font-weight: var(--font-weight-normal);
|
|
73
|
+
font-size: var(--font-size-body-sm);
|
|
74
|
+
color: var(--color-text-primary);
|
|
75
|
+
text-align: center;
|
|
76
|
+
margin-top: var(--spacing-1);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ib-nav-button--sm {
|
|
80
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
81
|
+
font-size: var(--font-size-body-sm);
|
|
82
|
+
border-radius: var(--border-radius-sm);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ib-nav-button--md {
|
|
86
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
87
|
+
font-size: var(--font-size-body-md);
|
|
88
|
+
border-radius: var(--border-radius-md);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ib-nav-button--lg {
|
|
92
|
+
padding: var(--spacing-3) var(--spacing-6);
|
|
93
|
+
font-size: var(--font-size-body-lg);
|
|
94
|
+
border-radius: var(--border-radius-lg);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ib-nav-button--icon-only {
|
|
98
|
+
width: 4em;
|
|
99
|
+
height: 3.5em;
|
|
100
|
+
padding: var(--spacing-2);
|
|
101
|
+
justify-content: center;
|
|
102
|
+
align-items: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ib-nav-button-drawer.ib-nav-button--icon-only {
|
|
106
|
+
width: 4em;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ib-nav-button--icon-only .ib-nav-button-content {
|
|
110
|
+
gap: 0;
|
|
111
|
+
width: auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ib-nav-button--primary {
|
|
115
|
+
background: transparent;
|
|
116
|
+
color: var(--color-interactive-primary-fg);
|
|
117
|
+
border: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ib-nav-button--primary-selected {
|
|
121
|
+
background: var(--color-interactive-primary-bg-selected);
|
|
122
|
+
color: var(--color-interactive-primary-fg);
|
|
123
|
+
border: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ib-nav-button--primary:not(:disabled):hover,
|
|
127
|
+
.ib-nav-button--primary:not(:disabled):active {
|
|
128
|
+
box-shadow: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ib-nav-button--primary:not(:disabled):hover {
|
|
132
|
+
background: var(--color-interactive-primary-bg-hover);
|
|
133
|
+
border-width: var(--border-width-hairline);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ib-nav-button--primary:not(:disabled):active {
|
|
137
|
+
background: var(--color-interactive-primary-bg-hover);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ib-nav-button--primary:disabled {
|
|
141
|
+
background: var(--color-surface-disabled);
|
|
142
|
+
color: var(--color-interactive-primary-fg-disabled);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ib-nav-button--secondary {
|
|
146
|
+
background-color: transparent;
|
|
147
|
+
color: var(--color-brand-secondary);
|
|
148
|
+
border-color: var(--color-brand-secondary);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ib-nav-button--secondary:not(:disabled):hover {
|
|
152
|
+
background-color: var(--color-surface-subtle);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ib-nav-button:disabled {
|
|
156
|
+
opacity: var(--opacity-disabled);
|
|
157
|
+
cursor: not-allowed;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ib-nav-button--loading {
|
|
161
|
+
position: relative;
|
|
162
|
+
cursor: not-allowed;
|
|
163
|
+
pointer-events: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ib-nav-button-loader {
|
|
167
|
+
position: absolute;
|
|
168
|
+
width: 1em;
|
|
169
|
+
height: 1em;
|
|
170
|
+
border: var(--border-width-default) solid var(--color-text-primary);
|
|
171
|
+
border-top-color: var(--color-surface-default);
|
|
172
|
+
border-radius: 50%;
|
|
173
|
+
animation: ib-nav-button-spin 0.8s linear infinite;
|
|
174
|
+
top: 50%;
|
|
175
|
+
left: 50%;
|
|
176
|
+
transform: translate(-50%, -50%);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ib-nav-button--skeleton {
|
|
180
|
+
position: relative;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
background: var(--color-surface-muted);
|
|
183
|
+
color: transparent;
|
|
184
|
+
border-color: var(--color-text-muted);
|
|
185
|
+
cursor: default;
|
|
186
|
+
pointer-events: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ib-nav-button--skeleton::after {
|
|
190
|
+
content: "";
|
|
191
|
+
position: absolute;
|
|
192
|
+
top: 50%;
|
|
193
|
+
left: 50%;
|
|
194
|
+
transform: translate(-50%, -50%);
|
|
195
|
+
width: 80%;
|
|
196
|
+
height: 1em;
|
|
197
|
+
background-color: var(--color-text-disabled);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ib-nav-button--icon-only.ib-nav-button--skeleton::after {
|
|
201
|
+
width: 1em;
|
|
202
|
+
height: 1em;
|
|
203
|
+
border-radius: var(--border-radius-xs);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ib-nav-button--skeleton::before {
|
|
207
|
+
content: "";
|
|
208
|
+
position: absolute;
|
|
209
|
+
inset: 0;
|
|
210
|
+
background: var(--gradient-skeleton);
|
|
211
|
+
transform: translateX(-100%);
|
|
212
|
+
animation: ib-nav-shimmer 2s infinite;
|
|
213
|
+
border-radius: inherit;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@keyframes ib-nav-button-spin {
|
|
217
|
+
from {
|
|
218
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
|
219
|
+
}
|
|
220
|
+
to {
|
|
221
|
+
transform: translate(-50%, -50%) rotate(360deg);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@keyframes ib-nav-shimmer {
|
|
226
|
+
0% {
|
|
227
|
+
transform: translateX(-100%);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
100% {
|
|
231
|
+
transform: translateX(100%);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
height: 100%;
|
|
8
8
|
align-self: stretch;
|
|
9
9
|
border-radius: var(--border-radius-full);
|
|
10
|
-
|
|
11
|
-
color: var(--color-neutral-700);
|
|
10
|
+
color: var(--color-text-secondary);
|
|
12
11
|
cursor: pointer;
|
|
13
12
|
user-select: none;
|
|
14
13
|
|
|
@@ -29,30 +28,26 @@
|
|
|
29
28
|
width: 100%;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
|
-
/* Active */
|
|
33
31
|
.ibis-pill-tab--active {
|
|
34
|
-
background: var(--color-primary-
|
|
35
|
-
color: var(--color-
|
|
32
|
+
background: var(--color-interactive-primary-bg-emphasized);
|
|
33
|
+
color: var(--color-text-on-primary);
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
/* Hover */
|
|
39
36
|
.ibis-pill-tab:hover:not(.ibis-pill-tab--disabled):not(.ibis-pill-tab--active) {
|
|
40
|
-
background: var(--color-primary-
|
|
41
|
-
color: var(--color-primary-
|
|
37
|
+
background: var(--color-interactive-primary-bg-selected);
|
|
38
|
+
color: var(--color-interactive-primary-indicator);
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
.ibis-pill-tab--active:hover {
|
|
45
|
-
background: var(--color-primary-
|
|
42
|
+
background: var(--color-interactive-primary-bg-emphasized);
|
|
46
43
|
}
|
|
47
44
|
|
|
48
|
-
/* Focus (important for accessibility) */
|
|
49
45
|
.ibis-pill-tab__input:focus-visible + .ibis-pill-tab__content {
|
|
50
|
-
outline: 2px solid var(--color-primary
|
|
46
|
+
outline: 2px solid var(--color-brand-primary);
|
|
51
47
|
outline-offset: 2px;
|
|
52
48
|
border-radius: var(--border-radius-full);
|
|
53
49
|
}
|
|
54
50
|
|
|
55
|
-
/* Disabled */
|
|
56
51
|
.ibis-pill-tab--disabled {
|
|
57
52
|
opacity: var(--opacity-7);
|
|
58
53
|
cursor: not-allowed;
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
.ibis-radio__label {
|
|
14
14
|
font-size: var(--font-size-body-md);
|
|
15
|
-
color: var(--color-
|
|
15
|
+
color: var(--color-text-secondary);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.ibis-radio__description {
|
|
19
19
|
font-size: var(--font-size-body-sm);
|
|
20
|
-
color: var(--color-
|
|
20
|
+
color: var(--color-text-muted);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.ibis-radio__control {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
width: 20px;
|
|
36
36
|
height: 20px;
|
|
37
37
|
border-radius: var(--border-radius-full);
|
|
38
|
-
border: var(--border-width-default) solid var(--color-
|
|
38
|
+
border: var(--border-width-default) solid var(--border-color-strong);
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: center;
|
|
41
41
|
justify-content: center;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ibis-radio__dot--active {
|
|
56
|
-
background: var(--color-primary-
|
|
56
|
+
background: var(--color-interactive-primary-indicator);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.ibis-radio__text {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
.ibis-radio__help {
|
|
65
65
|
font-size: var(--font-size-body-sm);
|
|
66
|
-
color: var(--color-
|
|
66
|
+
color: var(--color-text-muted);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.ibis-radio__error {
|
|
@@ -75,18 +75,19 @@
|
|
|
75
75
|
opacity: var(--opacity-9);
|
|
76
76
|
cursor: not-allowed;
|
|
77
77
|
}
|
|
78
|
+
|
|
78
79
|
.ibis-radio--disabled .ibis-radio__circle {
|
|
79
|
-
border-color: var(--color-
|
|
80
|
-
background-color: var(--color-
|
|
80
|
+
border-color: var(--border-color-disabled);
|
|
81
|
+
background-color: var(--color-surface-disabled);
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
.ibis-radio__input:checked + .ibis-radio__circle {
|
|
84
|
-
border-color: var(--color-primary-
|
|
85
|
+
border-color: var(--color-interactive-primary-border-selected);
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
.ibis-radio:not(.ibis-radio--disabled) .ibis-radio__control:hover .ibis-radio__circle {
|
|
88
|
-
box-shadow: var(--shadow-focus-default);
|
|
89
|
-
border-color: var(--color-
|
|
89
|
+
box-shadow: var(--shadow-focus-default);
|
|
90
|
+
border-color: var(--color-text-secondary);
|
|
90
91
|
transform: scale(1.05);
|
|
91
92
|
}
|
|
92
93
|
|
|
@@ -94,8 +95,8 @@
|
|
|
94
95
|
.ibis-radio__control:hover
|
|
95
96
|
.ibis-radio__input:checked
|
|
96
97
|
+ .ibis-radio__circle {
|
|
97
|
-
box-shadow: var(--shadow-focus-primary);
|
|
98
|
-
border-color: var(--color-primary-
|
|
98
|
+
box-shadow: var(--shadow-focus-primary);
|
|
99
|
+
border-color: var(--color-interactive-primary-border-selected);
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
.ibis-radio--invalid .ibis-radio__circle {
|
|
@@ -103,6 +104,6 @@
|
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.ibis-radio--invalid .ibis-radio__control:hover .ibis-radio__circle {
|
|
106
|
-
box-shadow: var(--shadow-focus-error);
|
|
107
|
+
box-shadow: var(--shadow-focus-error);
|
|
107
108
|
border-color: var(--color-status-error);
|
|
108
109
|
}
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/* Track */
|
|
19
18
|
.ibis-switch__track {
|
|
20
19
|
width: 32px;
|
|
21
20
|
height: 20px;
|
|
22
|
-
background: var(--color-
|
|
21
|
+
background: var(--color-interactive-primary-track-off);
|
|
23
22
|
border-radius: var(--border-radius-full);
|
|
24
23
|
position: relative;
|
|
25
24
|
transition:
|
|
@@ -27,11 +26,10 @@
|
|
|
27
26
|
box-shadow var(--transition-duration-normal) var(--transition-timing-default);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
/* Thumb */
|
|
31
29
|
.ibis-switch__thumb {
|
|
32
30
|
width: 16px;
|
|
33
31
|
height: 16px;
|
|
34
|
-
background: var(--color-
|
|
32
|
+
background: var(--color-surface-default);
|
|
35
33
|
border-radius: var(--border-radius-full);
|
|
36
34
|
position: absolute;
|
|
37
35
|
top: 2px;
|
|
@@ -42,25 +40,24 @@
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
.ibis-switch__input:checked + .ibis-switch__track {
|
|
45
|
-
background: var(--color-primary-
|
|
43
|
+
background: var(--color-interactive-primary-track-on);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
.ibis-switch__input:checked + .ibis-switch__track .ibis-switch__thumb {
|
|
49
47
|
transform: translateX(12px);
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
/* Disabled state */
|
|
53
50
|
.ibis-switch--disabled {
|
|
54
51
|
opacity: var(--opacity-7);
|
|
55
52
|
cursor: not-allowed;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
.ibis-switch--disabled .ibis-switch__track {
|
|
59
|
-
background: var(--color-
|
|
56
|
+
background: var(--color-interactive-primary-track-off);
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
.ibis-switch--disabled .ibis-switch__thumb {
|
|
63
|
-
background: var(--color-
|
|
60
|
+
background: var(--color-surface-muted);
|
|
64
61
|
}
|
|
65
62
|
|
|
66
63
|
.ibis-switch--disabled .ibis-switch__control {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
.ibis-input__label {
|
|
11
11
|
font-size: var(--font-size-body-md);
|
|
12
|
-
color: var(--color-
|
|
12
|
+
color: var(--color-text-secondary);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.ibis-input__label-wrapper {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
.ibis-input__description {
|
|
22
22
|
font-size: var(--font-size-body-sm);
|
|
23
|
-
color: var(--color-
|
|
23
|
+
color: var(--color-text-muted);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.ibis-input__wrapper {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
align-items: stretch;
|
|
29
29
|
border-radius: var(--border-radius-lg);
|
|
30
30
|
overflow: hidden;
|
|
31
|
-
background-color: var(--color-
|
|
31
|
+
background-color: var(--color-surface-muted);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ibis-input__prepend {
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: center;
|
|
37
37
|
padding: var(--spacing-0) var(--spacing-3);
|
|
38
|
-
border: var(--border-width-default) solid var(--color-
|
|
38
|
+
border: var(--border-width-default) solid var(--border-color-default);
|
|
39
39
|
border-right: none;
|
|
40
40
|
border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
|
|
41
41
|
position: relative;
|
|
@@ -46,8 +46,7 @@
|
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
48
|
flex: 1;
|
|
49
|
-
border: var(--border-width-default) solid var(--color-
|
|
50
|
-
/* border-left: none; */
|
|
49
|
+
border: var(--border-width-default) solid var(--border-color-default);
|
|
51
50
|
border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
top: 0;
|
|
68
67
|
bottom: 0;
|
|
69
68
|
width: 2px;
|
|
70
|
-
background-color: var(--color-
|
|
69
|
+
background-color: var(--border-color-default);
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
.ibis-input__field {
|
|
@@ -88,7 +87,7 @@
|
|
|
88
87
|
|
|
89
88
|
.ibis-input__help {
|
|
90
89
|
font-size: var(--font-size-body-sm);
|
|
91
|
-
color: var(--color-
|
|
90
|
+
color: var(--color-text-muted);
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
.ibis-input__error {
|
|
@@ -96,7 +95,6 @@
|
|
|
96
95
|
color: var(--color-status-error);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
|
-
/* sizes */
|
|
100
98
|
.ibis-input--sm .ibis-input__field-wrapper {
|
|
101
99
|
padding: var(--spacing-1) var(--spacing-2);
|
|
102
100
|
}
|
|
@@ -111,11 +109,11 @@
|
|
|
111
109
|
|
|
112
110
|
.ibis-input:not(.ibis-input--disabled):not(.ibis-input--invalid)
|
|
113
111
|
.ibis-input__field-wrapper:not(:focus-within):hover {
|
|
114
|
-
border-color: var(--color-
|
|
112
|
+
border-color: var(--border-color-strong);
|
|
115
113
|
}
|
|
116
114
|
|
|
117
115
|
.ibis-input__field-wrapper:focus-within {
|
|
118
|
-
border-color: var(--color-
|
|
116
|
+
border-color: var(--border-color-focus);
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
.ibis-input--invalid .ibis-input__field-wrapper {
|
|
@@ -133,20 +131,19 @@
|
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
.ibis-input__wrapper:not(:focus-within):hover .ibis-input__prepend::after {
|
|
136
|
-
background-color: var(--color-
|
|
134
|
+
background-color: var(--border-color-strong);
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
.ibis-input__wrapper:focus-within .ibis-input__prepend::after {
|
|
140
|
-
background-color: var(--color-
|
|
138
|
+
background-color: var(--border-color-focus);
|
|
141
139
|
}
|
|
142
140
|
|
|
143
141
|
.ibis-input--invalid .ibis-input__prepend::after {
|
|
144
142
|
background-color: var(--color-status-error);
|
|
145
143
|
}
|
|
146
144
|
|
|
147
|
-
/* disabled */
|
|
148
145
|
.ibis-input--disabled .ibis-input__prepend,
|
|
149
146
|
.ibis-input--disabled .ibis-input__field-wrapper {
|
|
150
|
-
background-color: var(--color-
|
|
147
|
+
background-color: var(--color-interactive-primary-bg-disabled);
|
|
151
148
|
opacity: var(--opacity-5);
|
|
152
149
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
.ibis-input__label {
|
|
10
10
|
font-size: var(--font-size-body-md);
|
|
11
|
-
color: var(--color-
|
|
11
|
+
color: var(--color-text-secondary);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ibis-input__wrapper {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
flex-direction: column0;
|
|
17
17
|
border-radius: var(--border-radius-lg);
|
|
18
18
|
overflow: hidden;
|
|
19
|
-
background-color: var(--color-
|
|
20
|
-
border: var(--border-width-default) solid var(--color-
|
|
19
|
+
background-color: var(--color-surface-muted);
|
|
20
|
+
border: var(--border-width-default) solid var(--border-color-default);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.ibis-input__field {
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
font-family: var(--font-family-sans);
|
|
31
31
|
font-size: inherit;
|
|
32
32
|
resize: vertical;
|
|
33
|
-
/* min-height: 80px; */
|
|
34
33
|
line-height: 1.4;
|
|
35
34
|
display: block;
|
|
36
35
|
box-sizing: border-box;
|
|
@@ -38,7 +37,7 @@
|
|
|
38
37
|
|
|
39
38
|
.ibis-input__help {
|
|
40
39
|
font-size: var(--font-size-body-sm);
|
|
41
|
-
color: var(--color-
|
|
40
|
+
color: var(--color-text-muted);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.ibis-input__error {
|
|
@@ -46,7 +45,6 @@
|
|
|
46
45
|
color: var(--color-status-error);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
/* Sizes */
|
|
50
48
|
.ibis-input--sm .ibis-input__field {
|
|
51
49
|
padding: var(--spacing-1) var(--spacing-2);
|
|
52
50
|
}
|
|
@@ -59,18 +57,15 @@
|
|
|
59
57
|
padding: var(--spacing-3) var(--spacing-4);
|
|
60
58
|
}
|
|
61
59
|
|
|
62
|
-
/* Hover */
|
|
63
60
|
.ibis-input:not(.ibis-input--disabled):not(.ibis-input--invalid)
|
|
64
61
|
.ibis-input__wrapper:not(:focus-within):hover {
|
|
65
|
-
border-color: var(--color-
|
|
62
|
+
border-color: var(--border-color-strong);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
|
-
/* Focus */
|
|
69
65
|
.ibis-input__wrapper:focus-within {
|
|
70
|
-
border-color: var(--color-
|
|
66
|
+
border-color: var(--border-color-focus);
|
|
71
67
|
}
|
|
72
68
|
|
|
73
|
-
/* Invalid */
|
|
74
69
|
.ibis-input--invalid .ibis-input__wrapper {
|
|
75
70
|
border-color: var(--color-status-error);
|
|
76
71
|
border-width: var(--border-width-thin);
|
|
@@ -84,8 +79,7 @@
|
|
|
84
79
|
border-width: var(--border-width-default);
|
|
85
80
|
}
|
|
86
81
|
|
|
87
|
-
/* Disabled */
|
|
88
82
|
.ibis-input--disabled .ibis-input__wrapper {
|
|
89
|
-
background-color: var(--color-
|
|
83
|
+
background-color: var(--color-interactive-primary-bg-disabled);
|
|
90
84
|
opacity: 0.5;
|
|
91
85
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: var(--spacing-1);
|
|
6
6
|
|
|
7
|
-
color: var(--color-primary
|
|
7
|
+
color: var(--color-brand-primary);
|
|
8
8
|
text-decoration: none;
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
opacity var(--transition-duration-fast) var(--transition-timing-default);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
/* content */
|
|
17
16
|
.ibis-link__content {
|
|
18
17
|
display: inline-flex;
|
|
19
18
|
align-items: center;
|
|
@@ -24,7 +23,6 @@
|
|
|
24
23
|
visibility: hidden;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/* sizes */
|
|
28
26
|
.ibis-link--sm {
|
|
29
27
|
font-size: var(--font-size-body-sm);
|
|
30
28
|
}
|
|
@@ -37,7 +35,6 @@
|
|
|
37
35
|
font-size: var(--font-size-body-lg);
|
|
38
36
|
}
|
|
39
37
|
|
|
40
|
-
/* underline */
|
|
41
38
|
.ibis-link--underline-always {
|
|
42
39
|
text-decoration: underline;
|
|
43
40
|
}
|
|
@@ -50,29 +47,26 @@
|
|
|
50
47
|
text-decoration: none;
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
/* states */
|
|
54
50
|
.ibis-link:hover {
|
|
55
|
-
color: var(--color-primary-
|
|
51
|
+
color: var(--color-interactive-primary-bg-emphasized);
|
|
56
52
|
}
|
|
57
53
|
|
|
58
54
|
.ibis-link:active {
|
|
59
|
-
color: var(--color-primary-
|
|
55
|
+
color: var(--color-interactive-primary-fg);
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
.ibis-link:focus-visible {
|
|
63
|
-
outline: 2px solid var(--color-primary-
|
|
59
|
+
outline: 2px solid var(--color-interactive-primary-indicator);
|
|
64
60
|
outline-offset: 2px;
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
/* disabled */
|
|
68
63
|
.ibis-link--disabled {
|
|
69
|
-
color: var(--color-
|
|
64
|
+
color: var(--color-text-muted);
|
|
70
65
|
cursor: not-allowed;
|
|
71
66
|
pointer-events: none;
|
|
72
67
|
text-decoration: none;
|
|
73
68
|
}
|
|
74
69
|
|
|
75
|
-
/* loading */
|
|
76
70
|
.ibis-link--loading {
|
|
77
71
|
cursor: not-allowed;
|
|
78
72
|
pointer-events: none;
|
|
@@ -100,7 +94,6 @@
|
|
|
100
94
|
}
|
|
101
95
|
}
|
|
102
96
|
|
|
103
|
-
/* skeleton */
|
|
104
97
|
.ibis-link--skeleton {
|
|
105
98
|
position: relative;
|
|
106
99
|
overflow: hidden;
|
|
@@ -119,7 +112,7 @@
|
|
|
119
112
|
content: "";
|
|
120
113
|
position: absolute;
|
|
121
114
|
inset: 0;
|
|
122
|
-
background-color: var(--color-
|
|
115
|
+
background-color: var(--color-text-disabled);
|
|
123
116
|
z-index: 1;
|
|
124
117
|
}
|
|
125
118
|
|
|
@@ -133,7 +126,6 @@
|
|
|
133
126
|
z-index: 2;
|
|
134
127
|
}
|
|
135
128
|
|
|
136
|
-
/* Icons */
|
|
137
129
|
.ibis-link__icon {
|
|
138
130
|
display: inline-flex;
|
|
139
131
|
align-items: center;
|