@sdxc/ui 2026.9.28 → 2026.9.29

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"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdxc/ui",
3
- "version": "2026.9.28",
3
+ "version": "2026.9.29",
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.14",
20
- "@sdxc/u": "2026.9.14",
21
- "remix": "3.0.0-rc.2"
19
+ "@sdxc/icons": "2026.9.29",
20
+ "@sdxc/u": "2026.9.29",
21
+ "remix": "3.0.0-rc.4"
22
22
  },
23
- "gitHead": "00c01e349b11f65b9f47902c5345a817e8afd2b1",
23
+ "gitHead": "c17409b830b01b93514feb67818e3b1dcf654f5a",
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, form controls
4
- * that inherit font/color/line-height, transparent button/input backgrounds
5
- * with a sensible cursor, block-level media, and the rest of the usual
6
- * list/table/[hidden] normalizations.
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;