@the-portland-company/shell 0.48.0 → 0.49.0-rc.1

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.
@@ -1939,7 +1939,7 @@ function NavSidebar({
1939
1939
  ]
1940
1940
  }
1941
1941
  ) }) : null,
1942
- /* @__PURE__ */ jsxRuntime.jsxs("nav", { className: "flex flex-col gap-1", children: [
1942
+ /* @__PURE__ */ jsxRuntime.jsxs("nav", { className: "flex flex-col gap-[var(--sidebar-item-gap,0.25rem)]", children: [
1943
1943
  nav.groupLabel ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-2 pb-1 text-[11px] font-semibold uppercase tracking-[0.08em] text-[color:var(--sidebar-text-muted,var(--muted))]", children: nav.groupLabel }) : null,
1944
1944
  nav.items.map((item, idx) => {
1945
1945
  if (item.kind === "section") {
@@ -2102,10 +2102,19 @@ function NavRow({
2102
2102
  const washActive = variant !== "top";
2103
2103
  const activeClasses = washActive ? "bg-[color:var(--mode-accent-surface,var(--panel-elevated))] text-[color:var(--color-accent)] shadow-sm" : "bg-[color:var(--color-accent)] text-white shadow-sm";
2104
2104
  const wrapperClasses = [
2105
- "group relative block overflow-hidden rounded-md transition",
2105
+ "group relative block overflow-hidden transition",
2106
+ "rounded-[var(--sidebar-item-radius,0.375rem)]",
2106
2107
  active ? activeClasses : "text-[color:var(--sidebar-text,var(--muted))] hover:text-white"
2107
2108
  ].join(" ");
2108
- const rowPadding = isSub ? "px-3 py-1.5 text-[13px]" : "px-3 py-2 text-sm";
2109
+ const rowPadding = isSub ? [
2110
+ "px-[calc(var(--sidebar-item-padding-x,0.75rem)*0.75)]",
2111
+ "py-[calc(var(--sidebar-item-padding-y,0.5rem)*0.6)]",
2112
+ "text-[length:calc(var(--sidebar-item-font-size,1rem)*0.875)]"
2113
+ ].join(" ") : [
2114
+ "px-[var(--sidebar-item-padding-x,0.75rem)]",
2115
+ "py-[var(--sidebar-item-padding-y,0.5rem)]",
2116
+ "text-[length:var(--sidebar-item-font-size,1rem)]"
2117
+ ].join(" ");
2109
2118
  const iconSize = isSub ? 16 : 18;
2110
2119
  const iconClass = active && !washActive ? "text-white" : "text-current";
2111
2120
  const inner = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -2130,10 +2139,17 @@ function NavRow({
2130
2139
  }
2131
2140
  )
2132
2141
  ),
2133
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `relative z-10 flex items-center gap-3 font-semibold ${rowPadding}`, children: [
2134
- Icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: iconSize, className: iconClass }) : null,
2135
- item.label
2136
- ] })
2142
+ /* @__PURE__ */ jsxRuntime.jsxs(
2143
+ "span",
2144
+ {
2145
+ style: { fontWeight: "var(--sidebar-item-font-weight, 400)" },
2146
+ className: `relative z-10 flex items-center gap-3 ${rowPadding}`,
2147
+ children: [
2148
+ Icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: iconSize, className: iconClass }) : null,
2149
+ item.label
2150
+ ]
2151
+ }
2152
+ )
2137
2153
  ] });
2138
2154
  if (item.disabled) {
2139
2155
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2194,19 +2210,26 @@ function NavGroup({
2194
2210
  style: { background: NAV_HOVER_GRADIENT }
2195
2211
  }
2196
2212
  ) : null,
2197
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative z-10 flex items-center gap-3 px-3 py-2 text-sm font-semibold", children: [
2198
- Icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 18, className: active ? "text-white" : "text-current" }) : null,
2199
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1", children: item.label }),
2200
- /* @__PURE__ */ jsxRuntime.jsx(
2201
- ChevronDown,
2202
- {
2203
- className: [
2204
- "shrink-0 opacity-80 transition-transform duration-200",
2205
- open ? "rotate-180" : ""
2206
- ].join(" ")
2207
- }
2208
- )
2209
- ] })
2213
+ /* @__PURE__ */ jsxRuntime.jsxs(
2214
+ "span",
2215
+ {
2216
+ style: { fontWeight: "var(--sidebar-item-font-weight, 400)" },
2217
+ className: "relative z-10 flex items-center gap-3 px-[var(--sidebar-item-padding-x,0.75rem)] py-[var(--sidebar-item-padding-y,0.5rem)] text-[length:var(--sidebar-item-font-size,1rem)]",
2218
+ children: [
2219
+ Icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 18, className: active ? "text-white" : "text-current" }) : null,
2220
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1", children: item.label }),
2221
+ /* @__PURE__ */ jsxRuntime.jsx(
2222
+ ChevronDown,
2223
+ {
2224
+ className: [
2225
+ "shrink-0 opacity-80 transition-transform duration-200",
2226
+ open ? "rotate-180" : ""
2227
+ ].join(" ")
2228
+ }
2229
+ )
2230
+ ]
2231
+ }
2232
+ )
2210
2233
  ]
2211
2234
  }
2212
2235
  ),