cleek 2.6.103 → 2.6.104

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/cleek.es.js CHANGED
@@ -3541,7 +3541,8 @@ const cleekOptions = {
3541
3541
  },
3542
3542
  button: {
3543
3543
  type: "outlined",
3544
- layout: "base"
3544
+ layout: "base",
3545
+ backgroundColor: "transparent"
3545
3546
  },
3546
3547
  div: {
3547
3548
  gap: 0
@@ -82715,9 +82716,9 @@ function useWindowWidth() {
82715
82716
  }
82716
82717
  var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
82717
82718
  const _hoisted_1$k = ["title", "aria-label", "disabled"];
82719
+ const defaultBackgroundColor = "transparent";
82718
82720
  const defaultButtonType = "outlined";
82719
82721
  const defaultColor$1 = "primary";
82720
- const defaultBackgroundColor = "transparent";
82721
82722
  const defaultAlign = "left";
82722
82723
  const _sfc_main$o = defineComponent$2({
82723
82724
  __name: "ck-button",
@@ -82747,6 +82748,13 @@ const _sfc_main$o = defineComponent$2({
82747
82748
  const emits = __emit;
82748
82749
  const { windowWidth } = useWindowWidth();
82749
82750
  let cleekOptions2 = ref$1();
82751
+ const realBackgroundColor = computed$3(() => {
82752
+ if (props.backgroundColor)
82753
+ return props.backgroundColor;
82754
+ if (cleekOptions2.value)
82755
+ return cleekOptions2.value.button.backgroundColor;
82756
+ return defaultBackgroundColor;
82757
+ });
82750
82758
  const realButtonType = computed$3(() => {
82751
82759
  if (props.type)
82752
82760
  return props.type;
@@ -82766,9 +82774,8 @@ const _sfc_main$o = defineComponent$2({
82766
82774
  list.push(`ck-component__border-color--${props.color}`);
82767
82775
  }
82768
82776
  }
82769
- const bgColor = props.backgroundColor || defaultBackgroundColor;
82770
- if (bgColor !== defaultBackgroundColor && hooks9.isColorTemplateVariable(bgColor)) {
82771
- list.push(`ck-component__bg-color--${bgColor}`);
82777
+ if (realBackgroundColor.value !== defaultBackgroundColor && hooks9.isColorTemplateVariable(realBackgroundColor.value)) {
82778
+ list.push(`ck-component__bg-color--${realBackgroundColor.value}`);
82772
82779
  }
82773
82780
  const align = props.align || defaultAlign;
82774
82781
  if (align === "center" || align === "right") {
@@ -82796,9 +82803,8 @@ const _sfc_main$o = defineComponent$2({
82796
82803
  }
82797
82804
  if (props.width && !isWidthDefined)
82798
82805
  list.push({ width: props.width });
82799
- const bgColor = props.backgroundColor || defaultBackgroundColor;
82800
- if (bgColor !== defaultBackgroundColor && !hooks9.isColorTemplateVariable(bgColor)) {
82801
- list.push({ "background-color": bgColor });
82806
+ if (realBackgroundColor.value !== defaultBackgroundColor && !hooks9.isColorTemplateVariable(realBackgroundColor.value)) {
82807
+ list.push({ "background-color": realBackgroundColor.value });
82802
82808
  }
82803
82809
  return list;
82804
82810
  });
@@ -82841,7 +82847,7 @@ const _sfc_main$o = defineComponent$2({
82841
82847
  };
82842
82848
  }
82843
82849
  });
82844
- var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-91767c62"]]);
82850
+ var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-21005d90"]]);
82845
82851
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
82846
82852
  const _hoisted_1$j = ["for"];
82847
82853
  const defaultSize$2 = "m";