@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
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
/* ── Input (field) ─────────────────────────────────────────────────────── */
|
|
21
21
|
|
|
22
22
|
.a63-Autocomplete-input {
|
|
23
|
+
--autocomplete-border: var(--a63-border-input);
|
|
24
|
+
--autocomplete-focus-border: var(--a63-action-primary);
|
|
25
|
+
--autocomplete-focus-ring: var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
23
26
|
/* Content floor — see button.css. */
|
|
24
27
|
--autocomplete-content-lh: var(--typography-sm-line-height);
|
|
25
28
|
--autocomplete-content-floor: calc(var(--autocomplete-content-lh) + 2 * var(--a63-space-0_5));
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
var(--autocomplete-content-floor)
|
|
33
36
|
);
|
|
34
37
|
padding-inline: var(--a63-control-padding-inline-md);
|
|
35
|
-
border: var(--a63-control-border-width) solid var(--
|
|
38
|
+
border: var(--a63-control-border-width) solid var(--autocomplete-border);
|
|
36
39
|
border-radius: var(--a63-control-radius);
|
|
37
40
|
background: var(--a63-surface-control);
|
|
38
41
|
box-shadow: var(--a63-field-shadow);
|
|
@@ -46,13 +49,26 @@
|
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.a63-Autocomplete-input::placeholder {
|
|
49
|
-
color: var(--a63-text-
|
|
52
|
+
color: var(--a63-text-tertiary);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (hover: hover) and (pointer: fine) {
|
|
56
|
+
.a63-Autocomplete-input:hover:not(:disabled) {
|
|
57
|
+
border-color: color-mix(in oklch, var(--autocomplete-border), var(--a63-text-primary) 18%);
|
|
58
|
+
}
|
|
50
59
|
}
|
|
51
60
|
|
|
52
61
|
.a63-Autocomplete-input:focus-visible {
|
|
53
|
-
border-color: var(--
|
|
54
|
-
outline: var(--a63-control-focus-ring-width) solid
|
|
55
|
-
|
|
62
|
+
border-color: var(--autocomplete-focus-border);
|
|
63
|
+
outline: var(--a63-control-focus-ring-width) solid var(--autocomplete-focus-ring);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Invalid: the same danger edge as .a63-Input[data-invalid] (input.css). */
|
|
67
|
+
.a63-Autocomplete-input[data-invalid],
|
|
68
|
+
.a63-Autocomplete-input[aria-invalid='true'] {
|
|
69
|
+
--autocomplete-border: color-mix(in oklch, var(--a63-action-danger) 62%, transparent);
|
|
70
|
+
--autocomplete-focus-border: var(--a63-action-danger);
|
|
71
|
+
--autocomplete-focus-ring: color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
|
|
56
72
|
}
|
|
57
73
|
|
|
58
74
|
.a63-Autocomplete-input[data-has-start-addon] {
|
|
@@ -14,19 +14,51 @@
|
|
|
14
14
|
flex-shrink: 0;
|
|
15
15
|
width: var(--avatar-size);
|
|
16
16
|
height: var(--avatar-size);
|
|
17
|
-
border-radius: var(--a63-avatar-radius, var(--radius-
|
|
17
|
+
border-radius: var(--a63-avatar-radius, var(--radius-pill));
|
|
18
18
|
user-select: none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.a63-Avatar[data-shape='square'] {
|
|
22
|
+
--a63-avatar-radius: var(--radius-md);
|
|
23
|
+
}
|
|
24
|
+
/*
|
|
25
|
+
* Ring: --a63-avatar-ring-fill (the accent by default; a product can set a
|
|
26
|
+
* gradient) behind the face, set off by a gap of the page surface. The fill is
|
|
27
|
+
* a ::before under the face; the gap is an outline, which paints above it.
|
|
28
|
+
*/
|
|
29
|
+
.a63-Avatar[data-ring] {
|
|
30
|
+
isolation: isolate;
|
|
31
|
+
outline: 2px solid var(--a63-surface-page);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.a63-Avatar[data-ring]::before {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: -4px;
|
|
38
|
+
z-index: -1;
|
|
39
|
+
border-radius: calc(var(--a63-avatar-radius, var(--radius-pill)) + 4px);
|
|
40
|
+
background: var(--a63-avatar-ring-fill, var(--a63-action-primary));
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Seen: a thinner ring in the control border colour. */
|
|
45
|
+
.a63-Avatar[data-ring='seen']::before {
|
|
46
|
+
inset: -3px;
|
|
47
|
+
background: var(--a63-border-control);
|
|
48
|
+
}
|
|
49
|
+
|
|
21
50
|
.a63-Avatar::after {
|
|
22
51
|
content: '';
|
|
23
52
|
position: absolute;
|
|
24
53
|
inset: 0;
|
|
25
54
|
border: var(--a63-control-border-width) solid var(--a63-border-subtle);
|
|
26
|
-
border-radius: var(--a63-avatar-radius, var(--radius-
|
|
55
|
+
border-radius: var(--a63-avatar-radius, var(--radius-pill));
|
|
27
56
|
pointer-events: none;
|
|
28
57
|
}
|
|
29
58
|
|
|
59
|
+
.a63-Avatar[data-size='xs'] {
|
|
60
|
+
--avatar-size: calc(var(--a63-space-unit) * 5);
|
|
61
|
+
}
|
|
30
62
|
.a63-Avatar[data-size='sm'] {
|
|
31
63
|
--avatar-size: calc(var(--a63-space-unit) * 6);
|
|
32
64
|
}
|
|
@@ -38,7 +70,7 @@
|
|
|
38
70
|
aspect-ratio: 1 / 1;
|
|
39
71
|
width: 100%;
|
|
40
72
|
height: 100%;
|
|
41
|
-
border-radius: var(--a63-avatar-radius, var(--radius-
|
|
73
|
+
border-radius: var(--a63-avatar-radius, var(--radius-pill));
|
|
42
74
|
object-fit: cover;
|
|
43
75
|
}
|
|
44
76
|
|
|
@@ -48,15 +80,39 @@
|
|
|
48
80
|
justify-content: center;
|
|
49
81
|
width: 100%;
|
|
50
82
|
height: 100%;
|
|
51
|
-
border-radius: var(--a63-avatar-radius, var(--radius-
|
|
83
|
+
border-radius: var(--a63-avatar-radius, var(--radius-pill));
|
|
52
84
|
background-color: var(--a63-surface-muted);
|
|
53
85
|
color: var(--a63-text-secondary);
|
|
54
86
|
font-size: var(--a63-control-font-size-sm);
|
|
55
87
|
}
|
|
88
|
+
.a63-Avatar[data-size='xs'] .a63-Avatar-fallback {
|
|
89
|
+
font-size: calc(var(--a63-control-font-size-xs) - 2px);
|
|
90
|
+
}
|
|
56
91
|
.a63-Avatar[data-size='sm'] .a63-Avatar-fallback {
|
|
57
92
|
font-size: var(--a63-control-font-size-xs);
|
|
58
93
|
}
|
|
59
94
|
|
|
95
|
+
/* An icon fallback (an assistant's sparkle, an app glyph) sits inside the
|
|
96
|
+
filled circle at the control icon size for the avatar's size step, instead
|
|
97
|
+
of its own 24px default covering the frame. */
|
|
98
|
+
.a63-Avatar-fallback > svg {
|
|
99
|
+
flex: none;
|
|
100
|
+
inline-size: var(--a63-control-icon-size-md);
|
|
101
|
+
block-size: var(--a63-control-icon-size-md);
|
|
102
|
+
}
|
|
103
|
+
.a63-Avatar[data-size='xs'] .a63-Avatar-fallback > svg {
|
|
104
|
+
inline-size: var(--a63-control-icon-size-xs);
|
|
105
|
+
block-size: var(--a63-control-icon-size-xs);
|
|
106
|
+
}
|
|
107
|
+
.a63-Avatar[data-size='sm'] .a63-Avatar-fallback > svg {
|
|
108
|
+
inline-size: var(--a63-control-icon-size-sm);
|
|
109
|
+
block-size: var(--a63-control-icon-size-sm);
|
|
110
|
+
}
|
|
111
|
+
.a63-Avatar[data-size='lg'] .a63-Avatar-fallback > svg {
|
|
112
|
+
inline-size: var(--a63-control-icon-size-lg);
|
|
113
|
+
block-size: var(--a63-control-icon-size-lg);
|
|
114
|
+
}
|
|
115
|
+
|
|
60
116
|
/* ── Status badge (pinned to the bottom-right, ringed against the page) ──── */
|
|
61
117
|
.a63-Avatar-badge {
|
|
62
118
|
position: absolute;
|
|
@@ -66,18 +122,18 @@
|
|
|
66
122
|
display: inline-flex;
|
|
67
123
|
align-items: center;
|
|
68
124
|
justify-content: center;
|
|
69
|
-
border-radius: var(--a63-avatar-radius, var(--radius-
|
|
125
|
+
border-radius: var(--a63-avatar-radius, var(--radius-pill));
|
|
70
126
|
background-color: var(--a63-action-primary);
|
|
71
127
|
color: var(--a63-action-primary-foreground);
|
|
72
128
|
box-shadow: 0 0 0 calc(var(--a63-control-border-width) * 2)
|
|
73
129
|
var(--a63-avatar-badge-ring, var(--a63-surface-page));
|
|
74
130
|
user-select: none;
|
|
75
131
|
}
|
|
76
|
-
.a63-Avatar[data-size='sm'] .a63-Avatar-badge {
|
|
132
|
+
.a63-Avatar:is([data-size='xs'], [data-size='sm']) .a63-Avatar-badge {
|
|
77
133
|
width: var(--a63-space-2);
|
|
78
134
|
height: var(--a63-space-2);
|
|
79
135
|
}
|
|
80
|
-
.a63-Avatar[data-size='sm'] .a63-Avatar-badge > svg {
|
|
136
|
+
.a63-Avatar:is([data-size='xs'], [data-size='sm']) .a63-Avatar-badge > svg {
|
|
81
137
|
display: none;
|
|
82
138
|
}
|
|
83
139
|
.a63-Avatar[data-size='default'] .a63-Avatar-badge {
|
|
@@ -117,7 +173,7 @@
|
|
|
117
173
|
justify-content: center;
|
|
118
174
|
width: calc(var(--a63-space-unit) * 8);
|
|
119
175
|
height: calc(var(--a63-space-unit) * 8);
|
|
120
|
-
border-radius: var(--a63-avatar-radius, var(--radius-
|
|
176
|
+
border-radius: var(--a63-avatar-radius, var(--radius-pill));
|
|
121
177
|
background-color: var(--a63-surface-muted);
|
|
122
178
|
box-shadow: 0 0 0 calc(var(--a63-control-border-width) * 2)
|
|
123
179
|
var(--a63-avatar-group-ring, var(--a63-surface-page));
|
|
@@ -50,6 +50,71 @@
|
|
|
50
50
|
pointer-events: none;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/* ── Dot ───────────────────────────────────────────────────────────────
|
|
54
|
+
A leading dot carries a category color on any variant (an outline label
|
|
55
|
+
with a green dot). Without a color it follows the text. */
|
|
56
|
+
.a63-Badge-dot {
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
width: 0.5em;
|
|
59
|
+
height: 0.5em;
|
|
60
|
+
border-radius: var(--radius-pill);
|
|
61
|
+
background-color: currentColor;
|
|
62
|
+
}
|
|
63
|
+
.a63-Badge-dot[data-color='red'] {
|
|
64
|
+
background-color: var(--a63-category-red);
|
|
65
|
+
}
|
|
66
|
+
.a63-Badge-dot[data-color='orange'] {
|
|
67
|
+
background-color: var(--a63-category-orange);
|
|
68
|
+
}
|
|
69
|
+
.a63-Badge-dot[data-color='amber'] {
|
|
70
|
+
background-color: var(--a63-category-amber);
|
|
71
|
+
}
|
|
72
|
+
.a63-Badge-dot[data-color='yellow'] {
|
|
73
|
+
background-color: var(--a63-category-yellow);
|
|
74
|
+
}
|
|
75
|
+
.a63-Badge-dot[data-color='lime'] {
|
|
76
|
+
background-color: var(--a63-category-lime);
|
|
77
|
+
}
|
|
78
|
+
.a63-Badge-dot[data-color='green'] {
|
|
79
|
+
background-color: var(--a63-category-green);
|
|
80
|
+
}
|
|
81
|
+
.a63-Badge-dot[data-color='emerald'] {
|
|
82
|
+
background-color: var(--a63-category-emerald);
|
|
83
|
+
}
|
|
84
|
+
.a63-Badge-dot[data-color='teal'] {
|
|
85
|
+
background-color: var(--a63-category-teal);
|
|
86
|
+
}
|
|
87
|
+
.a63-Badge-dot[data-color='cyan'] {
|
|
88
|
+
background-color: var(--a63-category-cyan);
|
|
89
|
+
}
|
|
90
|
+
.a63-Badge-dot[data-color='sky'] {
|
|
91
|
+
background-color: var(--a63-category-sky);
|
|
92
|
+
}
|
|
93
|
+
.a63-Badge-dot[data-color='blue'] {
|
|
94
|
+
background-color: var(--a63-category-blue);
|
|
95
|
+
}
|
|
96
|
+
.a63-Badge-dot[data-color='indigo'] {
|
|
97
|
+
background-color: var(--a63-category-indigo);
|
|
98
|
+
}
|
|
99
|
+
.a63-Badge-dot[data-color='violet'] {
|
|
100
|
+
background-color: var(--a63-category-violet);
|
|
101
|
+
}
|
|
102
|
+
.a63-Badge-dot[data-color='purple'] {
|
|
103
|
+
background-color: var(--a63-category-purple);
|
|
104
|
+
}
|
|
105
|
+
.a63-Badge-dot[data-color='fuchsia'] {
|
|
106
|
+
background-color: var(--a63-category-fuchsia);
|
|
107
|
+
}
|
|
108
|
+
.a63-Badge-dot[data-color='pink'] {
|
|
109
|
+
background-color: var(--a63-category-pink);
|
|
110
|
+
}
|
|
111
|
+
.a63-Badge-dot[data-color='rose'] {
|
|
112
|
+
background-color: var(--a63-category-rose);
|
|
113
|
+
}
|
|
114
|
+
.a63-Badge-dot[data-color='neutral'] {
|
|
115
|
+
background-color: var(--a63-category-neutral);
|
|
116
|
+
}
|
|
117
|
+
|
|
53
118
|
/* ── Sizes ─────────────────────────────────────────────────────────────── */
|
|
54
119
|
.a63-Badge[data-size='sm'] {
|
|
55
120
|
--badge-height: 1rem;
|
|
@@ -197,11 +197,53 @@
|
|
|
197
197
|
transform: none;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
/*
|
|
201
|
-
fill
|
|
202
|
-
|
|
203
|
-
.
|
|
204
|
-
|
|
200
|
+
/* A disabled button with a fill or a border swaps to the neutral disabled tokens:
|
|
201
|
+
a grey fill, a subtle border and muted text, so a disabled primary reads as
|
|
202
|
+
unavailable rather than as a paler accent. Gloss, highlight and tinted depth go
|
|
203
|
+
with the fill. Ghost and link have no fill to replace, and overlay and glass sit
|
|
204
|
+
over media, where theme greys mean nothing, so those fade only the label, by
|
|
205
|
+
--a63-action-disabled-opacity's 0.56 (a literal, so the Figma model reads it).
|
|
206
|
+
Loading also disables the button but keeps its own look. Each selector names
|
|
207
|
+
its variant and state, so it outranks the variant rules below and the Figma
|
|
208
|
+
recipe reader maps it to one Variant × State; :where() keeps loading out
|
|
209
|
+
without adding specificity. */
|
|
210
|
+
.a63-Button[data-variant='default']:disabled:where(:not([data-loading])),
|
|
211
|
+
.a63-Button[data-variant='default'][data-disabled]:where(:not([data-loading])),
|
|
212
|
+
.a63-Button[data-variant='primary']:disabled:where(:not([data-loading])),
|
|
213
|
+
.a63-Button[data-variant='primary'][data-disabled]:where(:not([data-loading])),
|
|
214
|
+
.a63-Button[data-variant='secondary']:disabled:where(:not([data-loading])),
|
|
215
|
+
.a63-Button[data-variant='secondary'][data-disabled]:where(:not([data-loading])),
|
|
216
|
+
.a63-Button[data-variant='raised']:disabled:where(:not([data-loading])),
|
|
217
|
+
.a63-Button[data-variant='raised'][data-disabled]:where(:not([data-loading])),
|
|
218
|
+
.a63-Button[data-variant='destructive']:disabled:where(:not([data-loading])),
|
|
219
|
+
.a63-Button[data-variant='destructive'][data-disabled]:where(:not([data-loading])),
|
|
220
|
+
.a63-Button[data-variant='destructive-outline']:disabled:where(:not([data-loading])),
|
|
221
|
+
.a63-Button[data-variant='destructive-outline'][data-disabled]:where(:not([data-loading])),
|
|
222
|
+
.a63-Button[data-variant='outline']:disabled:where(:not([data-loading])),
|
|
223
|
+
.a63-Button[data-variant='outline'][data-disabled]:where(:not([data-loading])),
|
|
224
|
+
.a63-Button[data-variant='dashed']:disabled:where(:not([data-loading])),
|
|
225
|
+
.a63-Button[data-variant='dashed'][data-disabled]:where(:not([data-loading])) {
|
|
226
|
+
--button-background: var(--a63-action-disabled-background);
|
|
227
|
+
--button-border-color: var(--a63-action-disabled-border);
|
|
228
|
+
--button-foreground: var(--a63-action-disabled-foreground);
|
|
229
|
+
--button-state-active-background: var(--button-background);
|
|
230
|
+
--button-state-active-border-color: var(--button-border-color);
|
|
231
|
+
--button-gloss: none;
|
|
232
|
+
--button-highlight: none;
|
|
233
|
+
--button-shadow: var(--a63-control-shadow-flat);
|
|
234
|
+
--button-shadow-active: var(--button-shadow);
|
|
235
|
+
--button-tint-drop: 0 0 #0000;
|
|
236
|
+
--button-text-shadow: none;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.a63-Button[data-variant='ghost']:disabled:where(:not([data-loading])) .a63-Button-label,
|
|
240
|
+
.a63-Button[data-variant='ghost'][data-disabled]:where(:not([data-loading])) .a63-Button-label,
|
|
241
|
+
.a63-Button[data-variant='link']:disabled:where(:not([data-loading])) .a63-Button-label,
|
|
242
|
+
.a63-Button[data-variant='link'][data-disabled]:where(:not([data-loading])) .a63-Button-label,
|
|
243
|
+
.a63-Button[data-variant='overlay']:disabled:where(:not([data-loading])) .a63-Button-label,
|
|
244
|
+
.a63-Button[data-variant='overlay'][data-disabled]:where(:not([data-loading])) .a63-Button-label,
|
|
245
|
+
.a63-Button[data-variant='glass']:disabled:where(:not([data-loading])) .a63-Button-label,
|
|
246
|
+
.a63-Button[data-variant='glass'][data-disabled]:where(:not([data-loading])) .a63-Button-label {
|
|
205
247
|
opacity: 0.56;
|
|
206
248
|
}
|
|
207
249
|
|
|
@@ -255,7 +297,7 @@
|
|
|
255
297
|
height: var(--button-icon-size);
|
|
256
298
|
border: 2px solid currentColor;
|
|
257
299
|
border-top-color: transparent;
|
|
258
|
-
border-radius: var(--radius-
|
|
300
|
+
border-radius: var(--radius-pill);
|
|
259
301
|
animation: a63-button-spin 700ms linear infinite;
|
|
260
302
|
}
|
|
261
303
|
|
|
@@ -282,6 +324,23 @@
|
|
|
282
324
|
--button-state-hover-border-color: transparent;
|
|
283
325
|
}
|
|
284
326
|
|
|
327
|
+
/* Raised: a light button lifted off its ground. The panel fill, primary text
|
|
328
|
+
and a soft shadow, no border. With shape="round" at an icon size it is the
|
|
329
|
+
floating button over a map or a light photo; over dark media use overlay.
|
|
330
|
+
The fill stays opaque on hover so the map does not show through. */
|
|
331
|
+
.a63-Button[data-variant='raised'] {
|
|
332
|
+
--button-gloss: none;
|
|
333
|
+
--button-highlight: none;
|
|
334
|
+
--button-tint-drop: 0 0 #0000;
|
|
335
|
+
--button-background: var(--a63-surface-panel);
|
|
336
|
+
--button-border-color: transparent;
|
|
337
|
+
--button-foreground: var(--a63-text-primary);
|
|
338
|
+
--button-shadow: var(--a63-surface-raised-shadow);
|
|
339
|
+
--button-shadow-active: var(--a63-surface-raised-shadow);
|
|
340
|
+
--button-state-hover-background: var(--a63-surface-muted);
|
|
341
|
+
--button-state-hover-border-color: transparent;
|
|
342
|
+
}
|
|
343
|
+
|
|
285
344
|
.a63-Button[data-variant='destructive'] {
|
|
286
345
|
--button-background: var(--a63-action-danger);
|
|
287
346
|
--button-border-color: var(--button-background);
|
|
@@ -296,7 +355,9 @@
|
|
|
296
355
|
--button-shadow: var(--a63-control-shadow-flat);
|
|
297
356
|
--button-background: color-mix(in oklch, var(--a63-action-danger) 10%, transparent);
|
|
298
357
|
--button-border-color: color-mix(in oklch, var(--a63-action-danger) 20%, transparent);
|
|
299
|
-
|
|
358
|
+
/* The text colour made for the danger tint: AA on it in both modes, where
|
|
359
|
+
--a63-action-danger falls to 2.65:1 on the dark tint. */
|
|
360
|
+
--button-foreground: var(--a63-action-danger-subtle-foreground);
|
|
300
361
|
--button-state-hover-background: color-mix(in oklch, var(--a63-action-danger) 15%, transparent);
|
|
301
362
|
--button-state-hover-border-color: color-mix(in oklch, var(--a63-action-danger) 30%, transparent);
|
|
302
363
|
--button-state-active-background: color-mix(in oklch, var(--a63-action-danger) 15%, transparent);
|
|
@@ -311,30 +372,82 @@
|
|
|
311
372
|
--button-gloss: none;
|
|
312
373
|
--button-highlight: none;
|
|
313
374
|
--button-shadow: var(--a63-control-shadow-flat);
|
|
314
|
-
--button-background: var(--a63-
|
|
375
|
+
--button-background: var(--a63-control-outline-background);
|
|
315
376
|
--button-border-color: var(--a63-border-control);
|
|
316
377
|
--button-foreground: var(--a63-text-primary);
|
|
317
|
-
--button-state-hover-background:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
378
|
+
--button-state-hover-background: var(--a63-control-outline-hover-background);
|
|
379
|
+
--button-state-hover-border-color: var(--a63-control-outline-hover-border);
|
|
380
|
+
--button-state-active-background: var(--a63-control-outline-hover-background);
|
|
381
|
+
--button-state-active-border-color: var(--a63-control-outline-hover-border);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* Indicator: an unread dot or a count pinned to the top-end corner. Aqua clips
|
|
385
|
+
icon buttons (see above), so there it sits inside the corner. The selectors
|
|
386
|
+
match `.a63-Button > span:not(…)` in specificity and come after it, so the
|
|
387
|
+
indicator stays absolutely positioned. */
|
|
388
|
+
.a63-Button > span.a63-Button-indicator {
|
|
389
|
+
position: absolute;
|
|
390
|
+
top: -0.125rem;
|
|
391
|
+
inset-inline-end: -0.125rem;
|
|
392
|
+
z-index: 1;
|
|
393
|
+
width: 0.5rem;
|
|
394
|
+
height: 0.5rem;
|
|
395
|
+
border-radius: var(--radius-pill);
|
|
396
|
+
background-color: var(--a63-action-danger);
|
|
397
|
+
box-shadow: 0 0 0 2px var(--a63-surface-page);
|
|
398
|
+
pointer-events: none;
|
|
399
|
+
}
|
|
400
|
+
.a63-Button > span.a63-Button-indicator[data-count] {
|
|
401
|
+
display: inline-flex;
|
|
402
|
+
align-items: center;
|
|
403
|
+
justify-content: center;
|
|
404
|
+
top: -0.375rem;
|
|
405
|
+
inset-inline-end: -0.375rem;
|
|
406
|
+
width: auto;
|
|
407
|
+
min-width: 1rem;
|
|
408
|
+
height: 1rem;
|
|
409
|
+
padding-inline: 0.25rem;
|
|
410
|
+
color: var(--a63-action-danger-foreground);
|
|
411
|
+
font-size: 0.625rem;
|
|
412
|
+
font-variant-numeric: tabular-nums;
|
|
413
|
+
font-weight: 600;
|
|
414
|
+
line-height: 1;
|
|
415
|
+
}
|
|
416
|
+
[data-a63-theme='aqua'] .a63-Button[data-size^='icon'] .a63-Button-indicator {
|
|
417
|
+
top: 0;
|
|
418
|
+
inset-inline-end: 0;
|
|
419
|
+
}
|
|
420
|
+
/* The indicator's meaning, read after the label and hidden from sight. */
|
|
421
|
+
.a63-Button > span.a63-Button-indicator-label {
|
|
422
|
+
position: absolute;
|
|
423
|
+
width: 1px;
|
|
424
|
+
height: 1px;
|
|
425
|
+
overflow: hidden;
|
|
426
|
+
clip-path: inset(50%);
|
|
427
|
+
white-space: nowrap;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* Round: a pill radius (--radius-pill), so icon sizes become circles and labelled sizes pills.
|
|
431
|
+
Variants that set their own radius (dashed) already are round. */
|
|
432
|
+
.a63-Button[data-shape='round'] {
|
|
433
|
+
--button-radius: var(--radius-pill);
|
|
329
434
|
}
|
|
330
435
|
|
|
331
|
-
:
|
|
332
|
-
|
|
436
|
+
/* Dashed: an outline pill with a dashed border, for add and filter affordances
|
|
437
|
+
("+ Status"). It shares the outline colors. */
|
|
438
|
+
.a63-Button[data-variant='dashed'] {
|
|
439
|
+
--button-gloss: none;
|
|
440
|
+
--button-highlight: none;
|
|
441
|
+
--button-shadow: none;
|
|
442
|
+
--button-radius: var(--radius-pill);
|
|
443
|
+
--button-background: transparent;
|
|
333
444
|
--button-border-color: var(--a63-border-control);
|
|
334
|
-
--button-
|
|
335
|
-
--button-state-hover-
|
|
336
|
-
--button-state-
|
|
337
|
-
--button-state-active-
|
|
445
|
+
--button-foreground: var(--a63-text-primary);
|
|
446
|
+
--button-state-hover-background: var(--a63-control-outline-hover-background);
|
|
447
|
+
--button-state-hover-border-color: var(--a63-control-outline-hover-border);
|
|
448
|
+
--button-state-active-background: var(--a63-control-outline-hover-background);
|
|
449
|
+
--button-state-active-border-color: var(--a63-control-outline-hover-border);
|
|
450
|
+
border-style: dashed;
|
|
338
451
|
}
|
|
339
452
|
|
|
340
453
|
.a63-Button[data-variant='ghost'] {
|
|
@@ -348,6 +461,22 @@
|
|
|
348
461
|
--button-state-hover-border-color: transparent;
|
|
349
462
|
}
|
|
350
463
|
|
|
464
|
+
/* Muted tone: a quiet secondary action (toolbar, row and card-header actions).
|
|
465
|
+
The glyph and label rest in the secondary text colour and go to full contrast
|
|
466
|
+
under the pointer, on keyboard focus, while pressed and while its menu is open.
|
|
467
|
+
Only ghost reads the tone. */
|
|
468
|
+
.a63-Button[data-variant='ghost'][data-tone='muted'] {
|
|
469
|
+
--button-foreground: var(--a63-text-secondary);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.a63-Button[data-variant='ghost'][data-tone='muted']:where(:not(:disabled, [data-disabled])):hover,
|
|
473
|
+
.a63-Button[data-variant='ghost'][data-tone='muted']:focus-visible,
|
|
474
|
+
.a63-Button[data-variant='ghost'][data-tone='muted']:active,
|
|
475
|
+
.a63-Button[data-variant='ghost'][data-tone='muted'][data-pressed],
|
|
476
|
+
.a63-Button[data-variant='ghost'][data-tone='muted'][aria-expanded='true'] {
|
|
477
|
+
--button-foreground: var(--a63-text-primary);
|
|
478
|
+
}
|
|
479
|
+
|
|
351
480
|
.a63-Button[data-variant='link'] {
|
|
352
481
|
--button-gloss: none;
|
|
353
482
|
--button-highlight: none;
|
|
@@ -525,7 +654,7 @@
|
|
|
525
654
|
keep the `--button-height: max(` guard in recipes.test.ts matching; custom
|
|
526
655
|
property order within a rule does not affect resolution. */
|
|
527
656
|
--button-content-lh: var(--typography-xs-line-height);
|
|
528
|
-
--button-icon-size: var(--a63-control-icon-size-xs);
|
|
657
|
+
--button-icon-size: var(--a63-control-icon-only-size-xs);
|
|
529
658
|
}
|
|
530
659
|
|
|
531
660
|
.a63-Button[data-size='icon-sm'] {
|
|
@@ -535,7 +664,7 @@
|
|
|
535
664
|
var(--button-content-floor)
|
|
536
665
|
);
|
|
537
666
|
--button-content-lh: var(--typography-xs-line-height);
|
|
538
|
-
--button-icon-size: var(--a63-control-icon-size-sm);
|
|
667
|
+
--button-icon-size: var(--a63-control-icon-only-size-sm);
|
|
539
668
|
}
|
|
540
669
|
|
|
541
670
|
.a63-Button[data-size='icon'] {
|
|
@@ -544,7 +673,7 @@
|
|
|
544
673
|
var(--a63-control-min-size),
|
|
545
674
|
var(--button-content-floor)
|
|
546
675
|
);
|
|
547
|
-
--button-icon-size: var(--a63-control-icon-size-md);
|
|
676
|
+
--button-icon-size: var(--a63-control-icon-only-size-md);
|
|
548
677
|
}
|
|
549
678
|
|
|
550
679
|
.a63-Button[data-size='icon-lg'] {
|
|
@@ -554,7 +683,7 @@
|
|
|
554
683
|
var(--button-content-floor)
|
|
555
684
|
);
|
|
556
685
|
--button-content-lh: var(--typography-base-line-height);
|
|
557
|
-
--button-icon-size: var(--a63-control-icon-size-lg);
|
|
686
|
+
--button-icon-size: var(--a63-control-icon-only-size-lg);
|
|
558
687
|
}
|
|
559
688
|
|
|
560
689
|
.a63-Button[data-size='icon-xl'] {
|
|
@@ -564,7 +693,7 @@
|
|
|
564
693
|
var(--button-content-floor)
|
|
565
694
|
);
|
|
566
695
|
--button-content-lh: var(--typography-lg-line-height);
|
|
567
|
-
--button-icon-size: var(--a63-control-icon-size-xl);
|
|
696
|
+
--button-icon-size: var(--a63-control-icon-only-size-xl);
|
|
568
697
|
}
|
|
569
698
|
|
|
570
699
|
.a63-Button :where(svg) {
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
padding: 0;
|
|
163
163
|
font-size: var(--a63-control-font-size-xs);
|
|
164
164
|
font-weight: 500;
|
|
165
|
-
color:
|
|
165
|
+
color: var(--a63-text-secondary);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.a63-Calendar-day {
|
|
@@ -221,8 +221,12 @@
|
|
|
221
221
|
border-end-start-radius: 0;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/* Outside
|
|
225
|
-
|
|
224
|
+
/* Outside days read in the secondary text colour, which keeps AA contrast;
|
|
225
|
+
disabled dates are fainter (inactive controls have no contrast floor) and
|
|
226
|
+
strike through. */
|
|
227
|
+
.a63-Calendar-outside .a63-Calendar-day-button {
|
|
228
|
+
color: var(--a63-text-secondary);
|
|
229
|
+
}
|
|
226
230
|
.a63-Calendar-day[data-disabled] .a63-Calendar-day-button {
|
|
227
231
|
color: color-mix(in oklch, var(--a63-text-secondary) 72%, transparent);
|
|
228
232
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Card recipe — the SURFACE archetype's rich consumer, ported from the site's
|
|
3
3
|
* base-card. Resting elevation reads the --a63-surface-shadow lever; bg/border/
|
|
4
|
-
* radius/text resolve from semantics at the use-site. Variants (default/
|
|
5
|
-
* interactive/overlay) + a padding scale + media/text/footer slots mirror
|
|
4
|
+
* radius/text resolve from semantics at the use-site. Variants (default/filled/
|
|
5
|
+
* elevated/ghost/interactive/overlay) + a padding scale + media/text/footer slots mirror
|
|
6
6
|
* base-card. Media radius stays concentric via calc(card-radius - card-pad) — the
|
|
7
7
|
* root publishes both custom props and children inherit them (no JS chrome ctx).
|
|
8
8
|
*/
|
|
@@ -44,6 +44,22 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/* ── Variants ──────────────────────────────────────────────────────────── */
|
|
47
|
+
|
|
48
|
+
/* filled: one boundary, the fill. The muted surface with no border or shadow,
|
|
49
|
+
for a card on a white page. */
|
|
50
|
+
.a63-Card[data-variant='filled'] {
|
|
51
|
+
border-color: transparent;
|
|
52
|
+
background-color: var(--a63-surface-muted);
|
|
53
|
+
box-shadow: var(--a63-surface-inner-shadow, none);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* elevated: one boundary, the shadow. The panel fill with a soft lift and no
|
|
57
|
+
border, for a white card on a tinted or grey ground. */
|
|
58
|
+
.a63-Card[data-variant='elevated'] {
|
|
59
|
+
border-color: transparent;
|
|
60
|
+
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-raised-shadow);
|
|
61
|
+
}
|
|
62
|
+
|
|
47
63
|
.a63-Card[data-variant='overlay'] {
|
|
48
64
|
--a63-card-radius: var(--radius-2xl);
|
|
49
65
|
}
|
|
@@ -65,7 +81,7 @@
|
|
|
65
81
|
border-color: var(--a63-border-control);
|
|
66
82
|
box-shadow:
|
|
67
83
|
var(--a63-surface-shadow),
|
|
68
|
-
0 12px 24px -8px color-mix(in oklch,
|
|
84
|
+
0 12px 24px -8px color-mix(in oklch, var(--a63-shadow-color) 22%, transparent);
|
|
69
85
|
}
|
|
70
86
|
|
|
71
87
|
/* ghost: no shell — a scaled pseudo hover wash instead */
|
|
@@ -171,8 +187,8 @@
|
|
|
171
187
|
pointer-events: none;
|
|
172
188
|
background: linear-gradient(
|
|
173
189
|
to top,
|
|
174
|
-
color-mix(in oklch,
|
|
175
|
-
color-mix(in oklch,
|
|
190
|
+
color-mix(in oklch, var(--a63-media-stage) 75%, transparent),
|
|
191
|
+
color-mix(in oklch, var(--a63-media-stage) 25%, transparent) 50%,
|
|
176
192
|
transparent
|
|
177
193
|
);
|
|
178
194
|
}
|
|
@@ -180,7 +196,7 @@
|
|
|
180
196
|
.a63-Card-media-overlay-top-right {
|
|
181
197
|
position: absolute;
|
|
182
198
|
top: 0.75rem;
|
|
183
|
-
|
|
199
|
+
inset-inline-end: 0.75rem;
|
|
184
200
|
z-index: 10;
|
|
185
201
|
}
|
|
186
202
|
|
|
@@ -202,9 +218,9 @@
|
|
|
202
218
|
justify-content: center;
|
|
203
219
|
width: 2rem;
|
|
204
220
|
height: 2rem;
|
|
205
|
-
border-radius: var(--radius-
|
|
206
|
-
background-color: color-mix(in oklch,
|
|
207
|
-
color:
|
|
221
|
+
border-radius: var(--radius-pill);
|
|
222
|
+
background-color: color-mix(in oklch, var(--a63-on-media-foreground) 10%, transparent);
|
|
223
|
+
color: var(--a63-on-media-foreground);
|
|
208
224
|
backdrop-filter: blur(4px);
|
|
209
225
|
}
|
|
210
226
|
.a63-Card-media-overlay-icon-button svg {
|
|
@@ -397,7 +413,7 @@
|
|
|
397
413
|
align-items: center;
|
|
398
414
|
gap: var(--a63-space-1);
|
|
399
415
|
padding: var(--a63-space-1) var(--a63-space-2);
|
|
400
|
-
border-radius: var(--radius-
|
|
416
|
+
border-radius: var(--radius-pill);
|
|
401
417
|
background-color: var(--a63-text-primary);
|
|
402
418
|
color: var(--a63-surface-page);
|
|
403
419
|
font-size: 0.75rem;
|