qureal-editor 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # neon-button
2
+
3
+ > Neon button for React app
4
+
5
+ [![NPM](https://img.shields.io/npm/v/neon-button.svg)](https://www.npmjs.com/package/neon-button) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install --save neon-button
11
+ ```
12
+
13
+ ![Neon Button Screenshow](https://raw.githubusercontent.com/shivampip/neon-button/master/ss.png)
14
+
15
+ ## Usage
16
+
17
+ ```jsx
18
+ import React, { Component } from 'react'
19
+
20
+ import NeonButton from 'neon-button'
21
+
22
+ class Example extends Component {
23
+ render () {
24
+ return (
25
+ <NeonButton
26
+ text='Neon Button'
27
+ color= "#34ebb7"
28
+ />
29
+ )
30
+ }
31
+ }
32
+ ```
33
+
34
+ ## License
35
+
36
+ MIT © [shivampip](https://github.com/shivampip)
@@ -0,0 +1,170 @@
1
+ import React, { Component } from 'react';
2
+ import PropTypes from 'prop-types';
3
+
4
+ function QButton() {
5
+ return React.createElement(
6
+ "button",
7
+ null,
8
+ "Hello Qureal"
9
+ );
10
+ }
11
+
12
+ function styleInject(css, ref) {
13
+ if ( ref === void 0 ) ref = {};
14
+ var insertAt = ref.insertAt;
15
+
16
+ if (!css || typeof document === 'undefined') { return; }
17
+
18
+ var head = document.head || document.getElementsByTagName('head')[0];
19
+ var style = document.createElement('style');
20
+ style.type = 'text/css';
21
+
22
+ if (insertAt === 'top') {
23
+ if (head.firstChild) {
24
+ head.insertBefore(style, head.firstChild);
25
+ } else {
26
+ head.appendChild(style);
27
+ }
28
+ } else {
29
+ head.appendChild(style);
30
+ }
31
+
32
+ if (style.styleSheet) {
33
+ style.styleSheet.cssText = css;
34
+ } else {
35
+ style.appendChild(document.createTextNode(css));
36
+ }
37
+ }
38
+
39
+ var css = "body{\n background-color: rgb(97, 97, 97);\n}\n.styles_outerN__IxLsd{\n padding: 10px 15px;\n border: none;\n outline: none;\n background-color: black;\n margin: 20px;\n border-radius: 5px;\n transition: 0.5s;\n}\n\n.styles_innerN__2mhRO{\n font-size: 1.3rem;\n color: #e3e3e3;\n transition: 0.5s;\n}\n\n.styles_outerN__IxLsd:hover {\n box-shadow: 0px 0px 22px 10px #34ebb7;\n cursor: pointer;\n}\n\n.styles_innerN__2mhRO:hover{\n color: #34ebb7;\n text-shadow: 0 0 15px #34ebb7;\n}\n";
40
+ var styles = { "outerN": "styles_outerN__IxLsd", "innerN": "styles_innerN__2mhRO" };
41
+ styleInject(css);
42
+
43
+ var classCallCheck = function (instance, Constructor) {
44
+ if (!(instance instanceof Constructor)) {
45
+ throw new TypeError("Cannot call a class as a function");
46
+ }
47
+ };
48
+
49
+ var createClass = function () {
50
+ function defineProperties(target, props) {
51
+ for (var i = 0; i < props.length; i++) {
52
+ var descriptor = props[i];
53
+ descriptor.enumerable = descriptor.enumerable || false;
54
+ descriptor.configurable = true;
55
+ if ("value" in descriptor) descriptor.writable = true;
56
+ Object.defineProperty(target, descriptor.key, descriptor);
57
+ }
58
+ }
59
+
60
+ return function (Constructor, protoProps, staticProps) {
61
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
62
+ if (staticProps) defineProperties(Constructor, staticProps);
63
+ return Constructor;
64
+ };
65
+ }();
66
+
67
+ var inherits = function (subClass, superClass) {
68
+ if (typeof superClass !== "function" && superClass !== null) {
69
+ throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
70
+ }
71
+
72
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
73
+ constructor: {
74
+ value: subClass,
75
+ enumerable: false,
76
+ writable: true,
77
+ configurable: true
78
+ }
79
+ });
80
+ if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
81
+ };
82
+
83
+ var possibleConstructorReturn = function (self, call) {
84
+ if (!self) {
85
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
86
+ }
87
+
88
+ return call && (typeof call === "object" || typeof call === "function") ? call : self;
89
+ };
90
+
91
+ var NeonButton = function (_Component) {
92
+ inherits(NeonButton, _Component);
93
+
94
+ function NeonButton() {
95
+ var _ref;
96
+
97
+ var _temp, _this, _ret;
98
+
99
+ classCallCheck(this, NeonButton);
100
+
101
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
102
+ args[_key] = arguments[_key];
103
+ }
104
+
105
+ return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = NeonButton.__proto__ || Object.getPrototypeOf(NeonButton)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.getInitialState = function () {
106
+ return { hover: false };
107
+ }, _this.toggleHover = function () {
108
+ _this.setState({ hover: !_this.state.hover });
109
+ }, _temp), possibleConstructorReturn(_this, _ret);
110
+ }
111
+
112
+ createClass(NeonButton, [{
113
+ key: 'render',
114
+ value: function render() {
115
+ var _props = this.props,
116
+ text = _props.text,
117
+ color = _props.color;
118
+
119
+
120
+ var linkStyle;
121
+ if (this.state.hover) {
122
+ linkStyle = { color: color };
123
+ } else {
124
+ linkStyle = { color: '#e3e3e3' };
125
+ }
126
+
127
+ var boxStyle;
128
+ if (this.state.hover) {
129
+ boxStyle = { boxShadow: '0px 0px 22px 10px ' + color };
130
+ } else {
131
+ boxStyle = { color: '#e3e3e3' };
132
+ }
133
+
134
+ return React.createElement(
135
+ 'button',
136
+ {
137
+ className: styles.outerN,
138
+ style: boxStyle,
139
+ onMouseEnter: this.toggleHover,
140
+ onMouseLeave: this.toggleHover
141
+ },
142
+ React.createElement(
143
+ 'div',
144
+ {
145
+ className: styles.innerN,
146
+ style: linkStyle
147
+ },
148
+ text
149
+ )
150
+ );
151
+ }
152
+ }]);
153
+ return NeonButton;
154
+ }(Component);
155
+
156
+ NeonButton.propTypes = {
157
+ text: PropTypes.string,
158
+ color: PropTypes.string
159
+ };
160
+
161
+
162
+ NeonButton.defaultProps = {
163
+ text: "Enter Button Text",
164
+ color: "#34ebb7"
165
+
166
+ // export default NeonButton;
167
+ };
168
+
169
+ export { NeonButton, QButton };
170
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../src/QButton.js","../node_modules/style-inject/dist/style-inject.es.js","../src/index.js"],"sourcesContent":["import React from \"react\"\n\n\nfunction QButton(){\n return <button>Hello Qureal</button>\n}\n\nexport default QButton;","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React, { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport QButton from \"./QButton\"\n\nimport styles from './styles.css'\n\nclass NeonButton extends Component {\n state={hover: false}\n static propTypes = {\n text: PropTypes.string,\n color: PropTypes.string\n }\n\n getInitialState= ()=>{\n return {hover: false}\n }\n toggleHover =()=>{\n this.setState({hover: !this.state.hover})\n }\n\n render() {\n const {\n text, color\n } = this.props\n\n var linkStyle;\n if (this.state.hover) {\n linkStyle = {color: color}\n } else {\n linkStyle = {color: '#e3e3e3'}\n }\n\n var boxStyle;\n if (this.state.hover) {\n boxStyle = {boxShadow: `0px 0px 22px 10px ${color}`}\n } else {\n boxStyle = {color: '#e3e3e3' } \n }\n\n\n return (\n <button\n className={styles.outerN}\n style={boxStyle}\n onMouseEnter={this.toggleHover}\n onMouseLeave={this.toggleHover}\n >\n <div\n className={styles.innerN}\n style={linkStyle}\n >{text}</div>\n </button>\n )\n }\n}\n\n\nNeonButton.defaultProps= {\n text: \"Enter Button Text\",\n color: \"#34ebb7\"\n}\n\n// export default NeonButton;\nexport {NeonButton, QButton}"],"names":["QButton","NeonButton","state","hover","getInitialState","toggleHover","setState","props","text","color","linkStyle","boxStyle","boxShadow","styles","outerN","innerN","Component","propTypes","PropTypes","string","defaultProps"],"mappings":";;;AAGA,SAASA,OAAT,GAAkB;WACP;;;;KAAP;;;ACJJ,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC7B,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EAC/B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;;EAE5B,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;;EAExD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACrE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC5C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;;EAExB,IAAI,QAAQ,KAAK,KAAK,EAAE;IACtB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICnBKC;;;;;;;;;;;;;;6LACJC,QAAM,EAACC,OAAO,KAAR,UAMNC,kBAAiB,YAAI;aACZ,EAACD,OAAO,KAAR,EAAP;aAEFE,cAAa,YAAI;YACVC,QAAL,CAAc,EAACH,OAAO,CAAC,MAAKD,KAAL,CAAWC,KAApB,EAAd;;;;;;6BAGO;mBAGH,KAAKI,KAHF;UAELC,IAFK,UAELA,IAFK;UAECC,KAFD,UAECA,KAFD;;;UAKHC,SAAJ;UACI,KAAKR,KAAL,CAAWC,KAAf,EAAsB;oBACR,EAACM,OAAOA,KAAR,EAAZ;OADF,MAEO;oBACO,EAACA,OAAO,SAAR,EAAZ;;;UAGEE,QAAJ;UACI,KAAKT,KAAL,CAAWC,KAAf,EAAsB;mBACT,EAACS,kCAAgCH,KAAjC,EAAX;OADF,MAEO;mBACO,EAACA,OAAO,SAAR,EAAX;;;aAKD;;;qBACaI,OAAOC,MADpB;iBAESH,QAFT;wBAGgB,KAAKN,WAHrB;wBAIgB,KAAKA;;;;;uBAGNQ,OAAOE,MADpB;mBAESL;;;;OATb;;;;EAlCqBM;;AAAnBf,WAEGgB,YAAY;QACXC,UAAUC,MADC;SAEVD,UAAUC;;;;AA+CrBlB,WAAWmB,YAAX,GAAyB;QACjB,mBADiB;SAEhB;;;CAFT,CAMA;;;;"}
package/dist/index.js CHANGED
@@ -1,2 +1,178 @@
1
- import"react";function t(){return h("button",null,"Qureal Button")}export{t as QButton};
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
7
+ var React = require('react');
8
+ var React__default = _interopDefault(React);
9
+ var PropTypes = _interopDefault(require('prop-types'));
10
+
11
+ function QButton() {
12
+ return React__default.createElement(
13
+ "button",
14
+ null,
15
+ "Hello Qureal"
16
+ );
17
+ }
18
+
19
+ function styleInject(css, ref) {
20
+ if ( ref === void 0 ) ref = {};
21
+ var insertAt = ref.insertAt;
22
+
23
+ if (!css || typeof document === 'undefined') { return; }
24
+
25
+ var head = document.head || document.getElementsByTagName('head')[0];
26
+ var style = document.createElement('style');
27
+ style.type = 'text/css';
28
+
29
+ if (insertAt === 'top') {
30
+ if (head.firstChild) {
31
+ head.insertBefore(style, head.firstChild);
32
+ } else {
33
+ head.appendChild(style);
34
+ }
35
+ } else {
36
+ head.appendChild(style);
37
+ }
38
+
39
+ if (style.styleSheet) {
40
+ style.styleSheet.cssText = css;
41
+ } else {
42
+ style.appendChild(document.createTextNode(css));
43
+ }
44
+ }
45
+
46
+ var css = "body{\n background-color: rgb(97, 97, 97);\n}\n.styles_outerN__IxLsd{\n padding: 10px 15px;\n border: none;\n outline: none;\n background-color: black;\n margin: 20px;\n border-radius: 5px;\n transition: 0.5s;\n}\n\n.styles_innerN__2mhRO{\n font-size: 1.3rem;\n color: #e3e3e3;\n transition: 0.5s;\n}\n\n.styles_outerN__IxLsd:hover {\n box-shadow: 0px 0px 22px 10px #34ebb7;\n cursor: pointer;\n}\n\n.styles_innerN__2mhRO:hover{\n color: #34ebb7;\n text-shadow: 0 0 15px #34ebb7;\n}\n";
47
+ var styles = { "outerN": "styles_outerN__IxLsd", "innerN": "styles_innerN__2mhRO" };
48
+ styleInject(css);
49
+
50
+ var classCallCheck = function (instance, Constructor) {
51
+ if (!(instance instanceof Constructor)) {
52
+ throw new TypeError("Cannot call a class as a function");
53
+ }
54
+ };
55
+
56
+ var createClass = function () {
57
+ function defineProperties(target, props) {
58
+ for (var i = 0; i < props.length; i++) {
59
+ var descriptor = props[i];
60
+ descriptor.enumerable = descriptor.enumerable || false;
61
+ descriptor.configurable = true;
62
+ if ("value" in descriptor) descriptor.writable = true;
63
+ Object.defineProperty(target, descriptor.key, descriptor);
64
+ }
65
+ }
66
+
67
+ return function (Constructor, protoProps, staticProps) {
68
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
69
+ if (staticProps) defineProperties(Constructor, staticProps);
70
+ return Constructor;
71
+ };
72
+ }();
73
+
74
+ var inherits = function (subClass, superClass) {
75
+ if (typeof superClass !== "function" && superClass !== null) {
76
+ throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
77
+ }
78
+
79
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
80
+ constructor: {
81
+ value: subClass,
82
+ enumerable: false,
83
+ writable: true,
84
+ configurable: true
85
+ }
86
+ });
87
+ if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
88
+ };
89
+
90
+ var possibleConstructorReturn = function (self, call) {
91
+ if (!self) {
92
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
93
+ }
94
+
95
+ return call && (typeof call === "object" || typeof call === "function") ? call : self;
96
+ };
97
+
98
+ var NeonButton = function (_Component) {
99
+ inherits(NeonButton, _Component);
100
+
101
+ function NeonButton() {
102
+ var _ref;
103
+
104
+ var _temp, _this, _ret;
105
+
106
+ classCallCheck(this, NeonButton);
107
+
108
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
109
+ args[_key] = arguments[_key];
110
+ }
111
+
112
+ return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = NeonButton.__proto__ || Object.getPrototypeOf(NeonButton)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.getInitialState = function () {
113
+ return { hover: false };
114
+ }, _this.toggleHover = function () {
115
+ _this.setState({ hover: !_this.state.hover });
116
+ }, _temp), possibleConstructorReturn(_this, _ret);
117
+ }
118
+
119
+ createClass(NeonButton, [{
120
+ key: 'render',
121
+ value: function render() {
122
+ var _props = this.props,
123
+ text = _props.text,
124
+ color = _props.color;
125
+
126
+
127
+ var linkStyle;
128
+ if (this.state.hover) {
129
+ linkStyle = { color: color };
130
+ } else {
131
+ linkStyle = { color: '#e3e3e3' };
132
+ }
133
+
134
+ var boxStyle;
135
+ if (this.state.hover) {
136
+ boxStyle = { boxShadow: '0px 0px 22px 10px ' + color };
137
+ } else {
138
+ boxStyle = { color: '#e3e3e3' };
139
+ }
140
+
141
+ return React__default.createElement(
142
+ 'button',
143
+ {
144
+ className: styles.outerN,
145
+ style: boxStyle,
146
+ onMouseEnter: this.toggleHover,
147
+ onMouseLeave: this.toggleHover
148
+ },
149
+ React__default.createElement(
150
+ 'div',
151
+ {
152
+ className: styles.innerN,
153
+ style: linkStyle
154
+ },
155
+ text
156
+ )
157
+ );
158
+ }
159
+ }]);
160
+ return NeonButton;
161
+ }(React.Component);
162
+
163
+ NeonButton.propTypes = {
164
+ text: PropTypes.string,
165
+ color: PropTypes.string
166
+ };
167
+
168
+
169
+ NeonButton.defaultProps = {
170
+ text: "Enter Button Text",
171
+ color: "#34ebb7"
172
+
173
+ // export default NeonButton;
174
+ };
175
+
176
+ exports.NeonButton = NeonButton;
177
+ exports.QButton = QButton;
2
178
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["import React from \"react\"\n\n\nfunction QButton() {\n return (\n <button>Qureal Button</button>\n )\n}\n\nexport { QButton }"],"names":["QButton","h"],"mappings":"cAGA,SAASA,IACL,OACIC,EAAA,SAAA,KAAQ,gBAEhB"}
1
+ {"version":3,"file":"index.js","sources":["../src/QButton.js","../node_modules/style-inject/dist/style-inject.es.js","../src/index.js"],"sourcesContent":["import React from \"react\"\n\n\nfunction QButton(){\n return <button>Hello Qureal</button>\n}\n\nexport default QButton;","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React, { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport QButton from \"./QButton\"\n\nimport styles from './styles.css'\n\nclass NeonButton extends Component {\n state={hover: false}\n static propTypes = {\n text: PropTypes.string,\n color: PropTypes.string\n }\n\n getInitialState= ()=>{\n return {hover: false}\n }\n toggleHover =()=>{\n this.setState({hover: !this.state.hover})\n }\n\n render() {\n const {\n text, color\n } = this.props\n\n var linkStyle;\n if (this.state.hover) {\n linkStyle = {color: color}\n } else {\n linkStyle = {color: '#e3e3e3'}\n }\n\n var boxStyle;\n if (this.state.hover) {\n boxStyle = {boxShadow: `0px 0px 22px 10px ${color}`}\n } else {\n boxStyle = {color: '#e3e3e3' } \n }\n\n\n return (\n <button\n className={styles.outerN}\n style={boxStyle}\n onMouseEnter={this.toggleHover}\n onMouseLeave={this.toggleHover}\n >\n <div\n className={styles.innerN}\n style={linkStyle}\n >{text}</div>\n </button>\n )\n }\n}\n\n\nNeonButton.defaultProps= {\n text: \"Enter Button Text\",\n color: \"#34ebb7\"\n}\n\n// export default NeonButton;\nexport {NeonButton, QButton}"],"names":["QButton","React","NeonButton","state","hover","getInitialState","toggleHover","setState","props","text","color","linkStyle","boxStyle","boxShadow","styles","outerN","innerN","Component","propTypes","PropTypes","string","defaultProps"],"mappings":";;;;;;;;;;AAGA,SAASA,OAAT,GAAkB;WACPC;;;;KAAP;;;ACJJ,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC7B,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EAC/B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;;EAE5B,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;;EAExD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACrE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC5C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;;EAExB,IAAI,QAAQ,KAAK,KAAK,EAAE;IACtB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICnBKC;;;;;;;;;;;;;;6LACJC,QAAM,EAACC,OAAO,KAAR,UAMNC,kBAAiB,YAAI;aACZ,EAACD,OAAO,KAAR,EAAP;aAEFE,cAAa,YAAI;YACVC,QAAL,CAAc,EAACH,OAAO,CAAC,MAAKD,KAAL,CAAWC,KAApB,EAAd;;;;;;6BAGO;mBAGH,KAAKI,KAHF;UAELC,IAFK,UAELA,IAFK;UAECC,KAFD,UAECA,KAFD;;;UAKHC,SAAJ;UACI,KAAKR,KAAL,CAAWC,KAAf,EAAsB;oBACR,EAACM,OAAOA,KAAR,EAAZ;OADF,MAEO;oBACO,EAACA,OAAO,SAAR,EAAZ;;;UAGEE,QAAJ;UACI,KAAKT,KAAL,CAAWC,KAAf,EAAsB;mBACT,EAACS,kCAAgCH,KAAjC,EAAX;OADF,MAEO;mBACO,EAACA,OAAO,SAAR,EAAX;;;aAKDT;;;qBACaa,OAAOC,MADpB;iBAESH,QAFT;wBAGgB,KAAKN,WAHrB;wBAIgB,KAAKA;;;;;uBAGNQ,OAAOE,MADpB;mBAESL;;;;OATb;;;;EAlCqBM;;AAAnBf,WAEGgB,YAAY;QACXC,UAAUC,MADC;SAEVD,UAAUC;;;;AA+CrBlB,WAAWmB,YAAX,GAAyB;QACjB,mBADiB;SAEhB;;;CAFT,CAMA;;;;;"}
package/package.json CHANGED
@@ -1,19 +1,61 @@
1
1
  {
2
2
  "name": "qureal-editor",
3
- "version": "1.0.3",
4
- "type": "module",
5
- "source": "src/index.js",
3
+ "version": "1.0.5",
4
+ "description": "Official Qureal React components",
5
+ "author": "shivampip",
6
+ "license": "MIT",
7
+ "repository": "shivampip/qureal-editor",
6
8
  "main": "dist/index.js",
7
- "module": "dist/index.js",
9
+ "module": "dist/index.es.js",
10
+ "jsnext:main": "dist/index.es.js",
11
+ "engines": {
12
+ "node": ">=8",
13
+ "npm": ">=5"
14
+ },
8
15
  "scripts": {
9
- "build": "microbundle",
10
- "dev": "microbundle watch"
16
+ "test": "cross-env CI=1 react-scripts test --env=jsdom",
17
+ "test:watch": "react-scripts test --env=jsdom",
18
+ "build": "rollup -c",
19
+ "start": "rollup -c -w",
20
+ "prepare": "npm run build",
21
+ "predeploy": "cd example && npm install && npm run build",
22
+ "deploy": "gh-pages -d example/build"
23
+ },
24
+ "peerDependencies": {
25
+ "prop-types": "^15.5.4",
26
+ "react": ">=15.0.0",
27
+ "react-dom": ">=15.0.0"
11
28
  },
12
29
  "devDependencies": {
13
- "microbundle": "^0.15.1"
30
+ "@svgr/rollup": "^2.4.1",
31
+ "babel-core": "^6.26.3",
32
+ "babel-eslint": "^8.2.5",
33
+ "babel-plugin-external-helpers": "^6.22.0",
34
+ "babel-preset-env": "^1.7.0",
35
+ "babel-preset-react": "^6.24.1",
36
+ "babel-preset-stage-0": "^6.24.1",
37
+ "cross-env": "^5.1.4",
38
+ "eslint": "^5.0.1",
39
+ "eslint-config-standard": "^11.0.0",
40
+ "eslint-config-standard-react": "^6.0.0",
41
+ "eslint-plugin-import": "^2.13.0",
42
+ "eslint-plugin-node": "^7.0.1",
43
+ "eslint-plugin-promise": "^4.0.0",
44
+ "eslint-plugin-react": "^7.10.0",
45
+ "eslint-plugin-standard": "^3.1.0",
46
+ "gh-pages": "^1.2.0",
47
+ "react": "^16.4.1",
48
+ "react-dom": "^16.4.1",
49
+ "react-scripts": "^1.1.4",
50
+ "rollup": "^0.64.1",
51
+ "rollup-plugin-babel": "^3.0.7",
52
+ "rollup-plugin-commonjs": "^9.1.3",
53
+ "rollup-plugin-node-resolve": "^3.3.0",
54
+ "rollup-plugin-peer-deps-external": "^2.2.0",
55
+ "rollup-plugin-postcss": "^1.6.2",
56
+ "rollup-plugin-url": "^1.4.0"
14
57
  },
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/shivampip/qureal-editor.git"
18
- }
58
+ "files": [
59
+ "dist"
60
+ ]
19
61
  }
package/dist/index.cjs DELETED
@@ -1,2 +0,0 @@
1
- require("react"),exports.QButton=function(){return h("button",null,"Qureal Button")};
2
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/index.js"],"sourcesContent":["import React from \"react\"\n\n\nfunction QButton() {\n return (\n <button>Qureal Button</button>\n )\n}\n\nexport { QButton }"],"names":["h"],"mappings":"iCAGA,WACI,OACIA,EAAA,SAAA,KAAQ,gBAEhB"}
@@ -1,2 +0,0 @@
1
- import"react";function t(){return h("button",null,"Qureal Button")}export{t as QButton};
2
- //# sourceMappingURL=index.modern.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.modern.js","sources":["../src/index.js"],"sourcesContent":["import React from \"react\"\n\n\nfunction QButton() {\n return (\n <button>Qureal Button</button>\n )\n}\n\nexport { QButton }"],"names":["QButton","h"],"mappings":"cAGA,SAASA,IACL,OACIC,EAAA,SAAA,KAAQ,gBAEhB"}
package/dist/index.umd.js DELETED
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e||self).qurealEditor={})}(this,function(e){e.QButton=function(){return h("button",null,"Qureal Button")}});
2
- //# sourceMappingURL=index.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/index.js"],"sourcesContent":["import React from \"react\"\n\n\nfunction QButton() {\n return (\n <button>Qureal Button</button>\n )\n}\n\nexport { QButton }"],"names":["h"],"mappings":"yQAGA,WACI,OACIA,EAAA,SAAA,KAAQ,gBAEhB"}
package/src/index.js DELETED
@@ -1,10 +0,0 @@
1
- import React from "react"
2
-
3
-
4
- function QButton() {
5
- return (
6
- <button>Qureal Button</button>
7
- )
8
- }
9
-
10
- export { QButton }