@editora/ui-react 0.1.22 → 0.1.23

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/dist/Dock.esm.js CHANGED
@@ -14,21 +14,21 @@ const h = u.forwardRef(function({
14
14
  magnification: l,
15
15
  distance: s,
16
16
  idleScale: i,
17
- lift: r,
18
- smoothing: a,
19
- animation: p,
17
+ lift: o,
18
+ smoothing: p,
19
+ animation: a,
20
20
  gap: D,
21
- padding: o,
22
- itemSize: I,
23
- labelMode: m,
24
- labelPlacement: k,
25
- variant: g,
26
- tone: y,
21
+ padding: r,
22
+ itemSize: m,
23
+ labelMode: k,
24
+ labelPlacement: g,
25
+ variant: y,
26
+ tone: E,
27
27
  size: d,
28
- radius: b,
28
+ radius: I,
29
29
  elevation: c,
30
30
  children: w,
31
- ...E
31
+ ...b
32
32
  }, t) {
33
33
  const A = u.useRef(null);
34
34
  return u.useImperativeHandle(t, () => A.current), u.useEffect(() => {
@@ -44,26 +44,26 @@ const h = u.forwardRef(function({
44
44
  }
45
45
  $ !== S && R.setAttribute(L, S);
46
46
  };
47
- n("orientation", e && e !== "horizontal" ? e : null), n("magnification", l == null || l === "" ? null : String(l)), n("distance", s == null || s === "" ? null : String(s)), n("idle-scale", i == null || i === "" ? null : String(i)), n("lift", r == null || r === "" ? null : String(r)), n("smoothing", a == null || a === "" ? null : String(a)), n("animation", p && p !== "smooth" ? p : null), n("gap", N(D)), n("padding", N(o)), n("item-size", N(I)), n("label-mode", m && m !== "hover" ? m : null), n("label-placement", k && k !== "auto" ? k : null), n("variant", g && g !== "surface" ? g : null), n("tone", y && y !== "brand" ? y : null), n("size", d && d !== "md" && d !== "2" ? d : null), n("radius", b == null || b === "" ? null : String(b)), n("elevation", c && c !== "low" ? c : null);
47
+ n("orientation", e && e !== "horizontal" ? e : null), n("magnification", l == null || l === "" ? null : String(l)), n("distance", s == null || s === "" ? null : String(s)), n("idle-scale", i == null || i === "" ? null : String(i)), n("lift", o == null || o === "" ? null : String(o)), n("smoothing", p == null || p === "" ? null : String(p)), n("animation", a && a !== "smooth" ? a : null), n("gap", N(D)), n("padding", N(r)), n("item-size", N(m)), n("label-mode", k && k !== "hover" ? k : null), n("label-placement", g && g !== "auto" ? g : null), n("variant", y && y !== "surface" ? y : null), n("tone", E && E !== "brand" ? E : null), n("size", d && d !== "md" && d !== "2" ? d : null), n("radius", I == null || I === "" ? null : String(I)), n("elevation", c && c !== "low" ? c : null);
48
48
  }, [
49
49
  e,
50
50
  l,
51
51
  s,
52
52
  i,
53
- r,
54
- a,
53
+ o,
55
54
  p,
55
+ a,
56
56
  D,
57
- o,
58
- I,
57
+ r,
59
58
  m,
60
59
  k,
61
60
  g,
62
61
  y,
62
+ E,
63
63
  d,
64
- b,
64
+ I,
65
65
  c
66
- ]), _("ui-dock", { ref: A, ...E }, w);
66
+ ]), _("ui-dock", { ref: A, ...b }, w);
67
67
  });
68
68
  h.displayName = "Dock";
69
69
  const j = u.forwardRef(function({
@@ -71,36 +71,39 @@ const j = u.forwardRef(function({
71
71
  href: l,
72
72
  target: s,
73
73
  rel: i,
74
- value: r,
75
- active: a,
76
- disabled: p,
74
+ value: o,
75
+ active: p,
76
+ disabled: a,
77
77
  icon: D,
78
- label: o,
79
- badge: I,
80
- iconProps: m,
81
- labelProps: k,
82
- badgeProps: g,
83
- children: y,
78
+ label: r,
79
+ badge: m,
80
+ iconProps: k,
81
+ labelProps: g,
82
+ badgeProps: y,
83
+ children: E,
84
84
  ...d
85
- }, b) {
86
- const c = e || (l ? "a" : "button"), w = D ?? y, E = typeof o == "string" || typeof o == "number" ? String(o) : void 0, t = {
87
- ref: b,
85
+ }, I) {
86
+ const c = e || (l ? "a" : "button"), w = D ?? E, b = typeof r == "string" || typeof r == "number" ? String(r) : void 0, t = {
87
+ ref: I,
88
88
  "data-ui-dock-item": "",
89
89
  ...d
90
90
  };
91
- return r != null && r !== "" && (t["data-value"] = String(r)), a && (t["data-active"] = "", l && (t["aria-current"] = "page")), E && t["aria-label"] == null && (t["aria-label"] = E), E && t.title == null && (t.title = E), l && (t.href = l, s && (t.target = s), i && (t.rel = i)), p ? c === "button" ? t.disabled = !0 : (t["aria-disabled"] = !0, t.tabIndex = -1) : c === "button" && t.type == null && (t.type = "button"), u.createElement(
91
+ return o != null && o !== "" && (t["data-value"] = String(o)), p && (t["data-active"] = "", l && (t["aria-current"] = "page")), b && t["aria-label"] == null && (t["aria-label"] = b), b && t.title == null && (t.title = b), l && (t.href = l, s && (t.target = s), i && (t.rel = i)), a ? c === "button" ? t.disabled = !0 : (t["aria-disabled"] = !0, t.tabIndex = -1) : c === "button" && t.type == null && (t.type = "button"), u.createElement(
92
92
  c,
93
93
  t,
94
- w != null ? u.createElement("span", { "data-ui-dock-icon": "", ...m }, w) : null,
95
- o != null ? u.createElement(
94
+ w != null ? u.createElement("span", { "data-ui-dock-icon": "", ...k }, w) : null,
95
+ r != null ? u.createElement(
96
96
  "span",
97
- { "data-ui-dock-label": "", ...k },
98
- o
97
+ { "data-ui-dock-label": "", ...g },
98
+ r
99
99
  ) : null,
100
- I != null ? u.createElement(
100
+ // A space between the label and the badge: the item's name reads "Inbox, 9", and the text shown has
101
+ // to be part of it as words, not run together as "Inbox9".
102
+ r != null && m != null ? " " : null,
103
+ m != null ? u.createElement(
101
104
  "span",
102
- { "data-ui-dock-badge": "", ...g },
103
- I
105
+ { "data-ui-dock-badge": "", ...y },
106
+ m
104
107
  ) : null
105
108
  );
106
109
  });
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("react");require("@editora/ui-core/icon-cloud");const L=require("./_internals-BIT_j6Nr.js"),D=t=>t&&t.__esModule?t:{default:t},l=D(x),U=typeof window<"u"?l.default.useLayoutEffect:l.default.useEffect;function g(t){if(t==null||t==="")return null;if(typeof t=="number")return`${t}px`;const r=t.split(/\s+/).filter(Boolean);return r.length?r.map(n=>/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n).join(" "):null}const M=l.default.forwardRef(function({radius:r,perspective:n,depth:o,speed:c,direction:f,itemSize:y,centerSize:w,padding:p,variant:b,tone:m,size:a,surfaceRadius:i,elevation:I,interactive:e,autoFit:_,paused:R,pauseOnHover:h,pauseOnItemHover:N,pauseOnFocus:j,children:P,...S},k){const E=l.default.useRef(null);return l.default.useImperativeHandle(k,()=>E.current),l.default.useEffect(()=>{L.warnIfElementNotRegistered("ui-icon-cloud","IconCloud")},[]),U(()=>{const s=E.current;if(!s)return;const u=(d,A)=>{const q=s.getAttribute(d);if(A==null){q!=null&&s.removeAttribute(d);return}q!==A&&s.setAttribute(d,A)},C=(d,A)=>{A?s.hasAttribute(d)||s.setAttribute(d,""):s.hasAttribute(d)&&s.removeAttribute(d)};u("radius",g(r)),u("perspective",g(n)),u("depth",o==null||o===""?null:String(o)),u("speed",c==null||c===""?null:String(c)),u("direction",f&&f!=="clockwise"?f:null),u("item-size",g(y)),u("center-size",g(w)),u("padding",g(p)),u("variant",b&&b!=="surface"?b:null),u("tone",m&&m!=="brand"?m:null),u("size",a&&a!=="md"&&a!=="2"?a:null),u("surface-radius",g(i)),u("elevation",I&&I!=="low"?I:null),C("interactive",e??!0),C("auto-fit",_),C("paused",R),C("pause-on-hover",h),C("pause-on-item-hover",N),C("pause-on-focus",j)},[r,n,o,c,f,y,w,p,b,m,a,i,I,e,_,R,h,N,j]),L.createUIElement("ui-icon-cloud",{ref:E,...S},P)});M.displayName="IconCloud";const T=l.default.forwardRef(function({as:r,clickable:n,href:o,target:c,rel:f,disabled:y,type:w,tabIndex:p,children:b,...m},a){const i=r||(n?o?"a":"button":"div"),I=n||i==="button"||i==="a",e={ref:a,"data-ui-icon-cloud-item":"",...m};return I&&(e["data-ui-icon-cloud-clickable"]=""),o&&(e.href=o),c&&(e.target=c),f&&(e.rel=f),y!=null&&(e.disabled=y),i==="button"&&(e.type=w||"button"),p!=null?e.tabIndex=p:I&&i!=="button"&&i!=="a"&&(e.tabIndex=0),l.default.createElement(i,e,b)});T.displayName="IconCloud.Item";const $=l.default.forwardRef(function({as:r,children:n,...o},c){const f=r||"div";return l.default.createElement(f,{ref:c,slot:"center","data-ui-icon-cloud-center":"",...o},n)});$.displayName="IconCloud.Center";const B=Object.assign(M,{Item:T,Center:$});exports.IconCloud=B;exports.default=B;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("react");require("@editora/ui-core/icon-cloud");const L=require("./_internals-BIT_j6Nr.js"),D=e=>e&&e.__esModule?e:{default:e},r=D(x),U=typeof window<"u"?r.default.useLayoutEffect:r.default.useEffect;function g(e){if(e==null||e==="")return null;if(typeof e=="number")return`${e}px`;const c=e.split(/\s+/).filter(Boolean);return c.length?c.map(n=>/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n).join(" "):null}const M=r.default.forwardRef(function({radius:c,perspective:n,depth:l,speed:f,direction:i,itemSize:y,centerSize:w,padding:p,variant:I,tone:m,size:b,surfaceRadius:o,elevation:d,interactive:t,autoFit:_,paused:R,pauseOnHover:h,pauseOnItemHover:N,pauseOnFocus:j,children:P,...S},k){const E=r.default.useRef(null);return r.default.useImperativeHandle(k,()=>E.current),r.default.useEffect(()=>{L.warnIfElementNotRegistered("ui-icon-cloud","IconCloud")},[]),U(()=>{const s=E.current;if(!s)return;const u=(a,A)=>{const q=s.getAttribute(a);if(A==null){q!=null&&s.removeAttribute(a);return}q!==A&&s.setAttribute(a,A)},C=(a,A)=>{A?s.hasAttribute(a)||s.setAttribute(a,""):s.hasAttribute(a)&&s.removeAttribute(a)};u("radius",g(c)),u("perspective",g(n)),u("depth",l==null||l===""?null:String(l)),u("speed",f==null||f===""?null:String(f)),u("direction",i&&i!=="clockwise"?i:null),u("item-size",g(y)),u("center-size",g(w)),u("padding",g(p)),u("variant",I&&I!=="surface"?I:null),u("tone",m&&m!=="brand"?m:null),u("size",b&&b!=="md"&&b!=="2"?b:null),u("surface-radius",g(o)),u("elevation",d&&d!=="low"?d:null),C("interactive",t??!0),C("auto-fit",_),C("paused",R),C("pause-on-hover",h),C("pause-on-item-hover",N),C("pause-on-focus",j)},[c,n,l,f,i,y,w,p,I,m,b,o,d,t,_,R,h,N,j]),L.createUIElement("ui-icon-cloud",{ref:E,...S},P)});M.displayName="IconCloud";const T=r.default.forwardRef(function({as:c,clickable:n,href:l,target:f,rel:i,disabled:y,type:w,tabIndex:p,children:I,...m},b){const o=c||(n?l?"a":"button":"div"),d=n||o==="button"||o==="a",t={ref:b,"data-ui-icon-cloud-item":"",...m};return d&&(t["data-ui-icon-cloud-clickable"]=""),!d&&o==="div"&&t.role==null&&(t["aria-label"]||t["aria-labelledby"])&&(t.role="img"),l&&(t.href=l),f&&(t.target=f),i&&(t.rel=i),y!=null&&(t.disabled=y),o==="button"&&(t.type=w||"button"),p!=null?t.tabIndex=p:d&&o!=="button"&&o!=="a"&&(t.tabIndex=0),r.default.createElement(o,t,I)});T.displayName="IconCloud.Item";const $=r.default.forwardRef(function({as:c,children:n,...l},f){const i=c||"div";return r.default.createElement(i,{ref:f,slot:"center","data-ui-icon-cloud-center":"",...l},n)});$.displayName="IconCloud.Center";const B=Object.assign(M,{Item:T,Center:$});exports.IconCloud=B;exports.default=B;
@@ -1,28 +1,28 @@
1
1
  'use client';
2
- import u from "react";
2
+ import l from "react";
3
3
  import "@editora/ui-core/icon-cloud";
4
4
  import { w as U, c as q } from "./_internals-CEeSSGD-.mjs";
5
- const D = typeof window < "u" ? u.useLayoutEffect : u.useEffect;
5
+ const D = typeof window < "u" ? l.useLayoutEffect : l.useEffect;
6
6
  function p(f) {
7
7
  if (f == null || f === "") return null;
8
8
  if (typeof f == "number") return `${f}px`;
9
- const l = f.split(/\s+/).filter(Boolean);
10
- return l.length ? l.map((o) => /^-?\d+(\.\d+)?$/.test(o) ? `${o}px` : o).join(" ") : null;
9
+ const r = f.split(/\s+/).filter(Boolean);
10
+ return r.length ? r.map((e) => /^-?\d+(\.\d+)?$/.test(e) ? `${e}px` : e).join(" ") : null;
11
11
  }
12
- const x = u.forwardRef(function({
13
- radius: l,
14
- perspective: o,
15
- depth: e,
16
- speed: r,
17
- direction: c,
12
+ const x = l.forwardRef(function({
13
+ radius: r,
14
+ perspective: e,
15
+ depth: o,
16
+ speed: c,
17
+ direction: i,
18
18
  itemSize: y,
19
19
  centerSize: A,
20
20
  padding: g,
21
- variant: I,
22
- tone: b,
23
- size: a,
24
- surfaceRadius: i,
25
- elevation: m,
21
+ variant: b,
22
+ tone: I,
23
+ size: m,
24
+ surfaceRadius: u,
25
+ elevation: s,
26
26
  interactive: t,
27
27
  autoFit: R,
28
28
  paused: h,
@@ -32,37 +32,37 @@ const x = u.forwardRef(function({
32
32
  children: _,
33
33
  ...k
34
34
  }, P) {
35
- const E = u.useRef(null);
36
- return u.useImperativeHandle(P, () => E.current), u.useEffect(() => {
35
+ const E = l.useRef(null);
36
+ return l.useImperativeHandle(P, () => E.current), l.useEffect(() => {
37
37
  U("ui-icon-cloud", "IconCloud");
38
38
  }, []), D(() => {
39
- const s = E.current;
40
- if (!s) return;
41
- const n = (d, w) => {
42
- const j = s.getAttribute(d);
39
+ const d = E.current;
40
+ if (!d) return;
41
+ const n = (a, w) => {
42
+ const j = d.getAttribute(a);
43
43
  if (w == null) {
44
- j != null && s.removeAttribute(d);
44
+ j != null && d.removeAttribute(a);
45
45
  return;
46
46
  }
47
- j !== w && s.setAttribute(d, w);
48
- }, C = (d, w) => {
49
- w ? s.hasAttribute(d) || s.setAttribute(d, "") : s.hasAttribute(d) && s.removeAttribute(d);
47
+ j !== w && d.setAttribute(a, w);
48
+ }, C = (a, w) => {
49
+ w ? d.hasAttribute(a) || d.setAttribute(a, "") : d.hasAttribute(a) && d.removeAttribute(a);
50
50
  };
51
- n("radius", p(l)), n("perspective", p(o)), n("depth", e == null || e === "" ? null : String(e)), n("speed", r == null || r === "" ? null : String(r)), n("direction", c && c !== "clockwise" ? c : null), n("item-size", p(y)), n("center-size", p(A)), n("padding", p(g)), n("variant", I && I !== "surface" ? I : null), n("tone", b && b !== "brand" ? b : null), n("size", a && a !== "md" && a !== "2" ? a : null), n("surface-radius", p(i)), n("elevation", m && m !== "low" ? m : null), C("interactive", t ?? !0), C("auto-fit", R), C("paused", h), C("pause-on-hover", N), C("pause-on-item-hover", L), C("pause-on-focus", $);
51
+ n("radius", p(r)), n("perspective", p(e)), n("depth", o == null || o === "" ? null : String(o)), n("speed", c == null || c === "" ? null : String(c)), n("direction", i && i !== "clockwise" ? i : null), n("item-size", p(y)), n("center-size", p(A)), n("padding", p(g)), n("variant", b && b !== "surface" ? b : null), n("tone", I && I !== "brand" ? I : null), n("size", m && m !== "md" && m !== "2" ? m : null), n("surface-radius", p(u)), n("elevation", s && s !== "low" ? s : null), C("interactive", t ?? !0), C("auto-fit", R), C("paused", h), C("pause-on-hover", N), C("pause-on-item-hover", L), C("pause-on-focus", $);
52
52
  }, [
53
- l,
54
- o,
55
- e,
56
53
  r,
54
+ e,
55
+ o,
57
56
  c,
57
+ i,
58
58
  y,
59
59
  A,
60
60
  g,
61
- I,
62
61
  b,
63
- a,
64
- i,
62
+ I,
65
63
  m,
64
+ u,
65
+ s,
66
66
  t,
67
67
  R,
68
68
  h,
@@ -72,18 +72,18 @@ const x = u.forwardRef(function({
72
72
  ]), q("ui-icon-cloud", { ref: E, ...k }, _);
73
73
  });
74
74
  x.displayName = "IconCloud";
75
- const B = u.forwardRef(function({ as: l, clickable: o, href: e, target: r, rel: c, disabled: y, type: A, tabIndex: g, children: I, ...b }, a) {
76
- const i = l || (o ? e ? "a" : "button" : "div"), m = o || i === "button" || i === "a", t = {
77
- ref: a,
75
+ const B = l.forwardRef(function({ as: r, clickable: e, href: o, target: c, rel: i, disabled: y, type: A, tabIndex: g, children: b, ...I }, m) {
76
+ const u = r || (e ? o ? "a" : "button" : "div"), s = e || u === "button" || u === "a", t = {
77
+ ref: m,
78
78
  "data-ui-icon-cloud-item": "",
79
- ...b
79
+ ...I
80
80
  };
81
- return m && (t["data-ui-icon-cloud-clickable"] = ""), e && (t.href = e), r && (t.target = r), c && (t.rel = c), y != null && (t.disabled = y), i === "button" && (t.type = A || "button"), g != null ? t.tabIndex = g : m && i !== "button" && i !== "a" && (t.tabIndex = 0), u.createElement(i, t, I);
81
+ return s && (t["data-ui-icon-cloud-clickable"] = ""), !s && u === "div" && t.role == null && (t["aria-label"] || t["aria-labelledby"]) && (t.role = "img"), o && (t.href = o), c && (t.target = c), i && (t.rel = i), y != null && (t.disabled = y), u === "button" && (t.type = A || "button"), g != null ? t.tabIndex = g : s && u !== "button" && u !== "a" && (t.tabIndex = 0), l.createElement(u, t, b);
82
82
  });
83
83
  B.displayName = "IconCloud.Item";
84
- const T = u.forwardRef(function({ as: l, children: o, ...e }, r) {
85
- const c = l || "div";
86
- return u.createElement(c, { ref: r, slot: "center", "data-ui-icon-cloud-center": "", ...e }, o);
84
+ const T = l.forwardRef(function({ as: r, children: e, ...o }, c) {
85
+ const i = r || "div";
86
+ return l.createElement(i, { ref: c, slot: "center", "data-ui-icon-cloud-center": "", ...o }, e);
87
87
  });
88
88
  T.displayName = "IconCloud.Center";
89
89
  const M = Object.assign(x, {
package/dist/Kbd.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("react"),y=e=>e&&e.__esModule?e:{default:e},o=y(h),k={sm:{fontSize:11,gap:4,inset:"2px 6px"},md:{fontSize:12,gap:5,inset:"3px 8px"},lg:{fontSize:13,gap:6,inset:"4px 10px"}},_={default:{background:"#f8fafc",border:"#cbd5e1",color:"#0f172a"},neutral:{background:"#f8fafc",border:"#cbd5e1",color:"#0f172a"},brand:{background:"#eff6ff",border:"#bfdbfe",color:"#1d4ed8"},info:{background:"#ecfeff",border:"#a5f3fc",color:"#0f766e"},success:{background:"#f0fdf4",border:"#bbf7d0",color:"#15803d"},warning:{background:"#fffbeb",border:"#fde68a",color:"#b45309"},danger:{background:"#fef2f2",border:"#fecaca",color:"#b91c1c"}};function v(e,t){return e?.length?e:o.default.Children.toArray(t)}const a=o.default.forwardRef(function({as:t="span",keys:d,separator:f="+",size:i="md",tone:c="default",className:s,style:u,children:b,...g},p){const m=t,S=v(d,b),n=k[i],r=_[c];return o.default.createElement(m,{ref:p,className:s,style:{alignItems:"center",display:"inline-flex",flexWrap:"wrap",gap:n.gap,lineHeight:1,verticalAlign:"middle",...u},...g},S.map((x,l)=>o.default.createElement(o.default.Fragment,{key:l},l>0?o.default.createElement("span",{"aria-hidden":"true",style:{alignItems:"center",alignSelf:"center",color:"var(--ui-color-muted, #64748b)",display:"inline-flex",fontSize:n.fontSize,lineHeight:1}},f):null,o.default.createElement("kbd",{style:{background:r.background,border:`1px solid ${r.border}`,borderBottomWidth:2,borderRadius:8,boxShadow:"0 1px 0 rgba(15, 23, 42, 0.06)",color:r.color,justifyContent:"center",alignItems:"center",alignSelf:"center",display:"inline-flex",fontFamily:"var(--ui-font-family-mono, var(--font-mono, ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace))",fontSize:n.fontSize,fontWeight:600,lineHeight:1,minHeight:24,minWidth:24,padding:n.inset,textAlign:"center",textTransform:"uppercase",verticalAlign:"middle",whiteSpace:"nowrap"}},x))))});a.displayName="Kbd";exports.Kbd=a;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("react"),y=e=>e&&e.__esModule?e:{default:e},o=y(h),k={sm:{fontSize:11,gap:4,inset:"2px 6px"},md:{fontSize:12,gap:5,inset:"3px 8px"},lg:{fontSize:13,gap:6,inset:"4px 10px"}},_={default:{background:"#f8fafc",border:"#cbd5e1",color:"#0f172a"},neutral:{background:"#f8fafc",border:"#cbd5e1",color:"#0f172a"},brand:{background:"#eff6ff",border:"#bfdbfe",color:"#1d4ed8"},info:{background:"#ecfeff",border:"#a5f3fc",color:"#0f766e"},success:{background:"#f0fdf4",border:"#bbf7d0",color:"#15803d"},warning:{background:"#fffbeb",border:"#fde68a",color:"#b45309"},danger:{background:"#fef2f2",border:"#fecaca",color:"#b91c1c"}};function v(e,t){return e?.length?e:o.default.Children.toArray(t)}const a=o.default.forwardRef(function({as:t="span",keys:d,separator:f="+",size:i="md",tone:c="default",className:s,style:u,children:b,...g},p){const m=t,S=v(d,b),n=k[i],r=_[c];return o.default.createElement(m,{ref:p,className:s,style:{alignItems:"center",display:"inline-flex",flexWrap:"wrap",gap:n.gap,lineHeight:1,verticalAlign:"middle",...u},...g},S.map((x,l)=>o.default.createElement(o.default.Fragment,{key:l},l>0?o.default.createElement("span",{"aria-hidden":"true",style:{alignItems:"center",alignSelf:"center",color:"var(--ui-color-muted, #526175)",display:"inline-flex",fontSize:n.fontSize,lineHeight:1}},f):null,o.default.createElement("kbd",{style:{background:r.background,border:`1px solid ${r.border}`,borderBottomWidth:2,borderRadius:8,boxShadow:"0 1px 0 rgba(15, 23, 42, 0.06)",color:r.color,justifyContent:"center",alignItems:"center",alignSelf:"center",display:"inline-flex",fontFamily:"var(--ui-font-family-mono, var(--font-mono, ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace))",fontSize:n.fontSize,fontWeight:600,lineHeight:1,minHeight:24,minWidth:24,padding:n.inset,textAlign:"center",textTransform:"uppercase",verticalAlign:"middle",whiteSpace:"nowrap"}},x))))});a.displayName="Kbd";exports.Kbd=a;exports.default=a;
package/dist/Kbd.esm.js CHANGED
@@ -50,7 +50,7 @@ const k = e.forwardRef(function({
50
50
  style: {
51
51
  alignItems: "center",
52
52
  alignSelf: "center",
53
- color: "var(--ui-color-muted, #64748b)",
53
+ color: "var(--ui-color-muted, #526175)",
54
54
  display: "inline-flex",
55
55
  fontSize: n.fontSize,
56
56
  lineHeight: 1
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const W=require("react");require("@editora/ui-core/orbiter");const k=require("./_internals-BIT_j6Nr.js"),X=t=>t&&t.__esModule?t:{default:t},i=X(W),Y=typeof window<"u"?i.default.useLayoutEffect:i.default.useEffect;function a(t){if(t==null||t==="")return null;if(typeof t=="number")return`${t}px`;const f=t.split(/\s+/).filter(Boolean);return f.length?f.map(n=>/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n).join(" "):null}function x(t){return t==null||t===""?null:typeof t=="number"?`${t}s`:/^-?\d+(\.\d+)?$/.test(t)?`${t}s`:t}const D=i.default.forwardRef(function({duration:f,delay:n,speed:l,reverse:c,radius:b,path:m,iconSize:E,orbitRadius:p,itemSize:g,centerSize:I,ringGap:_,rings:u,startAngle:d,direction:r,animation:h,variant:A,tone:$,size:O,surfaceRadius:C,elevation:N,padding:j,showPaths:q,pauseOnHover:L,pauseOnItemHover:M,pauseOnFocus:R,paused:S,children:K,...Q},V){const T=i.default.useRef(null);return i.default.useImperativeHandle(V,()=>T.current),i.default.useEffect(()=>{k.warnIfElementNotRegistered("ui-orbiter","Orbiter")},[]),Y(()=>{const o=T.current;if(!o)return;const e=(s,w)=>{const B=o.getAttribute(s);if(w==null){B!=null&&o.removeAttribute(s);return}B!==w&&o.setAttribute(s,w)},y=(s,w)=>{w?o.hasAttribute(s)||o.setAttribute(s,""):o.hasAttribute(s)&&o.removeAttribute(s)};e("duration",x(f)),e("delay",x(n)),e("speed",l==null||l===""?null:String(l)),e("radius",a(b??p)),e("orbit-radius",a(p)),e("icon-size",a(E??g)),e("item-size",a(g)),e("center-size",a(I)),e("ring-gap",a(_)),e("rings",u==null||u===""?null:String(u)),e("start-angle",d==null||d===""?null:String(d)),e("direction",r&&r!=="clockwise"?r:null),e("animation",h&&h!=="smooth"?h:null),e("variant",A&&A!=="surface"?A:null),e("tone",$&&$!=="brand"?$:null),e("size",O&&O!=="md"&&O!=="2"?O:null),e("surface-radius",C==null||C===""?null:String(C)),e("elevation",N&&N!=="low"?N:null),e("padding",a(j)),e("path",m==null?null:String(m)),y("show-paths",q),y("pause-on-hover",L),y("pause-on-item-hover",M),y("pause-on-focus",R),y("paused",S),y("reverse",c)},[f,n,l,c,b,m,E,p,g,I,_,u,d,r,h,A,$,O,C,N,j,q,L,M,R,S]),k.createUIElement("ui-orbiter",{ref:T,...Q},K)});D.displayName="Orbiter";const P=i.default.forwardRef(function({as:f,clickable:n,href:l,target:c,rel:b,disabled:m,type:E,tabIndex:p,children:g,...I},_){const u=f||(n?l?"a":"button":"div"),d=n||u==="button"||u==="a",r={ref:_,"data-ui-orbiter-item":"",...I};return d&&(r["data-ui-orbiter-clickable"]=""),l&&(r.href=l),c&&(r.target=c),b&&(r.rel=b),m!=null&&(r.disabled=m),u==="button"&&(r.type=E||"button"),p!=null?r.tabIndex=p:d&&u!=="button"&&u!=="a"&&(r.tabIndex=0),i.default.createElement(u,r,g)});P.displayName="Orbiter.Item";const U=i.default.forwardRef(function({as:f,children:n,...l},c){const b=f||"div";return i.default.createElement(b,{ref:c,slot:"center","data-ui-orbiter-center":"",...l},n)});U.displayName="Orbiter.Center";const J=Object.assign(D,{Item:P,Center:U});exports.Orbiter=J;exports.default=J;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const W=require("react");require("@editora/ui-core/orbiter");const k=require("./_internals-BIT_j6Nr.js"),X=t=>t&&t.__esModule?t:{default:t},i=X(W),Y=typeof window<"u"?i.default.useLayoutEffect:i.default.useEffect;function a(t){if(t==null||t==="")return null;if(typeof t=="number")return`${t}px`;const o=t.split(/\s+/).filter(Boolean);return o.length?o.map(n=>/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n).join(" "):null}function x(t){return t==null||t===""?null:typeof t=="number"?`${t}s`:/^-?\d+(\.\d+)?$/.test(t)?`${t}s`:t}const D=i.default.forwardRef(function({duration:o,delay:n,speed:u,reverse:c,radius:b,path:m,iconSize:E,orbitRadius:p,itemSize:g,centerSize:I,ringGap:_,rings:l,startAngle:d,direction:r,animation:h,variant:A,tone:$,size:O,surfaceRadius:C,elevation:N,padding:j,showPaths:q,pauseOnHover:L,pauseOnItemHover:M,pauseOnFocus:R,paused:S,children:K,...Q},V){const T=i.default.useRef(null);return i.default.useImperativeHandle(V,()=>T.current),i.default.useEffect(()=>{k.warnIfElementNotRegistered("ui-orbiter","Orbiter")},[]),Y(()=>{const f=T.current;if(!f)return;const e=(s,w)=>{const B=f.getAttribute(s);if(w==null){B!=null&&f.removeAttribute(s);return}B!==w&&f.setAttribute(s,w)},y=(s,w)=>{w?f.hasAttribute(s)||f.setAttribute(s,""):f.hasAttribute(s)&&f.removeAttribute(s)};e("duration",x(o)),e("delay",x(n)),e("speed",u==null||u===""?null:String(u)),e("radius",a(b??p)),e("orbit-radius",a(p)),e("icon-size",a(E??g)),e("item-size",a(g)),e("center-size",a(I)),e("ring-gap",a(_)),e("rings",l==null||l===""?null:String(l)),e("start-angle",d==null||d===""?null:String(d)),e("direction",r&&r!=="clockwise"?r:null),e("animation",h&&h!=="smooth"?h:null),e("variant",A&&A!=="surface"?A:null),e("tone",$&&$!=="brand"?$:null),e("size",O&&O!=="md"&&O!=="2"?O:null),e("surface-radius",C==null||C===""?null:String(C)),e("elevation",N&&N!=="low"?N:null),e("padding",a(j)),e("path",m==null?null:String(m)),y("show-paths",q),y("pause-on-hover",L),y("pause-on-item-hover",M),y("pause-on-focus",R),y("paused",S),y("reverse",c)},[o,n,u,c,b,m,E,p,g,I,_,l,d,r,h,A,$,O,C,N,j,q,L,M,R,S]),k.createUIElement("ui-orbiter",{ref:T,...Q},K)});D.displayName="Orbiter";const P=i.default.forwardRef(function({as:o,clickable:n,href:u,target:c,rel:b,disabled:m,type:E,tabIndex:p,children:g,...I},_){const l=o||(n?u?"a":"button":"div"),d=n||l==="button"||l==="a",r={ref:_,"data-ui-orbiter-item":"",...I};return d?r["data-ui-orbiter-clickable"]="":!r.role&&(r["aria-label"]||r["aria-labelledby"])&&(r.role="img"),u&&(r.href=u),c&&(r.target=c),b&&(r.rel=b),m!=null&&(r.disabled=m),l==="button"&&(r.type=E||"button"),p!=null?r.tabIndex=p:d&&l!=="button"&&l!=="a"&&(r.tabIndex=0),i.default.createElement(l,r,g)});P.displayName="Orbiter.Item";const U=i.default.forwardRef(function({as:o,children:n,...u},c){const b=o||"div";return i.default.createElement(b,{ref:c,slot:"center","data-ui-orbiter-center":"",...u},n)});U.displayName="Orbiter.Center";const J=Object.assign(D,{Item:P,Center:U});exports.Orbiter=J;exports.default=J;
@@ -1,32 +1,32 @@
1
1
  'use client';
2
- import l from "react";
2
+ import u from "react";
3
3
  import "@editora/ui-core/orbiter";
4
4
  import { w as Q, c as V } from "./_internals-CEeSSGD-.mjs";
5
- const W = typeof window < "u" ? l.useLayoutEffect : l.useEffect;
6
- function d(r) {
7
- if (r == null || r === "") return null;
8
- if (typeof r == "number") return `${r}px`;
9
- const o = r.split(/\s+/).filter(Boolean);
5
+ const W = typeof window < "u" ? u.useLayoutEffect : u.useEffect;
6
+ function a(e) {
7
+ if (e == null || e === "") return null;
8
+ if (typeof e == "number") return `${e}px`;
9
+ const o = e.split(/\s+/).filter(Boolean);
10
10
  return o.length ? o.map((n) => /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n).join(" ") : null;
11
11
  }
12
- function U(r) {
13
- return r == null || r === "" ? null : typeof r == "number" ? `${r}s` : /^-?\d+(\.\d+)?$/.test(r) ? `${r}s` : r;
12
+ function U(e) {
13
+ return e == null || e === "" ? null : typeof e == "number" ? `${e}s` : /^-?\d+(\.\d+)?$/.test(e) ? `${e}s` : e;
14
14
  }
15
- const q = l.forwardRef(function({
15
+ const q = u.forwardRef(function({
16
16
  duration: o,
17
17
  delay: n,
18
18
  speed: i,
19
19
  reverse: c,
20
20
  radius: b,
21
- path: p,
21
+ path: d,
22
22
  iconSize: E,
23
- orbitRadius: a,
23
+ orbitRadius: p,
24
24
  itemSize: g,
25
25
  centerSize: I,
26
26
  ringGap: h,
27
- rings: u,
27
+ rings: l,
28
28
  startAngle: m,
29
- direction: e,
29
+ direction: r,
30
30
  animation: A,
31
31
  variant: $,
32
32
  tone: C,
@@ -42,8 +42,8 @@ const q = l.forwardRef(function({
42
42
  children: K,
43
43
  ...M
44
44
  }, P) {
45
- const T = l.useRef(null);
46
- return l.useImperativeHandle(P, () => T.current), l.useEffect(() => {
45
+ const T = u.useRef(null);
46
+ return u.useImperativeHandle(P, () => T.current), u.useEffect(() => {
47
47
  Q("ui-orbiter", "Orbiter");
48
48
  }, []), W(() => {
49
49
  const f = T.current;
@@ -58,22 +58,22 @@ const q = l.forwardRef(function({
58
58
  }, y = (s, O) => {
59
59
  O ? f.hasAttribute(s) || f.setAttribute(s, "") : f.hasAttribute(s) && f.removeAttribute(s);
60
60
  };
61
- t("duration", U(o)), t("delay", U(n)), t("speed", i == null || i === "" ? null : String(i)), t("radius", d(b ?? a)), t("orbit-radius", d(a)), t("icon-size", d(E ?? g)), t("item-size", d(g)), t("center-size", d(I)), t("ring-gap", d(h)), t("rings", u == null || u === "" ? null : String(u)), t("start-angle", m == null || m === "" ? null : String(m)), t("direction", e && e !== "clockwise" ? e : null), t("animation", A && A !== "smooth" ? A : null), t("variant", $ && $ !== "surface" ? $ : null), t("tone", C && C !== "brand" ? C : null), t("size", w && w !== "md" && w !== "2" ? w : null), t("surface-radius", N == null || N === "" ? null : String(N)), t("elevation", L && L !== "low" ? L : null), t("padding", d(j)), t("path", p == null ? null : String(p)), y("show-paths", x), y("pause-on-hover", B), y("pause-on-item-hover", R), y("pause-on-focus", _), y("paused", k), y("reverse", c);
61
+ t("duration", U(o)), t("delay", U(n)), t("speed", i == null || i === "" ? null : String(i)), t("radius", a(b ?? p)), t("orbit-radius", a(p)), t("icon-size", a(E ?? g)), t("item-size", a(g)), t("center-size", a(I)), t("ring-gap", a(h)), t("rings", l == null || l === "" ? null : String(l)), t("start-angle", m == null || m === "" ? null : String(m)), t("direction", r && r !== "clockwise" ? r : null), t("animation", A && A !== "smooth" ? A : null), t("variant", $ && $ !== "surface" ? $ : null), t("tone", C && C !== "brand" ? C : null), t("size", w && w !== "md" && w !== "2" ? w : null), t("surface-radius", N == null || N === "" ? null : String(N)), t("elevation", L && L !== "low" ? L : null), t("padding", a(j)), t("path", d == null ? null : String(d)), y("show-paths", x), y("pause-on-hover", B), y("pause-on-item-hover", R), y("pause-on-focus", _), y("paused", k), y("reverse", c);
62
62
  }, [
63
63
  o,
64
64
  n,
65
65
  i,
66
66
  c,
67
67
  b,
68
- p,
68
+ d,
69
69
  E,
70
- a,
70
+ p,
71
71
  g,
72
72
  I,
73
73
  h,
74
- u,
74
+ l,
75
75
  m,
76
- e,
76
+ r,
77
77
  A,
78
78
  $,
79
79
  C,
@@ -89,18 +89,18 @@ const q = l.forwardRef(function({
89
89
  ]), V("ui-orbiter", { ref: T, ...M }, K);
90
90
  });
91
91
  q.displayName = "Orbiter";
92
- const D = l.forwardRef(function({ as: o, clickable: n, href: i, target: c, rel: b, disabled: p, type: E, tabIndex: a, children: g, ...I }, h) {
93
- const u = o || (n ? i ? "a" : "button" : "div"), m = n || u === "button" || u === "a", e = {
92
+ const D = u.forwardRef(function({ as: o, clickable: n, href: i, target: c, rel: b, disabled: d, type: E, tabIndex: p, children: g, ...I }, h) {
93
+ const l = o || (n ? i ? "a" : "button" : "div"), m = n || l === "button" || l === "a", r = {
94
94
  ref: h,
95
95
  "data-ui-orbiter-item": "",
96
96
  ...I
97
97
  };
98
- return m && (e["data-ui-orbiter-clickable"] = ""), i && (e.href = i), c && (e.target = c), b && (e.rel = b), p != null && (e.disabled = p), u === "button" && (e.type = E || "button"), a != null ? e.tabIndex = a : m && u !== "button" && u !== "a" && (e.tabIndex = 0), l.createElement(u, e, g);
98
+ return m ? r["data-ui-orbiter-clickable"] = "" : !r.role && (r["aria-label"] || r["aria-labelledby"]) && (r.role = "img"), i && (r.href = i), c && (r.target = c), b && (r.rel = b), d != null && (r.disabled = d), l === "button" && (r.type = E || "button"), p != null ? r.tabIndex = p : m && l !== "button" && l !== "a" && (r.tabIndex = 0), u.createElement(l, r, g);
99
99
  });
100
100
  D.displayName = "Orbiter.Item";
101
- const J = l.forwardRef(function({ as: o, children: n, ...i }, c) {
101
+ const J = u.forwardRef(function({ as: o, children: n, ...i }, c) {
102
102
  const b = o || "div";
103
- return l.createElement(b, { ref: c, slot: "center", "data-ui-orbiter-center": "", ...i }, n);
103
+ return u.createElement(b, { ref: c, slot: "center", "data-ui-orbiter-center": "", ...i }, n);
104
104
  });
105
105
  J.displayName = "Orbiter.Center";
106
106
  const F = Object.assign(q, {
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("react"),x=require("./Badge.cjs.js"),E=require("./Button.cjs.js"),W=e=>e&&e.__esModule?e:{default:e},t=W(v);function b(e,l){return t.default.createElement(E.Button,{key:e.key??l,className:e.className,disabled:e.disabled,endIcon:e.endIcon,loading:e.loading,onClick:e.onClick,size:e.size||"sm",startIcon:e.startIcon??e.icon,tone:e.tone,type:e.type,variant:e.variant||"secondary"},e.label)}function z(e){return Array.isArray(e)&&e.every(l=>!!l&&typeof l=="object"&&"label"in l)}const r=t.default.forwardRef(function({as:l="section",title:u,subtitle:i,eyebrow:d,statusChip:n,actions:a,actionsLabel:s="Page actions",children:o,className:c,style:m,...g},p){const y=l,f=z(a)?a.map(b):a;return t.default.createElement(y,{ref:p,className:c,style:{display:"flex",flexDirection:"column",gap:12,minWidth:0,...m},...g},t.default.createElement("div",{style:{alignItems:"flex-start",display:"flex",flexWrap:"wrap",gap:16,justifyContent:"space-between",minWidth:0}},t.default.createElement("div",{style:{display:"grid",gap:6,minWidth:0}},d?t.default.createElement("div",{style:{color:"var(--ui-color-muted, #64748b)",fontSize:12,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase"}},d):null,t.default.createElement("div",{style:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:8,minWidth:0}},t.default.createElement("div",{style:{fontSize:24,fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.1,minWidth:0}},u),n?t.default.createElement(x.Badge,{pill:n.pill,radius:n.radius,size:n.size||"sm",tone:n.tone||"info",variant:n.variant||"soft"},n.label):null),i?t.default.createElement("div",{style:{color:"var(--ui-color-muted, #64748b)",fontSize:14,lineHeight:1.45,minWidth:0}},i):null),f?t.default.createElement("div",{"aria-label":s,style:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:8,justifyContent:"flex-end"}},f):null),o?t.default.createElement("div",null,o):null)});r.displayName="PageHeader";exports.PageHeader=r;exports.default=r;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("react"),x=require("./Badge.cjs.js"),E=require("./Button.cjs.js"),W=e=>e&&e.__esModule?e:{default:e},t=W(v);function b(e,l){return t.default.createElement(E.Button,{key:e.key??l,className:e.className,disabled:e.disabled,endIcon:e.endIcon,loading:e.loading,onClick:e.onClick,size:e.size||"sm",startIcon:e.startIcon??e.icon,tone:e.tone,type:e.type,variant:e.variant||"secondary"},e.label)}function z(e){return Array.isArray(e)&&e.every(l=>!!l&&typeof l=="object"&&"label"in l)}const r=t.default.forwardRef(function({as:l="section",title:u,subtitle:i,eyebrow:d,statusChip:n,actions:a,actionsLabel:s="Page actions",children:o,className:c,style:m,...g},p){const y=l,f=z(a)?a.map(b):a;return t.default.createElement(y,{ref:p,className:c,style:{display:"flex",flexDirection:"column",gap:12,minWidth:0,...m},...g},t.default.createElement("div",{style:{alignItems:"flex-start",display:"flex",flexWrap:"wrap",gap:16,justifyContent:"space-between",minWidth:0}},t.default.createElement("div",{style:{display:"grid",gap:6,minWidth:0}},d?t.default.createElement("div",{style:{color:"var(--ui-color-muted, #526175)",fontSize:12,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase"}},d):null,t.default.createElement("div",{style:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:8,minWidth:0}},t.default.createElement("div",{style:{fontSize:24,fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.1,minWidth:0}},u),n?t.default.createElement(x.Badge,{pill:n.pill,radius:n.radius,size:n.size||"sm",tone:n.tone||"info",variant:n.variant||"soft"},n.label):null),i?t.default.createElement("div",{style:{color:"var(--ui-color-muted, #526175)",fontSize:14,lineHeight:1.45,minWidth:0}},i):null),f?t.default.createElement("div",{"aria-label":s,style:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:8,justifyContent:"flex-end"}},f):null),o?t.default.createElement("div",null,o):null)});r.displayName="PageHeader";exports.PageHeader=r;exports.default=r;
@@ -68,7 +68,7 @@ const W = t.forwardRef(function({
68
68
  "div",
69
69
  {
70
70
  style: {
71
- color: "var(--ui-color-muted, #64748b)",
71
+ color: "var(--ui-color-muted, #526175)",
72
72
  fontSize: 12,
73
73
  fontWeight: 600,
74
74
  letterSpacing: "0.08em",
@@ -86,7 +86,7 @@ const W = t.forwardRef(function({
86
86
  variant: n.variant || "soft"
87
87
  },
88
88
  n.label
89
- ) : null), a ? /* @__PURE__ */ t.createElement("div", { style: { color: "var(--ui-color-muted, #64748b)", fontSize: 14, lineHeight: 1.45, minWidth: 0 } }, a) : null),
89
+ ) : null), a ? /* @__PURE__ */ t.createElement("div", { style: { color: "var(--ui-color-muted, #526175)", fontSize: 14, lineHeight: 1.45, minWidth: 0 } }, a) : null),
90
90
  o ? /* @__PURE__ */ t.createElement(
91
91
  "div",
92
92
  {
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react"),m=require("./PageHeader.cjs.js"),p=t=>t&&t.__esModule?t:{default:t},e=p(g);function b(t){return Array.isArray(t)&&t.every(r=>!!r&&typeof r=="object"&&"label"in r&&"value"in r)}const l=e.default.forwardRef(function({details:r,footer:d,children:n,className:o,style:u,...c},f){const i=b(r)?e.default.createElement("div",{style:{display:"grid",gap:10,gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",minWidth:0}},r.map((a,s)=>e.default.createElement("div",{key:a.key??s,style:{background:"rgba(248, 250, 252, 0.92)",border:"1px solid rgba(203, 213, 225, 0.85)",borderRadius:14,display:"grid",gap:4,minWidth:0,padding:"10px 12px"}},e.default.createElement("div",{style:{color:"var(--ui-color-muted, #64748b)",fontSize:11,fontWeight:700,letterSpacing:"0.08em",lineHeight:1.25,textTransform:"uppercase"}},a.label),e.default.createElement("div",{style:{color:"var(--ui-color-text, #0f172a)",fontSize:14,fontWeight:600,lineHeight:1.4,minWidth:0}},a.value)))):r;return e.default.createElement("section",{className:o,style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%)",border:"1px solid rgba(148, 163, 184, 0.28)",borderRadius:20,display:"grid",gap:14,minWidth:0,padding:16,...u}},e.default.createElement(m.PageHeader,{...c,ref:f}),i?e.default.createElement("div",null,i):null,n?e.default.createElement("div",null,n):null,d?e.default.createElement("div",null,d):null)});l.displayName="RecordHeader";exports.RecordHeader=l;exports.default=l;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react"),m=require("./PageHeader.cjs.js"),p=t=>t&&t.__esModule?t:{default:t},e=p(g);function b(t){return Array.isArray(t)&&t.every(r=>!!r&&typeof r=="object"&&"label"in r&&"value"in r)}const l=e.default.forwardRef(function({details:r,footer:d,children:n,className:o,style:u,...c},f){const i=b(r)?e.default.createElement("div",{style:{display:"grid",gap:10,gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",minWidth:0}},r.map((a,s)=>e.default.createElement("div",{key:a.key??s,style:{background:"rgba(248, 250, 252, 0.92)",border:"1px solid rgba(203, 213, 225, 0.85)",borderRadius:14,display:"grid",gap:4,minWidth:0,padding:"10px 12px"}},e.default.createElement("div",{style:{color:"var(--ui-color-muted, #526175)",fontSize:11,fontWeight:700,letterSpacing:"0.08em",lineHeight:1.25,textTransform:"uppercase"}},a.label),e.default.createElement("div",{style:{color:"var(--ui-color-text, #0f172a)",fontSize:14,fontWeight:600,lineHeight:1.4,minWidth:0}},a.value)))):r;return e.default.createElement("section",{className:o,style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%)",border:"1px solid rgba(148, 163, 184, 0.28)",borderRadius:20,display:"grid",gap:14,minWidth:0,padding:16,...u}},e.default.createElement(m.PageHeader,{...c,ref:f}),i?e.default.createElement("div",null,i):null,n?e.default.createElement("div",null,n):null,d?e.default.createElement("div",null,d):null)});l.displayName="RecordHeader";exports.RecordHeader=l;exports.default=l;
@@ -40,7 +40,7 @@ const s = e.forwardRef(function({
40
40
  "div",
41
41
  {
42
42
  style: {
43
- color: "var(--ui-color-muted, #64748b)",
43
+ color: "var(--ui-color-muted, #526175)",
44
44
  fontSize: 11,
45
45
  fontWeight: 700,
46
46
  letterSpacing: "0.08em",
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react");require("@editora/ui-core/sidebar");const ye=require("react-dom/server"),Se=require("./_internals-BIT_j6Nr.js"),ve=e=>e&&e.__esModule?e:{default:e},i=ve(f),Ee=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ce=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),O="SidebarGroup",V="SidebarItem";function j(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function we(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function _e(e){const t=[];for(const[r,n]of Object.entries(e))n==null||n===""||t.push(`${we(r)}:${String(n)}`);return t.join(";")}function Ie(e){return e==="className"?"class":e==="htmlFor"?"for":e}function v(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return j(String(e));if(Array.isArray(e))return e.map(a=>v(a)).join("");if(!f.isValidElement(e))return"";if(e.type===i.default.Fragment)return v(e.props.children);if(typeof e.type=="function"){const a=e.type;if(!!a.prototype?.isReactComponent)return"";try{return v(a(e.props))}catch{return""}}if(typeof e.type!="string")return"";const t=e.type,r=e.props,n=[];let u;for(const[a,s]of Object.entries(r)){if(a==="children")continue;if(a==="dangerouslySetInnerHTML"){const d=s;typeof d?.__html=="string"&&(u=d.__html);continue}if(a==="ref"||a==="key"||a==="suppressHydrationWarning"||a==="suppressContentEditableWarning"||a.startsWith("on")||s==null||s===!1)continue;const g=Ie(a);if(a==="style"&&typeof s=="object"){const d=_e(s);d&&n.push(` style="${j(d)}"`);continue}if(s===!0){n.push(` ${g}`);continue}(typeof s=="string"||typeof s=="number")&&n.push(` ${g}="${j(String(s))}"`)}const b=u??v(r.children);return!b&&Ce.has(t)?`<${t}${n.join("")}>`:`<${t}${n.join("")}>${b}</${t}>`}function N(e,t){return f.isValidElement(e)&&e.type.__sidebarMarker===t}function He(e){const t=[],r=[];return f.Children.forEach(e,n=>{if(N(n,O)||N(n,V)){t.push(n);return}n!=null&&n!==!1&&r.push(n)}),{submenuChildren:t,contentChildren:r}}function ke(e,t){if(typeof e=="string")return{contentChildren:t};if(e)return{iconHtml:F(e),contentChildren:t};const[r,...n]=t;return f.isValidElement(r)&&(typeof r.type!="string"||r.type==="svg")?{iconHtml:F(r),contentChildren:n}:{contentChildren:t}}function q(e,t=""){const r=[];return f.Children.forEach(e,n=>{if(N(n,O)){const u=n.props.title||t;r.push(...q(n.props.children,u));return}if(N(n,V)){const u=n.props.section||t,b=n.props.icon,{submenuChildren:a,contentChildren:s}=He(n.props.children),{iconHtml:g,contentChildren:d}=ke(b,s);r.push({value:n.props.value,label:n.props.label,href:n.props.href,target:n.props.target,rel:n.props.rel,icon:typeof b=="string"?b:void 0,iconHtml:g,contentHtml:$e(d),badge:n.props.badge,description:n.props.description,section:u,disabled:n.props.disabled,active:n.props.active,tone:n.props.tone,children:q(a,u)})}}),r}function pe(e){return e.map(t=>({...t,icon:typeof t.icon=="string"?t.icon:void 0,iconHtml:t.iconHtml||F(t.icon),contentHtml:t.contentHtml,children:t.children?pe(t.children):void 0}))}function S(e){return e==null||e===""?null:typeof e=="number"?`${e}px`:String(e)}function F(e){if(!e||typeof e=="string"||!f.isValidElement(e))return;const t=i.default.cloneElement(e,{width:e.props.width??18,height:e.props.height??18,"aria-hidden":!0,focusable:"false"});return v(t)||ye.renderToStaticMarkup(t)||void 0}function $e(e){return e.length&&v(i.default.createElement(i.default.Fragment,null,e))||void 0}function xe(e,t=""){return q(e,t).map((r,n)=>{const u={slot:"item",key:`${r.section||"group"}:${r.value}:${n}`,"data-value":r.value,"data-label":r.label,"data-href":r.href||void 0,"data-target":r.target||void 0,"data-rel":r.rel||void 0,"data-section":r.section||void 0,"data-icon":r.icon||void 0,"data-icon-html":r.iconHtml||void 0,"data-content-html":r.contentHtml||void 0,"data-badge":r.badge||void 0,"data-description":r.description||void 0,"data-tone":r.tone&&r.tone!=="default"?r.tone:void 0};return r.disabled&&(u["data-disabled"]=""),r.active&&(u["data-active"]=""),r.children?.length&&(u["data-children"]=JSON.stringify(r.children)),i.default.createElement("div",u,r.label)})}const G=({children:e,...t})=>i.default.createElement("div",{slot:"header",...t},e),T=({children:e,...t})=>i.default.createElement("div",{slot:"search",...t},e),P=({icon:e,style:t,placeholder:r="Search…",...n})=>i.default.createElement("div",{slot:"search",style:{display:"grid",gridTemplateColumns:"16px minmax(0, 1fr)",alignItems:"center",gap:10,minHeight:44,padding:"0 14px",borderRadius:16,border:"1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent)",background:"color-mix(in srgb, var(--ui-color-primary, #2563eb) 4%, var(--color-panel-solid, var(--ui-color-surface, #ffffff)))",color:"var(--ui-color-muted, #64748b)",boxSizing:"border-box",...t}},i.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},e||i.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),i.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),i.default.createElement("input",{type:"search",placeholder:r,style:{width:"100%",minWidth:0,border:"none",outline:"none",background:"transparent",color:"inherit",font:"inherit",lineHeight:"inherit"},...n})),z=({children:e,...t})=>i.default.createElement("div",{slot:"promo",...t},e),D=({children:e,...t})=>i.default.createElement("div",{slot:"footer",...t},e),L=({children:e})=>i.default.createElement(i.default.Fragment,null,e);L.__sidebarMarker=O;const M=()=>null;M.__sidebarMarker=V;const W=({children:e})=>i.default.createElement(i.default.Fragment,null,xe(e)),be=i.default.forwardRef(function({children:t,collapsed:r,collapsible:n,rail:u,resizable:b,position:a,value:s,items:g,searchQuery:d,variant:w,size:E,density:_,tone:I,radius:H,itemRadius:B,itemGap:J,itemPaddingX:U,itemPaddingY:K,itemHeight:Z,itemFontSize:X,itemLineHeight:Y,sectionLabelTransform:k,elevation:$,showIcons:A,showBadges:R,headless:Q,width:ee,minWidth:te,maxWidth:re,collapsedWidth:ne,storageKey:oe,autoSave:ae,onSelect:ie,onChange:le,onToggle:se,onCollapseChange:ce,onWidthChange:ue,onSearchChange:de,...he},me){const x=f.useRef(null);return f.useImperativeHandle(me,()=>x.current),f.useEffect(()=>{const l=x.current;if(!l)return;const o=p=>{const c=p.detail;c&&ie?.(c)},h=p=>{const c=p.detail;c&&le?.(c)},m=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&se?.(c)},y=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&ce?.(c)},C=p=>{const c=p.detail;c&&ue?.(c)},fe=p=>{const c=p.detail?.query;typeof c=="string"&&de?.(c)};return l.addEventListener("select",o),l.addEventListener("change",h),l.addEventListener("toggle",m),l.addEventListener("collapse-change",y),l.addEventListener("width-change",C),l.addEventListener("search-change",fe),()=>{l.removeEventListener("select",o),l.removeEventListener("change",h),l.removeEventListener("toggle",m),l.removeEventListener("collapse-change",y),l.removeEventListener("width-change",C),l.removeEventListener("search-change",fe)}},[ie,le,se,ce,ue,de]),Ee(()=>{const l=x.current;if(!l)return;const o=(m,y)=>{const C=l.getAttribute(m);if(y==null){C!=null&&l.removeAttribute(m);return}C!==y&&l.setAttribute(m,y)},h=(m,y)=>{y!=null&&(y?o(m,""):o(m,null))};if(h("collapsed",r),h("collapsible",n),h("rail",u),h("resizable",b),h("headless",Q),h("auto-save",ae),o("position",a&&a!=="left"?a:null),o("value",s!=null&&s!==""?String(s):null),o("search-query",typeof d=="string"&&d!==""?d:null),o("width",ee||null),o("min-width",te||null),o("max-width",re||null),o("collapsed-width",ne||null),o("storage-key",oe||null),g&&g.length)try{o("items",JSON.stringify(pe(g)))}catch{o("items",null)}else o("items",null);o("variant",w&&w!=="surface"?w:null),o("size",E&&E!=="md"&&E!=="2"?E:null),o("density",_&&_!=="default"?_:null),o("tone",I&&I!=="default"?I:null),o("radius",H==null||H===""?null:String(H)),o("item-radius",S(B)),o("item-gap",S(J)),o("item-padding-x",S(U)),o("item-padding-y",S(K)),o("item-height",S(Z)),o("item-font-size",S(X)),o("item-line-height",S(Y)),o("section-label-transform",k&&k!=="none"?k:null),o("elevation",$&&$!=="low"?$:null),typeof A=="boolean"?o("show-icons",A?"true":"false"):o("show-icons",null),typeof R=="boolean"?o("show-badges",R?"true":"false"):o("show-badges",null)},[r,n,u,b,Q,ae,a,s,ee,te,re,ne,oe,g,w,E,_,I,H,B,J,U,K,Z,X,Y,k,d,$,A,R]),Se.createUIElement("ui-sidebar",{ref:x,...he},t)});be.displayName="Sidebar";G.displayName="Sidebar.Header";T.displayName="Sidebar.Search";P.displayName="Sidebar.SearchInput";W.displayName="Sidebar.Content";L.displayName="Sidebar.Group";M.displayName="Sidebar.Item";z.displayName="Sidebar.Promo";D.displayName="Sidebar.Footer";const ge=Object.assign(be,{Header:G,Search:T,SearchInput:P,Content:W,Group:L,Item:M,Promo:z,Footer:D});exports.Sidebar=ge;exports.SidebarContent=W;exports.SidebarFooter=D;exports.SidebarGroup=L;exports.SidebarHeader=G;exports.SidebarItem=M;exports.SidebarPromo=z;exports.SidebarSearch=T;exports.SidebarSearchInput=P;exports.default=ge;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react");require("@editora/ui-core/sidebar");const ye=require("react-dom/server"),Se=require("./_internals-BIT_j6Nr.js"),ve=e=>e&&e.__esModule?e:{default:e},i=ve(f),Ee=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ce=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),O="SidebarGroup",V="SidebarItem";function j(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function we(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function _e(e){const t=[];for(const[r,n]of Object.entries(e))n==null||n===""||t.push(`${we(r)}:${String(n)}`);return t.join(";")}function Ie(e){return e==="className"?"class":e==="htmlFor"?"for":e}function v(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return j(String(e));if(Array.isArray(e))return e.map(a=>v(a)).join("");if(!f.isValidElement(e))return"";if(e.type===i.default.Fragment)return v(e.props.children);if(typeof e.type=="function"){const a=e.type;if(!!a.prototype?.isReactComponent)return"";try{return v(a(e.props))}catch{return""}}if(typeof e.type!="string")return"";const t=e.type,r=e.props,n=[];let u;for(const[a,s]of Object.entries(r)){if(a==="children")continue;if(a==="dangerouslySetInnerHTML"){const d=s;typeof d?.__html=="string"&&(u=d.__html);continue}if(a==="ref"||a==="key"||a==="suppressHydrationWarning"||a==="suppressContentEditableWarning"||a.startsWith("on")||s==null||s===!1)continue;const g=Ie(a);if(a==="style"&&typeof s=="object"){const d=_e(s);d&&n.push(` style="${j(d)}"`);continue}if(s===!0){n.push(` ${g}`);continue}(typeof s=="string"||typeof s=="number")&&n.push(` ${g}="${j(String(s))}"`)}const b=u??v(r.children);return!b&&Ce.has(t)?`<${t}${n.join("")}>`:`<${t}${n.join("")}>${b}</${t}>`}function N(e,t){return f.isValidElement(e)&&e.type.__sidebarMarker===t}function He(e){const t=[],r=[];return f.Children.forEach(e,n=>{if(N(n,O)||N(n,V)){t.push(n);return}n!=null&&n!==!1&&r.push(n)}),{submenuChildren:t,contentChildren:r}}function ke(e,t){if(typeof e=="string")return{contentChildren:t};if(e)return{iconHtml:F(e),contentChildren:t};const[r,...n]=t;return f.isValidElement(r)&&(typeof r.type!="string"||r.type==="svg")?{iconHtml:F(r),contentChildren:n}:{contentChildren:t}}function q(e,t=""){const r=[];return f.Children.forEach(e,n=>{if(N(n,O)){const u=n.props.title||t;r.push(...q(n.props.children,u));return}if(N(n,V)){const u=n.props.section||t,b=n.props.icon,{submenuChildren:a,contentChildren:s}=He(n.props.children),{iconHtml:g,contentChildren:d}=ke(b,s);r.push({value:n.props.value,label:n.props.label,href:n.props.href,target:n.props.target,rel:n.props.rel,icon:typeof b=="string"?b:void 0,iconHtml:g,contentHtml:$e(d),badge:n.props.badge,description:n.props.description,section:u,disabled:n.props.disabled,active:n.props.active,tone:n.props.tone,children:q(a,u)})}}),r}function pe(e){return e.map(t=>({...t,icon:typeof t.icon=="string"?t.icon:void 0,iconHtml:t.iconHtml||F(t.icon),contentHtml:t.contentHtml,children:t.children?pe(t.children):void 0}))}function S(e){return e==null||e===""?null:typeof e=="number"?`${e}px`:String(e)}function F(e){if(!e||typeof e=="string"||!f.isValidElement(e))return;const t=i.default.cloneElement(e,{width:e.props.width??18,height:e.props.height??18,"aria-hidden":!0,focusable:"false"});return v(t)||ye.renderToStaticMarkup(t)||void 0}function $e(e){return e.length&&v(i.default.createElement(i.default.Fragment,null,e))||void 0}function xe(e,t=""){return q(e,t).map((r,n)=>{const u={slot:"item",key:`${r.section||"group"}:${r.value}:${n}`,"data-value":r.value,"data-label":r.label,"data-href":r.href||void 0,"data-target":r.target||void 0,"data-rel":r.rel||void 0,"data-section":r.section||void 0,"data-icon":r.icon||void 0,"data-icon-html":r.iconHtml||void 0,"data-content-html":r.contentHtml||void 0,"data-badge":r.badge||void 0,"data-description":r.description||void 0,"data-tone":r.tone&&r.tone!=="default"?r.tone:void 0};return r.disabled&&(u["data-disabled"]=""),r.active&&(u["data-active"]=""),r.children?.length&&(u["data-children"]=JSON.stringify(r.children)),i.default.createElement("div",u,r.label)})}const G=({children:e,...t})=>i.default.createElement("div",{slot:"header",...t},e),T=({children:e,...t})=>i.default.createElement("div",{slot:"search",...t},e),P=({icon:e,style:t,placeholder:r="Search…",...n})=>i.default.createElement("div",{slot:"search",style:{display:"grid",gridTemplateColumns:"16px minmax(0, 1fr)",alignItems:"center",gap:10,minHeight:44,padding:"0 14px",borderRadius:16,border:"1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent)",background:"color-mix(in srgb, var(--ui-color-primary, #2563eb) 4%, var(--color-panel-solid, var(--ui-color-surface, #ffffff)))",color:"var(--ui-color-muted, #526175)",boxSizing:"border-box",...t}},i.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},e||i.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),i.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),i.default.createElement("input",{type:"search",placeholder:r,style:{width:"100%",minWidth:0,border:"none",outline:"none",background:"transparent",color:"inherit",font:"inherit",lineHeight:"inherit"},...n})),z=({children:e,...t})=>i.default.createElement("div",{slot:"promo",...t},e),D=({children:e,...t})=>i.default.createElement("div",{slot:"footer",...t},e),L=({children:e})=>i.default.createElement(i.default.Fragment,null,e);L.__sidebarMarker=O;const M=()=>null;M.__sidebarMarker=V;const W=({children:e})=>i.default.createElement(i.default.Fragment,null,xe(e)),be=i.default.forwardRef(function({children:t,collapsed:r,collapsible:n,rail:u,resizable:b,position:a,value:s,items:g,searchQuery:d,variant:w,size:E,density:_,tone:I,radius:H,itemRadius:B,itemGap:J,itemPaddingX:U,itemPaddingY:K,itemHeight:Z,itemFontSize:X,itemLineHeight:Y,sectionLabelTransform:k,elevation:$,showIcons:A,showBadges:R,headless:Q,width:ee,minWidth:te,maxWidth:re,collapsedWidth:ne,storageKey:oe,autoSave:ae,onSelect:ie,onChange:le,onToggle:se,onCollapseChange:ce,onWidthChange:ue,onSearchChange:de,...he},me){const x=f.useRef(null);return f.useImperativeHandle(me,()=>x.current),f.useEffect(()=>{const l=x.current;if(!l)return;const o=p=>{const c=p.detail;c&&ie?.(c)},h=p=>{const c=p.detail;c&&le?.(c)},m=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&se?.(c)},y=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&ce?.(c)},C=p=>{const c=p.detail;c&&ue?.(c)},fe=p=>{const c=p.detail?.query;typeof c=="string"&&de?.(c)};return l.addEventListener("select",o),l.addEventListener("change",h),l.addEventListener("toggle",m),l.addEventListener("collapse-change",y),l.addEventListener("width-change",C),l.addEventListener("search-change",fe),()=>{l.removeEventListener("select",o),l.removeEventListener("change",h),l.removeEventListener("toggle",m),l.removeEventListener("collapse-change",y),l.removeEventListener("width-change",C),l.removeEventListener("search-change",fe)}},[ie,le,se,ce,ue,de]),Ee(()=>{const l=x.current;if(!l)return;const o=(m,y)=>{const C=l.getAttribute(m);if(y==null){C!=null&&l.removeAttribute(m);return}C!==y&&l.setAttribute(m,y)},h=(m,y)=>{y!=null&&(y?o(m,""):o(m,null))};if(h("collapsed",r),h("collapsible",n),h("rail",u),h("resizable",b),h("headless",Q),h("auto-save",ae),o("position",a&&a!=="left"?a:null),o("value",s!=null&&s!==""?String(s):null),o("search-query",typeof d=="string"&&d!==""?d:null),o("width",ee||null),o("min-width",te||null),o("max-width",re||null),o("collapsed-width",ne||null),o("storage-key",oe||null),g&&g.length)try{o("items",JSON.stringify(pe(g)))}catch{o("items",null)}else o("items",null);o("variant",w&&w!=="surface"?w:null),o("size",E&&E!=="md"&&E!=="2"?E:null),o("density",_&&_!=="default"?_:null),o("tone",I&&I!=="default"?I:null),o("radius",H==null||H===""?null:String(H)),o("item-radius",S(B)),o("item-gap",S(J)),o("item-padding-x",S(U)),o("item-padding-y",S(K)),o("item-height",S(Z)),o("item-font-size",S(X)),o("item-line-height",S(Y)),o("section-label-transform",k&&k!=="none"?k:null),o("elevation",$&&$!=="low"?$:null),typeof A=="boolean"?o("show-icons",A?"true":"false"):o("show-icons",null),typeof R=="boolean"?o("show-badges",R?"true":"false"):o("show-badges",null)},[r,n,u,b,Q,ae,a,s,ee,te,re,ne,oe,g,w,E,_,I,H,B,J,U,K,Z,X,Y,k,d,$,A,R]),Se.createUIElement("ui-sidebar",{ref:x,...he},t)});be.displayName="Sidebar";G.displayName="Sidebar.Header";T.displayName="Sidebar.Search";P.displayName="Sidebar.SearchInput";W.displayName="Sidebar.Content";L.displayName="Sidebar.Group";M.displayName="Sidebar.Item";z.displayName="Sidebar.Promo";D.displayName="Sidebar.Footer";const ge=Object.assign(be,{Header:G,Search:T,SearchInput:P,Content:W,Group:L,Item:M,Promo:z,Footer:D});exports.Sidebar=ge;exports.SidebarContent=W;exports.SidebarFooter=D;exports.SidebarGroup=L;exports.SidebarHeader=G;exports.SidebarItem=M;exports.SidebarPromo=z;exports.SidebarSearch=T;exports.SidebarSearchInput=P;exports.default=ge;
@@ -193,7 +193,7 @@ const ue = ({ children: e, ...t }) => /* @__PURE__ */ a.createElement("div", { s
193
193
  borderRadius: 16,
194
194
  border: "1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent)",
195
195
  background: "color-mix(in srgb, var(--ui-color-primary, #2563eb) 4%, var(--color-panel-solid, var(--ui-color-surface, #ffffff)))",
196
- color: "var(--ui-color-muted, #64748b)",
196
+ color: "var(--ui-color-muted, #526175)",
197
197
  boxSizing: "border-box",
198
198
  ...t
199
199
  }