@atom63/ui-react 0.2.0-beta.11 → 0.2.0-beta.13
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/README.md +12 -0
- package/dist/button-DMnQeAEL.d.ts +22 -0
- package/dist/calendar/index.d.ts +2 -1
- package/dist/calendar/index.js +16 -1
- package/dist/calendar/index.js.map +1 -1
- package/dist/{chunk-J77BAGTA.js → chunk-IFBF2IA3.js} +17 -6
- package/dist/chunk-IFBF2IA3.js.map +1 -0
- package/dist/{chunk-NBHGMMQN.js → chunk-R7IQ3IL5.js} +26 -4
- package/dist/chunk-R7IQ3IL5.js.map +1 -0
- package/dist/{chunk-GDUMA6FI.js → chunk-RLF45GBS.js} +443 -275
- package/dist/chunk-RLF45GBS.js.map +1 -0
- package/dist/{chunk-R67OZVA2.js → chunk-WL27K6MO.js} +3 -2
- package/dist/chunk-WL27K6MO.js.map +1 -0
- package/dist/{chunk-X5L5DEUZ.js → chunk-ZEY2VU4O.js} +3 -3
- package/dist/{chunk-X5L5DEUZ.js.map → chunk-ZEY2VU4O.js.map} +1 -1
- package/dist/{destination-link-DMLeR-oF.d.ts → destination-link-BHVQyWry.d.ts} +2 -1
- package/dist/{index-BDzW8upQ.d.ts → index-CbgpSG4j.d.ts} +47 -8
- package/dist/index.d.ts +513 -141
- package/dist/index.js +1126 -235
- package/dist/index.js.map +1 -1
- package/dist/layout/index.d.ts +73 -1
- package/dist/layout/index.js +78 -2
- package/dist/layout/index.js.map +1 -1
- package/dist/media/index.d.ts +5 -4
- package/dist/media/index.js +35 -7
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-lightbox/parts/index.d.ts +5 -4
- package/dist/media/media-lightbox/parts/index.js +2 -2
- package/dist/preview/index.d.ts +2 -3
- package/dist/preview/index.js +2 -2
- package/dist/theme/index.d.ts +3 -2
- package/dist/theme/index.js +2 -2
- package/dist/{types-Dxe5IzjE.d.ts → types-KQLxlHQZ.d.ts} +21 -0
- package/package.json +36 -26
- package/src/components/alert/alert.css +21 -18
- package/src/components/amount/amount.css +60 -0
- package/src/components/app-view/app-view.css +232 -0
- package/src/components/autocomplete/autocomplete.css +21 -5
- package/src/components/avatar/avatar.css +64 -8
- package/src/components/badge/badge.css +65 -0
- package/src/components/button/button.css +160 -31
- package/src/components/calendar/calendar.css +7 -3
- package/src/components/card/card.css +26 -10
- package/src/components/carousel/carousel.css +90 -5
- package/src/components/chat-composer/chat-composer.css +69 -0
- package/src/components/chat-message/chat-message.css +93 -0
- package/src/components/chat-steps/chat-steps.css +132 -0
- package/src/components/chat-typing-indicator/chat-typing-indicator.css +83 -0
- package/src/components/checkbox/checkbox.css +14 -1
- package/src/components/command/command.css +35 -5
- package/src/components/connected-panel/connected-panel.css +4 -19
- package/src/components/destination-link/destination-link.css +28 -0
- package/src/components/dialog/dialog.css +2 -2
- package/src/components/drawer/drawer.css +15 -2
- package/src/components/empty/empty.css +2 -4
- package/src/components/field/field.css +14 -9
- package/src/components/form/form.css +1 -1
- package/src/components/frame/frame.css +1 -1
- package/src/components/input/input.css +72 -4
- package/src/components/input-otp/input-otp.css +2 -2
- package/src/components/item/item.css +72 -2
- package/src/components/load-more-trigger/load-more-trigger.css +17 -0
- package/src/components/marquee/marquee.css +25 -3
- package/src/components/menu/menu.css +36 -1
- package/src/components/message/message.css +170 -0
- package/src/components/navigation-menu/navigation-menu.css +22 -4
- package/src/components/panel-setting-button/panel-setting-button.css +14 -0
- package/src/components/progress/progress.css +31 -1
- package/src/components/radio/radio.css +32 -5
- package/src/components/rating/rating.css +120 -0
- package/src/components/resizable/resizable.css +1 -1
- package/src/components/scroll-area/scroll-area.css +1 -1
- package/src/components/scrollable-list/scrollable-list.css +10 -5
- package/src/components/segmented-control/segmented-control.css +14 -0
- package/src/components/select/select.css +11 -3
- package/src/components/separator/separator.css +3 -1
- package/src/components/sheet/sheet.css +8 -4
- package/src/components/sidebar/sidebar.css +54 -24
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +38 -5
- package/src/components/slider/slider.css +11 -6
- package/src/components/switch/switch.css +30 -11
- package/src/components/table/table.css +118 -10
- package/src/components/tabs/tabs.css +10 -0
- package/src/components/textarea/textarea.css +3 -3
- package/src/components/toaster/toaster.css +32 -0
- package/src/components/toggle/toggle.css +20 -8
- package/src/components/toggle-group/toggle-group.css +79 -1
- package/src/media/media-lightbox/media-lightbox.css +32 -2
- package/src/styles/recipes.css +10 -0
- package/src/styles/reset.css +13 -2
- package/src/styles/utilities.css +41 -28
- package/dist/button-CfLIHg-R.d.ts +0 -13
- package/dist/chunk-GDUMA6FI.js.map +0 -1
- package/dist/chunk-J77BAGTA.js.map +0 -1
- package/dist/chunk-NBHGMMQN.js.map +0 -1
- package/dist/chunk-R67OZVA2.js.map +0 -1
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
width: var(--carousel-nav-size);
|
|
52
52
|
height: var(--carousel-nav-size);
|
|
53
53
|
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
54
|
-
border-radius: var(--a63-overlay-radius, var(--radius-
|
|
54
|
+
border-radius: var(--a63-overlay-radius, var(--radius-pill, 9999px));
|
|
55
55
|
background-color: var(--a63-surface-overlay);
|
|
56
56
|
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
57
57
|
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
@@ -84,14 +84,18 @@
|
|
|
84
84
|
/* Placement — leading/trailing edge per orientation (prod insets). */
|
|
85
85
|
.a63-Carousel-nav[data-orientation='horizontal'][data-direction='prev'] {
|
|
86
86
|
top: 50%;
|
|
87
|
-
|
|
87
|
+
inset-inline-start: 0.75rem;
|
|
88
88
|
transform: translateY(-50%);
|
|
89
89
|
}
|
|
90
90
|
.a63-Carousel-nav[data-orientation='horizontal'][data-direction='next'] {
|
|
91
91
|
top: 50%;
|
|
92
|
-
|
|
92
|
+
inset-inline-end: 0.75rem;
|
|
93
93
|
transform: translateY(-50%);
|
|
94
94
|
}
|
|
95
|
+
/* The previous and next icons point left and right; mirror them in right-to-left layouts. */
|
|
96
|
+
.a63-Carousel-nav[data-orientation='horizontal']:dir(rtl) svg {
|
|
97
|
+
scale: -1 1;
|
|
98
|
+
}
|
|
95
99
|
.a63-Carousel-nav[data-orientation='vertical'][data-direction='prev'] {
|
|
96
100
|
top: 0.75rem;
|
|
97
101
|
left: 50%;
|
|
@@ -126,7 +130,7 @@
|
|
|
126
130
|
width: var(--carousel-nav-size);
|
|
127
131
|
height: var(--carousel-nav-size);
|
|
128
132
|
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
129
|
-
border-radius: var(--a63-overlay-radius, var(--radius-
|
|
133
|
+
border-radius: var(--a63-overlay-radius, var(--radius-pill, 9999px));
|
|
130
134
|
background-color: var(--a63-surface-overlay);
|
|
131
135
|
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
132
136
|
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
@@ -140,6 +144,86 @@
|
|
|
140
144
|
height: 1.25rem;
|
|
141
145
|
}
|
|
142
146
|
|
|
147
|
+
/* ── Dots ──────────────────────────────────────────────────────────────────
|
|
148
|
+
One per snap point. shape="dot" (default) keeps every dot round and marks
|
|
149
|
+
the current one by colour, as UIPageControl does; shape="pill" stretches
|
|
150
|
+
the current one into a pill. Each button is a transparent box (the visible
|
|
151
|
+
dot is its ::before): a minimum-target square for pills, and a 24px-wide
|
|
152
|
+
column for round dots, which sit closer together and still meet the
|
|
153
|
+
WCAG 2.5.8 target spacing. tone picks the colours. */
|
|
154
|
+
.a63-Carousel-dots {
|
|
155
|
+
--carousel-dot-pitch: var(--a63-control-min-target);
|
|
156
|
+
--carousel-dot-rest: color-mix(in oklch, var(--a63-text-secondary) 35%, transparent);
|
|
157
|
+
--carousel-dot-current: var(--a63-text-primary);
|
|
158
|
+
--carousel-dot-focus: var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
159
|
+
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
padding-block: var(--a63-space-2);
|
|
164
|
+
}
|
|
165
|
+
.a63-Carousel-dots[data-orientation='vertical'] {
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
padding-block: 0;
|
|
168
|
+
padding-inline: var(--a63-space-2);
|
|
169
|
+
}
|
|
170
|
+
.a63-Carousel-dots[data-shape='dot'] {
|
|
171
|
+
--carousel-dot-pitch: 1.5rem;
|
|
172
|
+
}
|
|
173
|
+
.a63-Carousel-dots[data-tone='accent'] {
|
|
174
|
+
--carousel-dot-current: var(--a63-action-primary);
|
|
175
|
+
}
|
|
176
|
+
.a63-Carousel-dots[data-tone='on-media'] {
|
|
177
|
+
--carousel-dot-rest: color-mix(in oklch, var(--a63-on-media-foreground) 50%, transparent);
|
|
178
|
+
--carousel-dot-current: var(--a63-on-media-foreground);
|
|
179
|
+
--carousel-dot-focus: var(--a63-on-media-ring);
|
|
180
|
+
}
|
|
181
|
+
.a63-Carousel-dot {
|
|
182
|
+
position: relative;
|
|
183
|
+
width: var(--carousel-dot-pitch);
|
|
184
|
+
height: var(--a63-control-min-target);
|
|
185
|
+
flex: none;
|
|
186
|
+
padding: 0;
|
|
187
|
+
border: 0;
|
|
188
|
+
background: transparent;
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
outline: none;
|
|
191
|
+
}
|
|
192
|
+
.a63-Carousel-dot::before {
|
|
193
|
+
content: '';
|
|
194
|
+
position: absolute;
|
|
195
|
+
inset: 50%;
|
|
196
|
+
width: 0.5rem;
|
|
197
|
+
height: 0.5rem;
|
|
198
|
+
border-radius: var(--radius-pill);
|
|
199
|
+
background-color: var(--carousel-dot-rest);
|
|
200
|
+
translate: -50% -50%;
|
|
201
|
+
transition:
|
|
202
|
+
width var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
203
|
+
height var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
204
|
+
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
205
|
+
}
|
|
206
|
+
.a63-Carousel-dot[aria-current='true']::before {
|
|
207
|
+
background-color: var(--carousel-dot-current);
|
|
208
|
+
}
|
|
209
|
+
.a63-Carousel-dots[data-shape='pill'] .a63-Carousel-dot[aria-current='true']::before {
|
|
210
|
+
width: 1.25rem;
|
|
211
|
+
}
|
|
212
|
+
.a63-Carousel-dots[data-shape='pill'][data-orientation='vertical']
|
|
213
|
+
.a63-Carousel-dot[aria-current='true']::before {
|
|
214
|
+
width: 0.5rem;
|
|
215
|
+
height: 1.25rem;
|
|
216
|
+
}
|
|
217
|
+
/* Vertical round dots: the pitch runs down the column, the minimum target across it. */
|
|
218
|
+
.a63-Carousel-dots[data-shape='dot'][data-orientation='vertical'] .a63-Carousel-dot {
|
|
219
|
+
width: var(--a63-control-min-target);
|
|
220
|
+
height: var(--carousel-dot-pitch);
|
|
221
|
+
}
|
|
222
|
+
.a63-Carousel-dot:focus-visible::before {
|
|
223
|
+
outline: var(--a63-control-focus-ring-width) solid var(--carousel-dot-focus);
|
|
224
|
+
outline-offset: 2px;
|
|
225
|
+
}
|
|
226
|
+
|
|
143
227
|
.a63-Carousel-sr-only {
|
|
144
228
|
position: absolute;
|
|
145
229
|
width: 1px;
|
|
@@ -153,7 +237,8 @@
|
|
|
153
237
|
}
|
|
154
238
|
|
|
155
239
|
@media (prefers-reduced-motion: reduce) {
|
|
156
|
-
.a63-Carousel-nav
|
|
240
|
+
.a63-Carousel-nav,
|
|
241
|
+
.a63-Carousel-dot::before {
|
|
157
242
|
transition: none;
|
|
158
243
|
}
|
|
159
244
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ChatComposer recipe — the FIELD archetype. It reuses the InputGroup chrome
|
|
3
|
+
* (border, recessed field shadow, focus-within ring) and only reshapes it: a
|
|
4
|
+
* textarea that starts at one line and grows to a cap before it scrolls, laid
|
|
5
|
+
* out on a grid with the attach slot, the field and the actions as areas.
|
|
6
|
+
* Inline is one pill row (attach, field, actions); once the text wraps
|
|
7
|
+
* (data-multiline) and in the stacked layout, the field spans the top row and
|
|
8
|
+
* the attach slot and actions sit in a row under it, in a --radius-2xl block.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.a63-ChatComposer {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--a63-space-2);
|
|
15
|
+
inline-size: 100%;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.a63-ChatComposer .a63-ChatComposer-group {
|
|
21
|
+
--field-radius: var(--radius-2xl);
|
|
22
|
+
|
|
23
|
+
display: grid;
|
|
24
|
+
grid-template-areas:
|
|
25
|
+
'field field field'
|
|
26
|
+
'attach . actions';
|
|
27
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--a63-space-1);
|
|
30
|
+
padding-block: var(--a63-space-2);
|
|
31
|
+
padding-inline: var(--a63-space-2);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.a63-ChatComposer[data-layout='inline']:not([data-multiline]) .a63-ChatComposer-group {
|
|
35
|
+
--field-radius: var(--radius-full);
|
|
36
|
+
|
|
37
|
+
grid-template-areas: 'attach field actions';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.a63-ChatComposer .a63-ChatComposer-group .a63-ChatComposer-field {
|
|
41
|
+
grid-area: field;
|
|
42
|
+
min-height: calc(1lh + 2 * var(--a63-space-1_5));
|
|
43
|
+
max-height: 40vh;
|
|
44
|
+
padding-inline: var(--a63-space-2);
|
|
45
|
+
overflow-y: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.a63-ChatComposer .a63-ChatComposer-attach {
|
|
49
|
+
grid-area: attach;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.a63-ChatComposer .a63-ChatComposer-actions {
|
|
53
|
+
grid-area: actions;
|
|
54
|
+
justify-self: end;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.a63-ChatComposer-attach,
|
|
58
|
+
.a63-ChatComposer-actions {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: var(--a63-space-1);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.a63-ChatComposer-footnote {
|
|
65
|
+
margin: 0;
|
|
66
|
+
color: var(--a63-text-secondary);
|
|
67
|
+
font-size: var(--a63-control-font-size-xs);
|
|
68
|
+
text-align: center;
|
|
69
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ChatMessage recipe — the SURFACE archetype. The user's bubble is
|
|
3
|
+
* --a63-surface-muted (it carries the brand tint through --a63-surface-tint);
|
|
4
|
+
* the assistant's bubble is the panel surface with a subtle border. Text reads
|
|
5
|
+
* the base type step. Layout is logical: the user's turn sits on the trailing
|
|
6
|
+
* side and mirrors in right-to-left scripts.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-ChatMessageList {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--a63-space-6);
|
|
13
|
+
min-width: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.a63-ChatMessage {
|
|
17
|
+
--chat-message-bubble-radius: var(--radius-2xl);
|
|
18
|
+
--chat-message-bubble-padding-block: var(--a63-space-2);
|
|
19
|
+
--chat-message-bubble-padding-inline: var(--a63-space-4);
|
|
20
|
+
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
gap: var(--a63-space-3);
|
|
24
|
+
min-width: 0;
|
|
25
|
+
color: var(--a63-text-primary);
|
|
26
|
+
font-size: var(--typography-base-font-size);
|
|
27
|
+
line-height: var(--typography-base-line-height);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.a63-ChatMessage[data-role='user'] {
|
|
31
|
+
flex-direction: row-reverse;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.a63-ChatMessage-avatar {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.a63-ChatMessage-body {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex: 1 1 auto;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: var(--a63-space-1);
|
|
44
|
+
min-width: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.a63-ChatMessage[data-role='user'] .a63-ChatMessage-body {
|
|
48
|
+
align-items: flex-end;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.a63-ChatMessage-content {
|
|
52
|
+
min-width: 0;
|
|
53
|
+
max-inline-size: 100%;
|
|
54
|
+
overflow-wrap: anywhere;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.a63-ChatMessage[data-appearance='bubble'] .a63-ChatMessage-content {
|
|
58
|
+
max-inline-size: min(100%, 36rem);
|
|
59
|
+
padding-block: var(--chat-message-bubble-padding-block);
|
|
60
|
+
padding-inline: var(--chat-message-bubble-padding-inline);
|
|
61
|
+
border-radius: var(--chat-message-bubble-radius);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.a63-ChatMessage[data-role='user'] .a63-ChatMessage-content {
|
|
65
|
+
max-inline-size: min(85%, 36rem);
|
|
66
|
+
background-color: var(--a63-surface-muted);
|
|
67
|
+
white-space: pre-wrap;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.a63-ChatMessage[data-role='assistant'][data-appearance='bubble'] .a63-ChatMessage-content {
|
|
71
|
+
border: var(--a63-control-border-width) solid var(--a63-border-subtle);
|
|
72
|
+
background-color: var(--a63-surface-panel);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.a63-ChatMessage-content > :first-child {
|
|
76
|
+
margin-block-start: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.a63-ChatMessage-content > :last-child {
|
|
80
|
+
margin-block-end: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.a63-ChatMessage-actions {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-wrap: wrap;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: var(--a63-space-1);
|
|
88
|
+
color: var(--a63-text-secondary);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.a63-ChatMessage[data-appearance='bubble'][data-role='assistant'] .a63-ChatMessage-actions {
|
|
92
|
+
padding-inline: var(--a63-space-1);
|
|
93
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ChatSteps recipe — the SURFACE archetype, on Collapsible. The trigger is a
|
|
3
|
+
* quiet text button in the secondary color; the list hangs under it with a
|
|
4
|
+
* hairline (--a63-border-subtle) joining the status icons. Status colors come
|
|
5
|
+
* from --a63-status-success and --a63-text-danger; pending and running stay
|
|
6
|
+
* secondary. Focus is an outline on :focus-visible.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-ChatSteps {
|
|
10
|
+
--chat-steps-icon-size: var(--a63-control-icon-size-sm);
|
|
11
|
+
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
color: var(--a63-text-secondary);
|
|
16
|
+
font-size: var(--typography-sm-font-size);
|
|
17
|
+
line-height: var(--typography-sm-line-height);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.a63-ChatSteps-trigger {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-self: flex-start;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: var(--a63-space-1_5);
|
|
25
|
+
min-block-size: var(--a63-control-min-size);
|
|
26
|
+
padding-block: var(--a63-space-1);
|
|
27
|
+
padding-inline: 0;
|
|
28
|
+
border: 0;
|
|
29
|
+
border-radius: var(--a63-control-radius);
|
|
30
|
+
background: transparent;
|
|
31
|
+
color: inherit;
|
|
32
|
+
font: inherit;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
text-align: start;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.a63-ChatSteps-trigger:hover {
|
|
38
|
+
color: var(--a63-text-primary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.a63-ChatSteps-trigger:focus-visible {
|
|
42
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
43
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
44
|
+
outline-offset: var(--a63-control-focus-ring-width);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.a63-ChatSteps-icon,
|
|
48
|
+
.a63-ChatSteps-trigger .a63-Collapsible-indicator {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
inline-size: var(--chat-steps-icon-size);
|
|
51
|
+
block-size: var(--chat-steps-icon-size);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.a63-ChatSteps-icon > svg {
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
block-size: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.a63-ChatSteps-list {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: var(--a63-space-2);
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding-block: var(--a63-space-2) var(--a63-space-1);
|
|
65
|
+
padding-inline: 0;
|
|
66
|
+
list-style: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.a63-ChatStep {
|
|
70
|
+
position: relative;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
gap: var(--a63-space-2);
|
|
74
|
+
min-width: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* The hairline from one status icon to the next. */
|
|
78
|
+
.a63-ChatStep:not(:last-child)::after {
|
|
79
|
+
content: '';
|
|
80
|
+
position: absolute;
|
|
81
|
+
inset-block: calc(var(--chat-steps-icon-size) + var(--a63-space-1)) calc(-1 * var(--a63-space-1));
|
|
82
|
+
inset-inline-start: calc(var(--chat-steps-icon-size) / 2);
|
|
83
|
+
border-inline-start: var(--a63-control-border-width) solid var(--a63-border-subtle);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.a63-ChatStep-icon {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
flex: none;
|
|
89
|
+
inline-size: var(--chat-steps-icon-size);
|
|
90
|
+
block-size: var(--chat-steps-icon-size);
|
|
91
|
+
margin-block-start: calc((1lh - var(--chat-steps-icon-size)) / 2);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.a63-ChatStep-icon > svg {
|
|
95
|
+
inline-size: 100%;
|
|
96
|
+
block-size: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.a63-ChatStep[data-status='complete'] .a63-ChatStep-icon {
|
|
100
|
+
color: var(--a63-status-success);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.a63-ChatStep[data-status='error'] .a63-ChatStep-icon {
|
|
104
|
+
color: var(--a63-text-danger);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.a63-ChatStep-body {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
min-width: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.a63-ChatStep[data-status='running'] .a63-ChatStep-title {
|
|
114
|
+
color: var(--a63-text-primary);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.a63-ChatStep-description {
|
|
118
|
+
overflow-wrap: anywhere;
|
|
119
|
+
font-size: var(--a63-control-font-size-xs);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.a63-ChatStep-sr-only {
|
|
123
|
+
position: absolute;
|
|
124
|
+
width: 1px;
|
|
125
|
+
height: 1px;
|
|
126
|
+
padding: 0;
|
|
127
|
+
margin: -1px;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
clip: rect(0, 0, 0, 0);
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
border-width: 0;
|
|
132
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ChatTypingIndicator recipe — the MARKER archetype. Three dots in the
|
|
3
|
+
* secondary text color, each fading and rising in turn over --duration-1500.
|
|
4
|
+
* Under prefers-reduced-motion the animation stops and the dots rest at
|
|
5
|
+
* three steps of opacity, so the indicator still reads as "in progress".
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.a63-ChatTypingIndicator {
|
|
9
|
+
--chat-typing-dot-size: var(--a63-space-2);
|
|
10
|
+
|
|
11
|
+
position: relative;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--a63-space-1);
|
|
15
|
+
min-block-size: var(--a63-space-6);
|
|
16
|
+
color: var(--a63-text-secondary);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.a63-ChatTypingIndicator-label {
|
|
20
|
+
position: absolute;
|
|
21
|
+
width: 1px;
|
|
22
|
+
height: 1px;
|
|
23
|
+
padding: 0;
|
|
24
|
+
margin: -1px;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
clip: rect(0, 0, 0, 0);
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
border-width: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.a63-ChatTypingIndicator-dot {
|
|
32
|
+
inline-size: var(--chat-typing-dot-size);
|
|
33
|
+
block-size: var(--chat-typing-dot-size);
|
|
34
|
+
border-radius: var(--radius-full);
|
|
35
|
+
background-color: currentColor;
|
|
36
|
+
opacity: 0.35;
|
|
37
|
+
animation: a63-chat-typing-dot var(--duration-1500) var(--ease-inout) infinite;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.a63-ChatTypingIndicator-dot:nth-child(2) {
|
|
41
|
+
animation-delay: calc(var(--duration-1500) / 6);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.a63-ChatTypingIndicator-dot:nth-child(3) {
|
|
45
|
+
animation-delay: calc(var(--duration-1500) / 3);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes a63-chat-typing-dot {
|
|
49
|
+
0%,
|
|
50
|
+
60%,
|
|
51
|
+
100% {
|
|
52
|
+
opacity: 0.35;
|
|
53
|
+
transform: translateY(0);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
30% {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
transform: translateY(calc(-0.5 * var(--chat-typing-dot-size)));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (prefers-reduced-motion: reduce) {
|
|
63
|
+
.a63-ChatTypingIndicator-dot {
|
|
64
|
+
animation: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.a63-ChatTypingIndicator-dot:nth-child(2) {
|
|
68
|
+
opacity: 0.6;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.a63-ChatTypingIndicator-dot:nth-child(3) {
|
|
72
|
+
opacity: 0.85;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Forced colors (Windows High Contrast) replace the dots' fill with Canvas,
|
|
77
|
+
which would hide the indicator's only visible content. */
|
|
78
|
+
@media (forced-colors: active) {
|
|
79
|
+
.a63-ChatTypingIndicator-dot {
|
|
80
|
+
background-color: CanvasText;
|
|
81
|
+
forced-color-adjust: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.a63-Checkbox {
|
|
10
10
|
--checkbox-size: 1.125rem;
|
|
11
11
|
--checkbox-accent: var(--a63-selection-accent, var(--a63-action-primary));
|
|
12
|
-
--checkbox-border: var(--a63-selection-border, var(--a63-border-
|
|
12
|
+
--checkbox-border: var(--a63-selection-border, var(--a63-border-input));
|
|
13
13
|
--checkbox-focus-ring: var(--a63-selection-focus-ring, var(--a63-focus-ring));
|
|
14
14
|
--checkbox-shadow: var(--a63-choice-box-shadow, none);
|
|
15
15
|
--checkbox-shadow-checked: var(--a63-choice-box-shadow-checked, var(--checkbox-shadow));
|
|
@@ -36,6 +36,19 @@
|
|
|
36
36
|
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/* indicator="hidden": a choice card shows the state, so the control stays in
|
|
40
|
+
the accessibility tree and the tab order but draws nothing. The card draws
|
|
41
|
+
the focus ring (field.css). */
|
|
42
|
+
.a63-Checkbox[data-indicator='hidden'] {
|
|
43
|
+
position: absolute;
|
|
44
|
+
width: 1px;
|
|
45
|
+
height: 1px;
|
|
46
|
+
margin: 0;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
clip-path: inset(50%);
|
|
49
|
+
opacity: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
39
52
|
.a63-Checkbox::after {
|
|
40
53
|
content: '';
|
|
41
54
|
position: absolute;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
/* ── Popup shell ───────────────────────────────────────────────────────── */
|
|
41
41
|
.a63-Command-popup {
|
|
42
42
|
--command-text-font-size: var(--a63-command-text-font-size, var(--a63-control-font-size-lg));
|
|
43
|
-
--command-panel-background: var(--a63-command-panel-background, var(--a63-surface-
|
|
43
|
+
--command-panel-background: var(--a63-command-panel-background, var(--a63-surface-recessed));
|
|
44
44
|
|
|
45
45
|
position: relative;
|
|
46
46
|
display: flex;
|
|
@@ -63,9 +63,6 @@
|
|
|
63
63
|
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
64
64
|
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
65
65
|
}
|
|
66
|
-
:is(.dark, [data-a63-mode='dark']) .a63-Command-popup {
|
|
67
|
-
--command-panel-background: var(--a63-command-panel-background, var(--a63-surface-page));
|
|
68
|
-
}
|
|
69
66
|
.a63-Command-popup[data-starting-style],
|
|
70
67
|
.a63-Command-popup[data-ending-style] {
|
|
71
68
|
opacity: 0;
|
|
@@ -92,6 +89,19 @@
|
|
|
92
89
|
flex: none;
|
|
93
90
|
color: var(--a63-text-secondary);
|
|
94
91
|
}
|
|
92
|
+
/* A caller's icon takes the built-in icon's size. */
|
|
93
|
+
.a63-Command-input-icon > :where(svg) {
|
|
94
|
+
width: 1.125rem;
|
|
95
|
+
height: 1.125rem;
|
|
96
|
+
}
|
|
97
|
+
/* After the field: a shortcut hint or a clear button. */
|
|
98
|
+
.a63-Command-input-end {
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
flex: none;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: var(--a63-space-1);
|
|
103
|
+
color: var(--a63-text-secondary);
|
|
104
|
+
}
|
|
95
105
|
.a63-Command-input {
|
|
96
106
|
flex: 1;
|
|
97
107
|
min-width: 0;
|
|
@@ -105,7 +115,7 @@
|
|
|
105
115
|
appearance: none;
|
|
106
116
|
}
|
|
107
117
|
.a63-Command-input::placeholder {
|
|
108
|
-
color: var(--a63-text-
|
|
118
|
+
color: var(--a63-text-tertiary);
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
/* ── Panel (scroll region) ─────────────────────────────────────────────── */
|
|
@@ -188,11 +198,31 @@
|
|
|
188
198
|
box-shadow: var(--a63-menu-highlight-shadow, none);
|
|
189
199
|
color: var(--a63-menu-highlight-foreground, var(--a63-text-primary));
|
|
190
200
|
}
|
|
201
|
+
/* Focus stays in the input, so the highlighted option is the keyboard target
|
|
202
|
+
(the one Enter runs). The fill alone is too faint to mark it (WCAG 1.4.11),
|
|
203
|
+
so it carries the inset focus ring too. */
|
|
204
|
+
.a63-Command-item[data-highlighted]:not([data-disabled]) {
|
|
205
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
206
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
207
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
208
|
+
}
|
|
191
209
|
.a63-Command-item[data-disabled] {
|
|
192
210
|
pointer-events: none;
|
|
193
211
|
opacity: var(--a63-menu-disabled-opacity, 0.56);
|
|
194
212
|
}
|
|
195
213
|
|
|
214
|
+
/* Forced colors (Windows High Contrast) drop the highlight fill, and focus stays
|
|
215
|
+
in the input, so the option Enter runs takes the system selection colours. */
|
|
216
|
+
@media (forced-colors: active) {
|
|
217
|
+
.a63-Command-item[data-highlighted] {
|
|
218
|
+
background-color: Highlight;
|
|
219
|
+
color: HighlightText;
|
|
220
|
+
}
|
|
221
|
+
.a63-Command-item[data-highlighted] :is(svg, .a63-Command-shortcut) {
|
|
222
|
+
color: HighlightText;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
196
226
|
/* ── Separator ─────────────────────────────────────────────────────────── */
|
|
197
227
|
.a63-Command-separator {
|
|
198
228
|
height: 1px;
|
|
@@ -99,15 +99,11 @@
|
|
|
99
99
|
.a63-ConnectedPanel[data-variant='button-group']:not([data-open])
|
|
100
100
|
> .a63-ButtonGroup
|
|
101
101
|
> [data-button] {
|
|
102
|
-
--button-background: var(--a63-
|
|
102
|
+
--button-background: var(--a63-control-outline-background);
|
|
103
103
|
--button-border-color: var(--a63-border-control);
|
|
104
104
|
--button-foreground: var(--a63-text-primary);
|
|
105
|
-
--button-state-hover-background:
|
|
106
|
-
|
|
107
|
-
var(--a63-surface-control-hover) 50%,
|
|
108
|
-
transparent
|
|
109
|
-
);
|
|
110
|
-
--button-state-hover-border-color: var(--a63-border-subtle);
|
|
105
|
+
--button-state-hover-background: var(--a63-control-outline-hover-background);
|
|
106
|
+
--button-state-hover-border-color: var(--a63-control-outline-hover-border);
|
|
111
107
|
--button-state-active-background: var(--button-state-hover-background);
|
|
112
108
|
--button-state-active-border-color: var(--button-state-hover-border-color);
|
|
113
109
|
|
|
@@ -122,17 +118,6 @@
|
|
|
122
118
|
border-inline-end-color: color-mix(in oklch, var(--a63-border-control) 65%, transparent);
|
|
123
119
|
}
|
|
124
120
|
|
|
125
|
-
:is(.dark, [data-a63-mode='dark'])
|
|
126
|
-
.a63-ConnectedPanel[data-variant='button-group']:not([data-open])
|
|
127
|
-
> .a63-ButtonGroup
|
|
128
|
-
> [data-button] {
|
|
129
|
-
--button-background: color-mix(in oklch, var(--a63-border-control) 32%, transparent);
|
|
130
|
-
--button-state-hover-background: color-mix(in oklch, var(--a63-border-control) 64%, transparent);
|
|
131
|
-
--button-state-hover-border-color: var(--a63-border-control);
|
|
132
|
-
--button-state-active-background: var(--button-state-hover-background);
|
|
133
|
-
--button-state-active-border-color: var(--button-state-hover-border-color);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
121
|
.a63-ConnectedPanel[data-variant='button-group']:not([data-open])
|
|
137
122
|
> .a63-ButtonGroup
|
|
138
123
|
> [data-button]:is(:hover, :active, [data-popup-open]):not(:disabled):not([data-disabled]) {
|
|
@@ -413,7 +398,7 @@
|
|
|
413
398
|
min-width: 0;
|
|
414
399
|
overflow: hidden;
|
|
415
400
|
color: var(--a63-text-secondary);
|
|
416
|
-
font-size: var(--a63-control-font-size-sm);
|
|
401
|
+
font-size: var(--a63-control-font-size-secondary, var(--a63-control-font-size-sm));
|
|
417
402
|
}
|
|
418
403
|
|
|
419
404
|
/* ── Body / Footer ─────────────────────────────────────────────────────── */
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DestinationLink recipe: an inline text link, drawn like the system's other
|
|
3
|
+
* links (field and empty descriptions, Button `link`): primary text with an
|
|
4
|
+
* underline, accent text on hover, and an outline focus ring. The indicator
|
|
5
|
+
* keeps a small gap before it and is not underlined.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.a63-DestinationLink {
|
|
9
|
+
border-radius: var(--radius-sm);
|
|
10
|
+
color: var(--a63-text-primary);
|
|
11
|
+
text-decoration: underline;
|
|
12
|
+
text-underline-offset: 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.a63-DestinationLink:hover {
|
|
16
|
+
color: var(--a63-text-accent);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.a63-DestinationLink:focus-visible {
|
|
20
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
21
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
22
|
+
outline-offset: 2px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.a63-DestinationLink [data-slot='destination-indicator'] {
|
|
26
|
+
margin-inline-start: var(--a63-space-1);
|
|
27
|
+
vertical-align: -0.125em;
|
|
28
|
+
}
|