@stackloop/ui 2.0.3 → 2.0.5

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.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] w-auto", x = {
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",
@@ -2843,8 +2843,15 @@ const mt = ae(
2843
2843
  {
2844
2844
  type: "button",
2845
2845
  onClick: () => x(!m),
2846
- className: "absolute flex items-center text-primary hover:text-primary-dark transition-colors",
2847
- style: { right: "14px", top: "50%", transform: "translateY(-50%)" },
2846
+ className: "absolute text-primary hover:text-primary-dark transition-colors",
2847
+ style: {
2848
+ right: "14px",
2849
+ top: "50%",
2850
+ transform: "translateY(-50%)",
2851
+ display: "inline-flex",
2852
+ alignItems: "center",
2853
+ justifyContent: "center"
2854
+ },
2848
2855
  "aria-label": m ? "Hide password" : "Show password",
2849
2856
  whileTap: { scale: 0.9 },
2850
2857
  transition: { duration: 0.1 },