keski_lib_catalog 1.0.11 → 1.0.12

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,70 @@ 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 _useState = React.useState(true),
62
+ show = _useState[0];
63
+ return /*#__PURE__*/React__default.createElement(material.Slide, {
64
+ direction: "left",
65
+ "in": show
66
+ }, /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Typography, {
118
67
  className: "title-large",
119
68
  sx: {
120
- color: Colors.contrastText,
121
69
  marginBottom: '16px'
122
70
  }
123
- }, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(material.Typography, {
124
- variant: "subtitle1",
71
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React__default.createElement(material.Typography, {
72
+ className: "small",
125
73
  sx: {
126
- color: Colors.contrastText,
127
74
  marginBottom: '16px'
128
75
  }
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'));
76
+ }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción')));
136
77
  }
137
78
 
138
- var Brief = /*#__PURE__*/function (_AtomicElements) {
139
- _inheritsLoose(Brief, _AtomicElements);
140
- function Brief() {
79
+ var Quotes = /*#__PURE__*/function (_AtomicElements) {
80
+ _inheritsLoose(Quotes, _AtomicElements);
81
+ function Quotes() {
141
82
  var _this;
142
83
  _this = _AtomicElements.call(this) || this;
143
84
  _this.layout = [Layout1];
144
- _this.layoutFootprint = ['text_image_layout_1.png'];
85
+ _this.layoutFootprint = ['quotes_layout_1.png'];
145
86
  _this.layoutFootprintReq = [{
146
87
  'title': 'Tittle',
147
88
  'content': 'Content'
148
- }, {
149
- 'title': 'Tittle',
150
- 'content': 'Content',
151
- 'name': 'Name'
152
89
  }];
153
90
  return _this;
154
91
  }
155
- return Brief;
92
+ return Quotes;
156
93
  }(AtomicElements);
157
94
 
158
95
  function Layout1$1(content) {
159
- return /*#__PURE__*/React.createElement(material.Box, {
96
+ var _useState = React.useState(true),
97
+ show = _useState[0];
98
+ return /*#__PURE__*/React__default.createElement(material.Slide, {
99
+ direction: "left",
100
+ "in": show
101
+ }, /*#__PURE__*/React__default.createElement(material.Box, {
160
102
  sx: {
161
103
  display: 'flex',
162
104
  flexDirection: 'column',
163
105
  justifyContent: 'center'
164
106
  }
165
- }, /*#__PURE__*/React.createElement(material.Typography, {
107
+ }, /*#__PURE__*/React__default.createElement(material.Typography, {
166
108
  className: "title-xlarge",
167
109
  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
110
  marginBottom: '16px'
176
111
  }
177
- }, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(material.Typography, {
112
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React__default.createElement(material.Typography, {
178
113
  className: "title",
179
114
  sx: {
180
- color: Colors.contrastText,
181
115
  marginBottom: '16px'
182
116
  }
183
- }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(material.Button, {
117
+ }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React__default.createElement(material.Button, {
184
118
  variant: "contained",
185
119
  sx: {
186
120
  width: '100%',
187
121
  marginBottom: '16px'
188
122
  }
189
- }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
123
+ }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón')));
190
124
  }
191
125
 
192
126
  var Banner = /*#__PURE__*/function (_AtomicElements) {
@@ -212,9 +146,8 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
212
146
  function CanvasContainer(props) {
213
147
  var json = props.json,
214
148
  children = props.children;
215
- return /*#__PURE__*/React.createElement(material.Box, {
149
+ return /*#__PURE__*/React__default.createElement(material.Box, {
216
150
  sx: {
217
- minHeight: '680px',
218
151
  padding: '32px',
219
152
  display: 'flex',
220
153
  alignItems: 'center',
@@ -224,7 +157,7 @@ function CanvasContainer(props) {
224
157
  backgroundSize: 'cover',
225
158
  backgroundRepeat: 'no-repeat'
226
159
  }
227
- }, /*#__PURE__*/React.createElement(material.Container, {
160
+ }, /*#__PURE__*/React__default.createElement(material.Container, {
228
161
  maxWidth: "xl",
229
162
  sx: {
230
163
  display: 'flex',
@@ -233,9 +166,9 @@ function CanvasContainer(props) {
233
166
  md: json.component.justify_content ? json.component.justify_content : 'center'
234
167
  }
235
168
  }
236
- }, /*#__PURE__*/React.createElement(material.Box, {
169
+ }, /*#__PURE__*/React__default.createElement(material.Box, {
237
170
  sx: {
238
- maxWidth: {
171
+ minWidth: {
239
172
  xs: '100%',
240
173
  md: '30%'
241
174
  }
@@ -245,14 +178,109 @@ function CanvasContainer(props) {
245
178
 
246
179
  var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
247
180
 
181
+ function Layout1$2(content) {
182
+ var _useState = React.useState(true),
183
+ show = _useState[0];
184
+ return /*#__PURE__*/React__default.createElement(material.Grid, {
185
+ container: true,
186
+ direction: "row",
187
+ justifyContent: "center",
188
+ alignItems: "center",
189
+ width: '100%'
190
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
191
+ item: true,
192
+ xs: true,
193
+ className: ""
194
+ }, /*#__PURE__*/React__default.createElement(material.Slide, {
195
+ direction: "right",
196
+ "in": show
197
+ }, /*#__PURE__*/React__default.createElement(material.Box, {
198
+ sx: {
199
+ maxWidth: {
200
+ xl: '600px',
201
+ md: '400px',
202
+ xs: '350px'
203
+ }
204
+ },
205
+ margin: 'auto'
206
+ }, /*#__PURE__*/React__default.createElement("img", {
207
+ height: "auto",
208
+ width: "100%",
209
+ 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'
210
+ })))), /*#__PURE__*/React__default.createElement(Grow, _extends({
211
+ "in": show,
212
+ style: {
213
+ transformOrigin: '0 0 0'
214
+ }
215
+ }, show ? {
216
+ timeout: 1000
217
+ } : {}), /*#__PURE__*/React__default.createElement(material.Grid, {
218
+ item: true,
219
+ sx: true
220
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
221
+ container: true,
222
+ direction: "column",
223
+ justifyContent: "center",
224
+ alignItems: "start",
225
+ style: {
226
+ border: '1px',
227
+ borderColor: 'black',
228
+ padding: '32px'
229
+ }
230
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
231
+ item: true,
232
+ sx: true
233
+ }, /*#__PURE__*/React__default.createElement("a", {
234
+ className: "title-xlarge"
235
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title')), /*#__PURE__*/React__default.createElement(material.Grid, {
236
+ item: true,
237
+ sx: true,
238
+ width: {
239
+ md: '70vh',
240
+ xs: 'auto'
241
+ },
242
+ height: "auto",
243
+ minHeight: {
244
+ md: '200px',
245
+ xs: 'auto'
246
+ },
247
+ textAlign: 'justify'
248
+ }, /*#__PURE__*/React__default.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content')), /*#__PURE__*/React__default.createElement(material.Grid, {
249
+ item: true,
250
+ sx: true
251
+ }, /*#__PURE__*/React__default.createElement(material.Button, {
252
+ variant: "contained",
253
+ color: "secondary"
254
+ }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Content'))))));
255
+ }
256
+
257
+ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
258
+ _inheritsLoose(TextPlusImg, _AtomicElements);
259
+ function TextPlusImg() {
260
+ var _this;
261
+ _this = _AtomicElements.call(this) || this;
262
+ _this.layout = [Layout1$2];
263
+ _this.layoutFootprint = ['text_image_layout_1.png'];
264
+ _this.layoutFootprintReq = [{
265
+ 'title': 'Title',
266
+ 'description': 'Text',
267
+ 'button_title': 'Button Title',
268
+ 'button_action': 'Button Action',
269
+ 'image': 'Image'
270
+ }];
271
+ return _this;
272
+ }
273
+ return TextPlusImg;
274
+ }(AtomicElements);
275
+
248
276
  var Section = /*#__PURE__*/function () {
249
- function Section(AtomicElement) {
277
+ function Section(AtomicElement, theme) {
250
278
  this.child = AtomicElement;
251
279
  }
252
280
  var _proto = Section.prototype;
253
281
  _proto.component = function component(json) {
254
282
  console.log('json', json);
255
- return /*#__PURE__*/React.createElement(CanvasContainer, {
283
+ return /*#__PURE__*/React__default.createElement(CanvasContainer, {
256
284
  json: json
257
285
  }, this.child.build(json, json.component.layout));
258
286
  };
@@ -272,14 +300,15 @@ var Section = /*#__PURE__*/function () {
272
300
  var Sections = /*#__PURE__*/function () {
273
301
  function Sections() {
274
302
  this.banner = new Section(new Banner());
275
- this.brief = new Section(new Brief());
276
- this.sections = [this.banner, this.brief];
303
+ this.quotes = new Section(new Quotes());
304
+ this.textPlusImg = new Section(new TextPlusImg());
305
+ this.sections = [this.banner, this.textPlusImg, this.quotes];
277
306
  }
278
307
  var _proto2 = Sections.prototype;
279
308
  _proto2.getSectionList = function getSectionList() {
280
309
  return {
281
310
  '0': 'Banner',
282
- '1': 'Brief',
311
+ '1': 'Text + Img',
283
312
  '2': 'Quotes'
284
313
  };
285
314
  };
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;;ACvB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,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.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, { useState } from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\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 { useState } from 'react'\r\nimport { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\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 )\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 [show, setShow] = useState(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={show}>\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={show}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(show ? { 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","_useState","useState","show","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;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AAA;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,CAAA1F,SAAA;EAAA+F,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
- import React from 'react';
2
- import { Box, Typography, Button, Container } from '@mui/material';
3
- import { createTheme } from '@mui/material/styles';
1
+ import React, { useState } from 'react';
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,48 @@ 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 _useState = useState(true),
59
+ show = _useState[0];
60
+ return /*#__PURE__*/React.createElement(Slide, {
61
+ direction: "left",
62
+ "in": show
63
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Typography, {
116
64
  className: "title-large",
117
65
  sx: {
118
- color: Colors.contrastText,
119
66
  marginBottom: '16px'
120
67
  }
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",
68
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'), /*#__PURE__*/React.createElement(Typography, {
69
+ className: "small",
129
70
  sx: {
130
- width: '100%',
131
71
  marginBottom: '16px'
132
72
  }
133
- }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
73
+ }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción')));
134
74
  }
135
75
 
136
- var Brief = /*#__PURE__*/function (_AtomicElements) {
137
- _inheritsLoose(Brief, _AtomicElements);
138
- function Brief() {
76
+ var Quotes = /*#__PURE__*/function (_AtomicElements) {
77
+ _inheritsLoose(Quotes, _AtomicElements);
78
+ function Quotes() {
139
79
  var _this;
140
80
  _this = _AtomicElements.call(this) || this;
141
81
  _this.layout = [Layout1];
142
- _this.layoutFootprint = ['text_image_layout_1.png'];
82
+ _this.layoutFootprint = ['quotes_layout_1.png'];
143
83
  _this.layoutFootprintReq = [{
144
84
  'title': 'Tittle',
145
85
  'content': 'Content'
146
- }, {
147
- 'title': 'Tittle',
148
- 'content': 'Content',
149
- 'name': 'Name'
150
86
  }];
151
87
  return _this;
152
88
  }
153
- return Brief;
89
+ return Quotes;
154
90
  }(AtomicElements);
155
91
 
156
92
  function Layout1$1(content) {
157
- return /*#__PURE__*/React.createElement(Box, {
93
+ var _useState = useState(true),
94
+ show = _useState[0];
95
+ return /*#__PURE__*/React.createElement(Slide, {
96
+ direction: "left",
97
+ "in": show
98
+ }, /*#__PURE__*/React.createElement(Box, {
158
99
  sx: {
159
100
  display: 'flex',
160
101
  flexDirection: 'column',
@@ -163,19 +104,11 @@ function Layout1$1(content) {
163
104
  }, /*#__PURE__*/React.createElement(Typography, {
164
105
  className: "title-xlarge",
165
106
  sx: {
166
- color: Colors.contrastText,
167
107
  marginBottom: '16px'
168
108
  }
169
109
  }, 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
110
  className: "title",
177
111
  sx: {
178
- color: Colors.contrastText,
179
112
  marginBottom: '16px'
180
113
  }
181
114
  }, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(Button, {
@@ -184,7 +117,7 @@ function Layout1$1(content) {
184
117
  width: '100%',
185
118
  marginBottom: '16px'
186
119
  }
187
- }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
120
+ }, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón')));
188
121
  }
189
122
 
190
123
  var Banner = /*#__PURE__*/function (_AtomicElements) {
@@ -212,7 +145,6 @@ function CanvasContainer(props) {
212
145
  children = props.children;
213
146
  return /*#__PURE__*/React.createElement(Box, {
214
147
  sx: {
215
- minHeight: '680px',
216
148
  padding: '32px',
217
149
  display: 'flex',
218
150
  alignItems: 'center',
@@ -233,7 +165,7 @@ function CanvasContainer(props) {
233
165
  }
234
166
  }, /*#__PURE__*/React.createElement(Box, {
235
167
  sx: {
236
- maxWidth: {
168
+ minWidth: {
237
169
  xs: '100%',
238
170
  md: '30%'
239
171
  }
@@ -243,8 +175,103 @@ function CanvasContainer(props) {
243
175
 
244
176
  var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
245
177
 
178
+ function Layout1$2(content) {
179
+ var _useState = useState(true),
180
+ show = _useState[0];
181
+ return /*#__PURE__*/React.createElement(Grid, {
182
+ container: true,
183
+ direction: "row",
184
+ justifyContent: "center",
185
+ alignItems: "center",
186
+ width: '100%'
187
+ }, /*#__PURE__*/React.createElement(Grid, {
188
+ item: true,
189
+ xs: true,
190
+ className: ""
191
+ }, /*#__PURE__*/React.createElement(Slide, {
192
+ direction: "right",
193
+ "in": show
194
+ }, /*#__PURE__*/React.createElement(Box, {
195
+ sx: {
196
+ maxWidth: {
197
+ xl: '600px',
198
+ md: '400px',
199
+ xs: '350px'
200
+ }
201
+ },
202
+ margin: 'auto'
203
+ }, /*#__PURE__*/React.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.createElement(Grow, _extends({
208
+ "in": show,
209
+ style: {
210
+ transformOrigin: '0 0 0'
211
+ }
212
+ }, show ? {
213
+ timeout: 1000
214
+ } : {}), /*#__PURE__*/React.createElement(Grid, {
215
+ item: true,
216
+ sx: true
217
+ }, /*#__PURE__*/React.createElement(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.createElement(Grid, {
228
+ item: true,
229
+ sx: true
230
+ }, /*#__PURE__*/React.createElement("a", {
231
+ className: "title-xlarge"
232
+ }, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title')), /*#__PURE__*/React.createElement(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.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content')), /*#__PURE__*/React.createElement(Grid, {
246
+ item: true,
247
+ sx: true
248
+ }, /*#__PURE__*/React.createElement(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
+
246
273
  var Section = /*#__PURE__*/function () {
247
- function Section(AtomicElement) {
274
+ function Section(AtomicElement, theme) {
248
275
  this.child = AtomicElement;
249
276
  }
250
277
  var _proto = Section.prototype;
@@ -270,14 +297,15 @@ var Section = /*#__PURE__*/function () {
270
297
  var Sections = /*#__PURE__*/function () {
271
298
  function Sections() {
272
299
  this.banner = new Section(new Banner());
273
- this.brief = new Section(new Brief());
274
- 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];
275
303
  }
276
304
  var _proto2 = Sections.prototype;
277
305
  _proto2.getSectionList = function getSectionList() {
278
306
  return {
279
307
  '0': 'Banner',
280
- '1': 'Brief',
308
+ '1': 'Text + Img',
281
309
  '2': 'Quotes'
282
310
  };
283
311
  };
@@ -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,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,AAAO,IAAMC,MAAM,GAAG;EAGpBC,YAAY,EAAE,MAAM;EACpBC,QAAQ,EAAE,SAAS;EACnBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE,MAAM;EACbC,KA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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, { useState } from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\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 { useState } from 'react'\r\nimport { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\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 )\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 [show, setShow] = useState(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={show}>\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={show}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(show ? { 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","_useState","useState","show","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,M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,MAAM,EAAE,IAAI,CAACE,WAAW,EAAE,IAAI,CAACD,MAAM,CAAC;;EAC7D,IAAAG,OAAA,GAAAL,QAAA,CAAA1F,SAAA;EAAA+F,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.12",
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
  }