@vvedantb/ui 0.83.0 → 0.84.0

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.
@@ -5,7 +5,8 @@ export const SIDEBAR_RAIL_APP_ICON_SIZE = 24;
5
5
 
6
6
  /** Rail tile: 44px on touch layouts, 40px from `md`, rounded-lg, press scale. */
7
7
  export const railTileClass = "relative flex size-11 md:size-10 items-center justify-center rounded-lg border active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring";
8
- const railTileActiveClass = "border-transparent bg-surface-tertiary text-foreground";
8
+ const railGlassClass = "shadow-[inset_0_0_0_0.5px_rgb(0_0_0/0.08),inset_1.5px_1.5px_1px_-1px_rgb(255_255_255/0.5),0_1px_1px_rgb(0_0_0/0.08)] dark:shadow-[inset_0_0_0_0.5px_rgb(255_255_255/0.1),inset_1.5px_1.5px_1px_-1px_rgb(255_255_255/0.12),0_1px_1px_rgb(0_0_0/0.3)]";
9
+ const railTileActiveClass = `border-transparent bg-surface-tertiary text-foreground ${railGlassClass}`;
9
10
  const railTileIdleClass = "border-transparent text-muted opacity-75 hover:bg-surface-tertiary/50 hover:opacity-100 hover:text-foreground"; // check-tokens-allow: text-muted
10
11
 
11
12
  const railTileGroupActiveClass = "z-1 border-transparent bg-transparent text-segment-foreground";
@@ -26,7 +27,7 @@ export function railTileStateClass(active, grouped = false) {
26
27
  export const railGroupClass = "relative isolate flex flex-col items-center gap-1 rounded-[calc(var(--radius-lg)+0.25rem)] bg-default p-1 dark:bg-surface";
27
28
 
28
29
  /** The `RailGroup` sliding pill: the segmented tabs pill, with the tile radius. */
29
- export const railGroupPillClass = "t-tabs-pill rounded-lg bg-segment";
30
+ export const railGroupPillClass = `t-tabs-pill rounded-lg bg-segment ${railGlassClass}`;
30
31
 
31
32
  /** Count badge pinned to the bottom-right of a rail tile. */
32
33
  export const railBadgeClass = "absolute -bottom-0.5 -right-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-medium leading-none text-accent-foreground"; // check-tokens-allow: accent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvedantb/ui",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "license": "MIT",
5
5
  "description": "Shared React 19 UI for web apps: one main JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), third-party brand logos (also @vvedantb/ui/logos), motion-driven animated SVG icons (@vvedantb/ui/icons/animated), a client entry without @vvedantb/server, convex or Clerk for Chrome extensions, design-token CSS, shared Tailwind v4 CSS, a Tailwind preset and packaged Instrument Sans fonts.",
6
6
  "type": "module",
@@ -7,7 +7,10 @@ export const SIDEBAR_RAIL_APP_ICON_SIZE = 24;
7
7
  export const railTileClass =
8
8
  "relative flex size-11 md:size-10 items-center justify-center rounded-lg border active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring";
9
9
 
10
- const railTileActiveClass = "border-transparent bg-surface-tertiary text-foreground";
10
+ const railGlassClass =
11
+ "shadow-[inset_0_0_0_0.5px_rgb(0_0_0/0.08),inset_1.5px_1.5px_1px_-1px_rgb(255_255_255/0.5),0_1px_1px_rgb(0_0_0/0.08)] dark:shadow-[inset_0_0_0_0.5px_rgb(255_255_255/0.1),inset_1.5px_1.5px_1px_-1px_rgb(255_255_255/0.12),0_1px_1px_rgb(0_0_0/0.3)]";
12
+
13
+ const railTileActiveClass = `border-transparent bg-surface-tertiary text-foreground ${railGlassClass}`;
11
14
  const railTileIdleClass = "border-transparent text-muted opacity-75 hover:bg-surface-tertiary/50 hover:opacity-100 hover:text-foreground"; // check-tokens-allow: text-muted
12
15
 
13
16
  const railTileGroupActiveClass = "z-1 border-transparent bg-transparent text-segment-foreground";
@@ -29,7 +32,7 @@ export const railGroupClass =
29
32
  "relative isolate flex flex-col items-center gap-1 rounded-[calc(var(--radius-lg)+0.25rem)] bg-default p-1 dark:bg-surface";
30
33
 
31
34
  /** The `RailGroup` sliding pill: the segmented tabs pill, with the tile radius. */
32
- export const railGroupPillClass = "t-tabs-pill rounded-lg bg-segment";
35
+ export const railGroupPillClass = `t-tabs-pill rounded-lg bg-segment ${railGlassClass}`;
33
36
 
34
37
  /** Count badge pinned to the bottom-right of a rail tile. */
35
38
  export const railBadgeClass = "absolute -bottom-0.5 -right-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-medium leading-none text-accent-foreground"; // check-tokens-allow: accent