@underverse-ui/underverse 0.1.16 → 0.1.17
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 +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -55,6 +55,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
55
55
|
preventDoubleClick?: boolean;
|
|
56
56
|
lockMs?: number;
|
|
57
57
|
asContainer?: boolean;
|
|
58
|
+
noWrap?: boolean;
|
|
58
59
|
}
|
|
59
60
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
60
61
|
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
55
55
|
preventDoubleClick?: boolean;
|
|
56
56
|
lockMs?: number;
|
|
57
57
|
asContainer?: boolean;
|
|
58
|
+
noWrap?: boolean;
|
|
58
59
|
}
|
|
59
60
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
60
61
|
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,7 @@ var Button = forwardRef(
|
|
|
69
69
|
preventDoubleClick = false,
|
|
70
70
|
lockMs = 600,
|
|
71
71
|
asContainer = false,
|
|
72
|
+
noWrap = true,
|
|
72
73
|
...rest
|
|
73
74
|
}, ref) => {
|
|
74
75
|
const baseStyles = asContainer ? "relative inline-flex justify-center rounded-md font-medium transition-colors duration-150 ease-soft outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:translate-y-px" : "relative inline-flex items-center justify-center gap-2 rounded-md font-medium overflow-hidden transition-colors duration-150 ease-soft outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:translate-y-px";
|
|
@@ -113,6 +114,7 @@ var Button = forwardRef(
|
|
|
113
114
|
variantStyle,
|
|
114
115
|
sizeStyle,
|
|
115
116
|
"group",
|
|
117
|
+
noWrap && "whitespace-nowrap",
|
|
116
118
|
{
|
|
117
119
|
"cursor-pointer hover:opacity-95": !computedDisabled,
|
|
118
120
|
"opacity-50 cursor-not-allowed": computedDisabled,
|