cleek 1.1.1 → 1.1.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.
@@ -0,0 +1,256 @@
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, resolveComponent, createBlock, withCtx, createCommentVNode, normalizeClass, renderSlot } from 'vue';
2
+
3
+ var script$1 = /*#__PURE__*/defineComponent({
4
+ name: 'CleekSample',
5
+
6
+ data() {
7
+ return {
8
+ counter: 5,
9
+ initCounter: 5,
10
+ message: {
11
+ action: null,
12
+ amount: null
13
+ }
14
+ };
15
+ },
16
+
17
+ computed: {
18
+ changedBy() {
19
+ const {
20
+ message
21
+ } = this;
22
+ if (!message.action) return 'initialized';
23
+ return `${message.action} ${message.amount || ''}`.trim();
24
+ }
25
+
26
+ },
27
+ methods: {
28
+ increment(arg) {
29
+ const amount = typeof arg !== 'number' ? 1 : arg;
30
+ this.counter += amount;
31
+ this.message.action = 'incremented by';
32
+ this.message.amount = amount;
33
+ },
34
+
35
+ decrement(arg) {
36
+ const amount = typeof arg !== 'number' ? 1 : arg;
37
+ this.counter -= amount;
38
+ this.message.action = 'decremented by';
39
+ this.message.amount = amount;
40
+ },
41
+
42
+ reset() {
43
+ this.counter = this.initCounter;
44
+ this.message.action = 'reset';
45
+ this.message.amount = null;
46
+ }
47
+
48
+ }
49
+ });
50
+
51
+ const _hoisted_1$1 = {
52
+ class: "cleek-sample"
53
+ };
54
+
55
+ const _hoisted_2 = /*#__PURE__*/createTextVNode(".");
56
+
57
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
58
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("p", null, [createTextVNode("The counter was " + toDisplayString(_ctx.changedBy) + " to ", 1), createElementVNode("b", null, toDisplayString(_ctx.counter), 1), _hoisted_2]), createElementVNode("button", {
59
+ onClick: _cache[0] || (_cache[0] = function () {
60
+ return _ctx.increment && _ctx.increment(...arguments);
61
+ })
62
+ }, " Click +1 "), createElementVNode("button", {
63
+ onClick: _cache[1] || (_cache[1] = function () {
64
+ return _ctx.decrement && _ctx.decrement(...arguments);
65
+ })
66
+ }, " Click -1 "), createElementVNode("button", {
67
+ onClick: _cache[2] || (_cache[2] = $event => _ctx.increment(5))
68
+ }, " Click +5 "), createElementVNode("button", {
69
+ onClick: _cache[3] || (_cache[3] = $event => _ctx.decrement(5))
70
+ }, " Click -5 "), createElementVNode("button", {
71
+ onClick: _cache[4] || (_cache[4] = function () {
72
+ return _ctx.reset && _ctx.reset(...arguments);
73
+ })
74
+ }, " Reset ")]);
75
+ }
76
+
77
+ function styleInject(css, ref) {
78
+ if ( ref === void 0 ) ref = {};
79
+ var insertAt = ref.insertAt;
80
+
81
+ if (!css || typeof document === 'undefined') { return; }
82
+
83
+ var head = document.head || document.getElementsByTagName('head')[0];
84
+ var style = document.createElement('style');
85
+ style.type = 'text/css';
86
+
87
+ if (insertAt === 'top') {
88
+ if (head.firstChild) {
89
+ head.insertBefore(style, head.firstChild);
90
+ } else {
91
+ head.appendChild(style);
92
+ }
93
+ } else {
94
+ head.appendChild(style);
95
+ }
96
+
97
+ if (style.styleSheet) {
98
+ style.styleSheet.cssText = css;
99
+ } else {
100
+ style.appendChild(document.createTextNode(css));
101
+ }
102
+ }
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);
106
+
107
+ script$1.render = render$1;
108
+ script$1.__scopeId = "data-v-0917b8aa";
109
+
110
+ var functions = {
111
+ getGroupClass() {
112
+ let {
113
+ group = '',
114
+ groupVertical = '',
115
+ groupBreak = ''
116
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
117
+ const _screenSize = '';
118
+ if (groupBreak && groupBreak === _screenSize) return [];
119
+ const classList = []; // group
120
+
121
+ if (group) classList.push(`ck-component__group--${group}`); // groupVertical
122
+
123
+ if (groupVertical) classList.push(`ck-component__group-vertical--${groupVertical}`);
124
+ return classList;
125
+ }
126
+
127
+ };
128
+
129
+ require('./styles/ck-button.styl');
130
+ var script = {
131
+ props: {
132
+ type: {
133
+ type: String,
134
+ default: ''
135
+ },
136
+ // outlined || filled
137
+ color: {
138
+ type: String,
139
+ default: ''
140
+ },
141
+ // icon
142
+ icon: {
143
+ type: [String, Array],
144
+ default: ''
145
+ },
146
+ 'icon-package': {
147
+ type: String,
148
+ default: ''
149
+ },
150
+ 'icon-right': {
151
+ type: String,
152
+ default: ''
153
+ },
154
+ // label
155
+ label: {
156
+ type: String,
157
+ default: ''
158
+ },
159
+ 'label-align': {
160
+ type: String,
161
+ default: ''
162
+ },
163
+ // group
164
+ group: {
165
+ type: String,
166
+ default: ''
167
+ },
168
+ groupBreak: {
169
+ type: String,
170
+ default: 's'
171
+ },
172
+ groupVertical: {
173
+ type: String,
174
+ default: ''
175
+ }
176
+ },
177
+ computed: {
178
+ computedClass() {
179
+ const classList = []; // group
180
+
181
+ classList.push(functions.getGroupClass(this)); // color
182
+
183
+ if (this.color) {
184
+ if (this.type === 'filled') {
185
+ classList.push(`ck-component__bg-color--${this.color}`);
186
+ } else {
187
+ classList.push(`ck-component__border-color--${this.color}`);
188
+ }
189
+ } // // size
190
+ // if (this.size) classList.push(`rs-component-size__${this.size}`);
191
+
192
+
193
+ return classList;
194
+ }
195
+
196
+ } // computed
197
+
198
+ }; // export default
199
+
200
+ const _hoisted_1 = {
201
+ class: "ck-button"
202
+ };
203
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
204
+ const _component_ck_label = resolveComponent("ck-label");
205
+
206
+ const _component_ck_icon = resolveComponent("ck-icon");
207
+
208
+ return openBlock(), createElementBlock("div", _hoisted_1, [$props.label ? (openBlock(), createBlock(_component_ck_label, {
209
+ key: 0,
210
+ "label-align": "labelAlign"
211
+ }, {
212
+ default: withCtx(() => [createTextVNode(toDisplayString($props.label), 1)]),
213
+ _: 1
214
+ })) : createCommentVNode("", true), createElementVNode("button", {
215
+ class: normalizeClass($options.computedClass),
216
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event))
217
+ }, [$props.icon ? (openBlock(), createBlock(_component_ck_icon, {
218
+ key: 0,
219
+ class: "ck-button--icon-left",
220
+ icon: $props.icon,
221
+ "icon-package": _ctx.iconPackage
222
+ }, null, 8, ["icon", "icon-package"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), _ctx.iconRight ? (openBlock(), createBlock(_component_ck_icon, {
223
+ key: 1,
224
+ class: "ck-button--icon-right",
225
+ icon: _ctx.iconRight,
226
+ "icon-package": _ctx.iconPackage
227
+ }, null, 8, ["icon", "icon-package"])) : createCommentVNode("", true)], 2)]);
228
+ }
229
+
230
+ script.render = render;
231
+
232
+ /* eslint-disable import/prefer-default-export */
233
+ // export { default as CkInputText } from './ck-input-text.vue';
234
+ // export { default as CkLabel } from './ck-label.vue';
235
+ // export { default as CkTextarea } from './ck-textarea.vue';
236
+ // export { default as CkSelect } from './ck-select.vue';
237
+
238
+ var components = /*#__PURE__*/Object.freeze({
239
+ __proto__: null,
240
+ CleekSample: script$1,
241
+ CkButton: script
242
+ });
243
+
244
+ // vue components
245
+
246
+ const install = function installCleek(app, options) {
247
+ console.log('arranco paquete');
248
+ console.log('options', options); // vue components
249
+
250
+ Object.entries(components).forEach(_ref => {
251
+ let [componentName, component] = _ref;
252
+ app.component(componentName, component);
253
+ });
254
+ }; // Create module definition for Vue.use()
255
+
256
+ export { script as CkButton, script$1 as CleekSample, install as default };
@@ -0,0 +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(".");!function(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))}}("\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 a=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};require("./styles/ck-button.styl");var i={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(a(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}}},l={class:"ck-button"};i.render=function(t,n,o,r,c,a){var i=e.resolveComponent("ck-label"),u=e.resolveComponent("ck-icon");return e.openBlock(),e.createElementBlock("div",l,[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(u,{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(u,{key:1,class:"ck-button--icon-right",icon:t.iconRight,"icon-package":t.iconPackage},null,8,["icon","icon-package"])):e.createCommentVNode("",!0)],2)])};var u=Object.freeze({__proto__:null,CleekSample:o,CkButton:i}),s=function(e,n){console.log("arranco paquete"),console.log("options",n),Object.entries(u).forEach((function(n){var o=t(n,2),r=o[0],c=o[1];e.component(r,c)}))},p=Object.freeze({__proto__:null,default:s,CleekSample:o,CkButton:i});return Object.entries(p).forEach((function(e){var n=t(e,2),o=n[0],r=n[1];"default"!==o&&(s[o]=r)})),s}(Vue);
@@ -55,8 +55,8 @@ function _arrayLikeToArray(arr, len) {
55
55
 
56
56
  function _nonIterableRest() {
57
57
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
58
- }var script$3 = /*#__PURE__*/vue.defineComponent({
59
- name: 'QuanticVueSample',
58
+ }var script$1 = /*#__PURE__*/vue.defineComponent({
59
+ name: 'CleekSample',
60
60
  // vue component name
61
61
  data: function data() {
62
62
  return {
@@ -96,14 +96,14 @@ function _nonIterableRest() {
96
96
  this.message.amount = null;
97
97
  }
98
98
  }
99
- });var _hoisted_1$3 = {
100
- class: "quantic-vue-sample"
99
+ });var _hoisted_1$1 = {
100
+ class: "cleek-sample"
101
101
  };
102
102
 
103
- var _hoisted_2$3 = /*#__PURE__*/vue.createTextVNode(".");
103
+ var _hoisted_2 = /*#__PURE__*/vue.createTextVNode(".");
104
104
 
105
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
106
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [vue.createElementVNode("p", null, [vue.createTextVNode("The counter was " + vue.toDisplayString(_ctx.changedBy) + " to ", 1), vue.createElementVNode("b", null, vue.toDisplayString(_ctx.counter), 1), _hoisted_2$3]), vue.createElementVNode("button", {
105
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
106
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [vue.createElementVNode("p", null, [vue.createTextVNode("The counter was " + vue.toDisplayString(_ctx.changedBy) + " to ", 1), vue.createElementVNode("b", null, vue.toDisplayString(_ctx.counter), 1), _hoisted_2]), vue.createElementVNode("button", {
107
107
  onClick: _cache[0] || (_cache[0] = function () {
108
108
  return _ctx.increment && _ctx.increment.apply(_ctx, arguments);
109
109
  })
@@ -149,64 +149,137 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
149
149
  } else {
150
150
  style.appendChild(document.createTextNode(css));
151
151
  }
152
- }var css_248z$3 = "\n.quantic-vue-sample[data-v-e1d15920] {\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.quantic-vue-sample p[data-v-e1d15920] {\n margin: 0 0 1em;\n}\n";
153
- styleInject(css_248z$3);script$3.render = render$3;
154
- script$3.__scopeId = "data-v-e1d15920";var script$2 = {
155
- props: {
156
- label: {
157
- type: String,
158
- default: ''
159
- }
160
- }
161
- };var _hoisted_1$2 = {
162
- key: 0
163
- };
164
- var _hoisted_2$2 = {
165
- class: "btn-cta"
166
- };
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;
154
+ script$1.__scopeId = "data-v-0917b8aa";var functions = {
155
+ getGroupClass: function getGroupClass() {
156
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
157
+ _ref$group = _ref.group,
158
+ group = _ref$group === void 0 ? '' : _ref$group,
159
+ _ref$groupVertical = _ref.groupVertical,
160
+ groupVertical = _ref$groupVertical === void 0 ? '' : _ref$groupVertical,
161
+ _ref$groupBreak = _ref.groupBreak,
162
+ groupBreak = _ref$groupBreak === void 0 ? '' : _ref$groupBreak;
167
163
 
168
- var _hoisted_3 = /*#__PURE__*/vue.createTextVNode(" | button 7 ");
164
+ var _screenSize = '';
165
+ if (groupBreak && groupBreak === _screenSize) return [];
166
+ var classList = []; // group
169
167
 
170
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
171
- return vue.openBlock(), vue.createElementBlock("div", null, [$props.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$2, vue.toDisplayString($props.label), 1)) : vue.createCommentVNode("", true), vue.createElementVNode("button", _hoisted_2$2, [_hoisted_3, vue.renderSlot(_ctx.$slots, "default")])]);
172
- }var css_248z$2 = "\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n";
173
- styleInject(css_248z$2);script$2.render = render$2;var script$1 = {
168
+ if (group) classList.push("ck-component__group--".concat(group)); // groupVertical
169
+
170
+ if (groupVertical) classList.push("ck-component__group-vertical--".concat(groupVertical));
171
+ return classList;
172
+ }
173
+ };require('./styles/ck-button.styl');
174
+ var script = {
174
175
  props: {
175
- label: {
176
+ type: {
176
177
  type: String,
177
178
  default: ''
178
- }
179
- }
180
- };var _hoisted_1$1 = {
181
- key: 0
182
- };
183
-
184
- var _hoisted_2$1 = /*#__PURE__*/vue.createElementVNode("input", null, null, -1);
185
-
186
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
187
- return vue.openBlock(), vue.createElementBlock("div", null, [$props.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$1, vue.toDisplayString($props.label), 1)) : vue.createCommentVNode("", true), _hoisted_2$1]);
188
- }var css_248z$1 = "\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n";
189
- styleInject(css_248z$1);script$1.render = render$1;var script = {
190
- props: {
179
+ },
180
+ // outlined || filled
181
+ color: {
182
+ type: String,
183
+ default: ''
184
+ },
185
+ // icon
186
+ icon: {
187
+ type: [String, Array],
188
+ default: ''
189
+ },
190
+ 'icon-package': {
191
+ type: String,
192
+ default: ''
193
+ },
194
+ 'icon-right': {
195
+ type: String,
196
+ default: ''
197
+ },
198
+ // label
191
199
  label: {
192
200
  type: String,
193
201
  default: ''
202
+ },
203
+ 'label-align': {
204
+ type: String,
205
+ default: ''
206
+ },
207
+ // group
208
+ group: {
209
+ type: String,
210
+ default: ''
211
+ },
212
+ groupBreak: {
213
+ type: String,
214
+ default: 's'
215
+ },
216
+ groupVertical: {
217
+ type: String,
218
+ default: ''
194
219
  }
195
- }
196
- };var _hoisted_1 = {
197
- key: 0
198
- };
220
+ },
221
+ computed: {
222
+ computedClass: function computedClass() {
223
+ var classList = []; // group
224
+
225
+ classList.push(functions.getGroupClass(this)); // color
226
+
227
+ if (this.color) {
228
+ if (this.type === 'filled') {
229
+ classList.push("ck-component__bg-color--".concat(this.color));
230
+ } else {
231
+ classList.push("ck-component__border-color--".concat(this.color));
232
+ }
233
+ } // // size
234
+ // if (this.size) classList.push(`rs-component-size__${this.size}`);
199
235
 
200
- var _hoisted_2 = /*#__PURE__*/vue.createElementVNode("textarea", null, null, -1);
201
236
 
237
+ return classList;
238
+ }
239
+ } // computed
240
+
241
+ }; // export default
242
+ var _hoisted_1 = {
243
+ class: "ck-button"
244
+ };
202
245
  function render(_ctx, _cache, $props, $setup, $data, $options) {
203
- return vue.openBlock(), vue.createElementBlock("div", null, [$props.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1, vue.toDisplayString($props.label), 1)) : vue.createCommentVNode("", true), _hoisted_2]);
204
- }var css_248z = "\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n";
205
- styleInject(css_248z);script.render = render;/* eslint-disable import/prefer-default-export */var components$1=/*#__PURE__*/Object.freeze({__proto__:null,QuanticVueSample:script$3,QvButton:script$2,QvInputText:script$1,QvTextarea:script});console.log('ESTOY EN PACKAGE'); // install function executed by Vue.use()
246
+ var _component_ck_label = vue.resolveComponent("ck-label");
206
247
 
207
- var install = function installQuanticVue(app, options) {
248
+ var _component_ck_icon = vue.resolveComponent("ck-icon");
249
+
250
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [$props.label ? (vue.openBlock(), vue.createBlock(_component_ck_label, {
251
+ key: 0,
252
+ "label-align": "labelAlign"
253
+ }, {
254
+ default: vue.withCtx(function () {
255
+ return [vue.createTextVNode(vue.toDisplayString($props.label), 1)];
256
+ }),
257
+ _: 1
258
+ })) : vue.createCommentVNode("", true), vue.createElementVNode("button", {
259
+ class: vue.normalizeClass($options.computedClass),
260
+ onClick: _cache[0] || (_cache[0] = function ($event) {
261
+ return _ctx.$emit('click', $event);
262
+ })
263
+ }, [$props.icon ? (vue.openBlock(), vue.createBlock(_component_ck_icon, {
264
+ key: 0,
265
+ class: "ck-button--icon-left",
266
+ icon: $props.icon,
267
+ "icon-package": _ctx.iconPackage
268
+ }, null, 8, ["icon", "icon-package"])) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), _ctx.iconRight ? (vue.openBlock(), vue.createBlock(_component_ck_icon, {
269
+ key: 1,
270
+ class: "ck-button--icon-right",
271
+ icon: _ctx.iconRight,
272
+ "icon-package": _ctx.iconPackage
273
+ }, null, 8, ["icon", "icon-package"])) : vue.createCommentVNode("", true)], 2)]);
274
+ }script.render = render;/* eslint-disable import/prefer-default-export */
275
+ // export { default as CkInputText } from './ck-input-text.vue';
276
+ // export { default as CkLabel } from './ck-label.vue';
277
+ // export { default as CkTextarea } from './ck-textarea.vue';
278
+ // export { default as CkSelect } from './ck-select.vue';
279
+ var components$1=/*#__PURE__*/Object.freeze({__proto__:null,CleekSample:script$1,CkButton:script});var install = function installCleek(app, options) {
208
280
  console.log('arranco paquete');
209
- console.log('options', options);
281
+ console.log('options', options); // vue components
282
+
210
283
  Object.entries(components$1).forEach(function (_ref) {
211
284
  var _ref2 = _slicedToArray(_ref, 2),
212
285
  componentName = _ref2[0],
@@ -215,7 +288,7 @@ var install = function installQuanticVue(app, options) {
215
288
  app.component(componentName, component);
216
289
  });
217
290
  }; // Create module definition for Vue.use()
218
- var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,QuanticVueSample:script$3,QvButton:script$2,QvInputText:script$1,QvTextarea:script});// only expose one global var, with component exports exposed as properties of
291
+ var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,CleekSample:script$1,CkButton:script});// only expose one global var, with component exports exposed as properties of
219
292
  // that global var (eg. plugin.component)
220
293
 
221
294
  Object.entries(components).forEach(function (_ref) {
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ getGroupClass({ group, groupVertical, groupBreak }?: {
3
+ group?: string | undefined;
4
+ groupVertical?: string | undefined;
5
+ groupBreak?: string | undefined;
6
+ }): string[];
7
+ };
8
+ export default _default;
@@ -1,4 +1,2 @@
1
- export { default as QuanticVueSample } from './quantic-vue-sample.vue';
2
- export { default as QvButton } from './qv-button.vue';
3
- export { default as QvInputText } from './qv-input-text.vue';
4
- export { default as QvTextarea } from './qv-textarea.vue';
1
+ export { default as CleekSample } from './cleek-sample.vue';
2
+ export { default as CkButton } from './ck-button.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cleek",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "dist/cleek.ssr.js",
6
6
  "browser": "dist/cleek.esm.js",
@@ -27,6 +27,7 @@
27
27
  "@fortawesome/free-regular-svg-icons": "^5.15.4",
28
28
  "@fortawesome/free-solid-svg-icons": "^5.15.4",
29
29
  "@fortawesome/vue-fontawesome": "^3.0.0-4",
30
+ "rollup-plugin-pug": "^1.1.1",
30
31
  "vue-select": "^4.0.0-beta.1"
31
32
  },
32
33
  "devDependencies": {
@@ -51,6 +52,8 @@
51
52
  "rimraf": "^3.0.2",
52
53
  "rollup": "^2.52.8",
53
54
  "rollup-plugin-postcss": "^4.0.0",
55
+ "rollup-plugin-stylus-compiler": "^1.0.1",
56
+ "rollup-plugin-stylus-css-modules": "^1.5.0",
54
57
  "rollup-plugin-terser": "^7.0.2",
55
58
  "rollup-plugin-typescript2": "^0.30.0",
56
59
  "rollup-plugin-vue": "^6.0.0",
@@ -3,6 +3,7 @@
3
3
  ck-label(v-if="label" label-align="labelAlign") {{ label }}
4
4
  button(
5
5
  :class="computedClass"
6
+ @click="$emit('click', $event)"
6
7
  )
7
8
  //- icon left
8
9
  ck-icon.ck-button--icon-left(
@@ -21,6 +22,7 @@
21
22
  </template>
22
23
 
23
24
  <script>
25
+ require('./styles/ck-button.styl');
24
26
  import functions from './functions.ts';
25
27
 
26
28
  export default {
@@ -58,46 +60,4 @@ export default {
58
60
  },
59
61
  }, // computed
60
62
  }; // export default
61
- </script>
62
-
63
- <style lang="stylus" scoped>
64
- json('./styles/StylusVars.json')
65
- .ck-button
66
- display inline-flex
67
- > button
68
- width 100%
69
- font-family inherit
70
- cursor pointer
71
- padding globalPadding (2*globalPadding)
72
- font-size globalFontSize
73
- border-radius globalBorderRadius
74
- background-color white
75
- border 1px solid primary
76
- color primary
77
- display inline-block
78
- min-height globalMinHeight
79
- > .ck-button--icon-left
80
- padding-right .5rem
81
- > .ck-button--icon-right
82
- padding-left .5rem
83
- // margin-bottom: 0;
84
- // font-weight: normal;
85
- // text-align: center;
86
- // -ms-touch-action: manipulation;
87
- // touch-action: manipulation;
88
- // white-space: nowrap;
89
- // padding: 6px 12px;
90
- // font-size: 18px;
91
- // line-height: 1.42857143;
92
-
93
- // .btn-cta:active:hover,
94
- // .btn-cta:focus,
95
- // .btn-cta:hover {
96
- // background-color: #1b1b32;
97
- // border-width: 3px;
98
- // border-color: #000;
99
- // background-image: none;
100
- // color: #f5f6f7;
101
- // }
102
- @require './styles/globalStyle'
103
- </style>
63
+ </script>
@@ -1,6 +1,5 @@
1
1
  <template lang="pug">
2
2
  .ck-icon
3
- //- font-awesome-icon-global(icon="user")
4
3
  font-awesome-icon(
5
4
  v-if="computedIconPackage === 'font-awesome'"
6
5
  :icon="icon"
@@ -0,0 +1,73 @@
1
+ <template lang="pug">
2
+ label.rv-switch
3
+ input(
4
+ v-model="localValue"
5
+ type="checkbox"
6
+ @change="$emit('change', $event)"
7
+ )
8
+ span.rv-switch__slider(:class="{ 'is-round': type !== 'square' }")
9
+ </template>
10
+
11
+ <script>
12
+ export default {
13
+ props: {
14
+ value: { type: Boolean, required: true },
15
+ type: { type: String, default: 'round' }, // square
16
+ },
17
+ computed: {
18
+ localValue: {
19
+ get() { return this.value; },
20
+ set(val) { this.$emit('input', val); },
21
+ },
22
+ }, // computed
23
+ }; // export default
24
+ </script>
25
+
26
+ <style lang="stylus" scoped>
27
+ json('./styles/StylusVars.json')
28
+
29
+ .rv-switch
30
+ position relative
31
+ display inline-block
32
+ width 60px
33
+ height 34px
34
+ // Hide default HTML checkbox
35
+ input
36
+ opacity 0
37
+ width 0
38
+ height 0
39
+ &:checked + .rv-switch__slider
40
+ background-color primary
41
+ &:focus + .rv-switch__slider
42
+ box-shadow 0 0 1px primary
43
+ &:checked + .rv-switch__slider:before
44
+ -webkit-transform translateX(26px)
45
+ -ms-transform translateX(26px)
46
+ transform translateX(26px)
47
+ /* The slider */
48
+ .rv-switch__slider
49
+ position absolute
50
+ cursor pointer
51
+ top 0
52
+ left 0
53
+ right 0
54
+ bottom 0
55
+ background-color #ccc
56
+ -webkit-transition .4s
57
+ transition .4s
58
+ &:before
59
+ position absolute
60
+ content ""
61
+ height 26px
62
+ width 26px
63
+ left 4px
64
+ bottom 4px
65
+ background-color white
66
+ -webkit-transition .4s
67
+ transition .4s
68
+ // Rounded sliders
69
+ &.is-round
70
+ border-radius: 34px;
71
+ &:before
72
+ border-radius 50%
73
+ </style>
@@ -1,207 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from 'vue';
2
-
3
- var script$3 = /*#__PURE__*/defineComponent({
4
- name: 'QuanticVueSample',
5
-
6
- data() {
7
- return {
8
- counter: 5,
9
- initCounter: 5,
10
- message: {
11
- action: null,
12
- amount: null
13
- }
14
- };
15
- },
16
-
17
- computed: {
18
- changedBy() {
19
- const {
20
- message
21
- } = this;
22
- if (!message.action) return 'initialized';
23
- return `${message.action} ${message.amount || ''}`.trim();
24
- }
25
-
26
- },
27
- methods: {
28
- increment(arg) {
29
- const amount = typeof arg !== 'number' ? 1 : arg;
30
- this.counter += amount;
31
- this.message.action = 'incremented by';
32
- this.message.amount = amount;
33
- },
34
-
35
- decrement(arg) {
36
- const amount = typeof arg !== 'number' ? 1 : arg;
37
- this.counter -= amount;
38
- this.message.action = 'decremented by';
39
- this.message.amount = amount;
40
- },
41
-
42
- reset() {
43
- this.counter = this.initCounter;
44
- this.message.action = 'reset';
45
- this.message.amount = null;
46
- }
47
-
48
- }
49
- });
50
-
51
- const _hoisted_1$3 = {
52
- class: "quantic-vue-sample"
53
- };
54
-
55
- const _hoisted_2$3 = /*#__PURE__*/createTextVNode(".");
56
-
57
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
58
- return openBlock(), createElementBlock("div", _hoisted_1$3, [createElementVNode("p", null, [createTextVNode("The counter was " + toDisplayString(_ctx.changedBy) + " to ", 1), createElementVNode("b", null, toDisplayString(_ctx.counter), 1), _hoisted_2$3]), createElementVNode("button", {
59
- onClick: _cache[0] || (_cache[0] = function () {
60
- return _ctx.increment && _ctx.increment(...arguments);
61
- })
62
- }, " Click +1 "), createElementVNode("button", {
63
- onClick: _cache[1] || (_cache[1] = function () {
64
- return _ctx.decrement && _ctx.decrement(...arguments);
65
- })
66
- }, " Click -1 "), createElementVNode("button", {
67
- onClick: _cache[2] || (_cache[2] = $event => _ctx.increment(5))
68
- }, " Click +5 "), createElementVNode("button", {
69
- onClick: _cache[3] || (_cache[3] = $event => _ctx.decrement(5))
70
- }, " Click -5 "), createElementVNode("button", {
71
- onClick: _cache[4] || (_cache[4] = function () {
72
- return _ctx.reset && _ctx.reset(...arguments);
73
- })
74
- }, " Reset ")]);
75
- }
76
-
77
- function styleInject(css, ref) {
78
- if ( ref === void 0 ) ref = {};
79
- var insertAt = ref.insertAt;
80
-
81
- if (!css || typeof document === 'undefined') { return; }
82
-
83
- var head = document.head || document.getElementsByTagName('head')[0];
84
- var style = document.createElement('style');
85
- style.type = 'text/css';
86
-
87
- if (insertAt === 'top') {
88
- if (head.firstChild) {
89
- head.insertBefore(style, head.firstChild);
90
- } else {
91
- head.appendChild(style);
92
- }
93
- } else {
94
- head.appendChild(style);
95
- }
96
-
97
- if (style.styleSheet) {
98
- style.styleSheet.cssText = css;
99
- } else {
100
- style.appendChild(document.createTextNode(css));
101
- }
102
- }
103
-
104
- var css_248z$3 = "\n.quantic-vue-sample[data-v-e1d15920] {\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.quantic-vue-sample p[data-v-e1d15920] {\n margin: 0 0 1em;\n}\n";
105
- styleInject(css_248z$3);
106
-
107
- script$3.render = render$3;
108
- script$3.__scopeId = "data-v-e1d15920";
109
-
110
- var script$2 = {
111
- props: {
112
- label: {
113
- type: String,
114
- default: ''
115
- }
116
- }
117
- };
118
-
119
- const _hoisted_1$2 = {
120
- key: 0
121
- };
122
- const _hoisted_2$2 = {
123
- class: "btn-cta"
124
- };
125
-
126
- const _hoisted_3 = /*#__PURE__*/createTextVNode(" | button 7 ");
127
-
128
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
129
- return openBlock(), createElementBlock("div", null, [$props.label ? (openBlock(), createElementBlock("label", _hoisted_1$2, toDisplayString($props.label), 1)) : createCommentVNode("", true), createElementVNode("button", _hoisted_2$2, [_hoisted_3, renderSlot(_ctx.$slots, "default")])]);
130
- }
131
-
132
- var css_248z$2 = "\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n";
133
- styleInject(css_248z$2);
134
-
135
- script$2.render = render$2;
136
-
137
- var script$1 = {
138
- props: {
139
- label: {
140
- type: String,
141
- default: ''
142
- }
143
- }
144
- };
145
-
146
- const _hoisted_1$1 = {
147
- key: 0
148
- };
149
-
150
- const _hoisted_2$1 = /*#__PURE__*/createElementVNode("input", null, null, -1);
151
-
152
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
153
- return openBlock(), createElementBlock("div", null, [$props.label ? (openBlock(), createElementBlock("label", _hoisted_1$1, toDisplayString($props.label), 1)) : createCommentVNode("", true), _hoisted_2$1]);
154
- }
155
-
156
- var css_248z$1 = "\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n";
157
- styleInject(css_248z$1);
158
-
159
- script$1.render = render$1;
160
-
161
- var script = {
162
- props: {
163
- label: {
164
- type: String,
165
- default: ''
166
- }
167
- }
168
- };
169
-
170
- const _hoisted_1 = {
171
- key: 0
172
- };
173
-
174
- const _hoisted_2 = /*#__PURE__*/createElementVNode("textarea", null, null, -1);
175
-
176
- function render(_ctx, _cache, $props, $setup, $data, $options) {
177
- return openBlock(), createElementBlock("div", null, [$props.label ? (openBlock(), createElementBlock("label", _hoisted_1, toDisplayString($props.label), 1)) : createCommentVNode("", true), _hoisted_2]);
178
- }
179
-
180
- var css_248z = "\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n";
181
- styleInject(css_248z);
182
-
183
- script.render = render;
184
-
185
- /* eslint-disable import/prefer-default-export */
186
-
187
- var components = /*#__PURE__*/Object.freeze({
188
- __proto__: null,
189
- QuanticVueSample: script$3,
190
- QvButton: script$2,
191
- QvInputText: script$1,
192
- QvTextarea: script
193
- });
194
-
195
- // Import vue components
196
- console.log('ESTOY EN PACKAGE'); // install function executed by Vue.use()
197
-
198
- const install = function installQuanticVue(app, options) {
199
- console.log('arranco paquete');
200
- console.log('options', options);
201
- Object.entries(components).forEach(_ref => {
202
- let [componentName, component] = _ref;
203
- app.component(componentName, component);
204
- });
205
- }; // Create module definition for Vue.use()
206
-
207
- export { script$3 as QuanticVueSample, script$2 as QvButton, script$1 as QvInputText, script as QvTextarea, install as default };
@@ -1 +0,0 @@
1
- var QuanticVue=function(e){"use strict";function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],c=!0,l=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);c=!0);}catch(e){l=!0,o=e}finally{try{c||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);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 t(e,n)}(e,n)||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 t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var r=e.defineComponent({name:"QuanticVueSample",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 n="number"!=typeof e?1:e;this.counter+=n,this.message.action="incremented by",this.message.amount=n},decrement:function(e){var n="number"!=typeof e?1:e;this.counter-=n,this.message.action="decremented by",this.message.amount=n},reset:function(){this.counter=this.initCounter,this.message.action="reset",this.message.amount=null}}}),o={class:"quantic-vue-sample"},a=e.createTextVNode(".");function c(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}c("\n.quantic-vue-sample[data-v-e1d15920] {\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.quantic-vue-sample p[data-v-e1d15920] {\n margin: 0 0 1em;\n}\n"),r.render=function(n,t,r,c,l,i){return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("p",null,[e.createTextVNode("The counter was "+e.toDisplayString(n.changedBy)+" to ",1),e.createElementVNode("b",null,e.toDisplayString(n.counter),1),a]),e.createElementVNode("button",{onClick:t[0]||(t[0]=function(){return n.increment&&n.increment.apply(n,arguments)})}," Click +1 "),e.createElementVNode("button",{onClick:t[1]||(t[1]=function(){return n.decrement&&n.decrement.apply(n,arguments)})}," Click -1 "),e.createElementVNode("button",{onClick:t[2]||(t[2]=function(e){return n.increment(5)})}," Click +5 "),e.createElementVNode("button",{onClick:t[3]||(t[3]=function(e){return n.decrement(5)})}," Click -5 "),e.createElementVNode("button",{onClick:t[4]||(t[4]=function(){return n.reset&&n.reset.apply(n,arguments)})}," Reset ")])},r.__scopeId="data-v-e1d15920";var l={props:{label:{type:String,default:""}}},i={key:0},u={class:"btn-cta"},d=e.createTextVNode(" | button 7 ");c("\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n"),l.render=function(n,t,r,o,a,c){return e.openBlock(),e.createElementBlock("div",null,[r.label?(e.openBlock(),e.createElementBlock("label",i,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0),e.createElementVNode("button",u,[d,e.renderSlot(n.$slots,"default")])])};var s={props:{label:{type:String,default:""}}},p={key:0},b=e.createElementVNode("input",null,null,-1);c("\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n"),s.render=function(n,t,r,o,a,c){return e.openBlock(),e.createElementBlock("div",null,[r.label?(e.openBlock(),e.createElementBlock("label",p,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0),b])};var m={props:{label:{type:String,default:""}}},f={key:0},h=e.createElementVNode("textarea",null,null,-1);c("\n.btn-cta {\r\n background-color: #d0d0d5;\r\n border-width: 3px;\r\n border-color: #1b1b32;\r\n border-radius: 0;\r\n border-style: solid;\r\n color: #1b1b32;\r\n display: block;\r\n margin-bottom: 0;\r\n font-weight: normal;\r\n text-align: center;\r\n -ms-touch-action: manipulation;\r\n touch-action: manipulation;\r\n cursor: pointer;\r\n white-space: nowrap;\r\n padding: 6px 12px;\r\n font-size: 18px;\r\n line-height: 1.42857143;\n}\n.btn-cta:active:hover,\r\n.btn-cta:focus,\r\n.btn-cta:hover {\r\n background-color: #1b1b32;\r\n border-width: 3px;\r\n border-color: #000;\r\n background-image: none;\r\n color: #f5f6f7;\n}\r\n"),m.render=function(n,t,r,o,a,c){return e.openBlock(),e.createElementBlock("div",null,[r.label?(e.openBlock(),e.createElementBlock("label",f,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0),h])};var g=Object.freeze({__proto__:null,QuanticVueSample:r,QvButton:l,QvInputText:s,QvTextarea:m});console.log("ESTOY EN PACKAGE");var y=function(e,t){console.log("arranco paquete"),console.log("options",t),Object.entries(g).forEach((function(t){var r=n(t,2),o=r[0],a=r[1];e.component(o,a)}))},v=Object.freeze({__proto__:null,default:y,QuanticVueSample:r,QvButton:l,QvInputText:s,QvTextarea:m});return Object.entries(v).forEach((function(e){var t=n(e,2),r=t[0],o=t[1];"default"!==r&&(y[r]=o)})),y}(Vue);