@stasho/ds 0.15.1 → 0.15.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stasho/ds",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "description": "stasho design system",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -178,6 +178,7 @@ const ProjectSwitcher = forwardRef<HTMLButtonElement, ProjectSwitcherProps>(
178
178
  value={query}
179
179
  onValueChange={setQuery}
180
180
  placeholder={searchPlaceholder}
181
+ aria-label={searchPlaceholder}
181
182
  className={cn(
182
183
  "w-full border-b border-edge bg-transparent px-4 py-2.5",
183
184
  "text-sm text-foreground placeholder:text-muted-foreground",
@@ -160,9 +160,12 @@ export function SidebarNav({
160
160
  return (
161
161
  <nav
162
162
  aria-label={ariaLabel}
163
- className={cn("flex-1 overflow-y-auto p-2", className)}
163
+ className={cn(
164
+ "flex flex-1 flex-col gap-1 overflow-y-auto p-2",
165
+ className,
166
+ )}
164
167
  >
165
- <ul className="flex flex-col gap-1">{children}</ul>
168
+ {children}
166
169
  </nav>
167
170
  );
168
171
  }
@@ -130,6 +130,8 @@
130
130
  Layer 2: Semantic Surface Tokens (theme-dependent)
131
131
  ────────────────────────────────────────────── */
132
132
  :root {
133
+ /* Native UI (scrollbars, form-control chrome) must render light with the theme. */
134
+ color-scheme: light;
133
135
  --background: oklch(0.99 0.005 270);
134
136
  --foreground: oklch(0.22 0.015 270);
135
137
 
@@ -162,6 +164,8 @@
162
164
  }
163
165
 
164
166
  .theme-dark {
167
+ /* Native UI (scrollbars, form-control chrome) must render dark with the theme. */
168
+ color-scheme: dark;
165
169
  --background: #07080a;
166
170
  --foreground: #f3f3f3;
167
171