@lateralus-ai/shipping-ui 2.0.0-dev.14 → 2.0.0-dev.16

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.
@@ -15,7 +15,8 @@ export declare const sidebarSectionShellCollapsed = "relative box-border flex w-
15
15
  export declare const sidebarUnreadOverlay = "pointer-events-none absolute left-0 top-0 size-6";
16
16
  /** Figma unread dot — ~6px, top-right of the 24px indicator overlay. */
17
17
  export declare const sidebarUnreadDot = "absolute right-0 top-0 size-1.5 rounded-full bg-[#802c20]";
18
- export declare const sidebarSectionContent = "flex w-full min-w-0 items-center gap-2 pl-1";
18
+ /** Icon + label row inside a section shell — no extra inset (shell already has p-2). */
19
+ export declare const sidebarSectionContent = "flex w-full min-w-0 items-center gap-2";
19
20
  export declare const sidebarSectionIconClass = "shrink-0 [&>svg]:size-4";
20
21
  export declare const sidebarSectionLabelClass = "min-w-0 flex-1 truncate text-caption-2 tracking-[0.01em]";
21
22
  /** Figma sidebar icon buttons — transparent idle, grey hover (no white fill). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lateralus-ai/shipping-ui",
3
- "version": "2.0.0-dev.14",
3
+ "version": "2.0.0-dev.16",
4
4
  "description": "Shared UI theme and components for Lateralus shipping applications",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.esm.js",
@@ -45,7 +45,6 @@ export const CollapsibleNavGroup = ({
45
45
  href={href}
46
46
  label={label}
47
47
  icon={icon}
48
- tall
49
48
  onNavigate={onNavigate}
50
49
  trailing={
51
50
  <IconButton
@@ -4,8 +4,10 @@ import { cn } from "../../utils/cn";
4
4
  import {
5
5
  sidebarLinkActive,
6
6
  sidebarLinkIdle,
7
- sidebarRowClass,
8
7
  sidebarRowInteractiveHover,
8
+ sidebarSectionIconClass,
9
+ sidebarSectionShell,
10
+ sidebarSectionShellCollapsed,
9
11
  } from "./sidebar-styles";
10
12
 
11
13
  export type SidebarActionProps = {
@@ -32,20 +34,23 @@ export const SidebarAction = ({
32
34
  type="button"
33
35
  onClick={onClick}
34
36
  aria-label={label}
35
- className={sidebarRowClass(
36
- cn(
37
- "cursor-pointer text-left",
38
- active ? sidebarLinkActive : sidebarLinkIdle,
39
- !active && sidebarRowInteractiveHover,
40
- collapsed ? "justify-center" : "gap-2",
41
- className,
42
- ),
37
+ className={cn(
38
+ collapsed ? sidebarSectionShellCollapsed : sidebarSectionShell,
39
+ "cursor-pointer text-left",
40
+ active ? sidebarLinkActive : sidebarLinkIdle,
41
+ !active && sidebarRowInteractiveHover,
42
+ !collapsed && "gap-2",
43
+ className,
43
44
  )}
44
45
  data-active={active}
45
46
  data-collapsed={collapsed}
46
47
  >
47
- {icon && <span className="shrink-0 [&>svg]:size-5">{icon}</span>}
48
- {!collapsed && <span className="min-w-0 flex-1 truncate">{label}</span>}
48
+ {icon && <span className={sidebarSectionIconClass}>{icon}</span>}
49
+ {!collapsed && (
50
+ <span className="min-w-0 flex-1 truncate text-caption-2 tracking-[0.01em]">
51
+ {label}
52
+ </span>
53
+ )}
49
54
  </button>
50
55
  );
51
56
 
@@ -75,9 +75,7 @@ export const SidebarEntry = ({
75
75
  />
76
76
 
77
77
  <div className="pointer-events-none relative z-10 flex min-w-0 flex-1 items-center gap-2 text-caption-2">
78
- {icon && (
79
- <span className="shrink-0 px-1 py-0.5 [&>svg]:size-4">{icon}</span>
80
- )}
78
+ {icon && <span className="shrink-0 [&>svg]:size-4">{icon}</span>}
81
79
  <span className="truncate">{label}</span>
82
80
  </div>
83
81
 
@@ -30,7 +30,8 @@ export const sidebarUnreadOverlay =
30
30
  export const sidebarUnreadDot =
31
31
  "absolute right-0 top-0 size-1.5 rounded-full bg-[#802c20]";
32
32
 
33
- export const sidebarSectionContent = "flex w-full min-w-0 items-center gap-2 pl-1";
33
+ /** Icon + label row inside a section shell — no extra inset (shell already has p-2). */
34
+ export const sidebarSectionContent = "flex w-full min-w-0 items-center gap-2";
34
35
 
35
36
  export const sidebarSectionIconClass = "shrink-0 [&>svg]:size-4";
36
37