@stagewise/ui 0.15.0 → 0.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stagewise/ui",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Customized shadcn/ui components built on Base UI primitives, for use across stagewise projects.",
5
5
  "type": "module",
6
6
  "license": "MIT AND OFL-1.1",
@@ -4,7 +4,10 @@ function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
4
4
  return (
5
5
  <div
6
6
  data-slot="skeleton"
7
- className={cn('animate-pulse rounded-md bg-muted', className)}
7
+ className={cn(
8
+ 'animate-pulse rounded-md bg-muted in-data-[slot=sidebar]:bg-sidebar-skeleton',
9
+ className,
10
+ )}
8
11
  {...props}
9
12
  />
10
13
  );
@@ -10,7 +10,10 @@ function Spinner({
10
10
  data-slot="spinner"
11
11
  role="status"
12
12
  aria-label="Loading"
13
- className={cn('size-4 animate-spin', className)}
13
+ // h-4 w-4, not size-4: containers size icons without a size-* class
14
+ // (a size sm button's are 14px), so the spinner takes the size of the
15
+ // icon it stands in for.
16
+ className={cn('h-4 w-4 animate-spin', className)}
14
17
  {...props}
15
18
  />
16
19
  );
@@ -57,6 +57,8 @@
57
57
  --sidebar-primary: var(--color-primary-solid);
58
58
  --sidebar-primary-foreground: var(--color-solid-foreground);
59
59
  --sidebar-accent: var(--color-base-150);
60
+ /* Skeletons on the sidebar; muted equals its surface in light mode. */
61
+ --sidebar-skeleton: var(--color-base-150);
60
62
  --sidebar-accent-foreground: var(--color-base-900);
61
63
  --sidebar-border: var(--border);
62
64
  --sidebar-ring: var(--color-primary-solid);
@@ -113,6 +115,7 @@
113
115
  var(--color-base-700) 60%,
114
116
  var(--color-base-600)
115
117
  );
118
+ --sidebar-skeleton: var(--color-base-600);
116
119
  --sidebar-accent-foreground: var(--color-base-200);
117
120
  --sidebar-border: var(--border);
118
121
  --sidebar-ring: var(--color-primary-solid);
@@ -42,6 +42,7 @@
42
42
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
43
43
  --color-sidebar-accent: var(--sidebar-accent);
44
44
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
45
+ --color-sidebar-skeleton: var(--sidebar-skeleton);
45
46
  --color-sidebar-border: var(--sidebar-border);
46
47
  --color-sidebar-ring: var(--sidebar-ring);
47
48