@synopackageland/ui 0.23.8 → 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 +7 -0
- package/README.md +4 -1
- package/dist/cli.js +0 -0
- package/dist/components/primitives/tooltip/tooltipStyle.d.ts +1 -1
- package/dist/grid.js +1 -1
- package/dist/index.js +135 -135
- package/dist/json-preview/preview.js +30 -30
- package/dist/reka-runtime.json +1 -1
- package/dist/rich-text.js +6 -6
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/theme-hooks.md +29 -0
- package/package.json +89 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
|
|
5
12
|
## 0.23.8 (2026-11-08)
|
|
6
13
|
|
|
7
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
|
package/README.md
CHANGED
|
@@ -493,12 +493,15 @@ Other tokens are overridden in a stylesheet imported after the library's:
|
|
|
493
493
|
|
|
494
494
|
```css
|
|
495
495
|
:root {
|
|
496
|
-
--ui-radius-
|
|
496
|
+
--ui-radius-control: 6px;
|
|
497
497
|
--ui-page-padding-x: 24px;
|
|
498
498
|
--ui-section-gap: 16px;
|
|
499
499
|
}
|
|
500
500
|
```
|
|
501
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
|
+
|
|
502
505
|
Status tones come in pairs, a soft fill and the text that reads on it:
|
|
503
506
|
`--ui-{neutral,info,success,warning,danger}-soft` and `-text`. `Badge`,
|
|
504
507
|
`StatusDot`, `StepList` and `ConnectionTopology` use only these and the base
|
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -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-
|
|
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-
|
|
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))",
|