@lateralus-ai/shipping-ui 2.0.0-dev.4 → 2.0.0-dev.5

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": "@lateralus-ai/shipping-ui",
3
- "version": "2.0.0-dev.4",
3
+ "version": "2.0.0-dev.5",
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",
@@ -51,7 +51,7 @@ export const TabsList = forwardRef<
51
51
  ref={ref}
52
52
  className={cn(
53
53
  "flex items-center",
54
- type === "tabs" && "gap-1 border-b border-divider-primary",
54
+ type === "tabs" && "gap-6 border-b border-divider-primary",
55
55
  type === "pills" && "gap-2",
56
56
  className,
57
57
  )}
@@ -82,7 +82,7 @@ export const TabsTrigger = forwardRef<
82
82
  "inline-flex items-center justify-center transition-colors outline-none",
83
83
  "disabled:pointer-events-none disabled:opacity-50",
84
84
  type === "tabs" && [
85
- "relative px-3 py-2 text-caption-2 text-display-on-light-secondary",
85
+ "relative h-12 gap-2 px-0 py-0 text-caption-2 text-display-on-light-secondary",
86
86
  "hover:text-display-on-light-primary",
87
87
  "data-[state=active]:text-caption-2-em data-[state=active]:text-display-on-light-primary",
88
88
  "data-[state=active]:after:absolute data-[state=active]:after:inset-x-0 data-[state=active]:after:-bottom-px",
@@ -99,18 +99,26 @@ export const TabsTrigger = forwardRef<
99
99
  {...props}
100
100
  >
101
101
  {children}
102
- {typeof count === "number" && (
103
- <span
104
- className={cn(
105
- "inline-flex size-6 shrink-0 items-center justify-center rounded-full text-footnote-em",
106
- "bg-accent-bg-light text-display-on-light-secondary",
107
- "group-data-[state=active]:text-display-on-light-tertiary",
108
- )}
109
- aria-label={`Count: ${count}`}
110
- >
111
- {count > 99 ? "99+" : count}
112
- </span>
113
- )}
102
+ {typeof count === "number" &&
103
+ (type === "pills" ? (
104
+ <span
105
+ className={cn(
106
+ "inline-flex size-6 shrink-0 items-center justify-center rounded-full text-footnote-em",
107
+ "bg-accent-bg-light text-display-on-light-secondary",
108
+ "group-data-[state=active]:text-display-on-light-tertiary",
109
+ )}
110
+ aria-label={`Count: ${count}`}
111
+ >
112
+ {count > 99 ? "99+" : count}
113
+ </span>
114
+ ) : (
115
+ <span
116
+ className="px-1 text-caption-2 text-display-on-light-secondary"
117
+ aria-label={`Count: ${count}`}
118
+ >
119
+ {count > 99 ? "99+" : count}
120
+ </span>
121
+ ))}
114
122
  </TabsPrimitive.Trigger>
115
123
  );
116
124
  });