@synopackageland/ui 0.23.7 → 0.23.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.23.9 (2026-11-08)
6
+
7
+ Semantic corner radius tokens, with no visual change. Each role resolves to the step it replaces, so every corner keeps its size in a DSM window, on the web and on a phone.
8
+
9
+ - New tokens `--ui-radius-inner` (3px), `--ui-radius-control` (4px, already public), `--ui-radius-container` (4px), `--ui-radius-popover` (4px), `--ui-radius-panel` (5px; web and phone 6px) and `--ui-radius-nav` (5px; web and phone 6px), with Tailwind aliases `rounded-ui-inner` … `rounded-ui-nav`. Components round with a role instead of `--ui-radius-sm`, `-md` and `-lg`, so a theme can round raised blocks without rounding fields ([theme hooks](docs/theme-hooks.md#corner-radius))
10
+ - The steps `--ui-radius-sm`, `-md` and `-lg` stay public. Overriding one on `:root` or on the web or phone presentation root (`[data-ui-app]`, `[data-ui-layout-mode]`) still moves every role on it; overriding one on any other element no longer reaches the components inside it, so override the role there instead
11
+
12
+ ## 0.23.8 (2026-11-08)
13
+
14
+ - Document that DSM windows leave AppRoot's `color-scheme` and `data-ui-color-scheme` unset so the app stays light with its DSM window, even under an operating system's dark preference. Only an app's own full page (a portal or its own browser tab) may follow `prefers-color-scheme`. README, the colour system, theme hooks and AppRoot's prop documentation state the rule
15
+
5
16
  ## 0.23.7 (2026-11-08)
6
17
 
7
18
  Phone fixes: the bars stay shown while the page is near its top, so the room above the content is never given up before content lies under it, and a settings commit footer stays put while the page scrolls and is smaller. No App change is required; a DSM window and desktop are unchanged.
package/README.md CHANGED
@@ -476,25 +476,32 @@ readable on it, and leaves the status tones DSM's:
476
476
  </AppRoot>
477
477
  ```
478
478
 
479
- The theme has a dark scheme too: `<AppRoot color-scheme="dark">` switches
479
+ In a DSM window, leave AppRoot's `color-scheme` unset and do not set
480
+ `data-ui-color-scheme`. DSM draws the window light, even when the operating
481
+ system prefers dark mode. Do not follow `prefers-color-scheme` in a DSM window.
482
+
483
+ Only a full page of the app's own (a portal or its own browser tab) may follow
484
+ `prefers-color-scheme`. There, `<AppRoot color-scheme="dark">` switches
480
485
  every token, and derives the accent for a dark page. AppRoot puts
481
486
  `data-ui-color-scheme="dark"` on its root (`[data-ui-app]`); set the attribute
482
487
  there yourself only without AppRoot. The embedded stylesheets
483
488
  (`themes/dsm7-embedded*.css`, a DSM window) read it only on `[data-ui-app]`, never on
484
489
  the host's `<html>`; `<html data-ui-color-scheme="dark">` works only with
485
- `theme.css`, on a page of your own. The host decides when, for
486
- example from `prefers-color-scheme` ([colour system](docs/color-system.md#dark-theme)).
490
+ `theme.css`, on a page of your own ([colour system](docs/color-system.md#dark-theme)).
487
491
 
488
492
  Other tokens are overridden in a stylesheet imported after the library's:
489
493
 
490
494
  ```css
491
495
  :root {
492
- --ui-radius-md: 6px;
496
+ --ui-radius-control: 6px;
493
497
  --ui-page-padding-x: 24px;
494
498
  --ui-section-gap: 16px;
495
499
  }
496
500
  ```
497
501
 
502
+ Corners are rounded by role (`--ui-radius-inner`, `-control`, `-container`,
503
+ `-popover`, `-card`, `-nav`); see [corner radius](docs/theme-hooks.md#corner-radius).
504
+
498
505
  Status tones come in pairs, a soft fill and the text that reads on it:
499
506
  `--ui-{neutral,info,success,warning,danger}-soft` and `-text`. `Badge`,
500
507
  `StatusDot`, `StepList` and `ConnectionTopology` use only these and the base
package/dist/cli.js CHANGED
File without changes
@@ -14,6 +14,8 @@ type __VLS_Props = {
14
14
  */
15
15
  accent?: string;
16
16
  /**
17
+ * Leave unset in a DSM window; DSM draws it light.
18
+ * Only a full page of the app's own may follow `prefers-color-scheme`.
17
19
  * `dark` draws the app in the dark theme (src/theme/dark.css), and derives the
18
20
  * accent for it. A full page can set `data-ui-color-scheme="dark"` on
19
21
  * `<html>` instead, but then passes `dark` here too when it sets an accent.
@@ -1,4 +1,4 @@
1
- export declare const TOOLTIP_CONTENT_CLASS = "z-[1450] max-w-[min(18rem,var(--reka-popper-available-width,18rem))] rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip-bg)] px-3 py-1.5 text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-tooltip-fg)] whitespace-pre-line shadow-[var(--ui-shadow-menu)] [overflow-wrap:anywhere] animate-[ui-fade-in_var(--ui-motion-fast)_var(--ui-motion-ease)]";
1
+ export declare const TOOLTIP_CONTENT_CLASS = "z-[1450] max-w-[min(18rem,var(--reka-popper-available-width,18rem))] rounded-[var(--ui-radius-inner)] bg-[var(--ui-tooltip-bg)] px-3 py-1.5 text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-tooltip-fg)] whitespace-pre-line shadow-[var(--ui-shadow-menu)] [overflow-wrap:anywhere] animate-[ui-fade-in_var(--ui-motion-fast)_var(--ui-motion-ease)]";
2
2
  /** Gap between a tooltip and its trigger. */
3
3
  export declare const TOOLTIP_OFFSET = 6;
4
4
  /** The first tooltip waits this long (interaction-spec §1.1). */
package/dist/grid.js CHANGED
@@ -1270,7 +1270,7 @@ function _a(e) {
1270
1270
  "min-width": "120px",
1271
1271
  "box-sizing": "border-box",
1272
1272
  padding: "4px 8px",
1273
- "border-radius": "var(--ui-radius-sm, 4px)",
1273
+ "border-radius": "var(--ui-radius-inner, 4px)",
1274
1274
  background: "var(--ui-surface-raised, var(--ui-surface))",
1275
1275
  "box-shadow": "var(--ui-shadow-menu)",
1276
1276
  color: "var(--ui-danger-text, var(--ui-danger))",