tyrell-components 1.0.0-TC52 → 1.0.0-TC53
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/css/tyrell-theme.css +25 -2
- package/css/tyrell.css +4 -0
- package/dist/tyrell-colors-static.css +1 -316
- package/dist/tyrell-theme.css +1 -1443
- package/dist/tyrell.css +1 -1390
- package/dist/tyrell.js +1 -1
- package/lib/base/ty-component.js +196 -196
- package/lib/components/button.d.ts +1 -1
- package/lib/components/button.js +260 -259
- package/lib/components/calendar-month.d.ts +2 -2
- package/lib/components/calendar-month.js +426 -416
- package/lib/components/calendar-navigation.js +238 -238
- package/lib/components/calendar.js +605 -602
- package/lib/components/checkbox.d.ts +1 -1
- package/lib/components/checkbox.js +273 -272
- package/lib/components/copy.d.ts +1 -1
- package/lib/components/copy.js +279 -278
- package/lib/components/date-picker.d.ts +1 -1
- package/lib/components/date-picker.js +1103 -1108
- package/lib/components/file-upload.js +404 -404
- package/lib/components/icon.js +141 -141
- package/lib/components/input.d.ts +1 -1
- package/lib/components/input.js +593 -596
- package/lib/components/modal.js +319 -319
- package/lib/components/option.js +167 -167
- package/lib/components/popup.js +233 -233
- package/lib/components/radio.d.ts +2 -2
- package/lib/components/radio.js +407 -406
- package/lib/components/resize-observer.js +67 -67
- package/lib/components/scroll-container.js +294 -294
- package/lib/components/select.d.ts +1 -1
- package/lib/components/select.js +1524 -1532
- package/lib/components/selected-tags.js +184 -184
- package/lib/components/step.js +62 -62
- package/lib/components/switch.d.ts +1 -1
- package/lib/components/switch.js +214 -213
- package/lib/components/tab.js +62 -62
- package/lib/components/tabs.js +507 -507
- package/lib/components/tag.d.ts +1 -1
- package/lib/components/tag.js +236 -235
- package/lib/components/textarea.d.ts +1 -1
- package/lib/components/textarea.js +457 -456
- package/lib/components/tooltip.js +283 -283
- package/lib/components/wizard.js +384 -384
- package/lib/icons/heroicons/micro.js +392 -392
- package/lib/icons/heroicons/mini.js +382 -382
- package/lib/icons/heroicons/outline.js +337 -337
- package/lib/icons/heroicons/solid.js +407 -407
- package/lib/icons/lucide.js +22843 -22843
- package/lib/icons/material/filled.js +9653 -9653
- package/lib/icons/material/outlined.js +10271 -10271
- package/lib/icons/material/round.js +10495 -10495
- package/lib/icons/material/sharp.js +9905 -9905
- package/lib/icons/material/two-tone.js +12792 -12792
- package/lib/index.js +21 -21
- package/lib/styles/button.js +176 -288
- package/lib/styles/calendar-month.js +123 -183
- package/lib/styles/calendar-navigation.js +60 -79
- package/lib/styles/calendar.js +8 -9
- package/lib/styles/checkbox.js +45 -72
- package/lib/styles/copy.js +67 -91
- package/lib/styles/custom-scrollbar.js +80 -100
- package/lib/styles/date-picker.js +261 -331
- package/lib/styles/field-size.d.ts +6 -0
- package/lib/styles/field-size.js +91 -0
- package/lib/styles/file-upload.js +139 -169
- package/lib/styles/icon.js +92 -156
- package/lib/styles/input.js +125 -241
- package/lib/styles/modal.js +67 -102
- package/lib/styles/option.d.ts +1 -1
- package/lib/styles/option.js +47 -67
- package/lib/styles/popup.js +34 -65
- package/lib/styles/radio.js +69 -96
- package/lib/styles/resize-observer.js +2 -5
- package/lib/styles/scroll-container.js +100 -130
- package/lib/styles/select-base.js +525 -778
- package/lib/styles/select.js +140 -228
- package/lib/styles/step.js +22 -29
- package/lib/styles/switch.js +34 -55
- package/lib/styles/tab.js +22 -29
- package/lib/styles/tabs.js +171 -252
- package/lib/styles/tag.js +135 -188
- package/lib/styles/textarea.d.ts +1 -1
- package/lib/styles/textarea.js +205 -271
- package/lib/styles/tooltip.js +3 -3
- package/lib/styles/wizard.js +170 -226
- package/lib/types/common.d.ts +2 -0
- package/lib/types/common.js +6 -5
- package/lib/utils/calendar-utils.js +100 -100
- package/lib/utils/custom-scrollbar.js +272 -272
- package/lib/utils/flavor-sheet.js +14 -14
- package/lib/utils/icon-registry.js +127 -127
- package/lib/utils/loader-registry.js +3 -3
- package/lib/utils/locale.js +34 -34
- package/lib/utils/mobile.js +1 -1
- package/lib/utils/number-format.js +54 -54
- package/lib/utils/positioning.js +212 -212
- package/lib/utils/property-capture.js +36 -36
- package/lib/utils/property-manager.js +125 -125
- package/lib/utils/resize-observer.js +23 -23
- package/lib/utils/scroll-lock.js +57 -57
- package/lib/utils/styles.js +17 -17
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/lib/styles/textarea.js
CHANGED
|
@@ -1,341 +1,275 @@
|
|
|
1
|
+
import { fieldSizeVars } from './field-size.js';
|
|
1
2
|
export const textareaStyles = `
|
|
3
|
+
${fieldSizeVars}
|
|
2
4
|
:host {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
display: block;
|
|
6
|
+
font-family: inherit;
|
|
7
|
+
width: 100%;
|
|
6
8
|
}
|
|
7
|
-
|
|
8
9
|
.textarea-container {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Bordered container — owns the border + active state (composer layout):
|
|
18
|
-
header (top slot) · textarea (borderless) · footer (bottom slot). */
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
width: 100%;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
19
16
|
.textarea-wrapper {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* Active ring tied to the TEXTAREA specifically (not :focus-within) so tabbing
|
|
32
|
-
to a footer button doesn't make the whole field look focused. */
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
border: 1px solid var(--input-border, var(--ty-input-border));
|
|
23
|
+
border-radius: var(--ty-radius-base);
|
|
24
|
+
background: var(--input-bg, var(--ty-input-bg));
|
|
25
|
+
transition: var(--ty-local-transition, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out);
|
|
26
|
+
}
|
|
33
27
|
.textarea-wrapper:has(textarea:focus) {
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
border-color: var(--input-border-focus, var(--ty-input-border-focus));
|
|
29
|
+
box-shadow: 0 0 0 3px var(--input-shadow-focus, var(--ty-input-shadow-focus));
|
|
36
30
|
}
|
|
37
|
-
|
|
38
|
-
/* Error + disabled reflected from the inner textarea (both in shadow DOM, so
|
|
39
|
-
:has is reliable here — unlike slotted content). */
|
|
40
31
|
.textarea-wrapper:has(textarea.error) {
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
border-color: var(--ty-color-danger);
|
|
33
|
+
background: var(--ty-bg-danger-soft);
|
|
43
34
|
}
|
|
44
35
|
.textarea-wrapper:has(textarea.error):has(textarea:focus) {
|
|
45
|
-
|
|
36
|
+
border-color: var(--ty-color-danger-bold);
|
|
46
37
|
}
|
|
47
38
|
.textarea-wrapper:has(textarea:disabled) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
background: var(--input-disabled-bg, var(--ty-input-disabled-bg));
|
|
41
|
+
border-color: var(--input-disabled-border, var(--ty-input-disabled-border));
|
|
51
42
|
}
|
|
52
|
-
|
|
53
|
-
/* Scroll region wraps just the textarea so the custom scrollbar never overlaps
|
|
54
|
-
the header/footer. */
|
|
55
43
|
.textarea-scroll {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
position: relative;
|
|
45
|
+
flex: 1 1 auto;
|
|
46
|
+
min-height: 0;
|
|
47
|
+
display: flex;
|
|
60
48
|
}
|
|
61
|
-
|
|
62
|
-
/* Custom scrollbar track positioned to the scroll region (textarea edges) */
|
|
63
49
|
.textarea-scroll .ty-scrollbar-track-y {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* Header / footer slot regions — zero footprint until they have content
|
|
71
|
-
(the component toggles .has-content via slotchange). footer defaults to
|
|
72
|
-
space-between so "tools … submit" works; a single wide button fills it. */
|
|
50
|
+
top: 2px;
|
|
51
|
+
right: 2px;
|
|
52
|
+
bottom: 2px;
|
|
53
|
+
border-radius: 0 4px 4px 0;
|
|
54
|
+
}
|
|
73
55
|
.textarea-header,
|
|
74
56
|
.textarea-footer {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: 0.5rem;
|
|
78
60
|
}
|
|
79
61
|
.textarea-footer { justify-content: space-between; }
|
|
80
62
|
.textarea-header.has-content {
|
|
81
|
-
|
|
82
|
-
|
|
63
|
+
padding: 6px 10px;
|
|
64
|
+
border-bottom: 1px solid var(--ty-textarea-divider, var(--input-border, var(--ty-input-border)));
|
|
83
65
|
}
|
|
84
66
|
.textarea-footer.has-content {
|
|
85
|
-
|
|
86
|
-
|
|
67
|
+
padding: 6px 10px;
|
|
68
|
+
border-top: 1px solid var(--ty-textarea-divider, var(--input-border, var(--ty-input-border)));
|
|
87
69
|
}
|
|
88
|
-
|
|
89
70
|
.ty-field-label {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
71
|
+
font-size: var(--ty-field-label-font);
|
|
72
|
+
line-height: var(--ty-field-label-leading);
|
|
73
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
74
|
+
font-weight: var(--ty-font-medium);
|
|
75
|
+
color: var(--ty-label-color);
|
|
76
|
+
margin-bottom: var(--ty-field-label-gap);
|
|
77
|
+
padding-left: var(--ty-field-outer-pad-x);
|
|
78
|
+
}
|
|
99
79
|
.required-icon {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
color: var(--ty-color-danger);
|
|
83
|
+
width: 12px;
|
|
84
|
+
height: 12px;
|
|
85
|
+
vertical-align: middle;
|
|
86
|
+
}
|
|
108
87
|
.error-message {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/* Error state is reflected on .textarea-wrapper (see above). */
|
|
118
|
-
|
|
88
|
+
font-size: var(--ty-font-xs);
|
|
89
|
+
line-height: var(--ty-leading-xs);
|
|
90
|
+
letter-spacing: var(--ty-tracking-xs);
|
|
91
|
+
color: var(--ty-color-danger);
|
|
92
|
+
margin-top: 4px;
|
|
93
|
+
padding-left: var(--ty-field-outer-pad-x);
|
|
94
|
+
}
|
|
119
95
|
textarea {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
/* Hide scrollbars since we're auto-resizing */
|
|
141
|
-
resize: none;
|
|
142
|
-
|
|
143
|
-
white-space: pre-wrap;
|
|
144
|
-
word-wrap: break-word;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/* Hide native scrollbar for webkit when custom scrollbar is active
|
|
148
|
-
(scrollbar-width: none handles Firefox; this handles Chrome/Safari) */
|
|
96
|
+
font-family: inherit;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
width: 100%;
|
|
99
|
+
flex: 1 1 auto;
|
|
100
|
+
border: none;
|
|
101
|
+
background: transparent;
|
|
102
|
+
color: var(--input-color, var(--ty-input-color));
|
|
103
|
+
font-family: inherit;
|
|
104
|
+
font-size: var(--ty-font-sm);
|
|
105
|
+
line-height: var(--ty-leading-sm);
|
|
106
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
107
|
+
font-weight: var(--ty-font-normal);
|
|
108
|
+
outline: none;
|
|
109
|
+
min-height: 80px;
|
|
110
|
+
padding: 12px 12px;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
resize: none;
|
|
113
|
+
white-space: pre-wrap;
|
|
114
|
+
word-wrap: break-word;
|
|
115
|
+
}
|
|
149
116
|
:host([data-custom-scroll]) textarea::-webkit-scrollbar {
|
|
150
|
-
|
|
117
|
+
display: none;
|
|
151
118
|
}
|
|
152
|
-
|
|
153
|
-
/* Disabled — visual state lives on the wrapper; just the cursor/text here. */
|
|
154
119
|
textarea:disabled {
|
|
155
|
-
|
|
156
|
-
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
color: var(--input-disabled-color, var(--ty-input-disabled-color));
|
|
157
122
|
}
|
|
158
|
-
|
|
159
123
|
textarea::placeholder {
|
|
160
|
-
|
|
161
|
-
|
|
124
|
+
color: var(--input-placeholder, var(--ty-input-placeholder));
|
|
125
|
+
font-weight: 400;
|
|
162
126
|
}
|
|
163
|
-
|
|
164
127
|
textarea.resize-both {
|
|
165
|
-
|
|
128
|
+
resize: both;
|
|
166
129
|
}
|
|
167
|
-
|
|
168
130
|
textarea.resize-horizontal {
|
|
169
|
-
|
|
131
|
+
resize: horizontal;
|
|
170
132
|
}
|
|
171
|
-
|
|
172
133
|
textarea.resize-vertical {
|
|
173
|
-
|
|
134
|
+
resize: vertical;
|
|
174
135
|
}
|
|
175
|
-
|
|
176
136
|
textarea.resize-none {
|
|
177
|
-
|
|
137
|
+
resize: none;
|
|
178
138
|
}
|
|
179
|
-
|
|
180
|
-
/* Auto-resize mode (default) disables manual resize */
|
|
181
139
|
textarea:not(.resize-both):not(.resize-horizontal):not(.resize-vertical) {
|
|
182
|
-
|
|
140
|
+
resize: none;
|
|
183
141
|
}
|
|
184
|
-
|
|
185
142
|
.textarea-dummy {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
overflow-wrap: break-word !important;
|
|
200
|
-
}
|
|
201
|
-
|
|
143
|
+
position: absolute !important;
|
|
144
|
+
top: 0 !important;
|
|
145
|
+
left: 0 !important;
|
|
146
|
+
visibility: hidden !important;
|
|
147
|
+
white-space: pre-wrap !important;
|
|
148
|
+
word-break: break-word !important;
|
|
149
|
+
box-sizing: border-box !important;
|
|
150
|
+
overflow: hidden !important;
|
|
151
|
+
pointer-events: none !important;
|
|
152
|
+
z-index: -1 !important;
|
|
153
|
+
word-wrap: break-word !important;
|
|
154
|
+
overflow-wrap: break-word !important;
|
|
155
|
+
}
|
|
202
156
|
textarea.xs {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
157
|
+
min-height: 64px;
|
|
158
|
+
padding: 8px var(--ty-field-pad-x);
|
|
159
|
+
font-size: var(--ty-font-xs);
|
|
160
|
+
line-height: var(--ty-leading-xs);
|
|
161
|
+
letter-spacing: var(--ty-tracking-xs);
|
|
208
162
|
}
|
|
209
|
-
|
|
210
163
|
textarea.sm {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
164
|
+
min-height: 72px;
|
|
165
|
+
padding: 10px var(--ty-field-pad-x);
|
|
166
|
+
font-size: var(--ty-font-sm);
|
|
167
|
+
line-height: var(--ty-leading-sm);
|
|
168
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
216
169
|
}
|
|
217
|
-
|
|
218
170
|
textarea.md {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
171
|
+
min-height: 80px;
|
|
172
|
+
padding: 12px var(--ty-field-pad-x);
|
|
173
|
+
font-size: var(--ty-font-sm);
|
|
174
|
+
line-height: var(--ty-leading-sm);
|
|
175
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
224
176
|
}
|
|
225
|
-
|
|
226
177
|
textarea.lg {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
178
|
+
min-height: 96px;
|
|
179
|
+
padding: 14px var(--ty-field-pad-x);
|
|
180
|
+
font-size: var(--ty-font-base);
|
|
181
|
+
line-height: var(--ty-leading-base);
|
|
182
|
+
letter-spacing: var(--ty-tracking-base);
|
|
232
183
|
}
|
|
233
|
-
|
|
234
184
|
textarea.xl {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
185
|
+
min-height: 112px;
|
|
186
|
+
padding: 16px var(--ty-field-pad-x);
|
|
187
|
+
font-size: var(--ty-font-lg);
|
|
188
|
+
line-height: var(--ty-leading-lg);
|
|
189
|
+
letter-spacing: var(--ty-tracking-lg);
|
|
240
190
|
}
|
|
241
|
-
|
|
242
191
|
textarea:focus-visible {
|
|
243
|
-
|
|
244
|
-
/* We use box-shadow instead */
|
|
192
|
+
outline: none;
|
|
245
193
|
}
|
|
246
|
-
|
|
247
194
|
@media (prefers-contrast: high) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
195
|
+
textarea {
|
|
196
|
+
border-width: 2px;
|
|
197
|
+
}
|
|
251
198
|
}
|
|
252
|
-
|
|
253
199
|
@media (prefers-reduced-motion: reduce) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
|
|
200
|
+
textarea {
|
|
201
|
+
transition: none;
|
|
202
|
+
}
|
|
203
|
+
.textarea-dummy {
|
|
204
|
+
transition: none;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
263
207
|
@container (max-width: 480px) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
|
|
208
|
+
textarea.lg {
|
|
209
|
+
font-size: var(--ty-font-sm);
|
|
210
|
+
line-height: var(--ty-leading-sm);
|
|
211
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
212
|
+
padding: 12px var(--ty-field-pad-x);
|
|
213
|
+
min-height: 80px;
|
|
214
|
+
}
|
|
215
|
+
textarea.xl {
|
|
216
|
+
font-size: var(--ty-font-base);
|
|
217
|
+
line-height: var(--ty-leading-base);
|
|
218
|
+
letter-spacing: var(--ty-tracking-base);
|
|
219
|
+
padding: 14px var(--ty-field-pad-x);
|
|
220
|
+
min-height: 96px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
281
223
|
@container (max-width: 320px) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/* Fallback for browsers without container query support */
|
|
224
|
+
textarea.xl {
|
|
225
|
+
font-size: var(--ty-font-sm);
|
|
226
|
+
line-height: var(--ty-leading-sm);
|
|
227
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
228
|
+
padding: 12px var(--ty-field-pad-x);
|
|
229
|
+
min-height: 80px;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
292
232
|
@media (max-width: 640px) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
|
|
233
|
+
textarea.lg {
|
|
234
|
+
font-size: var(--ty-font-sm);
|
|
235
|
+
line-height: var(--ty-leading-sm);
|
|
236
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
237
|
+
padding: 12px var(--ty-field-pad-x);
|
|
238
|
+
min-height: 80px;
|
|
239
|
+
}
|
|
240
|
+
textarea.xl {
|
|
241
|
+
font-size: var(--ty-font-base);
|
|
242
|
+
line-height: var(--ty-leading-base);
|
|
243
|
+
letter-spacing: var(--ty-tracking-base);
|
|
244
|
+
padding: 14px var(--ty-field-pad-x);
|
|
245
|
+
min-height: 96px;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
310
248
|
@media (max-width: 480px) {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
|
|
249
|
+
textarea.xl {
|
|
250
|
+
font-size: var(--ty-font-sm);
|
|
251
|
+
line-height: var(--ty-leading-sm);
|
|
252
|
+
letter-spacing: var(--ty-tracking-sm);
|
|
253
|
+
padding: 12px var(--ty-field-pad-x);
|
|
254
|
+
min-height: 80px;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
320
257
|
textarea {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/* Disable height transition on focus to avoid jarring effect */
|
|
258
|
+
transition: var(--ty-local-transition,
|
|
259
|
+
border-color 0.15s ease-in-out,
|
|
260
|
+
box-shadow 0.15s ease-in-out,
|
|
261
|
+
background-color 0.15s ease-in-out,
|
|
262
|
+
height 0.1s ease-out);
|
|
263
|
+
}
|
|
329
264
|
textarea:focus {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
265
|
+
transition: var(--ty-local-transition,
|
|
266
|
+
border-color 0.15s ease-in-out,
|
|
267
|
+
box-shadow 0.15s ease-in-out,
|
|
268
|
+
background-color 0.15s ease-in-out);
|
|
334
269
|
}
|
|
335
|
-
|
|
336
270
|
@media (prefers-reduced-motion: reduce) {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
271
|
+
textarea {
|
|
272
|
+
transition: none;
|
|
273
|
+
}
|
|
340
274
|
}
|
|
341
275
|
`;
|