@cntyclub/ui-react 0.4.0 → 0.4.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/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/sidebar.tsx +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntyclub/ui-react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "React component library for the Country Club UI Kit — Base UI primitives styled with the Country Club design system (Tailwind CSS v4)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -604,11 +604,10 @@ function SidebarMenuBadge({
|
|
|
604
604
|
return (
|
|
605
605
|
<div
|
|
606
606
|
className={cn(
|
|
607
|
-
|
|
607
|
+
// Vertically centered against the menu button (size-agnostic) rather
|
|
608
|
+
// than pinned to the top, so the count reads level with the label.
|
|
609
|
+
"pointer-events-none absolute right-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 select-none items-center justify-center rounded-lg px-1 font-medium text-sidebar-foreground text-xs tabular-nums",
|
|
608
610
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground peer-data-[status=active]/menu-button:text-sidebar-accent-foreground",
|
|
609
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
610
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
611
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
612
611
|
"group-data-[collapsible=icon]:hidden",
|
|
613
612
|
className,
|
|
614
613
|
)}
|