keski_lib_catalog 1.0.9 → 1.0.10
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 +106 -119
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +108 -121
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,31 +42,6 @@ var AtomicElements = /*#__PURE__*/function () {
|
|
|
42
42
|
return AtomicElements;
|
|
43
43
|
}();
|
|
44
44
|
|
|
45
|
-
function Layout1(content) {
|
|
46
|
-
var _content$;
|
|
47
|
-
return /*#__PURE__*/React.createElement(material.Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : '', /*#__PURE__*/React.createElement(material.Card, null));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
var Brief = /*#__PURE__*/function (_AtomicElements) {
|
|
51
|
-
_inheritsLoose(Brief, _AtomicElements);
|
|
52
|
-
function Brief() {
|
|
53
|
-
var _this;
|
|
54
|
-
_this = _AtomicElements.call(this) || this;
|
|
55
|
-
_this.layout = [Layout1];
|
|
56
|
-
_this.layoutFootprint = ['text_image_layout_1.png'];
|
|
57
|
-
_this.layoutFootprintReq = [{
|
|
58
|
-
'title': 'Tittle',
|
|
59
|
-
'content': 'Content'
|
|
60
|
-
}, {
|
|
61
|
-
'title': 'Tittle',
|
|
62
|
-
'content': 'Content',
|
|
63
|
-
'name': 'Name'
|
|
64
|
-
}];
|
|
65
|
-
return _this;
|
|
66
|
-
}
|
|
67
|
-
return Brief;
|
|
68
|
-
}(AtomicElements);
|
|
69
|
-
|
|
70
45
|
var COLOR_PRIMARY = '#4CAF50';
|
|
71
46
|
var COLOR_SECONDARY = '#FF5722';
|
|
72
47
|
var Colors = {
|
|
@@ -132,96 +107,84 @@ var theme = styles.createTheme({
|
|
|
132
107
|
}
|
|
133
108
|
});
|
|
134
109
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
})
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
});
|
|
183
|
-
var BannerTittle = styles.styled(material.Typography)(function () {
|
|
184
|
-
var _ref6;
|
|
185
|
-
return _ref6 = {
|
|
186
|
-
lineHeigth: 1.5,
|
|
187
|
-
fontSize: '28px',
|
|
188
|
-
marginBottom: '20px',
|
|
189
|
-
color: Colors.contrastText
|
|
190
|
-
}, _ref6[theme.breakpoints.down('sm')] = {
|
|
191
|
-
fontSize: '42px'
|
|
192
|
-
}, _ref6;
|
|
193
|
-
});
|
|
194
|
-
var BannerSubtitle = styles.styled(material.Typography)(function () {
|
|
195
|
-
var _ref7;
|
|
196
|
-
return _ref7 = {
|
|
197
|
-
lineHeigth: 1.5,
|
|
198
|
-
fontSize: '24px',
|
|
199
|
-
marginBottom: '20px',
|
|
200
|
-
color: Colors.contrastText
|
|
201
|
-
}, _ref7[theme.breakpoints.down('sm')] = {
|
|
202
|
-
fontSize: '42px'
|
|
203
|
-
}, _ref7;
|
|
204
|
-
});
|
|
205
|
-
var BannerDescription = styles.styled(material.Typography)(function (_ref8) {
|
|
206
|
-
var _ref9;
|
|
207
|
-
var theme = _ref8.theme;
|
|
208
|
-
return _ref9 = {
|
|
209
|
-
lineHeigth: 1.25,
|
|
210
|
-
fontSize: '22px',
|
|
211
|
-
letterSpacing: 1.25,
|
|
212
|
-
marginBottom: "3em"
|
|
213
|
-
}, _ref9[theme.breakpoints.down('md')] = {
|
|
214
|
-
lineHeigth: 1.15,
|
|
215
|
-
letterSpacing: 1.15,
|
|
216
|
-
marginBottom: "1.5em"
|
|
217
|
-
}, _ref9;
|
|
218
|
-
});
|
|
110
|
+
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, {
|
|
118
|
+
className: "title-large",
|
|
119
|
+
sx: {
|
|
120
|
+
color: Colors.contrastText,
|
|
121
|
+
marginBottom: '16px'
|
|
122
|
+
}
|
|
123
|
+
}, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(material.Typography, {
|
|
124
|
+
variant: "subtitle1",
|
|
125
|
+
sx: {
|
|
126
|
+
color: Colors.contrastText,
|
|
127
|
+
marginBottom: '16px'
|
|
128
|
+
}
|
|
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'));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
var Brief = /*#__PURE__*/function (_AtomicElements) {
|
|
139
|
+
_inheritsLoose(Brief, _AtomicElements);
|
|
140
|
+
function Brief() {
|
|
141
|
+
var _this;
|
|
142
|
+
_this = _AtomicElements.call(this) || this;
|
|
143
|
+
_this.layout = [Layout1];
|
|
144
|
+
_this.layoutFootprint = ['text_image_layout_1.png'];
|
|
145
|
+
_this.layoutFootprintReq = [{
|
|
146
|
+
'title': 'Tittle',
|
|
147
|
+
'content': 'Content'
|
|
148
|
+
}, {
|
|
149
|
+
'title': 'Tittle',
|
|
150
|
+
'content': 'Content',
|
|
151
|
+
'name': 'Name'
|
|
152
|
+
}];
|
|
153
|
+
return _this;
|
|
154
|
+
}
|
|
155
|
+
return Brief;
|
|
156
|
+
}(AtomicElements);
|
|
219
157
|
|
|
220
158
|
function Layout1$1(content) {
|
|
221
|
-
return /*#__PURE__*/React.createElement(material.Box,
|
|
159
|
+
return /*#__PURE__*/React.createElement(material.Box, {
|
|
160
|
+
sx: {
|
|
161
|
+
display: 'flex',
|
|
162
|
+
flexDirection: 'column',
|
|
163
|
+
justifyContent: 'center'
|
|
164
|
+
}
|
|
165
|
+
}, /*#__PURE__*/React.createElement(material.Typography, {
|
|
166
|
+
className: "title-xlarge",
|
|
167
|
+
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
|
+
marginBottom: '16px'
|
|
176
|
+
}
|
|
177
|
+
}, content.component.subcomponent[0].subtitle ? content.component.subcomponent[0].subtitle : 'Agregue subtítulo'), /*#__PURE__*/React.createElement(material.Typography, {
|
|
178
|
+
className: "title",
|
|
179
|
+
sx: {
|
|
180
|
+
color: Colors.contrastText,
|
|
181
|
+
marginBottom: '16px'
|
|
182
|
+
}
|
|
183
|
+
}, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(material.Button, {
|
|
222
184
|
variant: "contained",
|
|
223
185
|
sx: {
|
|
224
|
-
width: '100%'
|
|
186
|
+
width: '100%',
|
|
187
|
+
marginBottom: '16px'
|
|
225
188
|
}
|
|
226
189
|
}, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
|
|
227
190
|
}
|
|
@@ -246,14 +209,38 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
|
|
|
246
209
|
return Banner;
|
|
247
210
|
}(AtomicElements);
|
|
248
211
|
|
|
249
|
-
function
|
|
250
|
-
var
|
|
251
|
-
|
|
212
|
+
function CanvasContainer(props) {
|
|
213
|
+
var json = props.json,
|
|
214
|
+
children = props.children;
|
|
215
|
+
return /*#__PURE__*/React.createElement(material.Box, {
|
|
252
216
|
sx: {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
217
|
+
minHeight: '680px',
|
|
218
|
+
padding: '32px',
|
|
219
|
+
display: 'flex',
|
|
220
|
+
alignItems: 'center',
|
|
221
|
+
backgroundColor: json.component.bg_type === 1 ? json.component.bg_color1 : undefined,
|
|
222
|
+
backgroundImage: json.component.bg_type === 2 ? "linear-gradient(" + json.component.bg_color1 + ", " + json.component.bg_color2 + ")" : json.component.bg_type === 3 ? "url(" + json.component.bg_image.url + ")" : undefined,
|
|
223
|
+
backgroundPosition: 'center',
|
|
224
|
+
backgroundSize: 'cover',
|
|
225
|
+
backgroundRepeat: 'no-repeat'
|
|
226
|
+
}
|
|
227
|
+
}, /*#__PURE__*/React.createElement(material.Container, {
|
|
228
|
+
maxWidth: "xl",
|
|
229
|
+
sx: {
|
|
230
|
+
display: 'flex',
|
|
231
|
+
justifyContent: {
|
|
232
|
+
xs: 'center',
|
|
233
|
+
md: 'right'
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}, /*#__PURE__*/React.createElement(material.Box, {
|
|
237
|
+
sx: {
|
|
238
|
+
maxWidth: {
|
|
239
|
+
xs: '100%',
|
|
240
|
+
md: '30%'
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}, children)));
|
|
257
244
|
}
|
|
258
245
|
|
|
259
246
|
var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
|
|
@@ -265,7 +252,7 @@ var Section = /*#__PURE__*/function () {
|
|
|
265
252
|
var _proto = Section.prototype;
|
|
266
253
|
_proto.component = function component(json) {
|
|
267
254
|
console.log('json', json);
|
|
268
|
-
return /*#__PURE__*/React.createElement(
|
|
255
|
+
return /*#__PURE__*/React.createElement(CanvasContainer, {
|
|
269
256
|
json: json
|
|
270
257
|
}, this.child.build(json, json.component.layout));
|
|
271
258
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/atomicElement.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/theme/index.js","../src/banner/styles.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/HeadContainer.js","../example/constants.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n 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 { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : ''}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Brief extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n 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 { createTheme } from \"@mui/material/styles\";\r\n//import { COLOR_PRIMARY,COLOR_SECONDARY } from \"../../utils/constants\";\r\n\r\nconst COLOR_PRIMARY = '#4CAF50'\r\n\r\nconst COLOR_SECONDARY = '#FF5722'\r\n\r\nexport const Colors = {\r\n // primary: \"#4CAF50\",\r\n // secondary: \"#FF5722\",\r\n contrastText: '#fff',\r\n grayText: \"#8a8a8a\",\r\n success: \"#00A650\",\r\n info: \"#3483FA\",\r\n danger: \"#B12704\",\r\n warning: \"#FFC107\",\r\n dark: \"#0e1b20\",\r\n ligth: \"#aaa\",\r\n muted: \"#abafb3\",\r\n border: \"#DDDFE1\",\r\n inverse: \"#2F3D4A\",\r\n shaft: \"#333\",\r\n\r\n ///////////////\r\n // Greens \r\n ///////////////\r\n ligth_green: \"#9ad28a\",\r\n ligth_green_default: \"#9ad29c\",\r\n green_dark: \"#6fbf73\", \r\n\r\n // dim_gray:\"#487e4c\",\r\n // body_bg: \"#81c784\",\r\n\r\n /////////////////\r\n // solid color\r\n /////////////////\r\n white: \"#fff\",\r\n black: \"#000\",\r\n\r\n //custom colors\r\n prim: \"#292929\",\r\n sec: \"#545454\",\r\n sec_alt: \"#767676\",\r\n hiden: \"#C8C8C8\",\r\n green: \"#6fbf73\",\r\n\r\n //footer colors\r\n footer_backgound:\"#f4f4f4\"\r\n}\r\n\r\nconst theme = createTheme({\r\n palette: {\r\n primary: {\r\n main: COLOR_PRIMARY,\r\n },\r\n secondary: {\r\n main: COLOR_SECONDARY,\r\n },\r\n },\r\n components: {\r\n // Name of the component\r\n MuiButtonBase: {\r\n defaultProps: {\r\n disableRipple: true,\r\n },\r\n },\r\n typography: {\r\n button: {\r\n textTransform: 'none'\r\n }\r\n },\r\n MuiOutlinedInput:{\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px'\r\n },\r\n },\r\n },\r\n MuiButton: {\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px',\r\n textTransform: 'initial'\r\n },\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default theme;","import { Button, Typography } from \"@mui/material\";\r\nimport { styled } from \"@mui/material/styles\";\r\nimport { Box, style } from \"@mui/material\";\r\nimport theme, { Colors } from \"../theme\";\r\n\r\nexport const BannerContainer = styled(Box)(({ theme, json }) => ({\r\n display: 'flex',\r\n justifyContent: 'right',\r\n heigth: '100%',\r\n padding: '32px',\r\n backgroundColor:\r\n json.component.bg_color1 && json.component.bg_type == 1\r\n ? json.component.bg_color1\r\n : null,\r\n backgroundImage:\r\n json.component.bg_image?.url && json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : json.component.bg_image?.url && json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : 'none',\r\n backgroundPosition: '0% 20%',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n [theme.breakpoints.down('sm')]: {\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n },\r\n // [theme.breakpoints.down('md')]: {\r\n // flexDirection: 'column',\r\n // alignItems: 'center'\r\n // },\r\n}));\r\n\r\nexport const BannerImage = styled('img')(({ src, theme }) => ({\r\n src: `url(${src})`,\r\n width: '40%',\r\n height: 'auto',\r\n [theme.breakpoints.down('md')]: {\r\n width: '70%',\r\n height: 'auto',\r\n },\r\n [theme.breakpoints.down('sm')]: {\r\n width: '90%',\r\n height: 'auto',\r\n }\r\n}))\r\n\r\n\r\nexport const BannerContent = styled(Box)(() => ({\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n width: '100%',\r\n maxWidth: '30%',\r\n [theme.breakpoints.down('md')]: {\r\n maxWidth: '90%',\r\n },\r\n padding: '30px',\r\n color: Colors.contrastText\r\n}))\r\n\r\n\r\nexport const BannerTittle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '28px',\r\n marginBottom: '20px',\r\n color: Colors.contrastText,\r\n [theme.breakpoints.down('sm')]: {\r\n fontSize: '42px'\r\n }\r\n}))\r\n\r\nexport const BannerSubtitle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '24px',\r\n marginBottom: '20px',\r\n color: Colors.contrastText,\r\n [theme.breakpoints.down('sm')]: {\r\n fontSize: '42px'\r\n }\r\n}))\r\n\r\nexport const BannerDescription = styled(Typography)(({ theme }) => ({\r\n lineHeigth: 1.25,\r\n fontSize: '22px',\r\n letterSpacing: 1.25,\r\n marginBottom: \"3em\",\r\n [theme.breakpoints.down('md')]: {\r\n lineHeigth: 1.15,\r\n letterSpacing: 1.15,\r\n marginBottom: \"1.5em\",\r\n }\r\n}))\r\n","import { Box, Button } from '@mui/material'\r\nimport React from 'react'\r\nimport { BannerTittle, BannerSubtitle, BannerDescription } from '../styles'\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box>\r\n <BannerTittle>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </BannerTittle>\r\n <BannerSubtitle>\r\n {content.component.subcomponent[0].subtitle\r\n ? content.component.subcomponent[0].subtitle\r\n : 'Agregue subtítulo'}\r\n </BannerSubtitle>\r\n <BannerDescription>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </BannerDescription>\r\n <Button variant='contained' sx={{ width: '100%' }}>\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\n\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport { BannerContainer, BannerContent, BannerDescription, BannerImage, BannerTittle, BannerButton } from \"../banner/styles\";\r\n\r\nexport default function HeadContainer(props){\r\n// console.log(\"🚀 ~ file: HeadContainer.js:7 ~ HeadContainer ~ props:\", props.json.component.bg_image.url)\r\n\r\n const theme = useTheme();\r\n\r\n return(\r\n <BannerContainer sx={{height:'680px'}} json={props.json}>\r\n <BannerContent>\r\n {props.children}\r\n </BannerContent>\r\n </BannerContainer>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import React from \"react\"\r\nimport { Brief } from \"./brief/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport HeadContainer from \"./canvas/HeadContainer\"\r\nimport { JK_RESOURCES } from \"../example/constants\"\r\n// Section is a common class for each component\r\nexport class Section{\r\n constructor(AtomicElement) {\r\n this.child = AtomicElement\r\n }\r\n \r\n component(json){\r\n console.log('json', json)\r\n return(\r\n <HeadContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json, json.component.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n let 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","Layout1","_content$","React","createElement","Grid","title","Card","Brief","_AtomicElements","_inheritsLoose","_this","call","COLOR_PRIMARY","COLOR_SECONDARY","Colors","contrastText","grayText","success","info","danger","warning","dark","ligth","muted","border","inverse","shaft","ligth_green","ligth_green_default","green_dark","white","black","prim","sec","sec_alt","hiden","green","footer_backgound","theme","createTheme","palette","primary","main","secondary","components","MuiButtonBase","defaultProps","disableRipple","typography","button","textTransform","MuiOutlinedInput","styleOverrides","root","borderRadius","MuiButton","BannerContainer","styled","Box","_ref","_json$component$bg_im","_json$component$bg_im2","_ref2","json","display","justifyContent","heigth","padding","backgroundColor","component","bg_color1","bg_type","backgroundImage","bg_image","url","bg_color2","backgroundPosition","backgroundSize","backgroundRepeat","breakpoints","down","flexDirection","alignItems","BannerImage","_ref3","_ref4","src","width","height","BannerContent","_ref5","maxWidth","color","BannerTittle","Typography","_ref6","lineHeigth","fontSize","marginBottom","BannerSubtitle","_ref7","BannerDescription","_ref8","_ref9","letterSpacing","subcomponent","subtitle","description","Button","variant","sx","button_title","Banner","HeadContainer","props","useTheme","children","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;;ACtBU,SAASgB,OAAOA,CAACP,OAAO,EAAC;EAAA,IAAAQ,SAAA;EACpC,oBACIC,KAAA,CAAAC,aAAA,CAACC,aAAI,QACD,CAAAH,SAAA,GAAAR,OAAO,CAAC,GAAG,CAAC,cAAAQ,SAAA,eAAZA,SAAA,CAAcI,KAAK,GAAGZ,OAAO,CAAC,GAAG,CAAC,CAACY,KAAK,GAAG,E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AAG,MAAA,CAEDqI,YAAY,GAAZ,SAAAA,aAAaxI,MAAM,EAAC;IAClB,IAAIyI,SAAS,GAAI,IAAI,CAACF,KAAK,CAAC7H,SAAS,CAACV,MAAM,CAAC;IAC7Ca,OAAO,CAACC,GAAG,CAAC,SAAS,EAAE2H,SAAS,CAAC;IACjC,OACI;MAAC7H,GAAG,EAAE6H,SAAS,CAAC7H,GAAG;MAAED,GAAG,OAAIyH,YAAY,GAAGK,SAAS,CAAC9H;KAAO;GAEjE;EAAAR,MAAA,CAEDuI,YAAY,GAAZ,SAAAA,eAAc;IACZ,OACA,IAAI,CAACH,KAAK,CAAClI,aAAa,EAAE;GAE3B;EAAA,OAAAgI,OAAA;AAAA;AAKP,IAAaM,QAAQ;EACjB,SAAAA,WAAa;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIP,OAAO,CAAC,IAAIN,MAAM,EAAE,CAAC;IACvC,IAAI,CAACc,KAAK,GAAG,IAAIR,OAAO,CAAC,IAAI/G,KAAK,EAAE,CAAC;IACrC,IAAI,CAACwH,QAAQ,GAAG,CAAC,IAAI,CAACF,MAAM,EAAE,IAAI,CAACC,KAAK,CAAC;;EACzC,IAAAE,OAAA,GAAAJ,QAAA,CAAAvI,SAAA;EAAA2I,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.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: 'right' } }} >\r\n {/* <Container maxWidth='xl' sx={{ bgcolor: 'red' }}> */}\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","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;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AAO;GAEjE;EAAAR,MAAA,CAED+G,YAAY,GAAZ,SAAAA,eAAc;IACZ,OACA,IAAI,CAACH,KAAK,CAAC1G,aAAa,EAAE;GAE3B;EAAA,OAAAwG,OAAA;AAAA;AAKP,IAAaM,QAAQ;EACjB,SAAAA,WAAa;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIP,OAAO,CAAC,IAAIxB,MAAM,EAAE,CAAC;IACvC,IAAI,CAACgC,KAAK,GAAG,IAAIR,OAAO,CAAC,IAAIhC,KAAK,EAAE,CAAC;IACrC,IAAI,CAACyC,QAAQ,GAAG,CAAC,IAAI,CAACF,MAAM,EAAE,IAAI,CAACC,KAAK,CAAC;;EACzC,IAAAE,OAAA,GAAAJ,QAAA,CAAA/G,SAAA;EAAAmH,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAgB;IACZ,OACI;MACI,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,OAAO;MACZ,GAAG,EAAE;KACR;GAER;EAAAD,OAAA,CAEDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAC;IACzB,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAOC,OAAO;GAChB;EAAA,OAAAR,QAAA;AAAA;;;;"}
|
package/dist/index.modern.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { createTheme
|
|
2
|
+
import { Box, Typography, Button, Container } from '@mui/material';
|
|
3
|
+
import { createTheme } from '@mui/material/styles';
|
|
4
4
|
|
|
5
5
|
function _inheritsLoose(subClass, superClass) {
|
|
6
6
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -40,31 +40,6 @@ var AtomicElements = /*#__PURE__*/function () {
|
|
|
40
40
|
return AtomicElements;
|
|
41
41
|
}();
|
|
42
42
|
|
|
43
|
-
function Layout1(content) {
|
|
44
|
-
var _content$;
|
|
45
|
-
return /*#__PURE__*/React.createElement(Grid, null, (_content$ = content['0']) !== null && _content$ !== void 0 && _content$.title ? content['0'].title : '', /*#__PURE__*/React.createElement(Card, null));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var Brief = /*#__PURE__*/function (_AtomicElements) {
|
|
49
|
-
_inheritsLoose(Brief, _AtomicElements);
|
|
50
|
-
function Brief() {
|
|
51
|
-
var _this;
|
|
52
|
-
_this = _AtomicElements.call(this) || this;
|
|
53
|
-
_this.layout = [Layout1];
|
|
54
|
-
_this.layoutFootprint = ['text_image_layout_1.png'];
|
|
55
|
-
_this.layoutFootprintReq = [{
|
|
56
|
-
'title': 'Tittle',
|
|
57
|
-
'content': 'Content'
|
|
58
|
-
}, {
|
|
59
|
-
'title': 'Tittle',
|
|
60
|
-
'content': 'Content',
|
|
61
|
-
'name': 'Name'
|
|
62
|
-
}];
|
|
63
|
-
return _this;
|
|
64
|
-
}
|
|
65
|
-
return Brief;
|
|
66
|
-
}(AtomicElements);
|
|
67
|
-
|
|
68
43
|
var COLOR_PRIMARY = '#4CAF50';
|
|
69
44
|
var COLOR_SECONDARY = '#FF5722';
|
|
70
45
|
var Colors = {
|
|
@@ -130,96 +105,84 @@ var theme = createTheme({
|
|
|
130
105
|
}
|
|
131
106
|
});
|
|
132
107
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
});
|
|
181
|
-
var BannerTittle = styled(Typography)(function () {
|
|
182
|
-
var _ref6;
|
|
183
|
-
return _ref6 = {
|
|
184
|
-
lineHeigth: 1.5,
|
|
185
|
-
fontSize: '28px',
|
|
186
|
-
marginBottom: '20px',
|
|
187
|
-
color: Colors.contrastText
|
|
188
|
-
}, _ref6[theme.breakpoints.down('sm')] = {
|
|
189
|
-
fontSize: '42px'
|
|
190
|
-
}, _ref6;
|
|
191
|
-
});
|
|
192
|
-
var BannerSubtitle = styled(Typography)(function () {
|
|
193
|
-
var _ref7;
|
|
194
|
-
return _ref7 = {
|
|
195
|
-
lineHeigth: 1.5,
|
|
196
|
-
fontSize: '24px',
|
|
197
|
-
marginBottom: '20px',
|
|
198
|
-
color: Colors.contrastText
|
|
199
|
-
}, _ref7[theme.breakpoints.down('sm')] = {
|
|
200
|
-
fontSize: '42px'
|
|
201
|
-
}, _ref7;
|
|
202
|
-
});
|
|
203
|
-
var BannerDescription = styled(Typography)(function (_ref8) {
|
|
204
|
-
var _ref9;
|
|
205
|
-
var theme = _ref8.theme;
|
|
206
|
-
return _ref9 = {
|
|
207
|
-
lineHeigth: 1.25,
|
|
208
|
-
fontSize: '22px',
|
|
209
|
-
letterSpacing: 1.25,
|
|
210
|
-
marginBottom: "3em"
|
|
211
|
-
}, _ref9[theme.breakpoints.down('md')] = {
|
|
212
|
-
lineHeigth: 1.15,
|
|
213
|
-
letterSpacing: 1.15,
|
|
214
|
-
marginBottom: "1.5em"
|
|
215
|
-
}, _ref9;
|
|
216
|
-
});
|
|
108
|
+
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, {
|
|
116
|
+
className: "title-large",
|
|
117
|
+
sx: {
|
|
118
|
+
color: Colors.contrastText,
|
|
119
|
+
marginBottom: '16px'
|
|
120
|
+
}
|
|
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",
|
|
129
|
+
sx: {
|
|
130
|
+
width: '100%',
|
|
131
|
+
marginBottom: '16px'
|
|
132
|
+
}
|
|
133
|
+
}, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
var Brief = /*#__PURE__*/function (_AtomicElements) {
|
|
137
|
+
_inheritsLoose(Brief, _AtomicElements);
|
|
138
|
+
function Brief() {
|
|
139
|
+
var _this;
|
|
140
|
+
_this = _AtomicElements.call(this) || this;
|
|
141
|
+
_this.layout = [Layout1];
|
|
142
|
+
_this.layoutFootprint = ['text_image_layout_1.png'];
|
|
143
|
+
_this.layoutFootprintReq = [{
|
|
144
|
+
'title': 'Tittle',
|
|
145
|
+
'content': 'Content'
|
|
146
|
+
}, {
|
|
147
|
+
'title': 'Tittle',
|
|
148
|
+
'content': 'Content',
|
|
149
|
+
'name': 'Name'
|
|
150
|
+
}];
|
|
151
|
+
return _this;
|
|
152
|
+
}
|
|
153
|
+
return Brief;
|
|
154
|
+
}(AtomicElements);
|
|
217
155
|
|
|
218
156
|
function Layout1$1(content) {
|
|
219
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
157
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
158
|
+
sx: {
|
|
159
|
+
display: 'flex',
|
|
160
|
+
flexDirection: 'column',
|
|
161
|
+
justifyContent: 'center'
|
|
162
|
+
}
|
|
163
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
164
|
+
className: "title-xlarge",
|
|
165
|
+
sx: {
|
|
166
|
+
color: Colors.contrastText,
|
|
167
|
+
marginBottom: '16px'
|
|
168
|
+
}
|
|
169
|
+
}, 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
|
+
className: "title",
|
|
177
|
+
sx: {
|
|
178
|
+
color: Colors.contrastText,
|
|
179
|
+
marginBottom: '16px'
|
|
180
|
+
}
|
|
181
|
+
}, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(Button, {
|
|
220
182
|
variant: "contained",
|
|
221
183
|
sx: {
|
|
222
|
-
width: '100%'
|
|
184
|
+
width: '100%',
|
|
185
|
+
marginBottom: '16px'
|
|
223
186
|
}
|
|
224
187
|
}, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'));
|
|
225
188
|
}
|
|
@@ -244,14 +207,38 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
|
|
|
244
207
|
return Banner;
|
|
245
208
|
}(AtomicElements);
|
|
246
209
|
|
|
247
|
-
function
|
|
248
|
-
var
|
|
249
|
-
|
|
210
|
+
function CanvasContainer(props) {
|
|
211
|
+
var json = props.json,
|
|
212
|
+
children = props.children;
|
|
213
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
250
214
|
sx: {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
215
|
+
minHeight: '680px',
|
|
216
|
+
padding: '32px',
|
|
217
|
+
display: 'flex',
|
|
218
|
+
alignItems: 'center',
|
|
219
|
+
backgroundColor: json.component.bg_type === 1 ? json.component.bg_color1 : undefined,
|
|
220
|
+
backgroundImage: json.component.bg_type === 2 ? "linear-gradient(" + json.component.bg_color1 + ", " + json.component.bg_color2 + ")" : json.component.bg_type === 3 ? "url(" + json.component.bg_image.url + ")" : undefined,
|
|
221
|
+
backgroundPosition: 'center',
|
|
222
|
+
backgroundSize: 'cover',
|
|
223
|
+
backgroundRepeat: 'no-repeat'
|
|
224
|
+
}
|
|
225
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
226
|
+
maxWidth: "xl",
|
|
227
|
+
sx: {
|
|
228
|
+
display: 'flex',
|
|
229
|
+
justifyContent: {
|
|
230
|
+
xs: 'center',
|
|
231
|
+
md: 'right'
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
235
|
+
sx: {
|
|
236
|
+
maxWidth: {
|
|
237
|
+
xs: '100%',
|
|
238
|
+
md: '30%'
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}, children)));
|
|
255
242
|
}
|
|
256
243
|
|
|
257
244
|
var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
|
|
@@ -263,7 +250,7 @@ var Section = /*#__PURE__*/function () {
|
|
|
263
250
|
var _proto = Section.prototype;
|
|
264
251
|
_proto.component = function component(json) {
|
|
265
252
|
console.log('json', json);
|
|
266
|
-
return /*#__PURE__*/React.createElement(
|
|
253
|
+
return /*#__PURE__*/React.createElement(CanvasContainer, {
|
|
267
254
|
json: json
|
|
268
255
|
}, this.child.build(json, json.component.layout));
|
|
269
256
|
};
|
package/dist/index.modern.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.js","sources":["../src/atomicElement.js","../src/brief/elements/layout1.js","../src/brief/Component.js","../src/theme/index.js","../src/banner/styles.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/HeadContainer.js","../example/constants.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n 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 { Card, CardContent, Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\n\r\n\r\nexport default function Layout1(content){\r\n return(\r\n <Grid>\r\n {content['0']?.title ? content['0'].title : ''}\r\n <Card>\r\n {/* <CardContent>\r\n {content['0']?.title ? content['0'].title : 'placeholder'}\r\n </CardContent> */}\r\n </Card>\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Brief extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n 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 { createTheme } from \"@mui/material/styles\";\r\n//import { COLOR_PRIMARY,COLOR_SECONDARY } from \"../../utils/constants\";\r\n\r\nconst COLOR_PRIMARY = '#4CAF50'\r\n\r\nconst COLOR_SECONDARY = '#FF5722'\r\n\r\nexport const Colors = {\r\n // primary: \"#4CAF50\",\r\n // secondary: \"#FF5722\",\r\n contrastText: '#fff',\r\n grayText: \"#8a8a8a\",\r\n success: \"#00A650\",\r\n info: \"#3483FA\",\r\n danger: \"#B12704\",\r\n warning: \"#FFC107\",\r\n dark: \"#0e1b20\",\r\n ligth: \"#aaa\",\r\n muted: \"#abafb3\",\r\n border: \"#DDDFE1\",\r\n inverse: \"#2F3D4A\",\r\n shaft: \"#333\",\r\n\r\n ///////////////\r\n // Greens \r\n ///////////////\r\n ligth_green: \"#9ad28a\",\r\n ligth_green_default: \"#9ad29c\",\r\n green_dark: \"#6fbf73\", \r\n\r\n // dim_gray:\"#487e4c\",\r\n // body_bg: \"#81c784\",\r\n\r\n /////////////////\r\n // solid color\r\n /////////////////\r\n white: \"#fff\",\r\n black: \"#000\",\r\n\r\n //custom colors\r\n prim: \"#292929\",\r\n sec: \"#545454\",\r\n sec_alt: \"#767676\",\r\n hiden: \"#C8C8C8\",\r\n green: \"#6fbf73\",\r\n\r\n //footer colors\r\n footer_backgound:\"#f4f4f4\"\r\n}\r\n\r\nconst theme = createTheme({\r\n palette: {\r\n primary: {\r\n main: COLOR_PRIMARY,\r\n },\r\n secondary: {\r\n main: COLOR_SECONDARY,\r\n },\r\n },\r\n components: {\r\n // Name of the component\r\n MuiButtonBase: {\r\n defaultProps: {\r\n disableRipple: true,\r\n },\r\n },\r\n typography: {\r\n button: {\r\n textTransform: 'none'\r\n }\r\n },\r\n MuiOutlinedInput:{\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px'\r\n },\r\n },\r\n },\r\n MuiButton: {\r\n styleOverrides: {\r\n // Name of the slot\r\n root: {\r\n // Some CSS\r\n borderRadius: '90px',\r\n textTransform: 'initial'\r\n },\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default theme;","import { Button, Typography } from \"@mui/material\";\r\nimport { styled } from \"@mui/material/styles\";\r\nimport { Box, style } from \"@mui/material\";\r\nimport theme, { Colors } from \"../theme\";\r\n\r\nexport const BannerContainer = styled(Box)(({ theme, json }) => ({\r\n display: 'flex',\r\n justifyContent: 'right',\r\n heigth: '100%',\r\n padding: '32px',\r\n backgroundColor:\r\n json.component.bg_color1 && json.component.bg_type == 1\r\n ? json.component.bg_color1\r\n : null,\r\n backgroundImage:\r\n json.component.bg_image?.url && json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : json.component.bg_image?.url && json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : 'none',\r\n backgroundPosition: '0% 20%',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n [theme.breakpoints.down('sm')]: {\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n },\r\n // [theme.breakpoints.down('md')]: {\r\n // flexDirection: 'column',\r\n // alignItems: 'center'\r\n // },\r\n}));\r\n\r\nexport const BannerImage = styled('img')(({ src, theme }) => ({\r\n src: `url(${src})`,\r\n width: '40%',\r\n height: 'auto',\r\n [theme.breakpoints.down('md')]: {\r\n width: '70%',\r\n height: 'auto',\r\n },\r\n [theme.breakpoints.down('sm')]: {\r\n width: '90%',\r\n height: 'auto',\r\n }\r\n}))\r\n\r\n\r\nexport const BannerContent = styled(Box)(() => ({\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n width: '100%',\r\n maxWidth: '30%',\r\n [theme.breakpoints.down('md')]: {\r\n maxWidth: '90%',\r\n },\r\n padding: '30px',\r\n color: Colors.contrastText\r\n}))\r\n\r\n\r\nexport const BannerTittle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '28px',\r\n marginBottom: '20px',\r\n color: Colors.contrastText,\r\n [theme.breakpoints.down('sm')]: {\r\n fontSize: '42px'\r\n }\r\n}))\r\n\r\nexport const BannerSubtitle = styled(Typography)(() => ({\r\n lineHeigth: 1.5,\r\n fontSize: '24px',\r\n marginBottom: '20px',\r\n color: Colors.contrastText,\r\n [theme.breakpoints.down('sm')]: {\r\n fontSize: '42px'\r\n }\r\n}))\r\n\r\nexport const BannerDescription = styled(Typography)(({ theme }) => ({\r\n lineHeigth: 1.25,\r\n fontSize: '22px',\r\n letterSpacing: 1.25,\r\n marginBottom: \"3em\",\r\n [theme.breakpoints.down('md')]: {\r\n lineHeigth: 1.15,\r\n letterSpacing: 1.15,\r\n marginBottom: \"1.5em\",\r\n }\r\n}))\r\n","import { Box, Button } from '@mui/material'\r\nimport React from 'react'\r\nimport { BannerTittle, BannerSubtitle, BannerDescription } from '../styles'\r\n\r\nexport default function Layout1(content) {\r\n return (\r\n <Box>\r\n <BannerTittle>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </BannerTittle>\r\n <BannerSubtitle>\r\n {content.component.subcomponent[0].subtitle\r\n ? content.component.subcomponent[0].subtitle\r\n : 'Agregue subtítulo'}\r\n </BannerSubtitle>\r\n <BannerDescription>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </BannerDescription>\r\n <Button variant='contained' sx={{ width: '100%' }}>\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\n\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport { BannerContainer, BannerContent, BannerDescription, BannerImage, BannerTittle, BannerButton } from \"../banner/styles\";\r\n\r\nexport default function HeadContainer(props){\r\n// console.log(\"🚀 ~ file: HeadContainer.js:7 ~ HeadContainer ~ props:\", props.json.component.bg_image.url)\r\n\r\n const theme = useTheme();\r\n\r\n return(\r\n <BannerContainer sx={{height:'680px'}} json={props.json}>\r\n <BannerContent>\r\n {props.children}\r\n </BannerContent>\r\n </BannerContainer>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import React from \"react\"\r\nimport { Brief } from \"./brief/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport HeadContainer from \"./canvas/HeadContainer\"\r\nimport { JK_RESOURCES } from \"../example/constants\"\r\n// Section is a common class for each component\r\nexport class Section{\r\n constructor(AtomicElement) {\r\n this.child = AtomicElement\r\n }\r\n \r\n component(json){\r\n console.log('json', json)\r\n return(\r\n <HeadContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json, json.component.layout)}\r\n </HeadContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout){\r\n let 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","Layout1","_content$","React","createElement","Grid","title","Card","Brief","_AtomicElements","_inheritsLoose","_this","call","COLOR_PRIMARY","COLOR_SECONDARY","Colors","contrastText","grayText","success","info","danger","warning","dark","ligth","muted","border","inverse","shaft","ligth_green","ligth_green_default","green_dark","white","black","prim","sec","sec_alt","hiden","green","footer_backgound","theme","createTheme","palette","primary","main","secondary","components","MuiButtonBase","defaultProps","disableRipple","typography","button","textTransform","MuiOutlinedInput","styleOverrides","root","borderRadius","MuiButton","BannerContainer","styled","Box","_ref","_json$component$bg_im","_json$component$bg_im2","_ref2","json","display","justifyContent","heigth","padding","backgroundColor","component","bg_color1","bg_type","backgroundImage","bg_image","url","bg_color2","backgroundPosition","backgroundSize","backgroundRepeat","breakpoints","down","flexDirection","alignItems","BannerImage","_ref3","_ref4","src","width","height","BannerContent","_ref5","maxWidth","color","BannerTittle","Typography","_ref6","lineHeigth","fontSize","marginBottom","BannerSubtitle","_ref7","BannerDescription","_ref8","_ref9","letterSpacing","subcomponent","subtitle","description","Button","variant","sx","button_title","Banner","HeadContainer","props","useTheme","children","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;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;EACjB,SAAAA,WAAa;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIP,OAAO,CAAC,IAAIN,MAAM,EAAE,CAAC;IACvC,IAAI,CAACc,KAAK,GAAG,IAAIR,OAAO,CAAC,IAAI/G,KAAK,EAAE,CAAC;IACrC,IAAI,CAACwH,QAAQ,GAAG,CAAC,IAAI,CAACF,MAAM,EAAE,IAAI,CAACC,KAAK,CAAC;;EACzC,IAAAE,OAAA,GAAAJ,QAAA,CAAAvI,SAAA;EAAA2I,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/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: 'right' } }} >\r\n {/* <Container maxWidth='xl' sx={{ bgcolor: 'red' }}> */}\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","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,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