cleek 2.0.6 → 2.0.7

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
@@ -11207,7 +11207,7 @@ defineComponent({
11207
11207
  };
11208
11208
  }
11209
11209
  });
11210
- function render$b(_ctx, _cache, $props, $setup, $data, $options) {
11210
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
11211
11211
  const _component_font_awesome_icon = resolveComponent("font-awesome-icon");
11212
11212
  return openBlock(), createElementBlock("div", {
11213
11213
  class: normalizeClass(["ck-icon", $options.computedClass]),
@@ -11283,9 +11283,9 @@ const _sfc_main$l = {
11283
11283
  }
11284
11284
  }
11285
11285
  };
11286
- var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", render$b], ["__scopeId", "data-v-77d9963a"]]);
11286
+ var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", render$a], ["__scopeId", "data-v-77d9963a"]]);
11287
11287
  const _hoisted_1$i = ["title", "aria-label", "disabled"];
11288
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
11288
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
11289
11289
  const _component_ck_icon = resolveComponent("ck-icon");
11290
11290
  return openBlock(), createElementBlock("button", {
11291
11291
  type: "button",
@@ -11368,7 +11368,7 @@ const _sfc_main$k = {
11368
11368
  }
11369
11369
  }
11370
11370
  };
11371
- var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", render$a], ["__scopeId", "data-v-a687842a"]]);
11371
+ var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", render$9], ["__scopeId", "data-v-a687842a"]]);
11372
11372
  const _withScopeId$2 = (n) => (pushScopeId("data-v-69dfa524"), n = n(), popScopeId(), n);
11373
11373
  const _hoisted_1$h = ["disabled", "checked"];
11374
11374
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
@@ -11376,7 +11376,7 @@ const _hoisted_3$5 = {
11376
11376
  key: 0,
11377
11377
  class: "c-Checkbox__label"
11378
11378
  };
11379
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
11379
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
11380
11380
  return openBlock(), createElementBlock("label", mergeProps({ class: "ck-checkbox" }, $options.checkboxAttributes, {
11381
11381
  onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
11382
11382
  }, ["prevent"]), ["space"])),
@@ -11436,7 +11436,7 @@ const _sfc_main$j = {
11436
11436
  }
11437
11437
  }
11438
11438
  };
11439
- var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", render$9], ["__scopeId", "data-v-69dfa524"]]);
11439
+ var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", render$8], ["__scopeId", "data-v-69dfa524"]]);
11440
11440
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
11441
11441
  const _hoisted_1$g = ["color"];
11442
11442
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
@@ -11592,7 +11592,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11592
11592
  });
11593
11593
  var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-53d78f2e"]]);
11594
11594
  const _hoisted_1$e = ["for"];
11595
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
11595
+ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
11596
11596
  return openBlock(), createElementBlock("label", {
11597
11597
  class: normalizeClass(["ck-label", $options.computedClass]),
11598
11598
  for: $props.for
@@ -11618,7 +11618,7 @@ const _sfc_main$g = {
11618
11618
  }
11619
11619
  }
11620
11620
  };
11621
- var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$8], ["__scopeId", "data-v-4b8b9ab4"]]);
11621
+ var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$7], ["__scopeId", "data-v-4b8b9ab4"]]);
11622
11622
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
11623
11623
  const _hoisted_1$d = { class: "ck-input" };
11624
11624
  const _hoisted_2$7 = ["type", "placeholder", "id", "disabled"];
@@ -11734,7 +11734,7 @@ const _hoisted_1$c = {
11734
11734
  };
11735
11735
  const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
11736
11736
  const _hoisted_3$4 = { class: "ck-popup__slot-header" };
11737
- const _hoisted_4$2 = {
11737
+ const _hoisted_4$3 = {
11738
11738
  key: 0,
11739
11739
  class: "ck-popup__title"
11740
11740
  };
@@ -11800,7 +11800,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
11800
11800
  }, ["stop"]))
11801
11801
  }, [
11802
11802
  createElementVNode("div", _hoisted_3$4, [
11803
- __props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$2, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
11803
+ __props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$3, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
11804
11804
  renderSlot(_ctx.$slots, "header", { class: "ml-3" }),
11805
11805
  !__props.notCloseBtn ? (openBlock(), createBlock(ckIcon, {
11806
11806
  key: 1,
@@ -11845,11 +11845,11 @@ const _withScopeId$1 = (n) => (pushScopeId("data-v-73a891e8"), n = n(), popScope
11845
11845
  const _hoisted_1$b = ["onKeyup"];
11846
11846
  const _hoisted_2$5 = ["name", "value", "disabled"];
11847
11847
  const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
11848
- const _hoisted_4$1 = {
11848
+ const _hoisted_4$2 = {
11849
11849
  key: 0,
11850
11850
  class: "c-Radio__label"
11851
11851
  };
11852
- function render$7(_ctx, _cache, $props, $setup, $data, $options) {
11852
+ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
11853
11853
  return openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (item, index) => {
11854
11854
  return openBlock(), createElementBlock("label", mergeProps({
11855
11855
  key: `radio-${index}`,
@@ -11874,7 +11874,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
11874
11874
  [vModelRadio, $options.value]
11875
11875
  ]),
11876
11876
  _hoisted_3$3,
11877
- item.label ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(item.label), 1)) : createCommentVNode("", true)
11877
+ item.label ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString(item.label), 1)) : createCommentVNode("", true)
11878
11878
  ], 16, _hoisted_1$b);
11879
11879
  }), 128);
11880
11880
  }
@@ -11911,7 +11911,7 @@ const _sfc_main$d = {
11911
11911
  }
11912
11912
  }
11913
11913
  };
11914
- var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", render$7], ["__scopeId", "data-v-73a891e8"]]);
11914
+ var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", render$6], ["__scopeId", "data-v-73a891e8"]]);
11915
11915
  var qmApi = {};
11916
11916
  var qmArray = {
11917
11917
  arrayToText(arr, key = null) {
@@ -12338,80 +12338,95 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
12338
12338
  }
12339
12339
  });
12340
12340
  var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-31af160a"]]);
12341
- const _withScopeId = (n) => (pushScopeId("data-v-022b9f3c"), n = n(), popScopeId(), n);
12341
+ var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
12342
+ const _withScopeId = (n) => (pushScopeId("data-v-6a563501"), n = n(), popScopeId(), n);
12342
12343
  const _hoisted_1$9 = ["disabled"];
12343
- const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
12344
- const _hoisted_3$2 = {
12344
+ const _hoisted_2$4 = { class: "ck-switch__slider-container" };
12345
+ const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
12346
+ const _hoisted_4$1 = {
12345
12347
  key: 0,
12346
12348
  class: "ck-switch__content"
12347
12349
  };
12348
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
12349
- return openBlock(), createElementBlock("label", mergeProps({ class: "ck-switch" }, $options.computedAttributes, {
12350
- class: $options.computedClass,
12351
- onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {
12352
- }, ["prevent"]), ["space"])),
12353
- onKeyup: [
12354
- _cache[3] || (_cache[3] = withKeys(($event) => $options.onTrigger(), ["enter"])),
12355
- _cache[4] || (_cache[4] = withKeys(($event) => $options.onTrigger(), ["space"]))
12356
- ]
12357
- }), [
12358
- withDirectives(createElementVNode("input", {
12359
- class: "ck-switch__input",
12360
- "aria-hidden": "true",
12361
- type: "checkbox",
12362
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value = $event),
12363
- disabled: $props.disabled,
12364
- onClick: _cache[1] || (_cache[1] = ($event) => $options.onTrigger())
12365
- }, null, 8, _hoisted_1$9), [
12366
- [vModelCheckbox, $options.value]
12367
- ]),
12368
- _hoisted_2$4,
12369
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$2, [
12370
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
12371
- ])) : createCommentVNode("", true)
12372
- ], 16);
12373
- }
12374
- var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
12375
- const _sfc_main$b = {
12376
- name: "Switch",
12350
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
12377
12351
  props: {
12378
12352
  modelValue: { type: Boolean, default: false },
12379
12353
  disabled: { type: Boolean, default: false },
12380
12354
  outlined: { type: Boolean, default: false },
12381
- squared: { type: Boolean, default: false }
12355
+ squared: { type: Boolean, default: false },
12356
+ icon: { type: String, default: void 0 },
12357
+ iconPack: { type: String, default: void 0 }
12382
12358
  },
12383
12359
  emits: ["update:modelValue"],
12384
- computed: {
12385
- value: {
12360
+ setup(__props, { emit: emits }) {
12361
+ const props = __props;
12362
+ const value = computed({
12386
12363
  get() {
12387
- return this.modelValue;
12364
+ return props.modelValue;
12388
12365
  },
12389
12366
  set(val) {
12390
- this.$emit("update:modelValue", val);
12367
+ emits("update:modelValue", val);
12391
12368
  }
12392
- },
12393
- computedClass() {
12369
+ });
12370
+ const computedClass = computed(() => {
12394
12371
  const list = [];
12395
- if (this.squared)
12372
+ if (props.squared)
12396
12373
  list.push("is-squared");
12397
- if (this.outlined)
12374
+ if (props.outlined)
12398
12375
  list.push("is-outlined");
12399
12376
  return list;
12400
- },
12401
- computedAttributes() {
12377
+ });
12378
+ const computedAttributes = computed(() => {
12402
12379
  return {
12403
- "aria-disabled": this.disabled,
12404
- tabindex: this.disabled ? void 0 : "0"
12380
+ "aria-disabled": props.disabled,
12381
+ tabindex: props.disabled ? void 0 : "0"
12405
12382
  };
12383
+ });
12384
+ function onTrigger2() {
12385
+ value.value = !value.value;
12406
12386
  }
12407
- },
12408
- methods: {
12409
- onTrigger() {
12410
- this.value = !this.value;
12411
- }
12387
+ return (_ctx, _cache) => {
12388
+ return openBlock(), createElementBlock("label", mergeProps({ class: "ck-switch" }, unref(computedAttributes), {
12389
+ class: unref(computedClass),
12390
+ onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {
12391
+ }, ["prevent"]), ["space"])),
12392
+ onKeyup: [
12393
+ _cache[3] || (_cache[3] = withKeys(($event) => onTrigger2(), ["enter"])),
12394
+ _cache[4] || (_cache[4] = withKeys(($event) => onTrigger2(), ["space"]))
12395
+ ]
12396
+ }), [
12397
+ withDirectives(createElementVNode("input", {
12398
+ class: "ck-switch__input",
12399
+ "aria-hidden": "true",
12400
+ type: "checkbox",
12401
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
12402
+ disabled: __props.disabled,
12403
+ onClick: _cache[1] || (_cache[1] = ($event) => onTrigger2())
12404
+ }, null, 8, _hoisted_1$9), [
12405
+ [vModelCheckbox, unref(value)]
12406
+ ]),
12407
+ createElementVNode("div", _hoisted_2$4, [
12408
+ _hoisted_3$2,
12409
+ __props.icon && unref(value) ? (openBlock(), createBlock(ckIcon, {
12410
+ key: 0,
12411
+ class: "ck-switch__icon-left",
12412
+ icon: __props.icon,
12413
+ "icon-pack": __props.iconPack
12414
+ }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
12415
+ __props.icon && !unref(value) ? (openBlock(), createBlock(ckIcon, {
12416
+ key: 1,
12417
+ class: "ck-switch__icon-right",
12418
+ icon: __props.icon,
12419
+ "icon-pack": __props.iconPack
12420
+ }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
12421
+ ]),
12422
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
12423
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
12424
+ ])) : createCommentVNode("", true)
12425
+ ], 16);
12426
+ };
12412
12427
  }
12413
- };
12414
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", render$6], ["__scopeId", "data-v-022b9f3c"]]);
12428
+ });
12429
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-6a563501"]]);
12415
12430
  const _hoisted_1$8 = { class: "ck-switch-options__container-exterior" };
12416
12431
  const _hoisted_2$3 = ["onClick"];
12417
12432
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {