@atelier-ui/react 0.3.5 → 0.3.6

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.
Files changed (147) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/package.json +4 -1
  3. package/src/lib/accordion/atl-accordion.d.ts +1 -1
  4. package/src/lib/accordion/atl-accordion.d.ts.map +1 -1
  5. package/src/lib/accordion/atl-accordion.js +1 -1
  6. package/src/lib/accordion/atl-accordion.js.map +1 -1
  7. package/src/lib/alert/atl-alert.d.ts +1 -1
  8. package/src/lib/alert/atl-alert.d.ts.map +1 -1
  9. package/src/lib/alert/atl-alert.js +1 -1
  10. package/src/lib/alert/atl-alert.js.map +1 -1
  11. package/src/lib/avatar/atl-avatar.d.ts +1 -1
  12. package/src/lib/avatar/atl-avatar.d.ts.map +1 -1
  13. package/src/lib/avatar/atl-avatar.js +1 -1
  14. package/src/lib/avatar/atl-avatar.js.map +1 -1
  15. package/src/lib/badge/atl-badge.d.ts +1 -1
  16. package/src/lib/badge/atl-badge.d.ts.map +1 -1
  17. package/src/lib/badge/atl-badge.js +1 -1
  18. package/src/lib/badge/atl-badge.js.map +1 -1
  19. package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts +1 -1
  20. package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts.map +1 -1
  21. package/src/lib/breadcrumbs/atl-breadcrumbs.js +2 -2
  22. package/src/lib/breadcrumbs/atl-breadcrumbs.js.map +1 -1
  23. package/src/lib/button/atl-button.d.ts +1 -1
  24. package/src/lib/button/atl-button.d.ts.map +1 -1
  25. package/src/lib/button/atl-button.js +1 -1
  26. package/src/lib/button/atl-button.js.map +1 -1
  27. package/src/lib/card/atl-card.d.ts +1 -1
  28. package/src/lib/card/atl-card.d.ts.map +1 -1
  29. package/src/lib/card/atl-card.js +1 -1
  30. package/src/lib/card/atl-card.js.map +1 -1
  31. package/src/lib/chat/atl-chat.d.ts +1 -1
  32. package/src/lib/chat/atl-chat.d.ts.map +1 -1
  33. package/src/lib/chat/atl-chat.js +1 -1
  34. package/src/lib/chat/atl-chat.js.map +1 -1
  35. package/src/lib/checkbox/atl-checkbox.d.ts +1 -1
  36. package/src/lib/checkbox/atl-checkbox.d.ts.map +1 -1
  37. package/src/lib/checkbox/atl-checkbox.js +1 -1
  38. package/src/lib/checkbox/atl-checkbox.js.map +1 -1
  39. package/src/lib/code-block/atl-code-block.d.ts +1 -1
  40. package/src/lib/code-block/atl-code-block.d.ts.map +1 -1
  41. package/src/lib/code-block/atl-code-block.js +1 -1
  42. package/src/lib/code-block/atl-code-block.js.map +1 -1
  43. package/src/lib/combobox/atl-combobox.d.ts +1 -1
  44. package/src/lib/combobox/atl-combobox.d.ts.map +1 -1
  45. package/src/lib/combobox/atl-combobox.js +1 -1
  46. package/src/lib/combobox/atl-combobox.js.map +1 -1
  47. package/src/lib/dialog/atl-dialog.d.ts +1 -1
  48. package/src/lib/dialog/atl-dialog.d.ts.map +1 -1
  49. package/src/lib/dialog/atl-dialog.js +1 -1
  50. package/src/lib/dialog/atl-dialog.js.map +1 -1
  51. package/src/lib/drawer/atl-drawer.d.ts +1 -1
  52. package/src/lib/drawer/atl-drawer.d.ts.map +1 -1
  53. package/src/lib/drawer/atl-drawer.js +2 -2
  54. package/src/lib/drawer/atl-drawer.js.map +1 -1
  55. package/src/lib/icon/atl-icon.d.ts +1 -1
  56. package/src/lib/icon/atl-icon.d.ts.map +1 -1
  57. package/src/lib/icon/atl-icon.js +1 -1
  58. package/src/lib/icon/atl-icon.js.map +1 -1
  59. package/src/lib/input/atl-input.d.ts +1 -1
  60. package/src/lib/input/atl-input.d.ts.map +1 -1
  61. package/src/lib/input/atl-input.js +1 -1
  62. package/src/lib/input/atl-input.js.map +1 -1
  63. package/src/lib/menu/atl-menu.d.ts +2 -1
  64. package/src/lib/menu/atl-menu.d.ts.map +1 -1
  65. package/src/lib/menu/atl-menu.js +2 -1
  66. package/src/lib/menu/atl-menu.js.map +1 -1
  67. package/src/lib/pagination/atl-pagination.d.ts +1 -1
  68. package/src/lib/pagination/atl-pagination.d.ts.map +1 -1
  69. package/src/lib/pagination/atl-pagination.js +1 -1
  70. package/src/lib/pagination/atl-pagination.js.map +1 -1
  71. package/src/lib/progress/atl-progress.d.ts +1 -1
  72. package/src/lib/progress/atl-progress.d.ts.map +1 -1
  73. package/src/lib/progress/atl-progress.js +1 -1
  74. package/src/lib/progress/atl-progress.js.map +1 -1
  75. package/src/lib/radio/atl-radio.d.ts +1 -1
  76. package/src/lib/radio/atl-radio.d.ts.map +1 -1
  77. package/src/lib/radio/atl-radio.js +1 -1
  78. package/src/lib/radio/atl-radio.js.map +1 -1
  79. package/src/lib/radio-group/atl-radio-group.d.ts +1 -1
  80. package/src/lib/radio-group/atl-radio-group.d.ts.map +1 -1
  81. package/src/lib/radio-group/atl-radio-group.js +1 -1
  82. package/src/lib/radio-group/atl-radio-group.js.map +1 -1
  83. package/src/lib/select/atl-select.d.ts +2 -1
  84. package/src/lib/select/atl-select.d.ts.map +1 -1
  85. package/src/lib/select/atl-select.js +2 -1
  86. package/src/lib/select/atl-select.js.map +1 -1
  87. package/src/lib/skeleton/atl-skeleton.d.ts +1 -1
  88. package/src/lib/skeleton/atl-skeleton.d.ts.map +1 -1
  89. package/src/lib/skeleton/atl-skeleton.js +1 -1
  90. package/src/lib/skeleton/atl-skeleton.js.map +1 -1
  91. package/src/lib/stepper/atl-stepper.d.ts +1 -1
  92. package/src/lib/stepper/atl-stepper.d.ts.map +1 -1
  93. package/src/lib/stepper/atl-stepper.js +1 -1
  94. package/src/lib/stepper/atl-stepper.js.map +1 -1
  95. package/src/lib/table/atl-table.d.ts +1 -1
  96. package/src/lib/table/atl-table.d.ts.map +1 -1
  97. package/src/lib/table/atl-table.js +1 -1
  98. package/src/lib/table/atl-table.js.map +1 -1
  99. package/src/lib/tabs/atl-tabs.d.ts +1 -1
  100. package/src/lib/tabs/atl-tabs.d.ts.map +1 -1
  101. package/src/lib/tabs/atl-tabs.js +1 -1
  102. package/src/lib/tabs/atl-tabs.js.map +1 -1
  103. package/src/lib/textarea/atl-textarea.d.ts +1 -1
  104. package/src/lib/textarea/atl-textarea.d.ts.map +1 -1
  105. package/src/lib/textarea/atl-textarea.js +1 -1
  106. package/src/lib/textarea/atl-textarea.js.map +1 -1
  107. package/src/lib/toast/atl-toast.d.ts +1 -1
  108. package/src/lib/toast/atl-toast.d.ts.map +1 -1
  109. package/src/lib/toast/atl-toast.js +1 -1
  110. package/src/lib/toast/atl-toast.js.map +1 -1
  111. package/src/lib/toggle/atl-toggle.d.ts +1 -1
  112. package/src/lib/toggle/atl-toggle.d.ts.map +1 -1
  113. package/src/lib/toggle/atl-toggle.js +1 -1
  114. package/src/lib/toggle/atl-toggle.js.map +1 -1
  115. package/src/lib/tooltip/atl-tooltip.d.ts +2 -1
  116. package/src/lib/tooltip/atl-tooltip.d.ts.map +1 -1
  117. package/src/lib/tooltip/atl-tooltip.js +2 -1
  118. package/src/lib/tooltip/atl-tooltip.js.map +1 -1
  119. package/src/lib/accordion/atl-accordion.css +0 -145
  120. package/src/lib/alert/atl-alert.css +0 -102
  121. package/src/lib/avatar/atl-avatar.css +0 -181
  122. package/src/lib/badge/atl-badge.css +0 -74
  123. package/src/lib/breadcrumbs/atl-breadcrumbs.css +0 -99
  124. package/src/lib/button/atl-button.css +0 -173
  125. package/src/lib/card/atl-card.css +0 -91
  126. package/src/lib/chat/atl-chat.css +0 -506
  127. package/src/lib/checkbox/atl-checkbox.css +0 -151
  128. package/src/lib/code-block/atl-code-block.css +0 -136
  129. package/src/lib/combobox/atl-combobox.css +0 -256
  130. package/src/lib/dialog/atl-dialog.css +0 -198
  131. package/src/lib/drawer/atl-drawer.css +0 -265
  132. package/src/lib/icon/atl-icon.css +0 -47
  133. package/src/lib/input/atl-input.css +0 -121
  134. package/src/lib/menu/atl-menu.css +0 -122
  135. package/src/lib/pagination/atl-pagination.css +0 -101
  136. package/src/lib/progress/atl-progress.css +0 -84
  137. package/src/lib/radio/atl-radio.css +0 -92
  138. package/src/lib/radio-group/atl-radio-group.css +0 -46
  139. package/src/lib/select/atl-select.css +0 -124
  140. package/src/lib/skeleton/atl-skeleton.css +0 -71
  141. package/src/lib/stepper/atl-stepper.css +0 -199
  142. package/src/lib/table/atl-table.css +0 -257
  143. package/src/lib/tabs/atl-tabs.css +0 -161
  144. package/src/lib/textarea/atl-textarea.css +0 -119
  145. package/src/lib/toast/atl-toast.css +0 -168
  146. package/src/lib/toggle/atl-toggle.css +0 -138
  147. package/src/lib/tooltip/atl-tooltip.css +0 -97
@@ -1,265 +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-drawer-content,
8
- .atl-drawer-footer,
9
- .atl-drawer-header,
10
- .atl-drawer-host
11
- ),
12
- :is(
13
- .atl-drawer-content,
14
- .atl-drawer-footer,
15
- .atl-drawer-header,
16
- .atl-drawer-host
17
- )
18
- * {
19
- box-sizing: border-box;
20
- }
21
-
22
- /* ── Host wrapper ──────────────────────────────────────────────────────────── */
23
- .atl-drawer-host {
24
- /* The library states its own typeface (ADR-0035). Without this the component
25
- * renders in the consuming app's font while its neighbours render Instrument
26
- * Sans — measured: a card next to a button showed two typefaces. Declared once
27
- * per component root, never on a descendant (ADR-0049). */
28
- font-family: var(--ui-font-family);
29
- /* The leading every descendant inherits. Stated here so the component keeps
30
- its own vertical rhythm instead of adopting the consuming app's prose
31
- leading — the defect that made the row boxes measure differently in a
32
- Storybook page and in a docs page (ADR-0052). This one carries prose, so normal. */
33
- line-height: var(--ui-line-height-normal);
34
- display: contents;
35
- }
36
-
37
- /* ── Native <dialog> base ──────────────────────────────────────────────────── */
38
- .atl-drawer-host dialog {
39
- all: unset;
40
- /* Restated after `all: unset`, which resets the box model too — the component's
41
- * geometry contract has the same specificity and loses on source order, so this
42
- * element was content-box and 2px taller than its own CSS said (ADR-0051). */
43
- box-sizing: border-box;
44
- /* After `all: unset`, which would otherwise reset it (ADR-0049). */
45
- font-family: var(--ui-font-family);
46
- position: fixed;
47
- display: none;
48
- flex-direction: column;
49
- background: var(--ui-color-surface);
50
- box-shadow: var(--ui-shadow-xl, 0 20px 60px rgba(0, 0, 0, 0.3));
51
- color: var(--ui-color-text);
52
- overflow: hidden;
53
- transition:
54
- transform var(--ui-duration-slow) var(--ui-ease-out, ease-out),
55
- display var(--ui-duration-slow) allow-discrete,
56
- overlay var(--ui-duration-slow) allow-discrete;
57
- }
58
-
59
- .atl-drawer-host dialog[open] {
60
- display: flex;
61
- transform: translate(0, 0) !important;
62
- }
63
-
64
- /* ── Backdrop ──────────────────────────────────────────────────────────────── */
65
- .atl-drawer-host dialog::backdrop {
66
- background: var(--ui-color-overlay);
67
- backdrop-filter: blur(2px);
68
- transition:
69
- opacity var(--ui-duration-slow) var(--ui-ease-out, ease-out),
70
- display var(--ui-duration-slow) allow-discrete,
71
- overlay var(--ui-duration-slow) allow-discrete;
72
- }
73
-
74
- @starting-style {
75
- .atl-drawer-host dialog[open]::backdrop {
76
- opacity: 0;
77
- }
78
- }
79
-
80
- @media (prefers-color-scheme: dark) {
81
- .atl-drawer-host dialog::backdrop {
82
- background: var(--ui-color-overlay);
83
- }
84
- }
85
-
86
- [data-theme='dark'] .atl-drawer-host dialog::backdrop {
87
- background: var(--ui-color-overlay);
88
- }
89
-
90
- /* ── Panel (inner wrapper) ─────────────────────────────────────────────────── */
91
- .atl-drawer-host .panel {
92
- display: flex;
93
- flex-direction: column;
94
- width: 100%;
95
- height: 100%;
96
- overflow: hidden;
97
- }
98
-
99
- /* ═══════════════════════════════════════════════════════════════════════════ */
100
- /* POSITION VARIANTS */
101
- /* ═══════════════════════════════════════════════════════════════════════════ */
102
-
103
- /* ── Right ─────────────────────────────────────────────────────────────────── */
104
- .atl-drawer-host.position-right dialog {
105
- inset: 0 0 0 auto;
106
- height: 100dvh;
107
- transform: translateX(100%);
108
- }
109
-
110
- @starting-style {
111
- .atl-drawer-host.position-right dialog[open] {
112
- transform: translateX(100%);
113
- }
114
- }
115
-
116
- /* ── Left ──────────────────────────────────────────────────────────────────── */
117
- .atl-drawer-host.position-left dialog {
118
- inset: 0 auto 0 0;
119
- height: 100dvh;
120
- transform: translateX(-100%);
121
- }
122
-
123
- @starting-style {
124
- .atl-drawer-host.position-left dialog[open] {
125
- transform: translateX(-100%);
126
- }
127
- }
128
-
129
- /* ── Top ───────────────────────────────────────────────────────────────────── */
130
- .atl-drawer-host.position-top dialog {
131
- inset: 0 0 auto 0;
132
- width: 100vw;
133
- transform: translateY(-100%);
134
- }
135
-
136
- @starting-style {
137
- .atl-drawer-host.position-top dialog[open] {
138
- transform: translateY(-100%);
139
- }
140
- }
141
-
142
- /* ── Bottom ────────────────────────────────────────────────────────────────── */
143
- .atl-drawer-host.position-bottom dialog {
144
- inset: auto 0 0 0;
145
- width: 100vw;
146
- transform: translateY(100%);
147
- }
148
-
149
- @starting-style {
150
- .atl-drawer-host.position-bottom dialog[open] {
151
- transform: translateY(100%);
152
- }
153
- }
154
-
155
- /* ═══════════════════════════════════════════════════════════════════════════ */
156
- /* SIZE VARIANTS (left/right = width; top/bottom = height) */
157
- /* ═══════════════════════════════════════════════════════════════════════════ */
158
-
159
- /* Left / Right widths */
160
- .atl-drawer-host.position-right.size-sm dialog,
161
- .atl-drawer-host.position-left.size-sm dialog {
162
- width: 20rem;
163
- }
164
-
165
- .atl-drawer-host.position-right.size-md dialog,
166
- .atl-drawer-host.position-left.size-md dialog {
167
- width: 28rem;
168
- }
169
-
170
- .atl-drawer-host.position-right.size-lg dialog,
171
- .atl-drawer-host.position-left.size-lg dialog {
172
- width: 40rem;
173
- }
174
-
175
- .atl-drawer-host.position-right.size-full dialog,
176
- .atl-drawer-host.position-left.size-full dialog {
177
- width: 100vw;
178
- }
179
-
180
- /* Top / Bottom heights */
181
- .atl-drawer-host.position-top.size-sm dialog,
182
- .atl-drawer-host.position-bottom.size-sm dialog {
183
- height: 12rem;
184
- }
185
-
186
- .atl-drawer-host.position-top.size-md dialog,
187
- .atl-drawer-host.position-bottom.size-md dialog {
188
- height: 20rem;
189
- }
190
-
191
- .atl-drawer-host.position-top.size-lg dialog,
192
- .atl-drawer-host.position-bottom.size-lg dialog {
193
- height: 32rem;
194
- }
195
-
196
- .atl-drawer-host.position-top.size-full dialog,
197
- .atl-drawer-host.position-bottom.size-full dialog {
198
- height: 100dvh;
199
- }
200
-
201
- /* ═══════════════════════════════════════════════════════════════════════════ */
202
- /* SUB-COMPONENTS */
203
- /* ═══════════════════════════════════════════════════════════════════════════ */
204
-
205
- .atl-drawer-header {
206
- display: flex;
207
- align-items: center;
208
- justify-content: space-between;
209
- padding: var(--ui-spacing-5) var(--ui-spacing-6);
210
- border-bottom: var(--ui-border-width) solid var(--ui-color-border);
211
- font-size: var(--ui-font-size-xl);
212
- font-weight: var(--ui-font-weight-semibold);
213
- letter-spacing: var(--ui-letter-spacing-tight);
214
- color: var(--ui-color-text);
215
- flex-shrink: 0;
216
- }
217
-
218
- .atl-drawer-content {
219
- display: block;
220
- padding: var(--ui-spacing-6);
221
- overflow-y: auto;
222
- flex: 1;
223
- color: var(--ui-color-text);
224
- }
225
-
226
- .atl-drawer-footer {
227
- display: flex;
228
- align-items: center;
229
- justify-content: flex-end;
230
- gap: var(--ui-spacing-3);
231
- padding: var(--ui-spacing-5) var(--ui-spacing-6);
232
- border-top: var(--ui-border-width) solid var(--ui-color-border);
233
- flex-shrink: 0;
234
- }
235
-
236
- /* ── Close button ──────────────────────────────────────────────────────────── */
237
- .close-btn {
238
- display: inline-flex;
239
- align-items: center;
240
- justify-content: center;
241
- flex-shrink: 0;
242
- width: var(--ui-control-height-sm);
243
- height: var(--ui-control-height-sm);
244
- padding: 0;
245
- margin-left: var(--ui-spacing-3);
246
- background: transparent;
247
- border: none;
248
- border-radius: var(--ui-radius-sm);
249
- cursor: pointer;
250
- color: var(--ui-color-text-muted);
251
- transition:
252
- background-color var(--ui-transition-fast),
253
- color var(--ui-transition-fast);
254
- line-height: 1;
255
- }
256
-
257
- .close-btn:hover {
258
- background-color: var(--ui-color-surface-sunken);
259
- color: var(--ui-color-text);
260
- }
261
-
262
- .close-btn:focus-visible {
263
- outline: none;
264
- box-shadow: var(--ui-focus-ring);
265
- }
@@ -1,47 +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-icon,
7
- .atl-icon * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-icon {
12
- display: inline-flex;
13
- align-items: center;
14
- justify-content: center;
15
- font-family: var(--ui-font-family);
16
- font-weight: var(--ui-font-weight-medium);
17
- line-height: 1;
18
- color: currentColor;
19
- user-select: none;
20
- flex-shrink: 0;
21
- }
22
-
23
- .atl-icon.size-sm {
24
- width: 1rem;
25
- height: 1rem;
26
- font-size: var(--ui-font-size-sm);
27
- }
28
-
29
- .atl-icon.size-md {
30
- width: 1.25rem;
31
- height: 1.25rem;
32
- font-size: var(--ui-font-size-md);
33
- }
34
-
35
- .atl-icon.size-lg {
36
- width: 1.5rem;
37
- height: 1.5rem;
38
- font-size: var(--ui-font-size-lg);
39
- }
40
-
41
- /* The size classes define the box; the svg fills it. Geometry is always the
42
- * 0 0 24 24 viewBox, so every size is the same shape at a different scale. */
43
- .atl-icon svg {
44
- width: 100%;
45
- height: 100%;
46
- display: block;
47
- }
@@ -1,121 +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-input,
7
- .atl-input * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-input {
12
- display: block;
13
- font-family: var(--ui-font-family);
14
- /* The leading every descendant inherits, stated so the component keeps its
15
- own rhythm rather than the consuming app's prose leading (ADR-0052).
16
- A single-line field, so tight. */
17
- line-height: var(--ui-line-height-tight);
18
- font-size: var(--ui-font-size-md);
19
- }
20
-
21
- .atl-input input {
22
- display: block;
23
- width: 100%;
24
- min-height: var(--ui-control-height-md);
25
- padding: calc(
26
- (
27
- var(--ui-control-height-md) - var(--ui-line-height-tight) *
28
- var(--ui-font-size-md)
29
- ) /
30
- 2 - var(--ui-border-width)
31
- )
32
- var(--ui-spacing-4);
33
- font-size: inherit;
34
- font-family: inherit;
35
- /* Control line-height, not the prose one: a single-line field has nothing to
36
- * read across lines, and 1.5 is what made it 6px taller than a button. */
37
- line-height: var(--ui-line-height-tight);
38
- color: var(--ui-color-text);
39
- background-color: var(--ui-color-input-bg);
40
- border: var(--ui-border-width) solid var(--ui-color-input-border);
41
- border-radius: var(--ui-radius-md);
42
- transition:
43
- border-color var(--ui-transition-fast),
44
- box-shadow var(--ui-transition-fast),
45
- background-color var(--ui-transition-fast);
46
- outline: none;
47
- box-sizing: border-box;
48
- }
49
-
50
- .atl-input input::placeholder {
51
- color: var(--ui-color-placeholder);
52
- }
53
-
54
- .atl-input input:hover:not(:disabled):not(:read-only) {
55
- border-color: var(--ui-color-input-border-hover);
56
- }
57
-
58
- .atl-input input:focus {
59
- border-color: var(--ui-color-input-border-focus);
60
- background-color: var(--ui-color-input-bg-focus);
61
- box-shadow: var(--ui-focus-ring);
62
- }
63
-
64
- .atl-input .input-field {
65
- position: relative;
66
- }
67
-
68
- /* Invalid state */
69
- .atl-input.is-invalid input {
70
- border-color: var(--ui-color-input-border-invalid);
71
- padding-right: 2.25rem;
72
- }
73
-
74
- .atl-input.is-invalid input:focus {
75
- border-color: var(--ui-color-input-border-invalid);
76
- box-shadow: var(--ui-focus-ring-danger);
77
- }
78
-
79
- /* Non-color invalid indicator (WCAG 1.4.1). A real AtlIcon rather than a CSS
80
- * `content: '✕'`: the glyph could not follow the icon set and Figma cannot put an
81
- * icon instance behind a pseudo-element (ADR-0046). */
82
- .atl-input.is-invalid .input-field .invalid-icon {
83
- position: absolute;
84
- top: 50%;
85
- transform: translateY(-50%);
86
- right: 0.875rem;
87
- color: var(--ui-color-danger);
88
- pointer-events: none;
89
- }
90
-
91
- /* Disabled state */
92
- .atl-input.is-disabled {
93
- opacity: var(--ui-opacity-disabled);
94
- cursor: not-allowed;
95
- }
96
-
97
- .atl-input.is-disabled input {
98
- cursor: not-allowed;
99
- }
100
-
101
- /* Readonly state */
102
- .atl-input.is-readonly input {
103
- background-color: var(--ui-color-surface-sunken);
104
- /* Readonly is content, not a control: the interactive edge goes away while the
105
- * filled surface stays. Transparent rather than removed so the 1px border keeps
106
- * its space and the height stays exactly --ui-control-height-md (ADR-0045). */
107
- border-color: transparent;
108
- cursor: default;
109
- }
110
-
111
- /* Error messages */
112
- .atl-input .errors {
113
- margin-top: var(--ui-spacing-2);
114
- }
115
-
116
- .atl-input .error-message {
117
- margin: 0;
118
- font-size: var(--ui-font-size-sm);
119
- color: var(--ui-color-error-text);
120
- line-height: var(--ui-line-height-normal);
121
- }
@@ -1,122 +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-menu, .atl-menu-item, .atl-menu-panel, .atl-menu-separator),
7
- :is(.atl-menu, .atl-menu-item, .atl-menu-panel, .atl-menu-separator) * {
8
- box-sizing: border-box;
9
- }
10
-
11
- /* Menu panel */
12
- .atl-menu {
13
- display: block;
14
- min-width: 12rem;
15
- padding: var(--ui-spacing-2) 0;
16
- background: var(--ui-color-surface-raised);
17
- border: var(--ui-border-width) solid var(--ui-color-border);
18
- border-radius: var(--ui-radius-lg);
19
- box-shadow: var(--ui-shadow-lg);
20
- font-family: var(--ui-font-family);
21
- /* The leading every descendant inherits. Stated here so the component keeps
22
- its own vertical rhythm instead of adopting the consuming app's prose
23
- leading — the defect that made the row boxes measure differently in a
24
- Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
25
- line-height: var(--ui-line-height-tight);
26
- font-size: var(--ui-font-size-md);
27
- color: var(--ui-color-text);
28
- outline: none;
29
- overflow: hidden;
30
-
31
- /* Entry animation */
32
- animation: atl-menu-enter var(--ui-duration-normal) var(--ui-ease-out)
33
- forwards;
34
- }
35
-
36
- .atl-menu.variant-compact {
37
- font-size: var(--ui-font-size-sm);
38
- padding: var(--ui-spacing-1) 0;
39
- }
40
-
41
- .atl-menu.variant-compact .atl-menu-item {
42
- min-height: var(--ui-control-height-sm);
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
- padding: calc(
48
- (
49
- var(--ui-control-height-sm) - var(--ui-line-height-tight) *
50
- var(--ui-font-size-sm)
51
- ) /
52
- 2
53
- )
54
- var(--ui-spacing-3);
55
- }
56
-
57
- @keyframes atl-menu-enter {
58
- from {
59
- opacity: 0;
60
- transform: translateY(-4px);
61
- }
62
- to {
63
- opacity: 1;
64
- transform: translateY(0);
65
- }
66
- }
67
-
68
- /* Menu item */
69
- .atl-menu-item {
70
- display: flex;
71
- align-items: center;
72
- gap: var(--ui-spacing-3);
73
- /* Row recipe (ADR-0052): the height is stated, the block padding is zero and the
74
- * content is centred. A row centres, a control pads — ADR-0041's derived-padding
75
- * formula produces the wrong box here. The line-height is stated so the box does
76
- * not follow the installed font (ADR-0048).
77
- */
78
- min-height: var(--ui-row-height-sm);
79
- padding-block: 0;
80
- padding-inline: var(--ui-spacing-4);
81
- cursor: pointer;
82
- color: var(--ui-color-text);
83
- transition: background var(--ui-transition-fast);
84
- outline: none;
85
- border: none;
86
- background: none;
87
- font: inherit;
88
- /* After `font: inherit`, which is a shorthand and resets line-height along with
89
- * everything else. Declared above it, the row's stated line-height was silently
90
- * erased and the box grew with the text metrics again (ADR-0052). */
91
- line-height: var(--ui-line-height-tight);
92
- width: 100%;
93
- text-align: start;
94
- }
95
-
96
- .atl-menu-item:hover,
97
- .atl-menu-item:focus-visible {
98
- background: var(--ui-color-surface-sunken);
99
- }
100
-
101
- .atl-menu-item.is-disabled {
102
- opacity: var(--ui-opacity-disabled);
103
- cursor: not-allowed;
104
- }
105
-
106
- /* Separator */
107
- .atl-menu-separator {
108
- display: block;
109
- height: 1px;
110
- margin: var(--ui-spacing-2) 0;
111
- background: var(--ui-color-border);
112
- border: none;
113
- }
114
-
115
- /* Trigger panel — positioned absolutely below trigger */
116
- .atl-menu-panel {
117
- position: absolute;
118
- z-index: var(--ui-z-dropdown, 100);
119
- top: calc(100% + var(--ui-spacing-2));
120
- left: 0;
121
- min-width: 100%;
122
- }
@@ -1,101 +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-pagination,
7
- .atl-pagination * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-pagination {
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
- }
20
-
21
- .page-list {
22
- display: flex;
23
- flex-wrap: wrap;
24
- align-items: center;
25
- gap: var(--ui-spacing-2);
26
- list-style: none;
27
- margin: 0;
28
- padding: 0;
29
- }
30
-
31
- /* Page button */
32
- .page-btn {
33
- all: unset;
34
- /* Restated after `all: unset`, which resets the box model too — the component's
35
- * geometry contract has the same specificity and loses on source order, so this
36
- * element was content-box and 2px taller than its own CSS said (ADR-0051). */
37
- box-sizing: border-box;
38
- display: inline-flex;
39
- align-items: center;
40
- justify-content: center;
41
- min-width: 2.25rem;
42
- height: 2.25rem;
43
- padding: 0 var(--ui-spacing-2);
44
- border-radius: var(--ui-radius-md);
45
- border: var(--ui-border-width) solid transparent;
46
- background: transparent;
47
- color: var(--ui-color-text);
48
- font-size: var(--ui-font-size-sm);
49
- font-weight: var(--ui-font-weight-medium);
50
- cursor: pointer;
51
- user-select: none;
52
- transition:
53
- background-color var(--ui-transition-fast),
54
- border-color var(--ui-transition-fast),
55
- color var(--ui-transition-fast);
56
- }
57
-
58
- .page-btn:hover:not(:disabled) {
59
- background-color: var(--ui-color-surface-sunken);
60
- color: var(--ui-color-text);
61
- }
62
-
63
- .page-btn:focus-visible {
64
- outline: none;
65
- box-shadow: var(--ui-focus-ring);
66
- }
67
-
68
- /* Active (current) page — primary fill. Weight stays the resting --ui-type-control
69
- * medium (ADR-0074): the Figma master renders this label Medium in every state, and
70
- * .atl-tab-group's own .is-active — the other stateful member of the same six-rule
71
- * consumer list — changes only colour, never weight, on its current item. */
72
- .page-btn.is-active {
73
- background-color: var(--ui-color-primary);
74
- border-color: var(--ui-color-primary);
75
- color: var(--ui-color-text-on-primary);
76
- }
77
-
78
- .page-btn.is-active:hover {
79
- background-color: var(--ui-color-primary-hover);
80
- border-color: var(--ui-color-primary-hover);
81
- }
82
-
83
- /* Disabled */
84
- .page-btn.is-disabled,
85
- .page-btn:disabled {
86
- opacity: var(--ui-opacity-disabled);
87
- pointer-events: none;
88
- cursor: default;
89
- }
90
-
91
- /* Ellipsis */
92
- .ellipsis {
93
- display: inline-flex;
94
- align-items: center;
95
- justify-content: center;
96
- min-width: 2.25rem;
97
- height: 2.25rem;
98
- color: var(--ui-color-text-muted);
99
- font-size: var(--ui-font-size-sm);
100
- user-select: none;
101
- }