cleek 1.1.0 → 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.
@@ -0,0 +1,239 @@
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, 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$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
+
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
+ var script = {
130
+ props: {
131
+ type: {
132
+ type: String,
133
+ default: ''
134
+ },
135
+ // outlined || filled
136
+ color: {
137
+ type: String,
138
+ default: ''
139
+ },
140
+ // icon
141
+ icon: {
142
+ type: [String, Array],
143
+ default: ''
144
+ },
145
+ 'icon-package': {
146
+ type: String,
147
+ default: ''
148
+ },
149
+ 'icon-right': {
150
+ type: String,
151
+ default: ''
152
+ },
153
+ // label
154
+ label: {
155
+ type: String,
156
+ default: ''
157
+ },
158
+ 'label-align': {
159
+ type: String,
160
+ default: ''
161
+ },
162
+ // group
163
+ group: {
164
+ type: String,
165
+ default: ''
166
+ },
167
+ groupBreak: {
168
+ type: String,
169
+ default: 's'
170
+ },
171
+ groupVertical: {
172
+ type: String,
173
+ default: ''
174
+ }
175
+ },
176
+ computed: {
177
+ computedClass() {
178
+ const classList = []; // group
179
+
180
+ classList.push(functions.getGroupClass(this)); // color
181
+
182
+ if (this.color) {
183
+ if (this.type === 'filled') {
184
+ classList.push(`ck-component__bg-color--${this.color}`);
185
+ } else {
186
+ classList.push(`ck-component__border-color--${this.color}`);
187
+ }
188
+ } // // size
189
+ // if (this.size) classList.push(`rs-component-size__${this.size}`);
190
+
191
+
192
+ return classList;
193
+ }
194
+
195
+ } // computed
196
+
197
+ }; // export default
198
+
199
+ const _hoisted_1 = {
200
+ class: "ck-button"
201
+ };
202
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
203
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("button", {
204
+ class: normalizeClass($options.computedClass),
205
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event))
206
+ }, [renderSlot(_ctx.$slots, "default")], 2)]);
207
+ }
208
+
209
+ var css_248z = "\n@import url('../../dist/styles/ck-button.css');\r\n";
210
+ styleInject(css_248z);
211
+
212
+ script.render = render;
213
+ script.__scopeId = "data-v-e00f6d2c";
214
+
215
+ /* eslint-disable import/prefer-default-export */
216
+ // export { default as CkInputText } from './ck-input-text.vue';
217
+ // export { default as CkLabel } from './ck-label.vue';
218
+ // export { default as CkTextarea } from './ck-textarea.vue';
219
+ // export { default as CkSelect } from './ck-select.vue';
220
+
221
+ var components = /*#__PURE__*/Object.freeze({
222
+ __proto__: null,
223
+ CleekSample: script$1,
224
+ CkButton: script
225
+ });
226
+
227
+ // vue components
228
+
229
+ const install = function installCleek(app, options) {
230
+ console.log('arranco paquete');
231
+ console.log('options', options); // vue components
232
+
233
+ Object.entries(components).forEach(_ref => {
234
+ let [componentName, component] = _ref;
235
+ app.component(componentName, component);
236
+ });
237
+ }; // Create module definition for Vue.use()
238
+
239
+ 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 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);
@@ -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,116 @@ 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$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
+ 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
+ };var script = {
174
174
  props: {
175
- label: {
175
+ type: {
176
176
  type: String,
177
177
  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: {
178
+ },
179
+ // outlined || filled
180
+ color: {
181
+ type: String,
182
+ default: ''
183
+ },
184
+ // icon
185
+ icon: {
186
+ type: [String, Array],
187
+ default: ''
188
+ },
189
+ 'icon-package': {
190
+ type: String,
191
+ default: ''
192
+ },
193
+ 'icon-right': {
194
+ type: String,
195
+ default: ''
196
+ },
197
+ // label
191
198
  label: {
192
199
  type: String,
193
200
  default: ''
201
+ },
202
+ 'label-align': {
203
+ type: String,
204
+ default: ''
205
+ },
206
+ // group
207
+ group: {
208
+ type: String,
209
+ default: ''
210
+ },
211
+ groupBreak: {
212
+ type: String,
213
+ default: 's'
214
+ },
215
+ groupVertical: {
216
+ type: String,
217
+ default: ''
194
218
  }
195
- }
196
- };var _hoisted_1 = {
197
- key: 0
198
- };
219
+ },
220
+ computed: {
221
+ computedClass: function computedClass() {
222
+ var classList = []; // group
199
223
 
200
- var _hoisted_2 = /*#__PURE__*/vue.createElementVNode("textarea", null, null, -1);
224
+ classList.push(functions.getGroupClass(this)); // color
225
+
226
+ if (this.color) {
227
+ if (this.type === 'filled') {
228
+ classList.push("ck-component__bg-color--".concat(this.color));
229
+ } else {
230
+ classList.push("ck-component__border-color--".concat(this.color));
231
+ }
232
+ } // // size
233
+ // if (this.size) classList.push(`rs-component-size__${this.size}`);
201
234
 
202
- 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()
206
235
 
207
- var install = function installQuanticVue(app, options) {
236
+ return classList;
237
+ }
238
+ } // computed
239
+
240
+ }; // export default
241
+ var _hoisted_1 = {
242
+ class: "ck-button"
243
+ };
244
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
245
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [vue.createElementVNode("button", {
246
+ class: vue.normalizeClass($options.computedClass),
247
+ onClick: _cache[0] || (_cache[0] = function ($event) {
248
+ return _ctx.$emit('click', $event);
249
+ })
250
+ }, [vue.renderSlot(_ctx.$slots, "default")], 2)]);
251
+ }var css_248z = "\n@import url('../../dist/styles/ck-button.css');\r\n";
252
+ styleInject(css_248z);script.render = render;
253
+ script.__scopeId = "data-v-e00f6d2c";/* eslint-disable import/prefer-default-export */
254
+ // export { default as CkInputText } from './ck-input-text.vue';
255
+ // export { default as CkLabel } from './ck-label.vue';
256
+ // export { default as CkTextarea } from './ck-textarea.vue';
257
+ // export { default as CkSelect } from './ck-select.vue';
258
+ var components$1=/*#__PURE__*/Object.freeze({__proto__:null,CleekSample:script$1,CkButton:script});var install = function installCleek(app, options) {
208
259
  console.log('arranco paquete');
209
- console.log('options', options);
260
+ console.log('options', options); // vue components
261
+
210
262
  Object.entries(components$1).forEach(function (_ref) {
211
263
  var _ref2 = _slicedToArray(_ref, 2),
212
264
  componentName = _ref2[0],
@@ -215,7 +267,7 @@ var install = function installQuanticVue(app, options) {
215
267
  app.component(componentName, component);
216
268
  });
217
269
  }; // 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
270
+ 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
271
  // that global var (eg. plugin.component)
220
272
 
221
273
  Object.entries(components).forEach(function (_ref) {
@@ -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
@@ -0,0 +1,3 @@
1
+ * {
2
+ background-color: #00f;
3
+ }
@@ -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.0",
3
+ "version": "1.1.4",
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 dist/styles",
24
+ "build-styles": "stylus src/styles/ -o dist/styles/"
23
25
  },
24
26
  "dependencies": {
25
27
  "@fortawesome/fontawesome-svg-core": "^1.2.36",
@@ -27,6 +29,7 @@
27
29
  "@fortawesome/free-regular-svg-icons": "^5.15.4",
28
30
  "@fortawesome/free-solid-svg-icons": "^5.15.4",
29
31
  "@fortawesome/vue-fontawesome": "^3.0.0-4",
32
+ "rollup-plugin-pug": "^1.1.1",
30
33
  "vue-select": "^4.0.0-beta.1"
31
34
  },
32
35
  "devDependencies": {
@@ -51,6 +54,8 @@
51
54
  "rimraf": "^3.0.2",
52
55
  "rollup": "^2.52.8",
53
56
  "rollup-plugin-postcss": "^4.0.0",
57
+ "rollup-plugin-stylus-compiler": "^1.0.1",
58
+ "rollup-plugin-stylus-css-modules": "^1.5.0",
54
59
  "rollup-plugin-terser": "^7.0.2",
55
60
  "rollup-plugin-typescript2": "^0.30.0",
56
61
  "rollup-plugin-vue": "^6.0.0",
@@ -1,23 +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
+ @click="$emit('click', $event)"
6
7
  )
7
8
  //- icon left
8
- ck-icon.ck-button--icon-left(
9
- v-if="icon"
10
- :icon="icon"
11
- :icon-package="iconPackage"
12
- )
9
+ //- ck-icon.ck-button--icon-left(
10
+ //- v-if="icon"
11
+ //- :icon="icon"
12
+ //- :icon-package="iconPackage"
13
+ //- )
13
14
  //- slot
14
15
  slot
15
16
  //- icon right
16
- ck-icon.ck-button--icon-right(
17
- v-if="iconRight"
18
- :icon="iconRight"
19
- :icon-package="iconPackage"
20
- )
17
+ //- ck-icon.ck-button--icon-right(
18
+ //- v-if="iconRight"
19
+ //- :icon="iconRight"
20
+ //- :icon-package="iconPackage"
21
+ //- )
21
22
  </template>
22
23
 
23
24
  <script>
@@ -60,44 +61,6 @@ export default {
60
61
  }; // export default
61
62
  </script>
62
63
 
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'
64
+ <style scoped>
65
+ @import url('../../dist/styles/ck-button.css');
103
66
  </style>
@@ -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);