@atom63/ui-react 0.2.0-beta.14 → 0.2.0-beta.16
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/dist/chart/index.d.ts +48 -0
- package/dist/chart/index.js +309 -0
- package/dist/chart/index.js.map +1 -0
- package/dist/chunk-3LGXD3HE.js +450 -0
- package/dist/chunk-3LGXD3HE.js.map +1 -0
- package/dist/{chunk-ASV4A4YB.js → chunk-4HE5IB6K.js} +4 -12
- package/dist/chunk-4HE5IB6K.js.map +1 -0
- package/dist/chunk-6HKGC3HE.js +3 -0
- package/dist/chunk-6HKGC3HE.js.map +1 -0
- package/dist/chunk-6VV4EBOO.js +25 -0
- package/dist/chunk-6VV4EBOO.js.map +1 -0
- package/dist/{chunk-GRRWPMZI.js → chunk-77CBRRVT.js} +47 -7
- package/dist/chunk-77CBRRVT.js.map +1 -0
- package/dist/{chunk-IXWOWQBP.js → chunk-ALARPBUL.js} +5 -22
- package/dist/chunk-ALARPBUL.js.map +1 -0
- package/dist/{chunk-L5KFLZUC.js → chunk-BQONJKNA.js} +4 -4
- package/dist/{chunk-L5KFLZUC.js.map → chunk-BQONJKNA.js.map} +1 -1
- package/dist/{chunk-CFFGYLY3.js → chunk-CO6KHYO5.js} +26 -4
- package/dist/chunk-CO6KHYO5.js.map +1 -0
- package/dist/chunk-FHL2NLXP.js +101 -0
- package/dist/chunk-FHL2NLXP.js.map +1 -0
- package/dist/chunk-HPUHI2YJ.js +69 -0
- package/dist/chunk-HPUHI2YJ.js.map +1 -0
- package/dist/{chunk-BSDSLG3L.js → chunk-IEHYTNLS.js} +7 -4
- package/dist/chunk-IEHYTNLS.js.map +1 -0
- package/dist/{chunk-TAXYD4I4.js → chunk-IPUBANIB.js} +3 -2
- package/dist/chunk-IPUBANIB.js.map +1 -0
- package/dist/chunk-QU33S646.js +118 -0
- package/dist/chunk-QU33S646.js.map +1 -0
- package/dist/{chunk-WLLPGOQ7.js → chunk-SL6J2Y6I.js} +18 -6
- package/dist/chunk-SL6J2Y6I.js.map +1 -0
- package/dist/{chunk-3R74FOXV.js → chunk-VUUSD5AG.js} +3 -3
- package/dist/{chunk-3R74FOXV.js.map → chunk-VUUSD5AG.js.map} +1 -1
- package/dist/{chunk-CJAWGKA5.js → chunk-Y52BV635.js} +16 -4
- package/dist/chunk-Y52BV635.js.map +1 -0
- package/dist/components/art-plate/index.js +7 -0
- package/dist/components/art-plate/index.js.map +1 -0
- package/dist/components/command/index.js +1 -1
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/feedback-state/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/layered-scene/index.js +7 -0
- package/dist/components/layered-scene/index.js.map +1 -0
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/segmented-control/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +3 -3
- package/dist/components/sidebar-nav-tree/index.js +4 -4
- package/dist/components/table/index.js +2 -1
- package/dist/{index-DlcaeyJS.d.ts → index-B0PHovoW.d.ts} +10 -3
- package/dist/index.d.ts +123 -11
- package/dist/index.js +35 -30
- package/dist/media/index.d.ts +24 -3
- package/dist/media/index.js +9 -361
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-lightbox/parts/index.js +2 -1
- package/dist/preview/index.d.ts +1 -1
- package/dist/preview/index.js +7 -7
- package/dist/theme/index.d.ts +6 -2
- package/dist/theme/index.js +10 -1
- package/dist/theme/index.js.map +1 -1
- package/package.json +11 -3
- package/src/components/alert-dialog/alert-dialog.css +1 -1
- package/src/components/art-plate/art-plate.css +172 -0
- package/src/components/autocomplete/autocomplete.css +21 -11
- package/src/components/chart/chart.css +316 -0
- package/src/components/checkbox/checkbox.css +1 -1
- package/src/components/command/command.css +13 -0
- package/src/components/feedback-state/feedback-state.css +2 -1
- package/src/components/field/field.css +1 -1
- package/src/components/form/form.css +1 -1
- package/src/components/input/input.css +3 -3
- package/src/components/input-otp/input-otp.css +3 -3
- package/src/components/layered-scene/layered-scene.css +117 -0
- package/src/components/load-more-trigger/load-more-trigger.css +4 -2
- package/src/components/radio/radio.css +1 -1
- package/src/components/rating/rating.css +18 -17
- package/src/components/segmented-control/segmented-control.css +11 -11
- package/src/components/select/select.css +3 -3
- package/src/components/table/table.css +5 -0
- package/src/components/textarea/textarea.css +3 -3
- package/src/styles/recipes.css +3 -0
- package/dist/chunk-ASV4A4YB.js.map +0 -1
- package/dist/chunk-BSDSLG3L.js.map +0 -1
- package/dist/chunk-CFFGYLY3.js.map +0 -1
- package/dist/chunk-CJAWGKA5.js.map +0 -1
- package/dist/chunk-GRRWPMZI.js.map +0 -1
- package/dist/chunk-IXWOWQBP.js.map +0 -1
- package/dist/chunk-T7FUZUZO.js +0 -70
- package/dist/chunk-T7FUZUZO.js.map +0 -1
- package/dist/chunk-TAXYD4I4.js.map +0 -1
- package/dist/chunk-WLLPGOQ7.js.map +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ArtPlate recipe — the SURFACE archetype. Levers: `data-size` (block size and
|
|
3
|
+
* shape), `data-safe-area` (where the content region sits), `data-tone` (theme
|
|
4
|
+
* text or on-media text), `data-veil` (gradient behind the safe area),
|
|
5
|
+
* `data-parallax` (scroll-driven drift). The focal point arrives as
|
|
6
|
+
* `--a63-art-plate-focus` / `--a63-art-plate-focus-mobile` from the component.
|
|
7
|
+
* Tokens only: no literal colors, logical directions, and focus styles on
|
|
8
|
+
* :focus-visible (`pnpm check:craft`).
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.a63-ArtPlate {
|
|
12
|
+
--a63-art-plate-veil-color: var(--a63-surface-page);
|
|
13
|
+
--a63-art-plate-veil-strength: 0%;
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
isolation: isolate;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
display: grid;
|
|
19
|
+
overflow: clip;
|
|
20
|
+
min-block-size: 100svh;
|
|
21
|
+
background-color: var(--a63-surface-page);
|
|
22
|
+
color: var(--a63-text-primary);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.a63-ArtPlate[data-size='band'] {
|
|
26
|
+
min-block-size: 75svh;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.a63-ArtPlate[data-size='card'] {
|
|
30
|
+
min-block-size: 0;
|
|
31
|
+
aspect-ratio: 4 / 5;
|
|
32
|
+
border-radius: var(--radius-3xl);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (min-width: 768px) {
|
|
36
|
+
.a63-ArtPlate[data-size='card'] {
|
|
37
|
+
aspect-ratio: 16 / 9;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.a63-ArtPlate[data-tone='media'] {
|
|
42
|
+
--a63-art-plate-veil-color: var(--a63-media-scrim);
|
|
43
|
+
|
|
44
|
+
background-color: var(--a63-media-stage);
|
|
45
|
+
color: var(--a63-on-media-foreground);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Picture */
|
|
49
|
+
|
|
50
|
+
.a63-ArtPlate-image {
|
|
51
|
+
position: absolute;
|
|
52
|
+
inset: 0;
|
|
53
|
+
z-index: var(--z-layer-below);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.a63-ArtPlate-image img {
|
|
57
|
+
object-position: var(--a63-art-plate-focus, 50% 50%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (max-width: 767px) {
|
|
61
|
+
.a63-ArtPlate-image img {
|
|
62
|
+
object-position: var(--a63-art-plate-focus-mobile, var(--a63-art-plate-focus, 50% 50%));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Veil: a gradient from the safe-area edge, under the content. */
|
|
67
|
+
|
|
68
|
+
.a63-ArtPlate[data-veil='soft'] {
|
|
69
|
+
--a63-art-plate-veil-strength: 55%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.a63-ArtPlate[data-veil='strong'] {
|
|
73
|
+
--a63-art-plate-veil-strength: 85%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.a63-ArtPlate:not([data-veil='none'])::before {
|
|
77
|
+
--a63-art-plate-veil: color-mix(
|
|
78
|
+
in oklch,
|
|
79
|
+
var(--a63-art-plate-veil-color) var(--a63-art-plate-veil-strength),
|
|
80
|
+
transparent
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
content: '';
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset: 0;
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
background-image: linear-gradient(to bottom, var(--a63-art-plate-veil), transparent 60%);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.a63-ArtPlate[data-safe-area='bottom']:not([data-veil='none'])::before {
|
|
91
|
+
background-image: linear-gradient(to top, var(--a63-art-plate-veil), transparent 60%);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.a63-ArtPlate[data-safe-area='center']:not([data-veil='none'])::before {
|
|
95
|
+
background-image: radial-gradient(closest-side, var(--a63-art-plate-veil), transparent);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.a63-ArtPlate[data-safe-area='start']:not([data-veil='none'])::before {
|
|
99
|
+
background-image: linear-gradient(to right, var(--a63-art-plate-veil), transparent 70%);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.a63-ArtPlate[data-safe-area='end']:not([data-veil='none'])::before {
|
|
103
|
+
background-image: linear-gradient(to left, var(--a63-art-plate-veil), transparent 70%);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.a63-ArtPlate[data-safe-area='start']:dir(rtl):not([data-veil='none'])::before {
|
|
107
|
+
background-image: linear-gradient(to left, var(--a63-art-plate-veil), transparent 70%);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.a63-ArtPlate[data-safe-area='end']:dir(rtl):not([data-veil='none'])::before {
|
|
111
|
+
background-image: linear-gradient(to right, var(--a63-art-plate-veil), transparent 70%);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Content region, placed in the safe area. */
|
|
115
|
+
|
|
116
|
+
.a63-ArtPlate-content {
|
|
117
|
+
position: relative;
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
display: grid;
|
|
120
|
+
align-content: start;
|
|
121
|
+
inline-size: 100%;
|
|
122
|
+
padding-block: var(--spacing-24) var(--spacing-16);
|
|
123
|
+
padding-inline: var(--a63-space-6);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.a63-ArtPlate[data-size='card'] .a63-ArtPlate-content {
|
|
127
|
+
padding: var(--spacing-10);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.a63-ArtPlate[data-safe-area='bottom'] .a63-ArtPlate-content {
|
|
131
|
+
align-content: end;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.a63-ArtPlate[data-safe-area='center'] .a63-ArtPlate-content {
|
|
135
|
+
align-content: center;
|
|
136
|
+
justify-items: center;
|
|
137
|
+
text-align: center;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (min-width: 768px) {
|
|
141
|
+
.a63-ArtPlate[data-safe-area='start'] .a63-ArtPlate-content,
|
|
142
|
+
.a63-ArtPlate[data-safe-area='end'] .a63-ArtPlate-content {
|
|
143
|
+
align-content: center;
|
|
144
|
+
inline-size: 50%;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.a63-ArtPlate[data-safe-area='end'] .a63-ArtPlate-content {
|
|
148
|
+
justify-self: end;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Parallax: the picture drifts slower than the page, about 5% of the scroll. */
|
|
153
|
+
|
|
154
|
+
@keyframes a63-art-plate-drift {
|
|
155
|
+
from {
|
|
156
|
+
translate: 0 -5%;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
to {
|
|
160
|
+
translate: 0 5%;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
165
|
+
@supports (animation-timeline: view()) {
|
|
166
|
+
.a63-ArtPlate[data-parallax] .a63-ArtPlate-image {
|
|
167
|
+
inset-block: -6%;
|
|
168
|
+
animation: a63-art-plate-drift linear both;
|
|
169
|
+
animation-timeline: view();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
color: var(--a63-text-primary);
|
|
14
14
|
font-family: var(--a63-control-font-family);
|
|
15
|
+
--autocomplete-adornment-size: max(
|
|
16
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
17
|
+
var(--a63-control-min-size)
|
|
18
|
+
);
|
|
15
19
|
}
|
|
16
20
|
.a63-Autocomplete-input-group:has(:disabled) {
|
|
17
21
|
opacity: 0.64;
|
|
@@ -66,9 +70,9 @@
|
|
|
66
70
|
/* Invalid: the same danger edge as .a63-Input[data-invalid] (input.css). */
|
|
67
71
|
.a63-Autocomplete-input[data-invalid],
|
|
68
72
|
.a63-Autocomplete-input[aria-invalid='true'] {
|
|
69
|
-
--autocomplete-border:
|
|
70
|
-
--autocomplete-focus-border: var(--a63-
|
|
71
|
-
--autocomplete-focus-ring:
|
|
73
|
+
--autocomplete-border: var(--a63-border-danger);
|
|
74
|
+
--autocomplete-focus-border: var(--a63-status-danger);
|
|
75
|
+
--autocomplete-focus-ring: var(--a63-status-danger);
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
.a63-Autocomplete-input[data-has-start-addon] {
|
|
@@ -79,6 +83,13 @@
|
|
|
79
83
|
.a63-Autocomplete-input-group:has(.a63-Autocomplete-adornment) .a63-Autocomplete-input {
|
|
80
84
|
padding-inline-end: 2rem;
|
|
81
85
|
}
|
|
86
|
+
/* trigger and clear together: room for both, side by side */
|
|
87
|
+
.a63-Autocomplete-input-group:has([data-slot='autocomplete-trigger']):has(
|
|
88
|
+
[data-slot='autocomplete-clear']
|
|
89
|
+
)
|
|
90
|
+
.a63-Autocomplete-input {
|
|
91
|
+
padding-inline-end: calc(2 * var(--autocomplete-adornment-size) + 0.125rem);
|
|
92
|
+
}
|
|
82
93
|
|
|
83
94
|
.a63-Autocomplete-input-group[data-size='sm'] .a63-Autocomplete-input {
|
|
84
95
|
--autocomplete-content-lh: var(--typography-xs-line-height);
|
|
@@ -127,14 +138,8 @@
|
|
|
127
138
|
flex-shrink: 0;
|
|
128
139
|
align-items: center;
|
|
129
140
|
justify-content: center;
|
|
130
|
-
width:
|
|
131
|
-
|
|
132
|
-
var(--a63-control-min-size)
|
|
133
|
-
);
|
|
134
|
-
height: max(
|
|
135
|
-
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
136
|
-
var(--a63-control-min-size)
|
|
137
|
-
);
|
|
141
|
+
width: var(--autocomplete-adornment-size);
|
|
142
|
+
height: var(--autocomplete-adornment-size);
|
|
138
143
|
border: 1px solid transparent;
|
|
139
144
|
border-radius: var(--radius-md);
|
|
140
145
|
background: transparent;
|
|
@@ -146,6 +151,11 @@
|
|
|
146
151
|
color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
147
152
|
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
148
153
|
}
|
|
154
|
+
/* With a trigger present, the clear button sits to its inline start, not on top of it. */
|
|
155
|
+
.a63-Autocomplete-input-group:has([data-slot='autocomplete-trigger'])
|
|
156
|
+
[data-slot='autocomplete-clear'] {
|
|
157
|
+
inset-inline-end: calc(0.125rem + var(--autocomplete-adornment-size));
|
|
158
|
+
}
|
|
149
159
|
.a63-Autocomplete-adornment:hover {
|
|
150
160
|
opacity: 1;
|
|
151
161
|
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Chart recipe — the SURFACE archetype. A chart draws on the surface it sits in
|
|
3
|
+
* (a Card, a panel) and adds no box of its own. Series colours read
|
|
4
|
+
* --a63-chart-1..5; gridlines --a63-border-subtle and the zero line
|
|
5
|
+
* --a63-border-control; axis text --a63-text-tertiary at the xs control size;
|
|
6
|
+
* the tooltip the overlay levers (--a63-surface-overlay, --a63-overlay-*); the
|
|
7
|
+
* active band --a63-surface-muted; the focus ring --a63-focus-ring. The marks
|
|
8
|
+
* are SVG in a 100 × 100 box stretched to the plot, so strokes keep their width
|
|
9
|
+
* with vector-effect: non-scaling-stroke. In right-to-left text the marks
|
|
10
|
+
* mirror, and the HTML axis, dots and tooltip follow logical properties.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.a63-Chart {
|
|
14
|
+
--chart-plot-height: 15rem;
|
|
15
|
+
|
|
16
|
+
container-type: inline-size;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: var(--a63-space-3);
|
|
20
|
+
min-width: 0;
|
|
21
|
+
margin: 0;
|
|
22
|
+
color: var(--a63-text-primary);
|
|
23
|
+
font-family: var(--a63-control-font-family);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.a63-Chart[data-size='sm'] {
|
|
27
|
+
--chart-plot-height: 10rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.a63-Chart [data-color='1'] {
|
|
31
|
+
--chart-color: var(--a63-chart-1);
|
|
32
|
+
}
|
|
33
|
+
.a63-Chart [data-color='2'] {
|
|
34
|
+
--chart-color: var(--a63-chart-2);
|
|
35
|
+
}
|
|
36
|
+
.a63-Chart [data-color='3'] {
|
|
37
|
+
--chart-color: var(--a63-chart-3);
|
|
38
|
+
}
|
|
39
|
+
.a63-Chart [data-color='4'] {
|
|
40
|
+
--chart-color: var(--a63-chart-4);
|
|
41
|
+
}
|
|
42
|
+
.a63-Chart [data-color='5'] {
|
|
43
|
+
--chart-color: var(--a63-chart-5);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.a63-Chart-legend {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-wrap: wrap;
|
|
49
|
+
gap: var(--a63-space-1) var(--a63-space-4);
|
|
50
|
+
margin: 0;
|
|
51
|
+
padding: 0;
|
|
52
|
+
list-style: none;
|
|
53
|
+
color: var(--a63-text-secondary);
|
|
54
|
+
font-size: var(--a63-control-font-size-xs);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.a63-Chart-legend-item {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: var(--a63-space-2);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.a63-Chart-swatch {
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
width: 0.75rem;
|
|
66
|
+
height: 0.75rem;
|
|
67
|
+
overflow: visible;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.a63-Chart-swatch .a63-Chart-line {
|
|
71
|
+
stroke-width: 3;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.a63-Chart-frame {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
77
|
+
column-gap: var(--a63-space-3);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.a63-Chart-y-axis {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
height: var(--chart-plot-height);
|
|
85
|
+
color: var(--a63-text-tertiary);
|
|
86
|
+
font-size: var(--a63-control-font-size-xs);
|
|
87
|
+
font-variant-numeric: tabular-nums;
|
|
88
|
+
line-height: 1;
|
|
89
|
+
text-align: end;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Each tick is centred on its gridline. */
|
|
93
|
+
.a63-Chart-tick {
|
|
94
|
+
margin-block: -0.5em;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.a63-Chart-plot {
|
|
98
|
+
position: relative;
|
|
99
|
+
height: var(--chart-plot-height);
|
|
100
|
+
border-radius: var(--a63-control-radius);
|
|
101
|
+
touch-action: pan-y;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.a63-Chart-plot:focus-visible {
|
|
105
|
+
outline: var(--a63-control-focus-ring-width, 2px) solid var(--a63-focus-ring);
|
|
106
|
+
outline-offset: var(--a63-space-1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.a63-Chart-marks {
|
|
110
|
+
position: absolute;
|
|
111
|
+
inset: 0;
|
|
112
|
+
width: 100%;
|
|
113
|
+
height: 100%;
|
|
114
|
+
overflow: visible;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.a63-Chart:dir(rtl) .a63-Chart-marks {
|
|
118
|
+
transform: scaleX(-1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.a63-Chart-grid {
|
|
122
|
+
stroke: var(--a63-border-subtle);
|
|
123
|
+
stroke-width: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.a63-Chart-baseline {
|
|
127
|
+
stroke: var(--a63-border-control);
|
|
128
|
+
stroke-width: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.a63-Chart-band {
|
|
132
|
+
fill: var(--a63-surface-muted);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.a63-Chart-guide {
|
|
136
|
+
stroke: var(--a63-border-control);
|
|
137
|
+
stroke-width: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.a63-Chart-bar {
|
|
141
|
+
fill: var(--chart-color);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.a63-Chart-line {
|
|
145
|
+
fill: none;
|
|
146
|
+
stroke: var(--chart-color);
|
|
147
|
+
stroke-width: 2;
|
|
148
|
+
stroke-linejoin: round;
|
|
149
|
+
stroke-linecap: round;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.a63-Chart-area {
|
|
153
|
+
fill: color-mix(in oklab, var(--chart-color) 16%, transparent);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.a63-Chart[data-stacked] .a63-Chart-area {
|
|
157
|
+
fill: color-mix(in oklab, var(--chart-color) 40%, transparent);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* The active category's point on each line: a dot ringed in the surface colour. */
|
|
161
|
+
.a63-Chart-dot {
|
|
162
|
+
position: absolute;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
width: 0.625rem;
|
|
165
|
+
height: 0.625rem;
|
|
166
|
+
margin-block-start: -0.3125rem;
|
|
167
|
+
margin-inline-start: -0.3125rem;
|
|
168
|
+
border: 2px solid var(--a63-surface-panel);
|
|
169
|
+
border-radius: 50%;
|
|
170
|
+
background-color: var(--chart-color);
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.a63-Chart-tooltip {
|
|
175
|
+
position: absolute;
|
|
176
|
+
z-index: 1;
|
|
177
|
+
inset-block-start: 0;
|
|
178
|
+
box-sizing: border-box;
|
|
179
|
+
display: grid;
|
|
180
|
+
gap: var(--a63-space-1);
|
|
181
|
+
min-width: 8rem;
|
|
182
|
+
max-width: min(16rem, 80cqi);
|
|
183
|
+
margin-inline: var(--a63-space-2);
|
|
184
|
+
padding-block: var(--a63-space-2);
|
|
185
|
+
padding-inline: var(--a63-space-3);
|
|
186
|
+
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
187
|
+
border-radius: var(--a63-overlay-radius, var(--radius-md));
|
|
188
|
+
background-color: var(--a63-surface-overlay);
|
|
189
|
+
box-shadow: var(--a63-overlay-shadow);
|
|
190
|
+
color: var(--a63-text-primary);
|
|
191
|
+
font-size: var(--a63-control-font-size-xs);
|
|
192
|
+
pointer-events: none;
|
|
193
|
+
animation: a63-chart-tooltip-in var(--a63-control-feedback-duration)
|
|
194
|
+
var(--a63-control-feedback-ease);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@keyframes a63-chart-tooltip-in {
|
|
198
|
+
from {
|
|
199
|
+
opacity: 0;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.a63-Chart-tooltip-title {
|
|
204
|
+
color: var(--a63-text-secondary);
|
|
205
|
+
font-weight: 500;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.a63-Chart-tooltip-row {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
gap: var(--a63-space-2);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.a63-Chart-tooltip-label {
|
|
215
|
+
flex: 1;
|
|
216
|
+
color: var(--a63-text-secondary);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.a63-Chart-tooltip-value {
|
|
220
|
+
font-variant-numeric: tabular-nums;
|
|
221
|
+
font-weight: 500;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.a63-Chart-x-axis {
|
|
225
|
+
display: grid;
|
|
226
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
227
|
+
grid-auto-flow: column;
|
|
228
|
+
margin-block-start: var(--a63-space-2);
|
|
229
|
+
color: var(--a63-text-tertiary);
|
|
230
|
+
font-size: var(--a63-control-font-size-xs);
|
|
231
|
+
text-align: center;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.a63-Chart-category {
|
|
235
|
+
overflow: hidden;
|
|
236
|
+
text-overflow: clip;
|
|
237
|
+
white-space: nowrap;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* On a narrow chart with many categories, every other label shows. */
|
|
241
|
+
@container (max-width: 32rem) {
|
|
242
|
+
.a63-Chart-x-axis[data-dense] > :nth-child(even) {
|
|
243
|
+
visibility: hidden;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.a63-Chart-table-toggle {
|
|
248
|
+
align-self: flex-start;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.a63-Chart-table:not([data-visible]),
|
|
252
|
+
.a63-Chart-sr-only {
|
|
253
|
+
position: absolute;
|
|
254
|
+
width: 1px;
|
|
255
|
+
height: 1px;
|
|
256
|
+
padding: 0;
|
|
257
|
+
margin: -1px;
|
|
258
|
+
overflow: hidden;
|
|
259
|
+
clip: rect(0, 0, 0, 0);
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
border-width: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* A visually hidden table must not scroll, or it is a scroll region a
|
|
265
|
+
keyboard cannot reach. */
|
|
266
|
+
.a63-Chart-table:not([data-visible]) [data-slot='table-container'] {
|
|
267
|
+
overflow: visible;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@media (prefers-reduced-motion: reduce) {
|
|
271
|
+
.a63-Chart-tooltip {
|
|
272
|
+
animation: none;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* Forced colours drop the series colours, so series keep apart by stroke
|
|
277
|
+
pattern: lines dash, bars are outlined with a dashed edge, in CanvasText. */
|
|
278
|
+
@media (forced-colors: active) {
|
|
279
|
+
.a63-Chart-line,
|
|
280
|
+
.a63-Chart-bar,
|
|
281
|
+
.a63-Chart-dot {
|
|
282
|
+
forced-color-adjust: none;
|
|
283
|
+
stroke: CanvasText;
|
|
284
|
+
}
|
|
285
|
+
.a63-Chart-bar {
|
|
286
|
+
fill: Canvas;
|
|
287
|
+
stroke-width: 1.5;
|
|
288
|
+
vector-effect: non-scaling-stroke;
|
|
289
|
+
}
|
|
290
|
+
.a63-Chart-area {
|
|
291
|
+
fill: transparent;
|
|
292
|
+
}
|
|
293
|
+
.a63-Chart-dot {
|
|
294
|
+
border-color: Canvas;
|
|
295
|
+
background-color: CanvasText;
|
|
296
|
+
}
|
|
297
|
+
.a63-Chart-band {
|
|
298
|
+
fill: Highlight;
|
|
299
|
+
opacity: 0.25;
|
|
300
|
+
}
|
|
301
|
+
.a63-Chart [data-color='2'] {
|
|
302
|
+
stroke-dasharray: 6 3;
|
|
303
|
+
}
|
|
304
|
+
.a63-Chart [data-color='3'] {
|
|
305
|
+
stroke-dasharray: 2 2;
|
|
306
|
+
}
|
|
307
|
+
.a63-Chart [data-color='4'] {
|
|
308
|
+
stroke-dasharray: 8 2 2 2;
|
|
309
|
+
}
|
|
310
|
+
.a63-Chart [data-color='5'] {
|
|
311
|
+
stroke-dasharray: 1 4;
|
|
312
|
+
}
|
|
313
|
+
.a63-Chart-plot:focus-visible {
|
|
314
|
+
outline-color: Highlight;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.a63-Checkbox[aria-invalid='true'] {
|
|
110
|
-
border-color:
|
|
110
|
+
border-color: var(--a63-border-danger);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/* ── Sizes (md is the base rule above) ─────────────────────────────────── */
|
|
@@ -69,6 +69,19 @@
|
|
|
69
69
|
transform: scale(0.98);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/* The dialog's default title: named for screen readers, not shown. */
|
|
73
|
+
.a63-Command-sr-only {
|
|
74
|
+
position: absolute;
|
|
75
|
+
inline-size: 1px;
|
|
76
|
+
block-size: 1px;
|
|
77
|
+
padding: 0;
|
|
78
|
+
margin: -1px;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
clip-path: inset(50%);
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
border-width: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
72
85
|
/* ── Input ─────────────────────────────────────────────────────────────── */
|
|
73
86
|
.a63-Command-input-wrapper {
|
|
74
87
|
display: flex;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
text-wrap: balance;
|
|
26
26
|
}
|
|
27
27
|
.a63-FeedbackState[data-state='error'] {
|
|
28
|
-
--feedback-accent: var(--a63-
|
|
28
|
+
--feedback-accent: var(--a63-status-danger);
|
|
29
29
|
}
|
|
30
30
|
.a63-FeedbackState[data-state='loading'] {
|
|
31
31
|
--feedback-accent: var(--a63-action-primary);
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
|
|
105
105
|
/* ── Title ─────────────────────────────────────────────────────────────── */
|
|
106
106
|
.a63-FeedbackState-title {
|
|
107
|
+
margin: 0;
|
|
107
108
|
color: var(--a63-text-primary);
|
|
108
109
|
font-size: var(--typography-base-font-size);
|
|
109
110
|
font-weight: 600;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Faithful to prod @atom63/ui field.tsx (flex column stacks, orientation
|
|
4
4
|
* variants, invalid-state recolor, muted description, destructive error) but
|
|
5
5
|
* spaced/colored with --a63-* semantic tokens. No new tokens: muted text →
|
|
6
|
-
* --a63-text-secondary, destructive → --a63-
|
|
6
|
+
* --a63-text-secondary, destructive → --a63-text-danger, container-query
|
|
7
7
|
* responsive orientation keyed off .a63-FieldGroup as the @container.
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Form recipe — react-hook-form field wrappers. Faithful to prod @atom63/ui
|
|
3
3
|
* form.tsx (grid item stack, error-recolored label, muted description,
|
|
4
4
|
* destructive message) recolored/spaced with --a63-* semantic tokens. No new
|
|
5
|
-
* tokens: muted → --a63-text-secondary, destructive → --a63-
|
|
5
|
+
* tokens: muted → --a63-text-secondary, destructive → --a63-text-danger.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
.a63-FormItem {
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
/* Mix danger toward TRANSPARENT, not the neutral border: an oklch mix between
|
|
141
141
|
danger (red) and the blue-ish neutral swings through magenta on the shortest
|
|
142
142
|
hue path. Mixing with transparent keeps the red hue and just softens it. */
|
|
143
|
-
--field-border:
|
|
144
|
-
--field-focus-border: var(--a63-
|
|
145
|
-
--field-focus-ring:
|
|
143
|
+
--field-border: var(--a63-border-danger);
|
|
144
|
+
--field-focus-border: var(--a63-status-danger);
|
|
145
|
+
--field-focus-ring: var(--a63-status-danger);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.a63-Input[data-disabled],
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
/* Invalid state — recolor the border + active ring to danger. */
|
|
82
82
|
.a63-InputOTP-slot[aria-invalid='true'],
|
|
83
83
|
.a63-InputOTP:has(.a63-InputOTP-input[aria-invalid='true']) .a63-InputOTP-slot {
|
|
84
|
-
--otp-border:
|
|
84
|
+
--otp-border: var(--a63-border-danger);
|
|
85
85
|
}
|
|
86
86
|
.a63-InputOTP-slot[aria-invalid='true'][data-active='true'],
|
|
87
87
|
.a63-InputOTP:has(.a63-InputOTP-input[aria-invalid='true']) .a63-InputOTP-slot[data-active='true'] {
|
|
88
|
-
border-color: var(--a63-
|
|
89
|
-
outline-color:
|
|
88
|
+
border-color: var(--a63-status-danger);
|
|
89
|
+
outline-color: var(--a63-status-danger);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/* Fake caret — a blinking hairline centered in the active empty slot. */
|