@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.js
CHANGED
|
@@ -290,6 +290,12 @@ var Button = forwardRef2(
|
|
|
290
290
|
disabled: disabled || isLoading,
|
|
291
291
|
className: cn(
|
|
292
292
|
"inline-flex items-center justify-center font-medium transition-colors duration-pg-fast ease-pg-standard",
|
|
293
|
+
// A button's label never wraps. Without this, a narrow button breaks
|
|
294
|
+
// the line between an icon and its text — and an icon passed as a
|
|
295
|
+
// child rather than through `leftIcon` sits inside the same span, so
|
|
296
|
+
// it wraps with the words. Pass `whitespace-normal` in `className`
|
|
297
|
+
// for the rare button that really should wrap.
|
|
298
|
+
"whitespace-nowrap",
|
|
293
299
|
variant !== "link" && "disabled:cursor-not-allowed disabled:opacity-50",
|
|
294
300
|
variant === "link" && "justify-center",
|
|
295
301
|
variant !== "link" && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|