cleek 1.1.2 → 1.1.3
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 +6 -3
- package/dist/cleek.min.js +1 -1
- package/dist/cleek.ssr.js +6 -5
- package/package.json +5 -3
- package/src/lib-components/ck-button.vue +5 -2
package/dist/cleek.esm.js
CHANGED
|
@@ -101,8 +101,8 @@ function styleInject(css, ref) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
var css_248z = "\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";
|
|
105
|
-
styleInject(css_248z);
|
|
104
|
+
var css_248z$1 = "\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";
|
|
105
|
+
styleInject(css_248z$1);
|
|
106
106
|
|
|
107
107
|
script$1.render = render$1;
|
|
108
108
|
script$1.__scopeId = "data-v-0917b8aa";
|
|
@@ -126,7 +126,6 @@ var functions = {
|
|
|
126
126
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
-
require('./styles/ck-button.styl');
|
|
130
129
|
var script = {
|
|
131
130
|
props: {
|
|
132
131
|
type: {
|
|
@@ -227,7 +226,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
227
226
|
}, null, 8, ["icon", "icon-package"])) : createCommentVNode("", true)], 2)]);
|
|
228
227
|
}
|
|
229
228
|
|
|
229
|
+
var css_248z = "\n@import url('../styles/dist/ck-button.css');\r\n";
|
|
230
|
+
styleInject(css_248z);
|
|
231
|
+
|
|
230
232
|
script.render = render;
|
|
233
|
+
script.__scopeId = "data-v-2384caa0";
|
|
231
234
|
|
|
232
235
|
/* eslint-disable import/prefer-default-export */
|
|
233
236
|
// 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,r,c=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw r}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))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,o=new Array(t);n<t;n++)o[n]=e[n];return o}var o=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}}}),r={class:"cleek-sample"},c=e.createTextVNode(".")
|
|
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,r,c=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw r}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))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,o=new Array(t);n<t;n++)o[n]=e[n];return o}var o=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}}}),r={class:"cleek-sample"},c=e.createTextVNode(".");function a(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}a("\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"),o.render=function(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("p",null,[e.createTextVNode("The counter was "+e.toDisplayString(t.changedBy)+" to ",1),e.createElementVNode("b",null,e.toDisplayString(t.counter),1),c]),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 ")])},o.__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,o=e.groupVertical,r=void 0===o?"":o,c=e.groupBreak,a=void 0===c?"":c,i="";if(a&&a===i)return[];var l=[];return n&&l.push("ck-component__group--".concat(n)),r&&l.push("ck-component__group-vertical--".concat(r)),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"};a("\n@import url('../styles/dist/ck-button.css');\r\n"),l.render=function(t,n,o,r,c,a){var i=e.resolveComponent("ck-label"),l=e.resolveComponent("ck-icon");return e.openBlock(),e.createElementBlock("div",u,[o.label?(e.openBlock(),e.createBlock(i,{key:0,"label-align":"labelAlign"},{default:e.withCtx((function(){return[e.createTextVNode(e.toDisplayString(o.label),1)]})),_:1})):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(a.computedClass),onClick:n[0]||(n[0]=function(e){return t.$emit("click",e)})},[o.icon?(e.openBlock(),e.createBlock(l,{key:0,class:"ck-button--icon-left",icon:o.icon,"icon-package":t.iconPackage},null,8,["icon","icon-package"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),t.iconRight?(e.openBlock(),e.createBlock(l,{key:1,class:"ck-button--icon-right",icon:t.iconRight,"icon-package":t.iconPackage},null,8,["icon","icon-package"])):e.createCommentVNode("",!0)],2)])},l.__scopeId="data-v-2384caa0";var s=Object.freeze({__proto__:null,CleekSample:o,CkButton:l}),p=function(e,n){console.log("arranco paquete"),console.log("options",n),Object.entries(s).forEach((function(n){var o=t(n,2),r=o[0],c=o[1];e.component(r,c)}))},d=Object.freeze({__proto__:null,default:p,CleekSample:o,CkButton:l});return Object.entries(d).forEach((function(e){var n=t(e,2),o=n[0],r=n[1];"default"!==o&&(p[o]=r)})),p}(Vue);
|
package/dist/cleek.ssr.js
CHANGED
|
@@ -149,8 +149,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149
149
|
} else {
|
|
150
150
|
style.appendChild(document.createTextNode(css));
|
|
151
151
|
}
|
|
152
|
-
}var css_248z = "\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";
|
|
153
|
-
styleInject(css_248z);script$1.render = render$1;
|
|
152
|
+
}var css_248z$1 = "\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";
|
|
153
|
+
styleInject(css_248z$1);script$1.render = render$1;
|
|
154
154
|
script$1.__scopeId = "data-v-0917b8aa";var functions = {
|
|
155
155
|
getGroupClass: function getGroupClass() {
|
|
156
156
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -170,8 +170,7 @@ script$1.__scopeId = "data-v-0917b8aa";var functions = {
|
|
|
170
170
|
if (groupVertical) classList.push("ck-component__group-vertical--".concat(groupVertical));
|
|
171
171
|
return classList;
|
|
172
172
|
}
|
|
173
|
-
};
|
|
174
|
-
var script = {
|
|
173
|
+
};var script = {
|
|
175
174
|
props: {
|
|
176
175
|
type: {
|
|
177
176
|
type: String,
|
|
@@ -271,7 +270,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
271
270
|
icon: _ctx.iconRight,
|
|
272
271
|
"icon-package": _ctx.iconPackage
|
|
273
272
|
}, null, 8, ["icon", "icon-package"])) : vue.createCommentVNode("", true)], 2)]);
|
|
274
|
-
}
|
|
273
|
+
}var css_248z = "\n@import url('../styles/dist/ck-button.css');\r\n";
|
|
274
|
+
styleInject(css_248z);script.render = render;
|
|
275
|
+
script.__scopeId = "data-v-2384caa0";/* eslint-disable import/prefer-default-export */
|
|
275
276
|
// export { default as CkInputText } from './ck-input-text.vue';
|
|
276
277
|
// export { default as CkLabel } from './ck-label.vue';
|
|
277
278
|
// export { default as CkTextarea } from './ck-textarea.vue';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cleek",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cleek.ssr.js",
|
|
6
6
|
"browser": "dist/cleek.esm.js",
|
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"serve": "vue-cli-service serve dev/serve.ts",
|
|
17
17
|
"prebuild": "rimraf ./dist",
|
|
18
|
-
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
|
|
18
|
+
"build": "npm run build-styles && cross-env NODE_ENV=production rollup --config build/rollup.config.js",
|
|
19
19
|
"build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
|
|
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
|
-
"postbuild": "rimraf ./dist/types/dev ./dist/types/src/entry.d.ts"
|
|
22
|
+
"postbuild": "rimraf ./dist/types/dev ./dist/types/src/entry.d.ts",
|
|
23
|
+
"watch-styles": "stylus -w src/styles/ -o src/styles/dist/",
|
|
24
|
+
"build-styles": "stylus src/styles/ -o src/styles/dist/"
|
|
23
25
|
},
|
|
24
26
|
"dependencies": {
|
|
25
27
|
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script>
|
|
25
|
-
require('./styles/ck-button.styl');
|
|
26
25
|
import functions from './functions.ts';
|
|
27
26
|
|
|
28
27
|
export default {
|
|
@@ -60,4 +59,8 @@ export default {
|
|
|
60
59
|
},
|
|
61
60
|
}, // computed
|
|
62
61
|
}; // export default
|
|
63
|
-
</script>
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style scoped>
|
|
65
|
+
@import url('../styles/dist/ck-button.css');
|
|
66
|
+
</style>
|