@stasho/ds 0.9.1 → 0.9.2

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": "@stasho/ds",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "stasho design system",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,8 +22,11 @@ const badgeVariants = cva(
22
22
  outline: "border",
23
23
  },
24
24
  size: {
25
- sm: "px-3 py-0.5 text-[10px]",
26
- md: "px-4 py-1 text-xs",
25
+ // Explicit line-height + min-height so icon-only badges match the
26
+ // height of text badges (a lone icon otherwise yields a shorter
27
+ // line-box than text, and the inherited line-height is non-deterministic).
28
+ sm: "px-3 py-0.5 text-[10px] leading-[14px] min-h-5",
29
+ md: "px-4 py-1 text-xs leading-[16px] min-h-[26px]",
27
30
  },
28
31
  },
29
32
  compoundVariants: [
@@ -16,8 +16,8 @@ const TooltipContent = forwardRef<
16
16
  sideOffset={sideOffset}
17
17
  className={cn(
18
18
  [
19
- "z-50 rounded-sm bg-popover-bg border border-popover-border px-3 py-1.5",
20
- "text-sm text-foreground shadow-sm",
19
+ "z-50 max-w-[260px] rounded-sm bg-popover-bg border border-popover-border px-3 py-1.5",
20
+ "text-xs leading-snug text-foreground shadow-sm",
21
21
  "animate-in fade-in-0 zoom-in-95",
22
22
  "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
23
23
  "data-[state=closed]:zoom-out-95",