cleek 1.6.3 → 1.7.2
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-styles/cleek-mixins.styl +83 -0
- package/dist/cleek.es.js +19 -11
- package/dist/cleek.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
margin-x(margin)
|
|
2
|
+
margin-right margin
|
|
3
|
+
margin-left margin
|
|
4
|
+
margin-y(margin)
|
|
5
|
+
margin-top margin
|
|
6
|
+
margin-bottom margin
|
|
7
|
+
padding-x(padding)
|
|
8
|
+
padding-right padding
|
|
9
|
+
padding-left padding
|
|
10
|
+
padding-y(padding)
|
|
11
|
+
padding-top padding
|
|
12
|
+
padding-bottom padding
|
|
13
|
+
border-x(width, type, color)
|
|
14
|
+
border-left width type color
|
|
15
|
+
border-right width type color
|
|
16
|
+
border-y(width, type, color)
|
|
17
|
+
border-top width type color
|
|
18
|
+
border-bottom width type color
|
|
19
|
+
border-radius-left(radius)
|
|
20
|
+
border-top-left-radius radius
|
|
21
|
+
border-bottom-left-radius radius
|
|
22
|
+
border-radius-right(radius)
|
|
23
|
+
border-top-right-radius radius
|
|
24
|
+
border-bottom-right-radius radius
|
|
25
|
+
border-radius-top(radius)
|
|
26
|
+
border-top-left-radius radius
|
|
27
|
+
border-top-right-radius radius
|
|
28
|
+
border-radius-bottom(radius)
|
|
29
|
+
border-bottom-left-radius radius
|
|
30
|
+
border-bottom-right-radius radius
|
|
31
|
+
width-height(val)
|
|
32
|
+
width val
|
|
33
|
+
height val
|
|
34
|
+
min-max-width(val)
|
|
35
|
+
min-width val
|
|
36
|
+
max-width val
|
|
37
|
+
min-max-height(val)
|
|
38
|
+
min-height val
|
|
39
|
+
max-height val
|
|
40
|
+
margin-padding(val)
|
|
41
|
+
margin val
|
|
42
|
+
padding val
|
|
43
|
+
margin-padding-left(val)
|
|
44
|
+
margin-left val
|
|
45
|
+
padding-left val
|
|
46
|
+
margin-padding-right(val)
|
|
47
|
+
margin-right val
|
|
48
|
+
padding-right val
|
|
49
|
+
margin-padding-top(val)
|
|
50
|
+
margin-top val
|
|
51
|
+
padding-top val
|
|
52
|
+
margin-padding-bottom(val)
|
|
53
|
+
margin-bottom val
|
|
54
|
+
padding-bottom val
|
|
55
|
+
|
|
56
|
+
my-box-shadow(val = 0.05, color = black)
|
|
57
|
+
box-shadow 0 4px 20px 0 rgba(color, val)
|
|
58
|
+
// flex shortcuts
|
|
59
|
+
justify-align-center()
|
|
60
|
+
align-items center
|
|
61
|
+
justify-content center
|
|
62
|
+
flex-all-center()
|
|
63
|
+
display flex
|
|
64
|
+
justify-align-center()
|
|
65
|
+
inline-flex-all-center()
|
|
66
|
+
display inline-flex
|
|
67
|
+
justify-align-center()
|
|
68
|
+
|
|
69
|
+
//
|
|
70
|
+
//
|
|
71
|
+
//
|
|
72
|
+
//
|
|
73
|
+
//
|
|
74
|
+
// rs components
|
|
75
|
+
// rs-components-basic-input(heightDiference = 2px)
|
|
76
|
+
// width 100%
|
|
77
|
+
// border rsComponentsBorder
|
|
78
|
+
// border-radius rsComponentsBorderRadius
|
|
79
|
+
// min-height rsComponentsHeight + heightDiference
|
|
80
|
+
// background-color white
|
|
81
|
+
// &:focus-within
|
|
82
|
+
// border-color $primary
|
|
83
|
+
// my-box-shadow()
|
package/dist/cleek.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode,
|
|
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-
|
|
11259
|
+
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", render$i], ["__scopeId", "data-v-77d9963a"]]);
|
|
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");
|
|
@@ -11309,7 +11316,7 @@ const _sfc_main$g = {
|
|
|
11309
11316
|
classList2.push(`ck-component__border-color--${this.color}`);
|
|
11310
11317
|
}
|
|
11311
11318
|
}
|
|
11312
|
-
if (
|
|
11319
|
+
if (!this.$slots.default) {
|
|
11313
11320
|
if (this.icon || this.iconRight) {
|
|
11314
11321
|
if (!(this.icon && this.iconRight))
|
|
11315
11322
|
classList2.push("just-icon");
|
|
@@ -11328,7 +11335,7 @@ const _sfc_main$g = {
|
|
|
11328
11335
|
}
|
|
11329
11336
|
}
|
|
11330
11337
|
};
|
|
11331
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$h], ["__scopeId", "data-v-
|
|
11338
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$h], ["__scopeId", "data-v-79498e51"]]);
|
|
11332
11339
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-c7841510"), n = n(), popScopeId(), n);
|
|
11333
11340
|
const _hoisted_1$d = ["disabled", "checked"];
|
|
11334
11341
|
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
@@ -11423,6 +11430,7 @@ const _sfc_main$e = {
|
|
|
11423
11430
|
height: { type: String, default: "" },
|
|
11424
11431
|
zoom: { type: Boolean, default: false },
|
|
11425
11432
|
zoomTitle: { type: String, default: "" },
|
|
11433
|
+
hasBorder: { type: Boolean, default: false },
|
|
11426
11434
|
radius: { type: String, default: "" },
|
|
11427
11435
|
borderColor: { type: String, default: "" }
|
|
11428
11436
|
},
|
|
@@ -11440,7 +11448,7 @@ const _sfc_main$e = {
|
|
|
11440
11448
|
}
|
|
11441
11449
|
if (size)
|
|
11442
11450
|
classList2.push(`ck-img__size--${size}`);
|
|
11443
|
-
if (this.
|
|
11451
|
+
if (this.hasBorder) {
|
|
11444
11452
|
classList2.push("ck-img__has-border");
|
|
11445
11453
|
if (functions$1.isColorTemplateVariable(this.realBorderColor)) {
|
|
11446
11454
|
classList2.push(`ck-component__border-color--${this.realBorderColor}`);
|
|
@@ -11458,7 +11466,7 @@ const _sfc_main$e = {
|
|
|
11458
11466
|
}
|
|
11459
11467
|
if (this.radius)
|
|
11460
11468
|
styleList.push({ "border-radius": this.radius });
|
|
11461
|
-
if (this.
|
|
11469
|
+
if (this.hasBorder) {
|
|
11462
11470
|
if (!functions$1.isColorTemplateVariable(this.realBorderColor)) {
|
|
11463
11471
|
styleList.push({ "border-color": this.realBorderColor });
|
|
11464
11472
|
}
|
|
@@ -11496,7 +11504,7 @@ const _sfc_main$e = {
|
|
|
11496
11504
|
}
|
|
11497
11505
|
}
|
|
11498
11506
|
};
|
|
11499
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", render$f], ["__scopeId", "data-v-
|
|
11507
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", render$f], ["__scopeId", "data-v-38b603bf"]]);
|
|
11500
11508
|
const _hoisted_1$b = ["for"];
|
|
11501
11509
|
function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11502
11510
|
return openBlock(), createElementBlock("label", {
|
|
@@ -12580,7 +12588,7 @@ const _sfc_main$9 = {
|
|
|
12580
12588
|
}
|
|
12581
12589
|
};
|
|
12582
12590
|
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$a], ["__scopeId", "data-v-7751c2da"]]);
|
|
12583
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
12591
|
+
const _withScopeId = (n) => (pushScopeId("data-v-c00899f6"), n = n(), popScopeId(), n);
|
|
12584
12592
|
const _hoisted_1$6 = ["disabled"];
|
|
12585
12593
|
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
12586
12594
|
const _hoisted_3$1 = {
|
|
@@ -12653,7 +12661,7 @@ const _sfc_main$8 = {
|
|
|
12653
12661
|
}
|
|
12654
12662
|
}
|
|
12655
12663
|
};
|
|
12656
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", render$9], ["__scopeId", "data-v-
|
|
12664
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", render$9], ["__scopeId", "data-v-c00899f6"]]);
|
|
12657
12665
|
const _hoisted_1$5 = { class: "ck-switch-options__container-exterior" };
|
|
12658
12666
|
const _hoisted_2$1 = ["onClick"];
|
|
12659
12667
|
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|