@atom63/ui-react 0.2.0-beta.1 → 0.2.0-beta.10
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/LICENSE +21 -0
- package/README.md +54 -50
- package/dist/{button-sktq-nvV.d.ts → button-CfLIHg-R.d.ts} +1 -1
- package/dist/chunk-GDUMA6FI.js +2678 -0
- package/dist/chunk-GDUMA6FI.js.map +1 -0
- package/dist/{chunk-STCXERLM.js → chunk-J77BAGTA.js} +8 -148
- package/dist/chunk-J77BAGTA.js.map +1 -0
- package/dist/chunk-NBHGMMQN.js +135 -0
- package/dist/chunk-NBHGMMQN.js.map +1 -0
- package/dist/{chunk-7VSPECOH.js → chunk-R67OZVA2.js} +4 -14
- package/dist/chunk-R67OZVA2.js.map +1 -0
- package/dist/chunk-UPPHQLZ2.js +18 -0
- package/dist/chunk-UPPHQLZ2.js.map +1 -0
- package/dist/{chunk-MXNO63TC.js → chunk-X5L5DEUZ.js} +597 -290
- package/dist/chunk-X5L5DEUZ.js.map +1 -0
- package/dist/{destination-link-C9NKeKLe.d.ts → destination-link-DMLeR-oF.d.ts} +1 -1
- package/dist/index-BDzW8upQ.d.ts +442 -0
- package/dist/index.d.ts +56 -454
- package/dist/index.js +402 -2987
- package/dist/index.js.map +1 -1
- package/dist/layout/index.js +4 -4
- package/dist/layout/index.js.map +1 -1
- package/dist/media/index.d.ts +15 -4
- package/dist/media/index.js +213 -46
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-lightbox/parts/index.d.ts +23 -15
- package/dist/media/media-lightbox/parts/index.js +3 -2
- package/dist/preview/index.d.ts +16 -0
- package/dist/preview/index.js +6 -0
- package/dist/preview/index.js.map +1 -0
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +81 -36
- package/dist/theme/index.js.map +1 -1
- package/package.json +31 -27
- package/src/components/accordion/accordion.css +2 -4
- package/src/components/alert-dialog/alert-dialog.css +1 -1
- package/src/components/autocomplete/autocomplete.css +3 -7
- package/src/components/badge/badge.css +5 -8
- package/src/components/breadcrumb/breadcrumb.css +1 -2
- package/src/components/button/button.css +8 -6
- package/src/components/button-group/button-group.css +17 -1
- package/src/components/calendar/calendar.css +5 -8
- package/src/components/card/card.css +2 -2
- package/src/components/carousel/carousel.css +4 -8
- package/src/components/checkbox/checkbox.css +1 -1
- package/src/components/command/command.css +8 -0
- package/src/components/connected-panel/connected-panel.css +3 -2
- package/src/components/dialog/dialog.css +1 -1
- package/src/components/drawer/drawer.css +1 -1
- package/src/components/empty/empty.css +2 -2
- package/src/components/feedback-state/feedback-state.css +1 -1
- package/src/components/field/field.css +4 -4
- package/src/components/form/form.css +2 -2
- package/src/components/input/input.css +2 -6
- package/src/components/input-otp/input-otp.css +4 -11
- package/src/components/item/item.css +3 -3
- package/src/components/menu/menu.css +5 -4
- package/src/components/menubar/menubar.css +4 -1
- package/src/components/navigation-menu/navigation-menu.css +5 -1
- package/src/components/panel-setting-button/panel-setting-button.css +1 -1
- package/src/components/radio/radio.css +1 -1
- package/src/components/resizable/resizable.css +1 -1
- package/src/components/scroll-area/scroll-area.css +1 -2
- package/src/components/segmented-control/segmented-control.css +8 -1
- package/src/components/select/select.css +2 -6
- package/src/components/sidebar/sidebar.css +12 -12
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +8 -8
- package/src/components/slider/slider.css +6 -6
- package/src/components/switch/switch.css +3 -3
- package/src/components/table/table.css +7 -1
- package/src/components/tabs/tabs.css +15 -1
- package/src/components/textarea/textarea.css +2 -6
- package/src/components/toggle/toggle.css +5 -4
- package/src/components/toggle-group/toggle-group.css +4 -4
- package/src/media/media-lightbox/media-lightbox.css +15 -5
- package/src/styles/index.css +1 -0
- package/src/styles/utilities.css +2253 -0
- package/dist/chunk-7VSPECOH.js.map +0 -1
- package/dist/chunk-MXNO63TC.js.map +0 -1
- package/dist/chunk-STCXERLM.js.map +0 -1
|
@@ -61,7 +61,10 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
/* Drawn inside the trigger: the bar scrolls (overflow-x), which would clip an
|
|
65
|
+
outer ring at its edges. */
|
|
64
66
|
.a63-Menubar-trigger:focus-visible {
|
|
65
|
-
|
|
67
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
66
68
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
69
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
67
70
|
}
|
|
@@ -85,9 +85,12 @@
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/* Drawn inside the trigger: the list scrolls (overflow-x), which would clip an
|
|
89
|
+
outer ring at its edges. */
|
|
88
90
|
.a63-NavigationMenu-trigger:focus-visible {
|
|
89
|
-
|
|
91
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
90
92
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
93
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
.a63-NavigationMenu-trigger[data-disabled] {
|
|
@@ -258,6 +261,7 @@
|
|
|
258
261
|
width: 0.5rem;
|
|
259
262
|
height: 0.5rem;
|
|
260
263
|
rotate: 45deg;
|
|
264
|
+
/* craft-allow: physical-properties — the corner that becomes the arrow tip after the rotation */
|
|
261
265
|
border-top-left-radius: var(--radius-xs);
|
|
262
266
|
background: var(--a63-border-subtle);
|
|
263
267
|
}
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
.a63-Resizable-handle:focus-visible {
|
|
58
58
|
background-color: var(--a63-action-primary);
|
|
59
|
-
|
|
59
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
60
60
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
height: 100%;
|
|
26
26
|
border-radius: inherit;
|
|
27
27
|
outline: none;
|
|
28
|
-
transition: box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
.a63-ScrollArea-viewport[data-has-overflow-x] {
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
.a63-ScrollArea-viewport:focus-visible {
|
|
36
|
-
|
|
35
|
+
outline: var(--a63-control-focus-ring-width, 2px) solid var(--a63-focus-ring);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
/* ── Scroll fade mask ──────────────────────────────────────────────────── */
|
|
@@ -101,9 +101,12 @@
|
|
|
101
101
|
color: var(--a63-segment-selected-foreground, var(--a63-text-primary));
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/* Drawn inside the segment: the track scrolls (overflow-x), or clips when
|
|
105
|
+
full-width, which would cut an outer ring at its edges. */
|
|
104
106
|
.a63-SegmentedControl-item:focus-visible {
|
|
105
|
-
|
|
107
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
106
108
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
109
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
.a63-SegmentedControl-item[data-disabled] {
|
|
@@ -195,6 +198,10 @@
|
|
|
195
198
|
.a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-item[data-active] {
|
|
196
199
|
color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
|
|
197
200
|
}
|
|
201
|
+
/* The inset ring would vanish into the accent pill; it takes the label colour. */
|
|
202
|
+
.a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-item[data-active]:focus-visible {
|
|
203
|
+
outline-color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
|
|
204
|
+
}
|
|
198
205
|
|
|
199
206
|
/* ── Sizes (reuse the control ramp) ────────────────────────────────────── */
|
|
200
207
|
/* Each block overrides --segment-inset; --segment-active-radius intentionally
|
|
@@ -54,9 +54,7 @@
|
|
|
54
54
|
touch-action: manipulation;
|
|
55
55
|
user-select: none;
|
|
56
56
|
outline: none;
|
|
57
|
-
transition:
|
|
58
|
-
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
59
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
57
|
+
transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
@media (hover: hover) and (pointer: fine) {
|
|
@@ -67,9 +65,7 @@
|
|
|
67
65
|
|
|
68
66
|
.a63-Select-trigger:focus-visible {
|
|
69
67
|
border-color: var(--select-focus-border);
|
|
70
|
-
|
|
71
|
-
var(--select-shadow),
|
|
72
|
-
0 0 0 var(--a63-control-focus-ring-width) var(--select-focus-ring);
|
|
68
|
+
outline: var(--a63-control-focus-ring-width) solid var(--select-focus-ring);
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
.a63-Select-trigger[data-disabled] {
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
@media (min-width: 768px) {
|
|
282
282
|
.a63-Sidebar-wrapper:has([data-variant='inset']) .a63-Sidebar-inset {
|
|
283
283
|
margin: var(--a63-space-2);
|
|
284
|
-
margin-
|
|
284
|
+
margin-inline-start: 0;
|
|
285
285
|
border-radius: var(--a63-surface-radius, var(--radius-xl));
|
|
286
286
|
background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
|
|
287
287
|
background-blend-mode: normal, var(--a63-surface-texture-blend);
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
|
|
290
290
|
}
|
|
291
291
|
.a63-Sidebar-wrapper:has([data-variant='inset'][data-state='collapsed']) .a63-Sidebar-inset {
|
|
292
|
-
margin-
|
|
292
|
+
margin-inline-start: var(--a63-space-2);
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
align-items: center;
|
|
355
355
|
border-radius: var(--radius-md);
|
|
356
356
|
padding-inline: var(--a63-space-2);
|
|
357
|
-
color:
|
|
357
|
+
color: var(--a63-text-secondary);
|
|
358
358
|
font-weight: 500;
|
|
359
359
|
font-size: var(--a63-control-font-size-xs);
|
|
360
360
|
outline: none;
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
opacity 200ms linear;
|
|
364
364
|
}
|
|
365
365
|
.a63-Sidebar-group-label:focus-visible {
|
|
366
|
-
|
|
366
|
+
outline: 2px solid var(--sidebar-ring);
|
|
367
367
|
}
|
|
368
368
|
.a63-Sidebar-group-label > svg {
|
|
369
369
|
width: 1rem;
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
.a63-Sidebar-group-action {
|
|
379
379
|
position: absolute;
|
|
380
380
|
top: 50%;
|
|
381
|
-
|
|
381
|
+
inset-inline-end: 0;
|
|
382
382
|
display: flex;
|
|
383
383
|
aspect-ratio: 1 / 1;
|
|
384
384
|
width: var(--a63-control-min-target);
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
.a63-Sidebar-group-action:focus-visible {
|
|
401
|
-
|
|
401
|
+
outline: 2px solid var(--sidebar-ring);
|
|
402
402
|
}
|
|
403
403
|
.a63-Sidebar-group-action > svg {
|
|
404
404
|
width: 1rem;
|
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
overflow: hidden;
|
|
437
437
|
border-radius: var(--radius-md);
|
|
438
438
|
padding: var(--a63-space-2);
|
|
439
|
-
text-align:
|
|
439
|
+
text-align: start;
|
|
440
440
|
font-size: var(--a63-control-font-size-sm);
|
|
441
441
|
outline: none;
|
|
442
442
|
transition:
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
color: var(--sidebar-accent-fg);
|
|
456
456
|
}
|
|
457
457
|
.a63-Sidebar-menu-button:focus-visible {
|
|
458
|
-
|
|
458
|
+
outline: 2px solid var(--sidebar-ring);
|
|
459
459
|
}
|
|
460
460
|
.a63-Sidebar-menu-button:disabled,
|
|
461
461
|
.a63-Sidebar-menu-button[aria-disabled='true'] {
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
}
|
|
479
479
|
/* reserve room for a menu-action */
|
|
480
480
|
.a63-Sidebar-menu-item:has([data-sidebar='menu-action']) .a63-Sidebar-menu-button {
|
|
481
|
-
padding-
|
|
481
|
+
padding-inline-end: calc(var(--a63-control-min-target) + var(--a63-space-1));
|
|
482
482
|
}
|
|
483
483
|
/* size ramp */
|
|
484
484
|
.a63-Sidebar-menu-button[data-size='default'] {
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
.a63-Sidebar-menu-action:focus-visible {
|
|
563
|
-
|
|
563
|
+
outline: 2px solid var(--sidebar-ring);
|
|
564
564
|
}
|
|
565
565
|
.a63-Sidebar-menu-action > svg {
|
|
566
566
|
width: 1rem;
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
gap: var(--a63-space-1);
|
|
650
650
|
margin-inline: 0.875rem;
|
|
651
651
|
translate: 1px;
|
|
652
|
-
border-
|
|
652
|
+
border-inline-start: 1px solid var(--sidebar-border);
|
|
653
653
|
padding-inline: 0.625rem;
|
|
654
654
|
padding-block: 0.125rem;
|
|
655
655
|
}
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
color: var(--sidebar-accent-fg);
|
|
685
685
|
}
|
|
686
686
|
.a63-Sidebar-menu-sub-button:focus-visible {
|
|
687
|
-
|
|
687
|
+
outline: 2px solid var(--sidebar-ring);
|
|
688
688
|
}
|
|
689
689
|
.a63-Sidebar-menu-sub-button:disabled,
|
|
690
690
|
.a63-Sidebar-menu-sub-button[aria-disabled='true'] {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
min-width: 0;
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
text-overflow: ellipsis;
|
|
21
|
-
color:
|
|
21
|
+
color: var(--a63-text-secondary);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.a63-SidebarNavTree-group-content {
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
.a63-SidebarNavTree-item[data-active='true'] {
|
|
55
55
|
background-color: transparent;
|
|
56
56
|
font-weight: 500;
|
|
57
|
-
color: var(--a63-
|
|
57
|
+
color: var(--a63-text-accent);
|
|
58
58
|
}
|
|
59
59
|
.a63-SidebarNavTree-item[data-active='true']:hover {
|
|
60
60
|
background-color: color-mix(in oklch, var(--sidebar-accent) 50%, transparent);
|
|
61
|
-
color: var(--a63-
|
|
61
|
+
color: var(--a63-text-accent);
|
|
62
62
|
}
|
|
63
63
|
.a63-SidebarNavTree-item > span {
|
|
64
64
|
min-width: 0;
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
.a63-SidebarNavTree-row-item {
|
|
98
98
|
min-width: 0;
|
|
99
99
|
flex: 1;
|
|
100
|
-
border-
|
|
101
|
-
border-
|
|
100
|
+
border-start-end-radius: 0;
|
|
101
|
+
border-end-end-radius: 0;
|
|
102
102
|
}
|
|
103
103
|
.a63-SidebarNavTree-row-item:hover {
|
|
104
104
|
background-color: transparent;
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
background-color: transparent;
|
|
111
111
|
}
|
|
112
112
|
.a63-SidebarNavTree-row:hover .a63-SidebarNavTree-row-item[data-active='true'] {
|
|
113
|
-
color: var(--a63-
|
|
113
|
+
color: var(--a63-text-accent);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/* Trigger-only row: the section has no page, so the whole row is one control. */
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
.a63-SidebarNavTree-toggle:focus-visible {
|
|
146
|
-
|
|
146
|
+
outline: 2px solid var(--sidebar-ring);
|
|
147
147
|
}
|
|
148
148
|
/* Hide the expand toggle when the sidebar is collapsed to the icon rail. */
|
|
149
149
|
.a63-Sidebar-root[data-collapsible='icon'] .a63-SidebarNavTree-toggle,
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
.a63-SidebarNavTree-sub-list {
|
|
166
166
|
gap: var(--a63-space-0_5);
|
|
167
167
|
margin-inline: var(--a63-space-2) 0;
|
|
168
|
-
border-
|
|
168
|
+
border-inline-start-color: color-mix(in oklch, var(--sidebar-border) 70%, transparent);
|
|
169
169
|
padding-inline: var(--a63-space-2) 0;
|
|
170
170
|
padding-block: var(--a63-space-0_5);
|
|
171
171
|
}
|
|
@@ -57,9 +57,7 @@
|
|
|
57
57
|
var(--a63-control-shadow),
|
|
58
58
|
0 1px 2px color-mix(in oklch, black 20%, transparent);
|
|
59
59
|
outline: none;
|
|
60
|
-
transition:
|
|
61
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
62
|
-
scale var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
60
|
+
transition: scale var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
/* Interaction floor, using the same pattern as Checkbox/Radio/Switch/Button.
|
|
@@ -76,13 +74,15 @@
|
|
|
76
74
|
translate: -50% -50%;
|
|
77
75
|
}
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
/* Keyboard focus lands on the thumb's visually hidden range input, so the thumb
|
|
78
|
+
rings while that input has it. */
|
|
79
|
+
.a63-Slider-thumb:has(:focus-visible),
|
|
80
|
+
.a63-Slider-thumb[data-dragging] {
|
|
81
|
+
outline: var(--a63-control-focus-ring-width) solid var(--a63-focus-ring);
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
.a63-Slider-thumb[data-dragging] {
|
|
84
85
|
scale: 1.2;
|
|
85
|
-
box-shadow: 0 0 0 var(--a63-control-focus-ring-width) var(--a63-focus-ring);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.a63-Slider-value {
|
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
--thumb-sx: 1.12;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
/* An outline, not an extra shadow layer: the theme shadow is `none` where a
|
|
127
|
+
theme has none, and `none` cannot join a shadow list, which dropped the ring. */
|
|
126
128
|
.a63-Switch:focus-visible {
|
|
127
|
-
|
|
128
|
-
var(--switch-current-shadow),
|
|
129
|
-
0 0 0 var(--a63-control-focus-ring-width) var(--switch-focus-ring);
|
|
129
|
+
outline: var(--a63-control-focus-ring-width) solid var(--switch-focus-ring);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.a63-Switch[data-disabled] {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
.a63-Table-head {
|
|
52
52
|
height: 2.5rem;
|
|
53
53
|
padding-inline: 0.625rem;
|
|
54
|
-
text-align:
|
|
54
|
+
text-align: start;
|
|
55
55
|
vertical-align: middle;
|
|
56
56
|
font-weight: 500;
|
|
57
57
|
line-height: 1;
|
|
@@ -137,6 +137,12 @@
|
|
|
137
137
|
[data-slot='frame'] .a63-Table-body .a63-Table-row[data-state='selected'] {
|
|
138
138
|
background: transparent;
|
|
139
139
|
}
|
|
140
|
+
/* Cells paint the frame's page surface, so a selected row fills its cells with
|
|
141
|
+
the selection color that its foreground (--a63-action-primary-foreground) is
|
|
142
|
+
meant for. */
|
|
143
|
+
[data-slot='frame'] .a63-Table-body .a63-Table-row[data-state='selected'] .a63-Table-cell {
|
|
144
|
+
background: var(--a63-action-primary);
|
|
145
|
+
}
|
|
140
146
|
[data-slot='frame'] .a63-Table-body .a63-Table-cell {
|
|
141
147
|
border-bottom: 1px solid var(--a63-border-subtle);
|
|
142
148
|
background: var(--a63-surface-page);
|
|
@@ -191,9 +191,13 @@
|
|
|
191
191
|
color: var(--a63-text-primary);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
/* An outline drawn inside the tab: the active tab's own shadow (attached) would
|
|
195
|
+
replace a box-shadow ring, and the list scrolls (overflow-x), which would
|
|
196
|
+
clip an outer ring. */
|
|
194
197
|
.a63-Tabs-tab:focus-visible {
|
|
195
|
-
|
|
198
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
196
199
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
200
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
197
201
|
}
|
|
198
202
|
|
|
199
203
|
.a63-Tabs-tab[data-disabled] {
|
|
@@ -242,6 +246,10 @@
|
|
|
242
246
|
color: var(--a63-action-primary-foreground);
|
|
243
247
|
font-weight: 600;
|
|
244
248
|
}
|
|
249
|
+
/* The inset ring would vanish into the primary fill; it takes the label colour. */
|
|
250
|
+
.a63-Tabs-list[data-variant='attached'] .a63-Tabs-tab[data-active]:focus-visible {
|
|
251
|
+
outline-color: var(--a63-action-primary-foreground);
|
|
252
|
+
}
|
|
245
253
|
|
|
246
254
|
/* ── Sliding indicator ─────────────────────────────────────────────────── */
|
|
247
255
|
|
|
@@ -294,6 +302,12 @@
|
|
|
294
302
|
outline: none;
|
|
295
303
|
}
|
|
296
304
|
|
|
305
|
+
/* The panel is a tab stop, so it needs a ring too. */
|
|
306
|
+
.a63-Tabs-panel:focus-visible {
|
|
307
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
308
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
309
|
+
}
|
|
310
|
+
|
|
297
311
|
/* attached: the panel is the folder BODY — a card surface bordered on all sides
|
|
298
312
|
with rounded bottom corners; its flat top edge meets the tab row above, and
|
|
299
313
|
the active tab merges into it. (Legacy --theme-tabs-attached-panel-* contract.)
|
|
@@ -36,9 +36,7 @@
|
|
|
36
36
|
font-family: var(--a63-control-font-family);
|
|
37
37
|
font-size: max(var(--field-font-size), var(--a63-editable-font-size-min, 0px));
|
|
38
38
|
cursor: text;
|
|
39
|
-
transition:
|
|
40
|
-
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
41
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
39
|
+
transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
/* Chrome-less field for nesting: the wrapper collapses so the inner <textarea>
|
|
@@ -77,9 +75,7 @@
|
|
|
77
75
|
|
|
78
76
|
.a63-Textarea:not([data-unstyled]):focus-within {
|
|
79
77
|
border-color: var(--field-focus-border);
|
|
80
|
-
|
|
81
|
-
var(--field-shadow),
|
|
82
|
-
0 0 0 var(--a63-control-focus-ring-width) var(--field-focus-ring);
|
|
78
|
+
outline: var(--a63-control-focus-ring-width) solid var(--field-focus-ring);
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
.a63-Textarea[data-invalid] {
|
|
@@ -126,11 +126,12 @@
|
|
|
126
126
|
color: var(--a63-segment-hover-foreground, var(--a63-text-primary));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
/* An outline, not an extra shadow layer: a pressed toggle's theme shadow is
|
|
130
|
+
`none` where a theme has none, and `none` cannot join a shadow list, which
|
|
131
|
+
dropped the ring. */
|
|
129
132
|
.a63-Toggle:focus-visible {
|
|
130
|
-
|
|
131
|
-
var(--
|
|
132
|
-
0 0 0 var(--a63-control-focus-ring-width)
|
|
133
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
133
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
134
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
.a63-Toggle[data-pressed][data-tone='neutral'] {
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/* The standalone Toggle's outline ring stays: the cell keeps its own (pressed)
|
|
54
|
+
shadow, and the focused cell sits above its welded neighbours so they do not
|
|
55
|
+
cover the ring. */
|
|
53
56
|
.a63-ToggleGroup .a63-Toggle:focus-visible {
|
|
54
|
-
|
|
55
|
-
var(--a63-segment-selected-shadow, none),
|
|
56
|
-
0 0 0 var(--a63-control-focus-ring-width)
|
|
57
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
57
|
+
z-index: 1;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.a63-ToggleGroup[data-orientation='horizontal'] .a63-Toggle:first-child {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* or photo, so contrast never depends on what they're floating over.
|
|
11
11
|
*/
|
|
12
12
|
[data-slot='media-lightbox'] {
|
|
13
|
-
--a63-lightbox-on-media-fg:
|
|
14
|
-
--a63-lightbox-on-media-surface:
|
|
15
|
-
--a63-lightbox-on-media-surface-hover:
|
|
16
|
-
--a63-lightbox-on-media-border:
|
|
17
|
-
--a63-lightbox-on-media-ring:
|
|
13
|
+
--a63-lightbox-on-media-fg: var(--a63-on-media-foreground);
|
|
14
|
+
--a63-lightbox-on-media-surface: var(--a63-on-media-surface);
|
|
15
|
+
--a63-lightbox-on-media-surface-hover: var(--a63-on-media-surface-strong);
|
|
16
|
+
--a63-lightbox-on-media-border: var(--a63-on-media-border);
|
|
17
|
+
--a63-lightbox-on-media-ring: var(--a63-on-media-ring);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/*
|
|
@@ -41,6 +41,16 @@
|
|
|
41
41
|
background-color: var(--a63-lightbox-on-media-surface-hover);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/*
|
|
45
|
+
* Nothing blurred sits over the track while it moves. A `backdrop-filter`
|
|
46
|
+
* has to re-sample the photo moving beneath it on every frame, and a blur over
|
|
47
|
+
* the moving photo is what made paging judder before. The controls keep their
|
|
48
|
+
* opaque-enough backplate, so they stay legible for the moment the blur is off.
|
|
49
|
+
*/
|
|
50
|
+
[data-slot='media-lightbox'][data-paging] .a63-media-lightbox-on-media {
|
|
51
|
+
backdrop-filter: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
/*
|
|
45
55
|
* MediaLightbox — view-transition morph.
|
|
46
56
|
*
|
package/src/styles/index.css
CHANGED