keski_lib_catalog 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 CodeNation Studio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /* add css module styles here (optional) */
2
2
 
3
- ._3ybTi {
3
+ ._styles-module__test__3ybTi {
4
4
  margin: 2em;
5
5
  padding: 0.5em;
6
6
  border: 2px solid #000;
package/dist/index.js CHANGED
@@ -1,15 +1,262 @@
1
1
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
2
2
 
3
3
  var React = _interopDefault(require('react'));
4
+ var material = require('@mui/material');
5
+ var styles = require('@mui/material/styles');
4
6
 
5
- var styles = {"test":"_3ybTi"};
7
+ function _inheritsLoose(subClass, superClass) {
8
+ subClass.prototype = Object.create(superClass.prototype);
9
+ subClass.prototype.constructor = subClass;
10
+ _setPrototypeOf(subClass, superClass);
11
+ }
12
+ function _setPrototypeOf(o, p) {
13
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
14
+ o.__proto__ = p;
15
+ return o;
16
+ };
17
+ return _setPrototypeOf(o, p);
18
+ }
6
19
 
7
- var ExampleComponent = function ExampleComponent(_ref) {
8
- var text = _ref.text;
9
- return /*#__PURE__*/React.createElement("div", {
10
- className: styles.test
11
- }, "Example Component: ", text);
20
+ var AtomicElements = /*#__PURE__*/function () {
21
+ function AtomicElements() {
22
+ this.layout = [];
23
+ }
24
+ var _proto = AtomicElements.prototype;
25
+ _proto.layouts = function layouts() {
26
+ return this.layout.length;
27
+ };
28
+ _proto.build = function build(content, layoutId) {
29
+ return this.layout[layoutId](content);
30
+ };
31
+ return AtomicElements;
32
+ }();
33
+
34
+ function Layout1(content) {
35
+ var _content$;
36
+ return /*#__PURE__*/React.createElement(material.Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(material.Card, null));
37
+ }
38
+
39
+ var BriefComponents = /*#__PURE__*/function (_AtomicElements) {
40
+ _inheritsLoose(BriefComponents, _AtomicElements);
41
+ function BriefComponents() {
42
+ var _this;
43
+ _this = _AtomicElements.call(this) || this;
44
+ _this.layout = [Layout1];
45
+ return _this;
46
+ }
47
+ return BriefComponents;
48
+ }(AtomicElements);
49
+
50
+ function Layout1$1(content) {
51
+ var _content$;
52
+ return /*#__PURE__*/React.createElement(material.Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(material.Card, null));
53
+ }
54
+
55
+ function Layout1$2(content) {
56
+ var _content$;
57
+ return /*#__PURE__*/React.createElement(material.Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(material.Card, null));
58
+ }
59
+
60
+ var HeadComponents = /*#__PURE__*/function (_AtomicElements) {
61
+ _inheritsLoose(HeadComponents, _AtomicElements);
62
+ function HeadComponents() {
63
+ var _this;
64
+ _this = _AtomicElements.call(this) || this;
65
+ _this.layout = [Layout1$1, Layout1$2];
66
+ return _this;
67
+ }
68
+ return HeadComponents;
69
+ }(AtomicElements);
70
+
71
+ var COLOR_PRIMARY = '#4CAF50';
72
+ var COLOR_SECONDARY = '#FF5722';
73
+ var Colors = {
74
+ contrastText: '#fff',
75
+ grayText: "#8a8a8a",
76
+ success: "#00A650",
77
+ info: "#3483FA",
78
+ danger: "#B12704",
79
+ warning: "#FFC107",
80
+ dark: "#0e1b20",
81
+ ligth: "#aaa",
82
+ muted: "#abafb3",
83
+ border: "#DDDFE1",
84
+ inverse: "#2F3D4A",
85
+ shaft: "#333",
86
+ ligth_green: "#9ad28a",
87
+ ligth_green_default: "#9ad29c",
88
+ green_dark: "#6fbf73",
89
+ white: "#fff",
90
+ black: "#000",
91
+ prim: "#292929",
92
+ sec: "#545454",
93
+ sec_alt: "#767676",
94
+ hiden: "#C8C8C8",
95
+ green: "#6fbf73",
96
+ footer_backgound: "#f4f4f4"
12
97
  };
98
+ var theme = styles.createTheme({
99
+ palette: {
100
+ primary: {
101
+ main: COLOR_PRIMARY
102
+ },
103
+ secondary: {
104
+ main: COLOR_SECONDARY
105
+ }
106
+ },
107
+ components: {
108
+ MuiButtonBase: {
109
+ defaultProps: {
110
+ disableRipple: true
111
+ }
112
+ },
113
+ typography: {
114
+ button: {
115
+ textTransform: 'none'
116
+ }
117
+ },
118
+ MuiOutlinedInput: {
119
+ styleOverrides: {
120
+ root: {
121
+ borderRadius: '90px'
122
+ }
123
+ }
124
+ },
125
+ MuiButton: {
126
+ styleOverrides: {
127
+ root: {
128
+ borderRadius: '90px',
129
+ textTransform: 'initial'
130
+ }
131
+ }
132
+ }
133
+ }
134
+ });
135
+
136
+ var BannerContainer = styles.styled(material.Box)(function (_ref) {
137
+ var _ref2;
138
+ var theme = _ref.theme,
139
+ json = _ref.json;
140
+ return _ref2 = {
141
+ display: 'flex',
142
+ justifyContent: 'center',
143
+ heigth: '100%',
144
+ padding: '0px',
145
+ backgroundImage: "url(" + json.backgroundImage + ")",
146
+ backgroundPosition: '0% 20%',
147
+ backgroundSize: 'cover',
148
+ backgroundRepeat: 'no-repeat'
149
+ }, _ref2[theme.breakpoints.down('sm')] = {
150
+ flexDirection: 'column',
151
+ alignItems: 'center'
152
+ }, _ref2[theme.breakpoints.down('md')] = {
153
+ flexDirection: 'column',
154
+ alignItems: 'center'
155
+ }, _ref2;
156
+ });
157
+ var BannerImage = styles.styled('img')(function (_ref3) {
158
+ var _ref4;
159
+ var src = _ref3.src,
160
+ theme = _ref3.theme;
161
+ return _ref4 = {
162
+ src: "url(" + src + ")",
163
+ width: '40%',
164
+ height: 'auto'
165
+ }, _ref4[theme.breakpoints.down('md')] = {
166
+ width: '70%',
167
+ height: 'auto'
168
+ }, _ref4[theme.breakpoints.down('sm')] = {
169
+ width: '90%',
170
+ height: 'auto'
171
+ }, _ref4;
172
+ });
173
+ var BannerContent = styles.styled(material.Box)(function () {
174
+ return {
175
+ display: 'flex',
176
+ flexDirection: 'column',
177
+ justifyContent: 'center',
178
+ maxWidth: 420,
179
+ padding: '30px',
180
+ color: Colors.contrastText
181
+ };
182
+ });
183
+ var BannerTittle = styles.styled(material.Typography)(function () {
184
+ var _ref5;
185
+ return _ref5 = {
186
+ lineHeigth: 1.5,
187
+ fontSize: '72px',
188
+ marginBottom: '20px',
189
+ color: Colors.contrastText
190
+ }, _ref5[theme.breakpoints.down('sm')] = {
191
+ fontSize: '42px'
192
+ }, _ref5;
193
+ });
194
+ var BannerDescription = styles.styled(material.Typography)(function (_ref6) {
195
+ var _ref7;
196
+ var theme = _ref6.theme;
197
+ return _ref7 = {
198
+ lineHeigth: 1.25,
199
+ letterSpacing: 1.25,
200
+ marginBottom: "3em"
201
+ }, _ref7[theme.breakpoints.down('md')] = {
202
+ lineHeigth: 1.15,
203
+ letterSpacing: 1.15,
204
+ marginBottom: "1.5em"
205
+ }, _ref7;
206
+ });
207
+ var BannerButton = styles.styled(material.Button)(function (_ref8) {
208
+ var theme = _ref8.theme;
209
+ return {
210
+ color: Colors.white,
211
+ background: theme.palette.primary.main,
212
+ fontSize: '25px'
213
+ };
214
+ });
215
+
216
+ function HeadContainer(props) {
217
+ var theme = styles.useTheme();
218
+ return /*#__PURE__*/React.createElement(BannerContainer, {
219
+ sx: {
220
+ height: '680px'
221
+ },
222
+ json: props.json
223
+ }, /*#__PURE__*/React.createElement(BannerContent, null, props.children));
224
+ }
225
+
226
+ var Section = /*#__PURE__*/function () {
227
+ function Section(AtomicElement) {
228
+ this.child = AtomicElement;
229
+ }
230
+ var _proto = Section.prototype;
231
+ _proto.component = function component(json) {
232
+ return /*#__PURE__*/React.createElement(HeadContainer, {
233
+ json: json
234
+ }, this.child.build(json.content, json.layout));
235
+ };
236
+ _proto.layoutList = function layoutList() {
237
+ return this.child.layouts();
238
+ };
239
+ return Section;
240
+ }();
241
+ var Sections = /*#__PURE__*/function () {
242
+ function Sections() {
243
+ this.head = new Section(new HeadComponents());
244
+ this.brief = new Section(new BriefComponents());
245
+ this.sections = [this.head, this.brief];
246
+ }
247
+ var _proto2 = Sections.prototype;
248
+ _proto2.getSectionList = function getSectionList() {
249
+ return {
250
+ '0': 'Header',
251
+ '1': 'Brief'
252
+ };
253
+ };
254
+ _proto2.getLayoutsFromSection = function getLayoutsFromSection(index) {
255
+ var section = this.sections[index];
256
+ return section;
257
+ };
258
+ return Sections;
259
+ }();
13
260
 
14
- exports.ExampleComponent = ExampleComponent;
261
+ exports.Sections = Sections;
15
262
  //# 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'\nimport styles from './styles.module.css'\n\nexport const ExampleComponent = ({ text }) => {\n return <div className={styles.test}>Example Component: {text}</div>\n}\n"],"names":["ExampleComponent","_ref","text","React","createElement","className","styles","test"],"mappings":";;;;;;IAGaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EACrC,oBAAOC,KAAA,CAAAC,aAAA;IAAKC,SAAS,EAAEC,MAAM,CAACC;KAAM,qBAAmB,EAACL,IAAU,CAAC;AACrE,CAAC;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/atomicElement.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/head/elements/layout1.js","../src/head/elements/layout2.js","../src/head/Component.js","../src/theme/index.js","../src/head/styles.js","../src/canvas/HeadContainer.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n }\r\n\r\n layouts(){\r\n return(\r\n this.layout.length\r\n )\r\n }\r\n\r\n build(content, layoutId){\r\n return(\r\n this.layout[layoutId](content)\r\n )\r\n }\r\n\r\n}\r\n","import { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class BriefComponents extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\n\r\nexport class HeadComponents extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1, Layout2]\r\n\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { createTheme } from \"@mui/material/styles\";\r\n//import { COLOR_PRIMARY,COLOR_SECONDARY } from \"../../utils/constants\";\r\n\r\nconst COLOR_PRIMARY = '#4CAF50'\r\n\r\nconst COLOR_SECONDARY = '#FF5722'\r\n\r\nexport const Colors = {\r\n // primary: \"#4CAF50\",\r\n // secondary: \"#FF5722\",\r\n contrastText: '#fff',\r\n grayText: \"#8a8a8a\",\r\n success: \"#00A650\",\r\n info: \"#3483FA\",\r\n danger: \"#B12704\",\r\n warning: \"#FFC107\",\r\n dark: \"#0e1b20\",\r\n ligth: \"#aaa\",\r\n muted: \"#abafb3\",\r\n border: \"#DDDFE1\",\r\n inverse: \"#2F3D4A\",\r\n shaft: \"#333\",\r\n\r\n ///////////////\r\n // Greens \r\n ///////////////\r\n ligth_green: \"#9ad28a\",\r\n ligth_green_default: \"#9ad29c\",\r\n green_dark: \"#6fbf73\", \r\n\r\n // dim_gray:\"#487e4c\",\r\n // body_bg: \"#81c784\",\r\n\r\n /////////////////\r\n // solid color\r\n /////////////////\r\n white: \"#fff\",\r\n black: \"#000\",\r\n\r\n //custom colors\r\n prim: \"#292929\",\r\n sec: \"#545454\",\r\n sec_alt: \"#767676\",\r\n hiden: \"#C8C8C8\",\r\n green: \"#6fbf73\",\r\n\r\n //footer colors\r\n footer_backgound:\"#f4f4f4\"\r\n}\r\n\r\nconst theme = createTheme({\r\n palette: {\r\n primary: {\r\n main: COLOR_PRIMARY,\r\n },\r\n secondary: {\r\n main: COLOR_SECONDARY,\r\n },\r\n },\r\n components: {\r\n // Name of the component\r\n MuiButtonBase: {\r\n defaultProps: {\r\n disableRipple: true,\r\n },\r\n },\r\n typography: {\r\n button: {\r\n textTransform: 'none'\r\n }\r\n },\r\n MuiOutlinedInput:{\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px'\r\n },\r\n },\r\n },\r\n MuiButton: {\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px',\r\n textTransform: 'initial'\r\n },\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default theme;","import { Button, Typography } from \"@mui/material\";\r\nimport { styled } from \"@mui/material/styles\";\r\nimport { Box, style } from \"@mui/material\";\r\nimport theme, { Colors } from \"../theme\";\r\n\r\nexport const BannerContainer = styled(Box)(({theme, json}) =>({\r\n display: 'flex',\r\n justifyContent: 'center',\r\n heigth: '100%',\r\n padding: '0px',\r\n // [customAtt?.backgroundImg]:{\r\n backgroundImage: `url(${json.backgroundImage})`,\r\n backgroundPosition: '0% 20%',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n // },\r\n // [customAtt?.backgroundColor]:{\r\n // backgroundColor: customAtt?.backgroundColor,\r\n // },\r\n [theme.breakpoints.down('sm')]: {\r\n flexDirection: 'column',\r\n alignItems: 'center'\r\n },\r\n [theme.breakpoints.down('md')]: {\r\n flexDirection: 'column',\r\n alignItems: 'center'\r\n },\r\n\r\n}));\r\n\r\nexport const BannerImage = styled('img')(({src, theme})=>({\r\n src: `url(${src})`,\r\n width:'40%',\r\n height: 'auto',\r\n [theme.breakpoints.down('md')]:{\r\n width:'70%',\r\n height: 'auto',\r\n },\r\n [theme.breakpoints.down('sm')]:{\r\n width:'90%',\r\n height: 'auto',\r\n }\r\n}))\r\n\r\nexport const BannerContent = styled(Box)(() =>({\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n maxWidth: 420,\r\n padding: '30px',\r\n color: Colors.contrastText,\r\n}))\r\n\r\nexport const BannerTittle = styled(Typography)(() =>({\r\n lineHeigth: 1.5,\r\n fontSize: '72px',\r\n marginBottom: '20px',\r\n color: Colors.contrastText,\r\n [theme.breakpoints.down('sm')]:{\r\n fontSize:'42px'\r\n }\r\n}))\r\n\r\n\r\n\r\nexport const BannerDescription = styled(Typography)(({ theme })=>({\r\n lineHeigth: 1.25,\r\n letterSpacing: 1.25,\r\n marginBottom: \"3em\",\r\n [theme.breakpoints.down('md')]:{\r\n lineHeigth:1.15,\r\n letterSpacing: 1.15,\r\n marginBottom: \"1.5em\",\r\n\r\n }\r\n}))\r\n\r\n\r\nexport const BannerButton = styled(Button)(({ theme })=>({\r\n color: Colors.white,\r\n background: theme.palette.primary.main,\r\n fontSize: '25px'\r\n \r\n}))","import React from \"react\";\r\n\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport { BannerContainer, BannerContent, BannerDescription, BannerImage, BannerTittle, BannerButton } from \"../head/styles\";\r\n\r\nexport default function HeadContainer(props){\r\n\r\n const theme = useTheme();\r\n\r\n return(\r\n <BannerContainer sx={{height:'680px'}} json={props.json}>\r\n <BannerContent>\r\n {props.children}\r\n </BannerContent>\r\n </BannerContainer>\r\n );\r\n}","import React from \"react\"\r\nimport { BriefComponents } from \"./brief/Component\"\r\nimport { HeadComponents } from \"./head/Component\"\r\nimport HeadContainer from \"./canvas/HeadContainer\"\r\n// Section is a common class for each component\r\nexport class Section{\r\n constructor(AtomicElement) {\r\n this.child = AtomicElement\r\n }\r\n \r\n component(json){\r\n return(\r\n <HeadContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json.content, json.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n layoutList(){\r\n return(\r\n this.child.layouts()\r\n )\r\n }\r\n \r\n}\r\n\r\n//Sections is the interface with admin and store\r\nexport class Sections{\r\n constructor(){\r\n this.head = new Section(new HeadComponents()) \r\n this.brief = new Section(new BriefComponents())\r\n this.sections = [this.head, this.brief] \r\n }\r\n\r\n getSectionList(){\r\n return(\r\n {\r\n '0' : 'Header',\r\n '1': 'Brief',\r\n }\r\n )\r\n }\r\n \r\n getLayoutsFromSection(index){\r\n let section = this.sections[index] \r\n return(section)\r\n }\r\n\r\n}"],"names":["AtomicElements","layout","_proto","prototype","layouts","length","build","content","layoutId","Layout1","_content$","React","createElement","Grid","title","Card","BriefComponents","_AtomicElements","_inheritsLoose","_this","call","HeadComponents","Layout2","COLOR_PRIMARY","COLOR_SECONDARY","Colors","contrastText","grayText","success","info","danger","warning","dark","ligth","muted","border","inverse","shaft","ligth_green","ligth_green_default","green_dark","white","black","prim","sec","sec_alt","hiden","green","footer_backgound","theme","createTheme","palette","primary","main","secondary","components","MuiButtonBase","defaultProps","disableRipple","typography","button","textTransform","MuiOutlinedInput","styleOverrides","root","borderRadius","MuiButton","BannerContainer","styled","Box","_ref","_ref2","json","display","justifyContent","heigth","padding","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","breakpoints","down","flexDirection","alignItems","BannerImage","_ref3","_ref4","src","width","height","BannerContent","maxWidth","color","BannerTittle","Typography","_ref5","lineHeigth","fontSize","marginBottom","BannerDescription","_ref6","_ref7","letterSpacing","BannerButton","Button","_ref8","background","HeadContainer","props","useTheme","sx","children","Section","AtomicElement","child","component","layoutList","Sections","head","brief","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;;EACnB,IAAAC,MAAA,GAAAF,cAA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AAK,CAACkE,IAAI,CAACjE,OAAO,EAAEiE,IAAI,CAACvE,MAAM,CAC9B,CAAC;GAEjB;EAAAC,MAAA,CAEDmH,UAAU,GAAV,SAAAA,aAAY;IACV,OACA,IAAI,CAACF,KAAK,CAAC/G,OAAO,EAAE;GAErB;EAAA,OAAA6G,OAAA;AAAA;AAKP,IAAaK,QAAQ;EACjB,SAAAA,WAAa;IACZ,IAAI,CAACC,IAAI,GAAG,IAAIN,OAAO,CAAC,IAAI5F,cAAc,EAAE,CAAC;IAC7C,IAAI,CAACmG,KAAK,GAAG,IAAIP,OAAO,CAAC,IAAIjG,eAAe,EAAE,CAAC;IAC/C,IAAI,CAACyG,QAAQ,GAAG,CAAC,IAAI,CAACF,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC;;EACvC,IAAAE,OAAA,GAAAJ,QAAA,CAAAnH,SAAA;EAAAuH,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAgB;IACZ,OACI;MACI,GAAG,EAAG,QAAQ;MACd,GAAG,EAAE;KACR;GAER;EAAAD,OAAA,CAEDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAC;IACzB,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAOC,OAAO;GAChB;EAAA,OAAAR,QAAA;AAAA;;;;"}
@@ -1,13 +1,260 @@
1
1
  import React from 'react';
2
+ import { Grid, Card, Box, Typography, Button } from '@mui/material';
3
+ import { createTheme, styled, useTheme } from '@mui/material/styles';
2
4
 
3
- var styles = {"test":"_3ybTi"};
5
+ function _inheritsLoose(subClass, superClass) {
6
+ subClass.prototype = Object.create(superClass.prototype);
7
+ subClass.prototype.constructor = subClass;
8
+ _setPrototypeOf(subClass, superClass);
9
+ }
10
+ function _setPrototypeOf(o, p) {
11
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
12
+ o.__proto__ = p;
13
+ return o;
14
+ };
15
+ return _setPrototypeOf(o, p);
16
+ }
4
17
 
5
- var ExampleComponent = function ExampleComponent(_ref) {
6
- var text = _ref.text;
7
- return /*#__PURE__*/React.createElement("div", {
8
- className: styles.test
9
- }, "Example Component: ", text);
18
+ var AtomicElements = /*#__PURE__*/function () {
19
+ function AtomicElements() {
20
+ this.layout = [];
21
+ }
22
+ var _proto = AtomicElements.prototype;
23
+ _proto.layouts = function layouts() {
24
+ return this.layout.length;
25
+ };
26
+ _proto.build = function build(content, layoutId) {
27
+ return this.layout[layoutId](content);
28
+ };
29
+ return AtomicElements;
30
+ }();
31
+
32
+ function Layout1(content) {
33
+ var _content$;
34
+ return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(Card, null));
35
+ }
36
+
37
+ var BriefComponents = /*#__PURE__*/function (_AtomicElements) {
38
+ _inheritsLoose(BriefComponents, _AtomicElements);
39
+ function BriefComponents() {
40
+ var _this;
41
+ _this = _AtomicElements.call(this) || this;
42
+ _this.layout = [Layout1];
43
+ return _this;
44
+ }
45
+ return BriefComponents;
46
+ }(AtomicElements);
47
+
48
+ function Layout1$1(content) {
49
+ var _content$;
50
+ return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(Card, null));
51
+ }
52
+
53
+ function Layout1$2(content) {
54
+ var _content$;
55
+ return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(Card, null));
56
+ }
57
+
58
+ var HeadComponents = /*#__PURE__*/function (_AtomicElements) {
59
+ _inheritsLoose(HeadComponents, _AtomicElements);
60
+ function HeadComponents() {
61
+ var _this;
62
+ _this = _AtomicElements.call(this) || this;
63
+ _this.layout = [Layout1$1, Layout1$2];
64
+ return _this;
65
+ }
66
+ return HeadComponents;
67
+ }(AtomicElements);
68
+
69
+ var COLOR_PRIMARY = '#4CAF50';
70
+ var COLOR_SECONDARY = '#FF5722';
71
+ var Colors = {
72
+ contrastText: '#fff',
73
+ grayText: "#8a8a8a",
74
+ success: "#00A650",
75
+ info: "#3483FA",
76
+ danger: "#B12704",
77
+ warning: "#FFC107",
78
+ dark: "#0e1b20",
79
+ ligth: "#aaa",
80
+ muted: "#abafb3",
81
+ border: "#DDDFE1",
82
+ inverse: "#2F3D4A",
83
+ shaft: "#333",
84
+ ligth_green: "#9ad28a",
85
+ ligth_green_default: "#9ad29c",
86
+ green_dark: "#6fbf73",
87
+ white: "#fff",
88
+ black: "#000",
89
+ prim: "#292929",
90
+ sec: "#545454",
91
+ sec_alt: "#767676",
92
+ hiden: "#C8C8C8",
93
+ green: "#6fbf73",
94
+ footer_backgound: "#f4f4f4"
10
95
  };
96
+ var theme = createTheme({
97
+ palette: {
98
+ primary: {
99
+ main: COLOR_PRIMARY
100
+ },
101
+ secondary: {
102
+ main: COLOR_SECONDARY
103
+ }
104
+ },
105
+ components: {
106
+ MuiButtonBase: {
107
+ defaultProps: {
108
+ disableRipple: true
109
+ }
110
+ },
111
+ typography: {
112
+ button: {
113
+ textTransform: 'none'
114
+ }
115
+ },
116
+ MuiOutlinedInput: {
117
+ styleOverrides: {
118
+ root: {
119
+ borderRadius: '90px'
120
+ }
121
+ }
122
+ },
123
+ MuiButton: {
124
+ styleOverrides: {
125
+ root: {
126
+ borderRadius: '90px',
127
+ textTransform: 'initial'
128
+ }
129
+ }
130
+ }
131
+ }
132
+ });
133
+
134
+ var BannerContainer = styled(Box)(function (_ref) {
135
+ var _ref2;
136
+ var theme = _ref.theme,
137
+ json = _ref.json;
138
+ return _ref2 = {
139
+ display: 'flex',
140
+ justifyContent: 'center',
141
+ heigth: '100%',
142
+ padding: '0px',
143
+ backgroundImage: "url(" + json.backgroundImage + ")",
144
+ backgroundPosition: '0% 20%',
145
+ backgroundSize: 'cover',
146
+ backgroundRepeat: 'no-repeat'
147
+ }, _ref2[theme.breakpoints.down('sm')] = {
148
+ flexDirection: 'column',
149
+ alignItems: 'center'
150
+ }, _ref2[theme.breakpoints.down('md')] = {
151
+ flexDirection: 'column',
152
+ alignItems: 'center'
153
+ }, _ref2;
154
+ });
155
+ var BannerImage = styled('img')(function (_ref3) {
156
+ var _ref4;
157
+ var src = _ref3.src,
158
+ theme = _ref3.theme;
159
+ return _ref4 = {
160
+ src: "url(" + src + ")",
161
+ width: '40%',
162
+ height: 'auto'
163
+ }, _ref4[theme.breakpoints.down('md')] = {
164
+ width: '70%',
165
+ height: 'auto'
166
+ }, _ref4[theme.breakpoints.down('sm')] = {
167
+ width: '90%',
168
+ height: 'auto'
169
+ }, _ref4;
170
+ });
171
+ var BannerContent = styled(Box)(function () {
172
+ return {
173
+ display: 'flex',
174
+ flexDirection: 'column',
175
+ justifyContent: 'center',
176
+ maxWidth: 420,
177
+ padding: '30px',
178
+ color: Colors.contrastText
179
+ };
180
+ });
181
+ var BannerTittle = styled(Typography)(function () {
182
+ var _ref5;
183
+ return _ref5 = {
184
+ lineHeigth: 1.5,
185
+ fontSize: '72px',
186
+ marginBottom: '20px',
187
+ color: Colors.contrastText
188
+ }, _ref5[theme.breakpoints.down('sm')] = {
189
+ fontSize: '42px'
190
+ }, _ref5;
191
+ });
192
+ var BannerDescription = styled(Typography)(function (_ref6) {
193
+ var _ref7;
194
+ var theme = _ref6.theme;
195
+ return _ref7 = {
196
+ lineHeigth: 1.25,
197
+ letterSpacing: 1.25,
198
+ marginBottom: "3em"
199
+ }, _ref7[theme.breakpoints.down('md')] = {
200
+ lineHeigth: 1.15,
201
+ letterSpacing: 1.15,
202
+ marginBottom: "1.5em"
203
+ }, _ref7;
204
+ });
205
+ var BannerButton = styled(Button)(function (_ref8) {
206
+ var theme = _ref8.theme;
207
+ return {
208
+ color: Colors.white,
209
+ background: theme.palette.primary.main,
210
+ fontSize: '25px'
211
+ };
212
+ });
213
+
214
+ function HeadContainer(props) {
215
+ var theme = useTheme();
216
+ return /*#__PURE__*/React.createElement(BannerContainer, {
217
+ sx: {
218
+ height: '680px'
219
+ },
220
+ json: props.json
221
+ }, /*#__PURE__*/React.createElement(BannerContent, null, props.children));
222
+ }
223
+
224
+ var Section = /*#__PURE__*/function () {
225
+ function Section(AtomicElement) {
226
+ this.child = AtomicElement;
227
+ }
228
+ var _proto = Section.prototype;
229
+ _proto.component = function component(json) {
230
+ return /*#__PURE__*/React.createElement(HeadContainer, {
231
+ json: json
232
+ }, this.child.build(json.content, json.layout));
233
+ };
234
+ _proto.layoutList = function layoutList() {
235
+ return this.child.layouts();
236
+ };
237
+ return Section;
238
+ }();
239
+ var Sections = /*#__PURE__*/function () {
240
+ function Sections() {
241
+ this.head = new Section(new HeadComponents());
242
+ this.brief = new Section(new BriefComponents());
243
+ this.sections = [this.head, this.brief];
244
+ }
245
+ var _proto2 = Sections.prototype;
246
+ _proto2.getSectionList = function getSectionList() {
247
+ return {
248
+ '0': 'Header',
249
+ '1': 'Brief'
250
+ };
251
+ };
252
+ _proto2.getLayoutsFromSection = function getLayoutsFromSection(index) {
253
+ var section = this.sections[index];
254
+ return section;
255
+ };
256
+ return Sections;
257
+ }();
11
258
 
12
- export { ExampleComponent };
259
+ export { Sections };
13
260
  //# sourceMappingURL=index.modern.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.modern.js","sources":["../src/index.js"],"sourcesContent":["import React from 'react'\nimport styles from './styles.module.css'\n\nexport const ExampleComponent = ({ text }) => {\n return <div className={styles.test}>Example Component: {text}</div>\n}\n"],"names":["ExampleComponent","_ref","text","React","createElement","className","styles","test"],"mappings":";;;;IAGaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EACrC,oBAAOC,KAAA,CAAAC,aAAA;IAAKC,SAAS,EAAEC,MAAM,CAACC;KAAM,qBAAmB,EAACL,IAAU,CAAC;AACrE,CAAC;;;;"}
1
+ {"version":3,"file":"index.modern.js","sources":["../src/atomicElement.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/head/elements/layout1.js","../src/head/elements/layout2.js","../src/head/Component.js","../src/theme/index.js","../src/head/styles.js","../src/canvas/HeadContainer.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n }\r\n\r\n layouts(){\r\n return(\r\n this.layout.length\r\n )\r\n }\r\n\r\n build(content, layoutId){\r\n return(\r\n this.layout[layoutId](content)\r\n )\r\n }\r\n\r\n}\r\n","import { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class BriefComponents extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\n\r\nexport class HeadComponents extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1, Layout2]\r\n\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { createTheme } from \"@mui/material/styles\";\r\n//import { COLOR_PRIMARY,COLOR_SECONDARY } from \"../../utils/constants\";\r\n\r\nconst COLOR_PRIMARY = '#4CAF50'\r\n\r\nconst COLOR_SECONDARY = '#FF5722'\r\n\r\nexport const Colors = {\r\n // primary: \"#4CAF50\",\r\n // secondary: \"#FF5722\",\r\n contrastText: '#fff',\r\n grayText: \"#8a8a8a\",\r\n success: \"#00A650\",\r\n info: \"#3483FA\",\r\n danger: \"#B12704\",\r\n warning: \"#FFC107\",\r\n dark: \"#0e1b20\",\r\n ligth: \"#aaa\",\r\n muted: \"#abafb3\",\r\n border: \"#DDDFE1\",\r\n inverse: \"#2F3D4A\",\r\n shaft: \"#333\",\r\n\r\n ///////////////\r\n // Greens \r\n ///////////////\r\n ligth_green: \"#9ad28a\",\r\n ligth_green_default: \"#9ad29c\",\r\n green_dark: \"#6fbf73\", \r\n\r\n // dim_gray:\"#487e4c\",\r\n // body_bg: \"#81c784\",\r\n\r\n /////////////////\r\n // solid color\r\n /////////////////\r\n white: \"#fff\",\r\n black: \"#000\",\r\n\r\n //custom colors\r\n prim: \"#292929\",\r\n sec: \"#545454\",\r\n sec_alt: \"#767676\",\r\n hiden: \"#C8C8C8\",\r\n green: \"#6fbf73\",\r\n\r\n //footer colors\r\n footer_backgound:\"#f4f4f4\"\r\n}\r\n\r\nconst theme = createTheme({\r\n palette: {\r\n primary: {\r\n main: COLOR_PRIMARY,\r\n },\r\n secondary: {\r\n main: COLOR_SECONDARY,\r\n },\r\n },\r\n components: {\r\n // Name of the component\r\n MuiButtonBase: {\r\n defaultProps: {\r\n disableRipple: true,\r\n },\r\n },\r\n typography: {\r\n button: {\r\n textTransform: 'none'\r\n }\r\n },\r\n MuiOutlinedInput:{\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px'\r\n },\r\n },\r\n },\r\n MuiButton: {\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px',\r\n textTransform: 'initial'\r\n },\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default theme;","import { Button, Typography } from \"@mui/material\";\r\nimport { styled } from \"@mui/material/styles\";\r\nimport { Box, style } from \"@mui/material\";\r\nimport theme, { Colors } from \"../theme\";\r\n\r\nexport const BannerContainer = styled(Box)(({theme, json}) =>({\r\n display: 'flex',\r\n justifyContent: 'center',\r\n heigth: '100%',\r\n padding: '0px',\r\n // [customAtt?.backgroundImg]:{\r\n backgroundImage: `url(${json.backgroundImage})`,\r\n backgroundPosition: '0% 20%',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n // },\r\n // [customAtt?.backgroundColor]:{\r\n // backgroundColor: customAtt?.backgroundColor,\r\n // },\r\n [theme.breakpoints.down('sm')]: {\r\n flexDirection: 'column',\r\n alignItems: 'center'\r\n },\r\n [theme.breakpoints.down('md')]: {\r\n flexDirection: 'column',\r\n alignItems: 'center'\r\n },\r\n\r\n}));\r\n\r\nexport const BannerImage = styled('img')(({src, theme})=>({\r\n src: `url(${src})`,\r\n width:'40%',\r\n height: 'auto',\r\n [theme.breakpoints.down('md')]:{\r\n width:'70%',\r\n height: 'auto',\r\n },\r\n [theme.breakpoints.down('sm')]:{\r\n width:'90%',\r\n height: 'auto',\r\n }\r\n}))\r\n\r\nexport const BannerContent = styled(Box)(() =>({\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n maxWidth: 420,\r\n padding: '30px',\r\n color: Colors.contrastText,\r\n}))\r\n\r\nexport const BannerTittle = styled(Typography)(() =>({\r\n lineHeigth: 1.5,\r\n fontSize: '72px',\r\n marginBottom: '20px',\r\n color: Colors.contrastText,\r\n [theme.breakpoints.down('sm')]:{\r\n fontSize:'42px'\r\n }\r\n}))\r\n\r\n\r\n\r\nexport const BannerDescription = styled(Typography)(({ theme })=>({\r\n lineHeigth: 1.25,\r\n letterSpacing: 1.25,\r\n marginBottom: \"3em\",\r\n [theme.breakpoints.down('md')]:{\r\n lineHeigth:1.15,\r\n letterSpacing: 1.15,\r\n marginBottom: \"1.5em\",\r\n\r\n }\r\n}))\r\n\r\n\r\nexport const BannerButton = styled(Button)(({ theme })=>({\r\n color: Colors.white,\r\n background: theme.palette.primary.main,\r\n fontSize: '25px'\r\n \r\n}))","import React from \"react\";\r\n\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport { BannerContainer, BannerContent, BannerDescription, BannerImage, BannerTittle, BannerButton } from \"../head/styles\";\r\n\r\nexport default function HeadContainer(props){\r\n\r\n const theme = useTheme();\r\n\r\n return(\r\n <BannerContainer sx={{height:'680px'}} json={props.json}>\r\n <BannerContent>\r\n {props.children}\r\n </BannerContent>\r\n </BannerContainer>\r\n );\r\n}","import React from \"react\"\r\nimport { BriefComponents } from \"./brief/Component\"\r\nimport { HeadComponents } from \"./head/Component\"\r\nimport HeadContainer from \"./canvas/HeadContainer\"\r\n// Section is a common class for each component\r\nexport class Section{\r\n constructor(AtomicElement) {\r\n this.child = AtomicElement\r\n }\r\n \r\n component(json){\r\n return(\r\n <HeadContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json.content, json.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n layoutList(){\r\n return(\r\n this.child.layouts()\r\n )\r\n }\r\n \r\n}\r\n\r\n//Sections is the interface with admin and store\r\nexport class Sections{\r\n constructor(){\r\n this.head = new Section(new HeadComponents()) \r\n this.brief = new Section(new BriefComponents())\r\n this.sections = [this.head, this.brief] \r\n }\r\n\r\n getSectionList(){\r\n return(\r\n {\r\n '0' : 'Header',\r\n '1': 'Brief',\r\n }\r\n )\r\n }\r\n \r\n getLayoutsFromSection(index){\r\n let section = this.sections[index] \r\n return(section)\r\n }\r\n\r\n}"],"names":["AtomicElements","layout","_proto","prototype","layouts","length","build","content","layoutId","Layout1","_content$","React","createElement","Grid","title","Card","BriefComponents","_AtomicElements","_inheritsLoose","_this","call","HeadComponents","Layout2","COLOR_PRIMARY","COLOR_SECONDARY","Colors","contrastText","grayText","success","info","danger","warning","dark","ligth","muted","border","inverse","shaft","ligth_green","ligth_green_default","green_dark","white","black","prim","sec","sec_alt","hiden","green","footer_backgound","theme","createTheme","palette","primary","main","secondary","components","MuiButtonBase","defaultProps","disableRipple","typography","button","textTransform","MuiOutlinedInput","styleOverrides","root","borderRadius","MuiButton","BannerContainer","styled","Box","_ref","_ref2","json","display","justifyContent","heigth","padding","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","breakpoints","down","flexDirection","alignItems","BannerImage","_ref3","_ref4","src","width","height","BannerContent","maxWidth","color","BannerTittle","Typography","_ref5","lineHeigth","fontSize","marginBottom","BannerDescription","_ref6","_ref7","letterSpacing","BannerButton","Button","_ref8","background","HeadContainer","props","useTheme","sx","children","Section","AtomicElement","child","component","layoutList","Sections","head","brief","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;;EACnB,IAAAC,MAAA,GAAAF,cAAA,CAAAG,SAAA;EAAAD,MAAA,CAEDE,OAAO,GAAP,SAAAA,UAAS;IACL,OACI,IAAI,CAACH,MAAM,CAACI,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACP,MAAM,CAACO,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAA,OAAAP,cAAA;AAAA;;ACXU,SAASS,OAAOA,CAACF,OAAO,EAAC;EAAA,IAAAG,SAAA;E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,KAAK,GAAG,IAAIP,OAAO,CAAC,IAAIjG,eAAe,EAAE,CAAC;IAC/C,IAAI,CAACyG,QAAQ,GAAG,CAAC,IAAI,CAACF,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC;;EACvC,IAAAE,OAAA,GAAAJ,QAAA,CAAAnH,SAAA;EAAAuH,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAgB;IACZ,OACI;MACI,GAAG,EAAG,QAAQ;MACd,GAAG,EAAE;KACR;GAER;EAAAD,OAAA,CAEDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAC;IACzB,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAOC,OAAO;GAChB;EAAA,OAAAR,QAAA;AAAA;;;;"}
package/package.json CHANGED
@@ -1,53 +1,58 @@
1
- {
2
- "name": "keski_lib_catalog",
3
- "version": "1.0.0",
4
- "description": "Keski catalog components for Keski store, Codenation Studio",
5
- "author": "Francisco Marmolejo",
6
- "license": "",
7
- "repository": "Francisco Marmolejo/keski_lib_catalog",
8
- "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
- "source": "src/index.js",
11
- "engines": {
12
- "node": ">=10"
13
- },
14
- "scripts": {
15
- "build": "microbundle-crl --no-compress --format modern,cjs",
16
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
- "prepare": "run-s build",
18
- "test": "run-s test:unit test:lint test:build",
19
- "test:build": "run-s build",
20
- "test:lint": "eslint .",
21
- "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
- "test:watch": "react-scripts test --env=jsdom",
23
- "predeploy": "cd example && npm install && npm run build",
24
- "deploy": "gh-pages -d example/build"
25
- },
26
- "peerDependencies": {
27
- "react": "^16.0.0"
28
- },
29
- "devDependencies": {
30
- "microbundle-crl": "^0.13.10",
31
- "babel-eslint": "^10.0.3",
32
- "cross-env": "^7.0.2",
33
- "eslint": "^6.8.0",
34
- "eslint-config-prettier": "^6.7.0",
35
- "eslint-config-standard": "^14.1.0",
36
- "eslint-config-standard-react": "^9.2.0",
37
- "eslint-plugin-import": "^2.18.2",
38
- "eslint-plugin-node": "^11.0.0",
39
- "eslint-plugin-prettier": "^3.1.1",
40
- "eslint-plugin-promise": "^4.2.1",
41
- "eslint-plugin-react": "^7.17.0",
42
- "eslint-plugin-standard": "^4.0.1",
43
- "gh-pages": "^2.2.0",
44
- "npm-run-all": "^4.1.5",
45
- "prettier": "^2.0.4",
46
- "react": "^16.13.1",
47
- "react-dom": "^16.13.1",
48
- "react-scripts": "^3.4.1"
49
- },
50
- "files": [
51
- "dist"
52
- ]
53
- }
1
+ {
2
+ "name": "keski_lib_catalog",
3
+ "version": "1.0.3",
4
+ "description": "Keski catalog components for Keski store, Codenation Studio",
5
+ "author": "Francisco Marmolejo",
6
+ "license": "",
7
+ "repository": "Francisco Marmolejo/keski_lib_catalog",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.modern.js",
10
+ "source": "src/index.js",
11
+ "engines": {
12
+ "node": ">=10"
13
+ },
14
+ "scripts": {
15
+ "build": "microbundle-crl --no-compress --format modern,cjs",
16
+ "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
+ "prepare": "run-s build",
18
+ "test": "run-s test:unit test:lint test:build",
19
+ "test:build": "run-s build",
20
+ "test:lint": "eslint .",
21
+ "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
+ "test:watch": "react-scripts test --env=jsdom",
23
+ "predeploy": "cd example && npm install && npm run build",
24
+ "deploy": "gh-pages -d example/build"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^16.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "babel-eslint": "^10.0.3",
31
+ "cross-env": "^7.0.2",
32
+ "eslint": "^6.8.0",
33
+ "eslint-config-prettier": "^6.7.0",
34
+ "eslint-config-standard": "^14.1.0",
35
+ "eslint-config-standard-react": "^9.2.0",
36
+ "eslint-plugin-import": "^2.18.2",
37
+ "eslint-plugin-node": "^11.0.0",
38
+ "eslint-plugin-prettier": "^3.1.1",
39
+ "eslint-plugin-promise": "^4.2.1",
40
+ "eslint-plugin-react": "^7.17.0",
41
+ "eslint-plugin-standard": "^4.0.1",
42
+ "gh-pages": "^2.2.0",
43
+ "microbundle-crl": "^0.13.10",
44
+ "npm-run-all": "^4.1.5",
45
+ "prettier": "^2.0.4",
46
+ "react": "^16.13.1",
47
+ "react-dom": "^16.13.1",
48
+ "react-scripts": "^3.4.1"
49
+ },
50
+ "files": [
51
+ "dist"
52
+ ],
53
+ "dependencies": {
54
+ "@emotion/react": "^11.11.0",
55
+ "@emotion/styled": "^11.11.0",
56
+ "@mui/material": "^5.12.3"
57
+ }
58
+ }