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/wizard.js
CHANGED
|
@@ -1,280 +1,224 @@
|
|
|
1
1
|
export const wizardStyles = `
|
|
2
|
-
/* Theming tokens — every default chains back to the brand layer / global
|
|
3
|
-
scale tokens. */
|
|
4
|
-
|
|
5
2
|
:host {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
--ty-wizard-progress-track: var(--ty-border);
|
|
31
|
-
--ty-wizard-progress-fill: var(--ty-wizard-completed-accent);
|
|
32
|
-
--ty-wizard-progress-height: 2px;
|
|
33
|
-
|
|
34
|
-
/* Motion — routes through global motion tokens if defined. */
|
|
35
|
-
--ty-wizard-transition-duration: var(--ty-transition-duration, 300ms);
|
|
36
|
-
--ty-wizard-transition-easing: var(--ty-transition-easing, ease-in-out);
|
|
37
|
-
|
|
38
|
-
--ty-wizard-circle-size: 32px;
|
|
39
|
-
--ty-wizard-circle-border-width: 2px;
|
|
40
|
-
|
|
41
|
-
--ty-wizard-panels-bg: var(--ty-surface-elevated);
|
|
42
|
-
|
|
43
|
-
--ty-wizard-focus-outline: var(--ty-wizard-active-accent);
|
|
3
|
+
display: block;
|
|
4
|
+
width: var(--ty-wizard-width, 100%);
|
|
5
|
+
height: var(--ty-wizard-height, 700px);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
--ty-wizard-active-accent: var(--ty-color-primary);
|
|
8
|
+
--ty-wizard-completed-accent: var(--ty-color-success);
|
|
9
|
+
--ty-wizard-error-accent: var(--ty-color-danger);
|
|
10
|
+
--ty-wizard-pending-accent: var(--ty-color-neutral);
|
|
11
|
+
--ty-wizard-bg: var(--ty-surface-floating);
|
|
12
|
+
--ty-wizard-border: var(--ty-border);
|
|
13
|
+
--ty-wizard-radius: var(--ty-radius-lg, 12px);
|
|
14
|
+
--ty-wizard-shadow: var(--ty-shadow-md, 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1));
|
|
15
|
+
--ty-wizard-header-bg: var(--ty-surface-content);
|
|
16
|
+
--ty-wizard-header-border: var(--ty-border-soft, var(--ty-border));
|
|
17
|
+
--ty-wizard-header-padding: 24px 24px 16px;
|
|
18
|
+
--ty-wizard-progress-track: var(--ty-border);
|
|
19
|
+
--ty-wizard-progress-fill: var(--ty-wizard-completed-accent);
|
|
20
|
+
--ty-wizard-progress-height: 2px;
|
|
21
|
+
--ty-wizard-transition-duration: var(--ty-transition-duration, 300ms);
|
|
22
|
+
--ty-wizard-transition-easing: var(--ty-transition-easing, ease-in-out);
|
|
23
|
+
--ty-wizard-circle-size: 32px;
|
|
24
|
+
--ty-wizard-circle-border-width: 2px;
|
|
25
|
+
--ty-wizard-panels-bg: var(--ty-surface-elevated);
|
|
26
|
+
--ty-wizard-focus-outline: var(--ty-wizard-active-accent);
|
|
44
27
|
}
|
|
45
|
-
|
|
46
28
|
.wizard-container {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
position: relative;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
border-radius: var(--ty-wizard-radius);
|
|
36
|
+
border: 1px solid var(--ty-wizard-border);
|
|
37
|
+
background: var(--ty-wizard-bg);
|
|
38
|
+
box-shadow: var(--ty-wizard-shadow);
|
|
39
|
+
overflow: hidden;
|
|
58
40
|
}
|
|
59
|
-
|
|
60
41
|
.step-indicators-wrapper {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
position: relative;
|
|
46
|
+
padding: var(--ty-wizard-header-padding);
|
|
47
|
+
border-bottom: 1px solid var(--ty-wizard-header-border);
|
|
48
|
+
background: var(--ty-wizard-header-bg);
|
|
68
49
|
}
|
|
69
|
-
|
|
70
|
-
/* Progress line, behind the step circles */
|
|
71
50
|
.progress-line {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
height: var(--ty-wizard-progress-height);
|
|
82
|
-
background: var(--ty-wizard-progress-track);
|
|
83
|
-
z-index: 0;
|
|
84
|
-
pointer-events: none;
|
|
85
|
-
transition: opacity var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);
|
|
51
|
+
position: absolute;
|
|
52
|
+
left: calc(50% / var(--ty-wizard-step-count, 4));
|
|
53
|
+
right: calc(50% / var(--ty-wizard-step-count, 4));
|
|
54
|
+
top: calc(var(--ty-wizard-circle-size, 32px) / 2 - 1px);
|
|
55
|
+
height: var(--ty-wizard-progress-height);
|
|
56
|
+
background: var(--ty-wizard-progress-track);
|
|
57
|
+
z-index: 0;
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
transition: opacity var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);
|
|
86
60
|
}
|
|
87
|
-
|
|
88
61
|
.progress-overlay {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
62
|
+
position: absolute;
|
|
63
|
+
left: 0;
|
|
64
|
+
top: 0;
|
|
65
|
+
height: 100%;
|
|
66
|
+
background: var(--ty-wizard-progress-fill);
|
|
67
|
+
transition: width var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);
|
|
68
|
+
will-change: width;
|
|
96
69
|
}
|
|
97
|
-
|
|
98
70
|
.step-indicators {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
position: relative;
|
|
102
74
|
}
|
|
103
|
-
|
|
104
75
|
.step-indicator {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: 8px;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
background: transparent;
|
|
82
|
+
border: none;
|
|
83
|
+
padding: 0;
|
|
84
|
+
font: inherit;
|
|
85
|
+
transition: opacity 200ms;
|
|
86
|
+
flex: 1;
|
|
87
|
+
min-width: 0;
|
|
117
88
|
}
|
|
118
|
-
|
|
119
89
|
.step-indicator[aria-disabled="true"] {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
90
|
+
opacity: 0.4;
|
|
91
|
+
cursor: not-allowed;
|
|
92
|
+
pointer-events: none;
|
|
123
93
|
}
|
|
124
|
-
|
|
125
94
|
.step-indicator:focus-visible {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
95
|
+
outline: 2px solid var(--ty-wizard-focus-outline);
|
|
96
|
+
outline-offset: 4px;
|
|
97
|
+
border-radius: 50%;
|
|
129
98
|
}
|
|
130
|
-
|
|
131
99
|
.step-circle {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
100
|
+
width: var(--ty-wizard-circle-size);
|
|
101
|
+
height: var(--ty-wizard-circle-size);
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
border: var(--ty-wizard-circle-border-width) solid;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
position: relative;
|
|
108
|
+
z-index: 10;
|
|
109
|
+
transition: var(--ty-local-transition, all var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing));
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
flex-shrink: 0;
|
|
144
112
|
}
|
|
145
|
-
|
|
146
113
|
.step-circle[data-state="completed"] {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
clamp(0, (var(--ty-solid-fg-threshold, 0.57) - l) * 1000, 1) 0 0
|
|
155
|
-
);
|
|
156
|
-
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-completed-accent) 12%, transparent);
|
|
114
|
+
background: var(--ty-wizard-completed-accent);
|
|
115
|
+
border-color: var(--ty-color-success-strong);
|
|
116
|
+
color: oklch(
|
|
117
|
+
from var(--ty-wizard-completed-accent)
|
|
118
|
+
clamp(0, (var(--ty-solid-fg-threshold, 0.57) - l) * 1000, 1) 0 0
|
|
119
|
+
);
|
|
120
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-completed-accent) 12%, transparent);
|
|
157
121
|
}
|
|
158
|
-
|
|
159
122
|
.step-circle[data-state="active"] {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
123
|
+
background: var(--ty-wizard-active-accent);
|
|
124
|
+
border-color: var(--ty-color-primary-strong);
|
|
125
|
+
color: oklch(
|
|
126
|
+
from var(--ty-wizard-active-accent)
|
|
127
|
+
clamp(0, (var(--ty-solid-fg-threshold, 0.57) - l) * 1000, 1) 0 0
|
|
128
|
+
);
|
|
129
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-active-accent) 12%, transparent);
|
|
167
130
|
}
|
|
168
|
-
|
|
169
131
|
.step-circle[data-state="pending"] {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
132
|
+
background: var(--ty-surface-elevated);
|
|
133
|
+
border-color: var(--ty-border);
|
|
134
|
+
color: var(--ty-color-neutral);
|
|
173
135
|
}
|
|
174
|
-
|
|
175
136
|
.step-circle[data-state="error"] {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
137
|
+
background: var(--ty-wizard-error-accent);
|
|
138
|
+
border-color: var(--ty-color-danger-strong);
|
|
139
|
+
color: oklch(
|
|
140
|
+
from var(--ty-wizard-error-accent)
|
|
141
|
+
clamp(0, (var(--ty-solid-fg-threshold, 0.57) - l) * 1000, 1) 0 0
|
|
142
|
+
);
|
|
143
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-error-accent) 12%, transparent);
|
|
183
144
|
}
|
|
184
|
-
|
|
185
145
|
.step-text {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
gap: 2px;
|
|
149
|
+
align-items: center;
|
|
190
150
|
}
|
|
191
|
-
|
|
192
151
|
.step-label {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
152
|
+
font-size: var(--ty-font-sm, 14px);
|
|
153
|
+
font-weight: var(--ty-font-semibold, 600);
|
|
154
|
+
color: var(--ty-color-neutral);
|
|
155
|
+
transition: var(--ty-local-transition, color 200ms);
|
|
197
156
|
}
|
|
198
|
-
|
|
199
157
|
.step-indicator[aria-selected="true"] .step-label {
|
|
200
|
-
|
|
158
|
+
color: var(--ty-color-neutral-strong);
|
|
201
159
|
}
|
|
202
|
-
|
|
203
160
|
.step-indicator[aria-selected="false"] .step-label {
|
|
204
|
-
|
|
161
|
+
color: var(--ty-color-neutral);
|
|
205
162
|
}
|
|
206
|
-
|
|
207
163
|
.step-description {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
164
|
+
font-size: var(--ty-font-xs, 12px);
|
|
165
|
+
font-weight: var(--ty-font-normal, 400);
|
|
166
|
+
color: var(--ty-color-neutral);
|
|
167
|
+
transition: var(--ty-local-transition, color 200ms);
|
|
168
|
+
text-align: center;
|
|
169
|
+
max-width: 120px;
|
|
214
170
|
}
|
|
215
|
-
|
|
216
171
|
.step-indicator[aria-selected="true"] .step-description {
|
|
217
|
-
|
|
172
|
+
color: var(--ty-color-neutral-bold);
|
|
218
173
|
}
|
|
219
|
-
|
|
220
|
-
/* Custom indicator content via slots */
|
|
221
174
|
::slotted([slot^="indicator-"]) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
justify-content: center;
|
|
178
|
+
width: 100%;
|
|
179
|
+
height: 100%;
|
|
227
180
|
}
|
|
228
|
-
|
|
229
181
|
.panels-viewport {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
182
|
+
position: relative;
|
|
183
|
+
flex: 1;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
min-height: 0;
|
|
186
|
+
background: var(--ty-wizard-panels-bg);
|
|
235
187
|
}
|
|
236
|
-
|
|
237
|
-
/* Panels wrapper slides horizontally */
|
|
238
188
|
.panels-wrapper {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
189
|
+
display: flex;
|
|
190
|
+
height: 100%;
|
|
191
|
+
transition: transform var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);
|
|
192
|
+
will-change: transform;
|
|
243
193
|
}
|
|
244
|
-
|
|
245
194
|
::slotted(ty-step) {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
195
|
+
width: var(--ty-wizard-width, 100%);
|
|
196
|
+
height: 100%;
|
|
197
|
+
flex-shrink: 0;
|
|
249
198
|
}
|
|
250
|
-
|
|
251
199
|
@media (prefers-reduced-motion: reduce) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
.progress-line {
|
|
265
|
-
transition-duration: 0ms !important;
|
|
266
|
-
}
|
|
200
|
+
.panels-wrapper {
|
|
201
|
+
transition-duration: 0ms !important;
|
|
202
|
+
}
|
|
203
|
+
.progress-overlay {
|
|
204
|
+
transition-duration: 0ms !important;
|
|
205
|
+
}
|
|
206
|
+
.step-circle {
|
|
207
|
+
transition-duration: 0ms !important;
|
|
208
|
+
}
|
|
209
|
+
.progress-line {
|
|
210
|
+
transition-duration: 0ms !important;
|
|
211
|
+
}
|
|
267
212
|
}
|
|
268
|
-
|
|
269
213
|
.sr-only {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
214
|
+
position: absolute;
|
|
215
|
+
width: 1px;
|
|
216
|
+
height: 1px;
|
|
217
|
+
padding: 0;
|
|
218
|
+
margin: -1px;
|
|
219
|
+
overflow: hidden;
|
|
220
|
+
clip: rect(0, 0, 0, 0);
|
|
221
|
+
white-space: nowrap;
|
|
222
|
+
border-width: 0;
|
|
279
223
|
}
|
|
280
224
|
`;
|
package/lib/types/common.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export type FlavorShaded<F extends string = FlavorBase> = F | `${F}+` | `${F}-`;
|
|
|
24
24
|
export type Flavor = FlavorShaded | (string & {});
|
|
25
25
|
/** Component size variants */
|
|
26
26
|
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
27
|
+
/** Default `size` for every field component — change here, not per component. */
|
|
28
|
+
export declare const DEFAULT_SIZE: Size;
|
|
27
29
|
/** Input types supported by ty-input */
|
|
28
30
|
export type InputType = 'text' | 'password' | 'email' | 'url' | 'tel' | 'date' | 'time' | 'datetime-local' | 'number' | 'currency' | 'percent' | 'compact' | 'checkbox';
|
|
29
31
|
/** Base properties shared by all Ty components */
|
package/lib/types/common.js
CHANGED