cleek 2.3.34 → 2.3.37

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
@@ -16746,6 +16746,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16746
16746
  align: { type: String, default: "left", validator: validators.align },
16747
16747
  size: { type: String, default: "m", validator: validators.size },
16748
16748
  width: { type: String, default: "" },
16749
+ rounded: { type: Boolean, default: false },
16749
16750
  icon: { type: [String, Array], default: void 0 },
16750
16751
  iconPack: { type: String, default: void 0 },
16751
16752
  iconRight: { type: String, default: void 0 },
@@ -16784,9 +16785,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16784
16785
  if (props.align === "center" || props.align === "right") {
16785
16786
  classList2.push(`ck-button__align--${props.align}`);
16786
16787
  }
16788
+ if (props.rounded)
16789
+ console.log("rounded");
16790
+ if (props.rounded)
16791
+ classList2.push("rounded");
16787
16792
  classList2.push(`type-${realButtonType.value}`);
16788
16793
  if (props.size)
16789
- classList2.push(`rs-component-size__${props.size}`);
16794
+ classList2.push(`ck-button-size__${props.size}`);
16790
16795
  return classList2;
16791
16796
  });
16792
16797
  const computedStyle = computed$2(() => {
@@ -16800,7 +16805,6 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16800
16805
  emits("click", event);
16801
16806
  }
16802
16807
  onMounted(() => {
16803
- getCurrentInstance().ctx;
16804
16808
  $cleekOptions = functions.getCleekOptions(getCurrentInstance);
16805
16809
  isMounted.value = true;
16806
16810
  });
@@ -16831,13 +16835,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16831
16835
  };
16832
16836
  }
16833
16837
  });
16834
- var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-334c7553"]]);
16838
+ var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-4a61847a"]]);
16835
16839
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
16836
16840
  const _hoisted_1$f = ["for"];
16837
16841
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
16838
16842
  props: {
16839
16843
  for: { type: String, default: "" },
16840
- align: { type: String, default: "" }
16844
+ align: { type: String, default: "" },
16845
+ size: { type: String, default: "m" }
16841
16846
  },
16842
16847
  setup(__props) {
16843
16848
  const props = __props;
@@ -16847,6 +16852,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16847
16852
  if (props.align === "center" || props.align === "right")
16848
16853
  align = props.align;
16849
16854
  list.push(`ck-align--${align}`);
16855
+ list.push(`ck-size--${props.size}`);
16850
16856
  return list;
16851
16857
  });
16852
16858
  return (_ctx, _cache) => {
@@ -16859,7 +16865,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16859
16865
  };
16860
16866
  }
16861
16867
  });
16862
- var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-37dee526"]]);
16868
+ var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-400ea765"]]);
16863
16869
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
16864
16870
  const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
16865
16871
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
@@ -16877,9 +16883,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16877
16883
  group: { type: String, default: void 0 },
16878
16884
  lineBreak: { type: [String, Number], default: "" },
16879
16885
  groupVertical: { type: String, default: void 0 },
16886
+ size: { type: String, default: "m", validator: validators.size },
16880
16887
  hideBorder: { type: Boolean, default: false },
16881
16888
  width: { type: String, default: void 0 },
16882
16889
  align: { type: String, validator: validators.align, default: void 0 },
16890
+ rounded: { type: Boolean, default: false },
16883
16891
  autoSelect: { type: Boolean, default: false }
16884
16892
  },
16885
16893
  emits: ["update:modelValue", "click", "input", "change"],
@@ -16896,6 +16904,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16896
16904
  emits("update:modelValue", val);
16897
16905
  }
16898
16906
  });
16907
+ const realLabelAlign = computed$2(() => {
16908
+ if (props.labelAlign)
16909
+ return props.labelAlign;
16910
+ if (props.align)
16911
+ return props.align;
16912
+ return "left";
16913
+ });
16899
16914
  const onClick = (event) => {
16900
16915
  if (props.autoSelect)
16901
16916
  event.target.select();
@@ -16923,6 +16938,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16923
16938
  list.push(`align--${props.align}`);
16924
16939
  if (props.hideBorder)
16925
16940
  list.push("no-border");
16941
+ if (props.rounded)
16942
+ list.push("rounded");
16943
+ if (props.size)
16944
+ list.push(`ck-input-size__${props.size}`);
16926
16945
  return list;
16927
16946
  });
16928
16947
  const computedStyle = computed$2(() => {
@@ -16950,14 +16969,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16950
16969
  }, [
16951
16970
  __props.label ? (openBlock(), createBlock(ckLabel, {
16952
16971
  key: 0,
16953
- align: __props.labelAlign,
16954
- for: "ck-input"
16972
+ align: unref$1(realLabelAlign),
16973
+ for: "ck-input",
16974
+ size: __props.size
16955
16975
  }, {
16956
16976
  default: withCtx(() => [
16957
16977
  createTextVNode(toDisplayString(__props.label), 1)
16958
16978
  ]),
16959
16979
  _: 1
16960
- }, 8, ["align"])) : createCommentVNode("", true),
16980
+ }, 8, ["align", "size"])) : createCommentVNode("", true),
16961
16981
  __props.icon ? (openBlock(), createBlock(ckIcon, {
16962
16982
  key: 1,
16963
16983
  class: "ck-input__icon-left",
@@ -16992,7 +17012,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16992
17012
  };
16993
17013
  }
16994
17014
  });
16995
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2f390047"]]);
17015
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-645f8505"]]);
16996
17016
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
16997
17017
  const _hoisted_1$d = { class: "ck-table__header-items" };
16998
17018
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
@@ -17089,7 +17109,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
17089
17109
  };
17090
17110
  }
17091
17111
  });
17092
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-614d407f"]]);
17112
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ad4db5f6"]]);
17093
17113
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
17094
17114
  const _hoisted_1$c = { class: "ck-table__pagination" };
17095
17115
  const _hoisted_2$7 = ["onClick"];