@stlhorizon/vue-ui 2.5.7 → 2.6.0

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.esm.js CHANGED
@@ -3602,7 +3602,7 @@ const ae = {
3602
3602
  variant: {
3603
3603
  type: String,
3604
3604
  default: "default",
3605
- validator: (e) => ["default", "secondary", "destructive", "outline"].includes(e)
3605
+ validator: (e) => ["default", "secondary", "destructive", "outline", "success", "warning", "info", "ghost", "link", "subtle", "dark", "light", "primaryOutline", "destructiveOutline", "successOutline", "gradient"].includes(e)
3606
3606
  },
3607
3607
  size: {
3608
3608
  type: String,
@@ -3629,13 +3629,7 @@ const ae = {
3629
3629
  },
3630
3630
  emits: ["dismiss"],
3631
3631
  setup(e, { emit: a }) {
3632
- const t = {
3633
- template: `
3634
- <svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
3635
- <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
3636
- </svg>
3637
- `
3638
- }, n = e, r = a, l = () => r("dismiss"), s = M(
3632
+ const t = e, n = a, r = () => n("dismiss"), l = M(
3639
3633
  "inline-flex items-center font-medium border transition-all duration-200",
3640
3634
  {
3641
3635
  variants: {
@@ -3643,7 +3637,19 @@ const ae = {
3643
3637
  default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
3644
3638
  secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
3645
3639
  destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
3646
- outline: "text-foreground border"
3640
+ outline: "text-foreground border",
3641
+ success: "border-transparent bg-green-600 text-white hover:bg-green-700",
3642
+ warning: "border-transparent bg-yellow-500 text-black hover:bg-yellow-600",
3643
+ info: "border-transparent bg-cyan-600 text-white hover:bg-cyan-700",
3644
+ ghost: "bg-transparent text-gray-700 hover:bg-gray-100",
3645
+ link: "text-blue-600 hover:underline",
3646
+ subtle: "bg-gray-100 text-gray-800 hover:bg-gray-200",
3647
+ dark: "bg-gray-900 text-white hover:bg-black",
3648
+ light: "bg-gray-50 text-gray-800 border border-gray-200 hover:bg-gray-100",
3649
+ primaryOutline: "border border-blue-600 text-blue-600 bg-transparent hover:bg-blue-50",
3650
+ destructiveOutline: "border border-red-600 text-red-600 bg-transparent hover:bg-red-50",
3651
+ successOutline: "border border-green-600 text-green-600 bg-transparent hover:bg-green-50",
3652
+ gradient: "bg-gradient-to-r from-blue-500 to-purple-600 text-white hover:from-blue-600 hover:to-purple-700"
3647
3653
  },
3648
3654
  size: {
3649
3655
  sm: "px-2 py-0.5 text-xs",
@@ -3662,26 +3668,29 @@ const ae = {
3662
3668
  shape: "rounded"
3663
3669
  }
3664
3670
  }
3665
- ), u = v(() => ["mr-1", {
3671
+ ), s = v(() => ["mr-1", {
3666
3672
  sm: "w-3 h-3",
3667
3673
  md: "w-4 h-4",
3668
3674
  lg: "w-5 h-5"
3669
- }[n.size]]);
3670
- return (c, y) => (o(), d("span", {
3671
- class: m(N(S)(N(s)({ variant: e.variant, size: e.size, shape: e.shape }), c.$attrs.class))
3675
+ }[t.size]]);
3676
+ return (u, c) => (o(), d("span", {
3677
+ class: m(N(S)(N(l)({ variant: e.variant, size: e.size, shape: e.shape }), u.$attrs.class))
3672
3678
  }, [
3673
3679
  e.icon ? (o(), R(ve(e.icon), {
3674
3680
  key: 0,
3675
- class: m(u.value)
3681
+ class: m(s.value)
3676
3682
  }, null, 8, ["class"])) : h("", !0),
3677
- B(c.$slots, "default"),
3683
+ B(u.$slots, "default"),
3678
3684
  e.dismissible ? (o(), d("button", {
3679
3685
  key: 1,
3680
3686
  class: "ml-1 hover:bg-black/10 rounded-full p-0.5 transition-colors",
3681
3687
  "aria-label": e.dismissLabel,
3682
- onClick: l
3688
+ onClick: r
3683
3689
  }, [
3684
- P(t, { class: "w-3 h-3" })
3690
+ P(ae, {
3691
+ icon: "xmark",
3692
+ class: "w-3 h-3"
3693
+ })
3685
3694
  ], 8, _o)) : h("", !0)
3686
3695
  ], 2));
3687
3696
  }