cleek 2.1.11 → 2.1.12

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
@@ -12631,22 +12631,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
12631
12631
  }
12632
12632
  });
12633
12633
  function onCancel() {
12634
- console.log("onCancel");
12635
12634
  emits("cancel");
12636
12635
  if (!props.preventCloseOnCancel)
12637
12636
  isActive.value = false;
12638
12637
  }
12639
12638
  function onAccept() {
12640
- console.log("onAccept");
12641
12639
  emits("accept");
12642
12640
  }
12643
12641
  function onBgClick() {
12644
- console.log("onBgClick");
12645
12642
  if (props.notCloseByBg)
12646
12643
  return;
12647
- console.log("isActive.value", isActive.value);
12648
12644
  isActive.value = false;
12649
- console.log("isActive.value", isActive.value);
12650
12645
  }
12651
12646
  return (_ctx, _cache) => {
12652
12647
  return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
@@ -13199,7 +13194,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13199
13194
  });
13200
13195
  var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-31af160a"]]);
13201
13196
  var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
13202
- const _withScopeId = (n) => (pushScopeId("data-v-35213eec"), n = n(), popScopeId(), n);
13197
+ const _withScopeId = (n) => (pushScopeId("data-v-b6a4dfaa"), n = n(), popScopeId(), n);
13203
13198
  const _hoisted_1$9 = ["disabled"];
13204
13199
  const _hoisted_2$4 = { class: "ck-switch__slider-container" };
13205
13200
  const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
@@ -13213,6 +13208,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13213
13208
  disabled: { type: Boolean, default: false },
13214
13209
  outlined: { type: Boolean, default: false },
13215
13210
  squared: { type: Boolean, default: false },
13211
+ size: { type: String, default: "m" },
13216
13212
  icon: { type: String, default: void 0 },
13217
13213
  iconPack: { type: String, default: void 0 }
13218
13214
  },
@@ -13233,6 +13229,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13233
13229
  list.push("is-squared");
13234
13230
  if (props.outlined)
13235
13231
  list.push("is-outlined");
13232
+ let size = "s";
13233
+ if (props.size === "m" || props.size === "l")
13234
+ size = props.size;
13235
+ list.push(`ck-switch--size-${size}`);
13236
13236
  return list;
13237
13237
  });
13238
13238
  const computedAttributes = computed$2(() => {
@@ -13241,6 +13241,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13241
13241
  tabindex: props.disabled ? void 0 : "0"
13242
13242
  };
13243
13243
  });
13244
+ const iconClass = computed$2(() => {
13245
+ const list = [];
13246
+ if (props.size && props.size !== "m") {
13247
+ list.push(`ck-switch__icon-size--${props.size}`);
13248
+ }
13249
+ return list;
13250
+ });
13244
13251
  function onTrigger2() {
13245
13252
  value.value = !value.value;
13246
13253
  }
@@ -13268,16 +13275,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13268
13275
  _hoisted_3$2,
13269
13276
  __props.icon && unref$1(value) ? (openBlock(), createBlock(ckIcon, {
13270
13277
  key: 0,
13271
- class: "ck-switch__icon-left",
13278
+ class: normalizeClass(["ck-switch__icon-left", unref$1(iconClass)]),
13272
13279
  icon: __props.icon,
13273
13280
  "icon-pack": __props.iconPack
13274
- }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
13281
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true),
13275
13282
  __props.icon && !unref$1(value) ? (openBlock(), createBlock(ckIcon, {
13276
13283
  key: 1,
13277
- class: "ck-switch__icon-right",
13284
+ class: normalizeClass(["ck-switch__icon-right", unref$1(iconClass)]),
13278
13285
  icon: __props.icon,
13279
13286
  "icon-pack": __props.iconPack
13280
- }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
13287
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true)
13281
13288
  ]),
13282
13289
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
13283
13290
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -13286,7 +13293,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13286
13293
  };
13287
13294
  }
13288
13295
  });
13289
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-35213eec"]]);
13296
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b6a4dfaa"]]);
13290
13297
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
13291
13298
  const _hoisted_1$8 = { class: "ck-switch-options__container-exterior" };
13292
13299
  const _hoisted_2$3 = ["onClick"];