cleek 1.1.3 → 1.1.4
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.esm.js +5 -25
- package/dist/cleek.min.js +1 -1
- package/dist/cleek.ssr.js +4 -26
- package/dist/styles/ck-button.css +132 -0
- package/dist/styles/globalStyle.css +110 -0
- package/dist/styles/templateStyle.css +0 -0
- package/dist/styles/test.css +3 -0
- package/package.json +3 -3
- package/src/lib-components/ck-button.vue +12 -12
package/dist/cleek.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString,
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, normalizeClass, renderSlot } from 'vue';
|
|
2
2
|
|
|
3
3
|
var script$1 = /*#__PURE__*/defineComponent({
|
|
4
4
|
name: 'CleekSample',
|
|
@@ -200,37 +200,17 @@ const _hoisted_1 = {
|
|
|
200
200
|
class: "ck-button"
|
|
201
201
|
};
|
|
202
202
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
const _component_ck_icon = resolveComponent("ck-icon");
|
|
206
|
-
|
|
207
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [$props.label ? (openBlock(), createBlock(_component_ck_label, {
|
|
208
|
-
key: 0,
|
|
209
|
-
"label-align": "labelAlign"
|
|
210
|
-
}, {
|
|
211
|
-
default: withCtx(() => [createTextVNode(toDisplayString($props.label), 1)]),
|
|
212
|
-
_: 1
|
|
213
|
-
})) : createCommentVNode("", true), createElementVNode("button", {
|
|
203
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("button", {
|
|
214
204
|
class: normalizeClass($options.computedClass),
|
|
215
205
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event))
|
|
216
|
-
}, [
|
|
217
|
-
key: 0,
|
|
218
|
-
class: "ck-button--icon-left",
|
|
219
|
-
icon: $props.icon,
|
|
220
|
-
"icon-package": _ctx.iconPackage
|
|
221
|
-
}, null, 8, ["icon", "icon-package"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), _ctx.iconRight ? (openBlock(), createBlock(_component_ck_icon, {
|
|
222
|
-
key: 1,
|
|
223
|
-
class: "ck-button--icon-right",
|
|
224
|
-
icon: _ctx.iconRight,
|
|
225
|
-
"icon-package": _ctx.iconPackage
|
|
226
|
-
}, null, 8, ["icon", "icon-package"])) : createCommentVNode("", true)], 2)]);
|
|
206
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)]);
|
|
227
207
|
}
|
|
228
208
|
|
|
229
|
-
var css_248z = "\n@import url('
|
|
209
|
+
var css_248z = "\n@import url('../../dist/styles/ck-button.css');\r\n";
|
|
230
210
|
styleInject(css_248z);
|
|
231
211
|
|
|
232
212
|
script.render = render;
|
|
233
|
-
script.__scopeId = "data-v-
|
|
213
|
+
script.__scopeId = "data-v-e00f6d2c";
|
|
234
214
|
|
|
235
215
|
/* eslint-disable import/prefer-default-export */
|
|
236
216
|
// export { default as CkInputText } from './ck-input-text.vue';
|
package/dist/cleek.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Cleek=function(e){"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,
|
|
1
|
+
var Cleek=function(e){"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var r=e.defineComponent({name:"CleekSample",data:function(){return{counter:5,initCounter:5,message:{action:null,amount:null}}},computed:{changedBy:function(){var e=this.message;return e.action?"".concat(e.action," ").concat(e.amount||"").trim():"initialized"}},methods:{increment:function(e){var t="number"!=typeof e?1:e;this.counter+=t,this.message.action="incremented by",this.message.amount=t},decrement:function(e){var t="number"!=typeof e?1:e;this.counter-=t,this.message.action="decremented by",this.message.amount=t},reset:function(){this.counter=this.initCounter,this.message.action="reset",this.message.amount=null}}}),o={class:"cleek-sample"},a=e.createTextVNode(".");function c(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}c("\n.cleek-sample[data-v-0917b8aa] {\n display: block;\n width: 400px;\n margin: 25px auto;\n border: 1px solid #ccc;\n background: #eaeaea;\n text-align: center;\n padding: 25px;\n}\n.cleek-sample p[data-v-0917b8aa] {\n margin: 0 0 1em;\n}\n"),r.render=function(t,n,r,c,i,l){return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("p",null,[e.createTextVNode("The counter was "+e.toDisplayString(t.changedBy)+" to ",1),e.createElementVNode("b",null,e.toDisplayString(t.counter),1),a]),e.createElementVNode("button",{onClick:n[0]||(n[0]=function(){return t.increment&&t.increment.apply(t,arguments)})}," Click +1 "),e.createElementVNode("button",{onClick:n[1]||(n[1]=function(){return t.decrement&&t.decrement.apply(t,arguments)})}," Click -1 "),e.createElementVNode("button",{onClick:n[2]||(n[2]=function(e){return t.increment(5)})}," Click +5 "),e.createElementVNode("button",{onClick:n[3]||(n[3]=function(e){return t.decrement(5)})}," Click -5 "),e.createElementVNode("button",{onClick:n[4]||(n[4]=function(){return t.reset&&t.reset.apply(t,arguments)})}," Reset ")])},r.__scopeId="data-v-0917b8aa";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.group,n=void 0===t?"":t,r=e.groupVertical,o=void 0===r?"":r,a=e.groupBreak,c=void 0===a?"":a,i="";if(c&&c===i)return[];var l=[];return n&&l.push("ck-component__group--".concat(n)),o&&l.push("ck-component__group-vertical--".concat(o)),l},l={props:{type:{type:String,default:""},color:{type:String,default:""},icon:{type:[String,Array],default:""},"icon-package":{type:String,default:""},"icon-right":{type:String,default:""},label:{type:String,default:""},"label-align":{type:String,default:""},group:{type:String,default:""},groupBreak:{type:String,default:"s"},groupVertical:{type:String,default:""}},computed:{computedClass:function(){var e=[];return e.push(i(this)),this.color&&("filled"===this.type?e.push("ck-component__bg-color--".concat(this.color)):e.push("ck-component__border-color--".concat(this.color))),e}}},u={class:"ck-button"};c("\n@import url('../../dist/styles/ck-button.css');\r\n"),l.render=function(t,n,r,o,a,c){return e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("button",{class:e.normalizeClass(c.computedClass),onClick:n[0]||(n[0]=function(e){return t.$emit("click",e)})},[e.renderSlot(t.$slots,"default")],2)])},l.__scopeId="data-v-e00f6d2c";var s=Object.freeze({__proto__:null,CleekSample:r,CkButton:l}),d=function(e,n){console.log("arranco paquete"),console.log("options",n),Object.entries(s).forEach((function(n){var r=t(n,2),o=r[0],a=r[1];e.component(o,a)}))},p=Object.freeze({__proto__:null,default:d,CleekSample:r,CkButton:l});return Object.entries(p).forEach((function(e){var n=t(e,2),r=n[0],o=n[1];"default"!==r&&(d[r]=o)})),d}(Vue);
|
package/dist/cleek.ssr.js
CHANGED
|
@@ -242,37 +242,15 @@ var _hoisted_1 = {
|
|
|
242
242
|
class: "ck-button"
|
|
243
243
|
};
|
|
244
244
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
var _component_ck_icon = vue.resolveComponent("ck-icon");
|
|
248
|
-
|
|
249
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [$props.label ? (vue.openBlock(), vue.createBlock(_component_ck_label, {
|
|
250
|
-
key: 0,
|
|
251
|
-
"label-align": "labelAlign"
|
|
252
|
-
}, {
|
|
253
|
-
default: vue.withCtx(function () {
|
|
254
|
-
return [vue.createTextVNode(vue.toDisplayString($props.label), 1)];
|
|
255
|
-
}),
|
|
256
|
-
_: 1
|
|
257
|
-
})) : vue.createCommentVNode("", true), vue.createElementVNode("button", {
|
|
245
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [vue.createElementVNode("button", {
|
|
258
246
|
class: vue.normalizeClass($options.computedClass),
|
|
259
247
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
260
248
|
return _ctx.$emit('click', $event);
|
|
261
249
|
})
|
|
262
|
-
}, [
|
|
263
|
-
|
|
264
|
-
class: "ck-button--icon-left",
|
|
265
|
-
icon: $props.icon,
|
|
266
|
-
"icon-package": _ctx.iconPackage
|
|
267
|
-
}, null, 8, ["icon", "icon-package"])) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), _ctx.iconRight ? (vue.openBlock(), vue.createBlock(_component_ck_icon, {
|
|
268
|
-
key: 1,
|
|
269
|
-
class: "ck-button--icon-right",
|
|
270
|
-
icon: _ctx.iconRight,
|
|
271
|
-
"icon-package": _ctx.iconPackage
|
|
272
|
-
}, null, 8, ["icon", "icon-package"])) : vue.createCommentVNode("", true)], 2)]);
|
|
273
|
-
}var css_248z = "\n@import url('../styles/dist/ck-button.css');\r\n";
|
|
250
|
+
}, [vue.renderSlot(_ctx.$slots, "default")], 2)]);
|
|
251
|
+
}var css_248z = "\n@import url('../../dist/styles/ck-button.css');\r\n";
|
|
274
252
|
styleInject(css_248z);script.render = render;
|
|
275
|
-
script.__scopeId = "data-v-
|
|
253
|
+
script.__scopeId = "data-v-e00f6d2c";/* eslint-disable import/prefer-default-export */
|
|
276
254
|
// export { default as CkInputText } from './ck-input-text.vue';
|
|
277
255
|
// export { default as CkLabel } from './ck-label.vue';
|
|
278
256
|
// export { default as CkTextarea } from './ck-textarea.vue';
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
.ck-button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
}
|
|
4
|
+
.ck-button > button {
|
|
5
|
+
width: 100%;
|
|
6
|
+
font-family: inherit;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
padding: 0.7rem 1.4rem;
|
|
9
|
+
font-size: 1rem;
|
|
10
|
+
border-radius: 0.4rem;
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
border: 1px solid #000;
|
|
13
|
+
color: #000;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
min-height: 40px;
|
|
16
|
+
}
|
|
17
|
+
.ck-button > button > .ck-button--icon-left {
|
|
18
|
+
padding-right: 0.5rem;
|
|
19
|
+
}
|
|
20
|
+
.ck-button > button > .ck-button--icon-right {
|
|
21
|
+
padding-left: 0.5rem;
|
|
22
|
+
}
|
|
23
|
+
.ck-component__group--left {
|
|
24
|
+
border-top-right-radius: 0 !important;
|
|
25
|
+
border-bottom-right-radius: 0 !important;
|
|
26
|
+
border-right: 0 !important;
|
|
27
|
+
}
|
|
28
|
+
.ck-component__group--right {
|
|
29
|
+
border-top-left-radius: 0 !important;
|
|
30
|
+
border-bottom-left-radius: 0 !important;
|
|
31
|
+
}
|
|
32
|
+
.ck-component__group--center {
|
|
33
|
+
border-radius: 0 !important;
|
|
34
|
+
border-right: 0 !important;
|
|
35
|
+
}
|
|
36
|
+
.ck-component__group-vertical--top {
|
|
37
|
+
border-bottom: 0 !important;
|
|
38
|
+
border-bottom-left-radius: 0 !important;
|
|
39
|
+
border-bottom-right-radius: 0 !important;
|
|
40
|
+
}
|
|
41
|
+
.ck-component__group-vertical--bottom {
|
|
42
|
+
border-top-left-radius: 0 !important;
|
|
43
|
+
border-top-right-radius: 0 !important;
|
|
44
|
+
}
|
|
45
|
+
.ck-component__group-vertical--center {
|
|
46
|
+
border-radius: 0 !important;
|
|
47
|
+
border-bottom: 0 !important;
|
|
48
|
+
}
|
|
49
|
+
.ck-component__bg-color--primary {
|
|
50
|
+
background-color: #000 !important;
|
|
51
|
+
border-color: #000 !important;
|
|
52
|
+
color: #fff !important;
|
|
53
|
+
}
|
|
54
|
+
.ck-component__bg-color--primary-light {
|
|
55
|
+
background-color: rgba(0,0,0,0.15) !important;
|
|
56
|
+
border-color: rgba(0,0,0,0.15) !important;
|
|
57
|
+
color: #000 !important;
|
|
58
|
+
font-weight: 600 !important;
|
|
59
|
+
}
|
|
60
|
+
.ck-component__bg-color--secondary {
|
|
61
|
+
background-color: #999 !important;
|
|
62
|
+
border-color: #999 !important;
|
|
63
|
+
color: #fff !important;
|
|
64
|
+
}
|
|
65
|
+
.ck-component__bg-color--secondary-light {
|
|
66
|
+
background-color: rgba(153,153,153,0.15) !important;
|
|
67
|
+
border-color: rgba(153,153,153,0.15) !important;
|
|
68
|
+
color: #999 !important;
|
|
69
|
+
font-weight: 600 !important;
|
|
70
|
+
}
|
|
71
|
+
.ck-component__bg-color--success {
|
|
72
|
+
background-color: #95cd41 !important;
|
|
73
|
+
border-color: #95cd41 !important;
|
|
74
|
+
color: rgba(255,255,255,0.9) !important;
|
|
75
|
+
}
|
|
76
|
+
.ck-component__bg-color--danger {
|
|
77
|
+
background-color: #ff5959 !important;
|
|
78
|
+
border-color: #ff5959 !important;
|
|
79
|
+
color: rgba(255,255,255,0.9) !important;
|
|
80
|
+
}
|
|
81
|
+
.ck-component__bg-color--warning {
|
|
82
|
+
background-color: #ffbd35 !important;
|
|
83
|
+
border-color: #ffbd35 !important;
|
|
84
|
+
color: rgba(255,255,255,0.9) !important;
|
|
85
|
+
}
|
|
86
|
+
.ck-component__bg-color--dark {
|
|
87
|
+
background-color: #1e1e1e !important;
|
|
88
|
+
border-color: #1e1e1e !important;
|
|
89
|
+
color: rgba(255,255,255,0.9) !important;
|
|
90
|
+
}
|
|
91
|
+
.ck-component__bg-color--light {
|
|
92
|
+
background-color: #f0f0f0 !important;
|
|
93
|
+
border-color: #f0f0f0 !important;
|
|
94
|
+
}
|
|
95
|
+
.ck-component__border-color--primary {
|
|
96
|
+
color: #000 !important;
|
|
97
|
+
border-color: #000 !important;
|
|
98
|
+
}
|
|
99
|
+
.ck-component__border-color--primary-light {
|
|
100
|
+
color: rgba(0,0,0,0.15) !important;
|
|
101
|
+
border-color: rgba(0,0,0,0.15) !important;
|
|
102
|
+
font-weight: 600 !important;
|
|
103
|
+
}
|
|
104
|
+
.ck-component__border-color--secondary {
|
|
105
|
+
color: #999 !important;
|
|
106
|
+
border-color: #999 !important;
|
|
107
|
+
}
|
|
108
|
+
.ck-component__border-color--secondary-light {
|
|
109
|
+
color: rgba(153,153,153,0.15) !important;
|
|
110
|
+
border-color: rgba(153,153,153,0.15) !important;
|
|
111
|
+
font-weight: 600 !important;
|
|
112
|
+
}
|
|
113
|
+
.ck-component__border-color--success {
|
|
114
|
+
color: #95cd41 !important;
|
|
115
|
+
border-color: #95cd41 !important;
|
|
116
|
+
}
|
|
117
|
+
.ck-component__border-color--danger {
|
|
118
|
+
color: #ff5959 !important;
|
|
119
|
+
border-color: #ff5959 !important;
|
|
120
|
+
}
|
|
121
|
+
.ck-component__border-color--warning {
|
|
122
|
+
color: #ffbd35 !important;
|
|
123
|
+
border-color: #ffbd35 !important;
|
|
124
|
+
}
|
|
125
|
+
.ck-component__border-color--dark {
|
|
126
|
+
color: #1e1e1e !important;
|
|
127
|
+
border-color: #1e1e1e !important;
|
|
128
|
+
}
|
|
129
|
+
.ck-component__border-color--light {
|
|
130
|
+
color: #f0f0f0 !important;
|
|
131
|
+
border-color: #f0f0f0 !important;
|
|
132
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.ck-component__group--left {
|
|
2
|
+
border-top-right-radius: 0 !important;
|
|
3
|
+
border-bottom-right-radius: 0 !important;
|
|
4
|
+
border-right: 0 !important;
|
|
5
|
+
}
|
|
6
|
+
.ck-component__group--right {
|
|
7
|
+
border-top-left-radius: 0 !important;
|
|
8
|
+
border-bottom-left-radius: 0 !important;
|
|
9
|
+
}
|
|
10
|
+
.ck-component__group--center {
|
|
11
|
+
border-radius: 0 !important;
|
|
12
|
+
border-right: 0 !important;
|
|
13
|
+
}
|
|
14
|
+
.ck-component__group-vertical--top {
|
|
15
|
+
border-bottom: 0 !important;
|
|
16
|
+
border-bottom-left-radius: 0 !important;
|
|
17
|
+
border-bottom-right-radius: 0 !important;
|
|
18
|
+
}
|
|
19
|
+
.ck-component__group-vertical--bottom {
|
|
20
|
+
border-top-left-radius: 0 !important;
|
|
21
|
+
border-top-right-radius: 0 !important;
|
|
22
|
+
}
|
|
23
|
+
.ck-component__group-vertical--center {
|
|
24
|
+
border-radius: 0 !important;
|
|
25
|
+
border-bottom: 0 !important;
|
|
26
|
+
}
|
|
27
|
+
.ck-component__bg-color--primary {
|
|
28
|
+
background-color: #000 !important;
|
|
29
|
+
border-color: #000 !important;
|
|
30
|
+
color: #fff !important;
|
|
31
|
+
}
|
|
32
|
+
.ck-component__bg-color--primary-light {
|
|
33
|
+
background-color: rgba(0,0,0,0.15) !important;
|
|
34
|
+
border-color: rgba(0,0,0,0.15) !important;
|
|
35
|
+
color: #000 !important;
|
|
36
|
+
font-weight: 600 !important;
|
|
37
|
+
}
|
|
38
|
+
.ck-component__bg-color--secondary {
|
|
39
|
+
background-color: #999 !important;
|
|
40
|
+
border-color: #999 !important;
|
|
41
|
+
color: #fff !important;
|
|
42
|
+
}
|
|
43
|
+
.ck-component__bg-color--secondary-light {
|
|
44
|
+
background-color: rgba(153,153,153,0.15) !important;
|
|
45
|
+
border-color: rgba(153,153,153,0.15) !important;
|
|
46
|
+
color: #999 !important;
|
|
47
|
+
font-weight: 600 !important;
|
|
48
|
+
}
|
|
49
|
+
.ck-component__bg-color--success {
|
|
50
|
+
background-color: #95cd41 !important;
|
|
51
|
+
border-color: #95cd41 !important;
|
|
52
|
+
color: rgba(255,255,255,0.9) !important;
|
|
53
|
+
}
|
|
54
|
+
.ck-component__bg-color--danger {
|
|
55
|
+
background-color: #ff5959 !important;
|
|
56
|
+
border-color: #ff5959 !important;
|
|
57
|
+
color: rgba(255,255,255,0.9) !important;
|
|
58
|
+
}
|
|
59
|
+
.ck-component__bg-color--warning {
|
|
60
|
+
background-color: #ffbd35 !important;
|
|
61
|
+
border-color: #ffbd35 !important;
|
|
62
|
+
color: rgba(255,255,255,0.9) !important;
|
|
63
|
+
}
|
|
64
|
+
.ck-component__bg-color--dark {
|
|
65
|
+
background-color: #1e1e1e !important;
|
|
66
|
+
border-color: #1e1e1e !important;
|
|
67
|
+
color: rgba(255,255,255,0.9) !important;
|
|
68
|
+
}
|
|
69
|
+
.ck-component__bg-color--light {
|
|
70
|
+
background-color: #f0f0f0 !important;
|
|
71
|
+
border-color: #f0f0f0 !important;
|
|
72
|
+
}
|
|
73
|
+
.ck-component__border-color--primary {
|
|
74
|
+
color: #000 !important;
|
|
75
|
+
border-color: #000 !important;
|
|
76
|
+
}
|
|
77
|
+
.ck-component__border-color--primary-light {
|
|
78
|
+
color: rgba(0,0,0,0.15) !important;
|
|
79
|
+
border-color: rgba(0,0,0,0.15) !important;
|
|
80
|
+
font-weight: 600 !important;
|
|
81
|
+
}
|
|
82
|
+
.ck-component__border-color--secondary {
|
|
83
|
+
color: #999 !important;
|
|
84
|
+
border-color: #999 !important;
|
|
85
|
+
}
|
|
86
|
+
.ck-component__border-color--secondary-light {
|
|
87
|
+
color: rgba(153,153,153,0.15) !important;
|
|
88
|
+
border-color: rgba(153,153,153,0.15) !important;
|
|
89
|
+
font-weight: 600 !important;
|
|
90
|
+
}
|
|
91
|
+
.ck-component__border-color--success {
|
|
92
|
+
color: #95cd41 !important;
|
|
93
|
+
border-color: #95cd41 !important;
|
|
94
|
+
}
|
|
95
|
+
.ck-component__border-color--danger {
|
|
96
|
+
color: #ff5959 !important;
|
|
97
|
+
border-color: #ff5959 !important;
|
|
98
|
+
}
|
|
99
|
+
.ck-component__border-color--warning {
|
|
100
|
+
color: #ffbd35 !important;
|
|
101
|
+
border-color: #ffbd35 !important;
|
|
102
|
+
}
|
|
103
|
+
.ck-component__border-color--dark {
|
|
104
|
+
color: #1e1e1e !important;
|
|
105
|
+
border-color: #1e1e1e !important;
|
|
106
|
+
}
|
|
107
|
+
.ck-component__border-color--light {
|
|
108
|
+
color: #f0f0f0 !important;
|
|
109
|
+
border-color: #f0f0f0 !important;
|
|
110
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cleek",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cleek.ssr.js",
|
|
6
6
|
"browser": "dist/cleek.esm.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
|
|
21
21
|
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife",
|
|
22
22
|
"postbuild": "rimraf ./dist/types/dev ./dist/types/src/entry.d.ts",
|
|
23
|
-
"watch-styles": "stylus -w src/styles/ -o
|
|
24
|
-
"build-styles": "stylus src/styles/ -o
|
|
23
|
+
"watch-styles": "stylus -w src/styles/ -o dist/styles",
|
|
24
|
+
"build-styles": "stylus src/styles/ -o dist/styles/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.ck-button
|
|
3
|
-
ck-label(v-if="label" label-align="labelAlign") {{ label }}
|
|
3
|
+
//- ck-label(v-if="label" label-align="labelAlign") {{ label }}
|
|
4
4
|
button(
|
|
5
5
|
:class="computedClass"
|
|
6
6
|
@click="$emit('click', $event)"
|
|
7
7
|
)
|
|
8
8
|
//- icon left
|
|
9
|
-
ck-icon.ck-button--icon-left(
|
|
10
|
-
v-if="icon"
|
|
11
|
-
:icon="icon"
|
|
12
|
-
:icon-package="iconPackage"
|
|
13
|
-
)
|
|
9
|
+
//- ck-icon.ck-button--icon-left(
|
|
10
|
+
//- v-if="icon"
|
|
11
|
+
//- :icon="icon"
|
|
12
|
+
//- :icon-package="iconPackage"
|
|
13
|
+
//- )
|
|
14
14
|
//- slot
|
|
15
15
|
slot
|
|
16
16
|
//- icon right
|
|
17
|
-
ck-icon.ck-button--icon-right(
|
|
18
|
-
v-if="iconRight"
|
|
19
|
-
:icon="iconRight"
|
|
20
|
-
:icon-package="iconPackage"
|
|
21
|
-
)
|
|
17
|
+
//- ck-icon.ck-button--icon-right(
|
|
18
|
+
//- v-if="iconRight"
|
|
19
|
+
//- :icon="iconRight"
|
|
20
|
+
//- :icon-package="iconPackage"
|
|
21
|
+
//- )
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script>
|
|
@@ -62,5 +62,5 @@ export default {
|
|
|
62
62
|
</script>
|
|
63
63
|
|
|
64
64
|
<style scoped>
|
|
65
|
-
@import url('
|
|
65
|
+
@import url('../../dist/styles/ck-button.css');
|
|
66
66
|
</style>
|