@stackloop/ui 2.0.4 → 2.0.6
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2776,7 +2776,7 @@ function u(...e) {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
const xe = Le.forwardRef(
|
|
2778
2778
|
({ variant: e = "primary", size: t = "md", loading: a, icon: o, className: n, children: l, disabled: s, ...c }, i) => {
|
|
2779
|
-
const m = "flex items-center justify-center gap-2 font-medium rounded-md transition-all duration-200 touch-target disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98]
|
|
2779
|
+
const m = "inline-flex items-center justify-center gap-2 font-medium rounded-md transition-all duration-200 touch-target disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] flex-shrink-0 whitespace-nowrap", x = {
|
|
2780
2780
|
primary: "bg-primary text-white hover:bg-primary-dark active:bg-primary-dark/90 shadow-sm",
|
|
2781
2781
|
secondary: "bg-secondary text-foreground hover:bg-border active:bg-border-dark",
|
|
2782
2782
|
outline: "bg-transparent text-primary border-2 border-primary hover:bg-secondary active:bg-border",
|
|
@@ -2847,13 +2847,13 @@ const mt = ae(
|
|
|
2847
2847
|
style: {
|
|
2848
2848
|
right: "14px",
|
|
2849
2849
|
top: "50%",
|
|
2850
|
-
transform: "translateY(-50%)",
|
|
2851
2850
|
display: "inline-flex",
|
|
2852
2851
|
alignItems: "center",
|
|
2853
2852
|
justifyContent: "center"
|
|
2854
2853
|
},
|
|
2855
2854
|
"aria-label": m ? "Hide password" : "Show password",
|
|
2856
|
-
whileTap: { scale: 0.9 },
|
|
2855
|
+
whileTap: { scale: 0.9, y: "-50%" },
|
|
2856
|
+
animate: { y: "-50%" },
|
|
2857
2857
|
transition: { duration: 0.1 },
|
|
2858
2858
|
children: m ? /* @__PURE__ */ r(or, { className: "w-5 h-5" }) : /* @__PURE__ */ r(ar, { className: "w-5 h-5" })
|
|
2859
2859
|
}
|