@sdxc/ui 2026.9.28 → 2026.10.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.
|
@@ -3,7 +3,7 @@ import { XIcon } from "@sdxc/icons";
|
|
|
3
3
|
import { bg, fg, outline } from "@sdxc/u/color";
|
|
4
4
|
import { backdropBlur, backdropSaturate, opacity, rounded, transition, transitionBehavior, } from "@sdxc/u/effects";
|
|
5
5
|
import { raw } from "@sdxc/u/general";
|
|
6
|
-
import { absolute, container, flex, flexCol, flexColReverse, flexRow, gap, inset, justify, relative, } from "@sdxc/u/layout";
|
|
6
|
+
import { absolute, container, fixed, flex, flexCol, flexColReverse, flexRow, gap, inset, justify, relative, } from "@sdxc/u/layout";
|
|
7
7
|
import { overflow } from "@sdxc/u/overflow";
|
|
8
8
|
import { at, media, startingStyle, supports } from "@sdxc/u/responsive";
|
|
9
9
|
import { is, maxBs, maxIs, p } from "@sdxc/u/size";
|
|
@@ -62,7 +62,18 @@ export function Dialog(handle) {
|
|
|
62
62
|
console.warn('Dialog rendered without an "id" — "commandfor" on a trigger or close control has nothing to target.');
|
|
63
63
|
}
|
|
64
64
|
return (_jsx("dialog", { ...rest, id: id, "data-slot": "dialog", mix: [
|
|
65
|
+
/**
|
|
66
|
+
* Establishes the containing block {@link Dialog.Close} pins itself to while
|
|
67
|
+
* the panel sits in the page's flow, which a dialog opened through its `open`
|
|
68
|
+
* attribute alone does.
|
|
69
|
+
*/
|
|
65
70
|
relative(),
|
|
71
|
+
/**
|
|
72
|
+
* Measures a modal panel against the viewport, so it stays centered on screen
|
|
73
|
+
* however far the page behind it is scrolled: the top layer resolves any other
|
|
74
|
+
* positioning scheme against the document's own coordinates.
|
|
75
|
+
*/
|
|
76
|
+
when("&:modal", fixed()),
|
|
66
77
|
bg("neutral.tint"),
|
|
67
78
|
fg("neutral.emphasis"),
|
|
68
79
|
rounded("lg"),
|
|
@@ -236,7 +236,8 @@ Sidebar.MobileNav = function SidebarMobileNav(handle) {
|
|
|
236
236
|
bs("full"),
|
|
237
237
|
is(varUtility("sidebar-width-mobile", "18rem")),
|
|
238
238
|
maxIs("90vw"),
|
|
239
|
-
|
|
239
|
+
/** Gated on `[open]` so the UA's own `dialog:not([open])` hiding still applies. */
|
|
240
|
+
when("&[open]", flex()),
|
|
240
241
|
flexCol(),
|
|
241
242
|
overflow("hidden"),
|
|
242
243
|
willChange("transform"),
|
|
@@ -29,7 +29,8 @@ export const mirrorSelectedOption = createMixin((handle) => {
|
|
|
29
29
|
let option = slot.closest("select")?.selectedOptions[0];
|
|
30
30
|
if (!option)
|
|
31
31
|
return;
|
|
32
|
-
|
|
32
|
+
for (let child of option.childNodes)
|
|
33
|
+
slot.appendChild(child.cloneNode(true));
|
|
33
34
|
});
|
|
34
35
|
return () => { };
|
|
35
36
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/ui",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.10.1",
|
|
4
4
|
"description": "Styled, accessible remix/ui components rendered as server HTML",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"./theme.css": "./src/theme.css"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sdxc/icons": "2026.9.
|
|
20
|
-
"@sdxc/u": "2026.9.
|
|
21
|
-
"remix": "3.0.0-rc.
|
|
19
|
+
"@sdxc/icons": "2026.9.29",
|
|
20
|
+
"@sdxc/u": "2026.9.29",
|
|
21
|
+
"remix": "3.0.0-rc.4"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "cb188242d2cdac4af10cc8dadb4a2b9cd50759b2",
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
package/src/reset.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Base reset: border-box sizing, zeroed margins/padding,
|
|
3
|
-
* borders reset to "0 solid" so bare border-widths work later,
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* borders reset to "0 solid" so bare border-widths work later, the theme's
|
|
4
|
+
* sans font stack applied once at the document root for every element to
|
|
5
|
+
* inherit, form controls that inherit font/color/line-height, transparent
|
|
6
|
+
* button/input backgrounds with a sensible cursor, block-level media, and the
|
|
7
|
+
* rest of the usual list/table/[hidden] normalizations.
|
|
7
8
|
*
|
|
8
9
|
* Every selector is wrapped in :where(...) so the whole file carries zero
|
|
9
10
|
* specificity and can never beat a component's own css() rules.
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
:where(html, :host) {
|
|
37
|
+
font-family: var(--ui-font-sans);
|
|
36
38
|
line-height: 1.5;
|
|
37
39
|
-webkit-text-size-adjust: 100%;
|
|
38
40
|
tab-size: 4;
|