@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 +11 -0
- package/README.md +11 -4
- package/dist/cli.js +0 -0
- package/dist/components/app/app-root/AppRoot.vue.d.ts +2 -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/color-system.md +10 -3
- package/docs/theme-hooks.md +34 -0
- package/package.json +89 -3
|
@@ -15215,7 +15215,7 @@ const DT = ["value", "type", "name", "placeholder", "disabled", "readonly"], RT
|
|
|
15215
15215
|
disabled: d(o),
|
|
15216
15216
|
"aria-label": l.value ? d(r)("Hide password") : d(r)("Show password"),
|
|
15217
15217
|
"aria-pressed": l.value,
|
|
15218
|
-
class: "absolute right-1 flex size-6 [--ui-hit-end-room:4px] items-center justify-center rounded-[var(--ui-radius-
|
|
15218
|
+
class: "absolute right-1 flex size-6 [--ui-hit-end-room:4px] items-center justify-center rounded-[var(--ui-radius-inner)] border-0 bg-transparent p-0 text-[var(--ui-text-secondary)] outline-none hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40",
|
|
15219
15219
|
onClick: k[1] || (k[1] = (b) => l.value = !l.value)
|
|
15220
15220
|
}, [
|
|
15221
15221
|
l.value ? (g(), F(d(wO), {
|
|
@@ -26938,7 +26938,7 @@ const ef = /* @__PURE__ */ j({
|
|
|
26938
26938
|
id: c.value,
|
|
26939
26939
|
"model-value": n.indeterminate ? "indeterminate" : n.modelValue,
|
|
26940
26940
|
disabled: d(o),
|
|
26941
|
-
class: [u.value && "mt-[var(--ui-choice-box-offset)]", "flex size-[var(--ui-choice-box-size)] shrink-0 items-center justify-center rounded-[var(--ui-radius-
|
|
26941
|
+
class: [u.value && "mt-[var(--ui-choice-box-offset)]", "flex size-[var(--ui-choice-box-size)] shrink-0 items-center justify-center rounded-[var(--ui-radius-inner)] border border-[var(--ui-border-strong)] aria-[invalid=true]:border-[var(--ui-danger)] bg-[var(--ui-surface)] text-[var(--ui-primary-foreground)] outline-none transition-[border-color,background-color,box-shadow] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:border-[var(--ui-primary)] data-[state=checked]:bg-[var(--ui-primary)] data-[state=indeterminate]:border-[var(--ui-primary)] data-[state=indeterminate]:bg-[var(--ui-primary)] data-[disabled]:data-[state=indeterminate]:opacity-50 data-[state=indeterminate]:enabled:hover:bg-[var(--ui-primary-hover)] data-[state=indeterminate]:enabled:hover:border-[var(--ui-primary-hover)] focus-visible:shadow-[var(--ui-shadow-focus)] disabled:bg-[var(--ui-surface-subtle)] data-[disabled]:data-[state=checked]:opacity-50 data-[state=unchecked]:enabled:hover:border-[var(--ui-control-border-hover)] data-[state=unchecked]:enabled:active:bg-[var(--ui-control-bg-active)] data-[state=checked]:enabled:hover:bg-[var(--ui-primary-hover)] data-[state=checked]:enabled:hover:border-[var(--ui-primary-hover)] data-[state=checked]:enabled:active:bg-[var(--ui-primary-active)] data-[state=checked]:enabled:active:border-[var(--ui-primary-active)]"],
|
|
26942
26942
|
"onUpdate:modelValue": p[0] || (p[0] = (h) => {
|
|
26943
26943
|
d(s)(h), a("update:modelValue", h === !0);
|
|
26944
26944
|
})
|
|
@@ -27027,7 +27027,7 @@ const ef = /* @__PURE__ */ j({
|
|
|
27027
27027
|
}
|
|
27028
27028
|
}), NF = ["data-ui-choice-card", "data-state", "data-disabled"], LF = { class: "min-w-0 flex-1 break-words" }, FF = {
|
|
27029
27029
|
key: 0,
|
|
27030
|
-
class: "ui-choice-card-icon mb-[var(--ui-space-2)] flex size-8 items-center justify-center rounded-[var(--ui-radius-
|
|
27030
|
+
class: "ui-choice-card-icon mb-[var(--ui-space-2)] flex size-8 items-center justify-center rounded-[var(--ui-radius-control)]",
|
|
27031
27031
|
"data-ui-choice-card-icon": "",
|
|
27032
27032
|
"aria-hidden": "true"
|
|
27033
27033
|
}, zF = /* @__PURE__ */ j({
|
|
@@ -27061,7 +27061,7 @@ const ef = /* @__PURE__ */ j({
|
|
|
27061
27061
|
key: u.value,
|
|
27062
27062
|
class: de(["flex min-w-0 items-start gap-[var(--ui-choice-box-gap)] text-[length:var(--ui-font-size-control)] text-[var(--ui-text)]", [
|
|
27063
27063
|
d(o) || u.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer",
|
|
27064
|
-
n.variant === "card" ? "ui-choice-card relative rounded-[var(--ui-radius-
|
|
27064
|
+
n.variant === "card" ? "ui-choice-card relative rounded-[var(--ui-radius-panel)] border p-[var(--ui-space-3)] transition-[border-color,background-color,box-shadow] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)]" : "[@media(pointer:coarse)]:min-h-8 [@media(pointer:coarse)]:items-center"
|
|
27065
27065
|
]]),
|
|
27066
27066
|
"data-ui-choice-card": n.variant === "card" ? "" : void 0,
|
|
27067
27067
|
"data-state": n.variant === "card" ? n.modelValue === u.value ? "checked" : "unchecked" : void 0,
|
|
@@ -27161,12 +27161,12 @@ const WF = {
|
|
|
27161
27161
|
key: 0,
|
|
27162
27162
|
"data-ui-option-check": "",
|
|
27163
27163
|
"aria-hidden": "true",
|
|
27164
|
-
class: "flex size-5 shrink-0 items-center justify-center rounded-[var(--ui-radius-
|
|
27164
|
+
class: "flex size-5 shrink-0 items-center justify-center rounded-[var(--ui-radius-inner)] border border-[var(--ui-border-strong)] bg-[var(--ui-surface)] text-[var(--ui-primary-foreground)] group-data-[state=checked]:border-[var(--ui-primary)] group-data-[state=checked]:bg-[var(--ui-primary)]"
|
|
27165
27165
|
}, HF = { class: "min-w-0 flex-1 truncate" }, ZF = {
|
|
27166
27166
|
key: 0,
|
|
27167
27167
|
class: "px-3 py-3 text-[length:var(--ui-font-size)] text-[var(--ui-text-muted)]",
|
|
27168
27168
|
"aria-live": "polite"
|
|
27169
|
-
}, GF = { class: "min-w-0 flex-1 truncate" }, hv = "relative flex min-h-12 select-none items-center gap-3 rounded-[var(--ui-radius-
|
|
27169
|
+
}, GF = { class: "min-w-0 flex-1 truncate" }, hv = "relative flex min-h-12 select-none items-center gap-3 rounded-[var(--ui-radius-control)] px-3 text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-neutral-soft)] data-[disabled]:opacity-40", YF = /* @__PURE__ */ j({
|
|
27170
27170
|
__name: "SelectSheet",
|
|
27171
27171
|
props: {
|
|
27172
27172
|
open: { type: Boolean },
|
|
@@ -27459,7 +27459,7 @@ const WF = {
|
|
|
27459
27459
|
"data-ui-popup-motion": d(M)() === "none" ? "none" : void 0,
|
|
27460
27460
|
position: "popper",
|
|
27461
27461
|
"side-offset": 4,
|
|
27462
|
-
class: ["z-[1450] min-w-[min(var(--reka-select-trigger-width),var(--reka-popper-available-width))] overflow-hidden rounded-[var(--ui-radius-
|
|
27462
|
+
class: ["z-[1450] min-w-[min(var(--reka-select-trigger-width),var(--reka-popper-available-width))] overflow-hidden rounded-[var(--ui-radius-popover)] border border-[var(--ui-border-floating)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)]", d(Tl)],
|
|
27463
27463
|
"data-syno-pkg-land-ui": "",
|
|
27464
27464
|
onEscapeKeyDown: d(Ml),
|
|
27465
27465
|
onFocusin: k,
|
|
@@ -27505,7 +27505,7 @@ const WF = {
|
|
|
27505
27505
|
value: re.value,
|
|
27506
27506
|
"text-value": re.label,
|
|
27507
27507
|
disabled: re.disabled,
|
|
27508
|
-
class: de(["relative flex h-[var(--ui-menu-row-height)] select-none items-center rounded-[var(--ui-radius-
|
|
27508
|
+
class: de(["relative flex h-[var(--ui-menu-row-height)] select-none items-center rounded-[var(--ui-radius-inner)] py-1 pr-8 text-[length:var(--ui-font-size-control)] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-neutral-soft)] data-[state=checked]:bg-[var(--ui-surface-selected)] data-[disabled]:opacity-40", ge.label && ge.indent ? "pl-5" : "pl-2.5"])
|
|
27509
27509
|
}, {
|
|
27510
27510
|
default: R(() => [
|
|
27511
27511
|
ie("span", oz, [
|
|
@@ -27617,7 +27617,7 @@ function pz() {
|
|
|
27617
27617
|
function vw() {
|
|
27618
27618
|
return Fe(hw, !1);
|
|
27619
27619
|
}
|
|
27620
|
-
const mw = "z-[1450] max-w-[min(18rem,var(--reka-popper-available-width,18rem))] rounded-[var(--ui-radius-
|
|
27620
|
+
const mw = "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)]", gw = 6, yw = 350, hz = 300;
|
|
27621
27621
|
let Cr = 0, Mc;
|
|
27622
27622
|
const Nl = /* @__PURE__ */ N(!1);
|
|
27623
27623
|
function bw() {
|
|
@@ -27820,7 +27820,7 @@ const ww = /* @__PURE__ */ j({
|
|
|
27820
27820
|
setup(e) {
|
|
27821
27821
|
const n = Zn(e, { label: "Loading" });
|
|
27822
27822
|
return (o, a) => (g(), I("div", {
|
|
27823
|
-
class: "inline-flex min-h-8 items-center gap-2 rounded-[var(--ui-radius-
|
|
27823
|
+
class: "inline-flex min-h-8 items-center gap-2 rounded-[var(--ui-radius-inner)] border border-[var(--ui-border)] bg-[var(--ui-surface)] py-1 pr-4 pl-2 text-[length:var(--ui-font-size)] leading-5 text-[var(--ui-text)] shadow-[var(--ui-shadow-card)]",
|
|
27824
27824
|
role: "status",
|
|
27825
27825
|
"aria-label": e.text || d(n).label,
|
|
27826
27826
|
"data-syno-pkg-land-ui": ""
|
|
@@ -27911,7 +27911,7 @@ const ww = /* @__PURE__ */ j({
|
|
|
27911
27911
|
props: {
|
|
27912
27912
|
width: { default: "100%" },
|
|
27913
27913
|
height: { default: "16px" },
|
|
27914
|
-
radius: { default: "var(--ui-radius-
|
|
27914
|
+
radius: { default: "var(--ui-radius-inner)" },
|
|
27915
27915
|
pulse: { type: Boolean, default: !0 }
|
|
27916
27916
|
},
|
|
27917
27917
|
setup(e) {
|
|
@@ -28133,7 +28133,7 @@ const Iz = ["data-ui-skeleton", "data-pending"], Dz = { class: "sr-only" }, Rz =
|
|
|
28133
28133
|
(g(!0), I(xe, null, Ze(e.count, (p) => (g(), I("span", {
|
|
28134
28134
|
key: p,
|
|
28135
28135
|
"data-ui-skeleton-card": "",
|
|
28136
|
-
class: "box-border flex flex-col gap-2 overflow-hidden rounded-[var(--ui-radius-
|
|
28136
|
+
class: "box-border flex flex-col gap-2 overflow-hidden rounded-[var(--ui-radius-container)] border border-[var(--ui-border-subtle)] px-3 py-2",
|
|
28137
28137
|
style: Ge({ height: e.cardHeight })
|
|
28138
28138
|
}, [
|
|
28139
28139
|
K(Xt, {
|
|
@@ -28185,7 +28185,7 @@ const Iz = ["data-ui-skeleton", "data-pending"], Dz = { class: "sr-only" }, Rz =
|
|
|
28185
28185
|
const t = e, n = { none: "", sm: "p-3", md: "p-4", lg: "p-6" }, o = S(() => t.variant === "inset"), a = S(() => t.padding ? n[t.padding] : o.value ? "px-4 py-3" : n.md);
|
|
28186
28186
|
return (r, i) => (g(), I("section", {
|
|
28187
28187
|
class: de([
|
|
28188
|
-
"rounded-[var(--ui-radius-
|
|
28188
|
+
"rounded-[var(--ui-radius-container)]",
|
|
28189
28189
|
o.value ? "bg-[var(--ui-surface-inset)]" : "bg-[var(--ui-surface)]",
|
|
28190
28190
|
e.border && !o.value && "border border-[var(--ui-border-subtle)]",
|
|
28191
28191
|
e.raised && "shadow-[var(--ui-shadow-menu)]",
|
|
@@ -28629,7 +28629,7 @@ const Hz = {
|
|
|
28629
28629
|
}, vB = {
|
|
28630
28630
|
key: 1,
|
|
28631
28631
|
class: "shrink-0 text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-muted)]"
|
|
28632
|
-
}, Xi = "flex min-h-[var(--ui-menu-row-height)] select-none items-center gap-2 rounded-[var(--ui-radius-
|
|
28632
|
+
}, Xi = "flex min-h-[var(--ui-menu-row-height)] select-none items-center gap-2 rounded-[var(--ui-radius-inner)] px-2 py-1 text-left text-[length:var(--ui-font-size)] outline-none data-[highlighted]:bg-[var(--ui-primary-soft)] data-[disabled]:opacity-40", mB = /* @__PURE__ */ j({
|
|
28633
28633
|
name: "DropdownMenuItems",
|
|
28634
28634
|
__name: "DropdownMenuItems",
|
|
28635
28635
|
props: {
|
|
@@ -28707,7 +28707,7 @@ const Hz = {
|
|
|
28707
28707
|
"side-offset": 4,
|
|
28708
28708
|
"align-offset": -4
|
|
28709
28709
|
}, { ref_for: !0 }, e.floating, {
|
|
28710
|
-
class: ["z-[1450] min-w-[min(11rem,var(--reka-popper-available-width))] overflow-y-auto [scrollbar-gutter:stable] rounded-[var(--ui-radius-
|
|
28710
|
+
class: ["z-[1450] min-w-[min(11rem,var(--reka-popper-available-width))] overflow-y-auto [scrollbar-gutter:stable] rounded-[var(--ui-radius-popover)] border border-[var(--ui-border-floating)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)] outline-none", d(Tl)],
|
|
28711
28711
|
"data-syno-pkg-land-ui": ""
|
|
28712
28712
|
}), {
|
|
28713
28713
|
default: R(() => [
|
|
@@ -28856,7 +28856,7 @@ const Hz = {
|
|
|
28856
28856
|
key: 1,
|
|
28857
28857
|
"data-menu-hint": "",
|
|
28858
28858
|
class: "shrink-0 text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-muted)]"
|
|
28859
|
-
}, Bu = "flex min-h-12 w-full select-none items-center gap-3 rounded-[var(--ui-radius-
|
|
28859
|
+
}, Bu = "flex min-h-12 w-full select-none items-center gap-3 rounded-[var(--ui-radius-control)] px-3 py-1.5 text-left text-[length:var(--ui-font-size)] outline-none hover:bg-[var(--ui-neutral-soft)] focus-visible:bg-[var(--ui-neutral-soft)] disabled:opacity-40", CB = /* @__PURE__ */ j({
|
|
28860
28860
|
inheritAttrs: !1,
|
|
28861
28861
|
__name: "DropdownMenuSheet",
|
|
28862
28862
|
props: {
|
|
@@ -29086,7 +29086,7 @@ const Hz = {
|
|
|
29086
29086
|
"data-ui-popup-motion": d(k)() === "none" ? "none" : void 0,
|
|
29087
29087
|
align: n.align,
|
|
29088
29088
|
"side-offset": 4,
|
|
29089
|
-
class: ["z-[1450] min-w-[min(11rem,var(--reka-popper-available-width))] overflow-y-auto [scrollbar-gutter:stable] rounded-[var(--ui-radius-
|
|
29089
|
+
class: ["z-[1450] min-w-[min(11rem,var(--reka-popper-available-width))] overflow-y-auto [scrollbar-gutter:stable] rounded-[var(--ui-radius-popover)] border border-[var(--ui-border-floating)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)] outline-none", d(Tl)],
|
|
29090
29090
|
"data-syno-pkg-land-ui": "",
|
|
29091
29091
|
onEscapeKeyDown: d(Ml)
|
|
29092
29092
|
}), {
|
|
@@ -29389,7 +29389,7 @@ const TB = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], $B = ["data
|
|
|
29389
29389
|
key: 0,
|
|
29390
29390
|
"data-dialog-close": "",
|
|
29391
29391
|
"data-ui-hit": "",
|
|
29392
|
-
class: "-my-1 [@media(pointer:coarse)]:my-0 flex size-7 shrink-0 items-center justify-center rounded-[var(--ui-radius-
|
|
29392
|
+
class: "-my-1 [@media(pointer:coarse)]:my-0 flex size-7 shrink-0 items-center justify-center rounded-[var(--ui-radius-inner)] text-[var(--ui-text-muted)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
29393
29393
|
"aria-label": d(o).closeLabel
|
|
29394
29394
|
}, {
|
|
29395
29395
|
default: R(() => [
|
|
@@ -29583,7 +29583,7 @@ const BB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29583
29583
|
A.target === v.value && A.propertyName === "transform" && b();
|
|
29584
29584
|
}
|
|
29585
29585
|
Le(() => clearTimeout(y));
|
|
29586
|
-
const T = { borderRadius: "var(--ui-radius-
|
|
29586
|
+
const T = { borderRadius: "var(--ui-radius-control)", background: "var(--ui-surface)", boxShadow: "var(--ui-shadow-card)" };
|
|
29587
29587
|
return (A, P) => (g(), I("div", {
|
|
29588
29588
|
ref_key: "root",
|
|
29589
29589
|
ref: f,
|
|
@@ -29592,7 +29592,7 @@ const BB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29592
29592
|
"aria-labelledby": n.ariaLabelledby,
|
|
29593
29593
|
class: de([
|
|
29594
29594
|
"ui-segment-control",
|
|
29595
|
-
n.variant === "sheet" ? "relative isolate inline-flex w-[var(--ui-segment-control-width,auto)] max-w-full items-end shadow-[inset_0_-1px_0_var(--ui-border)]" : u.size.value === "sm" ? "relative isolate inline-flex h-8 w-[var(--ui-segment-control-width,auto)] max-w-full items-center gap-[var(--ui-space-1)] overflow-x-auto [scrollbar-width:none] rounded-[var(--ui-radius-
|
|
29595
|
+
n.variant === "sheet" ? "relative isolate inline-flex w-[var(--ui-segment-control-width,auto)] max-w-full items-end shadow-[inset_0_-1px_0_var(--ui-border)]" : u.size.value === "sm" ? "relative isolate inline-flex h-8 w-[var(--ui-segment-control-width,auto)] max-w-full items-center gap-[var(--ui-space-1)] overflow-x-auto [scrollbar-width:none] rounded-[var(--ui-radius-panel)] bg-[var(--ui-surface-subtle)] p-1" : "relative isolate inline-flex w-[var(--ui-segment-control-width,auto)] max-w-full items-center gap-[var(--ui-space-1)] overflow-x-auto [scrollbar-width:none] rounded-[var(--ui-radius-pill)] border border-[var(--ui-border)] bg-[var(--ui-surface-subtle)] p-px",
|
|
29596
29596
|
n.disabled && "opacity-40"
|
|
29597
29597
|
]),
|
|
29598
29598
|
"data-ui-segment-control": n.variant,
|
|
@@ -29638,7 +29638,7 @@ const BB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29638
29638
|
si(i);
|
|
29639
29639
|
const s = S(() => n?.selected.value === t.value), l = S(() => t.disabled || !!n?.groupDisabled.value), c = S(() => s.value && !l.value ? 0 : -1), u = S(() => t.dot !== !1 && t.dot !== void 0), f = S(() => typeof t.dot == "string" && t.dot ? t.dot : void 0), p = S(() => typeof t.tooltip == "string" ? t.tooltip : t.tooltip === !0 ? t.ariaLabel ?? o.value?.textContent?.trim() ?? "" : t.tooltip && typeof t.tooltip == "object" && typeof t.tooltip.content == "string" ? t.tooltip.content : ""), h = S(
|
|
29640
29640
|
() => an(
|
|
29641
|
-
"relative inline-flex h-6 shrink-0 items-center justify-center gap-1.5 rounded-[var(--ui-radius-
|
|
29641
|
+
"relative inline-flex h-6 shrink-0 items-center justify-center gap-1.5 rounded-[var(--ui-radius-control)] px-2 text-[length:var(--ui-font-size-sm)] font-medium outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
29642
29642
|
r.value ? "min-w-6" : "min-w-12",
|
|
29643
29643
|
s.value ? "bg-[var(--ui-surface)] text-[var(--ui-text)] shadow-[var(--ui-shadow-card)] [[data-ui-segment-moving]_&]:shadow-none" : "text-[var(--ui-text-secondary)]",
|
|
29644
29644
|
l.value ? "opacity-40" : !s.value && "hover:text-[var(--ui-text)] hover:bg-[var(--ui-surface-hover)]"
|
|
@@ -29653,7 +29653,7 @@ const BB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29653
29653
|
)
|
|
29654
29654
|
), m = S(
|
|
29655
29655
|
() => an(
|
|
29656
|
-
"relative -ms-px inline-flex h-8 min-w-0 shrink items-center justify-center gap-1.5 whitespace-nowrap rounded-t-[var(--ui-radius-
|
|
29656
|
+
"relative -ms-px inline-flex h-8 min-w-0 shrink items-center justify-center gap-1.5 whitespace-nowrap rounded-t-[var(--ui-radius-inner)] border border-[var(--ui-border)] px-3 text-[length:var(--ui-font-size)] outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] first:ms-0 focus-visible:z-[2] focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
29657
29657
|
s.value && "z-[1] border-b-[var(--ui-surface)] bg-[var(--ui-surface)] font-medium text-[var(--ui-accent-11)] shadow-[inset_0_2px_0_var(--ui-accent-9)] focus-visible:shadow-[inset_0_2px_0_var(--ui-accent-9),var(--ui-shadow-focus)]",
|
|
29658
29658
|
!s.value && "bg-[var(--ui-surface-subtle)] text-[var(--ui-text-secondary)]",
|
|
29659
29659
|
l.value ? "opacity-40" : !s.value && "hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] active:bg-[var(--ui-surface-selected)]"
|
|
@@ -30274,7 +30274,7 @@ const kq = {
|
|
|
30274
30274
|
"data-disabled": e.disabled || void 0,
|
|
30275
30275
|
"data-ui-infotip-wrap": e.wrap || void 0,
|
|
30276
30276
|
"data-ui-hit": e.wrap ? void 0 : "",
|
|
30277
|
-
class: ["relative inline-flex items-center outline-none transition-colors duration-[var(--ui-motion-fast)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] data-[disabled]:opacity-40", e.wrap ? "min-w-0 max-w-full gap-[inherit] rounded-[var(--ui-radius-
|
|
30277
|
+
class: ["relative inline-flex items-center outline-none transition-colors duration-[var(--ui-motion-fast)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] data-[disabled]:opacity-40", e.wrap ? "min-w-0 max-w-full gap-[inherit] rounded-[var(--ui-radius-inner)] text-start text-inherit" : [
|
|
30278
30278
|
"shrink-0 justify-center rounded-full align-middle before:absolute before:content-['']",
|
|
30279
30279
|
e.type === "white" ? "text-[var(--ui-primary-foreground)]" : "text-[var(--ui-primary)]",
|
|
30280
30280
|
e.size === "small" ? "size-3.5 [@media(pointer:fine)]:before:-inset-2.5" : "size-4 [@media(pointer:fine)]:before:-inset-2"
|
|
@@ -30313,7 +30313,7 @@ const kq = {
|
|
|
30313
30313
|
ref_key: "contentEl",
|
|
30314
30314
|
ref: l,
|
|
30315
30315
|
role: "tooltip",
|
|
30316
|
-
class: de(["z-[1450] max-w-[min(18rem,var(--reka-popper-available-width))] max-h-[var(--reka-popper-available-height)] overflow-y-auto rounded-[var(--ui-radius-
|
|
30316
|
+
class: de(["z-[1450] max-w-[min(18rem,var(--reka-popper-available-width))] max-h-[var(--reka-popper-available-height)] overflow-y-auto rounded-[var(--ui-radius-inner)] bg-[var(--ui-tooltip-bg)] text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-tooltip-fg)] [overflow-wrap:anywhere] shadow-[var(--ui-shadow-menu)] outline-none [&_a]:underline [&_a]:text-inherit", b.value]),
|
|
30317
30317
|
"data-syno-pkg-land-ui": "",
|
|
30318
30318
|
onPointerenter: ge,
|
|
30319
30319
|
onPointerleave: re,
|
|
@@ -30867,7 +30867,7 @@ const pV = ["data-ui-data-view", "data-fill"], hV = {
|
|
|
30867
30867
|
(g(!0), I(xe, null, Ze(d(a).rows, (q, Z) => (g(), I("article", {
|
|
30868
30868
|
key: D(q, Z),
|
|
30869
30869
|
"data-ui-row-new": d(M).has(D(q, Z)) ? "" : void 0,
|
|
30870
|
-
class: "min-w-0 rounded-[var(--ui-radius-
|
|
30870
|
+
class: "min-w-0 rounded-[var(--ui-radius-container)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-3 py-2.5",
|
|
30871
30871
|
role: "listitem"
|
|
30872
30872
|
}, [
|
|
30873
30873
|
ie("dl", xV, [
|
|
@@ -31026,7 +31026,7 @@ const pV = ["data-ui-data-view", "data-fill"], hV = {
|
|
|
31026
31026
|
"data-ui-cell-primary": "",
|
|
31027
31027
|
"data-ui-tooltip-hint": e.openLabel,
|
|
31028
31028
|
disabled: e.openDisabled,
|
|
31029
|
-
class: de([a.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[var(--ui-radius-
|
|
31029
|
+
class: de([a.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[var(--ui-radius-inner)] 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"]),
|
|
31030
31030
|
onClick: i[0] || (i[0] = (s) => r.$emit("open"))
|
|
31031
31031
|
}, [
|
|
31032
31032
|
z(r.$slots, "default", {}, () => [
|
|
@@ -31067,7 +31067,7 @@ const pV = ["data-ui-data-view", "data-fill"], hV = {
|
|
|
31067
31067
|
}, BV = {
|
|
31068
31068
|
"data-ui-cell-status-label": "",
|
|
31069
31069
|
tabindex: "0",
|
|
31070
|
-
class: "-mx-0.5 min-w-0 truncate rounded-[var(--ui-radius-
|
|
31070
|
+
class: "-mx-0.5 min-w-0 truncate rounded-[var(--ui-radius-inner)] px-0.5 outline-none focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]"
|
|
31071
31071
|
}, qV = {
|
|
31072
31072
|
key: 1,
|
|
31073
31073
|
"data-ui-cell-status-label": "",
|
|
@@ -32565,7 +32565,7 @@ const j2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32565
32565
|
emits: ["select", "toggle"],
|
|
32566
32566
|
setup(e, { emit: t }) {
|
|
32567
32567
|
const n = e, o = t, a = (f) => n.searching || n.expandedKeys.includes(f.key), r = (f) => n.collapsed ? void 0 : { paddingLeft: `calc(var(--ui-space-3) + ${f * 16}px)` }, i = (f) => !!n.collapsed && !f.icon, s = (f) => !!f.children?.some((p) => i(p) && n.modelValue === p.key || s(p)), l = (f) => n.modelValue === f.key || !!n.collapsed && s(f), c = S(() => !n.collapsed && n.items.some((f) => f.children?.length)), u = (f) => [
|
|
32568
|
-
"flex min-h-[var(--ui-nav-row-height,var(--ui-nav-row-height-default,42px))] w-full items-center border-0 gap-[var(--ui-space-2)] rounded-[var(--ui-radius-
|
|
32568
|
+
"flex min-h-[var(--ui-nav-row-height,var(--ui-nav-row-height-default,42px))] w-full items-center border-0 gap-[var(--ui-space-2)] rounded-[var(--ui-radius-nav)] px-[var(--ui-space-3)] py-1 text-left text-[length:var(--ui-font-size-lg)] leading-snug outline-none transition-colors focus-visible:shadow-[var(--ui-shadow-focus)] disabled:opacity-40",
|
|
32569
32569
|
l(f) ? "bg-[var(--ui-surface-selected)] text-[var(--ui-text)]" : "bg-transparent text-[var(--ui-text)] hover:bg-[var(--ui-surface-hover)]"
|
|
32570
32570
|
];
|
|
32571
32571
|
return (f, p) => {
|
|
@@ -32688,7 +32688,7 @@ const j2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32688
32688
|
f && !f.disabled && o("select", f);
|
|
32689
32689
|
}
|
|
32690
32690
|
const l = (c) => [
|
|
32691
|
-
"inline-flex h-[var(--ui-nav-row-height,var(--ui-nav-row-height-default,42px))] shrink-0 items-center gap-[var(--ui-space-2)] whitespace-nowrap rounded-[var(--ui-radius-
|
|
32691
|
+
"inline-flex h-[var(--ui-nav-row-height,var(--ui-nav-row-height-default,42px))] shrink-0 items-center gap-[var(--ui-space-2)] whitespace-nowrap rounded-[var(--ui-radius-nav)] border-0 px-[var(--ui-space-3)] text-[length:var(--ui-font-size-lg)] outline-none transition-colors focus-visible:shadow-[var(--ui-shadow-focus)] disabled:opacity-40",
|
|
32692
32692
|
c ? "bg-[var(--ui-surface-selected)] text-[var(--ui-text)]" : "bg-transparent text-[var(--ui-text)] hover:bg-[var(--ui-surface-hover)]"
|
|
32693
32693
|
];
|
|
32694
32694
|
return (c, u) => (g(!0), I(xe, null, Ze(n.items, (f) => (g(), I(xe, {
|
|
@@ -33920,7 +33920,7 @@ const B3 = ["data-direction", "data-inset", "data-status"], q3 = ["id", "for"],
|
|
|
33920
33920
|
}), Ve = S(() => {
|
|
33921
33921
|
const Y = U.value ? "text-[var(--ui-danger)]" : Z.value === "warning" ? "text-[var(--ui-warning)]" : Z.value === "success" ? "text-[var(--ui-success)]" : "text-[var(--ui-text-secondary)]";
|
|
33922
33922
|
return Me.value === "text" ? an("mt-1 text-[length:var(--ui-font-size-sm)] leading-4", Y) : an(
|
|
33923
|
-
"absolute left-0 top-full z-[1100] mt-1 max-w-[min(100%,20rem)] rounded-[var(--ui-radius-
|
|
33923
|
+
"absolute left-0 top-full z-[1100] mt-1 max-w-[min(100%,20rem)] rounded-[var(--ui-radius-popover)] px-2.5 py-1.5 text-[length:var(--ui-font-size-sm)] leading-4 shadow-[var(--ui-shadow-menu)]",
|
|
33924
33924
|
U.value ? "bg-[var(--ui-danger-hover)] text-[var(--ui-danger-foreground)]" : "bg-[var(--ui-tooltip-bg)] text-[var(--ui-tooltip-fg)]",
|
|
33925
33925
|
"transition-opacity duration-[var(--ui-motion-fast)]",
|
|
33926
33926
|
W.value ? "opacity-100" : "pointer-events-none opacity-0"
|
package/dist/reka-runtime.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"version": "2.11.0",
|
|
4
4
|
"delivery": "bundled-patched-esm",
|
|
5
5
|
"patchManifestSha256": "9c5b9c9a162fa584b4695a683368a4484b3ac6e70177fd063b77aa618c051627",
|
|
6
|
-
"bundleSha256": "
|
|
6
|
+
"bundleSha256": "8e9b8504543503208bf2f53038c3f4da92bb1726f539f980350f9c2531c050c7",
|
|
7
7
|
"sourceHashes": {
|
|
8
8
|
"shared/useBodyScrollLock.js": "287bfb604318c4202769e4b5191896eaf0e52a952e1de898967cbe09467fcfda",
|
|
9
9
|
"DismissableLayer/DismissableLayer.js": "3c8d248f0a32e01f89ca1f6202b1bb691bf5d0e4012a92535e161c35e69cdc32",
|
package/dist/rich-text.js
CHANGED
|
@@ -32,7 +32,7 @@ function ba(a) {
|
|
|
32
32
|
return ({ node: o }) => {
|
|
33
33
|
let i = o;
|
|
34
34
|
const u = document.createElement("div");
|
|
35
|
-
u.className = "relative my-1 flex w-fit max-w-full overflow-hidden rounded-[var(--ui-radius-
|
|
35
|
+
u.className = "relative my-1 flex w-fit max-w-full overflow-hidden rounded-[var(--ui-radius-container)] border border-[var(--ui-border-subtle)] bg-[var(--ui-surface-subtle)] [&.ProseMirror-selectednode]:shadow-[var(--ui-shadow-focus)]", u.setAttribute("data-ui-rich-editor-image", ""), u.contentEditable = "false";
|
|
36
36
|
const n = () => {
|
|
37
37
|
const { id: s, alt: S, upload: k, src: h } = i.attrs, m = s ? a.file(s) : void 0, v = i.attrs.progress < 0 ? "failed" : i.attrs.progress, c = h ?? m?.preview ?? m?.url ?? m?.thumb;
|
|
38
38
|
if (u.replaceChildren(), u.style.background = m?.dominant ?? "", u.dataset.state = v === "failed" ? "failed" : k ? "uploading" : m?.state ?? (c ? "ready" : "missing"), c) {
|
|
@@ -637,14 +637,14 @@ const La = ["data-variant", "data-over"], Sa = ["aria-label"], Aa = ["aria-label
|
|
|
637
637
|
he?.disconnect(), $.cancelAll(), clearTimeout(z), oe.value === me && (oe.value = null);
|
|
638
638
|
for (const e of f) URL.revokeObjectURL(e);
|
|
639
639
|
});
|
|
640
|
-
const H = "relative flex size-8 shrink-0 items-center justify-center rounded-[var(--ui-radius-
|
|
640
|
+
const H = "relative flex size-8 shrink-0 items-center justify-center rounded-[var(--ui-radius-inner)] border-0 bg-transparent p-0 text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus)] disabled:pointer-events-none disabled:text-[var(--ui-text-disabled)] aria-pressed:bg-[var(--ui-primary-soft)] aria-pressed:text-[var(--ui-primary)] [@media(pointer:coarse)]:size-11", St = [
|
|
641
641
|
"min-w-0 text-[length:var(--ui-font-size)] leading-5 text-[var(--ui-text)] [overflow-wrap:anywhere]",
|
|
642
642
|
"[&_.ProseMirror]:outline-none [&_.ProseMirror]:whitespace-pre-wrap [&_.ProseMirror_p]:m-0 [&_.ProseMirror>*+*]:mt-2",
|
|
643
643
|
"[&_.ProseMirror_h2]:m-0 [&_.ProseMirror_h2]:text-[1.25em] [&_.ProseMirror_h2]:font-semibold [&_.ProseMirror_h3]:m-0 [&_.ProseMirror_h3]:text-[1.1em] [&_.ProseMirror_h3]:font-semibold",
|
|
644
644
|
"[&_.ProseMirror_ul]:m-0 [&_.ProseMirror_ul]:list-disc [&_.ProseMirror_ul]:ps-5 [&_.ProseMirror_ol]:m-0 [&_.ProseMirror_ol]:list-decimal [&_.ProseMirror_ol]:ps-5",
|
|
645
645
|
"[&_.ProseMirror_blockquote]:m-0 [&_.ProseMirror_blockquote]:border-s-[3px] [&_.ProseMirror_blockquote]:border-[var(--ui-border-strong)] [&_.ProseMirror_blockquote]:ps-3 [&_.ProseMirror_blockquote]:text-[var(--ui-text-secondary)]",
|
|
646
|
-
"[&_.ProseMirror_pre]:m-0 [&_.ProseMirror_pre]:rounded-[var(--ui-radius-
|
|
647
|
-
"[&_.ProseMirror_:not(pre)>code]:rounded-[var(--ui-radius-
|
|
646
|
+
"[&_.ProseMirror_pre]:m-0 [&_.ProseMirror_pre]:rounded-[var(--ui-radius-container)] [&_.ProseMirror_pre]:bg-[var(--ui-surface-subtle)] [&_.ProseMirror_pre]:px-3 [&_.ProseMirror_pre]:py-2 [&_.ProseMirror_pre]:font-[family-name:var(--ui-font-mono)] [&_.ProseMirror_pre]:text-[0.92em]",
|
|
647
|
+
"[&_.ProseMirror_:not(pre)>code]:rounded-[var(--ui-radius-inner)] [&_.ProseMirror_:not(pre)>code]:bg-[var(--ui-surface-subtle)] [&_.ProseMirror_:not(pre)>code]:px-1 [&_.ProseMirror_:not(pre)>code]:font-[family-name:var(--ui-font-mono)] [&_.ProseMirror_:not(pre)>code]:text-[0.92em]",
|
|
648
648
|
"[&_.ProseMirror_a]:text-[var(--ui-primary)] [&_.ProseMirror_a]:underline [&_.ProseMirror_a]:underline-offset-2",
|
|
649
649
|
"[&_.is-editor-empty:first-child]:before:pointer-events-none [&_.is-editor-empty:first-child]:before:float-start [&_.is-editor-empty:first-child]:before:h-0 [&_.is-editor-empty:first-child]:before:text-[var(--ui-text-muted)] [&_.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]"
|
|
650
650
|
];
|
|
@@ -803,7 +803,7 @@ const La = ["data-variant", "data-over"], Sa = ["aria-label"], Aa = ["aria-label
|
|
|
803
803
|
B("div", {
|
|
804
804
|
role: "toolbar",
|
|
805
805
|
"aria-label": l(n)("Formatting"),
|
|
806
|
-
class: "flex items-center gap-0.5 rounded-[var(--ui-radius-
|
|
806
|
+
class: "flex items-center gap-0.5 rounded-[var(--ui-radius-popover)] border border-[var(--ui-border)] bg-[var(--ui-surface-raised)] p-0.5 shadow-[var(--ui-shadow-menu)]",
|
|
807
807
|
"data-ui-rich-bubble": ""
|
|
808
808
|
}, [
|
|
809
809
|
(p(!0), y(Q, null, Z(xt.value, (r) => (p(), y("button", {
|
|
@@ -838,7 +838,7 @@ const La = ["data-variant", "data-over"], Sa = ["aria-label"], Aa = ["aria-label
|
|
|
838
838
|
"data-ui-rich-attachment": r.id ?? ""
|
|
839
839
|
}, [
|
|
840
840
|
B("div", {
|
|
841
|
-
class: "relative flex size-16 items-center justify-center overflow-hidden rounded-[var(--ui-radius-
|
|
841
|
+
class: "relative flex size-16 items-center justify-center overflow-hidden rounded-[var(--ui-radius-container)] border border-[var(--ui-border-subtle)] bg-[var(--ui-surface-subtle)]",
|
|
842
842
|
style: Rt({ background: a.files?.(r.id ?? "")?.dominant })
|
|
843
843
|
}, [
|
|
844
844
|
r.src ?? a.files?.(r.id ?? "")?.thumb ? (p(), y("img", {
|