@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/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/button.tsx +6 -0
package/dist/index.cjs
CHANGED
|
@@ -590,6 +590,12 @@ var Button = (0, import_react.forwardRef)(
|
|
|
590
590
|
disabled: disabled || isLoading,
|
|
591
591
|
className: cn(
|
|
592
592
|
"inline-flex items-center justify-center font-medium transition-colors duration-pg-fast ease-pg-standard",
|
|
593
|
+
// A button's label never wraps. Without this, a narrow button breaks
|
|
594
|
+
// the line between an icon and its text — and an icon passed as a
|
|
595
|
+
// child rather than through `leftIcon` sits inside the same span, so
|
|
596
|
+
// it wraps with the words. Pass `whitespace-normal` in `className`
|
|
597
|
+
// for the rare button that really should wrap.
|
|
598
|
+
"whitespace-nowrap",
|
|
593
599
|
variant !== "link" && "disabled:cursor-not-allowed disabled:opacity-50",
|
|
594
600
|
variant === "link" && "justify-center",
|
|
595
601
|
variant !== "link" && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|