@synopackageland/ui 0.14.7 → 0.14.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
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.9 (2026-10-23)
4
+
5
+ - `Link` keeps short labels on one line inside content-sized wrappers, including inline-flex parents. Its horizontal hit padding and keyboard focus ring remain; long labels still wrap within the container.
6
+
7
+ ## 0.14.8 (2026-10-23)
8
+
9
+ Visual change: the page behind cards, corners and shadows. Props, slots and exports stay as they were.
10
+
11
+ - `--ui-bg` is a cool page grey (`#f0f2f5`, the hue of Storage Manager's Overview one step deeper) instead of white. A page of cards sits on it in every presentation: `PageContent surface="flat"`, and now `surface="auto"` when the page holds a `Card` or `Surface`; those top-level cards keep a 1px frame (`--ui-border`, the same grey as the web border) and take `--ui-shadow-card`. Pages without cards (lists, Control Panel style forms) and `surface="card"` stay white. The web canvas defaults to `--ui-bg`.
12
+ - Shadows are one soft, layered set: `--ui-shadow-card`, `--ui-shadow-menu` and `--ui-shadow-dialog` use a low-opacity blue-grey instead of 16% / 30% / 60% black. The web card shadow, the phone drawer and the `Slider` and `Switch` thumbs use these tokens instead of their own values.
13
+ - Corners stay within 2px of a card: a message box is 6px (was 8px). The web and phone presentations use 6px for cards and navigation rows (were 10px and 8px) and 8px for dialogs and bottom sheets (were 3px/8px and 12px). Literal 2px and 8px radii now use the radius tokens.
14
+ - `InfoMask` keeps DSM's white mask (it was drawn from `--ui-bg`).
15
+ - Workbench dark mode: three layers (page `#11161c`, card `#1f2832`, menu and dialog `#2b3541`), quieter card frames (`--ui-border-subtle`), a dark inset fill and a dark shadow set.
16
+
3
17
  ## 0.14.7 (2026-10-23)
4
18
 
5
19
  Visual change: buttons in `SettingsSection` and `Card` footers and `Notification` actions change shape. Props, slots and exports stay as they were.
@@ -4,7 +4,7 @@ type __VLS_Props = {
4
4
  * `--ui-page-readable-width`; any other value is a CSS maximum width.
5
5
  */
6
6
  width?: 'fill' | 'readable' | (string & {});
7
- /** Web/portal: auto/card use the white content area; flat uses the dashboard canvas. none adds no surface or horizontal gutters, for content that owns its layout at every width. */
7
+ /** card uses the white content area; flat uses the page grey; auto is white unless the page holds a card, then grey like flat. none adds no surface or horizontal gutters, for content that owns its layout at every width. */
8
8
  surface?: 'auto' | 'flat' | 'card' | 'none';
9
9
  /**
10
10
  * `'fill'` takes the container's height and does not scroll: the header,
package/dist/index.js CHANGED
@@ -18556,7 +18556,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18556
18556
  }, 8, ["class"]),
18557
18557
  I(i(_b), ne(i(D)(), {
18558
18558
  class: i(Oe)(
18559
- "block size-4 rounded-full border border-[var(--ui-border-strong)] bg-[var(--ui-surface-raised)] shadow-sm outline-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
18559
+ "block size-4 rounded-full border border-[var(--ui-border-strong)] bg-[var(--ui-surface-raised)] shadow-[var(--ui-shadow-card)] outline-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
18560
18560
  i(n).disabled ? "cursor-default opacity-50" : "cursor-pointer hover:border-[var(--ui-control-border-hover)] hover:bg-[var(--ui-surface-hover)] active:bg-[var(--ui-control-bg-active)]"
18561
18561
  ),
18562
18562
  onFocus: R[0] || (R[0] = (F) => p.value = !0),
@@ -18801,7 +18801,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18801
18801
  onClick: W
18802
18802
  }), [
18803
18803
  V("span", {
18804
- class: "relative block size-4 shrink-0 overflow-hidden rounded-[2px] border border-[var(--ui-border)]",
18804
+ class: "relative block size-4 shrink-0 overflow-hidden rounded-[var(--ui-radius-sm)] border border-[var(--ui-border)]",
18805
18805
  style: ke(C.value < 1 ? { backgroundImage: _1, backgroundSize: "8px 8px" } : void 0),
18806
18806
  "data-testid": "color-picker-preview"
18807
18807
  }, [
@@ -18867,7 +18867,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18867
18867
  onClick: (de) => R(se.value)
18868
18868
  }, [
18869
18869
  V("span", {
18870
- class: "block size-full rounded-[2px] border border-[var(--ui-border-strong)]",
18870
+ class: "block size-full rounded-[var(--ui-radius-sm)] border border-[var(--ui-border-strong)]",
18871
18871
  style: ke({ backgroundColor: se.value })
18872
18872
  }, null, 4)
18873
18873
  ], 42, g1))), 128))
@@ -19025,7 +19025,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
19025
19025
  })
19026
19026
  }), {
19027
19027
  default: _(() => [
19028
- I(i(F0), { class: "block size-3.5 translate-x-[1px] rounded-full bg-white shadow-sm transition-transform duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:translate-x-[15px]" })
19028
+ I(i(F0), { class: "block size-3.5 translate-x-[1px] rounded-full bg-white shadow-[var(--ui-shadow-card)] transition-transform duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:translate-x-[15px]" })
19029
19029
  ]),
19030
19030
  _: 1
19031
19031
  }, 16, ["model-value", "disabled"]),
@@ -25122,7 +25122,7 @@ const Pc = "-ml-1 flex items-center justify-start gap-1", GE = ["data-ui-data-vi
25122
25122
  "data-ui-cell-primary": "",
25123
25123
  "data-ui-tooltip-hint": e.openLabel,
25124
25124
  disabled: e.openDisabled,
25125
- class: te([o.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[2px] border-0 bg-transparent px-0.5 py-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
25125
+ class: te([o.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[var(--ui-radius-sm)] border-0 bg-transparent px-0.5 py-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
25126
25126
  onClick: l[0] || (l[0] = (s) => r.$emit("open"))
25127
25127
  }, [
25128
25128
  S(r.$slots, "default", {}, () => [
@@ -25163,7 +25163,7 @@ const Pc = "-ml-1 flex items-center justify-start gap-1", GE = ["data-ui-data-vi
25163
25163
  }, uT = {
25164
25164
  "data-ui-cell-status-label": "",
25165
25165
  tabindex: "0",
25166
- class: "-mx-0.5 min-w-0 truncate rounded-[2px] px-0.5 outline-none focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]"
25166
+ class: "-mx-0.5 min-w-0 truncate rounded-[var(--ui-radius-sm)] px-0.5 outline-none focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]"
25167
25167
  }, dT = {
25168
25168
  key: 1,
25169
25169
  "data-ui-cell-status-label": "",
@@ -28161,7 +28161,7 @@ const oP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, r
28161
28161
  onClick: (fe) => ue(Te)
28162
28162
  }, [
28163
28163
  V("span", {
28164
- class: te(["size-3.5 shrink-0 rounded-[2px] border border-[var(--ui-border)]", L(String(Te.index))]),
28164
+ class: te(["size-3.5 shrink-0 rounded-[var(--ui-radius-sm)] border border-[var(--ui-border)]", L(String(Te.index))]),
28165
28165
  style: ke(R(String(Te.index))),
28166
28166
  "aria-hidden": "true"
28167
28167
  }, null, 6),
@@ -28285,7 +28285,7 @@ const oP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, r
28285
28285
  }, kP = ["inert", "aria-hidden"], CP = {
28286
28286
  key: 0,
28287
28287
  class: "z-[1] flex [grid-area:1/1] items-center justify-center overflow-auto p-4",
28288
- style: { background: "color-mix(in srgb, var(--ui-bg) 72%, transparent)" }
28288
+ style: { background: "color-mix(in srgb, var(--ui-surface) 72%, transparent)" }
28289
28289
  }, SP = ["aria-label"], II = /* @__PURE__ */ q({
28290
28290
  __name: "InfoMask",
28291
28291
  props: {
@@ -33145,7 +33145,7 @@ const KO = {
33145
33145
  rel: s.value,
33146
33146
  "aria-disabled": e.disabled || void 0,
33147
33147
  tabindex: e.disabled ? -1 : void 0,
33148
- class: te(["-mx-0.5 inline-flex max-w-full items-center gap-1 rounded-[var(--ui-radius-sm)] text-[var(--ui-primary)] underline underline-offset-2 px-0.5 outline-none hover:text-[var(--ui-primary-hover)] focus-visible:shadow-[var(--ui-shadow-focus)]", e.disabled ? "cursor-default opacity-50" : "cursor-pointer"]),
33148
+ class: te(["inline-flex max-w-full items-center gap-1 rounded-[var(--ui-radius-sm)] text-[var(--ui-primary)] underline underline-offset-2 px-0.5 outline-none hover:text-[var(--ui-primary-hover)] focus-visible:shadow-[var(--ui-shadow-focus)]", e.disabled ? "cursor-default opacity-50" : "cursor-pointer"]),
33149
33149
  "data-syno-pkg-land-ui": "",
33150
33150
  onClick: u
33151
33151
  }, [
@@ -22255,7 +22255,7 @@ const dP = ["for"], fP = {
22255
22255
  })
22256
22256
  }), {
22257
22257
  default: I(() => [
22258
- W(p(eP), { class: "block size-3.5 translate-x-[1px] rounded-full bg-white shadow-sm transition-transform duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:translate-x-[15px]" })
22258
+ W(p(eP), { class: "block size-3.5 translate-x-[1px] rounded-full bg-white shadow-[var(--ui-shadow-card)] transition-transform duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:translate-x-[15px]" })
22259
22259
  ]),
22260
22260
  _: 1
22261
22261
  }, 16, ["model-value", "disabled"]),
@@ -24261,7 +24261,7 @@ const EI = "-ml-1 flex items-center justify-start gap-1", PI = ["data-ui-data-vi
24261
24261
  "data-ui-cell-primary": "",
24262
24262
  "data-ui-tooltip-hint": e.openLabel,
24263
24263
  disabled: e.openDisabled,
24264
- class: te([o.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[2px] border-0 bg-transparent px-0.5 py-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
24264
+ class: te([o.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[var(--ui-radius-sm)] border-0 bg-transparent px-0.5 py-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
24265
24265
  onClick: a[0] || (a[0] = (s) => i.$emit("open"))
24266
24266
  }, [
24267
24267
  R(i.$slots, "default", {}, () => [
@@ -24302,7 +24302,7 @@ const EI = "-ml-1 flex items-center justify-start gap-1", PI = ["data-ui-data-vi
24302
24302
  }, KI = {
24303
24303
  "data-ui-cell-status-label": "",
24304
24304
  tabindex: "0",
24305
- class: "-mx-0.5 min-w-0 truncate rounded-[2px] px-0.5 outline-none focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]"
24305
+ class: "-mx-0.5 min-w-0 truncate rounded-[var(--ui-radius-sm)] px-0.5 outline-none focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]"
24306
24306
  }, ZI = {
24307
24307
  key: 1,
24308
24308
  "data-ui-cell-status-label": "",
@@ -3,7 +3,7 @@
3
3
  "version": "2.10.5",
4
4
  "delivery": "bundled-patched-esm",
5
5
  "patchManifestSha256": "14f10159b60d48ac7a0686f58faf7a30e99898dc267b3c032cf2bdd6052dc52b",
6
- "bundleSha256": "31923fb1aa37038cbb1c76cc2609d1d3c95dd1e7481e99f5f13b67aff922a680",
6
+ "bundleSha256": "52e3a1467592c4c601118becdd6c7bacaa68d5a777758af8acb9958e0a22ad6c",
7
7
  "sourceHashes": {
8
8
  "shared/useBodyScrollLock.js": "657592f283cb6fd25454abd284a0024af21936cb56e05b762ff0d22b6a979d32",
9
9
  "DismissableLayer/DismissableLayer.js": "da05ca544d9822a8e2b71057e78c0e1ef59423aa3893534338fb58e1ecbd1a8d",