@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/dist/index.cjs +1 -1
- package/dist/index.esm.js +2248 -2241
- package/package.json +1 -1
- package/src/components/Tabs.tsx +22 -14
package/package.json
CHANGED
package/src/components/Tabs.tsx
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
});
|