@apliteni/apliteni-ui 0.36.0 → 0.37.1
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 +11 -0
- package/package.json +1 -1
- package/react/dist/index.css +3 -2
- package/src/components/index.js +3 -3
- package/src/components/success.js +2 -2
- package/src/inline.js +1 -1
- package/src/styles/back.css +2 -2
- package/src/styles/badge.css +13 -13
- package/src/styles/base.css +5 -5
- package/src/styles/button.css +7 -7
- package/src/styles/callout.css +16 -20
- package/src/styles/card.css +4 -4
- package/src/styles/code.css +3 -3
- package/src/styles/command-palette.css +6 -6
- package/src/styles/confirm.css +2 -2
- package/src/styles/drawer.css +5 -5
- package/src/styles/dropdown.css +12 -12
- package/src/styles/feedback.css +9 -9
- package/src/styles/footer.css +3 -3
- package/src/styles/input.css +11 -11
- package/src/styles/layout.css +15 -15
- 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 +1 -1
- package/src/styles/segmented.css +2 -2
- package/src/styles/success.css +8 -6
- package/src/styles/table.css +3 -3
- package/src/styles/tabs.css +2 -2
- package/src/styles/tooltip.css +1 -1
- package/src/styles/topbar.css +11 -11
- package/src/tokens/tokens.css +49 -7
package/src/tokens/tokens.css
CHANGED
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
--disabled-ink-bare: #a39eb7;
|
|
173
173
|
|
|
174
174
|
/* Lifted from #9b5dff, which cleared the flat surfaces and failed on its own wash over
|
|
175
|
-
a card; the value was already in the ramp. --ring is var(--accent) and follows by
|
|
175
|
+
a card; the value was already in the ramp. --ring-color is var(--accent) and follows by
|
|
176
176
|
reference. Held by stories/accent-contrast.test.js. #157.
|
|
177
177
|
why: docs/specification.md#colour-and-contrast */
|
|
178
178
|
--accent: #b479ff;
|
|
@@ -229,12 +229,12 @@
|
|
|
229
229
|
--shadow-lg: 0 0 #0000;
|
|
230
230
|
--shadow-seg: 0 0 #0000;
|
|
231
231
|
--shadow-card: 0 0 #0000;
|
|
232
|
-
/*
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
--ring: 0 0 0
|
|
232
|
+
/* G2: the band carries contrast; the halo decorates it. why: docs/specification.md#the-focus-ring */
|
|
233
|
+
--ring-width: 2px;
|
|
234
|
+
--ring-color: var(--accent);
|
|
235
|
+
--ring-gap-width: 1px;
|
|
236
|
+
--ring-gap: var(--bg);
|
|
237
|
+
--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);
|
|
238
238
|
|
|
239
239
|
/* The ink a cast shadow is made of, and the specular white that reads as gloss on a
|
|
240
240
|
raised surface. Effects mix these instead of writing rgba(). */
|
|
@@ -405,3 +405,45 @@
|
|
|
405
405
|
--prose-body: 62ch;
|
|
406
406
|
--prose-dense: 72ch;
|
|
407
407
|
}
|
|
408
|
+
|
|
409
|
+
/* Recompose only at painted containers; controls inherit the outside gap.
|
|
410
|
+
* One recipe keeps surface propagation cheap and consistent.
|
|
411
|
+
* why: docs/specification.md#the-focus-ring */
|
|
412
|
+
.amenu,
|
|
413
|
+
.dtsw,
|
|
414
|
+
.rx-modal,
|
|
415
|
+
.ui-app__rail,
|
|
416
|
+
.ui-auth__card,
|
|
417
|
+
.ui-callout,
|
|
418
|
+
.ui-card,
|
|
419
|
+
.ui-card--accent,
|
|
420
|
+
.ui-card--live,
|
|
421
|
+
.ui-cmdk__panel,
|
|
422
|
+
.ui-code,
|
|
423
|
+
.ui-confirm__panel,
|
|
424
|
+
.ui-drawer__footer,
|
|
425
|
+
.ui-drawer__panel,
|
|
426
|
+
.ui-dropdown__panel,
|
|
427
|
+
.ui-fbcomposer,
|
|
428
|
+
.ui-footer--app,
|
|
429
|
+
.ui-seg,
|
|
430
|
+
.ui-snippet,
|
|
431
|
+
.ui-snippet--reveal,
|
|
432
|
+
.ui-sx,
|
|
433
|
+
.ui-table--hover:not(.ui-table--zebra) tbody tr:hover td,
|
|
434
|
+
.ui-table--zebra tbody tr:nth-child(even) td,
|
|
435
|
+
.ui-table--zebra tbody tr:hover td,
|
|
436
|
+
.ui-table--zebra.ui-table--hover tbody tr:hover td,
|
|
437
|
+
.ui-toast--outline,
|
|
438
|
+
.ui-toast--solid,
|
|
439
|
+
.vsw__menu {
|
|
440
|
+
--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);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* A container focused itself paints outside its own surface; descendants only
|
|
444
|
+
* inherit its inside gap again after focus moves to them. */
|
|
445
|
+
.ui-card:focus-visible,
|
|
446
|
+
.ui-cmdk__panel:focus-visible,
|
|
447
|
+
.ui-confirm__panel:focus-visible,
|
|
448
|
+
.ui-drawer__panel:focus-visible,
|
|
449
|
+
.rx-modal:focus-visible { --ring-gap: inherit; }
|