cleek 2.6.112 → 2.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.
@@ -84,6 +84,10 @@ unselectable()
84
84
  -webkit-user-select none
85
85
  -o-user-select none
86
86
 
87
+ dynamic-rgba(rgb-variable, opacity = 1)
88
+ // return rgba as a string so it doesn't get interpolated by stylus compiler
89
+ s('rgba(var(%s), %s)', rgb-variable, opacity)
90
+
87
91
  //
88
92
  //
89
93
  //
package/dist/cleek.es.js CHANGED
@@ -81750,6 +81750,10 @@ var hooks9 = {
81750
81750
  return true;
81751
81751
  if (color === "light")
81752
81752
  return true;
81753
+ if (color === "primary-light")
81754
+ return true;
81755
+ if (color === "secondary-light")
81756
+ return true;
81753
81757
  return false;
81754
81758
  },
81755
81759
  isColumnDisplayed(column) {
@@ -89870,7 +89874,7 @@ const _sfc_main$b = defineComponent$2({
89870
89874
  style: normalizeStyle$2(computedStyle.value),
89871
89875
  onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
89872
89876
  }, [
89873
- _ctx.icon && !_ctx.iconRight ? (openBlock$2(), createBlock$2(CkIcon, {
89877
+ _ctx.icon ? (openBlock$2(), createBlock$2(CkIcon, {
89874
89878
  key: 0,
89875
89879
  class: "pr-2",
89876
89880
  icon: _ctx.icon,
@@ -89879,17 +89883,17 @@ const _sfc_main$b = defineComponent$2({
89879
89883
  createElementVNode("span", null, [
89880
89884
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
89881
89885
  ]),
89882
- _ctx.icon && _ctx.iconRight ? (openBlock$2(), createBlock$2(CkIcon, {
89886
+ _ctx.iconRight ? (openBlock$2(), createBlock$2(CkIcon, {
89883
89887
  key: 1,
89884
89888
  class: "pl-2",
89885
- icon: _ctx.icon,
89889
+ icon: _ctx.iconRight,
89886
89890
  "icon-pack": _ctx.iconPack
89887
89891
  }, null, 8, ["icon", "icon-pack"])) : createCommentVNode$2("", true)
89888
89892
  ], 14, _hoisted_1$a);
89889
89893
  };
89890
89894
  }
89891
89895
  });
89892
- var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-2ac3d820"]]);
89896
+ var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1f111567"]]);
89893
89897
  var ckDiv_vue_vue_type_style_index_0_lang = "";
89894
89898
  const _sfc_main$a = defineComponent$2({
89895
89899
  __name: "ck-div",
@@ -91184,11 +91188,20 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
91184
91188
  library$1$2.add(icons$2);
91185
91189
  library$1$2.add(icons$1);
91186
91190
  library$1$2.add(icons);
91191
+ function hexToRgb(hex) {
91192
+ hex = hex.replace(/^#/, "");
91193
+ const r = parseInt(hex.substring(0, 2), 16);
91194
+ const g2 = parseInt(hex.substring(2, 4), 16);
91195
+ const b4 = parseInt(hex.substring(4, 6), 16);
91196
+ return { r, g: g2, b: b4 };
91197
+ }
91187
91198
  function setRootColors(colors) {
91188
- var r = document.querySelector(":root");
91199
+ const r = document.querySelector(":root");
91189
91200
  for (const key in colors) {
91190
- const colorValue = colors[key];
91191
- r.style.setProperty(`--${key}`, colorValue);
91201
+ const colorHex = colors[key];
91202
+ const rgbColor = hexToRgb(colors[key]);
91203
+ r.style.setProperty(`--${key}`, colorHex);
91204
+ r.style.setProperty(`--${key}-rgb`, `${rgbColor.r}, ${rgbColor.g}, ${rgbColor.b}`);
91192
91205
  }
91193
91206
  }
91194
91207
  function getCleekOptions(userOptions) {