@apliteni/apliteni-ui 0.163.0 → 0.164.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/docs/components.md
CHANGED
|
@@ -588,8 +588,9 @@ above and below it on a short one. The rail is the page ground, with the reader'
|
|
|
588
588
|
and email at its top. Only the open section's row carries the accent. Each rail row is a button
|
|
589
589
|
with `aria-current`, because a section is a place in the window and not a route. The pane remounts
|
|
590
590
|
when the section changes, so a half-filled form does not follow the reader. At 560px and below
|
|
591
|
-
the window
|
|
592
|
-
|
|
591
|
+
the window floats with a gap on each side, clear of the notch and the home bar. It is as tall as
|
|
592
|
+
its content, up to the screen height, and a long section scrolls inside it. The sections become
|
|
593
|
+
tabs under the reader. They act as the `Tabs` panel tabs do: one Tab stop, the arrow keys, Home and End, and the open tab scrolled into
|
|
593
594
|
view. Pass `section` and `onSectionChange` to control the open section, or `defaultSection` to
|
|
594
595
|
leave it to the window.
|
|
595
596
|
|
|
@@ -771,7 +772,7 @@ and Escape closes the top overlay. Tab is trapped in the panel. Home and End sta
|
|
|
771
772
|
caret, which is what the ARIA combobox pattern gives them for, and Ctrl+K inside another text
|
|
772
773
|
box is left alone, because it is kill-to-end-of-line there — Cmd+K still opens from one.
|
|
773
774
|
**Focus opens in the text box and never leaves it while the palette is open**, over an inert page.
|
|
774
|
-
The search row shows the accent ring inside its edges while the text box has keyboard focus, and
|
|
775
|
+
The search row shows the accent ring inside its edges while the text box has keyboard focus. The ring follows the panel's top corners, and the divider hides under the ring.
|
|
775
776
|
**It opens empty**, and **it paints one step above the drawer and one below the confirm**. A
|
|
776
777
|
confirm opened by a row appears over both and answers the first Escape.
|
|
777
778
|
|
package/docs/foundations.md
CHANGED
|
@@ -44,7 +44,7 @@ The kit has three breakpoints, and every media query it ships uses one of them.
|
|
|
44
44
|
| ------- | -------------------------------------------------------------------------------------- |
|
|
45
45
|
| `860px` | the page stops holding three tracks — a three-across grid drops to two, a side-by-side pair stacks |
|
|
46
46
|
| `720px` | the shell folds — the app rail becomes an icon strip, link columns halve, a secondary label drops out |
|
|
47
|
-
| `560px` | one column — every remaining grid is a single track, and a floating panel goes edge to edge |
|
|
47
|
+
| `560px` | one column — every remaining grid is a single track, and a floating panel goes edge to edge, except the account window, which keeps a gap on each side |
|
|
48
48
|
|
|
49
49
|
A step describes a viewport class, not a preference for one surface. The values are written as
|
|
50
50
|
literals because a media query cannot read a custom property, and the kit has no build step to
|
|
@@ -357,8 +357,9 @@ override reaches every control. There is no gap colour to hand down.
|
|
|
357
357
|
|
|
358
358
|
**`--ring-scroll` is the indicator a box takes when its own edges are a surface's edges.** It uses
|
|
359
359
|
the same 1px gap and 2px band, but draws them inward. A scroll region inside a surface is one such
|
|
360
|
-
box. A link filling a table cell is another, and so is a line of text inside a cell that clips.
|
|
361
|
-
|
|
360
|
+
box. A link filling a table cell is another, and so is a line of text inside a cell that clips.
|
|
361
|
+
A navigation rail row takes it too, because the rows stand 2px apart and an outward band covers
|
|
362
|
+
the next row. You need both values, or the band appears outside the box.
|
|
362
363
|
|
|
363
364
|
**Every focusable control the kit ships draws the band**, including a roving row the keyboard
|
|
364
365
|
reaches with an arrow key rather than Tab. None falls back to the browser's own outline, which
|
package/package.json
CHANGED
package/react/dist/index.css
CHANGED
|
@@ -362,6 +362,7 @@
|
|
|
362
362
|
.rx-account__body {
|
|
363
363
|
flex: 1 1 auto;
|
|
364
364
|
padding: var(--space-4) var(--space-8) var(--space-8);
|
|
365
|
+
scroll-padding-block: calc(var(--ring-gap-width) + var(--ring-width));
|
|
365
366
|
}
|
|
366
367
|
.rx-account__tabs,
|
|
367
368
|
.rx-account__who > .ui-btn {
|
|
@@ -383,11 +384,12 @@
|
|
|
383
384
|
}
|
|
384
385
|
@media (max-width: 560px) {
|
|
385
386
|
.rx-modal.rx-account {
|
|
386
|
-
width: 100vw;
|
|
387
|
-
height: 100vh;
|
|
388
|
-
height: 100dvh;
|
|
389
|
-
border-radius: 0;
|
|
390
387
|
flex-direction: column;
|
|
388
|
+
height: auto;
|
|
389
|
+
margin: max(var(--space-4), env(safe-area-inset-top)) max(var(--space-4), env(safe-area-inset-right)) max(var(--space-4), env(safe-area-inset-bottom)) max(var(--space-4), env(safe-area-inset-left));
|
|
390
|
+
width: calc(100vw - max(var(--space-4), env(safe-area-inset-left)) - max(var(--space-4), env(safe-area-inset-right)));
|
|
391
|
+
max-height: calc(100vh - max(var(--space-4), env(safe-area-inset-top)) - max(var(--space-4), env(safe-area-inset-bottom)));
|
|
392
|
+
max-height: calc(100dvh - max(var(--space-4), env(safe-area-inset-top)) - max(var(--space-4), env(safe-area-inset-bottom)));
|
|
391
393
|
}
|
|
392
394
|
.rx-account__rail {
|
|
393
395
|
overflow: visible;
|
|
@@ -97,6 +97,8 @@
|
|
|
97
97
|
gap: var(--space-3);
|
|
98
98
|
padding: 0 var(--space-4);
|
|
99
99
|
border-bottom: 1px solid var(--border);
|
|
100
|
+
/* The panel's inner corner, so the inward ring follows it. */
|
|
101
|
+
border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
|
|
100
102
|
}
|
|
101
103
|
.ui-cmdk__search-ic {
|
|
102
104
|
display: inline-flex;
|
package/src/styles/layout.css
CHANGED
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
.ui-app__search:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
|
|
378
378
|
/* The same glyph the palette draws in its own search box, at the same box and the
|
|
379
379
|
same stroke: the trigger and the thing it opens are not two search marks.
|
|
380
|
-
src/styles/command-palette.css:
|
|
380
|
+
src/styles/command-palette.css:110 `.ui-cmdk__search-ic svg` */
|
|
381
381
|
.ui-app__search-ic { display: flex; flex: none; }
|
|
382
382
|
.ui-app__search-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; }
|
|
383
383
|
/* Part of the button's name, so it is squeezed rather than dropped: an ellipsis
|
package/src/styles/nav.css
CHANGED
|
@@ -86,8 +86,10 @@
|
|
|
86
86
|
ground the rail stands on, so layout.css takes it the next rung where the rail
|
|
87
87
|
is itself --surface. #475 r33/r34. why: docs/components.md#the-page-shell */
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
.
|
|
89
|
+
/* Drawn inward: rows stand 2px apart, so an outward band crossed into the next row.
|
|
90
|
+
why: docs/foundations.md#the-focus-ring */
|
|
91
|
+
.ui-nav__item:focus-visible { outline: var(--ring-scroll); outline-offset: var(--ring-scroll-offset); }
|
|
92
|
+
.ui-nav__item.is-active:focus-visible { outline: var(--ring-scroll); outline-offset: var(--ring-scroll-offset); }
|
|
91
93
|
|
|
92
94
|
.ui-nav__ic { display: inline-flex; flex: none; }
|
|
93
95
|
.ui-nav__ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; opacity: 0.72; }
|