cleek 2.4.5 → 2.4.6

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
@@ -18792,6 +18792,15 @@ var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
18792
18792
  const _sfc_main$o = {};
18793
18793
  var CkTr = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", render2], ["__scopeId", "data-v-519cf874"]]);
18794
18794
  var functions = {
18795
+ getBorderColorValue(propBorderColor, cleekOptions2) {
18796
+ var _a;
18797
+ if (typeof propBorderColor !== "undefined")
18798
+ return propBorderColor;
18799
+ if (typeof ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.borderColor) !== "undefined") {
18800
+ return cleekOptions2.styles.borderColor;
18801
+ }
18802
+ return "";
18803
+ },
18795
18804
  getCleekOptions(getCurrentInstance2) {
18796
18805
  return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
18797
18806
  },
@@ -18809,15 +18818,12 @@ var functions = {
18809
18818
  return classList2;
18810
18819
  },
18811
18820
  getRoundedValue(propIsRounded, cleekOptions2) {
18812
- var _a, _b;
18821
+ var _a;
18813
18822
  if (typeof propIsRounded !== "undefined")
18814
18823
  return propIsRounded;
18815
18824
  if (typeof ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded) !== "undefined") {
18816
18825
  return cleekOptions2.styles.rounded;
18817
18826
  }
18818
- if (typeof ((_b = cleekOptions2 == null ? void 0 : cleekOptions2.button) == null ? void 0 : _b.rounded) !== "undefined") {
18819
- return cleekOptions2.button.rounded;
18820
- }
18821
18827
  return false;
18822
18828
  },
18823
18829
  getWidthByWidthBreaks(widthBreaks, windowWidth) {
@@ -22998,13 +23004,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22998
23004
  list.push("rounded");
22999
23005
  if (isClearBtnVisible.value)
23000
23006
  list.push("clear-able");
23001
- if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
23007
+ const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
23008
+ if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23002
23009
  list.push(`ck-input--border-color__${props.borderColor}`);
23003
23010
  }
23004
23011
  return list;
23005
23012
  });
23006
23013
  const computedStyleSelect = computed$2(() => {
23007
23014
  const list = [];
23015
+ const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
23016
+ if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23017
+ list.push(`ck-input--border-color__${props.borderColor}`);
23018
+ }
23008
23019
  if (props.borderColor && !functions.isColorTemplateVariable(props.borderColor)) {
23009
23020
  list.push({ "border-color": props.borderColor });
23010
23021
  }
@@ -23142,7 +23153,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23142
23153
  };
23143
23154
  }
23144
23155
  });
23145
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-1a65447e"]]);
23156
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-67207918"]]);
23146
23157
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23147
23158
  const _hoisted_1$5 = {
23148
23159
  key: 1,