@axiapps/axi-design 1.25.0 → 1.26.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 CHANGED
@@ -143,6 +143,7 @@ not "what does the system look like". Everything else is
143
143
  | `--axi-rail-w` | an `.axi-rail`'s width, for labels longer than the default holds | `208px` | `<aside class="axi-rail" style="--axi-rail-w: 260px">` |
144
144
  | `--axi-rail-pad` | the padding inside an `.axi-rail` | `10px` | `<aside class="axi-rail" style="--axi-rail-pad: 6px">` |
145
145
  | `--axi-toolbar-pad` | the padding inside an `.axi-toolbar` | `14px` | `<div class="axi-toolbar" style="--axi-toolbar-pad: 4px 7px">` |
146
+ | `--axi-dock-pad` | the padding inside an `.axi-dock` | `12px 16px` | `<div class="axi-dock" style="--axi-dock-pad: 6px 10px">` |
146
147
  | `--axi-avatar-size` | the size of an `.axi-avatar` square | `40px` | `<span class="axi-avatar" style="--axi-avatar-size: 28px">MS</span>` |
147
148
  | `--axi-modal-width` | the maximum width of an `.axi-modal`, before the viewport clamp | `560px` | `<dialog class="axi-modal" style="--axi-modal-width: 760px">` |
148
149
  | `--axi-card-strip` | the colour of `.axi-card--strip`'s top strip | `var(--axi-accent)` | `<a class="axi-card axi-card--strip" style="--axi-card-strip: var(--axi-ok)">` |
package/dist/axi.css CHANGED
@@ -38,8 +38,10 @@
38
38
  --axi-surface-raised: #2b313d;
39
39
  /* The fill for a surface that FLOATS over content which scrolls behind it:
40
40
  the command palette, the menu and picker popovers, the modal, the drawer,
41
- the toast, and any .axi-panel--float, .axi-rail--float or
42
- .axi-toolbar--float a consumer declares. Holds --axi-surface, because for
41
+ the toast, every .axi-dock (which is the one surface here that cannot be
42
+ anything else - docking IS having content scroll under you), and any
43
+ .axi-panel--float, .axi-rail--float or .axi-toolbar--float a consumer
44
+ declares. Holds --axi-surface, because for
43
45
  a theme whose panels are opaque a floating panel is just a panel and there
44
46
  is nothing to decide.
45
47
 
@@ -1279,6 +1281,59 @@ textarea.axi-input {
1279
1281
  lives here instead of in a comment in somebody's component. */
1280
1282
  .axi-toolbar--nowrap { flex-wrap: nowrap; }
1281
1283
 
1284
+ /* ---------- dock ---------- */
1285
+ /* A bar that IS one edge of its scroll container rather than an object standing
1286
+ in the layout: a tray that drops in above a list, an action bar pinned under
1287
+ one. The horizontal counterpart to .axi-rail--flush, and the shape this
1288
+ language was missing - a rail is vertical, and a toolbar stands in the layout
1289
+ with space around it, so every consumer with a full-width edge bar had to
1290
+ write the surface, the single border and the squared ends by hand.
1291
+
1292
+ It drops what says "an object with space around it", for the reasons
1293
+ .axi-rail--flush drops them: no radius, because its two ends are the
1294
+ container's own edges and a corner there is a corner cut out of the page; and
1295
+ no offset block, because a block needs somewhere to fall and this has content
1296
+ on one side and the container's edges on the other three.
1297
+
1298
+ It is on --axi-surface-float unconditionally, with no --float modifier to
1299
+ forget. Every other surface here can be either way - a panel may sit still on
1300
+ the page or be pinned over a scrolling table - but "the content scrolls under
1301
+ it" is the definition of docking rather than a variant of it. A translucent
1302
+ dock is a dock with the list showing through its own buttons on any platform
1303
+ where the blur is unavailable, which is to say on some platform.
1304
+
1305
+ What it does not say is how its contents are arranged or how it is pinned:
1306
+ put an .axi-toolbar's row of controls inside it, or a head above a scrolling
1307
+ body; make it position: sticky or leave it in flow. Those belong to the
1308
+ consumer, and a dock that answered either would be two objects wearing one
1309
+ name. */
1310
+ .axi-dock {
1311
+ /* The inline figure is a page gutter and the block figure is a bar's height.
1312
+ They differ on purpose: a dock spans the full width, so its contents have
1313
+ to line up with the content it is docked against, while how tall it stands
1314
+ is its own business. */
1315
+ padding: var(--axi-dock-pad, 12px 16px);
1316
+ background: var(--axi-surface-float);
1317
+ backdrop-filter: var(--axi-surface-filter);
1318
+ /* The seam's colour and style said once, both widths off, and each modifier
1319
+ below turning on the one side it needs. Spelling the whole shorthand twice
1320
+ would put two independent copies of the edge in the file for a theme to
1321
+ change one of. */
1322
+ border: 0;
1323
+ border-block: 0 solid var(--axi-ink-line);
1324
+ border-radius: 0;
1325
+ }
1326
+ /* The border faces the content, so a dock at the block-start edge draws it on
1327
+ its block-end side. Logical rather than physical, so it survives a vertical
1328
+ writing mode - the same correction .axi-rail--flush took. */
1329
+ .axi-dock:not(.axi-dock--end) { border-block-end-width: var(--axi-border-panel); }
1330
+ /* The other edge. Unlike .axi-rail--flush, which assumes the leading edge and
1331
+ has no way to ask for the far one, a dock can say which edge it is on -
1332
+ because both cases arrived together: a tray drops in from the top of a list
1333
+ and an action bar is pinned beneath the same list. This is the pair
1334
+ .axi-rail--flush should grow into the day a trailing-edge rail exists. */
1335
+ .axi-dock--end { border-block-start-width: var(--axi-border-panel); }
1336
+
1282
1337
  /* ---------- menu popover ---------- */
1283
1338
  /* A disclosure, not a permanent row of controls. The trigger is an .axi-btn
1284
1339
  with aria-expanded; this styles the panel it opens. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiapps/axi-design",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "The design language for the axi suite — flat and outlined, dark, drawn in saturated ink.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/shells.css CHANGED
@@ -309,6 +309,59 @@
309
309
  lives here instead of in a comment in somebody's component. */
310
310
  .axi-toolbar--nowrap { flex-wrap: nowrap; }
311
311
 
312
+ /* ---------- dock ---------- */
313
+ /* A bar that IS one edge of its scroll container rather than an object standing
314
+ in the layout: a tray that drops in above a list, an action bar pinned under
315
+ one. The horizontal counterpart to .axi-rail--flush, and the shape this
316
+ language was missing - a rail is vertical, and a toolbar stands in the layout
317
+ with space around it, so every consumer with a full-width edge bar had to
318
+ write the surface, the single border and the squared ends by hand.
319
+
320
+ It drops what says "an object with space around it", for the reasons
321
+ .axi-rail--flush drops them: no radius, because its two ends are the
322
+ container's own edges and a corner there is a corner cut out of the page; and
323
+ no offset block, because a block needs somewhere to fall and this has content
324
+ on one side and the container's edges on the other three.
325
+
326
+ It is on --axi-surface-float unconditionally, with no --float modifier to
327
+ forget. Every other surface here can be either way - a panel may sit still on
328
+ the page or be pinned over a scrolling table - but "the content scrolls under
329
+ it" is the definition of docking rather than a variant of it. A translucent
330
+ dock is a dock with the list showing through its own buttons on any platform
331
+ where the blur is unavailable, which is to say on some platform.
332
+
333
+ What it does not say is how its contents are arranged or how it is pinned:
334
+ put an .axi-toolbar's row of controls inside it, or a head above a scrolling
335
+ body; make it position: sticky or leave it in flow. Those belong to the
336
+ consumer, and a dock that answered either would be two objects wearing one
337
+ name. */
338
+ .axi-dock {
339
+ /* The inline figure is a page gutter and the block figure is a bar's height.
340
+ They differ on purpose: a dock spans the full width, so its contents have
341
+ to line up with the content it is docked against, while how tall it stands
342
+ is its own business. */
343
+ padding: var(--axi-dock-pad, 12px 16px);
344
+ background: var(--axi-surface-float);
345
+ backdrop-filter: var(--axi-surface-filter);
346
+ /* The seam's colour and style said once, both widths off, and each modifier
347
+ below turning on the one side it needs. Spelling the whole shorthand twice
348
+ would put two independent copies of the edge in the file for a theme to
349
+ change one of. */
350
+ border: 0;
351
+ border-block: 0 solid var(--axi-ink-line);
352
+ border-radius: 0;
353
+ }
354
+ /* The border faces the content, so a dock at the block-start edge draws it on
355
+ its block-end side. Logical rather than physical, so it survives a vertical
356
+ writing mode - the same correction .axi-rail--flush took. */
357
+ .axi-dock:not(.axi-dock--end) { border-block-end-width: var(--axi-border-panel); }
358
+ /* The other edge. Unlike .axi-rail--flush, which assumes the leading edge and
359
+ has no way to ask for the far one, a dock can say which edge it is on -
360
+ because both cases arrived together: a tray drops in from the top of a list
361
+ and an action bar is pinned beneath the same list. This is the pair
362
+ .axi-rail--flush should grow into the day a trailing-edge rail exists. */
363
+ .axi-dock--end { border-block-start-width: var(--axi-border-panel); }
364
+
312
365
  /* ---------- menu popover ---------- */
313
366
  /* A disclosure, not a permanent row of controls. The trigger is an .axi-btn
314
367
  with aria-expanded; this styles the panel it opens. */
package/src/tokens.css CHANGED
@@ -34,8 +34,10 @@
34
34
  --axi-surface-raised: #2b313d;
35
35
  /* The fill for a surface that FLOATS over content which scrolls behind it:
36
36
  the command palette, the menu and picker popovers, the modal, the drawer,
37
- the toast, and any .axi-panel--float, .axi-rail--float or
38
- .axi-toolbar--float a consumer declares. Holds --axi-surface, because for
37
+ the toast, every .axi-dock (which is the one surface here that cannot be
38
+ anything else - docking IS having content scroll under you), and any
39
+ .axi-panel--float, .axi-rail--float or .axi-toolbar--float a consumer
40
+ declares. Holds --axi-surface, because for
39
41
  a theme whose panels are opaque a floating panel is just a panel and there
40
42
  is nothing to decide.
41
43