cleek 1.7.0 → 1.7.1

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
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode, normalizeClass, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, normalizeStyle, withCtx, createTextVNode, toDisplayString, withDirectives, vModelText, createVNode, Fragment, renderList, vModelRadio, vModelCheckbox } from "vue";
1
+ import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, normalizeStyle, withCtx, createTextVNode, toDisplayString, withDirectives, vModelText, createVNode, Fragment, renderList, vModelRadio, vModelCheckbox } from "vue";
2
2
  var validators = {
3
3
  size: (type) => {
4
4
  return ["", "xs", "s", "m", "l", "xl"].includes(type);
@@ -11183,7 +11183,7 @@ defineComponent({
11183
11183
  function render$i(_ctx, _cache, $props, $setup, $data, $options) {
11184
11184
  const _component_font_awesome_icon = resolveComponent("font-awesome-icon");
11185
11185
  return openBlock(), createElementBlock("div", {
11186
- class: "ck-icon",
11186
+ class: normalizeClass(["ck-icon", $options.computedClass]),
11187
11187
  onClick: _cache[0] || (_cache[0] = ($event) => $options.onClick($event))
11188
11188
  }, [
11189
11189
  $options.computediconPack === "font-awesome" ? (openBlock(), createBlock(_component_font_awesome_icon, {
@@ -11199,7 +11199,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
11199
11199
  "fixed-width": $props.fixedWidth,
11200
11200
  "swap-opacity": $props.swapOpacity
11201
11201
  }, null, 8, ["icon", "size", "rotation", "flip", "pull", "spin", "pulse", "inverse", "fixed-width", "swap-opacity"])) : createCommentVNode("", true)
11202
- ]);
11202
+ ], 2);
11203
11203
  }
11204
11204
  var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
11205
11205
  var _export_sfc = (sfc, props) => {
@@ -11216,6 +11216,7 @@ const _sfc_main$h = {
11216
11216
  },
11217
11217
  props: {
11218
11218
  icon: { type: [String, Array], default: "" },
11219
+ color: { type: String, default: "" },
11219
11220
  iconPack: { type: String, default: "" },
11220
11221
  size: { type: String, default: null },
11221
11222
  rotation: { type: String, default: null },
@@ -11236,6 +11237,12 @@ const _sfc_main$h = {
11236
11237
  if (this.iconPack === "feather")
11237
11238
  return this.iconPack;
11238
11239
  return defaultPackage;
11240
+ },
11241
+ computedClass() {
11242
+ const classList2 = [];
11243
+ if (this.color)
11244
+ classList2.push(`ck-component__color--${this.color}`);
11245
+ return classList2;
11239
11246
  }
11240
11247
  },
11241
11248
  created() {
@@ -11249,7 +11256,7 @@ const _sfc_main$h = {
11249
11256
  }
11250
11257
  }
11251
11258
  };
11252
- var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", render$i], ["__scopeId", "data-v-4026c04e"]]);
11259
+ var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", render$i], ["__scopeId", "data-v-d73d5cbc"]]);
11253
11260
  const _hoisted_1$e = ["title", "aria-label", "disabled"];
11254
11261
  function render$h(_ctx, _cache, $props, $setup, $data, $options) {
11255
11262
  const _component_ck_icon = resolveComponent("ck-icon");