@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
|
@@ -220,22 +220,40 @@
|
|
|
220
220
|
color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
.a63-NavigationMenu-link:focus-visible,
|
|
224
|
-
.a63-NavigationMenu-link[data-active] {
|
|
225
|
-
background: var(--a63-surface-muted);
|
|
226
|
-
}
|
|
227
223
|
@media (hover: hover) {
|
|
228
224
|
.a63-NavigationMenu-link:hover {
|
|
229
225
|
background: var(--a63-surface-muted);
|
|
230
226
|
}
|
|
231
227
|
}
|
|
232
228
|
|
|
229
|
+
/* Inset, as on the trigger: the content panel clips an outer ring. */
|
|
230
|
+
.a63-NavigationMenu-link:focus-visible {
|
|
231
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
232
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
233
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* The current page: a heavier label, so it reads apart from the hover fill. */
|
|
237
|
+
.a63-NavigationMenu-link[data-active] {
|
|
238
|
+
font-weight: 600;
|
|
239
|
+
}
|
|
240
|
+
|
|
233
241
|
.a63-NavigationMenu-link svg {
|
|
234
242
|
flex-shrink: 0;
|
|
235
243
|
width: 1rem;
|
|
236
244
|
height: 1rem;
|
|
237
245
|
}
|
|
238
246
|
|
|
247
|
+
/* Forced colors (Windows High Contrast): the open trigger and the current link
|
|
248
|
+
take the system selection colours; focus keeps its outline. */
|
|
249
|
+
@media (forced-colors: active) {
|
|
250
|
+
.a63-NavigationMenu-trigger[data-popup-open],
|
|
251
|
+
.a63-NavigationMenu-link[data-active] {
|
|
252
|
+
background-color: Highlight;
|
|
253
|
+
color: HighlightText;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
239
257
|
/* ── Indicator (arrow) ─────────────────────────────────────────────────── */
|
|
240
258
|
|
|
241
259
|
.a63-NavigationMenu-indicator {
|
|
@@ -74,3 +74,17 @@
|
|
|
74
74
|
.a63-PanelSettingButton[data-active] .a63-PanelSettingButton-label {
|
|
75
75
|
color: var(--a63-text-primary);
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
/* Forced colors turn the active tint and border into the same system colours as
|
|
79
|
+
an inactive tile, so the active tile takes the system selection colours. */
|
|
80
|
+
@media (forced-colors: active) {
|
|
81
|
+
.a63-Button.a63-PanelSettingButton[data-active] {
|
|
82
|
+
--button-background: Highlight;
|
|
83
|
+
--button-foreground: HighlightText;
|
|
84
|
+
--button-state-hover-background: Highlight;
|
|
85
|
+
--button-state-active-background: Highlight;
|
|
86
|
+
}
|
|
87
|
+
.a63-PanelSettingButton[data-active] .a63-PanelSettingButton-label {
|
|
88
|
+
color: HighlightText;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -33,14 +33,24 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.a63-Progress-indicator {
|
|
36
|
+
--progress-fill: var(--a63-action-primary);
|
|
37
|
+
|
|
36
38
|
height: 100%;
|
|
37
|
-
background-color: var(--
|
|
39
|
+
background-color: var(--progress-fill);
|
|
38
40
|
background-image: var(--a63-control-gloss, none);
|
|
39
41
|
transition:
|
|
40
42
|
transform var(--duration-slow) var(--a63-motion-ease-standard),
|
|
41
43
|
width var(--duration-slow) var(--a63-motion-ease-standard);
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
/* tone="neutral": the primary text colour on a muted track. */
|
|
47
|
+
.a63-Progress[data-tone='neutral'] .a63-Progress-track {
|
|
48
|
+
background-color: var(--a63-surface-muted);
|
|
49
|
+
}
|
|
50
|
+
.a63-Progress[data-tone='neutral'] .a63-Progress-indicator {
|
|
51
|
+
--progress-fill: var(--a63-text-primary);
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
.a63-Progress-indicator[data-indeterminate] {
|
|
45
55
|
width: 40%;
|
|
46
56
|
animation: a63-progress-indeterminate var(--duration-slower) linear infinite;
|
|
@@ -67,4 +77,24 @@
|
|
|
67
77
|
animation: none;
|
|
68
78
|
transition: none;
|
|
69
79
|
}
|
|
80
|
+
/* A still 40% bar would read as 40% done. Without the sweep, the unknown
|
|
81
|
+
amount fills the whole track with stripes instead. */
|
|
82
|
+
.a63-Progress-indicator[data-indeterminate] {
|
|
83
|
+
width: 100%;
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
background-image: repeating-linear-gradient(
|
|
86
|
+
-45deg,
|
|
87
|
+
var(--progress-fill) 0 0.25rem,
|
|
88
|
+
transparent 0.25rem 0.5rem
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Forced colors replace the fill with the track colour and drop the stripes,
|
|
94
|
+
so the indicator paints itself in the system selection colour. */
|
|
95
|
+
@media (forced-colors: active) {
|
|
96
|
+
.a63-Progress[data-tone] .a63-Progress-indicator {
|
|
97
|
+
--progress-fill: Highlight;
|
|
98
|
+
forced-color-adjust: none;
|
|
99
|
+
}
|
|
70
100
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Radio recipe — the SELECTION archetype's 3rd consumer (after Switch + Checkbox).
|
|
3
3
|
* `.a63-Radio` is the circular box; `.a63-Radio-indicator` fills with the shared
|
|
4
|
-
* --a63-selection-accent and shows a centered dot. Circular (`--radius-
|
|
4
|
+
* --a63-selection-accent and shows a centered dot. Circular (`--radius-pill`) with a
|
|
5
5
|
* dot is the only difference from Checkbox. `.a63-RadioGroup` stacks items.
|
|
6
6
|
* Axis-dependent selection tokens resolve here via var(--a63-selection-X, <semantic>).
|
|
7
7
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
.a63-Radio {
|
|
16
16
|
--radio-size: 1.125rem;
|
|
17
17
|
--radio-accent: var(--a63-selection-accent, var(--a63-action-primary));
|
|
18
|
-
--radio-border: var(--a63-selection-border, var(--a63-border-
|
|
18
|
+
--radio-border: var(--a63-selection-border, var(--a63-border-input));
|
|
19
19
|
--radio-focus-ring: var(--a63-selection-focus-ring, var(--a63-focus-ring));
|
|
20
20
|
--radio-shadow: var(--a63-choice-box-shadow, none);
|
|
21
21
|
--radio-shadow-checked: var(--a63-choice-box-shadow-checked, var(--radio-shadow));
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
height: var(--radio-size);
|
|
32
32
|
margin: max(0px, calc((var(--a63-control-min-target) - var(--radio-size)) / 2));
|
|
33
33
|
border: var(--a63-control-border-width) solid var(--radio-border);
|
|
34
|
-
border-radius: var(--radius-
|
|
34
|
+
border-radius: var(--radius-pill);
|
|
35
35
|
background-color: var(--a63-surface-control);
|
|
36
36
|
box-shadow: var(--radio-shadow);
|
|
37
37
|
cursor: pointer;
|
|
@@ -42,6 +42,19 @@
|
|
|
42
42
|
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/* indicator="hidden": a choice card shows the state, so the control stays in
|
|
46
|
+
the accessibility tree and the tab order but draws nothing. The card draws
|
|
47
|
+
the focus ring (field.css). */
|
|
48
|
+
.a63-Radio[data-indicator='hidden'] {
|
|
49
|
+
position: absolute;
|
|
50
|
+
width: 1px;
|
|
51
|
+
height: 1px;
|
|
52
|
+
margin: 0;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
clip-path: inset(50%);
|
|
55
|
+
opacity: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
45
58
|
.a63-Radio::after {
|
|
46
59
|
content: '';
|
|
47
60
|
position: absolute;
|
|
@@ -57,7 +70,7 @@
|
|
|
57
70
|
display: flex;
|
|
58
71
|
align-items: center;
|
|
59
72
|
justify-content: center;
|
|
60
|
-
border-radius: var(--radius-
|
|
73
|
+
border-radius: var(--radius-pill);
|
|
61
74
|
}
|
|
62
75
|
.a63-Radio-indicator[data-unchecked] {
|
|
63
76
|
display: none;
|
|
@@ -66,7 +79,7 @@
|
|
|
66
79
|
content: '';
|
|
67
80
|
width: 0.5rem;
|
|
68
81
|
height: 0.5rem;
|
|
69
|
-
border-radius: var(--radius-
|
|
82
|
+
border-radius: var(--radius-pill);
|
|
70
83
|
background-color: var(--a63-action-primary-foreground);
|
|
71
84
|
}
|
|
72
85
|
|
|
@@ -108,6 +121,20 @@
|
|
|
108
121
|
height: 0.4375rem;
|
|
109
122
|
}
|
|
110
123
|
|
|
124
|
+
/* Forced colors turn the accent fill and the dot into the same system colour as
|
|
125
|
+
an unchecked radio, so a checked radio takes the system selection colours. */
|
|
126
|
+
@media (forced-colors: active) {
|
|
127
|
+
.a63-Radio[data-checked] {
|
|
128
|
+
border-color: Highlight;
|
|
129
|
+
}
|
|
130
|
+
.a63-Radio[data-checked] .a63-Radio-indicator {
|
|
131
|
+
background-color: Highlight;
|
|
132
|
+
}
|
|
133
|
+
.a63-Radio-indicator::before {
|
|
134
|
+
background-color: HighlightText;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
111
138
|
@media (prefers-reduced-motion: reduce) {
|
|
112
139
|
.a63-Radio {
|
|
113
140
|
transition: none;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Rating recipe — the CHOICE archetype. Stars are the caller's or lucide's
|
|
3
|
+
* glyph in two colors: the amber category color when on, a faint text color
|
|
4
|
+
* when off. A read-only star stacks a filled copy over an empty one and clips
|
|
5
|
+
* it to --rating-fill from the inline start, so halves mirror in right-to-left
|
|
6
|
+
* languages. Input stars are radios; the ring is on :focus-visible.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-Rating {
|
|
10
|
+
--rating-size: 1.25rem;
|
|
11
|
+
--rating-on: var(--a63-category-amber);
|
|
12
|
+
--rating-off: color-mix(in oklch, var(--a63-text-secondary) 35%, transparent);
|
|
13
|
+
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: var(--a63-space-0_5);
|
|
17
|
+
color: var(--rating-off);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* The input form is a RadioGroup, which stacks its items; keep the stars in a row. */
|
|
21
|
+
.a63-RadioGroup.a63-Rating {
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
gap: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.a63-Rating[data-size='sm'] {
|
|
27
|
+
--rating-size: 1rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.a63-Rating-item {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
width: var(--rating-size);
|
|
34
|
+
height: var(--rating-size);
|
|
35
|
+
flex: none;
|
|
36
|
+
padding: 0;
|
|
37
|
+
border: 0;
|
|
38
|
+
border-radius: var(--radius-sm);
|
|
39
|
+
background: transparent;
|
|
40
|
+
color: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.a63-Rating-icon {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
width: var(--rating-size);
|
|
46
|
+
height: var(--rating-size);
|
|
47
|
+
}
|
|
48
|
+
.a63-Rating-icon > :where(svg) {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
fill: currentColor;
|
|
52
|
+
stroke: currentColor;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Read-only: the filled copy, clipped to the star's share of the score. */
|
|
56
|
+
.a63-Rating-icon--filled {
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset-block: 0;
|
|
59
|
+
inset-inline-start: 0;
|
|
60
|
+
width: var(--rating-fill);
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
color: var(--rating-on);
|
|
63
|
+
}
|
|
64
|
+
.a63-Rating-icon--filled > :where(svg) {
|
|
65
|
+
width: var(--rating-size);
|
|
66
|
+
min-width: var(--rating-size);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Input: each star is a radio at least the minimum target in size (WCAG
|
|
70
|
+
2.5.8), with the glyph centered. A star is on up to the value, and up to the
|
|
71
|
+
hovered star. */
|
|
72
|
+
.a63-Rating:not([data-read-only]) .a63-Rating-item {
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
width: max(var(--rating-size), var(--a63-control-min-target));
|
|
76
|
+
height: max(var(--rating-size), var(--a63-control-min-target));
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
transition: color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
79
|
+
}
|
|
80
|
+
.a63-Rating-item[data-on] {
|
|
81
|
+
color: var(--rating-on);
|
|
82
|
+
}
|
|
83
|
+
.a63-Rating:not([data-read-only], [data-disabled]):has(.a63-Rating-item:hover) .a63-Rating-item {
|
|
84
|
+
color: var(--rating-on);
|
|
85
|
+
}
|
|
86
|
+
.a63-Rating:not([data-read-only], [data-disabled]) .a63-Rating-item:hover ~ .a63-Rating-item {
|
|
87
|
+
color: var(--rating-off);
|
|
88
|
+
}
|
|
89
|
+
.a63-Rating-item:focus-visible {
|
|
90
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
91
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
92
|
+
outline-offset: 2px;
|
|
93
|
+
}
|
|
94
|
+
.a63-Rating[data-disabled] .a63-Rating-item {
|
|
95
|
+
cursor: not-allowed;
|
|
96
|
+
opacity: 0.56;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (prefers-reduced-motion: reduce) {
|
|
100
|
+
.a63-Rating-item {
|
|
101
|
+
transition: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Forced colors map the on and off colours to one system colour. On stars take
|
|
106
|
+
the system selection colour, and off stars draw as outlines, so the score
|
|
107
|
+
reads by shape as well as colour. */
|
|
108
|
+
@media (forced-colors: active) {
|
|
109
|
+
.a63-Rating {
|
|
110
|
+
--rating-on: Highlight;
|
|
111
|
+
--rating-off: CanvasText;
|
|
112
|
+
}
|
|
113
|
+
.a63-Rating-icon > :where(svg) {
|
|
114
|
+
fill: none;
|
|
115
|
+
}
|
|
116
|
+
.a63-Rating-icon--filled > :where(svg),
|
|
117
|
+
.a63-Rating-item[data-on] .a63-Rating-icon > :where(svg) {
|
|
118
|
+
fill: currentColor;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -74,18 +74,23 @@
|
|
|
74
74
|
transition: opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.a63-ScrollableList-control[data-side='
|
|
78
|
-
|
|
77
|
+
.a63-ScrollableList-control[data-side='start'] {
|
|
78
|
+
inset-inline-start: var(--scrollable-list-control-inset);
|
|
79
79
|
justify-content: flex-start;
|
|
80
80
|
padding-inline-start: var(--scrollable-list-inset);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.a63-ScrollableList-control[data-side='
|
|
84
|
-
|
|
83
|
+
.a63-ScrollableList-control[data-side='end'] {
|
|
84
|
+
inset-inline-end: var(--scrollable-list-control-inset);
|
|
85
85
|
justify-content: flex-end;
|
|
86
86
|
padding-inline-end: var(--scrollable-list-inset);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/* The icons point left (start) and right (end); mirror them in right-to-left layouts. */
|
|
90
|
+
.a63-ScrollableList-control:dir(rtl) svg {
|
|
91
|
+
scale: -1 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
.a63-ScrollableList-control[data-visible] {
|
|
90
95
|
opacity: 1;
|
|
91
96
|
}
|
|
@@ -106,7 +111,7 @@
|
|
|
106
111
|
pointer-events: auto;
|
|
107
112
|
/* Round the control into a circle (its icon-lg size already picks up the
|
|
108
113
|
shape-fitting Aqua gloss from button.css). */
|
|
109
|
-
border-radius: var(--a63-overlay-radius, var(--radius-
|
|
114
|
+
border-radius: var(--a63-overlay-radius, var(--radius-pill, 9999px));
|
|
110
115
|
/* Frosted-glass SURFACE (macOS/Aqua vibrancy). The plain `secondary` chip
|
|
111
116
|
blended because it was translucent WITHOUT enough blur/edge to define it;
|
|
112
117
|
this earns its figure/ground: blur+saturate frosts busy content behind it
|
|
@@ -234,6 +234,20 @@
|
|
|
234
234
|
min-width: var(--a63-control-min-target-lg, var(--a63-control-min-target));
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
/* Forced colors (Windows High Contrast) drop the plate's fill and shadow and
|
|
238
|
+
the selected label colour, so the selected segment takes the system
|
|
239
|
+
selection colours. */
|
|
240
|
+
@media (forced-colors: active) {
|
|
241
|
+
.a63-SegmentedControl-indicator,
|
|
242
|
+
.a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-indicator {
|
|
243
|
+
background-color: Highlight;
|
|
244
|
+
}
|
|
245
|
+
.a63-SegmentedControl-item[data-active],
|
|
246
|
+
.a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-item[data-active] {
|
|
247
|
+
color: HighlightText;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
237
251
|
@media (prefers-reduced-motion: reduce) {
|
|
238
252
|
.a63-SegmentedControl-item,
|
|
239
253
|
.a63-SegmentedControl-indicator {
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
.a63-Select-trigger {
|
|
10
10
|
--select-background: var(--a63-field-background, var(--a63-surface-control));
|
|
11
|
-
--select-border: var(--a63-field-border, var(--a63-border-
|
|
11
|
+
--select-border: var(--a63-field-border, var(--a63-border-input));
|
|
12
12
|
--select-radius: var(--a63-field-radius, var(--a63-control-radius));
|
|
13
13
|
--select-shadow: var(--a63-field-shadow);
|
|
14
14
|
--select-focus-ring: var(--a63-field-focus-ring, var(--a63-focus-ring));
|
|
15
15
|
--select-focus-border: var(
|
|
16
16
|
--a63-field-focus-border,
|
|
17
|
-
color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-
|
|
17
|
+
color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-input))
|
|
18
18
|
);
|
|
19
19
|
/* Content floor — see button.css for the full rationale. */
|
|
20
20
|
--select-content-lh: var(--typography-sm-line-height);
|
|
@@ -68,6 +68,14 @@
|
|
|
68
68
|
outline: var(--a63-control-focus-ring-width) solid var(--select-focus-ring);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
/* Invalid: the same danger edge as .a63-Input[data-invalid] (input.css). */
|
|
72
|
+
.a63-Select-trigger[data-invalid],
|
|
73
|
+
.a63-Select-trigger[aria-invalid='true'] {
|
|
74
|
+
--select-border: color-mix(in oklch, var(--a63-action-danger) 62%, transparent);
|
|
75
|
+
--select-focus-border: var(--a63-action-danger);
|
|
76
|
+
--select-focus-ring: color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
|
|
77
|
+
}
|
|
78
|
+
|
|
71
79
|
.a63-Select-trigger[data-disabled] {
|
|
72
80
|
cursor: not-allowed;
|
|
73
81
|
opacity: 0.56;
|
|
@@ -108,7 +116,7 @@
|
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
.a63-Select-value[data-placeholder] {
|
|
111
|
-
color: var(--a63-text-
|
|
119
|
+
color: var(--a63-text-tertiary);
|
|
112
120
|
}
|
|
113
121
|
|
|
114
122
|
.a63-Select-icon {
|
|
@@ -15,10 +15,12 @@
|
|
|
15
15
|
width: 100%;
|
|
16
16
|
height: 1px;
|
|
17
17
|
}
|
|
18
|
+
/* No percentage height: it would stop the flex stretch and collapse to 0 in a
|
|
19
|
+
row without a set height. The floor keeps it visible outside a stretching row. */
|
|
18
20
|
.a63-Separator[data-orientation='vertical'] {
|
|
19
21
|
align-self: stretch;
|
|
20
22
|
width: 1px;
|
|
21
|
-
|
|
23
|
+
min-block-size: 1em;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
/* ── Gradient fade ─────────────────────────────────────────────────────── */
|
|
@@ -42,13 +42,17 @@
|
|
|
42
42
|
grid-template-rows: auto 1fr;
|
|
43
43
|
padding-bottom: max(3rem, var(--a63-safe-area-bottom, 0px));
|
|
44
44
|
}
|
|
45
|
+
/* `left` and `right` are physical screen edges, in right-to-left pages too: the
|
|
46
|
+
placement, the entrance translate, the safe-area padding and the inner border
|
|
47
|
+
all name the same edge. `justify-content: left/right` is physical, where
|
|
48
|
+
flex-start/flex-end would follow the text direction. */
|
|
45
49
|
.a63-Sheet-viewport[data-side='left'] {
|
|
46
50
|
display: flex;
|
|
47
|
-
justify-content:
|
|
51
|
+
justify-content: left;
|
|
48
52
|
}
|
|
49
53
|
.a63-Sheet-viewport[data-side='right'] {
|
|
50
54
|
display: flex;
|
|
51
|
-
justify-content:
|
|
55
|
+
justify-content: right;
|
|
52
56
|
}
|
|
53
57
|
@media (min-width: 640px) {
|
|
54
58
|
.a63-Sheet-viewport[data-variant='inset'] {
|
|
@@ -105,7 +109,7 @@
|
|
|
105
109
|
width: calc(100% - 3rem);
|
|
106
110
|
max-width: 28rem;
|
|
107
111
|
padding-left: var(--a63-safe-area-left, 0px);
|
|
108
|
-
border-
|
|
112
|
+
border-right-width: var(--a63-control-border-width);
|
|
109
113
|
}
|
|
110
114
|
.a63-Sheet-popup[data-side='left'][data-starting-style],
|
|
111
115
|
.a63-Sheet-popup[data-side='left'][data-ending-style] {
|
|
@@ -116,7 +120,7 @@
|
|
|
116
120
|
width: calc(100% - 3rem);
|
|
117
121
|
max-width: 28rem;
|
|
118
122
|
padding-right: var(--a63-safe-area-right, 0px);
|
|
119
|
-
border-
|
|
123
|
+
border-left-width: var(--a63-control-border-width);
|
|
120
124
|
}
|
|
121
125
|
.a63-Sheet-popup[data-side='right'][data-starting-style],
|
|
122
126
|
.a63-Sheet-popup[data-side='right'][data-ending-style] {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* surface: it sits on the muted surface in light mode and collapses onto the
|
|
8
8
|
* page surface in dark mode. The other sidebar vars alias-back onto canonical
|
|
9
9
|
* semantics. Local aliases keep the recipe reading one vocabulary:
|
|
10
|
-
* sidebar bg → --a63-surface-muted
|
|
10
|
+
* sidebar bg → --a63-surface-sidebar (muted in light, page in dark)
|
|
11
11
|
* sidebar foreground → --a63-text-primary
|
|
12
12
|
* sidebar accent → --a63-surface-control-hover
|
|
13
13
|
* sidebar accent fg → --a63-text-primary
|
|
@@ -16,23 +16,28 @@
|
|
|
16
16
|
* background (inset/input) → --a63-surface-page
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/*
|
|
20
|
+
* A custom property that names another one is resolved where it is declared, so
|
|
21
|
+
* aliases declared on the wrapper would keep the wrapper's mode inside a nested
|
|
22
|
+
* mode scope (a dark sidebar on a light app: <UIProvider mode="dark"><Sidebar>).
|
|
23
|
+
* Every UIProvider or Atom63Theme scope inside the wrapper declares them again
|
|
24
|
+
* and resolves them for its own mode.
|
|
25
|
+
*/
|
|
26
|
+
.a63-Sidebar-wrapper,
|
|
27
|
+
.a63-Sidebar-wrapper :is(.a63-UIProvider, .a63-Atom63Theme) {
|
|
28
|
+
--sidebar-bg: var(--a63-surface-sidebar);
|
|
21
29
|
--sidebar-fg: var(--a63-text-primary);
|
|
22
30
|
--sidebar-accent: var(--a63-surface-control-hover);
|
|
23
31
|
--sidebar-accent-fg: var(--a63-text-primary);
|
|
24
32
|
--sidebar-border: var(--a63-border-subtle);
|
|
25
33
|
--sidebar-ring: var(--a63-focus-ring);
|
|
34
|
+
}
|
|
26
35
|
|
|
36
|
+
.a63-Sidebar-wrapper {
|
|
27
37
|
display: flex;
|
|
28
38
|
min-height: 100svh;
|
|
29
39
|
width: 100%;
|
|
30
40
|
}
|
|
31
|
-
/* shadcn's dark sidebar collapses onto the page surface (mirrors shadcn.css). */
|
|
32
|
-
.a63-Sidebar-wrapper:is(.dark, [data-a63-mode='dark']),
|
|
33
|
-
:is(.dark, [data-a63-mode='dark']) .a63-Sidebar-wrapper {
|
|
34
|
-
--sidebar-bg: var(--a63-surface-page);
|
|
35
|
-
}
|
|
36
41
|
.a63-Sidebar-wrapper:has([data-variant='inset']) {
|
|
37
42
|
background-color: var(--sidebar-bg);
|
|
38
43
|
}
|
|
@@ -61,14 +66,14 @@
|
|
|
61
66
|
/*
|
|
62
67
|
* Mobile drawer body (rendered inside Sheet).
|
|
63
68
|
*
|
|
64
|
-
*
|
|
65
|
-
* .a63-Sidebar-wrapper and inherits none of the
|
|
66
|
-
* there. They
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
+
* Without a PortalContainerProvider, the Sheet portals to <body>, so the drawer
|
|
70
|
+
* is NOT a descendant of .a63-Sidebar-wrapper and inherits none of the
|
|
71
|
+
* --sidebar-* aliases declared there. They stay redeclared locally so the body
|
|
72
|
+
* fallback remains complete; a scoped portal can additionally inherit the dark
|
|
73
|
+
* region's token values.
|
|
69
74
|
*/
|
|
70
75
|
.a63-Sidebar-mobile {
|
|
71
|
-
--sidebar-bg: var(--a63-surface-
|
|
76
|
+
--sidebar-bg: var(--a63-surface-sidebar);
|
|
72
77
|
--sidebar-fg: var(--a63-text-primary);
|
|
73
78
|
--sidebar-accent: var(--a63-surface-control-hover);
|
|
74
79
|
--sidebar-accent-fg: var(--a63-text-primary);
|
|
@@ -80,11 +85,6 @@
|
|
|
80
85
|
background-color: var(--sidebar-bg);
|
|
81
86
|
color: var(--sidebar-fg);
|
|
82
87
|
}
|
|
83
|
-
/* Mirrors the wrapper's dark override; the portal sits outside it. */
|
|
84
|
-
.a63-Sidebar-mobile:is(.dark, [data-a63-mode='dark']),
|
|
85
|
-
:is(.dark, [data-a63-mode='dark']) .a63-Sidebar-mobile {
|
|
86
|
-
--sidebar-bg: var(--a63-surface-page);
|
|
87
|
-
}
|
|
88
88
|
/* Must out-specify .a63-Sheet-popup[data-side='…'], which sets its own width. */
|
|
89
89
|
.a63-Sidebar-mobile[data-mobile='true'] {
|
|
90
90
|
width: var(--sidebar-width);
|
|
@@ -415,12 +415,13 @@
|
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
/* ── Menu ────────────────────────────────────────────────────────────────── */
|
|
418
|
+
/* Rows sit 2px apart (a 32px button, a 34px pitch), as SidebarNavTree rows do. */
|
|
418
419
|
.a63-Sidebar-menu {
|
|
419
420
|
display: flex;
|
|
420
421
|
width: 100%;
|
|
421
422
|
min-width: 0;
|
|
422
423
|
flex-direction: column;
|
|
423
|
-
gap: var(--a63-space-
|
|
424
|
+
gap: var(--a63-space-0_5);
|
|
424
425
|
}
|
|
425
426
|
|
|
426
427
|
.a63-Sidebar-menu-item {
|
|
@@ -467,6 +468,17 @@
|
|
|
467
468
|
color: var(--sidebar-accent-fg);
|
|
468
469
|
font-weight: 500;
|
|
469
470
|
}
|
|
471
|
+
/* tone="accent" opts the active item into the primary wash with accent text.
|
|
472
|
+
The wash is laid over the page surface, where its contrast is tested, since
|
|
473
|
+
the muted sidebar surface under it would leave accent text below 4.5:1. */
|
|
474
|
+
.a63-Sidebar-menu-button[data-active='true'][data-tone='accent'] {
|
|
475
|
+
background-color: var(--a63-surface-page);
|
|
476
|
+
background-image: linear-gradient(
|
|
477
|
+
var(--a63-selected-accent-background),
|
|
478
|
+
var(--a63-selected-accent-background)
|
|
479
|
+
);
|
|
480
|
+
color: var(--a63-selected-accent-foreground);
|
|
481
|
+
}
|
|
470
482
|
.a63-Sidebar-menu-button > span:last-child {
|
|
471
483
|
overflow: hidden;
|
|
472
484
|
text-overflow: ellipsis;
|
|
@@ -512,7 +524,8 @@
|
|
|
512
524
|
color: var(--sidebar-accent-fg);
|
|
513
525
|
box-shadow: 0 0 0 1px var(--sidebar-accent);
|
|
514
526
|
}
|
|
515
|
-
/* collapsed icon rail: square the button + hide labels
|
|
527
|
+
/* collapsed icon rail: square the button + hide labels visually (they stay
|
|
528
|
+
the button's accessible name) */
|
|
516
529
|
.a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-menu-button {
|
|
517
530
|
margin-inline: auto;
|
|
518
531
|
width: max(
|
|
@@ -533,14 +546,20 @@
|
|
|
533
546
|
.a63-Sidebar-root[data-collapsible='icon']
|
|
534
547
|
.a63-Sidebar-menu-button
|
|
535
548
|
> span:not(.a63-Sidebar-sr-only) {
|
|
536
|
-
|
|
549
|
+
position: absolute;
|
|
550
|
+
width: 1px;
|
|
551
|
+
height: 1px;
|
|
552
|
+
margin: -1px;
|
|
553
|
+
overflow: hidden;
|
|
554
|
+
clip-path: inset(50%);
|
|
555
|
+
white-space: nowrap;
|
|
537
556
|
}
|
|
538
557
|
|
|
539
558
|
/* ── Menu action ─────────────────────────────────────────────────────────── */
|
|
540
559
|
.a63-Sidebar-menu-action {
|
|
541
560
|
position: absolute;
|
|
542
561
|
top: 50%;
|
|
543
|
-
|
|
562
|
+
inset-inline-end: 0;
|
|
544
563
|
display: flex;
|
|
545
564
|
aspect-ratio: 1 / 1;
|
|
546
565
|
width: var(--a63-control-min-target);
|
|
@@ -590,7 +609,7 @@
|
|
|
590
609
|
.a63-Sidebar-menu-badge {
|
|
591
610
|
pointer-events: none;
|
|
592
611
|
position: absolute;
|
|
593
|
-
|
|
612
|
+
inset-inline-end: 0.25rem;
|
|
594
613
|
display: flex;
|
|
595
614
|
height: 1.25rem;
|
|
596
615
|
min-width: 1.25rem;
|
|
@@ -608,6 +627,9 @@
|
|
|
608
627
|
.a63-Sidebar-menu-button:hover ~ .a63-Sidebar-menu-badge {
|
|
609
628
|
color: var(--sidebar-accent-fg);
|
|
610
629
|
}
|
|
630
|
+
.a63-Sidebar-menu-button[data-active='true'][data-tone='accent'] ~ .a63-Sidebar-menu-badge {
|
|
631
|
+
color: var(--a63-selected-accent-foreground);
|
|
632
|
+
}
|
|
611
633
|
.a63-Sidebar-menu-button[data-size='sm'] ~ .a63-Sidebar-menu-badge {
|
|
612
634
|
top: 0.25rem;
|
|
613
635
|
}
|
|
@@ -695,6 +717,14 @@
|
|
|
695
717
|
background-color: var(--sidebar-accent);
|
|
696
718
|
color: var(--sidebar-accent-fg);
|
|
697
719
|
}
|
|
720
|
+
.a63-Sidebar-menu-sub-button[data-active='true'][data-tone='accent'] {
|
|
721
|
+
background-color: var(--a63-surface-page);
|
|
722
|
+
background-image: linear-gradient(
|
|
723
|
+
var(--a63-selected-accent-background),
|
|
724
|
+
var(--a63-selected-accent-background)
|
|
725
|
+
);
|
|
726
|
+
color: var(--a63-selected-accent-foreground);
|
|
727
|
+
}
|
|
698
728
|
.a63-Sidebar-menu-sub-button > span:last-child {
|
|
699
729
|
overflow: hidden;
|
|
700
730
|
text-overflow: ellipsis;
|