cleek 2.3.9 → 2.3.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 +7 -19
- package/dist/cleek.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -21,12 +21,7 @@ import { defineComponent, ref, openBlock, createElementBlock, createElementVNode
|
|
|
21
21
|
var defaultCleekOptions = {
|
|
22
22
|
colors: {
|
|
23
23
|
primary: "#559933",
|
|
24
|
-
secondary: "#559933"
|
|
25
|
-
success: "#559933",
|
|
26
|
-
warning: "#559933",
|
|
27
|
-
danger: "#559933",
|
|
28
|
-
dark: "#559933",
|
|
29
|
-
light: "#559933"
|
|
24
|
+
secondary: "#559933"
|
|
30
25
|
},
|
|
31
26
|
button: {
|
|
32
27
|
type: "outlined"
|
|
@@ -13967,7 +13962,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13967
13962
|
});
|
|
13968
13963
|
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6217135d"]]);
|
|
13969
13964
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13970
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
13965
|
+
const _withScopeId = (n) => (pushScopeId("data-v-7e2f20c4"), n = n(), popScopeId(), n);
|
|
13971
13966
|
const _hoisted_1$3 = ["disabled"];
|
|
13972
13967
|
const _hoisted_2$1 = { class: "ck-switch__slider-container" };
|
|
13973
13968
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
@@ -13981,7 +13976,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13981
13976
|
disabled: { type: Boolean, default: false },
|
|
13982
13977
|
outlined: { type: Boolean, default: false },
|
|
13983
13978
|
squared: { type: Boolean, default: false },
|
|
13984
|
-
size: { type: String, default: "
|
|
13979
|
+
size: { type: String, default: "s" },
|
|
13985
13980
|
icon: { type: String, default: void 0 },
|
|
13986
13981
|
iconPack: { type: String, default: void 0 }
|
|
13987
13982
|
},
|
|
@@ -14003,7 +13998,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
14003
13998
|
if (props.outlined)
|
|
14004
13999
|
list.push("is-outlined");
|
|
14005
14000
|
let size = "s";
|
|
14006
|
-
if (props.size === "m" || props.size === "l")
|
|
14001
|
+
if (props.size === "xs" || props.size === "m" || props.size === "l")
|
|
14007
14002
|
size = props.size;
|
|
14008
14003
|
list.push(`ck-switch--size-${size}`);
|
|
14009
14004
|
return list;
|
|
@@ -14066,7 +14061,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
14066
14061
|
};
|
|
14067
14062
|
}
|
|
14068
14063
|
});
|
|
14069
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
14064
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-7e2f20c4"]]);
|
|
14070
14065
|
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14071
14066
|
const _hoisted_1$2 = { class: "ck-switch-options__container-exterior" };
|
|
14072
14067
|
const _hoisted_2 = ["onClick"];
|
|
@@ -16814,25 +16809,18 @@ function setRootColors(colors) {
|
|
|
16814
16809
|
}
|
|
16815
16810
|
}
|
|
16816
16811
|
function getCleekOptions(userOptions) {
|
|
16817
|
-
console.log("---getCleekOptions---");
|
|
16818
|
-
console.log("userOptions", userOptions);
|
|
16819
|
-
console.log("defaultCleekOptions", defaultCleekOptions);
|
|
16820
16812
|
const options = defaultCleekOptions;
|
|
16821
16813
|
for (const category in defaultCleekOptions) {
|
|
16822
|
-
console.log("category", category);
|
|
16823
|
-
console.log("userOptions[category]", userOptions[category]);
|
|
16824
16814
|
if (userOptions[category]) {
|
|
16825
16815
|
for (const key in userOptions[category]) {
|
|
16826
|
-
console.log("key", key);
|
|
16827
16816
|
const value = userOptions[category][key];
|
|
16828
|
-
console.log("value", value);
|
|
16829
16817
|
if (value)
|
|
16830
16818
|
options[category][key] = value;
|
|
16831
16819
|
}
|
|
16832
16820
|
}
|
|
16833
16821
|
}
|
|
16834
|
-
setRootColors(options);
|
|
16835
|
-
console.log("
|
|
16822
|
+
setRootColors(options.colors);
|
|
16823
|
+
console.log("finalOptions", options);
|
|
16836
16824
|
return options;
|
|
16837
16825
|
}
|
|
16838
16826
|
const install = function installCleek(app, options) {
|