@apliteni/apliteni-ui 0.94.0 → 0.96.0
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/guidelines/accessibility-floor.md +3 -3
- package/guidelines/state-set.md +3 -3
- package/package.json +1 -1
- package/react/dist/index.css +19 -12
- package/react/dist/index.js +64 -1
- package/src/components/dropdown.js +243 -13
- package/src/index.d.ts +12 -0
- package/src/styles/back.css +2 -2
- package/src/styles/badge.css +11 -11
- package/src/styles/base.css +6 -6
- package/src/styles/button.css +16 -13
- package/src/styles/callout.css +11 -11
- package/src/styles/card.css +5 -5
- package/src/styles/code.css +15 -26
- package/src/styles/command-palette.css +13 -10
- package/src/styles/confirm.css +5 -5
- package/src/styles/drawer.css +6 -7
- package/src/styles/dropdown.css +53 -19
- package/src/styles/feedback.css +11 -11
- package/src/styles/file-drop.css +2 -2
- package/src/styles/filter-bar.css +10 -8
- package/src/styles/footer.css +12 -7
- package/src/styles/input.css +20 -12
- package/src/styles/layout.css +20 -20
- package/src/styles/loading.css +1 -1
- package/src/styles/motion.css +1 -1
- package/src/styles/nav.css +18 -18
- package/src/styles/pagination.css +6 -1
- package/src/styles/segmented.css +26 -18
- package/src/styles/success.css +4 -4
- package/src/styles/table.css +10 -10
- package/src/styles/tabs.css +2 -2
- package/src/styles/tooltip.css +1 -1
- package/src/styles/topbar.css +30 -22
- package/src/tokens/tokens.css +23 -31
package/src/tokens/tokens.css
CHANGED
|
@@ -254,27 +254,32 @@
|
|
|
254
254
|
reading one gets nothing rather than an unresolved var(), and a consumer who wants a
|
|
255
255
|
cast shadow sets them. Nothing in src/ reads them.
|
|
256
256
|
|
|
257
|
-
A transparent shadow, not `none`, because these are read in a LIST
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
257
|
+
A transparent shadow, not `none`, because these are read in a LIST — a surface's
|
|
258
|
+
edge and its drop are two layers of one declaration — and `none` is valid only
|
|
259
|
+
alone, so it makes the whole declaration invalid and takes the layers beside it
|
|
260
|
+
with it. `0 0 #0000` composes. why: docs/foundations.md#elevation */
|
|
261
261
|
--shadow-sm: 0 0 #0000;
|
|
262
262
|
--shadow-md: 0 0 #0000;
|
|
263
263
|
--shadow-lg: 0 0 #0000;
|
|
264
264
|
--shadow-seg: 0 0 #0000;
|
|
265
265
|
--shadow-card: 0 0 #0000;
|
|
266
|
-
/*
|
|
266
|
+
/* ONE band, drawn as a real OUTLINE, and no halo. Artur took the halo off on #578
|
|
267
|
+
after #557 drew a scroll region's band without one. An outline leaves its offset
|
|
268
|
+
UNPAINTED, so the 1px between the control and the band is whatever surface the
|
|
269
|
+
control is already standing on — which is what retired --ring-gap and the
|
|
270
|
+
per-surface recomposition behind it, and what leaves forced colors a real outline
|
|
271
|
+
to repaint instead of a transparent stand-in.
|
|
272
|
+
why: docs/foundations.md#the-focus-ring */
|
|
267
273
|
--ring-width: 2px;
|
|
268
274
|
--ring-color: var(--accent);
|
|
269
275
|
--ring-gap-width: 1px;
|
|
270
|
-
--ring
|
|
271
|
-
--ring:
|
|
272
|
-
/* What a scroll region inside a surface takes:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
--ring-scroll: var(--ring-width) solid var(--ring-color);
|
|
276
|
+
--ring: var(--ring-width) solid var(--ring-color);
|
|
277
|
+
--ring-offset: var(--ring-gap-width);
|
|
278
|
+
/* What a scroll region inside a surface takes: the same band, drawn inward rather
|
|
279
|
+
than outward, because an inset shadow is painted under the box's own children and
|
|
280
|
+
a table scrolled under one erases it. Only the offset differs. Chosen by Artur on
|
|
281
|
+
#531 round r30. why: docs/foundations.md#the-focus-ring */
|
|
282
|
+
--ring-scroll: var(--ring);
|
|
278
283
|
--ring-scroll-offset: calc(-1 * (var(--ring-gap-width) + var(--ring-width)));
|
|
279
284
|
|
|
280
285
|
/* The ink a cast shadow is made of, and the specular white that reads as gloss on a
|
|
@@ -297,7 +302,7 @@
|
|
|
297
302
|
/* The ladder's two resting rungs, which only light climbs. Transparent here and
|
|
298
303
|
not `none`, for the reason the deprecated --shadow-* tokens are: these are read
|
|
299
304
|
in a layer list, and `none` is valid only alone — it would invalidate the whole
|
|
300
|
-
declaration and take the
|
|
305
|
+
declaration and take the layers beside it with it. why: docs/foundations.md#elevation */
|
|
301
306
|
--elev-rest: 0 0 #0000; /* a card */
|
|
302
307
|
--elev-rail: 0 0 #0000; /* the shell's rail, cast sideways */
|
|
303
308
|
|
|
@@ -436,7 +441,7 @@
|
|
|
436
441
|
--shadow-lg: 0 0 #0000;
|
|
437
442
|
--shadow-seg: 0 0 #0000;
|
|
438
443
|
--shadow-card: 0 0 #0000;
|
|
439
|
-
/* No --ring here. :root's is var(--accent), and light re-points --accent. */
|
|
444
|
+
/* No --ring here. :root's band is var(--accent), and light re-points --accent. */
|
|
440
445
|
|
|
441
446
|
--shadow-ink: #1e1e32;
|
|
442
447
|
--sheen: #ffffff;
|
|
@@ -505,11 +510,9 @@
|
|
|
505
510
|
* Held by stories/code-chip.test.js. why: docs/foundations.md#elevation */
|
|
506
511
|
:root { --code-bg: var(--surface); }
|
|
507
512
|
|
|
508
|
-
/*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
* chip cannot both paint --code-bg and re-point it, and its gap has to be the surface it
|
|
512
|
-
* actually paints. why: docs/foundations.md#the-focus-ring */
|
|
513
|
+
/* Every painted container hands an inline code chip the page. One recipe keeps surface
|
|
514
|
+
* propagation cheap and consistent. The ring is not in this list since #578: an outline
|
|
515
|
+
* paints no gap of its own, so a focused control needs nothing handed down to it. */
|
|
513
516
|
.amenu,
|
|
514
517
|
.dtsw,
|
|
515
518
|
.rx-modal,
|
|
@@ -542,7 +545,6 @@
|
|
|
542
545
|
.ui-toast--outline,
|
|
543
546
|
.ui-toast--solid,
|
|
544
547
|
.vsw__menu {
|
|
545
|
-
--ring: 0 0 0 var(--ring-gap-width) var(--ring-gap), 0 0 0 calc(var(--ring-gap-width) + var(--ring-width)) var(--ring-color), 0 0 12px 2px color-mix(in srgb, var(--ring-color) 45%, transparent);
|
|
546
548
|
--code-bg: var(--bg);
|
|
547
549
|
}
|
|
548
550
|
|
|
@@ -574,13 +576,3 @@
|
|
|
574
576
|
.ui-callout--warn,
|
|
575
577
|
.ui-callout--danger,
|
|
576
578
|
.ui-success { --code-bg: var(--wash-code-bg); }
|
|
577
|
-
|
|
578
|
-
/* A container focused itself paints outside its own surface; descendants only
|
|
579
|
-
* inherit its inside gap again after focus moves to them. A scroll region inside one
|
|
580
|
-
* needs no entry here: --ring-scroll paints no gap of its own, so the 1px it leaves is
|
|
581
|
-
* whatever the region is already standing on. #531 */
|
|
582
|
-
.ui-card:focus-visible,
|
|
583
|
-
.ui-cmdk__panel:focus-visible,
|
|
584
|
-
.ui-confirm__panel:focus-visible,
|
|
585
|
-
.ui-drawer__panel:focus-visible,
|
|
586
|
-
.rx-modal:focus-visible { --ring-gap: inherit; }
|