@apliteni/apliteni-ui 0.91.0 → 0.93.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/README.md +5 -7
- package/package.json +1 -1
- package/react/README.md +2 -2
- package/react/dist/index.d.ts +3 -3
- package/react/dist/index.js +79 -111
- package/src/assets/icons.js +1 -1
- package/src/components/account-nav.js +2 -2
- package/src/components/back.js +2 -2
- package/src/components/command-palette.js +2 -2
- package/src/components/drawer.js +1 -1
- package/src/components/dropdown.js +12 -12
- package/src/components/filter-bar.js +2 -2
- package/src/components/footer.js +1 -1
- package/src/components/index.js +1 -1
- package/src/components/loading.js +1 -1
- package/src/components/shell.js +19 -19
- package/src/components/stat.js +3 -3
- package/src/components/success.js +3 -3
- package/src/components/tooltip.js +1 -1
- package/src/components/topbar.js +1 -1
- package/src/html.js +1 -1
- package/src/index.css +1 -1
- package/src/index.d.ts +1 -1
- package/src/logic/accents.js +1 -1
- package/src/logic/filter-bar.js +4 -4
- package/src/styles/back.css +3 -3
- package/src/styles/base.css +3 -3
- package/src/styles/button.css +3 -3
- package/src/styles/callout.css +2 -2
- package/src/styles/card.css +8 -8
- package/src/styles/command-palette.css +14 -14
- package/src/styles/confirm.css +7 -7
- package/src/styles/drawer.css +8 -8
- package/src/styles/dropdown.css +21 -21
- package/src/styles/feedback.css +2 -2
- package/src/styles/field-zoom.css +1 -1
- package/src/styles/file-drop.css +1 -1
- package/src/styles/filter-bar.css +6 -6
- package/src/styles/footer.css +1 -1
- package/src/styles/input.css +6 -6
- package/src/styles/layout.css +32 -32
- package/src/styles/loading.css +1 -1
- package/src/styles/motion.css +1 -1
- package/src/styles/nav.css +4 -4
- package/src/styles/pagination.css +2 -2
- package/src/styles/reduced-motion.css +2 -2
- package/src/styles/segmented.css +3 -3
- package/src/styles/stat.css +3 -3
- package/src/styles/success.css +1 -1
- package/src/styles/table.css +6 -6
- package/src/styles/tap-zone.css +1 -1
- package/src/styles/tooltip.css +3 -3
- package/src/styles/topbar.css +8 -8
- package/src/tokens/accents.css +1 -1
- package/src/tokens/tokens.css +25 -25
package/src/tokens/tokens.css
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
/* -- Measure ------------------------------------------------------------
|
|
39
39
|
* --container is the page, gutter to gutter; --measure is the reading column
|
|
40
40
|
* INSIDE a track, beside a sidebar. Different axes, never interchangeable.
|
|
41
|
-
* why: docs/
|
|
41
|
+
* why: docs/foundations.md#widths */
|
|
42
42
|
--container: 1120px;
|
|
43
43
|
--measure: 860px;
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* smears, worst of all in Cyrillic, which is where the kit spends most of its
|
|
51
51
|
* pixels. IBM Plex Sans is humanist and narrower, and its Cyrillic was drawn
|
|
52
52
|
* by the same team as its Latin.
|
|
53
|
-
* why: docs/
|
|
53
|
+
* why: docs/foundations.md#typefaces */
|
|
54
54
|
--font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
55
55
|
--font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
56
56
|
--font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
/* The elevation ladder, bottom to top. A surface says how high it is with its step
|
|
137
137
|
and, IN DARK, with the hairline around it; --muted caps how far the ladder can go.
|
|
138
138
|
Nothing casts in dark below the floating step, and the floating step adds
|
|
139
|
-
--elev-drop under its inner line. why: docs/
|
|
139
|
+
--elev-drop under its inner line. why: docs/foundations.md#elevation */
|
|
140
140
|
--bg: #0e0d14;
|
|
141
141
|
--table-bg: var(--bg);
|
|
142
142
|
/* A dark table is flush with the page, so the reading surface an inline code chip has
|
|
@@ -163,20 +163,20 @@
|
|
|
163
163
|
/* WHICH EDGE EACH LEVEL DRAWS. One name per level, so a sheet never has to ask
|
|
164
164
|
which theme it is in. Dark answers all four with the hairline, because a drop
|
|
165
165
|
on a near-black page reaches 1.20 at its core and has nowhere else to go —
|
|
166
|
-
light answers them with the drop instead. why: docs/
|
|
166
|
+
light answers them with the drop instead. why: docs/foundations.md#elevation */
|
|
167
167
|
--card-edge: var(--border); /* a card */
|
|
168
168
|
--rail-edge: var(--border); /* the shell's rail */
|
|
169
169
|
--float-edge: var(--border-strong); /* a floating surface, outer line */
|
|
170
170
|
--float-edge-inner: var(--border); /* a floating surface, inner line */
|
|
171
171
|
|
|
172
|
-
/* Fields use the card surface and an edge in both themes. why: docs/
|
|
172
|
+
/* Fields use the card surface and an edge in both themes. why: docs/foundations.md#elevation */
|
|
173
173
|
--field-bg: var(--surface);
|
|
174
174
|
--field-edge: var(--border);
|
|
175
175
|
--field-edge-hover: var(--border-strong);
|
|
176
176
|
--control-edge: var(--border);
|
|
177
177
|
|
|
178
178
|
/* How much of its own colour a tinted card mixes in. Dark mixes upward off a mid-grey
|
|
179
|
-
card, so it can afford this much. why: docs/
|
|
179
|
+
card, so it can afford this much. why: docs/foundations.md#elevation */
|
|
180
180
|
--card-tint: 9%;
|
|
181
181
|
|
|
182
182
|
--text: #e9e7f0;
|
|
@@ -184,31 +184,31 @@
|
|
|
184
184
|
--dim: #c6c2d6;
|
|
185
185
|
/* Picked against the TOP of the ladder above, not against the page: #948fa8 cleared the
|
|
186
186
|
two floating steps by hundredths. Same violet-grey, fourteen steps up every channel.
|
|
187
|
-
why: docs/
|
|
187
|
+
why: docs/foundations.md#elevation */
|
|
188
188
|
--muted: #a29db6;
|
|
189
189
|
|
|
190
190
|
/* The paint of a control that is off. NOT an opacity: `opacity` is a group property,
|
|
191
191
|
so it fades label and box toward the ground TOGETHER — a disabled primary button
|
|
192
192
|
measured 1.48:1 that way. These three are aliases that composite predictably, the
|
|
193
193
|
ink read on the surface beside it. Held by guidelines/accessibility-floor.test.js.
|
|
194
|
-
why: docs/
|
|
194
|
+
why: docs/foundations.md#colour-and-contrast */
|
|
195
195
|
--disabled-ink: var(--muted);
|
|
196
196
|
--disabled-surface: var(--surface);
|
|
197
197
|
/* One rung below the hairline, so an off box is not the live box with quieter words
|
|
198
198
|
in it: dark answered both with --border. 1.16:1 on the card against the live
|
|
199
199
|
1.27:1, and as far down as the headroom goes. #564
|
|
200
|
-
why: docs/
|
|
200
|
+
why: docs/foundations.md#colour-and-contrast */
|
|
201
201
|
--disabled-border: var(--surface-3);
|
|
202
202
|
/* The ink of a disabled control that paints no box of its own — a ghost button. With
|
|
203
203
|
no surface beside it, it is read on whatever is behind it, so it is set to clear the
|
|
204
204
|
floor on the dullest ground there is (--surface-3). #273
|
|
205
|
-
why: docs/
|
|
205
|
+
why: docs/foundations.md#colour-and-contrast */
|
|
206
206
|
--disabled-ink-bare: #a39eb7;
|
|
207
207
|
|
|
208
208
|
/* Lifted from #9b5dff, which cleared the flat surfaces and failed on its own wash over
|
|
209
209
|
a card; the value was already in the ramp. --ring-color is var(--accent) and follows by
|
|
210
210
|
reference. Held by stories/accent-contrast.test.js. #157.
|
|
211
|
-
why: docs/
|
|
211
|
+
why: docs/foundations.md#colour-and-contrast */
|
|
212
212
|
--accent: #b479ff;
|
|
213
213
|
--accent-strong: #7c3aed; /* button bg — white text clears WCAG AA at 5.70:1 */
|
|
214
214
|
--accent-contrast: #ffffff;
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
/* Ink that reads on a SIGNAL colour once that colour becomes a fill — the glyph in a
|
|
217
217
|
success circle, or on a toast's status circle. One near-black ink clears all five in
|
|
218
218
|
dark; danger keeps its own token because LIGHT still needs one.
|
|
219
|
-
why: docs/
|
|
219
|
+
why: docs/foundations.md#colour-and-contrast */
|
|
220
220
|
--signal-contrast: #0c0c0c;
|
|
221
221
|
--danger-contrast: var(--signal-contrast);
|
|
222
222
|
|
|
@@ -257,13 +257,13 @@
|
|
|
257
257
|
A transparent shadow, not `none`, because these are read in a LIST. The kit's own
|
|
258
258
|
pre-0.32 pattern was `box-shadow: var(--shadow-lg), var(--ring)`, and `none` is only
|
|
259
259
|
valid alone — it makes the whole declaration invalid, which silently takes the focus
|
|
260
|
-
ring with it. `0 0 #0000` composes. why: docs/
|
|
260
|
+
ring 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
|
-
/* G2: the band carries contrast; the halo decorates it. why: docs/
|
|
266
|
+
/* G2: the band carries contrast; the halo decorates it. why: docs/foundations.md#the-focus-ring */
|
|
267
267
|
--ring-width: 2px;
|
|
268
268
|
--ring-color: var(--accent);
|
|
269
269
|
--ring-gap-width: 1px;
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
no halo. An OUTLINE, because an inset shadow is painted under the box's own
|
|
274
274
|
children and a table scrolled under one erases it. The gap is left unpainted, so
|
|
275
275
|
neither half reads --ring-gap and neither is recomposed per surface. Chosen by
|
|
276
|
-
Artur on #531 round r30. why: docs/
|
|
276
|
+
Artur on #531 round r30. why: docs/foundations.md#the-focus-ring */
|
|
277
277
|
--ring-scroll: var(--ring-width) solid var(--ring-color);
|
|
278
278
|
--ring-scroll-offset: calc(-1 * (var(--ring-gap-width) + var(--ring-width)));
|
|
279
279
|
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
nothing below could re-point it. A floating surface writes the pair itself:
|
|
290
290
|
box-shadow: inset 0 0 0 1px var(--elev-edge, var(--float-edge-inner)), var(--elev-drop);
|
|
291
291
|
Dark spends 62% / 50% of the ink and reaches 1.20 at the drop's core, having
|
|
292
|
-
nowhere to go on a near-black page. why: docs/
|
|
292
|
+
nowhere to go on a near-black page. why: docs/foundations.md#elevation */
|
|
293
293
|
--elev-drop:
|
|
294
294
|
0 14px 30px -12px color-mix(in srgb, var(--shadow-ink) 62%, transparent),
|
|
295
295
|
0 3px 9px -4px color-mix(in srgb, var(--shadow-ink) 50%, transparent);
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
/* The ladder's two resting rungs, which only light climbs. Transparent here and
|
|
298
298
|
not `none`, for the reason the deprecated --shadow-* tokens are: these are read
|
|
299
299
|
in a layer list, and `none` is valid only alone — it would invalidate the whole
|
|
300
|
-
declaration and take the focus ring with it. why: docs/
|
|
300
|
+
declaration and take the focus ring with it. why: docs/foundations.md#elevation */
|
|
301
301
|
--elev-rest: 0 0 #0000; /* a card */
|
|
302
302
|
--elev-rail: 0 0 #0000; /* the shell's rail, cast sideways */
|
|
303
303
|
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
blue than the one it replaces. Light spends its white on the surface you read
|
|
338
338
|
ON, and separates the panel that floats over it by role — its two-step edge and
|
|
339
339
|
its drop — rather than by a rung it has nothing left to pay for. See issue #448.
|
|
340
|
-
why: docs/
|
|
340
|
+
why: docs/foundations.md#elevation */
|
|
341
341
|
--bg: #f2f3f6;
|
|
342
342
|
--table-bg: #ffffff;
|
|
343
343
|
--table-code-bg: var(--bg);
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
the reference he supplied. A line divides two regions of ONE surface (a card's
|
|
357
357
|
rows, a table's rules, the rail's head band, the topbar); a drop says a surface
|
|
358
358
|
is HIGHER, and only a higher surface may cast one.
|
|
359
|
-
why: docs/
|
|
359
|
+
why: docs/foundations.md#elevation */
|
|
360
360
|
--card-edge: transparent;
|
|
361
361
|
--rail-edge: transparent;
|
|
362
362
|
--float-edge: transparent;
|
|
@@ -364,14 +364,14 @@
|
|
|
364
364
|
|
|
365
365
|
/* Light draws a field with its EDGE, because since #448 it has no well left to draw it
|
|
366
366
|
with: a card and a panel are both white, the sunken step falls two rungs under either,
|
|
367
|
-
and --border on it measures 1.047:1. why: docs/
|
|
367
|
+
and --border on it measures 1.047:1. why: docs/foundations.md#elevation */
|
|
368
368
|
--field-bg: var(--surface);
|
|
369
369
|
--field-edge: var(--border-strong);
|
|
370
370
|
--field-edge-hover: var(--muted);
|
|
371
371
|
--control-edge: var(--border-strong);
|
|
372
372
|
|
|
373
373
|
/* Light mixes DOWN from white, so tint costs lightness: 5% is the most a card can spend
|
|
374
|
-
and stay above the page. why: docs/
|
|
374
|
+
and stay above the page. why: docs/foundations.md#elevation */
|
|
375
375
|
--card-tint: 5%;
|
|
376
376
|
|
|
377
377
|
--text: #1a1e27;
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
and held in by a negative spread. None is a glow — a glow is a zero-offset layer of
|
|
447
447
|
the signal's own colour. A level with no line casts a rung that reaches on every
|
|
448
448
|
side it exposes, which is why the wide layer's offset stays under half its blur.
|
|
449
|
-
why: docs/
|
|
449
|
+
why: docs/foundations.md#elevation */
|
|
450
450
|
--elev-rest:
|
|
451
451
|
0 2px 26px -3px color-mix(in srgb, var(--shadow-ink) 9%, transparent),
|
|
452
452
|
0 1px 3px -1px color-mix(in srgb, var(--shadow-ink) 7%, transparent);
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
* a box that holds a LINE -> --prose-* (ch)
|
|
472
472
|
*
|
|
473
473
|
* Both are theme-invariant, so they sit outside the palette blocks.
|
|
474
|
-
* why: docs/
|
|
474
|
+
* why: docs/foundations.md#boxes-below-the-page
|
|
475
475
|
* ========================================================================== */
|
|
476
476
|
:root {
|
|
477
477
|
/* -- Panel widths -------------------------------------------------------
|
|
@@ -502,14 +502,14 @@
|
|
|
502
502
|
* substituted on the element that DECLARES it — so the painted container hands it the one
|
|
503
503
|
* it is not using itself, and the chip keeps a step wherever it is written. The page hands
|
|
504
504
|
* over the card below; every painted container hands over the page, in the recipe under it.
|
|
505
|
-
* Held by stories/code-chip.test.js. why: docs/
|
|
505
|
+
* Held by stories/code-chip.test.js. why: docs/foundations.md#elevation */
|
|
506
506
|
:root { --code-bg: var(--surface); }
|
|
507
507
|
|
|
508
508
|
/* Recompose only at painted containers; controls inherit the outside gap, and each hands an
|
|
509
509
|
* inline code chip the page. One recipe keeps surface propagation cheap and consistent.
|
|
510
510
|
* .ui-code composes its own ring in src/styles/code.css instead of joining this list: a
|
|
511
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/
|
|
512
|
+
* actually paints. why: docs/foundations.md#the-focus-ring */
|
|
513
513
|
.amenu,
|
|
514
514
|
.dtsw,
|
|
515
515
|
.rx-modal,
|