keski_lib_catalog 1.0.11 → 1.0.13

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/dist/index.js CHANGED
@@ -1,9 +1,24 @@
1
1
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
2
2
 
3
- var React = _interopDefault(require('react'));
3
+ var React = require('react');
4
+ var React__default = _interopDefault(React);
4
5
  var material = require('@mui/material');
5
- var styles = require('@mui/material/styles');
6
+ var Grow = _interopDefault(require('@mui/material/Grow'));
6
7
 
8
+ function _extends() {
9
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
10
+ for (var i = 1; i < arguments.length; i++) {
11
+ var source = arguments[i];
12
+ for (var key in source) {
13
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
14
+ target[key] = source[key];
15
+ }
16
+ }
17
+ }
18
+ return target;
19
+ };
20
+ return _extends.apply(this, arguments);
21
+ }
7
22
  function _inheritsLoose(subClass, superClass) {
8
23
  subClass.prototype = Object.create(superClass.prototype);
9
24
  subClass.prototype.constructor = subClass;
@@ -42,151 +57,68 @@ var AtomicElements = /*#__PURE__*/function () {
42
57
  return AtomicElements;
43
58
  }();
44
59
 
45
- var COLOR_PRIMARY = '#4CAF50';
46
- var COLOR_SECONDARY = '#FF5722';
47
- var Colors = {
48
- contrastText: '#fff',
49
- grayText: "#8a8a8a",
50
- success: "#00A650",
51
- info: "#3483FA",
52
- danger: "#B12704",
53
- warning: "#FFC107",
54
- dark: "#0e1b20",
55
- ligth: "#aaa",
56
- muted: "#abafb3",
57
- border: "#DDDFE1",
58
- inverse: "#2F3D4A",
59
- shaft: "#333",
60
- ligth_green: "#9ad28a",
61
- ligth_green_default: "#9ad29c",
62
- green_dark: "#6fbf73",
63
- white: "#fff",
64
- black: "#000",
65
- prim: "#292929",
66
- sec: "#545454",
67
- sec_alt: "#767676",
68
- hiden: "#C8C8C8",
69
- green: "#6fbf73",
70
- footer_backgound: "#f4f4f4"
71
- };
72
- var theme = styles.createTheme({
73
- palette: {
74
- primary: {
75
- main: COLOR_PRIMARY
76
- },
77
- secondary: {
78
- main: COLOR_SECONDARY
79
- }
80
- },
81
- components: {
82
- MuiButtonBase: {
83
- defaultProps: {
84
- disableRipple: true
85
- }
86
- },
87
- typography: {
88
- button: {
89
- textTransform: 'none'
90
- }
91
- },
92
- MuiOutlinedInput: {
93
- styleOverrides: {
94
- root: {
95
- borderRadius: '90px'
96
- }
97
- }
98
- },
99
- MuiButton: {
100
- styleOverrides: {
101
- root: {
102
- borderRadius: '90px',
103
- textTransform: 'initial'
104
- }
105
- }
106
- }
107
- }
108
- });
109
-
110
60
  function Layout1(content) {
111
- return /*#__PURE__*/React.createElement(material.Box, null, /*#__PURE__*/React.createElement(material.Typography, {
112
- className: "title-xlarge",
113
- sx: {
114
- color: Colors.contrastText,
115
- marginBottom: '16px'
116
- }
117
- }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React.createElement(material.Typography, {
61
+ var visible = true;
62
+ return /*#__PURE__*/React__default.createElement(material.Slide, {
63
+ direction: "left",
64
+ "in": visible
65
+ }, /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Typography, {
118
66
  className: "title-large",
119
67
  sx: {
120
- color: Colors.contrastText,
121
68
  marginBottom: '16px'
122
69
  }
123
- }, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(material.Typography, {
124
- variant: "subtitle1",
70
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React__default.createElement(material.Typography, {
71
+ className: "small",
125
72
  sx: {
126
- color: Colors.contrastText,
127
73
  marginBottom: '16px'
128
74
  }
129
- }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(material.Button, {
130
- variant: "contained",
131
- sx: {
132
- width: '100%',
133
- marginBottom: '16px'
134
- }
135
- }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
75
+ }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción')));
136
76
  }
137
77
 
138
- var Brief = /*#__PURE__*/function (_AtomicElements) {
139
- _inheritsLoose(Brief, _AtomicElements);
140
- function Brief() {
78
+ var Quotes = /*#__PURE__*/function (_AtomicElements) {
79
+ _inheritsLoose(Quotes, _AtomicElements);
80
+ function Quotes() {
141
81
  var _this;
142
82
  _this = _AtomicElements.call(this) || this;
143
83
  _this.layout = [Layout1];
144
- _this.layoutFootprint = ['text_image_layout_1.png'];
84
+ _this.layoutFootprint = ['quotes_layout_1.png'];
145
85
  _this.layoutFootprintReq = [{
146
86
  'title': 'Tittle',
147
87
  'content': 'Content'
148
- }, {
149
- 'title': 'Tittle',
150
- 'content': 'Content',
151
- 'name': 'Name'
152
88
  }];
153
89
  return _this;
154
90
  }
155
- return Brief;
91
+ return Quotes;
156
92
  }(AtomicElements);
157
93
 
158
94
  function Layout1$1(content) {
159
- return /*#__PURE__*/React.createElement(material.Box, {
95
+ var visible = true;
96
+ return /*#__PURE__*/React__default.createElement(material.Slide, {
97
+ direction: "left",
98
+ "in": visible
99
+ }, /*#__PURE__*/React__default.createElement(material.Box, {
160
100
  sx: {
161
101
  display: 'flex',
162
102
  flexDirection: 'column',
163
103
  justifyContent: 'center'
164
104
  }
165
- }, /*#__PURE__*/React.createElement(material.Typography, {
105
+ }, /*#__PURE__*/React__default.createElement(material.Typography, {
166
106
  className: "title-xlarge",
167
107
  sx: {
168
- color: Colors.contrastText,
169
- marginBottom: '16px'
170
- }
171
- }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React.createElement(material.Typography, {
172
- className: "title-large",
173
- sx: {
174
- color: Colors.contrastText,
175
108
  marginBottom: '16px'
176
109
  }
177
- }, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(material.Typography, {
110
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React__default.createElement(material.Typography, {
178
111
  className: "title",
179
112
  sx: {
180
- color: Colors.contrastText,
181
113
  marginBottom: '16px'
182
114
  }
183
- }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(material.Button, {
115
+ }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React__default.createElement(material.Button, {
184
116
  variant: "contained",
185
117
  sx: {
186
118
  width: '100%',
187
119
  marginBottom: '16px'
188
120
  }
189
- }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
121
+ }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón')));
190
122
  }
191
123
 
192
124
  var Banner = /*#__PURE__*/function (_AtomicElements) {
@@ -212,9 +144,8 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
212
144
  function CanvasContainer(props) {
213
145
  var json = props.json,
214
146
  children = props.children;
215
- return /*#__PURE__*/React.createElement(material.Box, {
147
+ return /*#__PURE__*/React__default.createElement(material.Box, {
216
148
  sx: {
217
- minHeight: '680px',
218
149
  padding: '32px',
219
150
  display: 'flex',
220
151
  alignItems: 'center',
@@ -224,7 +155,7 @@ function CanvasContainer(props) {
224
155
  backgroundSize: 'cover',
225
156
  backgroundRepeat: 'no-repeat'
226
157
  }
227
- }, /*#__PURE__*/React.createElement(material.Container, {
158
+ }, /*#__PURE__*/React__default.createElement(material.Container, {
228
159
  maxWidth: "xl",
229
160
  sx: {
230
161
  display: 'flex',
@@ -233,9 +164,9 @@ function CanvasContainer(props) {
233
164
  md: json.component.justify_content ? json.component.justify_content : 'center'
234
165
  }
235
166
  }
236
- }, /*#__PURE__*/React.createElement(material.Box, {
167
+ }, /*#__PURE__*/React__default.createElement(material.Box, {
237
168
  sx: {
238
- maxWidth: {
169
+ minWidth: {
239
170
  xs: '100%',
240
171
  md: '30%'
241
172
  }
@@ -245,14 +176,108 @@ function CanvasContainer(props) {
245
176
 
246
177
  var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
247
178
 
179
+ function Layout1$2(content) {
180
+ var visible = true;
181
+ return /*#__PURE__*/React__default.createElement(material.Grid, {
182
+ container: true,
183
+ direction: "row",
184
+ justifyContent: "center",
185
+ alignItems: "center",
186
+ width: '100%'
187
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
188
+ item: true,
189
+ xs: true,
190
+ className: ""
191
+ }, /*#__PURE__*/React__default.createElement(material.Slide, {
192
+ direction: "right",
193
+ "in": visible
194
+ }, /*#__PURE__*/React__default.createElement(material.Box, {
195
+ sx: {
196
+ maxWidth: {
197
+ xl: '600px',
198
+ md: '400px',
199
+ xs: '350px'
200
+ }
201
+ },
202
+ margin: 'auto'
203
+ }, /*#__PURE__*/React__default.createElement("img", {
204
+ height: "auto",
205
+ width: "100%",
206
+ src: content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'
207
+ })))), /*#__PURE__*/React__default.createElement(Grow, _extends({
208
+ "in": visible,
209
+ style: {
210
+ transformOrigin: '0 0 0'
211
+ }
212
+ }, {
213
+ timeout: 1000
214
+ } ), /*#__PURE__*/React__default.createElement(material.Grid, {
215
+ item: true,
216
+ sx: true
217
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
218
+ container: true,
219
+ direction: "column",
220
+ justifyContent: "center",
221
+ alignItems: "start",
222
+ style: {
223
+ border: '1px',
224
+ borderColor: 'black',
225
+ padding: '32px'
226
+ }
227
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
228
+ item: true,
229
+ sx: true
230
+ }, /*#__PURE__*/React__default.createElement("a", {
231
+ className: "title-xlarge"
232
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title')), /*#__PURE__*/React__default.createElement(material.Grid, {
233
+ item: true,
234
+ sx: true,
235
+ width: {
236
+ md: '70vh',
237
+ xs: 'auto'
238
+ },
239
+ height: "auto",
240
+ minHeight: {
241
+ md: '200px',
242
+ xs: 'auto'
243
+ },
244
+ textAlign: 'justify'
245
+ }, /*#__PURE__*/React__default.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content')), /*#__PURE__*/React__default.createElement(material.Grid, {
246
+ item: true,
247
+ sx: true
248
+ }, /*#__PURE__*/React__default.createElement(material.Button, {
249
+ variant: "contained",
250
+ color: "secondary"
251
+ }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Content'))))));
252
+ }
253
+
254
+ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
255
+ _inheritsLoose(TextPlusImg, _AtomicElements);
256
+ function TextPlusImg() {
257
+ var _this;
258
+ _this = _AtomicElements.call(this) || this;
259
+ _this.layout = [Layout1$2];
260
+ _this.layoutFootprint = ['text_image_layout_1.png'];
261
+ _this.layoutFootprintReq = [{
262
+ 'title': 'Title',
263
+ 'description': 'Text',
264
+ 'button_title': 'Button Title',
265
+ 'button_action': 'Button Action',
266
+ 'image': 'Image'
267
+ }];
268
+ return _this;
269
+ }
270
+ return TextPlusImg;
271
+ }(AtomicElements);
272
+
248
273
  var Section = /*#__PURE__*/function () {
249
- function Section(AtomicElement) {
274
+ function Section(AtomicElement, theme) {
250
275
  this.child = AtomicElement;
251
276
  }
252
277
  var _proto = Section.prototype;
253
278
  _proto.component = function component(json) {
254
279
  console.log('json', json);
255
- return /*#__PURE__*/React.createElement(CanvasContainer, {
280
+ return /*#__PURE__*/React__default.createElement(CanvasContainer, {
256
281
  json: json
257
282
  }, this.child.build(json, json.component.layout));
258
283
  };
@@ -272,14 +297,15 @@ var Section = /*#__PURE__*/function () {
272
297
  var Sections = /*#__PURE__*/function () {
273
298
  function Sections() {
274
299
  this.banner = new Section(new Banner());
275
- this.brief = new Section(new Brief());
276
- this.sections = [this.banner, this.brief];
300
+ this.quotes = new Section(new Quotes());
301
+ this.textPlusImg = new Section(new TextPlusImg());
302
+ this.sections = [this.banner, this.textPlusImg, this.quotes];
277
303
  }
278
304
  var _proto2 = Sections.prototype;
279
305
  _proto2.getSectionList = function getSectionList() {
280
306
  return {
281
307
  '0': 'Banner',
282
- '1': 'Brief',
308
+ '1': 'Text + Img',
283
309
  '2': 'Quotes'
284
310
  };
285
311
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/atomicElement.js","../src/theme/index.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../example/constants.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\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 let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\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 React from \"react\"\r\nimport { Box, Typography, Button } from \"@mui/material\";\r\nimport { Colors } from \"../../theme\";\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box>\r\n <Typography className=\"title-xlarge\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title-large\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].subtitle\r\n ? content.component.subcomponent[0].subtitle\r\n : 'Agregue subtítulo'}\r\n </Typography>\r\n <Typography variant=\"subtitle1\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\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 layoutFootprintReq = [\r\n {\r\n 'title': 'Tittle',\r\n 'content': 'Content',\r\n },\r\n {\r\n 'title': 'Tittle',\r\n 'content': 'Content',\r\n 'name': 'Name',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n\r\n}","import { Box, Button,Typography } from '@mui/material'\r\nimport React from 'react'\r\nimport { Colors } from '../../theme'\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box sx={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>\r\n <Typography className=\"title-xlarge\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title-large\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].subtitle\r\n ? content.component.subcomponent[0].subtitle\r\n : 'Agregue subtítulo'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\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 layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'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\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n minHeight: '680px',\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl' sx={{ display: 'flex', justifyContent: { xs: 'center', md: json.component.justify_content ? json.component.justify_content : 'center' } }} >\r\n <Box sx={{ maxWidth: { xs: '100%', md: '30%' } }}>\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\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 CanvasContainer from \"./canvas/CanvasContainer\"\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 <CanvasContainer 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 </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return(\r\n {req: footPrint.req, img:`${JK_RESOURCES}${footPrint.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","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","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","Layout1","React","createElement","Box","Typography","className","sx","color","marginBottom","component","subcomponent","title","subtitle","variant","description","Button","width","button_title","Brief","_AtomicElements","_inheritsLoose","_this","call","display","flexDirection","justifyContent","Banner","CanvasContainer","props","json","children","minHeight","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","xs","md","justify_content","JK_RESOURCES","Section","AtomicElement","child","getFootPrint","footPrint","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;IACzB,IAAI,CAACC,kBAAkB,GAAG,EAAE;;EAC/B,IAAAC,MAAA,GAAAJ,cAAA,CAAAK,SAAA;EAAAD,MAAA,CAEDE,aAAa,GAAb,SAAAA,gBAAe;IACX,OACI,IAAI,CAACL,MAAM,CAACM,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACT,MAAM,CAACS,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAAL,MAAA,CAEDO,SAAS,GAAT,SAAAA,UAAUV,MAAM,EAAC;IACb,IAAIW,GAAG,GAAG,IAAI,CAACV,eAAe,CAACD,MAAM,CAAC;IACtC,IAAIY,GAAG,GAAG,IAAI,CAACV,kBAAkB,CAACF,MAAM,CAAC;IACzCa,OAAO,CAACC,GAAG,CAAC,YAAY,EAAEH,GAAG,CAAC;IAC9B,OACI;MAACC,GAAG,EAAHA,GAAG;MAAED,GAAG,EAAHA;KAAI;GAEjB;EAAA,OAAAZ,cAAA;AAAA;;ACvBL,IAAMgB,aAAa,GAAG,SAAS;AAE/B,IAAMC,eAAe,GAAG,SAAS;AAEjC,A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A,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/quotes/elements/layout1.js","../src/quotes/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../src/constants.js","../src/textPlusImg/elements/layout1.js","../src/textPlusImg/Component.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\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 let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\r\n}\r\n","import React from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box>\r\n <Typography className=\"title-large\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"small\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Quotes extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['quotes_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>\r\n <Typography className=\"title-xlarge\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Slide>\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 layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'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\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n //minHeight: '680px',//este no pueden ser estaticos\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl' sx={{ display: 'flex', justifyContent: { xs: 'center', md: json.component.justify_content ? json.component.justify_content : 'center' } }} >\r\n <Box sx={{ minWidth: { xs: '100%', md: '30%' } }}>\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import { Grid, Box, Button } from \"@mui/material\"\r\nimport React, { useState } from \"react\"\r\nimport { Slide } from \"@mui/material\";\r\nimport Grow from '@mui/material/Grow';\r\n\r\nexport default function Layout1(content) {\r\n\r\n const visible = true\r\n\r\n return (\r\n <Grid\r\n container\r\n direction=\"row\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n width={'100%'}\r\n >\r\n <Grid item xs className=\"\">\r\n <Slide direction=\"right\" in={visible}>\r\n <Box sx={{ maxWidth: { xl: '600px', md: '400px', xs: '350px' } }} margin={'auto'}>\r\n <img height=\"auto\" width=\"100%\" src={content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'}></img>\r\n </Box>\r\n </Slide>\r\n </Grid>\r\n <Grow\r\n in={visible}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(visible ? { timeout: 1000 } : {})}\r\n >\r\n <Grid item sx >\r\n <Grid container direction=\"column\" justifyContent=\"center\" alignItems=\"start\" style={{ border: '1px', borderColor: 'black', padding: '32px' }}>\r\n <Grid item sx>\r\n <a className=\"title-xlarge\">{content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title'}</a>\r\n </Grid>\r\n <Grid item sx width={{ md: '70vh', xs: 'auto' }} height=\"auto\" minHeight={{ md: '200px', xs: 'auto' }} textAlign={'justify'}>\r\n <p>{content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content'}</p>\r\n </Grid>\r\n <Grid item sx>\r\n <Button variant=\"contained\" color=\"secondary\">{content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Content'}</Button>\r\n </Grid>\r\n </Grid>\r\n </Grid>\r\n </Grow>\r\n\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class TextPlusImg extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Title',\r\n 'description':'Text',\r\n 'button_title':'Button Title',\r\n 'button_action':'Button Action',\r\n 'image':'Image',\r\n },\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import React from \"react\"\r\nimport { Quotes } from \"./quotes/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport CanvasContainer from \"./canvas/CanvasContainer\"\r\nimport { JK_RESOURCES } from \"./constants\"\r\nimport { TextPlusImg } from \"./textPlusImg/Component\"\r\n// Section is a common class for each component\r\nexport class Section {\r\n constructor(AtomicElement, theme) {\r\n this.child = AtomicElement\r\n }\r\n\r\n component(json) {\r\n console.log('json', json)\r\n return (\r\n <CanvasContainer 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 </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout) {\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return (\r\n { req: footPrint.req, img: `${JK_RESOURCES}${footPrint.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.quotes = new Section(new Quotes())\r\n this.textPlusImg = new Section(new TextPlusImg())\r\n this.sections = [this.banner, this.textPlusImg, this.quotes]\r\n }\r\n\r\n getSectionList() {\r\n return (\r\n {\r\n '0': 'Banner',\r\n '1': 'Text + Img',\r\n '2': 'Quotes',\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","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","Layout1","visible","React","createElement","Slide","direction","Box","Typography","className","sx","marginBottom","component","subcomponent","title","description","Quotes","_AtomicElements","_inheritsLoose","_this","call","display","flexDirection","justifyContent","Button","variant","width","button_title","Banner","CanvasContainer","props","json","children","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","xs","md","justify_content","minWidth","JK_RESOURCES","Grid","container","item","xl","margin","height","src","Grow","_extends","style","transformOrigin","timeout","border","borderColor","minHeight","textAlign","color","TextPlusImg","Section","AtomicElement","theme","child","getFootPrint","footPrint","layoutLength","Sections","banner","quotes","textPlusImg","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;IACzB,IAAI,CAACC,kBAAkB,GAAG,EAAE;;EAC/B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AAQ,GAAG,CAAC,IAAI,CAACH,MAAM,EAAE,IAAI,CAACE,WAAW,EAAE,IAAI,CAACD,MAAM,CAAC;;EAC7D,IAAAG,OAAA,GAAAL,QAAA,CAAAxF,SAAA;EAAA6F,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAiB;IACf,OACE;MACE,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,YAAY;MACjB,GAAG,EAAE;KACN;GAEJ;EAAAD,OAAA,CACDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAE;IAC3B,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAQC,OAAO;GAChB;EAAA,OAAAT,QAAA;AAAA;;;;"}
@@ -1,7 +1,21 @@
1
1
  import React from 'react';
2
- import { Box, Typography, Button, Container } from '@mui/material';
3
- import { createTheme } from '@mui/material/styles';
2
+ import { Slide, Box, Typography, Button, Container, Grid } from '@mui/material';
3
+ import Grow from '@mui/material/Grow';
4
4
 
5
+ function _extends() {
6
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
7
+ for (var i = 1; i < arguments.length; i++) {
8
+ var source = arguments[i];
9
+ for (var key in source) {
10
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
11
+ target[key] = source[key];
12
+ }
13
+ }
14
+ }
15
+ return target;
16
+ };
17
+ return _extends.apply(this, arguments);
18
+ }
5
19
  function _inheritsLoose(subClass, superClass) {
6
20
  subClass.prototype = Object.create(superClass.prototype);
7
21
  subClass.prototype.constructor = subClass;
@@ -40,121 +54,46 @@ var AtomicElements = /*#__PURE__*/function () {
40
54
  return AtomicElements;
41
55
  }();
42
56
 
43
- var COLOR_PRIMARY = '#4CAF50';
44
- var COLOR_SECONDARY = '#FF5722';
45
- var Colors = {
46
- contrastText: '#fff',
47
- grayText: "#8a8a8a",
48
- success: "#00A650",
49
- info: "#3483FA",
50
- danger: "#B12704",
51
- warning: "#FFC107",
52
- dark: "#0e1b20",
53
- ligth: "#aaa",
54
- muted: "#abafb3",
55
- border: "#DDDFE1",
56
- inverse: "#2F3D4A",
57
- shaft: "#333",
58
- ligth_green: "#9ad28a",
59
- ligth_green_default: "#9ad29c",
60
- green_dark: "#6fbf73",
61
- white: "#fff",
62
- black: "#000",
63
- prim: "#292929",
64
- sec: "#545454",
65
- sec_alt: "#767676",
66
- hiden: "#C8C8C8",
67
- green: "#6fbf73",
68
- footer_backgound: "#f4f4f4"
69
- };
70
- var theme = createTheme({
71
- palette: {
72
- primary: {
73
- main: COLOR_PRIMARY
74
- },
75
- secondary: {
76
- main: COLOR_SECONDARY
77
- }
78
- },
79
- components: {
80
- MuiButtonBase: {
81
- defaultProps: {
82
- disableRipple: true
83
- }
84
- },
85
- typography: {
86
- button: {
87
- textTransform: 'none'
88
- }
89
- },
90
- MuiOutlinedInput: {
91
- styleOverrides: {
92
- root: {
93
- borderRadius: '90px'
94
- }
95
- }
96
- },
97
- MuiButton: {
98
- styleOverrides: {
99
- root: {
100
- borderRadius: '90px',
101
- textTransform: 'initial'
102
- }
103
- }
104
- }
105
- }
106
- });
107
-
108
57
  function Layout1(content) {
109
- return /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Typography, {
110
- className: "title-xlarge",
111
- sx: {
112
- color: Colors.contrastText,
113
- marginBottom: '16px'
114
- }
115
- }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React.createElement(Typography, {
58
+ var visible = true;
59
+ return /*#__PURE__*/React.createElement(Slide, {
60
+ direction: "left",
61
+ "in": visible
62
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Typography, {
116
63
  className: "title-large",
117
64
  sx: {
118
- color: Colors.contrastText,
119
65
  marginBottom: '16px'
120
66
  }
121
- }, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(Typography, {
122
- variant: "subtitle1",
123
- sx: {
124
- color: Colors.contrastText,
125
- marginBottom: '16px'
126
- }
127
- }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(Button, {
128
- variant: "contained",
67
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React.createElement(Typography, {
68
+ className: "small",
129
69
  sx: {
130
- width: '100%',
131
70
  marginBottom: '16px'
132
71
  }
133
- }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
72
+ }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción')));
134
73
  }
135
74
 
136
- var Brief = /*#__PURE__*/function (_AtomicElements) {
137
- _inheritsLoose(Brief, _AtomicElements);
138
- function Brief() {
75
+ var Quotes = /*#__PURE__*/function (_AtomicElements) {
76
+ _inheritsLoose(Quotes, _AtomicElements);
77
+ function Quotes() {
139
78
  var _this;
140
79
  _this = _AtomicElements.call(this) || this;
141
80
  _this.layout = [Layout1];
142
- _this.layoutFootprint = ['text_image_layout_1.png'];
81
+ _this.layoutFootprint = ['quotes_layout_1.png'];
143
82
  _this.layoutFootprintReq = [{
144
83
  'title': 'Tittle',
145
84
  'content': 'Content'
146
- }, {
147
- 'title': 'Tittle',
148
- 'content': 'Content',
149
- 'name': 'Name'
150
85
  }];
151
86
  return _this;
152
87
  }
153
- return Brief;
88
+ return Quotes;
154
89
  }(AtomicElements);
155
90
 
156
91
  function Layout1$1(content) {
157
- return /*#__PURE__*/React.createElement(Box, {
92
+ var visible = true;
93
+ return /*#__PURE__*/React.createElement(Slide, {
94
+ direction: "left",
95
+ "in": visible
96
+ }, /*#__PURE__*/React.createElement(Box, {
158
97
  sx: {
159
98
  display: 'flex',
160
99
  flexDirection: 'column',
@@ -163,19 +102,11 @@ function Layout1$1(content) {
163
102
  }, /*#__PURE__*/React.createElement(Typography, {
164
103
  className: "title-xlarge",
165
104
  sx: {
166
- color: Colors.contrastText,
167
105
  marginBottom: '16px'
168
106
  }
169
107
  }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React.createElement(Typography, {
170
- className: "title-large",
171
- sx: {
172
- color: Colors.contrastText,
173
- marginBottom: '16px'
174
- }
175
- }, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(Typography, {
176
108
  className: "title",
177
109
  sx: {
178
- color: Colors.contrastText,
179
110
  marginBottom: '16px'
180
111
  }
181
112
  }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(Button, {
@@ -184,7 +115,7 @@ function Layout1$1(content) {
184
115
  width: '100%',
185
116
  marginBottom: '16px'
186
117
  }
187
- }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
118
+ }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón')));
188
119
  }
189
120
 
190
121
  var Banner = /*#__PURE__*/function (_AtomicElements) {
@@ -212,7 +143,6 @@ function CanvasContainer(props) {
212
143
  children = props.children;
213
144
  return /*#__PURE__*/React.createElement(Box, {
214
145
  sx: {
215
- minHeight: '680px',
216
146
  padding: '32px',
217
147
  display: 'flex',
218
148
  alignItems: 'center',
@@ -233,7 +163,7 @@ function CanvasContainer(props) {
233
163
  }
234
164
  }, /*#__PURE__*/React.createElement(Box, {
235
165
  sx: {
236
- maxWidth: {
166
+ minWidth: {
237
167
  xs: '100%',
238
168
  md: '30%'
239
169
  }
@@ -243,8 +173,102 @@ function CanvasContainer(props) {
243
173
 
244
174
  var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
245
175
 
176
+ function Layout1$2(content) {
177
+ var visible = true;
178
+ return /*#__PURE__*/React.createElement(Grid, {
179
+ container: true,
180
+ direction: "row",
181
+ justifyContent: "center",
182
+ alignItems: "center",
183
+ width: '100%'
184
+ }, /*#__PURE__*/React.createElement(Grid, {
185
+ item: true,
186
+ xs: true,
187
+ className: ""
188
+ }, /*#__PURE__*/React.createElement(Slide, {
189
+ direction: "right",
190
+ "in": visible
191
+ }, /*#__PURE__*/React.createElement(Box, {
192
+ sx: {
193
+ maxWidth: {
194
+ xl: '600px',
195
+ md: '400px',
196
+ xs: '350px'
197
+ }
198
+ },
199
+ margin: 'auto'
200
+ }, /*#__PURE__*/React.createElement("img", {
201
+ height: "auto",
202
+ width: "100%",
203
+ src: content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'
204
+ })))), /*#__PURE__*/React.createElement(Grow, _extends({
205
+ "in": visible,
206
+ style: {
207
+ transformOrigin: '0 0 0'
208
+ }
209
+ }, {
210
+ timeout: 1000
211
+ } ), /*#__PURE__*/React.createElement(Grid, {
212
+ item: true,
213
+ sx: true
214
+ }, /*#__PURE__*/React.createElement(Grid, {
215
+ container: true,
216
+ direction: "column",
217
+ justifyContent: "center",
218
+ alignItems: "start",
219
+ style: {
220
+ border: '1px',
221
+ borderColor: 'black',
222
+ padding: '32px'
223
+ }
224
+ }, /*#__PURE__*/React.createElement(Grid, {
225
+ item: true,
226
+ sx: true
227
+ }, /*#__PURE__*/React.createElement("a", {
228
+ className: "title-xlarge"
229
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title')), /*#__PURE__*/React.createElement(Grid, {
230
+ item: true,
231
+ sx: true,
232
+ width: {
233
+ md: '70vh',
234
+ xs: 'auto'
235
+ },
236
+ height: "auto",
237
+ minHeight: {
238
+ md: '200px',
239
+ xs: 'auto'
240
+ },
241
+ textAlign: 'justify'
242
+ }, /*#__PURE__*/React.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content')), /*#__PURE__*/React.createElement(Grid, {
243
+ item: true,
244
+ sx: true
245
+ }, /*#__PURE__*/React.createElement(Button, {
246
+ variant: "contained",
247
+ color: "secondary"
248
+ }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Content'))))));
249
+ }
250
+
251
+ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
252
+ _inheritsLoose(TextPlusImg, _AtomicElements);
253
+ function TextPlusImg() {
254
+ var _this;
255
+ _this = _AtomicElements.call(this) || this;
256
+ _this.layout = [Layout1$2];
257
+ _this.layoutFootprint = ['text_image_layout_1.png'];
258
+ _this.layoutFootprintReq = [{
259
+ 'title': 'Title',
260
+ 'description': 'Text',
261
+ 'button_title': 'Button Title',
262
+ 'button_action': 'Button Action',
263
+ 'image': 'Image'
264
+ }];
265
+ return _this;
266
+ }
267
+ return TextPlusImg;
268
+ }(AtomicElements);
269
+
246
270
  var Section = /*#__PURE__*/function () {
247
- function Section(AtomicElement) {
271
+ function Section(AtomicElement, theme) {
248
272
  this.child = AtomicElement;
249
273
  }
250
274
  var _proto = Section.prototype;
@@ -270,14 +294,15 @@ var Section = /*#__PURE__*/function () {
270
294
  var Sections = /*#__PURE__*/function () {
271
295
  function Sections() {
272
296
  this.banner = new Section(new Banner());
273
- this.brief = new Section(new Brief());
274
- this.sections = [this.banner, this.brief];
297
+ this.quotes = new Section(new Quotes());
298
+ this.textPlusImg = new Section(new TextPlusImg());
299
+ this.sections = [this.banner, this.textPlusImg, this.quotes];
275
300
  }
276
301
  var _proto2 = Sections.prototype;
277
302
  _proto2.getSectionList = function getSectionList() {
278
303
  return {
279
304
  '0': 'Banner',
280
- '1': 'Brief',
305
+ '1': 'Text + Img',
281
306
  '2': 'Quotes'
282
307
  };
283
308
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.modern.js","sources":["../src/atomicElement.js","../src/theme/index.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../example/constants.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\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 let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\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 React from \"react\"\r\nimport { Box, Typography, Button } from \"@mui/material\";\r\nimport { Colors } from \"../../theme\";\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box>\r\n <Typography className=\"title-xlarge\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title-large\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].subtitle\r\n ? content.component.subcomponent[0].subtitle\r\n : 'Agregue subtítulo'}\r\n </Typography>\r\n <Typography variant=\"subtitle1\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\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 layoutFootprintReq = [\r\n {\r\n 'title': 'Tittle',\r\n 'content': 'Content',\r\n },\r\n {\r\n 'title': 'Tittle',\r\n 'content': 'Content',\r\n 'name': 'Name',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n\r\n}","import { Box, Button,Typography } from '@mui/material'\r\nimport React from 'react'\r\nimport { Colors } from '../../theme'\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box sx={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>\r\n <Typography className=\"title-xlarge\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title-large\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].subtitle\r\n ? content.component.subcomponent[0].subtitle\r\n : 'Agregue subtítulo'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ color: Colors.contrastText, marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\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 layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'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\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n minHeight: '680px',\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl' sx={{ display: 'flex', justifyContent: { xs: 'center', md: json.component.justify_content ? json.component.justify_content : 'center' } }} >\r\n <Box sx={{ maxWidth: { xs: '100%', md: '30%' } }}>\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\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 CanvasContainer from \"./canvas/CanvasContainer\"\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 <CanvasContainer 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 </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return(\r\n {req: footPrint.req, img:`${JK_RESOURCES}${footPrint.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","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","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","Layout1","React","createElement","Box","Typography","className","sx","color","marginBottom","component","subcomponent","title","subtitle","variant","description","Button","width","button_title","Brief","_AtomicElements","_inheritsLoose","_this","call","display","flexDirection","justifyContent","Banner","CanvasContainer","props","json","children","minHeight","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","xs","md","justify_content","JK_RESOURCES","Section","AtomicElement","child","getFootPrint","footPrint","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;IACzB,IAAI,CAACC,kBAAkB,GAAG,EAAE;;EAC/B,IAAAC,MAAA,GAAAJ,cAAA,CAAAK,SAAA;EAAAD,MAAA,CAEDE,aAAa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O;GAEjE;EAAAR,MAAA,CAEDgH,YAAY,GAAZ,SAAAA,eAAc;IACZ,OACA,IAAI,CAACH,KAAK,CAAC3G,aAAa,EAAE;GAE3B;EAAA,OAAAyG,OAAA;AAAA;AAKP,IAAaM,QAAQ;EACjB,SAAAA,WAAa;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIP,OAAO,CAAC,IAAIzB,MAAM,EAAE,CAAC;IACvC,IAAI,CAACiC,KAAK,GAAG,IAAIR,OAAO,CAAC,IAAIjC,KAAK,EAAE,CAAC;IACrC,IAAI,CAAC0C,QAAQ,GAAG,CAAC,IAAI,CAACF,MAAM,EAAE,IAAI,CAACC,KAAK,CAAC;;EACzC,IAAAE,OAAA,GAAAJ,QAAA,CAAAhH,SAAA;EAAAoH,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;;;;"}
1
+ {"version":3,"file":"index.modern.js","sources":["../src/atomicElement.js","../src/quotes/elements/layout1.js","../src/quotes/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../src/constants.js","../src/textPlusImg/elements/layout1.js","../src/textPlusImg/Component.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\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 let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\r\n}\r\n","import React from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box>\r\n <Typography className=\"title-large\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"small\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Quotes extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['quotes_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>\r\n <Typography className=\"title-xlarge\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Slide>\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 layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'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\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n //minHeight: '680px',//este no pueden ser estaticos\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl' sx={{ display: 'flex', justifyContent: { xs: 'center', md: json.component.justify_content ? json.component.justify_content : 'center' } }} >\r\n <Box sx={{ minWidth: { xs: '100%', md: '30%' } }}>\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import { Grid, Box, Button } from \"@mui/material\"\r\nimport React, { useState } from \"react\"\r\nimport { Slide } from \"@mui/material\";\r\nimport Grow from '@mui/material/Grow';\r\n\r\nexport default function Layout1(content) {\r\n\r\n const visible = true\r\n\r\n return (\r\n <Grid\r\n container\r\n direction=\"row\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n width={'100%'}\r\n >\r\n <Grid item xs className=\"\">\r\n <Slide direction=\"right\" in={visible}>\r\n <Box sx={{ maxWidth: { xl: '600px', md: '400px', xs: '350px' } }} margin={'auto'}>\r\n <img height=\"auto\" width=\"100%\" src={content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'}></img>\r\n </Box>\r\n </Slide>\r\n </Grid>\r\n <Grow\r\n in={visible}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(visible ? { timeout: 1000 } : {})}\r\n >\r\n <Grid item sx >\r\n <Grid container direction=\"column\" justifyContent=\"center\" alignItems=\"start\" style={{ border: '1px', borderColor: 'black', padding: '32px' }}>\r\n <Grid item sx>\r\n <a className=\"title-xlarge\">{content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title'}</a>\r\n </Grid>\r\n <Grid item sx width={{ md: '70vh', xs: 'auto' }} height=\"auto\" minHeight={{ md: '200px', xs: 'auto' }} textAlign={'justify'}>\r\n <p>{content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content'}</p>\r\n </Grid>\r\n <Grid item sx>\r\n <Button variant=\"contained\" color=\"secondary\">{content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Content'}</Button>\r\n </Grid>\r\n </Grid>\r\n </Grid>\r\n </Grow>\r\n\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class TextPlusImg extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Title',\r\n 'description':'Text',\r\n 'button_title':'Button Title',\r\n 'button_action':'Button Action',\r\n 'image':'Image',\r\n },\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import React from \"react\"\r\nimport { Quotes } from \"./quotes/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport CanvasContainer from \"./canvas/CanvasContainer\"\r\nimport { JK_RESOURCES } from \"./constants\"\r\nimport { TextPlusImg } from \"./textPlusImg/Component\"\r\n// Section is a common class for each component\r\nexport class Section {\r\n constructor(AtomicElement, theme) {\r\n this.child = AtomicElement\r\n }\r\n\r\n component(json) {\r\n console.log('json', json)\r\n return (\r\n <CanvasContainer 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 </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout) {\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return (\r\n { req: footPrint.req, img: `${JK_RESOURCES}${footPrint.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.quotes = new Section(new Quotes())\r\n this.textPlusImg = new Section(new TextPlusImg())\r\n this.sections = [this.banner, this.textPlusImg, this.quotes]\r\n }\r\n\r\n getSectionList() {\r\n return (\r\n {\r\n '0': 'Banner',\r\n '1': 'Text + Img',\r\n '2': 'Quotes',\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","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","Layout1","visible","React","createElement","Slide","direction","Box","Typography","className","sx","marginBottom","component","subcomponent","title","description","Quotes","_AtomicElements","_inheritsLoose","_this","call","display","flexDirection","justifyContent","Button","variant","width","button_title","Banner","CanvasContainer","props","json","children","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","xs","md","justify_content","minWidth","JK_RESOURCES","Grid","container","item","xl","margin","height","src","Grow","_extends","style","transformOrigin","timeout","border","borderColor","minHeight","textAlign","color","TextPlusImg","Section","AtomicElement","theme","child","getFootPrint","footPrint","layoutLength","Sections","banner","quotes","textPlusImg","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;IACzB,IAAI,CAACC,kBAAkB,GAAG,EAAE;;EAC/B,IAAAC,MAAA,GAAAJ,cAAA,CAAAK,SAAA;EAAAD,MAAA,CAEDE,aAAa,GAAb,SAAAA,gBAAe;IACX,OACI,IAAI,CAACL,MAAM,CAACM,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACT,MAAM,CAACS,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAAL,MAAA,CAEDO,SAAS,GAAT,SAAAA,UAAUV,MAAM,EAAC;IACb,IAAIW,GAAG,GAAG,IAAI,CAACV,eAAe,CAACD,MAAM,CAAC;IACtC,IAAIY,GAAG,GAAG,IAAI,CAACV,kBAAkB,CAACF,MAAM,CAAC;IACzCa,OAAO,CAACC,GAAG,CAAC,YAAY,EAAEH,GAAG,CAAC;IAC9B,OACI;MAACC,GAAG,EAAHA,GAAG;MAAED,GAAG,EAAHA;KAAI;GAEjB;EAAA,OAAAZ,cAAA;AAAA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CAACV,MAAM,CAAC;IAC5Ca,OAAO,CAACC,GAAG,CAAC,SAAS,EAAE4E,SAAS,CAAC;IACjC,OACE;MAAE9E,GAAG,EAAE8E,SAAS,CAAC9E,GAAG;MAAED,GAAG,OAAKuD,YAAY,GAAGwB,SAAS,CAAC/E;KAAO;GAEjE;EAAAR,MAAA,CAEDwF,YAAY,GAAZ,SAAAA,eAAe;IACb,OACE,IAAI,CAACH,KAAK,CAACnF,aAAa,EAAE;GAE7B;EAAA,OAAAgF,OAAA;AAAA;AAKH,IAAaO,QAAQ;EACnB,SAAAA,WAAc;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIR,OAAO,CAAC,IAAI3C,MAAM,EAAE,CAAC;IACvC,IAAI,CAACoD,MAAM,GAAG,IAAIT,OAAO,CAAC,IAAIvD,MAAM,EAAE,CAAC;IACvC,IAAI,CAACiE,WAAW,GAAG,IAAIV,OAAO,CAAC,IAAID,WAAW,EAAE,CAAC;IACjD,IAAI,CAACY,QAAQ,GAAG,CAAC,IAAI,CAACH,MAAM,EAAE,IAAI,CAACE,WAAW,EAAE,IAAI,CAACD,MAAM,CAAC;;EAC7D,IAAAG,OAAA,GAAAL,QAAA,CAAAxF,SAAA;EAAA6F,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAiB;IACf,OACE;MACE,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,YAAY;MACjB,GAAG,EAAE;KACN;GAEJ;EAAAD,OAAA,CACDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAE;IAC3B,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAQC,OAAO;GAChB;EAAA,OAAAT,QAAA;AAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keski_lib_catalog",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Keski catalog components for Keski store, Codenation Studio",
5
5
  "author": "Francisco Marmolejo",
6
6
  "license": "",
@@ -54,6 +54,7 @@
54
54
  "@emotion/react": "^11.11.0",
55
55
  "@emotion/styled": "^11.11.0",
56
56
  "@mui/material": "^5.12.3",
57
+ "node-sass": "^8.0.0",
57
58
  "rollup-plugin-import-css": "^3.2.1"
58
59
  }
59
60
  }