@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,506 +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-chat,
8
- .atl-chat-header,
9
- .atl-chat-input,
10
- .atl-chat-message,
11
- .atl-chat-messages,
12
- .atl-chat-suggestion,
13
- .atl-chat-typing
14
- ),
15
- :is(
16
- .atl-chat,
17
- .atl-chat-header,
18
- .atl-chat-input,
19
- .atl-chat-message,
20
- .atl-chat-messages,
21
- .atl-chat-suggestion,
22
- .atl-chat-typing
23
- )
24
- * {
25
- box-sizing: border-box;
26
- }
27
-
28
- /* ── Host wrapper ──────────────────────────────────────────────────────────── */
29
- .atl-chat {
30
- /* The library states its own typeface (ADR-0035). Without this the component
31
- * renders in the consuming app's font while its neighbours render Instrument
32
- * Sans — measured: a card next to a button showed two typefaces. Declared once
33
- * per component root, never on a descendant (ADR-0049). */
34
- font-family: var(--ui-font-family);
35
- /* The leading every descendant inherits. Stated here so the component keeps
36
- its own vertical rhythm instead of adopting the consuming app's prose
37
- leading — the defect that made the row boxes measure differently in a
38
- Storybook page and in a docs page (ADR-0052). This one carries prose, so normal. */
39
- line-height: var(--ui-line-height-normal);
40
- display: contents;
41
- }
42
-
43
- /* ── Shared surface (header / messages / input column) ─────────────────────── */
44
- .atl-chat .surface {
45
- display: flex;
46
- flex-direction: column;
47
- background: var(--ui-color-surface);
48
- color: var(--ui-color-text);
49
- overflow: hidden;
50
- }
51
-
52
- /* ═══════════════════════════════════════════════════════════════════════════ */
53
- /* DRAWER variant */
54
- /* ═══════════════════════════════════════════════════════════════════════════ */
55
- .atl-chat.variant-drawer dialog {
56
- all: unset;
57
- /* Restated after `all: unset`, which resets the box model too — the component's
58
- * geometry contract has the same specificity and loses on source order, so this
59
- * element was content-box and 2px taller than its own CSS said (ADR-0051). */
60
- box-sizing: border-box;
61
- /* After `all: unset`, which would otherwise reset it (ADR-0049). */
62
- font-family: var(--ui-font-family);
63
- position: fixed;
64
- inset: 0 0 0 auto;
65
- height: 100dvh;
66
- width: 28rem;
67
- display: none;
68
- flex-direction: column;
69
- background: var(--ui-color-surface);
70
- box-shadow: var(--ui-shadow-xl, -8px 0 32px rgba(0, 0, 0, 0.12));
71
- color: var(--ui-color-text);
72
- overflow: hidden;
73
- transform: translateX(100%);
74
- transition:
75
- transform var(--ui-duration-slow) var(--ui-ease-out, ease-out),
76
- display var(--ui-duration-slow) allow-discrete,
77
- overlay var(--ui-duration-slow) allow-discrete;
78
- }
79
-
80
- .atl-chat.variant-drawer dialog[open] {
81
- display: flex;
82
- transform: translateX(0);
83
- }
84
-
85
- @starting-style {
86
- .atl-chat.variant-drawer dialog[open] {
87
- transform: translateX(100%);
88
- }
89
- }
90
-
91
- .atl-chat.variant-drawer dialog::backdrop {
92
- background: var(--ui-color-overlay);
93
- backdrop-filter: blur(2px);
94
- transition:
95
- opacity var(--ui-duration-slow) var(--ui-ease-out, ease-out),
96
- display var(--ui-duration-slow) allow-discrete,
97
- overlay var(--ui-duration-slow) allow-discrete;
98
- }
99
-
100
- .atl-chat.variant-drawer .drawer-surface {
101
- width: 100%;
102
- height: 100%;
103
- }
104
-
105
- /* ═══════════════════════════════════════════════════════════════════════════ */
106
- /* POPUP variant */
107
- /* ═══════════════════════════════════════════════════════════════════════════ */
108
- .atl-chat.variant-popup .popup-surface {
109
- position: fixed;
110
- bottom: calc(var(--ui-spacing-6) + 3.5rem + var(--ui-spacing-4));
111
- right: var(--ui-spacing-6);
112
- width: 23.75rem;
113
- height: 35rem;
114
- border-radius: var(--ui-radius-xl);
115
- box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
116
- z-index: var(--ui-z-dropdown);
117
- }
118
-
119
- .atl-chat.variant-popup .fab-bubble {
120
- position: fixed;
121
- bottom: var(--ui-spacing-6);
122
- right: var(--ui-spacing-6);
123
- width: 3.5rem;
124
- height: 3.5rem;
125
- border-radius: var(--ui-radius-full);
126
- background: var(--ui-color-brand-ai, #b5e61c);
127
- color: var(--ui-color-text);
128
- border: none;
129
- font-size: var(--ui-font-size-lg);
130
- font-weight: var(--ui-font-weight-semibold);
131
- cursor: pointer;
132
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
133
- transition:
134
- transform var(--ui-transition-fast),
135
- box-shadow var(--ui-transition-fast);
136
- z-index: 101;
137
- }
138
-
139
- .atl-chat.variant-popup .fab-bubble:hover {
140
- transform: scale(1.05);
141
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
142
- }
143
-
144
- .atl-chat.variant-popup .fab-bubble:focus-visible {
145
- outline: none;
146
- box-shadow:
147
- var(--ui-focus-ring),
148
- 0 6px 16px rgba(0, 0, 0, 0.18);
149
- }
150
-
151
- /* ═══════════════════════════════════════════════════════════════════════════ */
152
- /* INLINE variant */
153
- /* ═══════════════════════════════════════════════════════════════════════════ */
154
- .atl-chat.variant-inline .inline-surface {
155
- width: 100%;
156
- height: 100%;
157
- min-height: 24rem;
158
- border: var(--ui-border-width) solid var(--ui-color-border);
159
- border-radius: var(--ui-radius-xl);
160
- }
161
-
162
- .atl-chat.variant-inline .atl-chat-header .close-btn {
163
- display: none;
164
- }
165
-
166
- /* ═══════════════════════════════════════════════════════════════════════════ */
167
- /* SUB-COMPONENT: header */
168
- /* ═══════════════════════════════════════════════════════════════════════════ */
169
- .atl-chat-header {
170
- display: flex;
171
- align-items: center;
172
- justify-content: space-between;
173
- gap: var(--ui-spacing-3);
174
- padding: var(--ui-spacing-3) var(--ui-spacing-4);
175
- border-bottom: var(--ui-border-width) solid var(--ui-color-border);
176
- flex-shrink: 0;
177
- }
178
-
179
- .atl-chat-header .title-block {
180
- display: flex;
181
- align-items: center;
182
- gap: var(--ui-spacing-3);
183
- font-size: var(--ui-font-size-md);
184
- font-weight: var(--ui-font-weight-semibold);
185
- color: var(--ui-color-text);
186
- letter-spacing: var(--ui-letter-spacing-tight);
187
- flex: 1;
188
- min-width: 0;
189
- }
190
-
191
- .atl-chat-header .close-btn {
192
- display: inline-flex;
193
- align-items: center;
194
- justify-content: center;
195
- flex-shrink: 0;
196
- width: var(--ui-control-height-sm);
197
- height: var(--ui-control-height-sm);
198
- padding: 0;
199
- background: transparent;
200
- border: var(--ui-border-width) solid var(--ui-color-border);
201
- border-radius: var(--ui-radius-sm);
202
- cursor: pointer;
203
- color: var(--ui-color-text-muted);
204
- transition:
205
- background-color var(--ui-transition-fast),
206
- color var(--ui-transition-fast);
207
- }
208
-
209
- .atl-chat-header .close-btn:hover {
210
- background-color: var(--ui-color-surface-sunken);
211
- color: var(--ui-color-text);
212
- }
213
-
214
- .atl-chat-header .close-btn:focus-visible {
215
- outline: none;
216
- box-shadow: var(--ui-focus-ring);
217
- }
218
-
219
- /* ═══════════════════════════════════════════════════════════════════════════ */
220
- /* SUB-COMPONENT: messages */
221
- /* ═══════════════════════════════════════════════════════════════════════════ */
222
- .atl-chat-messages {
223
- display: flex;
224
- flex-direction: column;
225
- gap: var(--ui-spacing-3);
226
- padding: var(--ui-spacing-4);
227
- overflow-y: auto;
228
- overflow-anchor: auto;
229
- scroll-behavior: smooth;
230
- flex: 1;
231
- background: var(--ui-color-surface);
232
- }
233
-
234
- /* The role="list" wrapper the log's listitems need (a node has one role, so it
235
- can't be the log root itself) — display:contents keeps it invisible to the
236
- flex/gap layout above, so the messages still lay out as if it were absent. */
237
- .atl-chat-messages .messages-list {
238
- display: contents;
239
- }
240
-
241
- /* ═══════════════════════════════════════════════════════════════════════════ */
242
- /* SUB-COMPONENT: message bubble */
243
- /* ═══════════════════════════════════════════════════════════════════════════ */
244
- .atl-chat-message {
245
- display: block;
246
- max-width: 85%;
247
- padding: var(--ui-spacing-3) var(--ui-spacing-4);
248
- border-radius: var(--ui-radius-lg);
249
- font-size: var(--ui-font-size-sm);
250
- line-height: var(--ui-line-height-normal);
251
- word-wrap: break-word;
252
- }
253
-
254
- .atl-chat-message.role-assistant,
255
- .atl-chat-message.role-system {
256
- background: var(--ui-color-surface-sunken);
257
- color: var(--ui-color-text);
258
- align-self: flex-start;
259
- }
260
-
261
- .atl-chat-message.role-user {
262
- background: var(--ui-color-primary);
263
- color: var(--ui-color-text-on-primary);
264
- align-self: flex-end;
265
- }
266
-
267
- .atl-chat-message.role-system {
268
- font-style: italic;
269
- color: var(--ui-color-text-muted);
270
- }
271
-
272
- .atl-chat-message.is-failed {
273
- background: var(--ui-color-surface-sunken);
274
- border: var(--ui-border-width) dashed var(--ui-color-danger);
275
- color: var(--ui-color-text);
276
- }
277
-
278
- /* ═══════════════════════════════════════════════════════════════════════════ */
279
- /* SUB-COMPONENT: typing indicator */
280
- /* ═══════════════════════════════════════════════════════════════════════════ */
281
- .atl-chat-typing {
282
- display: inline-flex;
283
- align-items: center;
284
- gap: var(--ui-spacing-1);
285
- padding: var(--ui-spacing-2) var(--ui-spacing-3);
286
- background: var(--ui-color-surface-sunken);
287
- border-radius: var(--ui-radius-lg);
288
- align-self: flex-start;
289
- }
290
-
291
- .atl-chat-typing .dot {
292
- width: 0.375rem;
293
- height: 0.375rem;
294
- border-radius: 50%;
295
- background: var(--ui-color-text-muted);
296
- animation: atl-chat-typing 1.4s infinite ease-in-out;
297
- }
298
-
299
- .atl-chat-typing .dot:nth-child(2) {
300
- animation-delay: 0.16s;
301
- }
302
-
303
- .atl-chat-typing .dot:nth-child(3) {
304
- animation-delay: 0.32s;
305
- }
306
-
307
- /* Inline cursor variant — drops the bubble chrome so the dots can sit at the
308
- end of a streaming assistant message. */
309
- .atl-chat-typing.is-inline {
310
- display: inline-flex;
311
- padding: 0;
312
- margin-left: var(--ui-spacing-1);
313
- background: transparent;
314
- border-radius: 0;
315
- vertical-align: baseline;
316
- align-self: auto;
317
- }
318
-
319
- .atl-chat-typing.is-inline .dot {
320
- width: 0.25rem;
321
- height: 0.25rem;
322
- }
323
-
324
- @keyframes atl-chat-typing {
325
- 0%,
326
- 60%,
327
- 100% {
328
- opacity: 0.3;
329
- transform: translateY(0);
330
- }
331
- 30% {
332
- opacity: 1;
333
- transform: translateY(-2px);
334
- }
335
- }
336
-
337
- @media (prefers-reduced-motion: reduce) {
338
- .atl-chat-typing .dot {
339
- animation: none;
340
- opacity: 0.6;
341
- }
342
- }
343
-
344
- .atl-chat-typing .sr-only {
345
- position: absolute;
346
- width: 1px;
347
- height: 1px;
348
- padding: 0;
349
- margin: -1px;
350
- overflow: hidden;
351
- clip: rect(0, 0, 0, 0);
352
- white-space: nowrap;
353
- border: 0;
354
- }
355
-
356
- /* ═══════════════════════════════════════════════════════════════════════════ */
357
- /* SUB-COMPONENT: suggestion chip */
358
- /* ═══════════════════════════════════════════════════════════════════════════ */
359
- .atl-chat-suggestion {
360
- display: block;
361
- }
362
-
363
- .atl-chat-suggestion .chip {
364
- display: flex;
365
- flex-direction: column;
366
- align-items: flex-start;
367
- gap: var(--ui-spacing-1);
368
- width: 100%;
369
- padding: var(--ui-spacing-3) var(--ui-spacing-4);
370
- background: var(--ui-color-surface);
371
- color: var(--ui-color-text);
372
- border: var(--ui-border-width) solid var(--ui-color-border);
373
- border-radius: var(--ui-radius-lg);
374
- text-align: left;
375
- cursor: pointer;
376
- transition:
377
- background-color var(--ui-transition-fast),
378
- border-color var(--ui-transition-fast);
379
- }
380
-
381
- .atl-chat-suggestion .chip:hover {
382
- background-color: var(--ui-color-surface-sunken);
383
- border-color: var(--ui-color-border-hover);
384
- }
385
-
386
- .atl-chat-suggestion .chip:focus-visible {
387
- outline: none;
388
- box-shadow: var(--ui-focus-ring);
389
- }
390
-
391
- .atl-chat-suggestion .chip-label {
392
- font-size: var(--ui-font-size-sm);
393
- font-weight: var(--ui-font-weight-medium);
394
- color: var(--ui-color-text);
395
- }
396
-
397
- .atl-chat-suggestion .chip-hint {
398
- font-size: var(--ui-font-size-xs);
399
- color: var(--ui-color-text-muted);
400
- }
401
-
402
- /* ═══════════════════════════════════════════════════════════════════════════ */
403
- /* SUB-COMPONENT: input footer */
404
- /* ═══════════════════════════════════════════════════════════════════════════ */
405
- .atl-chat-input {
406
- display: flex;
407
- align-items: flex-end;
408
- gap: var(--ui-spacing-2);
409
- padding: var(--ui-spacing-3) var(--ui-spacing-4);
410
- border-top: var(--ui-border-width) solid var(--ui-color-border);
411
- background: var(--ui-color-surface);
412
- flex-shrink: 0;
413
- }
414
-
415
- .atl-chat-input .field {
416
- flex: 1;
417
- min-width: 0;
418
- padding: var(--ui-spacing-2) var(--ui-spacing-3);
419
- border: var(--ui-border-width) solid
420
- var(--ui-color-input-border, var(--ui-color-border));
421
- border-radius: var(--ui-radius-md);
422
- background: var(--ui-color-surface-sunken);
423
- color: var(--ui-color-text);
424
- font-size: var(--ui-font-size-sm);
425
- line-height: var(--ui-line-height-normal);
426
- resize: none;
427
- transition: border-color var(--ui-transition-fast);
428
- }
429
-
430
- .atl-chat-input .field::placeholder {
431
- color: var(--ui-color-text-muted);
432
- }
433
-
434
- .atl-chat-input .field:hover:not(:disabled) {
435
- border-color: var(
436
- --ui-color-input-border-hover,
437
- var(--ui-color-border-hover)
438
- );
439
- }
440
-
441
- .atl-chat-input .field:focus-visible {
442
- outline: none;
443
- border-color: var(--ui-color-primary);
444
- box-shadow: var(--ui-focus-ring);
445
- }
446
-
447
- .atl-chat-input .field:disabled {
448
- opacity: var(--ui-opacity-disabled);
449
- cursor: not-allowed;
450
- }
451
-
452
- .atl-chat-input .action-btn {
453
- display: inline-flex;
454
- align-items: center;
455
- justify-content: center;
456
- flex-shrink: 0;
457
- padding: var(--ui-spacing-2) var(--ui-spacing-4);
458
- border: var(--ui-border-width) solid transparent;
459
- border-radius: var(--ui-radius-md);
460
- font-size: var(--ui-font-size-sm);
461
- font-weight: var(--ui-font-weight-medium);
462
- cursor: pointer;
463
- transition:
464
- background-color var(--ui-transition-fast),
465
- border-color var(--ui-transition-fast),
466
- transform var(--ui-transition-fast);
467
- }
468
-
469
- .atl-chat-input .action-btn.variant-primary {
470
- background: var(--ui-color-primary);
471
- color: var(--ui-color-text-on-primary);
472
- border-color: var(--ui-color-primary);
473
- }
474
-
475
- .atl-chat-input .action-btn.variant-primary:hover:not(:disabled) {
476
- background: var(--ui-color-primary-hover);
477
- border-color: var(--ui-color-primary-hover);
478
- }
479
-
480
- .atl-chat-input .action-btn.variant-danger {
481
- background: var(--ui-color-danger);
482
- color: var(--ui-color-text-on-danger);
483
- border-color: var(--ui-color-danger);
484
- }
485
-
486
- .atl-chat-input .action-btn.variant-danger:hover {
487
- background: var(--ui-color-danger-hover);
488
- border-color: var(--ui-color-danger-hover);
489
- }
490
-
491
- .atl-chat-input .action-btn:disabled {
492
- opacity: var(--ui-opacity-disabled);
493
- cursor: not-allowed;
494
- }
495
-
496
- .atl-chat-input .action-btn:focus-visible {
497
- outline: none;
498
- box-shadow: var(--ui-focus-ring);
499
- }
500
-
501
- /* ═══════════════════════════════════════════════════════════════════════════ */
502
- /* STATUS-aware tweaks */
503
- /* ═══════════════════════════════════════════════════════════════════════════ */
504
- .atl-chat.status-streaming .atl-chat-input .field {
505
- cursor: wait;
506
- }
@@ -1,151 +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-checkbox,
7
- .atl-checkbox * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-checkbox {
12
- display: block;
13
- font-family: var(--ui-font-family);
14
- font-size: var(--ui-font-size-md);
15
- /* The root is a block wrapping an inline-flex row, so it opens a line box and
16
- its strut is sized by whatever leading it inherits. Without this the row is
17
- 40px here and 48px inside an app with roomy prose leading. */
18
- line-height: var(--ui-line-height-tight);
19
- }
20
-
21
- .atl-checkbox label {
22
- display: inline-flex;
23
- align-items: center;
24
- gap: var(--ui-spacing-3);
25
- cursor: pointer;
26
- user-select: none;
27
- color: var(--ui-color-text);
28
- /* Row recipe (ADR-0052): the clickable line is a row — it states its height
29
- and centres the control + text, rather than being sized by whichever of
30
- the two happens to be taller. */
31
- min-height: var(--ui-row-height-sm);
32
- padding-block: 0;
33
- line-height: var(--ui-line-height-tight);
34
- }
35
-
36
- .atl-checkbox input[type='checkbox'] {
37
- appearance: none;
38
- -webkit-appearance: none;
39
- flex-shrink: 0;
40
- /* The UA ships margin: 3px 3px 3px 4px on a native checkbox. Left in, it
41
- adds 6px to the row and offsets the box from the label text. */
42
- margin: 0;
43
- width: 1.25rem;
44
- height: 1.25rem;
45
- border: var(--ui-border-width-thick) solid var(--ui-color-border-strong);
46
- border-radius: var(--ui-radius-sm);
47
- background-color: var(--ui-color-input-bg);
48
- cursor: pointer;
49
- position: relative;
50
- transition:
51
- border-color var(--ui-transition-fast),
52
- background-color var(--ui-transition-fast),
53
- box-shadow var(--ui-transition-fast);
54
- outline: none;
55
- }
56
-
57
- .atl-checkbox input[type='checkbox']:hover:not(:disabled) {
58
- border-color: var(--ui-color-primary);
59
- background-color: var(--ui-color-primary-light);
60
- }
61
-
62
- .atl-checkbox input[type='checkbox']:focus-visible {
63
- box-shadow: var(--ui-focus-ring);
64
- border-color: var(--ui-color-primary);
65
- }
66
-
67
- /* Checked state */
68
- .atl-checkbox input[type='checkbox']:checked {
69
- background-color: var(--ui-color-primary);
70
- border-color: var(--ui-color-primary);
71
- }
72
-
73
- .atl-checkbox input[type='checkbox']:checked::after {
74
- content: '';
75
- position: absolute;
76
- inset: 0;
77
- margin: auto;
78
- width: 0.35rem;
79
- height: 0.6rem;
80
- border: var(--ui-border-width-thick) solid var(--ui-color-text-on-primary);
81
- border-top: none;
82
- border-left: none;
83
- transform: rotate(45deg) translate(-1px, -1px);
84
- animation: atl-check-pop var(--ui-duration-normal) var(--ui-ease-spring);
85
- }
86
-
87
- /* Indeterminate state */
88
- .atl-checkbox input[type='checkbox']:indeterminate {
89
- background-color: var(--ui-color-primary);
90
- border-color: var(--ui-color-primary);
91
- }
92
-
93
- .atl-checkbox input[type='checkbox']:indeterminate::after {
94
- content: '';
95
- position: absolute;
96
- inset: 0;
97
- margin: auto;
98
- width: 0.5rem;
99
- height: 2px;
100
- background-color: var(--ui-color-text-on-primary);
101
- animation: atl-check-pop var(--ui-duration-normal) var(--ui-ease-spring);
102
- }
103
-
104
- /* Invalid state */
105
- .atl-checkbox.is-invalid input[type='checkbox'] {
106
- border-color: var(--ui-color-input-border-invalid);
107
- }
108
-
109
- .atl-checkbox.is-invalid input[type='checkbox']:focus-visible {
110
- border-color: var(--ui-color-input-border-invalid);
111
- box-shadow: var(--ui-focus-ring-danger);
112
- }
113
-
114
- /* Disabled state */
115
- .atl-checkbox.is-disabled {
116
- opacity: var(--ui-opacity-disabled);
117
- cursor: not-allowed;
118
- }
119
-
120
- .atl-checkbox.is-disabled label {
121
- cursor: not-allowed;
122
- }
123
-
124
- .atl-checkbox.is-disabled input[type='checkbox'] {
125
- cursor: not-allowed;
126
- }
127
-
128
- /* Error messages */
129
- .atl-checkbox .errors {
130
- margin-top: var(--ui-spacing-2);
131
- }
132
-
133
- .atl-checkbox .error-message {
134
- margin: 0;
135
- font-size: var(--ui-font-size-sm);
136
- color: var(--ui-color-error-text);
137
- line-height: var(--ui-line-height-normal);
138
- }
139
-
140
- /* Animation */
141
- @keyframes atl-check-pop {
142
- 0% {
143
- transform: rotate(45deg) translate(-1px, -1px) scale(0);
144
- }
145
- 60% {
146
- transform: rotate(45deg) translate(-1px, -1px) scale(1.15);
147
- }
148
- 100% {
149
- transform: rotate(45deg) translate(-1px, -1px) scale(1);
150
- }
151
- }