@uzum-tech/ui 2.4.5 → 2.4.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.js CHANGED
@@ -22507,6 +22507,7 @@
22507
22507
  },
22508
22508
  dashed: Boolean,
22509
22509
  renderIcon: Function,
22510
+ iconProps: Object,
22510
22511
  iconPlacement: {
22511
22512
  type: String,
22512
22513
  default: "left"
@@ -22985,7 +22986,7 @@
22985
22986
  /* @__PURE__ */ vue.h(FadeInExpandTransition, { width: true }, {
22986
22987
  default: () => resolveWrappedSlot(
22987
22988
  this.$slots.icon,
22988
- (children2) => (this.loading || this.renderIcon || children2) && /* @__PURE__ */ vue.h(
22989
+ (children2) => (this.loading || children2 || this.renderIcon || this.iconProps) && /* @__PURE__ */ vue.h(
22989
22990
  "span",
22990
22991
  {
22991
22992
  class: `${mergedClsPrefix}-button__icon`,
@@ -23009,7 +23010,7 @@
23009
23010
  class: `${mergedClsPrefix}-icon-slot`,
23010
23011
  role: "none"
23011
23012
  },
23012
- this.renderIcon ? this.renderIcon() : children2
23013
+ children2 || (this.renderIcon ? this.renderIcon() : this.iconProps ? /* @__PURE__ */ vue.h(UIcon$1, { ...this.iconProps }) : null)
23013
23014
  )
23014
23015
  })
23015
23016
  )
@@ -155097,7 +155098,7 @@ ${icon.label}`.toLowerCase()
155097
155098
  });
155098
155099
  }
155099
155100
 
155100
- var version = "2.4.5";
155101
+ var version = "2.4.6";
155101
155102
 
155102
155103
  function create({
155103
155104
  componentPrefix = "U",
package/dist/index.mjs CHANGED
@@ -22503,6 +22503,7 @@ const buttonProps = {
22503
22503
  },
22504
22504
  dashed: Boolean,
22505
22505
  renderIcon: Function,
22506
+ iconProps: Object,
22506
22507
  iconPlacement: {
22507
22508
  type: String,
22508
22509
  default: "left"
@@ -22981,7 +22982,7 @@ const Button = defineComponent({
22981
22982
  /* @__PURE__ */ h$1(FadeInExpandTransition, { width: true }, {
22982
22983
  default: () => resolveWrappedSlot(
22983
22984
  this.$slots.icon,
22984
- (children2) => (this.loading || this.renderIcon || children2) && /* @__PURE__ */ h$1(
22985
+ (children2) => (this.loading || children2 || this.renderIcon || this.iconProps) && /* @__PURE__ */ h$1(
22985
22986
  "span",
22986
22987
  {
22987
22988
  class: `${mergedClsPrefix}-button__icon`,
@@ -23005,7 +23006,7 @@ const Button = defineComponent({
23005
23006
  class: `${mergedClsPrefix}-icon-slot`,
23006
23007
  role: "none"
23007
23008
  },
23008
- this.renderIcon ? this.renderIcon() : children2
23009
+ children2 || (this.renderIcon ? this.renderIcon() : this.iconProps ? /* @__PURE__ */ h$1(UIcon$1, { ...this.iconProps }) : null)
23009
23010
  )
23010
23011
  })
23011
23012
  )
@@ -155093,7 +155094,7 @@ function useThemeVars() {
155093
155094
  });
155094
155095
  }
155095
155096
 
155096
- var version = "2.4.5";
155097
+ var version = "2.4.6";
155097
155098
 
155098
155099
  function create({
155099
155100
  componentPrefix = "U",