keski_lib_catalog 1.0.5 → 1.0.7

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 CHANGED
@@ -1,30 +1,30 @@
1
- # keski_lib_catalog
2
-
3
- > Keski catalog components for Keski store, Codenation Studio
4
-
5
- [![NPM](https://img.shields.io/npm/v/keski_lib_catalog.svg)](https://www.npmjs.com/package/keski_lib_catalog) [![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 keski_lib_catalog
11
- ```
12
-
13
- ## Usage
14
-
15
- ```jsx
16
- import React, { Component } from 'react'
17
-
18
- import MyComponent from 'keski_lib_catalog'
19
- import 'keski_lib_catalog/dist/index.css'
20
-
21
- class Example extends Component {
22
- render() {
23
- return <MyComponent />
24
- }
25
- }
26
- ```
27
-
28
- ## License
29
-
30
- © [Francisco Marmolejo](https://github.com/Francisco Marmolejo)
1
+ # keski_lib_catalog
2
+
3
+ > Keski catalog components for Keski store, Codenation Studio
4
+
5
+ [![NPM](https://img.shields.io/npm/v/keski_lib_catalog.svg)](https://www.npmjs.com/package/keski_lib_catalog) [![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 keski_lib_catalog
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```jsx
16
+ import React, { Component } from 'react'
17
+
18
+ import MyComponent from 'keski_lib_catalog'
19
+ import 'keski_lib_catalog/dist/index.css'
20
+
21
+ class Example extends Component {
22
+ render() {
23
+ return <MyComponent />
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## License
29
+
30
+ © [Francisco Marmolejo](https://github.com/Francisco Marmolejo)
package/dist/index.js CHANGED
@@ -29,8 +29,8 @@ var AtomicElements = /*#__PURE__*/function () {
29
29
  _proto.build = function build(content, layoutId) {
30
30
  return this.layout[layoutId](content);
31
31
  };
32
- _proto.footprint = function footprint(layoutId) {
33
- var img = this.layoutFootprint[layoutId];
32
+ _proto.footprint = function footprint(layout) {
33
+ var img = this.layoutFootprint[layout];
34
34
  console.log('img atomic', img);
35
35
  return img;
36
36
  };
@@ -39,44 +39,19 @@ var AtomicElements = /*#__PURE__*/function () {
39
39
 
40
40
  function Layout1(content) {
41
41
  var _content$;
42
- 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));
42
+ return /*#__PURE__*/React.createElement(material.Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : '', /*#__PURE__*/React.createElement(material.Card, null));
43
43
  }
44
44
 
45
- var BriefComponents = /*#__PURE__*/function (_AtomicElements) {
46
- _inheritsLoose(BriefComponents, _AtomicElements);
47
- function BriefComponents() {
45
+ var Brief = /*#__PURE__*/function (_AtomicElements) {
46
+ _inheritsLoose(Brief, _AtomicElements);
47
+ function Brief() {
48
48
  var _this;
49
49
  _this = _AtomicElements.call(this) || this;
50
50
  _this.layout = [Layout1];
51
+ _this.layoutFootprint = ['text_image_layout_1.png'];
51
52
  return _this;
52
53
  }
53
- return BriefComponents;
54
- }(AtomicElements);
55
-
56
- function Layout1$1(content) {
57
- var _content$;
58
- 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));
59
- }
60
-
61
- function Layout1$2(content) {
62
- var _content$;
63
- 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));
64
- }
65
-
66
- var banner_layout_1 = "banner_layout_1~tssbvgEJ.jpg";
67
-
68
- var banner_layout_2 = "banner_layout_2~tssbvgEJ.jpg";
69
-
70
- var HeadComponents = /*#__PURE__*/function (_AtomicElements) {
71
- _inheritsLoose(HeadComponents, _AtomicElements);
72
- function HeadComponents() {
73
- var _this;
74
- _this = _AtomicElements.call(this) || this;
75
- _this.layout = [Layout1$1, Layout1$2];
76
- _this.layoutFootprint = [banner_layout_1, banner_layout_2];
77
- return _this;
78
- }
79
- return HeadComponents;
54
+ return Brief;
80
55
  }(AtomicElements);
81
56
 
82
57
  var COLOR_PRIMARY = '#4CAF50';
@@ -145,15 +120,16 @@ var theme = styles.createTheme({
145
120
  });
146
121
 
147
122
  var BannerContainer = styles.styled(material.Box)(function (_ref) {
148
- var _ref2;
123
+ var _json$component$bg_im, _json$component$bg_im2, _ref2;
149
124
  var theme = _ref.theme,
150
125
  json = _ref.json;
151
126
  return _ref2 = {
152
127
  display: 'flex',
153
- justifyContent: 'center',
128
+ justifyContent: 'right',
154
129
  heigth: '100%',
155
- padding: '0px',
156
- backgroundImage: "url(" + json.backgroundImage + ")",
130
+ padding: '32px',
131
+ backgroundColor: json.component.bg_color1 && json.component.bg_type == 1 ? json.component.bg_color1 : null,
132
+ backgroundImage: (_json$component$bg_im = json.component.bg_image) !== null && _json$component$bg_im !== void 0 && _json$component$bg_im.url && json.component.bg_type === 3 ? "url(" + json.component.bg_image.url + ")" : (_json$component$bg_im2 = json.component.bg_image) !== null && _json$component$bg_im2 !== void 0 && _json$component$bg_im2.url && json.component.bg_type === 2 ? "linear-gradient(" + json.component.bg_color1 + ", " + json.component.bg_color2 + ")" : 'none',
157
133
  backgroundPosition: '0% 20%',
158
134
  backgroundSize: 'cover',
159
135
  backgroundRepeat: 'no-repeat'
@@ -186,7 +162,8 @@ var BannerContent = styles.styled(material.Box)(function () {
186
162
  display: 'flex',
187
163
  flexDirection: 'column',
188
164
  justifyContent: 'center',
189
- maxWidth: 420,
165
+ width: '100%',
166
+ maxWidth: '30%',
190
167
  padding: '30px',
191
168
  color: Colors.contrastText
192
169
  };
@@ -195,35 +172,63 @@ var BannerTittle = styles.styled(material.Typography)(function () {
195
172
  var _ref5;
196
173
  return _ref5 = {
197
174
  lineHeigth: 1.5,
198
- fontSize: '72px',
175
+ fontSize: '28px',
199
176
  marginBottom: '20px',
200
177
  color: Colors.contrastText
201
178
  }, _ref5[theme.breakpoints.down('sm')] = {
202
179
  fontSize: '42px'
203
180
  }, _ref5;
204
181
  });
205
- var BannerDescription = styles.styled(material.Typography)(function (_ref6) {
206
- var _ref7;
207
- var theme = _ref6.theme;
208
- return _ref7 = {
182
+ var BannerSubtitle = styles.styled(material.Typography)(function () {
183
+ var _ref6;
184
+ return _ref6 = {
185
+ lineHeigth: 1.5,
186
+ fontSize: '24px',
187
+ marginBottom: '20px',
188
+ color: Colors.contrastText
189
+ }, _ref6[theme.breakpoints.down('sm')] = {
190
+ fontSize: '42px'
191
+ }, _ref6;
192
+ });
193
+ var BannerDescription = styles.styled(material.Typography)(function (_ref7) {
194
+ var _ref8;
195
+ var theme = _ref7.theme;
196
+ return _ref8 = {
209
197
  lineHeigth: 1.25,
198
+ fontSize: '22px',
210
199
  letterSpacing: 1.25,
211
200
  marginBottom: "3em"
212
- }, _ref7[theme.breakpoints.down('md')] = {
201
+ }, _ref8[theme.breakpoints.down('md')] = {
213
202
  lineHeigth: 1.15,
214
203
  letterSpacing: 1.15,
215
204
  marginBottom: "1.5em"
216
- }, _ref7;
205
+ }, _ref8;
217
206
  });
218
- var BannerButton = styles.styled(material.Button)(function (_ref8) {
219
- var theme = _ref8.theme;
207
+ var BannerButton = styles.styled(material.Button)(function (_ref9) {
208
+ var theme = _ref9.theme;
220
209
  return {
221
210
  color: Colors.white,
222
211
  background: theme.palette.primary.main,
223
- fontSize: '25px'
212
+ fontSize: '24px'
224
213
  };
225
214
  });
226
215
 
216
+ function Layout1$1(content) {
217
+ return /*#__PURE__*/React.createElement(material.Box, null, /*#__PURE__*/React.createElement(BannerTittle, null, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Placeholder title'), /*#__PURE__*/React.createElement(BannerSubtitle, null, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Placeholder subtitle'), /*#__PURE__*/React.createElement(BannerDescription, null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Placeholder description'), /*#__PURE__*/React.createElement(BannerButton, null, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Placeholder button'));
218
+ }
219
+
220
+ var Banner = /*#__PURE__*/function (_AtomicElements) {
221
+ _inheritsLoose(Banner, _AtomicElements);
222
+ function Banner() {
223
+ var _this;
224
+ _this = _AtomicElements.call(this) || this;
225
+ _this.layout = [Layout1$1];
226
+ _this.layoutFootprint = ['banner_layout_1.jpg'];
227
+ return _this;
228
+ }
229
+ return Banner;
230
+ }(AtomicElements);
231
+
227
232
  function HeadContainer(props) {
228
233
  var theme = styles.useTheme();
229
234
  return /*#__PURE__*/React.createElement(BannerContainer, {
@@ -234,12 +239,15 @@ function HeadContainer(props) {
234
239
  }, /*#__PURE__*/React.createElement(BannerContent, null, props.children));
235
240
  }
236
241
 
242
+ var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
243
+
237
244
  var Section = /*#__PURE__*/function () {
238
245
  function Section(AtomicElement) {
239
246
  this.child = AtomicElement;
240
247
  }
241
248
  var _proto = Section.prototype;
242
249
  _proto.component = function component(json) {
250
+ console.log('json', json);
243
251
  return /*#__PURE__*/React.createElement(HeadContainer, {
244
252
  json: json
245
253
  }, this.child.build(json, json.component.layout));
@@ -247,7 +255,7 @@ var Section = /*#__PURE__*/function () {
247
255
  _proto.getFootPrint = function getFootPrint(layout) {
248
256
  var img = this.child.footprint(layout);
249
257
  console.log('section', img);
250
- return img;
258
+ return "" + JK_RESOURCES + img;
251
259
  };
252
260
  _proto.layoutLength = function layoutLength() {
253
261
  return this.child.layoutsLength();
@@ -256,15 +264,16 @@ var Section = /*#__PURE__*/function () {
256
264
  }();
257
265
  var Sections = /*#__PURE__*/function () {
258
266
  function Sections() {
259
- this.head = new Section(new HeadComponents());
260
- this.brief = new Section(new BriefComponents());
261
- this.sections = [this.head, this.brief];
267
+ this.banner = new Section(new Banner());
268
+ this.brief = new Section(new Brief());
269
+ this.sections = [this.banner, this.brief];
262
270
  }
263
271
  var _proto2 = Sections.prototype;
264
272
  _proto2.getSectionList = function getSectionList() {
265
273
  return {
266
- '0': 'Header',
267
- '1': 'Brief'
274
+ '0': 'Banner',
275
+ '1': 'Brief',
276
+ '2': 'Quotes'
268
277
  };
269
278
  };
270
279
  _proto2.getLayoutsFromSection = function getLayoutsFromSection(index) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
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/elements/banner_layout_1.jpg","../src/head/elements/banner_layout_2.jpg","../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 this.layoutFootprint = []\r\n }\r\n\r\n layoutsLength(){\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 footprint(layoutId){\r\n let img = this.layoutFootprint[layoutId]\r\n console.log('img atomic', img)\r\n return(\r\n img\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}","/* loaded by smart-asset */\nexport default \"banner_layout_1~tssbvgEJ.jpg\"","/* loaded by smart-asset */\nexport default \"banner_layout_2~tssbvgEJ.jpg\"","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\nimport banner_layout_1 from \"./elements/banner_layout_1.jpg\"\r\nimport banner_layout_2 from \"./elements/banner_layout_2.jpg\"\r\n\r\nexport class HeadComponents extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1, Layout2]\r\n layoutFootprint = [banner_layout_1, banner_layout_2]\r\n // layoutRequirements = [\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // }`,\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // }`,\r\n \r\n // ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n //<texinput disable={!layout.img}>\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, json.component.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n \r\n let img = this.child.footprint(layout)\r\n console.log('section', img)\r\n return(\r\n img\r\n )\r\n }\r\n\r\n layoutLength(){\r\n return(\r\n this.child.layoutsLength()\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","layoutFootprint","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","console","log","Layout1","_content$","React","createElement","Grid","title","Card","BriefComponents","_AtomicElements","_inheritsLoose","_this","call","HeadComponents","Layout2","banner_layout_1","banner_layout_2","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","getFootPrint","layoutLength","Sections","head","brief","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;;EAC5B,IAAAC,MAAA,GAAAH,cAAA,CAAAI,SAAA;EAAAD,MAAA,CAEDE,aAAa,GAAb,SAAAA,gBAAe;IACX,OACI,IAAI,CAACJ,MAAM,CAACK,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACR,MAAM,CAACQ,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAAL,MAAA,CAEDO,SAAS,GAAT,SAAAA,UAAUD,QAAQ,EAAC;IACf,IAAIE,GAAG,GAAG,IAAI,CAACT,eAAe,CAACO,QAAQ,CAAC;IACxCG,OAAO,CAACC,GAAG,CAAC,YAAY,EAAEF,GAAG,CAAC;IAC9B,OACIA,GAAG;GAEV;EAAA,OAAAX,cAAA;AAAA;;ACpBU,SAASc,OAAOA,CAACN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H,SAAS,CAACT,MAAM,CAAC;IACvCW,OAAO,CAACC,GAAG,CAAC,SAAS,EAAEF,GAAG,CAAC;IAC3B,OACEA,GAAG;GAEN;EAAAR,MAAA,CAED0H,YAAY,GAAZ,SAAAA,eAAc;IACZ,OACA,IAAI,CAACH,KAAK,CAACrH,aAAa,EAAE;GAE3B;EAAA,OAAAmH,OAAA;AAAA;AAKP,IAAaM,QAAQ;EACjB,SAAAA,WAAa;IACZ,IAAI,CAACC,IAAI,GAAG,IAAIP,OAAO,CAAC,IAAI9F,cAAc,EAAE,CAAC;IAC7C,IAAI,CAACsG,KAAK,GAAG,IAAIR,OAAO,CAAC,IAAInG,eAAe,EAAE,CAAC;IAC/C,IAAI,CAAC4G,QAAQ,GAAG,CAAC,IAAI,CAACF,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC;;EACvC,IAAAE,OAAA,GAAAJ,QAAA,CAAA1H,SAAA;EAAA8H,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
+ {"version":3,"file":"index.js","sources":["../src/atomicElement.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/theme/index.js","../src/banner/styles.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/HeadContainer.js","../example/constants.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n }\r\n\r\n layoutsLength(){\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 footprint(layout){\r\n let img = this.layoutFootprint[layout]\r\n console.log('img atomic', img)\r\n return(\r\n img\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 : ''}\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 Brief extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\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: 'right',\r\n heigth: '100%',\r\n padding: '32px',\r\n backgroundColor:\r\n json.component.bg_color1 && json.component.bg_type == 1\r\n ? json.component.bg_color1\r\n : null,\r\n backgroundImage:\r\n json.component.bg_image?.url && json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : json.component.bg_image?.url && json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : 'none',\r\n backgroundPosition: '0% 20%',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\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\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\n\r\nexport const BannerContent = styled(Box)(() => ({\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n width: '100%',\r\n maxWidth: '30%',\r\n padding: '30px',\r\n color: Colors.contrastText,\r\n}))\r\n\r\n\r\nexport const BannerTittle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '28px',\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\nexport const BannerSubtitle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '24px',\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\nexport const BannerDescription = styled(Typography)(({ theme }) => ({\r\n lineHeigth: 1.25,\r\n fontSize: '22px',\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\nexport const BannerButton = styled(Button)(({ theme }) => ({\r\n color: Colors.white,\r\n background: theme.palette.primary.main,\r\n fontSize: '24px'\r\n}))","import { Box } from '@mui/material'\r\nimport React from 'react'\r\nimport { BannerTittle, BannerSubtitle, BannerDescription, BannerButton } from '../styles'\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box>\r\n <BannerTittle>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Placeholder title'}\r\n </BannerTittle>\r\n <BannerSubtitle>\r\n {content.component.subcomponent[0].subtitle ?\r\n content.component.subcomponent[0].subtitle\r\n : 'Placeholder subtitle'}\r\n </BannerSubtitle>\r\n <BannerDescription>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Placeholder description'}\r\n </BannerDescription>\r\n <BannerButton>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Placeholder button'}\r\n </BannerButton>\r\n </Box>\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 Banner extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1]\r\n layoutFootprint = ['banner_layout_1.jpg']\r\n // layoutRequirements = [\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // }`,\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // 'name'\r\n // }`,\r\n \r\n // ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n // <texinput display={!layout.img} id='Title'>\r\n // <texinput display={!layout.img} id='content'></texinput>\r\n // <texinput display={!layout.img} id='name'></texinput>\r\n //<texinput disable={!layout.img}>\r\n}","import React from \"react\";\r\n\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport { BannerContainer, BannerContent, BannerDescription, BannerImage, BannerTittle, BannerButton } from \"../banner/styles\";\r\n\r\nexport default function HeadContainer(props){\r\n// console.log(\"🚀 ~ file: HeadContainer.js:7 ~ HeadContainer ~ props:\", props.json.component.bg_image.url)\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}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import React from \"react\"\r\nimport { Brief } from \"./brief/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport HeadContainer from \"./canvas/HeadContainer\"\r\nimport { JK_RESOURCES } from \"../example/constants\"\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 console.log('json', 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, json.component.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n let img = this.child.footprint(layout)\r\n console.log('section', img)\r\n return(\r\n `${JK_RESOURCES}${img}`\r\n )\r\n }\r\n\r\n layoutLength(){\r\n return(\r\n this.child.layoutsLength()\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.banner = new Section(new Banner()) \r\n this.brief = new Section(new Brief())\r\n this.sections = [this.banner, this.brief] \r\n }\r\n\r\n getSectionList(){\r\n return(\r\n {\r\n '0': 'Banner',\r\n '1': 'Brief',\r\n '2': 'Quotes'\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","layoutFootprint","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","console","log","Layout1","_content$","React","createElement","Grid","title","Card","Brief","_AtomicElements","_inheritsLoose","_this","call","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","_json$component$bg_im","_json$component$bg_im2","_ref2","json","display","justifyContent","heigth","padding","backgroundColor","component","bg_color1","bg_type","backgroundImage","bg_image","url","bg_color2","backgroundPosition","backgroundSize","backgroundRepeat","breakpoints","down","flexDirection","alignItems","BannerImage","_ref3","_ref4","src","width","height","BannerContent","maxWidth","color","BannerTittle","Typography","_ref5","lineHeigth","fontSize","marginBottom","BannerSubtitle","_ref6","BannerDescription","_ref7","_ref8","letterSpacing","BannerButton","Button","_ref9","background","subcomponent","subtitle","description","button_title","Banner","HeadContainer","props","useTheme","sx","children","JK_RESOURCES","Section","AtomicElement","child","getFootPrint","layoutLength","Sections","banner","brief","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;;EAC5B,IAAAC,MAAA,GAAAH,cAAA,CAAAI,SAAA;EAAAD,MAAA,CAEDE,aAAa,GAAb,SAAAA,gBAAe;IACX,OACI,IAAI,CAACJ,MAAM,CAACK,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACR,MAAM,CAACQ,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAAL,MAAA,CAEDO,SAAS,GAAT,SAAAA,UAAUT,MAAM,EAAC;IACb,IAAIU,GAAG,GAAG,IAAI,CAACT,eAAe,CAACD,MAAM,CAAC;IACtCW,OAAO,CAACC,GAAG,CAAC,YAAY,EAAEF,GAAG,CAAC;IAC9B,OACIA,GAAG;GAEV;EAAA,OAAAX,cAAA;AAAA;;ACpBU,SAASc,OAAOA,CAACN,OAAO,EAAC;EAAA,IAAAO,SAAA;EACpC,oBACIC,KAAA,CAAAC,aAAA,CAACC,aAAI,QACD,CAAAH,SAAA,GAAAP,OAAO,CAAC,GAAG,CAAC,cAAAO,SAAA,eAAZA,SAAA,CAAcI,KAAK,GAAGX,OAAO,CAAC,GAAG,CAAC,CAACW,KAAK,GAAG,EAAE,eAC7CH,KAAA,CAAAC,aAAA,CAACG,aAAI,M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G;GAExB;EAAAR,MAAA,CAEDsI,YAAY,GAAZ,SAAAA,eAAc;IACZ,OACA,IAAI,CAACF,KAAK,CAAClI,aAAa,EAAE;GAE3B;EAAA,OAAAgI,OAAA;AAAA;AAKP,IAAaK,QAAQ;EACjB,SAAAA,WAAa;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIN,OAAO,CAAC,IAAIP,MAAM,EAAE,CAAC;IACvC,IAAI,CAACc,KAAK,GAAG,IAAIP,OAAO,CAAC,IAAIhH,KAAK,EAAE,CAAC;IACrC,IAAI,CAACwH,QAAQ,GAAG,CAAC,IAAI,CAACF,MAAM,EAAE,IAAI,CAACC,KAAK,CAAC;;EACzC,IAAAE,OAAA,GAAAJ,QAAA,CAAAtI,SAAA;EAAA0I,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAgB;IACZ,OACI;MACI,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,OAAO;MACZ,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;;;;"}
@@ -27,8 +27,8 @@ var AtomicElements = /*#__PURE__*/function () {
27
27
  _proto.build = function build(content, layoutId) {
28
28
  return this.layout[layoutId](content);
29
29
  };
30
- _proto.footprint = function footprint(layoutId) {
31
- var img = this.layoutFootprint[layoutId];
30
+ _proto.footprint = function footprint(layout) {
31
+ var img = this.layoutFootprint[layout];
32
32
  console.log('img atomic', img);
33
33
  return img;
34
34
  };
@@ -37,44 +37,19 @@ var AtomicElements = /*#__PURE__*/function () {
37
37
 
38
38
  function Layout1(content) {
39
39
  var _content$;
40
- return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(Card, null));
40
+ return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : '', /*#__PURE__*/React.createElement(Card, null));
41
41
  }
42
42
 
43
- var BriefComponents = /*#__PURE__*/function (_AtomicElements) {
44
- _inheritsLoose(BriefComponents, _AtomicElements);
45
- function BriefComponents() {
43
+ var Brief = /*#__PURE__*/function (_AtomicElements) {
44
+ _inheritsLoose(Brief, _AtomicElements);
45
+ function Brief() {
46
46
  var _this;
47
47
  _this = _AtomicElements.call(this) || this;
48
48
  _this.layout = [Layout1];
49
+ _this.layoutFootprint = ['text_image_layout_1.png'];
49
50
  return _this;
50
51
  }
51
- return BriefComponents;
52
- }(AtomicElements);
53
-
54
- function Layout1$1(content) {
55
- var _content$;
56
- return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(Card, null));
57
- }
58
-
59
- function Layout1$2(content) {
60
- var _content$;
61
- return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : 'placeholder', /*#__PURE__*/React.createElement(Card, null));
62
- }
63
-
64
- var banner_layout_1 = "banner_layout_1~tssbvgEJ.jpg";
65
-
66
- var banner_layout_2 = "banner_layout_2~tssbvgEJ.jpg";
67
-
68
- var HeadComponents = /*#__PURE__*/function (_AtomicElements) {
69
- _inheritsLoose(HeadComponents, _AtomicElements);
70
- function HeadComponents() {
71
- var _this;
72
- _this = _AtomicElements.call(this) || this;
73
- _this.layout = [Layout1$1, Layout1$2];
74
- _this.layoutFootprint = [banner_layout_1, banner_layout_2];
75
- return _this;
76
- }
77
- return HeadComponents;
52
+ return Brief;
78
53
  }(AtomicElements);
79
54
 
80
55
  var COLOR_PRIMARY = '#4CAF50';
@@ -143,15 +118,16 @@ var theme = createTheme({
143
118
  });
144
119
 
145
120
  var BannerContainer = styled(Box)(function (_ref) {
146
- var _ref2;
121
+ var _json$component$bg_im, _json$component$bg_im2, _ref2;
147
122
  var theme = _ref.theme,
148
123
  json = _ref.json;
149
124
  return _ref2 = {
150
125
  display: 'flex',
151
- justifyContent: 'center',
126
+ justifyContent: 'right',
152
127
  heigth: '100%',
153
- padding: '0px',
154
- backgroundImage: "url(" + json.backgroundImage + ")",
128
+ padding: '32px',
129
+ backgroundColor: json.component.bg_color1 && json.component.bg_type == 1 ? json.component.bg_color1 : null,
130
+ backgroundImage: (_json$component$bg_im = json.component.bg_image) !== null && _json$component$bg_im !== void 0 && _json$component$bg_im.url && json.component.bg_type === 3 ? "url(" + json.component.bg_image.url + ")" : (_json$component$bg_im2 = json.component.bg_image) !== null && _json$component$bg_im2 !== void 0 && _json$component$bg_im2.url && json.component.bg_type === 2 ? "linear-gradient(" + json.component.bg_color1 + ", " + json.component.bg_color2 + ")" : 'none',
155
131
  backgroundPosition: '0% 20%',
156
132
  backgroundSize: 'cover',
157
133
  backgroundRepeat: 'no-repeat'
@@ -184,7 +160,8 @@ var BannerContent = styled(Box)(function () {
184
160
  display: 'flex',
185
161
  flexDirection: 'column',
186
162
  justifyContent: 'center',
187
- maxWidth: 420,
163
+ width: '100%',
164
+ maxWidth: '30%',
188
165
  padding: '30px',
189
166
  color: Colors.contrastText
190
167
  };
@@ -193,35 +170,63 @@ var BannerTittle = styled(Typography)(function () {
193
170
  var _ref5;
194
171
  return _ref5 = {
195
172
  lineHeigth: 1.5,
196
- fontSize: '72px',
173
+ fontSize: '28px',
197
174
  marginBottom: '20px',
198
175
  color: Colors.contrastText
199
176
  }, _ref5[theme.breakpoints.down('sm')] = {
200
177
  fontSize: '42px'
201
178
  }, _ref5;
202
179
  });
203
- var BannerDescription = styled(Typography)(function (_ref6) {
204
- var _ref7;
205
- var theme = _ref6.theme;
206
- return _ref7 = {
180
+ var BannerSubtitle = styled(Typography)(function () {
181
+ var _ref6;
182
+ return _ref6 = {
183
+ lineHeigth: 1.5,
184
+ fontSize: '24px',
185
+ marginBottom: '20px',
186
+ color: Colors.contrastText
187
+ }, _ref6[theme.breakpoints.down('sm')] = {
188
+ fontSize: '42px'
189
+ }, _ref6;
190
+ });
191
+ var BannerDescription = styled(Typography)(function (_ref7) {
192
+ var _ref8;
193
+ var theme = _ref7.theme;
194
+ return _ref8 = {
207
195
  lineHeigth: 1.25,
196
+ fontSize: '22px',
208
197
  letterSpacing: 1.25,
209
198
  marginBottom: "3em"
210
- }, _ref7[theme.breakpoints.down('md')] = {
199
+ }, _ref8[theme.breakpoints.down('md')] = {
211
200
  lineHeigth: 1.15,
212
201
  letterSpacing: 1.15,
213
202
  marginBottom: "1.5em"
214
- }, _ref7;
203
+ }, _ref8;
215
204
  });
216
- var BannerButton = styled(Button)(function (_ref8) {
217
- var theme = _ref8.theme;
205
+ var BannerButton = styled(Button)(function (_ref9) {
206
+ var theme = _ref9.theme;
218
207
  return {
219
208
  color: Colors.white,
220
209
  background: theme.palette.primary.main,
221
- fontSize: '25px'
210
+ fontSize: '24px'
222
211
  };
223
212
  });
224
213
 
214
+ function Layout1$1(content) {
215
+ return /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(BannerTittle, null, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Placeholder title'), /*#__PURE__*/React.createElement(BannerSubtitle, null, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Placeholder subtitle'), /*#__PURE__*/React.createElement(BannerDescription, null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Placeholder description'), /*#__PURE__*/React.createElement(BannerButton, null, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Placeholder button'));
216
+ }
217
+
218
+ var Banner = /*#__PURE__*/function (_AtomicElements) {
219
+ _inheritsLoose(Banner, _AtomicElements);
220
+ function Banner() {
221
+ var _this;
222
+ _this = _AtomicElements.call(this) || this;
223
+ _this.layout = [Layout1$1];
224
+ _this.layoutFootprint = ['banner_layout_1.jpg'];
225
+ return _this;
226
+ }
227
+ return Banner;
228
+ }(AtomicElements);
229
+
225
230
  function HeadContainer(props) {
226
231
  var theme = useTheme();
227
232
  return /*#__PURE__*/React.createElement(BannerContainer, {
@@ -232,12 +237,15 @@ function HeadContainer(props) {
232
237
  }, /*#__PURE__*/React.createElement(BannerContent, null, props.children));
233
238
  }
234
239
 
240
+ var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
241
+
235
242
  var Section = /*#__PURE__*/function () {
236
243
  function Section(AtomicElement) {
237
244
  this.child = AtomicElement;
238
245
  }
239
246
  var _proto = Section.prototype;
240
247
  _proto.component = function component(json) {
248
+ console.log('json', json);
241
249
  return /*#__PURE__*/React.createElement(HeadContainer, {
242
250
  json: json
243
251
  }, this.child.build(json, json.component.layout));
@@ -245,7 +253,7 @@ var Section = /*#__PURE__*/function () {
245
253
  _proto.getFootPrint = function getFootPrint(layout) {
246
254
  var img = this.child.footprint(layout);
247
255
  console.log('section', img);
248
- return img;
256
+ return "" + JK_RESOURCES + img;
249
257
  };
250
258
  _proto.layoutLength = function layoutLength() {
251
259
  return this.child.layoutsLength();
@@ -254,15 +262,16 @@ var Section = /*#__PURE__*/function () {
254
262
  }();
255
263
  var Sections = /*#__PURE__*/function () {
256
264
  function Sections() {
257
- this.head = new Section(new HeadComponents());
258
- this.brief = new Section(new BriefComponents());
259
- this.sections = [this.head, this.brief];
265
+ this.banner = new Section(new Banner());
266
+ this.brief = new Section(new Brief());
267
+ this.sections = [this.banner, this.brief];
260
268
  }
261
269
  var _proto2 = Sections.prototype;
262
270
  _proto2.getSectionList = function getSectionList() {
263
271
  return {
264
- '0': 'Header',
265
- '1': 'Brief'
272
+ '0': 'Banner',
273
+ '1': 'Brief',
274
+ '2': 'Quotes'
266
275
  };
267
276
  };
268
277
  _proto2.getLayoutsFromSection = function getLayoutsFromSection(index) {
@@ -1 +1 @@
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/elements/banner_layout_1.jpg","../src/head/elements/banner_layout_2.jpg","../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 this.layoutFootprint = []\r\n }\r\n\r\n layoutsLength(){\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 footprint(layoutId){\r\n let img = this.layoutFootprint[layoutId]\r\n console.log('img atomic', img)\r\n return(\r\n img\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}","/* loaded by smart-asset */\nexport default \"banner_layout_1~tssbvgEJ.jpg\"","/* loaded by smart-asset */\nexport default \"banner_layout_2~tssbvgEJ.jpg\"","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\nimport banner_layout_1 from \"./elements/banner_layout_1.jpg\"\r\nimport banner_layout_2 from \"./elements/banner_layout_2.jpg\"\r\n\r\nexport class HeadComponents extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1, Layout2]\r\n layoutFootprint = [banner_layout_1, banner_layout_2]\r\n // layoutRequirements = [\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // }`,\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // }`,\r\n \r\n // ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n //<texinput disable={!layout.img}>\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, json.component.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n \r\n let img = this.child.footprint(layout)\r\n console.log('section', img)\r\n return(\r\n img\r\n )\r\n }\r\n\r\n layoutLength(){\r\n return(\r\n this.child.layoutsLength()\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","layoutFootprint","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","console","log","Layout1","_content$","React","createElement","Grid","title","Card","BriefComponents","_AtomicElements","_inheritsLoose","_this","call","HeadComponents","Layout2","banner_layout_1","banner_layout_2","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","getFootPrint","layoutLength","Sections","head","brief","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;;EAC5B,IAAAC,MAAA,GAAAH,cAAA,CAAAI,SAAA;EAAAD,MAAA,CAEDE,aAAa,GAAb,SAAAA,gBAAe;IACX,OACI,IAAI,CAACJ,MAAM,CAACK,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACR,MAAM,CAACQ,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAAL,MAAA,CAEDO,SAAS,GAAT,SAAAA,UAAUD,QAAQ,EAAC;IACf,IAAIE,GAAG,GAAG,IAAI,CAACT,eAAe,CAACO,QAAQ,CAAC;IACxCG,OAAO,CAACC,GAAG,CAAC,YAAY,EAAEF,GAAG,CAAC;IAC9B,OACIA,GAAG;GAEV;EAAA,OAAAX,cAAA;AAAA;;ACpBU,SAASc,OAAOA,CAACN,OAAO,EAAC;EAAA,IAAAO,SAAA;EACpC,oBACIC,KAAA,CAAAC,aAAA,CAACC,IAAI,QACD,CAAAH,SAAA,GAAAP,OAAO,CAAC,GAAG,CAAC,cAAAO,SAAA,eAAZA,SAAA,CAAcI,KAAK,GAAGX,OAAO,CAAC,GAAG,CAAC,CAACW,KAAK,GAAG,aAAa,eACxDH,KAAA,CAAAC,aAAA,CAACG,IAAI,MAIC,CACJ,CAAC;AAEf;;ICZaC,eAAe,0BAAAC,eAAA;EAAAC,cAAA,CAAAF,eAAA,EAAAC,eAAA;EACxB,SAAAD,kBAAc;IAAA,IAAAG,KAAA;IACZA,KAAA,GAAAF,eAAA,CAAAG,IAAA,KAAM,CAAC;IAAAD,KAAA,CAET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,CAAC,IAAI,CAACF,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC;;EACvC,IAAAE,OAAA,GAAAJ,QAAA,CAAA1H,SAAA;EAAA8H,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
+ {"version":3,"file":"index.modern.js","sources":["../src/atomicElement.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/theme/index.js","../src/banner/styles.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/HeadContainer.js","../example/constants.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n }\r\n\r\n layoutsLength(){\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 footprint(layout){\r\n let img = this.layoutFootprint[layout]\r\n console.log('img atomic', img)\r\n return(\r\n img\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 : ''}\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 Brief extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\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: 'right',\r\n heigth: '100%',\r\n padding: '32px',\r\n backgroundColor:\r\n json.component.bg_color1 && json.component.bg_type == 1\r\n ? json.component.bg_color1\r\n : null,\r\n backgroundImage:\r\n json.component.bg_image?.url && json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : json.component.bg_image?.url && json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : 'none',\r\n backgroundPosition: '0% 20%',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\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\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\n\r\nexport const BannerContent = styled(Box)(() => ({\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n width: '100%',\r\n maxWidth: '30%',\r\n padding: '30px',\r\n color: Colors.contrastText,\r\n}))\r\n\r\n\r\nexport const BannerTittle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '28px',\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\nexport const BannerSubtitle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '24px',\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\nexport const BannerDescription = styled(Typography)(({ theme }) => ({\r\n lineHeigth: 1.25,\r\n fontSize: '22px',\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\nexport const BannerButton = styled(Button)(({ theme }) => ({\r\n color: Colors.white,\r\n background: theme.palette.primary.main,\r\n fontSize: '24px'\r\n}))","import { Box } from '@mui/material'\r\nimport React from 'react'\r\nimport { BannerTittle, BannerSubtitle, BannerDescription, BannerButton } from '../styles'\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box>\r\n <BannerTittle>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Placeholder title'}\r\n </BannerTittle>\r\n <BannerSubtitle>\r\n {content.component.subcomponent[0].subtitle ?\r\n content.component.subcomponent[0].subtitle\r\n : 'Placeholder subtitle'}\r\n </BannerSubtitle>\r\n <BannerDescription>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Placeholder description'}\r\n </BannerDescription>\r\n <BannerButton>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Placeholder button'}\r\n </BannerButton>\r\n </Box>\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 Banner extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1]\r\n layoutFootprint = ['banner_layout_1.jpg']\r\n // layoutRequirements = [\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // }`,\r\n // `{\r\n // 'title'\r\n // 'content'\r\n // 'name'\r\n // }`,\r\n \r\n // ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n // <texinput display={!layout.img} id='Title'>\r\n // <texinput display={!layout.img} id='content'></texinput>\r\n // <texinput display={!layout.img} id='name'></texinput>\r\n //<texinput disable={!layout.img}>\r\n}","import React from \"react\";\r\n\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport { BannerContainer, BannerContent, BannerDescription, BannerImage, BannerTittle, BannerButton } from \"../banner/styles\";\r\n\r\nexport default function HeadContainer(props){\r\n// console.log(\"🚀 ~ file: HeadContainer.js:7 ~ HeadContainer ~ props:\", props.json.component.bg_image.url)\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}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import React from \"react\"\r\nimport { Brief } from \"./brief/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport HeadContainer from \"./canvas/HeadContainer\"\r\nimport { JK_RESOURCES } from \"../example/constants\"\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 console.log('json', 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, json.component.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n let img = this.child.footprint(layout)\r\n console.log('section', img)\r\n return(\r\n `${JK_RESOURCES}${img}`\r\n )\r\n }\r\n\r\n layoutLength(){\r\n return(\r\n this.child.layoutsLength()\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.banner = new Section(new Banner()) \r\n this.brief = new Section(new Brief())\r\n this.sections = [this.banner, this.brief] \r\n }\r\n\r\n getSectionList(){\r\n return(\r\n {\r\n '0': 'Banner',\r\n '1': 'Brief',\r\n '2': 'Quotes'\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","layoutFootprint","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","console","log","Layout1","_content$","React","createElement","Grid","title","Card","Brief","_AtomicElements","_inheritsLoose","_this","call","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","_json$component$bg_im","_json$component$bg_im2","_ref2","json","display","justifyContent","heigth","padding","backgroundColor","component","bg_color1","bg_type","backgroundImage","bg_image","url","bg_color2","backgroundPosition","backgroundSize","backgroundRepeat","breakpoints","down","flexDirection","alignItems","BannerImage","_ref3","_ref4","src","width","height","BannerContent","maxWidth","color","BannerTittle","Typography","_ref5","lineHeigth","fontSize","marginBottom","BannerSubtitle","_ref6","BannerDescription","_ref7","_ref8","letterSpacing","BannerButton","Button","_ref9","background","subcomponent","subtitle","description","button_title","Banner","HeadContainer","props","useTheme","sx","children","JK_RESOURCES","Section","AtomicElement","child","getFootPrint","layoutLength","Sections","banner","brief","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;;EAC5B,IAAAC,MAAA,GAAAH,cAAA,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AA0I,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAgB;IACZ,OACI;MACI,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,OAAO;MACZ,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,6 +1,6 @@
1
1
  {
2
2
  "name": "keski_lib_catalog",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Keski catalog components for Keski store, Codenation Studio",
5
5
  "author": "Francisco Marmolejo",
6
6
  "license": "",
package/dist/index.css DELETED
@@ -1,9 +0,0 @@
1
- /* add css module styles here (optional) */
2
-
3
- ._styles-module__test__3ybTi {
4
- margin: 2em;
5
- padding: 0.5em;
6
- border: 2px solid #000;
7
- font-size: 2em;
8
- text-align: center;
9
- }
Binary file
Binary file