@payglocal_ui/flux-ui 0.3.3 → 0.3.4

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": "@payglocal_ui/flux-ui",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Flux UI primitives — inputs, fields, dialog, data table, charts, calendar, and more (Tailwind v4 + Radix).",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/button.tsx CHANGED
@@ -55,6 +55,12 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
55
55
  disabled={disabled || isLoading}
56
56
  className={cn(
57
57
  "inline-flex items-center justify-center font-medium transition-colors duration-pg-fast ease-pg-standard",
58
+ // A button's label never wraps. Without this, a narrow button breaks
59
+ // the line between an icon and its text — and an icon passed as a
60
+ // child rather than through `leftIcon` sits inside the same span, so
61
+ // it wraps with the words. Pass `whitespace-normal` in `className`
62
+ // for the rare button that really should wrap.
63
+ "whitespace-nowrap",
58
64
  variant !== "link" && "disabled:cursor-not-allowed disabled:opacity-50",
59
65
  variant === "link" && "justify-center",
60
66
  variant !== "link" && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",