@everchron/ec-shards 14.0.8 → 14.0.9

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/ec-shards.js CHANGED
@@ -2987,7 +2987,7 @@ const vo = /* @__PURE__ */ b(ho, [["render", po], ["__scopeId", "data-v-2f0cb806
2987
2987
  /** Sets the size of the button. */
2988
2988
  size: {
2989
2989
  type: String,
2990
- validator: (t) => ["sml", "md", "lg", null].includes(t),
2990
+ validator: (t) => ["xsml", "sml", "md", "lg", null].includes(t),
2991
2991
  default: "md"
2992
2992
  },
2993
2993
  /** If set, an icon will be added to the left of the button. Note, this is required if `iconOnly` is set to true. The list of available icon names can be found [here](https://github.com/everchron/ec-shards/tree/main/src/assets/icons). */
@@ -3041,7 +3041,7 @@ const vo = /* @__PURE__ */ b(ho, [["render", po], ["__scopeId", "data-v-2f0cb806
3041
3041
  return this.size && this.size !== "" ? `ecs-button-${this.size}` : this.size;
3042
3042
  },
3043
3043
  iconSize() {
3044
- return this.size == "sml" ? "20" : this.size == "md" ? "24" : (this.size == "lg", "30");
3044
+ return this.size == "xsml" ? "16" : this.size == "sml" ? "20" : this.size == "md" ? "24" : (this.size == "lg", "30");
3045
3045
  }
3046
3046
  },
3047
3047
  mounted() {
@@ -3052,6 +3052,9 @@ function wo(t, s, e, a, n, i) {
3052
3052
  const r = m("ecs-icon"), c = m("ecs-focus-ring");
3053
3053
  return e.href && !e.addon ? (o(), l("a", {
3054
3054
  key: 0,
3055
+ onClick: s[0] || (s[0] = (d) => t.$emit("click", d)),
3056
+ onMouseover: s[1] || (s[1] = (d) => t.$emit("mouseover", d)),
3057
+ onMouseleave: s[2] || (s[2] = (d) => t.$emit("mouseleave", d)),
3055
3058
  href: e.href,
3056
3059
  target: e.target,
3057
3060
  "aria-label": e.ariaLabel,
@@ -3067,10 +3070,7 @@ function wo(t, s, e, a, n, i) {
3067
3070
  e.loading ? "loading" : "",
3068
3071
  e.iconOnly ? "ecs-button-icon-only" : "",
3069
3072
  e.invert ? "invert" : ""
3070
- ]]),
3071
- onClick: s[0] || (s[0] = (d) => t.$emit("click", d)),
3072
- onMouseover: s[1] || (s[1] = (d) => t.$emit("mouseover", d)),
3073
- onMouseleave: s[2] || (s[2] = (d) => t.$emit("mouseleave", d))
3073
+ ]])
3074
3074
  }, [
3075
3075
  e.icon || e.loading ? (o(), p(r, {
3076
3076
  key: 0,
@@ -3115,6 +3115,9 @@ function wo(t, s, e, a, n, i) {
3115
3115
  }, null, 8, ["inset", "danger"])
3116
3116
  ], 10, ko)) : (o(), l("button", {
3117
3117
  key: 1,
3118
+ onClick: s[3] || (s[3] = (d) => t.$emit("click", d)),
3119
+ onMouseover: s[4] || (s[4] = (d) => t.$emit("mouseover", d)),
3120
+ onMouseleave: s[5] || (s[5] = (d) => t.$emit("mouseleave", d)),
3118
3121
  "aria-label": e.ariaLabel,
3119
3122
  "aria-busy": e.loading || null,
3120
3123
  disabled: e.disabled,
@@ -3127,10 +3130,7 @@ function wo(t, s, e, a, n, i) {
3127
3130
  e.loading ? "loading" : "",
3128
3131
  e.iconOnly ? "ecs-button-icon-only" : "",
3129
3132
  e.invert ? "invert" : ""
3130
- ]]),
3131
- onClick: s[3] || (s[3] = (d) => t.$emit("click", d)),
3132
- onMouseover: s[4] || (s[4] = (d) => t.$emit("mouseover", d)),
3133
- onMouseleave: s[5] || (s[5] = (d) => t.$emit("mouseleave", d))
3133
+ ]])
3134
3134
  }, [
3135
3135
  e.icon || e.loading ? (o(), p(r, {
3136
3136
  key: 0,
@@ -3144,7 +3144,7 @@ function wo(t, s, e, a, n, i) {
3144
3144
  }, null, 8, ["inset", "danger"])
3145
3145
  ], 42, _o));
3146
3146
  }
3147
- const xe = /* @__PURE__ */ b(yo, [["render", wo], ["__scopeId", "data-v-9d759ddc"]]), So = {
3147
+ const xe = /* @__PURE__ */ b(yo, [["render", wo], ["__scopeId", "data-v-47d42f7e"]]), So = {
3148
3148
  name: "ecs-popover-list-item",
3149
3149
  emits: ["click", "input", "change", "secondaryClick"],
3150
3150
  components: { EcsCheckbox: pt, EcsRadiobutton: oo, EcsSwitch: fi, EcsSortbutton: vo, EcsIcon: M, EcsFileIcon: gi, EcsButton: xe, EcsFocusRing: N },
@@ -3611,11 +3611,16 @@ const mi = /* @__PURE__ */ b(So, [["render", qo], ["__scopeId", "data-v-571b015b
3611
3611
  /** Allows to customize the color of the badge. */
3612
3612
  badgeColor: {
3613
3613
  type: String,
3614
- default: "#FF4B62"
3614
+ default: "var(--color-red-8)"
3615
3615
  },
3616
3616
  /** Sets the aria-label attribute. Required for buttons that only contain an icon. */
3617
3617
  ariaLabel: {
3618
3618
  type: String
3619
+ },
3620
+ /** If set, the button will be disabled. */
3621
+ disabled: {
3622
+ type: Boolean,
3623
+ default: !1
3619
3624
  }
3620
3625
  },
3621
3626
  computed: {
@@ -3626,7 +3631,7 @@ const mi = /* @__PURE__ */ b(So, [["render", qo], ["__scopeId", "data-v-571b015b
3626
3631
  return this.loading ? "loading" : this.icon;
3627
3632
  },
3628
3633
  iconTint() {
3629
- return this.activeHighlight ? "#0961EB" : this.$slots.default ? "#858E9E" : this.iconColor;
3634
+ return this.activeHighlight ? this.disabled ? "var(--color-blue-5)" : "var(--color-blue-8)" : this.$slots.default ? this.disabled ? "var(--color-gray-6)" : "var(--color-gray-8)" : this.disabled ? "var(--color-gray-6)" : this.iconColor;
3630
3635
  },
3631
3636
  dropdownClass() {
3632
3637
  if (this.dropdown && this.$slots.default)
@@ -3636,7 +3641,7 @@ const mi = /* @__PURE__ */ b(So, [["render", qo], ["__scopeId", "data-v-571b015b
3636
3641
  mounted() {
3637
3642
  this.$slots.default === void 0 && (!this.ariaLabel || this.ariaLabel.trim());
3638
3643
  }
3639
- }, jo = ["href", "target", "aria-expanded", "aria-busy", "aria-label"], Uo = ["aria-expanded", "aria-busy", "aria-label"];
3644
+ }, jo = ["href", "target", "aria-expanded", "aria-busy", "aria-label", "disabled"], Uo = ["aria-expanded", "aria-busy", "aria-label", "disabled"];
3640
3645
  function Go(t, s, e, a, n, i) {
3641
3646
  const r = m("ecs-icon"), c = m("ecs-focus-ring");
3642
3647
  return e.href ? (o(), l("a", {
@@ -3648,6 +3653,7 @@ function Go(t, s, e, a, n, i) {
3648
3653
  "aria-expanded": e.active && e.dropdown || null,
3649
3654
  "aria-busy": e.loading || null,
3650
3655
  "aria-label": e.ariaLabel,
3656
+ disabled: e.disabled,
3651
3657
  class: v(["ecs-toolbar-button", [
3652
3658
  i.iconClass,
3653
3659
  e.active ? "active" : "",
@@ -3684,6 +3690,7 @@ function Go(t, s, e, a, n, i) {
3684
3690
  "aria-expanded": e.active && e.dropdown || null,
3685
3691
  "aria-busy": e.loading || null,
3686
3692
  "aria-label": e.ariaLabel,
3693
+ disabled: e.disabled,
3687
3694
  class: v(["ecs-toolbar-button", [
3688
3695
  i.iconClass,
3689
3696
  e.active ? "active" : "",
@@ -3716,7 +3723,7 @@ function Go(t, s, e, a, n, i) {
3716
3723
  k(c)
3717
3724
  ], 10, Uo));
3718
3725
  }
3719
- const vt = /* @__PURE__ */ b(Wo, [["render", Go], ["__scopeId", "data-v-f5cf466e"]]), Ko = {
3726
+ const vt = /* @__PURE__ */ b(Wo, [["render", Go], ["__scopeId", "data-v-8164b50a"]]), Ko = {
3720
3727
  name: "ecs-separator",
3721
3728
  props: {
3722
3729
  /** Determines if the separator line is horinzontally or vertically shown. */