@atelier-ui/react 0.3.5 → 0.3.7
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/CHANGELOG.md +28 -1
- package/package.json +4 -1
- package/src/lib/accordion/atl-accordion.d.ts +1 -1
- package/src/lib/accordion/atl-accordion.d.ts.map +1 -1
- package/src/lib/accordion/atl-accordion.js +1 -1
- package/src/lib/accordion/atl-accordion.js.map +1 -1
- package/src/lib/alert/atl-alert.d.ts +1 -1
- package/src/lib/alert/atl-alert.d.ts.map +1 -1
- package/src/lib/alert/atl-alert.js +1 -1
- package/src/lib/alert/atl-alert.js.map +1 -1
- package/src/lib/avatar/atl-avatar.d.ts +1 -1
- package/src/lib/avatar/atl-avatar.d.ts.map +1 -1
- package/src/lib/avatar/atl-avatar.js +1 -1
- package/src/lib/avatar/atl-avatar.js.map +1 -1
- package/src/lib/badge/atl-badge.d.ts +1 -1
- package/src/lib/badge/atl-badge.d.ts.map +1 -1
- package/src/lib/badge/atl-badge.js +1 -1
- package/src/lib/badge/atl-badge.js.map +1 -1
- package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts +1 -1
- package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts.map +1 -1
- package/src/lib/breadcrumbs/atl-breadcrumbs.js +2 -2
- package/src/lib/breadcrumbs/atl-breadcrumbs.js.map +1 -1
- package/src/lib/button/atl-button.d.ts +1 -1
- package/src/lib/button/atl-button.d.ts.map +1 -1
- package/src/lib/button/atl-button.js +1 -1
- package/src/lib/button/atl-button.js.map +1 -1
- package/src/lib/card/atl-card.d.ts +1 -1
- package/src/lib/card/atl-card.d.ts.map +1 -1
- package/src/lib/card/atl-card.js +1 -1
- package/src/lib/card/atl-card.js.map +1 -1
- package/src/lib/chat/atl-chat.d.ts +1 -1
- package/src/lib/chat/atl-chat.d.ts.map +1 -1
- package/src/lib/chat/atl-chat.js +1 -1
- package/src/lib/chat/atl-chat.js.map +1 -1
- package/src/lib/checkbox/atl-checkbox.d.ts +1 -1
- package/src/lib/checkbox/atl-checkbox.d.ts.map +1 -1
- package/src/lib/checkbox/atl-checkbox.js +1 -1
- package/src/lib/checkbox/atl-checkbox.js.map +1 -1
- package/src/lib/code-block/atl-code-block.d.ts +1 -1
- package/src/lib/code-block/atl-code-block.d.ts.map +1 -1
- package/src/lib/code-block/atl-code-block.js +1 -1
- package/src/lib/code-block/atl-code-block.js.map +1 -1
- package/src/lib/combobox/atl-combobox.d.ts +1 -1
- package/src/lib/combobox/atl-combobox.d.ts.map +1 -1
- package/src/lib/combobox/atl-combobox.js +1 -1
- package/src/lib/combobox/atl-combobox.js.map +1 -1
- package/src/lib/dialog/atl-dialog.d.ts +1 -1
- package/src/lib/dialog/atl-dialog.d.ts.map +1 -1
- package/src/lib/dialog/atl-dialog.js +1 -1
- package/src/lib/dialog/atl-dialog.js.map +1 -1
- package/src/lib/drawer/atl-drawer.d.ts +1 -1
- package/src/lib/drawer/atl-drawer.d.ts.map +1 -1
- package/src/lib/drawer/atl-drawer.js +2 -2
- package/src/lib/drawer/atl-drawer.js.map +1 -1
- package/src/lib/icon/atl-icon.d.ts +1 -1
- package/src/lib/icon/atl-icon.d.ts.map +1 -1
- package/src/lib/icon/atl-icon.js +1 -1
- package/src/lib/icon/atl-icon.js.map +1 -1
- package/src/lib/input/atl-input.d.ts +1 -1
- package/src/lib/input/atl-input.d.ts.map +1 -1
- package/src/lib/input/atl-input.js +1 -1
- package/src/lib/input/atl-input.js.map +1 -1
- package/src/lib/menu/atl-menu.d.ts +2 -1
- package/src/lib/menu/atl-menu.d.ts.map +1 -1
- package/src/lib/menu/atl-menu.js +2 -1
- package/src/lib/menu/atl-menu.js.map +1 -1
- package/src/lib/pagination/atl-pagination.d.ts +1 -1
- package/src/lib/pagination/atl-pagination.d.ts.map +1 -1
- package/src/lib/pagination/atl-pagination.js +1 -1
- package/src/lib/pagination/atl-pagination.js.map +1 -1
- package/src/lib/progress/atl-progress.d.ts +1 -1
- package/src/lib/progress/atl-progress.d.ts.map +1 -1
- package/src/lib/progress/atl-progress.js +1 -1
- package/src/lib/progress/atl-progress.js.map +1 -1
- package/src/lib/radio/atl-radio.d.ts +1 -1
- package/src/lib/radio/atl-radio.d.ts.map +1 -1
- package/src/lib/radio/atl-radio.js +1 -1
- package/src/lib/radio/atl-radio.js.map +1 -1
- package/src/lib/radio-group/atl-radio-group.d.ts +1 -1
- package/src/lib/radio-group/atl-radio-group.d.ts.map +1 -1
- package/src/lib/radio-group/atl-radio-group.js +1 -1
- package/src/lib/radio-group/atl-radio-group.js.map +1 -1
- package/src/lib/select/atl-select.d.ts +2 -1
- package/src/lib/select/atl-select.d.ts.map +1 -1
- package/src/lib/select/atl-select.js +2 -1
- package/src/lib/select/atl-select.js.map +1 -1
- package/src/lib/skeleton/atl-skeleton.d.ts +1 -1
- package/src/lib/skeleton/atl-skeleton.d.ts.map +1 -1
- package/src/lib/skeleton/atl-skeleton.js +1 -1
- package/src/lib/skeleton/atl-skeleton.js.map +1 -1
- package/src/lib/stepper/atl-stepper.d.ts +1 -1
- package/src/lib/stepper/atl-stepper.d.ts.map +1 -1
- package/src/lib/stepper/atl-stepper.js +1 -1
- package/src/lib/stepper/atl-stepper.js.map +1 -1
- package/src/lib/table/atl-table.d.ts +1 -1
- package/src/lib/table/atl-table.d.ts.map +1 -1
- package/src/lib/table/atl-table.js +1 -1
- package/src/lib/table/atl-table.js.map +1 -1
- package/src/lib/tabs/atl-tabs.d.ts +1 -1
- package/src/lib/tabs/atl-tabs.d.ts.map +1 -1
- package/src/lib/tabs/atl-tabs.js +1 -1
- package/src/lib/tabs/atl-tabs.js.map +1 -1
- package/src/lib/textarea/atl-textarea.d.ts +1 -1
- package/src/lib/textarea/atl-textarea.d.ts.map +1 -1
- package/src/lib/textarea/atl-textarea.js +1 -1
- package/src/lib/textarea/atl-textarea.js.map +1 -1
- package/src/lib/toast/atl-toast.d.ts +1 -1
- package/src/lib/toast/atl-toast.d.ts.map +1 -1
- package/src/lib/toast/atl-toast.js +1 -1
- package/src/lib/toast/atl-toast.js.map +1 -1
- package/src/lib/toggle/atl-toggle.d.ts +1 -1
- package/src/lib/toggle/atl-toggle.d.ts.map +1 -1
- package/src/lib/toggle/atl-toggle.js +1 -1
- package/src/lib/toggle/atl-toggle.js.map +1 -1
- package/src/lib/tooltip/atl-tooltip.d.ts +2 -1
- package/src/lib/tooltip/atl-tooltip.d.ts.map +1 -1
- package/src/lib/tooltip/atl-tooltip.js +2 -1
- package/src/lib/tooltip/atl-tooltip.js.map +1 -1
- package/src/lib/accordion/atl-accordion.css +0 -145
- package/src/lib/alert/atl-alert.css +0 -102
- package/src/lib/avatar/atl-avatar.css +0 -181
- package/src/lib/badge/atl-badge.css +0 -74
- package/src/lib/breadcrumbs/atl-breadcrumbs.css +0 -99
- package/src/lib/button/atl-button.css +0 -173
- package/src/lib/card/atl-card.css +0 -91
- package/src/lib/chat/atl-chat.css +0 -506
- package/src/lib/checkbox/atl-checkbox.css +0 -151
- package/src/lib/code-block/atl-code-block.css +0 -136
- package/src/lib/combobox/atl-combobox.css +0 -256
- package/src/lib/dialog/atl-dialog.css +0 -198
- package/src/lib/drawer/atl-drawer.css +0 -265
- package/src/lib/icon/atl-icon.css +0 -47
- package/src/lib/input/atl-input.css +0 -121
- package/src/lib/menu/atl-menu.css +0 -122
- package/src/lib/pagination/atl-pagination.css +0 -101
- package/src/lib/progress/atl-progress.css +0 -84
- package/src/lib/radio/atl-radio.css +0 -92
- package/src/lib/radio-group/atl-radio-group.css +0 -46
- package/src/lib/select/atl-select.css +0 -124
- package/src/lib/skeleton/atl-skeleton.css +0 -71
- package/src/lib/stepper/atl-stepper.css +0 -199
- package/src/lib/table/atl-table.css +0 -257
- package/src/lib/tabs/atl-tabs.css +0 -161
- package/src/lib/textarea/atl-textarea.css +0 -119
- package/src/lib/toast/atl-toast.css +0 -168
- package/src/lib/toggle/atl-toggle.css +0 -138
- package/src/lib/tooltip/atl-tooltip.css +0 -97
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
/* Geometry contract: every size this component states is a border-box size.
|
|
2
|
-
* Declared with the component rather than as a global reset, so it ships in the
|
|
3
|
-
* same file as the sizes it governs and no consuming app has to supply one.
|
|
4
|
-
* Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
|
|
5
|
-
* See ADR-0043. */
|
|
6
|
-
:is(
|
|
7
|
-
.atl-table,
|
|
8
|
-
.atl-table-wrapper,
|
|
9
|
-
.atl-tbody-empty-cell,
|
|
10
|
-
.atl-th-sort-asc-arrow,
|
|
11
|
-
.atl-th-sort-btn,
|
|
12
|
-
.atl-th-sort-desc-arrow,
|
|
13
|
-
.atl-th-sort-icon,
|
|
14
|
-
.atl-tr-select-cell
|
|
15
|
-
),
|
|
16
|
-
:is(
|
|
17
|
-
.atl-table,
|
|
18
|
-
.atl-table-wrapper,
|
|
19
|
-
.atl-tbody-empty-cell,
|
|
20
|
-
.atl-th-sort-asc-arrow,
|
|
21
|
-
.atl-th-sort-btn,
|
|
22
|
-
.atl-th-sort-desc-arrow,
|
|
23
|
-
.atl-th-sort-icon,
|
|
24
|
-
.atl-tr-select-cell
|
|
25
|
-
)
|
|
26
|
-
* {
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* ============================================================
|
|
31
|
-
atl-table.css — Styles for the React table component
|
|
32
|
-
============================================================ */
|
|
33
|
-
|
|
34
|
-
/* ---------------------------------------------------------------------------
|
|
35
|
-
Table host container
|
|
36
|
-
--------------------------------------------------------------------------- */
|
|
37
|
-
.atl-table {
|
|
38
|
-
display: block;
|
|
39
|
-
font-family: var(--ui-font-family);
|
|
40
|
-
/* The leading every descendant inherits. Stated here so the component keeps
|
|
41
|
-
its own vertical rhythm instead of adopting the consuming app's prose
|
|
42
|
-
leading — the defect that made the row boxes measure differently in a
|
|
43
|
-
Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
|
|
44
|
-
line-height: var(--ui-line-height-tight);
|
|
45
|
-
color: var(--ui-color-text);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.atl-table-wrapper {
|
|
49
|
-
width: 100%;
|
|
50
|
-
overflow-x: auto;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.atl-table table {
|
|
54
|
-
width: 100%;
|
|
55
|
-
border-collapse: collapse;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* ---------------------------------------------------------------------------
|
|
59
|
-
Header cells
|
|
60
|
-
--------------------------------------------------------------------------- */
|
|
61
|
-
.atl-table thead th {
|
|
62
|
-
font-size: var(--ui-font-size-xs);
|
|
63
|
-
font-weight: var(--ui-font-weight-semibold);
|
|
64
|
-
color: var(--ui-color-text-muted);
|
|
65
|
-
letter-spacing: var(--ui-letter-spacing-wide);
|
|
66
|
-
text-transform: uppercase;
|
|
67
|
-
border-bottom: var(--ui-border-width-thick) solid var(--ui-color-border);
|
|
68
|
-
background-color: var(--ui-color-surface);
|
|
69
|
-
/* Row recipe (ADR-0052): a row centres its content on a stated height, it
|
|
70
|
-
does not let the content push the box. padding-block stays 0 so the size
|
|
71
|
-
variants below only vary the inline inset. */
|
|
72
|
-
height: var(--ui-row-height-md);
|
|
73
|
-
padding-block: 0;
|
|
74
|
-
padding-inline: var(--ui-spacing-4);
|
|
75
|
-
line-height: var(--ui-line-height-tight);
|
|
76
|
-
text-align: start;
|
|
77
|
-
white-space: nowrap;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* ---------------------------------------------------------------------------
|
|
81
|
-
Body cells
|
|
82
|
-
--------------------------------------------------------------------------- */
|
|
83
|
-
.atl-table tbody td {
|
|
84
|
-
border-bottom: var(--ui-border-width) solid var(--ui-color-border);
|
|
85
|
-
height: var(--ui-row-height-md);
|
|
86
|
-
padding-block: 0;
|
|
87
|
-
padding-inline: var(--ui-spacing-4);
|
|
88
|
-
line-height: var(--ui-line-height-tight);
|
|
89
|
-
vertical-align: middle;
|
|
90
|
-
background-color: var(--ui-color-surface);
|
|
91
|
-
transition: background-color var(--ui-transition-fast);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* ---------------------------------------------------------------------------
|
|
95
|
-
Size variants
|
|
96
|
-
--------------------------------------------------------------------------- */
|
|
97
|
-
.atl-table.size-sm thead th,
|
|
98
|
-
.atl-table.size-sm tbody td {
|
|
99
|
-
height: var(--ui-row-height-sm);
|
|
100
|
-
padding-inline: var(--ui-spacing-3);
|
|
101
|
-
font-size: var(--ui-font-size-xs);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.atl-table.size-md thead th,
|
|
105
|
-
.atl-table.size-md tbody td {
|
|
106
|
-
height: var(--ui-row-height-md);
|
|
107
|
-
padding-inline: var(--ui-spacing-4);
|
|
108
|
-
font-size: var(--ui-font-size-sm);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.atl-table.size-lg thead th,
|
|
112
|
-
.atl-table.size-lg tbody td {
|
|
113
|
-
height: var(--ui-row-height-lg);
|
|
114
|
-
padding-inline: var(--ui-spacing-6);
|
|
115
|
-
font-size: var(--ui-font-size-md);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* ---------------------------------------------------------------------------
|
|
119
|
-
Table variants
|
|
120
|
-
--------------------------------------------------------------------------- */
|
|
121
|
-
|
|
122
|
-
/* Striped: alternate even row background */
|
|
123
|
-
.atl-table.variant-striped tbody tr:nth-child(even) td {
|
|
124
|
-
background-color: var(--ui-color-surface-sunken);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* Bordered: all cell borders */
|
|
128
|
-
.atl-table.variant-bordered thead th,
|
|
129
|
-
.atl-table.variant-bordered tbody td {
|
|
130
|
-
border: var(--ui-border-width) solid var(--ui-color-border);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/* ---------------------------------------------------------------------------
|
|
134
|
-
Alignment
|
|
135
|
-
--------------------------------------------------------------------------- */
|
|
136
|
-
th.align-start,
|
|
137
|
-
td.align-start {
|
|
138
|
-
text-align: start;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
th.align-center,
|
|
142
|
-
td.align-center {
|
|
143
|
-
text-align: center;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
th.align-end,
|
|
147
|
-
td.align-end {
|
|
148
|
-
text-align: end;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* ---------------------------------------------------------------------------
|
|
152
|
-
Row hover and selection
|
|
153
|
-
--------------------------------------------------------------------------- */
|
|
154
|
-
.atl-table tbody tr:hover td {
|
|
155
|
-
background-color: var(--ui-color-surface-sunken);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.atl-table tbody tr.is-selected td {
|
|
159
|
-
background-color: var(--ui-color-primary-light);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* Keep selected color on hover */
|
|
163
|
-
.atl-table tbody tr.is-selected:hover td {
|
|
164
|
-
background-color: var(--ui-color-primary-light);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* Selection checkbox cell — fixed narrow width */
|
|
168
|
-
.atl-tr-select-cell {
|
|
169
|
-
width: 2.75rem;
|
|
170
|
-
text-align: center;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/* Strip default checkbox layout to center it in the cell */
|
|
174
|
-
.atl-tr-select-cell .atl-checkbox label {
|
|
175
|
-
justify-content: center;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* ---------------------------------------------------------------------------
|
|
179
|
-
Sticky header
|
|
180
|
-
z-index:1 is intentional — above sibling rows but below dropdowns (z-index:100)
|
|
181
|
-
--------------------------------------------------------------------------- */
|
|
182
|
-
.atl-table.is-sticky-header thead th {
|
|
183
|
-
position: sticky;
|
|
184
|
-
top: 0;
|
|
185
|
-
z-index: 1;
|
|
186
|
-
box-shadow: 0 1px 0 0 var(--ui-color-border);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/* ---------------------------------------------------------------------------
|
|
190
|
-
Sort button
|
|
191
|
-
--------------------------------------------------------------------------- */
|
|
192
|
-
.atl-th-sort-btn {
|
|
193
|
-
all: unset;
|
|
194
|
-
box-sizing: border-box;
|
|
195
|
-
display: inline-flex;
|
|
196
|
-
align-items: center;
|
|
197
|
-
gap: var(--ui-spacing-2);
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
font: inherit;
|
|
200
|
-
color: inherit;
|
|
201
|
-
font-weight: inherit;
|
|
202
|
-
width: 100%;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.atl-th-sort-btn:focus-visible {
|
|
206
|
-
outline: none;
|
|
207
|
-
box-shadow: var(--ui-focus-ring);
|
|
208
|
-
border-radius: var(--ui-radius-sm);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.atl-th-sort-icon {
|
|
212
|
-
/* The asc/desc arrows were two paths in one svg; as two AtlIcons they stack
|
|
213
|
-
* vertically in the same space the single icon occupied (ADR-0046). */
|
|
214
|
-
display: inline-flex;
|
|
215
|
-
flex-direction: column;
|
|
216
|
-
align-items: center;
|
|
217
|
-
justify-content: center;
|
|
218
|
-
flex-shrink: 0;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.atl-table .atl-th-sort-icon .atl-icon {
|
|
222
|
-
width: 0.625rem;
|
|
223
|
-
height: 0.5rem;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.atl-th-sort-asc-arrow,
|
|
227
|
-
.atl-th-sort-desc-arrow {
|
|
228
|
-
opacity: 0.25;
|
|
229
|
-
transition: opacity var(--ui-transition-fast);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
th.is-sorted .atl-th-sort-icon {
|
|
233
|
-
color: var(--ui-color-primary);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
th.sort-asc .atl-th-sort-asc-arrow {
|
|
237
|
-
opacity: 1;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
th.sort-desc .atl-th-sort-desc-arrow {
|
|
241
|
-
opacity: 1;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/* ---------------------------------------------------------------------------
|
|
245
|
-
Empty state
|
|
246
|
-
--------------------------------------------------------------------------- */
|
|
247
|
-
.atl-tbody-empty-cell {
|
|
248
|
-
text-align: center;
|
|
249
|
-
padding: var(--ui-spacing-12) var(--ui-spacing-4) !important;
|
|
250
|
-
color: var(--ui-color-text-muted);
|
|
251
|
-
font-size: var(--ui-font-size-md);
|
|
252
|
-
background-color: var(--ui-color-surface) !important;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/* ---------------------------------------------------------------------------
|
|
256
|
-
Dark mode — inherited via --ui-* token overrides in tokens.css
|
|
257
|
-
--------------------------------------------------------------------------- */
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
/* Geometry contract: every size this component states is a border-box size.
|
|
2
|
-
* Declared with the component rather than as a global reset, so it ships in the
|
|
3
|
-
* same file as the sizes it governs and no consuming app has to supply one.
|
|
4
|
-
* Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
|
|
5
|
-
* See ADR-0043. */
|
|
6
|
-
.atl-tab-group,
|
|
7
|
-
.atl-tab-group * {
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.atl-tab-group {
|
|
12
|
-
display: block;
|
|
13
|
-
font-family: var(--ui-font-family);
|
|
14
|
-
/* The leading every descendant inherits. Stated here so the component keeps
|
|
15
|
-
its own vertical rhythm instead of adopting the consuming app's prose
|
|
16
|
-
leading — the defect that made the row boxes measure differently in a
|
|
17
|
-
Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
|
|
18
|
-
line-height: var(--ui-line-height-tight);
|
|
19
|
-
color: var(--ui-color-text);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* ─── Tab list ─── */
|
|
23
|
-
.atl-tab-group .tablist {
|
|
24
|
-
display: flex;
|
|
25
|
-
gap: var(--ui-spacing-2);
|
|
26
|
-
border-bottom: var(--ui-border-width) solid var(--ui-color-border);
|
|
27
|
-
overflow-x: auto;
|
|
28
|
-
scrollbar-width: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.atl-tab-group .tablist::-webkit-scrollbar {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* ─── Tab button ─── */
|
|
36
|
-
.atl-tab-group .tablist button {
|
|
37
|
-
all: unset;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
position: relative;
|
|
40
|
-
display: inline-flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
min-height: var(--ui-control-height-md);
|
|
43
|
-
/* Stated, not inherited: an inherited line-height makes the box grow with the
|
|
44
|
-
* text metrics, which is how three controls measured right on one machine and
|
|
45
|
-
* wrong on another (ADR-0048). */
|
|
46
|
-
line-height: var(--ui-line-height-tight);
|
|
47
|
-
/* Derived from the height, not authored: 12+12 padding on a 20px line box
|
|
48
|
-
* rendered 41px against a 40px token (ADR-0041's recipe, ADR-0047's finding). */
|
|
49
|
-
padding: calc(
|
|
50
|
-
(
|
|
51
|
-
var(--ui-control-height-md) - var(--ui-line-height-tight) *
|
|
52
|
-
var(--ui-font-size-sm)
|
|
53
|
-
) /
|
|
54
|
-
2
|
|
55
|
-
)
|
|
56
|
-
var(--ui-spacing-4);
|
|
57
|
-
font-size: var(--ui-font-size-sm);
|
|
58
|
-
font-weight: var(--ui-font-weight-medium);
|
|
59
|
-
color: var(--ui-color-text-muted);
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
transition: var(--ui-transition-fast);
|
|
62
|
-
transition-property: color, background-color;
|
|
63
|
-
border-radius: var(--ui-radius-md) var(--ui-radius-md) 0 0;
|
|
64
|
-
white-space: nowrap;
|
|
65
|
-
user-select: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Active indicator (underline) — 3px for modern weight */
|
|
69
|
-
.atl-tab-group .tablist button::after {
|
|
70
|
-
content: '';
|
|
71
|
-
position: absolute;
|
|
72
|
-
bottom: -1px;
|
|
73
|
-
left: var(--ui-spacing-2);
|
|
74
|
-
right: var(--ui-spacing-2);
|
|
75
|
-
height: 3px;
|
|
76
|
-
background: transparent;
|
|
77
|
-
border-radius: var(--ui-radius-full) var(--ui-radius-full) 0 0;
|
|
78
|
-
transition: background var(--ui-transition-fast);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.atl-tab-group .tablist button.is-active {
|
|
82
|
-
color: var(--ui-color-primary);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.atl-tab-group .tablist button.is-active::after {
|
|
86
|
-
background: var(--ui-color-primary);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Hover */
|
|
90
|
-
.atl-tab-group .tablist button:hover:not(.is-disabled):not(.is-active) {
|
|
91
|
-
color: var(--ui-color-text);
|
|
92
|
-
background: var(--ui-color-surface-sunken);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* Focus */
|
|
96
|
-
.atl-tab-group .tablist button:focus-visible {
|
|
97
|
-
outline: none;
|
|
98
|
-
box-shadow: var(--ui-focus-ring);
|
|
99
|
-
border-radius: var(--ui-radius-md);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/* Disabled */
|
|
103
|
-
.atl-tab-group .tablist button.is-disabled {
|
|
104
|
-
opacity: var(--ui-opacity-disabled);
|
|
105
|
-
cursor: not-allowed;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* ─── Tab panel ─── */
|
|
109
|
-
.atl-tab-group [role='tabpanel'] {
|
|
110
|
-
padding: var(--ui-spacing-5) 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.atl-tab-group [role='tabpanel']:focus-visible {
|
|
114
|
-
outline: none;
|
|
115
|
-
box-shadow: var(--ui-focus-ring);
|
|
116
|
-
border-radius: var(--ui-radius-md);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* ─── Pills variant ─── */
|
|
120
|
-
.atl-tab-group.variant-pills .tablist {
|
|
121
|
-
border-bottom: none;
|
|
122
|
-
gap: var(--ui-spacing-2);
|
|
123
|
-
padding: var(--ui-spacing-1);
|
|
124
|
-
background: var(--ui-color-surface-sunken);
|
|
125
|
-
border-radius: var(--ui-radius-lg);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.atl-tab-group.variant-pills .tablist button {
|
|
129
|
-
border-radius: var(--ui-radius-md);
|
|
130
|
-
min-height: var(--ui-control-height-sm);
|
|
131
|
-
/* Stated, not inherited: an inherited line-height makes the box grow with the
|
|
132
|
-
* text metrics, which is how three controls measured right on one machine and
|
|
133
|
-
* wrong on another (ADR-0048). */
|
|
134
|
-
line-height: var(--ui-line-height-tight);
|
|
135
|
-
padding: calc(
|
|
136
|
-
(
|
|
137
|
-
var(--ui-control-height-sm) - var(--ui-line-height-tight) *
|
|
138
|
-
var(--ui-font-size-sm)
|
|
139
|
-
) /
|
|
140
|
-
2
|
|
141
|
-
)
|
|
142
|
-
var(--ui-spacing-4);
|
|
143
|
-
font-size: var(--ui-font-size-sm);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.atl-tab-group.variant-pills .tablist button::after {
|
|
147
|
-
display: none;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.atl-tab-group.variant-pills .tablist button.is-active {
|
|
151
|
-
background: var(--ui-color-surface);
|
|
152
|
-
color: var(--ui-color-text);
|
|
153
|
-
box-shadow: var(--ui-shadow-sm);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.atl-tab-group.variant-pills
|
|
157
|
-
.tablist
|
|
158
|
-
button:hover:not(.is-disabled):not(.is-active) {
|
|
159
|
-
background: transparent;
|
|
160
|
-
color: var(--ui-color-text);
|
|
161
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/* Geometry contract: every size this component states is a border-box size.
|
|
2
|
-
* Declared with the component rather than as a global reset, so it ships in the
|
|
3
|
-
* same file as the sizes it governs and no consuming app has to supply one.
|
|
4
|
-
* Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
|
|
5
|
-
* See ADR-0043. */
|
|
6
|
-
.atl-textarea,
|
|
7
|
-
.atl-textarea * {
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.atl-textarea {
|
|
12
|
-
display: block;
|
|
13
|
-
/* One role, not three axes (ADR-0036): body-md carries the sans, the md size
|
|
14
|
-
and the normal leading — normal because the field holds prose, and stated here
|
|
15
|
-
rather than inherited so the component keeps its own rhythm instead of the
|
|
16
|
-
consuming app's (ADR-0052). `font:` supplies the leading the longhand used to,
|
|
17
|
-
which is why check:typeface now recognises the shorthand (ADR-0073). */
|
|
18
|
-
font: var(--ui-type-body-md);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.atl-textarea textarea {
|
|
22
|
-
display: block;
|
|
23
|
-
width: 100%;
|
|
24
|
-
padding: 0.625rem var(--ui-spacing-4);
|
|
25
|
-
font-size: inherit;
|
|
26
|
-
font-family: inherit;
|
|
27
|
-
line-height: var(--ui-line-height-normal);
|
|
28
|
-
color: var(--ui-color-text);
|
|
29
|
-
background-color: var(--ui-color-input-bg);
|
|
30
|
-
border: var(--ui-border-width) solid var(--ui-color-input-border);
|
|
31
|
-
border-radius: var(--ui-radius-md);
|
|
32
|
-
transition:
|
|
33
|
-
border-color var(--ui-transition-fast),
|
|
34
|
-
box-shadow var(--ui-transition-fast),
|
|
35
|
-
background-color var(--ui-transition-fast);
|
|
36
|
-
outline: none;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
resize: vertical;
|
|
39
|
-
min-height: 5rem;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.atl-textarea textarea::placeholder {
|
|
43
|
-
color: var(--ui-color-placeholder);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.atl-textarea textarea:hover:not(:disabled):not(:read-only) {
|
|
47
|
-
border-color: var(--ui-color-input-border-hover);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.atl-textarea textarea:focus {
|
|
51
|
-
border-color: var(--ui-color-input-border-focus);
|
|
52
|
-
background-color: var(--ui-color-input-bg-focus);
|
|
53
|
-
box-shadow: var(--ui-focus-ring);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.atl-textarea .textarea-field {
|
|
57
|
-
position: relative;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Invalid state */
|
|
61
|
-
.atl-textarea.is-invalid textarea {
|
|
62
|
-
border-color: var(--ui-color-input-border-invalid);
|
|
63
|
-
padding-right: 2.25rem;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.atl-textarea.is-invalid textarea:focus {
|
|
67
|
-
border-color: var(--ui-color-input-border-invalid);
|
|
68
|
-
box-shadow: var(--ui-focus-ring-danger);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Non-color invalid indicator (WCAG 1.4.1). A real AtlIcon rather than a CSS
|
|
72
|
-
* `content: '✕'`: the glyph could not follow the icon set and Figma cannot put an
|
|
73
|
-
* icon instance behind a pseudo-element (ADR-0046). */
|
|
74
|
-
.atl-textarea.is-invalid .textarea-field .invalid-icon {
|
|
75
|
-
position: absolute;
|
|
76
|
-
top: 50%;
|
|
77
|
-
transform: translateY(-50%);
|
|
78
|
-
right: 0.875rem;
|
|
79
|
-
color: var(--ui-color-danger);
|
|
80
|
-
pointer-events: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* Disabled state */
|
|
84
|
-
.atl-textarea.is-disabled {
|
|
85
|
-
opacity: var(--ui-opacity-disabled);
|
|
86
|
-
cursor: not-allowed;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.atl-textarea.is-disabled textarea {
|
|
90
|
-
cursor: not-allowed;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/* Readonly state */
|
|
94
|
-
.atl-textarea.is-readonly textarea {
|
|
95
|
-
background-color: var(--ui-color-surface-sunken);
|
|
96
|
-
/* Readonly is content, not a control: the interactive edge goes away while the
|
|
97
|
-
* filled surface stays. Transparent rather than removed so the 1px border keeps
|
|
98
|
-
* its space and the height stays exactly --ui-control-height-md (ADR-0045). */
|
|
99
|
-
border-color: transparent;
|
|
100
|
-
cursor: default;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/* Auto-resize: hide manual resize handle when autoResize is active */
|
|
104
|
-
.atl-textarea.is-auto-resize textarea {
|
|
105
|
-
resize: none;
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/* Error messages */
|
|
110
|
-
.atl-textarea .errors {
|
|
111
|
-
margin-top: var(--ui-spacing-2);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.atl-textarea .error-message {
|
|
115
|
-
margin: 0;
|
|
116
|
-
font-size: var(--ui-font-size-sm);
|
|
117
|
-
color: var(--ui-color-error-text);
|
|
118
|
-
line-height: var(--ui-line-height-normal);
|
|
119
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/* Geometry contract: every size this component states is a border-box size.
|
|
2
|
-
* Declared with the component rather than as a global reset, so it ships in the
|
|
3
|
-
* same file as the sizes it governs and no consuming app has to supply one.
|
|
4
|
-
* Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
|
|
5
|
-
* See ADR-0043. */
|
|
6
|
-
:is(.atl-toast, .atl-toast-container),
|
|
7
|
-
:is(.atl-toast, .atl-toast-container) * {
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* ── Toast Container ── */
|
|
12
|
-
.atl-toast-container {
|
|
13
|
-
/* The library states its own typeface (ADR-0035). Without this the component
|
|
14
|
-
* renders in the consuming app's font while its neighbours render Instrument
|
|
15
|
-
* Sans — measured: a card next to a button showed two typefaces. Declared once
|
|
16
|
-
* per component root, never on a descendant (ADR-0049). */
|
|
17
|
-
font-family: var(--ui-font-family);
|
|
18
|
-
position: fixed;
|
|
19
|
-
z-index: var(--ui-z-toast, 400);
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
gap: var(--ui-spacing-2);
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
max-width: min(24rem, calc(100vw - 2rem));
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.atl-toast-container.position-bottom-right {
|
|
29
|
-
bottom: var(--ui-spacing-4);
|
|
30
|
-
right: var(--ui-spacing-4);
|
|
31
|
-
align-items: flex-end;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.atl-toast-container.position-bottom-center {
|
|
35
|
-
bottom: var(--ui-spacing-4);
|
|
36
|
-
left: 50%;
|
|
37
|
-
transform: translateX(-50%);
|
|
38
|
-
align-items: center;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.atl-toast-container.position-top-right {
|
|
42
|
-
top: var(--ui-spacing-4);
|
|
43
|
-
right: var(--ui-spacing-4);
|
|
44
|
-
align-items: flex-end;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.atl-toast-container.position-top-center {
|
|
48
|
-
top: var(--ui-spacing-4);
|
|
49
|
-
left: 50%;
|
|
50
|
-
transform: translateX(-50%);
|
|
51
|
-
align-items: center;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* ── Individual Toast ── */
|
|
55
|
-
.atl-toast {
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
gap: var(--ui-spacing-3);
|
|
59
|
-
padding: var(--ui-spacing-4) var(--ui-spacing-5);
|
|
60
|
-
border-radius: var(--ui-radius-lg);
|
|
61
|
-
border-left: 4px solid transparent;
|
|
62
|
-
font: var(--ui-type-body-sm);
|
|
63
|
-
box-shadow: var(--ui-shadow-lg);
|
|
64
|
-
background-color: var(--ui-color-surface-raised, var(--ui-color-surface));
|
|
65
|
-
color: var(--ui-color-text);
|
|
66
|
-
pointer-events: auto;
|
|
67
|
-
min-width: 18rem;
|
|
68
|
-
max-width: 100%;
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
animation: toast-enter 0.3s ease-out;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* ── Variant borders & tints ── */
|
|
74
|
-
.atl-toast.variant-default {
|
|
75
|
-
border-left-color: var(--ui-color-border);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.atl-toast.variant-success {
|
|
79
|
-
border-left-color: var(--ui-color-success);
|
|
80
|
-
background-color: color-mix(
|
|
81
|
-
in srgb,
|
|
82
|
-
var(--ui-color-success) 8%,
|
|
83
|
-
var(--ui-color-surface-raised, var(--ui-color-surface))
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.atl-toast.variant-warning {
|
|
88
|
-
border-left-color: var(--ui-color-warning);
|
|
89
|
-
background-color: color-mix(
|
|
90
|
-
in srgb,
|
|
91
|
-
var(--ui-color-warning) 8%,
|
|
92
|
-
var(--ui-color-surface-raised, var(--ui-color-surface))
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.atl-toast.variant-danger {
|
|
97
|
-
border-left-color: var(--ui-color-danger);
|
|
98
|
-
background-color: color-mix(
|
|
99
|
-
in srgb,
|
|
100
|
-
var(--ui-color-danger) 8%,
|
|
101
|
-
var(--ui-color-surface-raised, var(--ui-color-surface))
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.atl-toast.variant-info {
|
|
106
|
-
border-left-color: var(--ui-color-info);
|
|
107
|
-
background-color: color-mix(
|
|
108
|
-
in srgb,
|
|
109
|
-
var(--ui-color-info) 8%,
|
|
110
|
-
var(--ui-color-surface-raised, var(--ui-color-surface))
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/* ── Message ── */
|
|
115
|
-
.atl-toast .message {
|
|
116
|
-
flex: 1;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* ── Dismiss button ── */
|
|
120
|
-
.atl-toast .dismiss {
|
|
121
|
-
display: inline-flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
flex-shrink: 0;
|
|
125
|
-
width: 1.75rem;
|
|
126
|
-
height: 1.75rem;
|
|
127
|
-
padding: 0;
|
|
128
|
-
background: transparent;
|
|
129
|
-
border: none;
|
|
130
|
-
border-radius: var(--ui-radius-sm);
|
|
131
|
-
cursor: pointer;
|
|
132
|
-
color: var(--ui-color-text-muted, currentColor);
|
|
133
|
-
opacity: 0.7;
|
|
134
|
-
transition:
|
|
135
|
-
opacity var(--ui-transition-fast, 150ms),
|
|
136
|
-
background-color var(--ui-transition-fast, 150ms);
|
|
137
|
-
line-height: 1;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.atl-toast .dismiss:hover {
|
|
141
|
-
opacity: 1;
|
|
142
|
-
background-color: color-mix(in srgb, currentColor 10%, transparent);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.atl-toast .dismiss:focus-visible {
|
|
146
|
-
outline: none;
|
|
147
|
-
box-shadow: var(--ui-focus-ring);
|
|
148
|
-
opacity: 1;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* ── Enter animation ── */
|
|
152
|
-
@keyframes toast-enter {
|
|
153
|
-
from {
|
|
154
|
-
opacity: 0;
|
|
155
|
-
transform: translateY(0.5rem);
|
|
156
|
-
}
|
|
157
|
-
to {
|
|
158
|
-
opacity: 1;
|
|
159
|
-
transform: translateY(0);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/* ── Reduced motion ── */
|
|
164
|
-
@media (prefers-reduced-motion: reduce) {
|
|
165
|
-
.atl-toast {
|
|
166
|
-
animation: none;
|
|
167
|
-
}
|
|
168
|
-
}
|