@content-blocks/js 0.5.0 → 0.7.0
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/cjs/content-accordion_11.cjs.entry.js +79 -61
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
- package/dist/cjs/content-blocks.cjs.js +2 -2
- package/dist/cjs/content-carousel.cjs.entry.js +2 -1
- package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js +24 -20
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
- package/dist/cjs/content-split-block.cjs.entry.js +4 -4
- package/dist/cjs/content-split-block.cjs.entry.js.map +1 -1
- package/dist/cjs/content-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{index-072153fb.js → index-9f20d89a.js} +34 -4
- package/dist/cjs/index-9f20d89a.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-9856e159.js → utils-db61cd70.js} +1 -3
- package/dist/cjs/utils-db61cd70.js.map +1 -0
- package/dist/cjs/{window-resize-service-77b2c64e.js → window-resize-service-ac5c2012.js} +2 -2
- package/dist/cjs/{window-resize-service-77b2c64e.js.map → window-resize-service-ac5c2012.js.map} +1 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.css +6 -0
- package/dist/collection/blocks/content-split-block/content-split-block.js +1 -1
- package/dist/collection/blocks/content-split-block/content-split-block.js.map +1 -1
- package/dist/collection/blocks/content-text-block/content-text-block.css +8 -8
- package/dist/collection/blocks/content-text-block/content-text-block.js +4 -4
- package/dist/collection/blocks/content-text-block/content-text-block.js.map +1 -1
- package/dist/collection/components/content-accordion/content-accordion.js +4 -6
- package/dist/collection/components/content-accordion/content-accordion.js.map +1 -1
- package/dist/collection/components/content-carousel/content-carousel.js +1 -0
- package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +21 -17
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
- package/dist/collection/components/content-overlay/content-overlay.css +12 -9
- package/dist/collection/components/content-overlay/content-overlay.js +32 -17
- package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
- package/dist/collection/elements/content-button/content-button.js +2 -6
- package/dist/collection/elements/content-button/content-button.js.map +1 -1
- package/dist/collection/elements/content-image/content-image.css +4 -7
- package/dist/collection/elements/content-image/content-image.js +82 -21
- package/dist/collection/elements/content-image/content-image.js.map +1 -1
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +1 -0
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +58 -15
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
- package/dist/collection/formatters/content-spacer/content-spacer.css +16 -3
- package/dist/collection/formatters/content-spacer/content-spacer.js +47 -5
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
- package/dist/collection/stories/ContentHeroBlock.stories.js +2 -2
- package/dist/collection/stories/ContentHeroBlock.stories.js.map +1 -1
- package/dist/collection/stories/FullPageExample.stories.js +11 -11
- package/dist/collection/stories/FullPageExample.stories.js.map +1 -1
- package/dist/components/content-accordion.js +3 -4
- package/dist/components/content-accordion.js.map +1 -1
- package/dist/components/content-button.js +3 -6
- package/dist/components/content-button.js.map +1 -1
- package/dist/components/content-carousel.js +2 -0
- package/dist/components/content-carousel.js.map +1 -1
- package/dist/components/content-grid-formatter2.js +19 -12
- package/dist/components/content-grid-formatter2.js.map +1 -1
- package/dist/components/content-hero-block.js +2 -1
- package/dist/components/content-hero-block.js.map +1 -1
- package/dist/components/content-image.js +30 -22
- package/dist/components/content-image.js.map +1 -1
- package/dist/components/content-line.js +1 -0
- package/dist/components/content-line.js.map +1 -1
- package/dist/components/content-navigation-block.js +22 -17
- package/dist/components/content-navigation-block.js.map +1 -1
- package/dist/components/content-overlay.js +29 -13
- package/dist/components/content-overlay.js.map +1 -1
- package/dist/components/content-spacer.js +8 -4
- package/dist/components/content-spacer.js.map +1 -1
- package/dist/components/content-split-block.js +2 -1
- package/dist/components/content-split-block.js.map +1 -1
- package/dist/components/content-tabs.js +1 -0
- package/dist/components/content-tabs.js.map +1 -1
- package/dist/components/content-text-block.js +5 -4
- package/dist/components/content-text-block.js.map +1 -1
- package/dist/components/content-tout-block.js +1 -0
- package/dist/components/content-tout-block.js.map +1 -1
- package/dist/components/content-video.js +1 -0
- package/dist/components/content-video.js.map +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/content-blocks/content-blocks.esm.js +1 -1
- package/dist/content-blocks/content-blocks.esm.js.map +1 -1
- package/dist/content-blocks/index.esm.js +1 -1
- package/dist/content-blocks/p-24657e66.entry.js +10 -0
- package/dist/content-blocks/p-24657e66.entry.js.map +1 -0
- package/dist/content-blocks/{p-30ab003a.entry.js → p-271fb304.entry.js} +2 -2
- package/dist/content-blocks/p-271fb304.entry.js.map +1 -0
- package/dist/content-blocks/p-288eace9.js +3 -0
- package/dist/content-blocks/p-288eace9.js.map +1 -0
- package/dist/content-blocks/{p-fd14acd9.entry.js → p-4bfbd7ef.entry.js} +2 -2
- package/dist/content-blocks/{p-fd14acd9.entry.js.map → p-4bfbd7ef.entry.js.map} +1 -1
- package/dist/content-blocks/{p-ebaee21f.entry.js → p-6a177aef.entry.js} +2 -2
- package/dist/content-blocks/{p-ebaee21f.entry.js.map → p-6a177aef.entry.js.map} +1 -1
- package/dist/content-blocks/{p-2c515f18.entry.js → p-8cc22c1e.entry.js} +2 -2
- package/dist/content-blocks/{p-da2c36ea.js → p-b04fe808.js} +2 -2
- package/dist/content-blocks/{p-da2c36ea.js.map → p-b04fe808.js.map} +1 -1
- package/dist/content-blocks/{p-3b4b9ad1.js → p-cfb4593f.js} +2 -2
- package/dist/esm/content-accordion_11.entry.js +79 -61
- package/dist/esm/content-accordion_11.entry.js.map +1 -1
- package/dist/esm/content-blocks.js +3 -3
- package/dist/esm/content-carousel.entry.js +2 -1
- package/dist/esm/content-carousel.entry.js.map +1 -1
- package/dist/esm/content-navigation-block.entry.js +24 -20
- package/dist/esm/content-navigation-block.entry.js.map +1 -1
- package/dist/esm/content-split-block.entry.js +4 -4
- package/dist/esm/content-split-block.entry.js.map +1 -1
- package/dist/esm/content-tabs.entry.js +3 -3
- package/dist/esm/{index-5c31f78b.js → index-e848c048.js} +34 -4
- package/dist/esm/index-e848c048.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-4f29a9cf.js → utils-4f78228e.js} +2 -2
- package/dist/esm/utils-4f78228e.js.map +1 -0
- package/dist/esm/{window-resize-service-332e7420.js → window-resize-service-f40ec51c.js} +2 -2
- package/dist/esm/{window-resize-service-332e7420.js.map → window-resize-service-f40ec51c.js.map} +1 -1
- package/dist/types/blocks/content-text-block/content-text-block.d.ts +1 -1
- package/dist/types/components/content-accordion/content-accordion.d.ts +6 -7
- package/dist/types/components/content-overlay/content-overlay.d.ts +6 -4
- package/dist/types/components.d.ts +67 -15
- package/dist/types/elements/content-button/content-button.d.ts +2 -2
- package/dist/types/elements/content-image/content-image.d.ts +13 -0
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +10 -4
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +11 -2
- package/dist/types/typings.d.ts +3 -3
- package/package.json +1 -1
- package/dist/cjs/index-072153fb.js.map +0 -1
- package/dist/cjs/utils-9856e159.js.map +0 -1
- package/dist/content-blocks/p-2faf0c78.js +0 -3
- package/dist/content-blocks/p-2faf0c78.js.map +0 -1
- package/dist/content-blocks/p-30ab003a.entry.js.map +0 -1
- package/dist/content-blocks/p-b8009321.entry.js +0 -10
- package/dist/content-blocks/p-b8009321.entry.js.map +0 -1
- package/dist/esm/index-5c31f78b.js.map +0 -1
- package/dist/esm/utils-4f29a9cf.js.map +0 -1
- /package/dist/content-blocks/{p-2c515f18.entry.js.map → p-8cc22c1e.entry.js.map} +0 -0
- /package/dist/content-blocks/{p-3b4b9ad1.js.map → p-cfb4593f.js.map} +0 -0
|
@@ -11,22 +11,23 @@ export class ContentGridFormatter {
|
|
|
11
11
|
this.type = 'flex';
|
|
12
12
|
this.flexGrow = 'false';
|
|
13
13
|
this.flexShrink = 'false';
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
14
|
+
this.vertical = 'space-between';
|
|
15
|
+
this.horizontal = 'space-between';
|
|
16
16
|
this.columns = '1';
|
|
17
|
+
this.columnGap = '0';
|
|
17
18
|
this.activeClassString = undefined;
|
|
18
19
|
this.inlineStyle = {};
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
componentWillLoad() {
|
|
21
22
|
return Promise.allSettled([
|
|
22
23
|
WindowResizeService.registerProp(this.type).subscribe(newValue => (this.type = newValue)),
|
|
23
|
-
WindowResizeService.registerProp(this.
|
|
24
|
-
this.
|
|
25
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--align-items': this.
|
|
24
|
+
WindowResizeService.registerProp(this.vertical).subscribe(newValue => {
|
|
25
|
+
this.vertical = newValue;
|
|
26
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--align-items': this.vertical });
|
|
26
27
|
}),
|
|
27
|
-
WindowResizeService.registerProp(this.
|
|
28
|
-
this.
|
|
29
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--justify-content': this.
|
|
28
|
+
WindowResizeService.registerProp(this.horizontal).subscribe(newValue => {
|
|
29
|
+
this.horizontal = newValue;
|
|
30
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--justify-content': this.horizontal });
|
|
30
31
|
}),
|
|
31
32
|
WindowResizeService.registerProp(this.flexShrink).subscribe(newValue => (this.flexShrink = newValue)),
|
|
32
33
|
WindowResizeService.registerProp(this.flexGrow).subscribe(newValue => (this.flexGrow = newValue)),
|
|
@@ -34,6 +35,10 @@ export class ContentGridFormatter {
|
|
|
34
35
|
this.columns = newValue;
|
|
35
36
|
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--columns': newValue });
|
|
36
37
|
}),
|
|
38
|
+
WindowResizeService.registerProp(this.columnGap).subscribe(newValue => {
|
|
39
|
+
this.columnGap = newValue;
|
|
40
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--column-gap': newValue });
|
|
41
|
+
}),
|
|
37
42
|
WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue)),
|
|
38
43
|
]);
|
|
39
44
|
}
|
|
@@ -86,13 +91,18 @@ export class ContentGridFormatter {
|
|
|
86
91
|
"type": "string",
|
|
87
92
|
"mutable": true,
|
|
88
93
|
"complexType": {
|
|
89
|
-
"original": "GRID_TYPES",
|
|
90
|
-
"resolved": "
|
|
94
|
+
"original": "GRID_TYPES | ResponsiveString",
|
|
95
|
+
"resolved": "string",
|
|
91
96
|
"references": {
|
|
92
97
|
"GRID_TYPES": {
|
|
93
98
|
"location": "import",
|
|
94
99
|
"path": "../../typings",
|
|
95
100
|
"id": "src/typings.d.ts::GRID_TYPES"
|
|
101
|
+
},
|
|
102
|
+
"ResponsiveString": {
|
|
103
|
+
"location": "import",
|
|
104
|
+
"path": "../../typings",
|
|
105
|
+
"id": "src/typings.d.ts::ResponsiveString"
|
|
96
106
|
}
|
|
97
107
|
}
|
|
98
108
|
},
|
|
@@ -102,6 +112,9 @@ export class ContentGridFormatter {
|
|
|
102
112
|
"tags": [{
|
|
103
113
|
"name": "type",
|
|
104
114
|
"text": "Select"
|
|
115
|
+
}, {
|
|
116
|
+
"name": "options",
|
|
117
|
+
"text": "none"
|
|
105
118
|
}, {
|
|
106
119
|
"name": "options",
|
|
107
120
|
"text": "flex"
|
|
@@ -178,7 +191,7 @@ export class ContentGridFormatter {
|
|
|
178
191
|
"reflect": true,
|
|
179
192
|
"defaultValue": "'false'"
|
|
180
193
|
},
|
|
181
|
-
"
|
|
194
|
+
"vertical": {
|
|
182
195
|
"type": "string",
|
|
183
196
|
"mutable": true,
|
|
184
197
|
"complexType": {
|
|
@@ -216,11 +229,11 @@ export class ContentGridFormatter {
|
|
|
216
229
|
}],
|
|
217
230
|
"text": "Vertical axis alignment"
|
|
218
231
|
},
|
|
219
|
-
"attribute": "vertical
|
|
232
|
+
"attribute": "vertical",
|
|
220
233
|
"reflect": true,
|
|
221
234
|
"defaultValue": "'space-between'"
|
|
222
235
|
},
|
|
223
|
-
"
|
|
236
|
+
"horizontal": {
|
|
224
237
|
"type": "string",
|
|
225
238
|
"mutable": true,
|
|
226
239
|
"complexType": {
|
|
@@ -258,7 +271,7 @@ export class ContentGridFormatter {
|
|
|
258
271
|
}],
|
|
259
272
|
"text": "Horizontal axis alignment"
|
|
260
273
|
},
|
|
261
|
-
"attribute": "horizontal
|
|
274
|
+
"attribute": "horizontal",
|
|
262
275
|
"reflect": true,
|
|
263
276
|
"defaultValue": "'space-between'"
|
|
264
277
|
},
|
|
@@ -291,6 +304,36 @@ export class ContentGridFormatter {
|
|
|
291
304
|
"attribute": "columns",
|
|
292
305
|
"reflect": true,
|
|
293
306
|
"defaultValue": "'1'"
|
|
307
|
+
},
|
|
308
|
+
"columnGap": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"mutable": true,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "ResponsiveNumber",
|
|
313
|
+
"resolved": "string",
|
|
314
|
+
"references": {
|
|
315
|
+
"ResponsiveNumber": {
|
|
316
|
+
"location": "import",
|
|
317
|
+
"path": "../../typings",
|
|
318
|
+
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": false,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [{
|
|
326
|
+
"name": "type",
|
|
327
|
+
"text": "Number"
|
|
328
|
+
}, {
|
|
329
|
+
"name": "responsive",
|
|
330
|
+
"text": undefined
|
|
331
|
+
}],
|
|
332
|
+
"text": ""
|
|
333
|
+
},
|
|
334
|
+
"attribute": "column-gap",
|
|
335
|
+
"reflect": true,
|
|
336
|
+
"defaultValue": "'0'"
|
|
294
337
|
}
|
|
295
338
|
};
|
|
296
339
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-grid-formatter.js","sourceRoot":"","sources":["../../../../src/formatters/content-grid-formatter/content-grid-formatter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;;GAGG;AAMH,MAAM,OAAO,oBAAoB;;;;
|
|
1
|
+
{"version":3,"file":"content-grid-formatter.js","sourceRoot":"","sources":["../../../../src/formatters/content-grid-formatter/content-grid-formatter.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, h, Host, Prop, State } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { FLEX_JUSTIFY_OPTIONS, GRID_TYPES, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot media - This slot can either be a video or image component.\n * @slot content - This slot will usually serve a content text block.\n */\n@Component({\n tag: 'content-grid-formatter',\n styleUrl: 'content-grid-formatter.scss',\n shadow: false,\n})\nexport class ContentGridFormatter {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Flex or grid\n * @type Select\n * @options none\n * @options flex\n * @options grid\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n type: GRID_TYPES | ResponsiveString = 'flex';\n /**\n * Setting this true to will grow all children. Alternatively, add the attribute [flex-grow=\"true\"] to a specific grid child and that child will grow.\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n flexGrow: ResponsiveBoolean = 'false';\n /**\n * Setting this true to will shrink all children. Alternatively, add the attribute [flex-shrink=\"true\"] to a specific grid child and that child will shrink.\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n flexShrink: ResponsiveBoolean = 'false';\n /**\n * Vertical axis alignment\n * @type Select\n * @options flex-start\n * @options space-between\n * @options center\n * @options space-evenly\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: FLEX_JUSTIFY_OPTIONS = 'space-between';\n\n /**\n * Horizontal axis alignment\n * @type Select\n * @options flex-start\n * @options space-between\n * @options center\n * @options space-evenly\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n horizontal: FLEX_JUSTIFY_OPTIONS = 'space-between';\n /**\n * @type Number\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n columns: ResponsiveNumber = '1';\n\n /**\n * @type Number\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n columnGap: ResponsiveNumber = '0';\n\n @State() activeClassString: string;\n @State() inlineStyle: { [key: string]: string } = {};\n\n componentWillLoad() {\n return Promise.allSettled([\n WindowResizeService.registerProp(this.type).subscribe(newValue => (this.type = newValue as GRID_TYPES)),\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => {\n this.vertical = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--align-items': this.vertical,\n };\n }),\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => {\n this.horizontal = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--justify-content': this.horizontal,\n };\n }),\n WindowResizeService.registerProp(this.flexShrink).subscribe(newValue => (this.flexShrink = newValue as string)),\n WindowResizeService.registerProp(this.flexGrow).subscribe(newValue => (this.flexGrow = newValue as string)),\n WindowResizeService.registerProp(this.columns).subscribe(newValue => {\n this.columns = newValue as string;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--columns': newValue as string,\n };\n }),\n WindowResizeService.registerProp(this.columnGap).subscribe(newValue => {\n this.columnGap = newValue as string;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--column-gap': newValue as string,\n };\n }),\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string)),\n ]);\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <slot />\n </Host>\n );\n }\n}\n"]}
|
|
@@ -19,15 +19,28 @@ content-spacer[text-align=center] {
|
|
|
19
19
|
content-spacer[text-align=right] {
|
|
20
20
|
text-align: right;
|
|
21
21
|
}
|
|
22
|
-
content-spacer[horizontal
|
|
22
|
+
content-spacer[horizontal=left] {
|
|
23
23
|
margin-left: 0;
|
|
24
24
|
margin-right: auto;
|
|
25
25
|
}
|
|
26
|
-
content-spacer[horizontal
|
|
26
|
+
content-spacer[horizontal=center] {
|
|
27
27
|
margin-left: auto;
|
|
28
28
|
margin-right: auto;
|
|
29
29
|
}
|
|
30
|
-
content-spacer[horizontal
|
|
30
|
+
content-spacer[horizontal=right] {
|
|
31
31
|
margin-left: auto;
|
|
32
32
|
margin-right: 0;
|
|
33
|
+
}
|
|
34
|
+
content-spacer[vertical] {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
38
|
+
content-spacer[vertical=top] {
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
}
|
|
41
|
+
content-spacer[vertical=center] {
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
content-spacer[vertical=bottom] {
|
|
45
|
+
justify-content: flex-end;
|
|
33
46
|
}
|
|
@@ -11,7 +11,8 @@ export class ContentSpacingWrapper {
|
|
|
11
11
|
this.maxWidth = '100';
|
|
12
12
|
this.fullHeight = 'false';
|
|
13
13
|
this.textAlign = 'default';
|
|
14
|
-
this.
|
|
14
|
+
this.horizontal = 'default';
|
|
15
|
+
this.vertical = 'top';
|
|
15
16
|
this.topOffset = '0';
|
|
16
17
|
this.bottomOffset = '0';
|
|
17
18
|
this.leftOffset = '0';
|
|
@@ -21,7 +22,8 @@ export class ContentSpacingWrapper {
|
|
|
21
22
|
componentWillLoad() {
|
|
22
23
|
WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue));
|
|
23
24
|
WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue));
|
|
24
|
-
WindowResizeService.registerProp(this.
|
|
25
|
+
WindowResizeService.registerProp(this.horizontal).subscribe(newValue => (this.horizontal = newValue));
|
|
26
|
+
WindowResizeService.registerProp(this.vertical).subscribe(newValue => (this.vertical = newValue));
|
|
25
27
|
WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {
|
|
26
28
|
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'max-width': isNaN(newValue) ? newValue : newValue + '%' });
|
|
27
29
|
});
|
|
@@ -186,7 +188,7 @@ export class ContentSpacingWrapper {
|
|
|
186
188
|
"reflect": true,
|
|
187
189
|
"defaultValue": "'default'"
|
|
188
190
|
},
|
|
189
|
-
"
|
|
191
|
+
"horizontal": {
|
|
190
192
|
"type": "string",
|
|
191
193
|
"mutable": true,
|
|
192
194
|
"complexType": {
|
|
@@ -224,8 +226,48 @@ export class ContentSpacingWrapper {
|
|
|
224
226
|
}],
|
|
225
227
|
"text": "Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified."
|
|
226
228
|
},
|
|
227
|
-
"attribute": "horizontal
|
|
228
|
-
"reflect": true
|
|
229
|
+
"attribute": "horizontal",
|
|
230
|
+
"reflect": true,
|
|
231
|
+
"defaultValue": "'default'"
|
|
232
|
+
},
|
|
233
|
+
"vertical": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": true,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "ContentVerticalAlignments",
|
|
238
|
+
"resolved": "\"bottom\" | \"center\" | \"top\"",
|
|
239
|
+
"references": {
|
|
240
|
+
"ContentVerticalAlignments": {
|
|
241
|
+
"location": "import",
|
|
242
|
+
"path": "../../typings",
|
|
243
|
+
"id": "src/typings.d.ts::ContentVerticalAlignments"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [{
|
|
251
|
+
"name": "type",
|
|
252
|
+
"text": "Select"
|
|
253
|
+
}, {
|
|
254
|
+
"name": "options",
|
|
255
|
+
"text": "top"
|
|
256
|
+
}, {
|
|
257
|
+
"name": "options",
|
|
258
|
+
"text": "center"
|
|
259
|
+
}, {
|
|
260
|
+
"name": "options",
|
|
261
|
+
"text": "bottom"
|
|
262
|
+
}, {
|
|
263
|
+
"name": "responsive",
|
|
264
|
+
"text": undefined
|
|
265
|
+
}],
|
|
266
|
+
"text": "Pipe separated list of ContentVerticalAlignments for text box placement."
|
|
267
|
+
},
|
|
268
|
+
"attribute": "vertical",
|
|
269
|
+
"reflect": true,
|
|
270
|
+
"defaultValue": "'top'"
|
|
229
271
|
},
|
|
230
272
|
"topOffset": {
|
|
231
273
|
"type": "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-spacer.js","sourceRoot":"","sources":["../../../../src/formatters/content-spacer/content-spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;;GAGG;AAMH,MAAM,OAAO,qBAAqB;;;;wBAYK,KAAK;0BAWV,OAAO;yBAeE,SAAS
|
|
1
|
+
{"version":3,"file":"content-spacer.js","sourceRoot":"","sources":["../../../../src/formatters/content-spacer/content-spacer.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ContentVerticalAlignments, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot content - Inner contents of spacing wrapper, can be anything.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-spacer',\n styleUrls: ['content-spacer.scss'],\n shadow: false,\n})\nexport class ContentSpacingWrapper {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\".\n * @type String\n * @responsive\n */\n @Prop() maxWidth: ResponsiveNumber = '100';\n\n /**\n * Pipe separated boolean values for full height. Typically, this is used if you have a hero block and you want a footer that aligns with the text layer. This is a niche case, but a valid one.\n * @type Boolean\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n fullHeight: ResponsiveBoolean = 'false';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for text alignment.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n textAlign: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n horizontal: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentVerticalAlignments for text box placement.\n * @type Select\n * @options top\n * @options center\n * @options bottom\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: ContentVerticalAlignments = 'top';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() topOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() bottomOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() leftOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() rightOffset: ResponsiveNumber = '0';\n\n @State() inlineStyle?: { [key: string]: string } = {};\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue as string));\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => (this.horizontal = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => (this.vertical = newValue as ContentVerticalAlignments));\n WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'max-width': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-top': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-bottom': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-left': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-right': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -5,7 +5,7 @@ export const BasicExample = args => `<content-hero-block>
|
|
|
5
5
|
export const AdvancedExample = args => `<content-hero-block classes="main-hero|main-desktop-hero">
|
|
6
6
|
<content-image slot="background" src="https://picsum.photos/id/2/768/400"></content-image>
|
|
7
7
|
|
|
8
|
-
<content-spacer slot="content" full-height="true" left-offset="4|5|10" right-offset="4" top-offset="4" bottom-offset="4" max-width="100|55" horizontal
|
|
8
|
+
<content-spacer slot="content" full-height="true" left-offset="4|5|10" right-offset="4" top-offset="4" bottom-offset="4" max-width="100|55" horizontal="left">
|
|
9
9
|
<content-overlay target="#" id="heroVideoOverlay" full-screen="false" classes="custom-overlay">
|
|
10
10
|
<span slot="closeButton">X</span>
|
|
11
11
|
<div slot="content">
|
|
@@ -18,7 +18,7 @@ export const AdvancedExample = args => `<content-hero-block classes="main-hero|m
|
|
|
18
18
|
<content-video fit-container="true" autoplay="true" src="https://www.youtube.com/watch?v=xqyUdNxWazA"></content-video>
|
|
19
19
|
</div>
|
|
20
20
|
</content-overlay>
|
|
21
|
-
<content-text-block full-height="false|true" classes="light" vertical
|
|
21
|
+
<content-text-block full-height="false|true" classes="light" vertical="center">
|
|
22
22
|
<content-line classes="text-style--hero-header">Inceptos Commodo Ullamcorper</content-line>
|
|
23
23
|
<content-line classes="text-style--hero-header">Fringilla Venenatis Mattis Egestas Sem.<sup>*</sup></content-line>
|
|
24
24
|
<content-line classes="text-style--hero-subline">Vulputate Commodo Adipiscing Tristique Fusce</content-line>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeroBlock.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentHeroBlock.stories.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;uCACG,IAAI,CAAC,GAAG;;sBAEzB,CAAC;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA+BjB,CAAC;AAEvB,YAAY,CAAC,IAAI,GAAG;IAClB,GAAG,EAAE,oCAAoC;CAC1C,CAAC;AAEF,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,mBAAmB;AACnB,wEAAwE;AACxE,KAAK","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport { userEvent, waitFor, within } from '@storybook/testing-library';\n\nexport const BasicExample = args => `<content-hero-block>\n<content-image slot=\"background\" src=${args.src}></content-image>\n<div slot=\"content\">My content goes here</div>\n</content-hero-block>`;\n\nexport const AdvancedExample = args => `<content-hero-block classes=\"main-hero|main-desktop-hero\">\n<content-image slot=\"background\" src=\"https://picsum.photos/id/2/768/400\"></content-image>\n\n<content-spacer slot=\"content\" full-height=\"true\" left-offset=\"4|5|10\" right-offset=\"4\" top-offset=\"4\" bottom-offset=\"4\" max-width=\"100|55\" horizontal
|
|
1
|
+
{"version":3,"file":"ContentHeroBlock.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentHeroBlock.stories.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;uCACG,IAAI,CAAC,GAAG;;sBAEzB,CAAC;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA+BjB,CAAC;AAEvB,YAAY,CAAC,IAAI,GAAG;IAClB,GAAG,EAAE,oCAAoC;CAC1C,CAAC;AAEF,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,mBAAmB;AACnB,wEAAwE;AACxE,KAAK","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport { userEvent, waitFor, within } from '@storybook/testing-library';\n\nexport const BasicExample = args => `<content-hero-block>\n<content-image slot=\"background\" src=${args.src}></content-image>\n<div slot=\"content\">My content goes here</div>\n</content-hero-block>`;\n\nexport const AdvancedExample = args => `<content-hero-block classes=\"main-hero|main-desktop-hero\">\n<content-image slot=\"background\" src=\"https://picsum.photos/id/2/768/400\"></content-image>\n\n<content-spacer slot=\"content\" full-height=\"true\" left-offset=\"4|5|10\" right-offset=\"4\" top-offset=\"4\" bottom-offset=\"4\" max-width=\"100|55\" horizontal=\"left\">\n <content-overlay target=\"#\" id=\"heroVideoOverlay\" full-screen=\"false\" classes=\"custom-overlay\">\n <span slot=\"closeButton\">X</span>\n <div slot=\"content\">\n <content-video fit-container=\"true\" src=\"https://www.youtube.com/watch?v=xqyUdNxWazA\"></content-video>\n </div>\n </content-overlay>\n <content-overlay id=\"heroVideoFullscreen\" full-screen=\"true\" classes=\"custom-overlay\">\n <span slot=\"closeButton\">X</span>\n <div slot=\"content\">\n <content-video fit-container=\"true\" autoplay=\"true\" src=\"https://www.youtube.com/watch?v=xqyUdNxWazA\"></content-video>\n </div>\n </content-overlay>\n <content-text-block full-height=\"false|true\" classes=\"light\" vertical=\"center\">\n <content-line classes=\"text-style--hero-header\">Inceptos Commodo Ullamcorper</content-line>\n <content-line classes=\"text-style--hero-header\">Fringilla Venenatis Mattis Egestas Sem.<sup>*</sup></content-line>\n <content-line classes=\"text-style--hero-subline\">Vulputate Commodo Adipiscing Tristique Fusce</content-line>\n <content-line classes=\"text-style--copy\" max-width=\"100|60|75\">Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</content-line>\n <content-spacer top-offset=\"3\">\n <content-button classes=\"button button--light\" href=\"#heroVideoFullscreen\">Full Screen</content-button>\n\n <content-button classes=\"button button--light\" href=\"#heroVideoOverlay\">Module Overlay</content-button>\n </content-spacer>\n <content-text-block slot=\"footer\">\n <content-line classes=\"text-style--disclosure\">Amet Mollis Tristique Parturient Ridiculus</content-line>\n </content-text-block>\n </content-text-block>\n</content-spacer>\n</content-hero-block>`;\n\nBasicExample.args = {\n src: 'https://picsum.photos/id/2/768/400',\n};\n\nconst meta: Meta = {\n title: 'Content Hero Block',\n tags: ['autodocs'],\n parameters: {\n layout: 'fullscreen',\n },\n};\n\nexport default meta;\n\n// export default {\n// // this creates a ‘Components’ folder and a ‘MyComponent’ subfolder\n// };\n"]}
|
|
@@ -228,14 +228,14 @@ export const BasicExample = {
|
|
|
228
228
|
"></content-image>
|
|
229
229
|
</content-spacer>
|
|
230
230
|
<content-text-block slot="header">
|
|
231
|
-
<content-spacer max-width="90" horizontal
|
|
231
|
+
<content-spacer max-width="90" horizontal="left" text-align="left">
|
|
232
232
|
<content-line classes="text-style--header-1">Invent Yourself</content-line>
|
|
233
233
|
</content-spacer>
|
|
234
234
|
</content-text-block>
|
|
235
235
|
<content-grid-formatter class="grid--cast" columns="1|2|4" type="grid">
|
|
236
236
|
<content-tout-block hover="false">
|
|
237
237
|
<content-image slot="background" alt="Test Alt Text" lazy-load="false" width="2" height="3" src="https://picsum.photos/200/300?random=1&grayscale"></content-image>
|
|
238
|
-
<content-text-block slot="mediaContent" vertical
|
|
238
|
+
<content-text-block slot="mediaContent" vertical="bottom">
|
|
239
239
|
<content-spacer text-align="left" left-offset="4" bottom-offset="4">
|
|
240
240
|
<content-line classes="text-style--tout-media-content">Cast Name</content-line>
|
|
241
241
|
<content-line classes="text-style--tout-media-content">Proession/Aspiration</content-line>
|
|
@@ -244,7 +244,7 @@ export const BasicExample = {
|
|
|
244
244
|
</content-tout-block>
|
|
245
245
|
<content-tout-block hover="false">
|
|
246
246
|
<content-image slot="background" alt="Test Alt Text" lazy-load="false" width="2" height="3" src="https://picsum.photos/200/300?random=2&grayscale"></content-image>
|
|
247
|
-
<content-text-block slot="mediaContent" vertical
|
|
247
|
+
<content-text-block slot="mediaContent" vertical="bottom">
|
|
248
248
|
<content-spacer text-align="left" left-offset="4" bottom-offset="4">
|
|
249
249
|
<content-line classes="text-style--tout-media-content">Cast Name</content-line>
|
|
250
250
|
<content-line classes="text-style--tout-media-content">Proession/Aspiration</content-line>
|
|
@@ -253,7 +253,7 @@ export const BasicExample = {
|
|
|
253
253
|
</content-tout-block>
|
|
254
254
|
<content-tout-block hover="false">
|
|
255
255
|
<content-image slot="background" alt="Test Alt Text" lazy-load="false" width="2" height="3" src="https://picsum.photos/200/300?random=3&grayscale"></content-image>
|
|
256
|
-
<content-text-block slot="mediaContent" vertical
|
|
256
|
+
<content-text-block slot="mediaContent" vertical="bottom">
|
|
257
257
|
<content-spacer text-align="left" left-offset="4" bottom-offset="4">
|
|
258
258
|
<content-line classes="text-style--tout-media-content">Cast Name</content-line>
|
|
259
259
|
<content-line classes="text-style--tout-media-content">Proession/Aspiration</content-line>
|
|
@@ -262,7 +262,7 @@ export const BasicExample = {
|
|
|
262
262
|
</content-tout-block>
|
|
263
263
|
<content-tout-block hover="false">
|
|
264
264
|
<content-image slot="background" alt="Test Alt Text" lazy-load="false" width="2" height="3" src="https://picsum.photos/200/300?random=4&grayscale"></content-image>
|
|
265
|
-
<content-text-block slot="mediaContent" vertical
|
|
265
|
+
<content-text-block slot="mediaContent" vertical="bottom">
|
|
266
266
|
<content-spacer text-align="left" left-offset="4" bottom-offset="4">
|
|
267
267
|
<content-line classes="text-style--tout-media-content">Cast Name</content-line>
|
|
268
268
|
<content-line classes="text-style--tout-media-content">Proession/Aspiration</content-line>
|
|
@@ -318,7 +318,7 @@ export const BasicExample = {
|
|
|
318
318
|
<content-spacer top-offset="1" bottom-offset="1">
|
|
319
319
|
<content-hero-block>
|
|
320
320
|
<content-image slot="background" src="https://picsum.photos/1600/900?random=4&grayscale"></content-image>
|
|
321
|
-
<content-text-block slot="content" vertical
|
|
321
|
+
<content-text-block slot="content" vertical="center">
|
|
322
322
|
<content-spacer left-offset="4" max-width="100|75|65">
|
|
323
323
|
<content-line classes="text-style--header">Get Down WIth The Best Daily Routine</content-line>
|
|
324
324
|
<content-spacer top-offset="4">
|
|
@@ -437,7 +437,7 @@ export const BasicExample = {
|
|
|
437
437
|
<content-hero-block>
|
|
438
438
|
<content-image slot="background" src="https://picsum.photos/1600/900?random=9&grayscale"></content-image>
|
|
439
439
|
<content-text-block slot="content">
|
|
440
|
-
<content-spacer max-width="90|75|55|35" top-offset="2|8" left-offset="2" right-offset="2|7" horizontal
|
|
440
|
+
<content-spacer max-width="90|75|55|35" top-offset="2|8" left-offset="2" right-offset="2|7" horizontal="left|right">
|
|
441
441
|
<content-line classes="text-style--header">Just The Tip</content-line>
|
|
442
442
|
<content-line classes="text-style--subheader">Master your skills on how to up your skincare game.</content-line>
|
|
443
443
|
<content-spacer top-offset="2">
|
|
@@ -450,8 +450,8 @@ export const BasicExample = {
|
|
|
450
450
|
<content-spacer top-offset="5" bottom-offset="5">
|
|
451
451
|
<content-hero-block>
|
|
452
452
|
<content-image slot="background" src="https://picsum.photos/1600/900?random=10&grayscale"></content-image>
|
|
453
|
-
<content-text-block slot="content" vertical
|
|
454
|
-
<content-spacer max-width="90|75|55|35" left-offset="2" right-offset="10" horizontal
|
|
453
|
+
<content-text-block slot="content" vertical="center">
|
|
454
|
+
<content-spacer max-width="90|75|55|35" left-offset="2" right-offset="10" horizontal="left">
|
|
455
455
|
<content-line classes="text-style--header">THE DROP:</content-line>
|
|
456
456
|
<content-line classes="text-style--subheader">BE THBE FIRST TO OWN OUR NEW MAXELLENCE MATTE BLACK PACKAGING ></content-line>
|
|
457
457
|
<content-line classes="text-style--header">09/01/21</content-line>
|
|
@@ -466,8 +466,8 @@ export const BasicExample = {
|
|
|
466
466
|
<content-spacer bottom-offset="2">
|
|
467
467
|
<content-hero-block>
|
|
468
468
|
<content-image slot="background" src="https://picsum.photos/1600/900?random=11&grayscale"></content-image>
|
|
469
|
-
<content-text-block slot="content" vertical
|
|
470
|
-
<content-spacer max-width="90|75|55|45" left-offset="2|0" top-offset="2" right-offset="0" horizontal
|
|
469
|
+
<content-text-block slot="content" vertical="top">
|
|
470
|
+
<content-spacer max-width="90|75|55|45" left-offset="2|0" top-offset="2" right-offset="0" horizontal="left|right">
|
|
471
471
|
<content-line classes="text-style--header">Invigorate Yourself</content-line>
|
|
472
472
|
<content-line classes="text-style--subheader" max-width="100|82">Shop our Molecule Shop products</content-line>
|
|
473
473
|
<content-spacer top-offset="2">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullPageExample.stories.js","sourceRoot":"","sources":["../../../src/stories/FullPageExample.stories.ts"],"names":[],"mappings":"AACA,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EAAE,8CAA8C;aAC1D;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAU;IACjC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EAAE,2DAA2D;aACnE;SACF;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAucP;CACR,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nconst meta: Meta = {\n title: 'Full Page Examples',\n tags: ['autodocs'],\n parameters: {\n docs: {\n description: {\n component: 'Another description, overriding the comments',\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\n/**\n * # Primary Button\n * This is the primary button\n */\nexport const BasicExample: Story = {\n parameters: {\n docs: {\n description: {\n story: 'Another description on the story, overriding the comments',\n },\n },\n },\n render: () => `<style>\n html,body {\n font-size: 14px;\n font-family: \"Helvetica Neue\", \"Arial\", sans-serif;\n line-height: 1\n }\n \n @media screen and (min-width: 768px) {\n html,body {\n font-size:16px\n }\n }\n \n .page-wrapper {\n max-width: 1366px;\n margin: auto\n }\n \n .text-style--header-1 {\n font-weight: bold;\n text-transform: uppercase;\n line-height: .88;\n font-size: 72px\n }\n \n @media screen and (min-width: 768px) {\n .text-style--header-1 {\n font-size:80px\n }\n }\n \n @media screen and (min-width: 1024px) {\n .text-style--header-1 {\n font-size:224px\n }\n }\n \n .text-style--header-2 {\n font-size: 24px;\n text-transform: uppercase;\n font-weight: bold\n }\n \n @media screen and (min-width: 768px) {\n .text-style--header-2 {\n font-size:32px\n }\n }\n \n @media screen and (min-width: 1024px) {\n .text-style--header-2 {\n font-size:36px\n }\n }\n \n .text-style--header {\n font-weight: bold;\n text-transform: uppercase;\n line-height: 1;\n font-size: 60px\n }\n \n .text-style--subheader {\n font-size: 24px;\n line-height: 1\n }\n \n @media screen and (min-width: 768px) {\n .text-style--subheader {\n font-size:32px\n }\n }\n \n @media screen and (min-width: 1024px) {\n .text-style--subheader {\n font-size:36px\n }\n }\n \n .text-style--small-copy {\n font-size: 12px;\n text-transform: uppercase\n }\n \n .text-style--tout-media-content {\n color: white;\n font-size: 12px\n }\n \n .button {\n display: inline-flex;\n text-decoration: none;\n }\n \n .button a {\n color: inherit;\n font-size: inherit;\n text-decoration: inherit; \n }\n .button--primary {\n background: black;\n color: white;\n height: 50px;\n padding: 0 30px\n }\n \n .button--primary:hover {\n background: #333\n }\n \n .button--play {\n color: white;\n font-size: 32px;\n font-weight: bold\n }\n \n .link a {\n text-decoration: none;\n color: inherit\n }\n \n .link:hover a {\n color: red\n }\n \n .link--large a {\n font-weight: bold;\n font-size: 32px\n }\n \n .grid--spaced .content-grid-formatter-grid {\n grid-column-gap: 15px;\n grid-row-gap: 15px\n }\n \n .grid--cast .content-grid-formatter-grid>content-tout-block {\n margin-bottom: 20px\n }\n \n .text-style--large-copy {\n font-size: 24px;\n line-height: 1.3\n }\n \n .content-block--40 {\n max-width: 100%\n }\n \n @media screen and (min-width: 768px) {\n .content-block--40 {\n max-width:40%\n }\n }\n \n .content-block--35 {\n max-width: 100%\n }\n \n @media screen and (min-width: 768px) {\n .content-block--35 {\n max-width:35%\n }\n }\n \n .swiper-button-prev {\n left: 0\n }\n \n .swiper-button-next {\n right: 0\n }\n \n .swiper-button-next,.swiper-button-prev {\n width: 64px;\n height: 64px;\n background: rgba(0,0,0,0.6)\n }\n \n .swiper-button-next:after,.swiper-button-prev:after {\n color: white\n }\n \n .swiper-scrollbar {\n display: none\n }\n \n content-spacer,content-text-block,content-tout-block, content-hero-block, content-image {\n opacity: 0;\n transition: all 1s\n }\n \n content-spacer.hydrated,content-text-block.hydrated,content-tout-block.hydrated, content-hero-block.hydrated, content-image.hydrated {\n opacity: 1;\n transform: translateY(0)\n }\n \n .content-image {\n transition: all 1s\n }\n </style>\n <div class=\"page-wrapper\">\n <content-spacer max-width=\"150px\">\n <content-image width=\"172\" height=\"54\" src=\"https://picsum.photos/172/54?random=1&grayscale\n \"></content-image>\n </content-spacer>\n <content-text-block slot=\"header\">\n <content-spacer max-width=\"90\" horizontal-alignment=\"left\" text-align=\"left\">\n <content-line classes=\"text-style--header-1\">Invent Yourself</content-line>\n </content-spacer>\n </content-text-block>\n <content-grid-formatter class=\"grid--cast\" columns=\"1|2|4\" type=\"grid\">\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=1&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical-alignment=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=2&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical-alignment=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=3&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical-alignment=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=4&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical-alignment=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n \n </content-grid-formatter>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=1&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer max-width=\"100|50\" left-offset=\"2\" top-offset=\"2\">\n <content-line classes=\"text-style--header\" max-width=\"100|70\">Lorem Ipsum</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">START NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-grid-formatter type=\"flex\" flex-grow=\"true\" columns=\"1|2\">\n <content-text-block class=\"content-block--40\">\n <content-spacer left-offset=\"2\" right-offset=\"2\" top-offset=\"2\"> \n <content-line classes=\"text-style--header\">GET THE COVETED BOX-BAG</content-line>\n <content-line classes=\"text-style--subheader\">No time to wait</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n <content-image src=\"https://picsum.photos/1600/900?random=2&grayscale\"></content-image>\n </content-grid-formatter>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=3&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-spacer top-offset=\"1\" bottom-offset=\"1\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=4&grayscale\"></content-image>\n <content-text-block slot=\"content\" vertical-alignment=\"center\">\n <content-spacer left-offset=\"4\" max-width=\"100|75|65\">\n <content-line classes=\"text-style--header\">Get Down WIth The Best Daily Routine</content-line>\n <content-spacer top-offset=\"4\">\n <content-button classes=\"button button--play\" href=\"#heroVideoOverlay\">PLAY</content-button>\n </content-spacer>\n </content-spacer>\n <content-overlay id=\"heroVideoOverlay\" target=\"#\" full-screen=\"false\">\n <content-video slot=\"content\" fit-container=\"true\" src=\"https://www.youtube.com/watch?v=IY4x85zqoJM\" autoplay=\"true\"></content-video>\n <script slot=\"content\" type=\"text/template\">\n </script>\n </content-overlay>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-grid-formatter columns=\"1|3\" type=\"grid\" class=\"grid--spaced\">\n <content-image src=\"https://picsum.photos/400/300?random=1&grayscale\"></content-image>\n <content-image src=\"https://picsum.photos/400/300?random=2&grayscale\"></content-image>\n <content-image src=\"https://picsum.photos/400/300?random=3&grayscale\"></content-image>\n </content-grid-formatter>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-grid-formatter columns=\"1|2\">\n <content-spacer>\n <content-line classes=\"text-style--header\">Expert Chat</content-line>\n </content-spacer>\n <content-spacer>\n <content-line classes=\"text-style--large-copy\">We know shopping for your skincare needs can be overwhelming. Let us help! There's no such thing as a silly question! <content-button classes=\"link\">Give it a try ></content-button></content-line>\n </content-spacer>\n </content-grid-formatter>\n </content-spacer>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=4&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer max-width=\"100|50\" left-offset=\"2\" top-offset=\"2\">\n <content-line classes=\"text-style--header\" max-width=\"100|50\">Lorem Ipsum</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Learn more ></content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-text-block slot=\"header\">\n <content-line classes=\"text-style--header-2\">By Series</content-line>\n </content-text-block>\n <content-carousel init-method=\"load\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=5&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=6&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=7&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-carousel>\n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-grid-formatter type=\"flex\" flex-grow=\"true\" columns=\"1|2\">\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=8&grayscale\"></content-image>\n <content-spacer slot=\"mediaContent\" top-offset=\"8\" bottom-offset=\"5\" left-offset=\"6\" right-offset=\"4\">\n <content-text-block color-class=\"light\">\n <content-line classes=\"text-style--header-2\">/Instructions</content-line>\n <content-spacer slot=\"footer\">\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n </content-spacer>\n </content-text-block>\n </content-tout-block>\n </content-tout-block>\n <content-spacer left-offset=\"4\" class=\"content-block--35\">\n <content-text-block>\n <content-line classes=\"text-style--header\">BE PART OF THE CHANGE</content-line>\n <content-line classes=\"text-style--subheader\">Sustainability is our priority and we are the first men's skincare brand to introduce refillable packaging.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Learn more ></content-button>\n </content-spacer>\n </content-text-block>\n </content-spacer>\n </content-grid-formatter>\n </content-spacer>\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=9&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer max-width=\"90|75|55|35\" top-offset=\"2|8\" left-offset=\"2\" right-offset=\"2|7\" horizontal-alignment=\"left|right\">\n <content-line classes=\"text-style--header\">Just The Tip</content-line>\n <content-line classes=\"text-style--subheader\">Master your skills on how to up your skincare game.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Sign up ></content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=10&grayscale\"></content-image>\n <content-text-block slot=\"content\" vertical-alignment=\"center\">\n <content-spacer max-width=\"90|75|55|35\" left-offset=\"2\" right-offset=\"10\" horizontal-alignment=\"left\">\n <content-line classes=\"text-style--header\">THE DROP:</content-line>\n <content-line classes=\"text-style--subheader\">BE THBE FIRST TO OWN OUR NEW MAXELLENCE MATTE BLACK PACKAGING ></content-line>\n <content-line classes=\"text-style--header\">09/01/21</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Learn more ></content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-spacer bottom-offset=\"2\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=11&grayscale\"></content-image>\n <content-text-block slot=\"content\" vertical-alignment=\"top\">\n <content-spacer max-width=\"90|75|55|45\" left-offset=\"2|0\" top-offset=\"2\" right-offset=\"0\" horizontal-alignment=\"left|right\">\n <content-line classes=\"text-style--header\">Invigorate Yourself</content-line>\n <content-line classes=\"text-style--subheader\" max-width=\"100|82\">Shop our Molecule Shop products</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n </div>`,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"FullPageExample.stories.js","sourceRoot":"","sources":["../../../src/stories/FullPageExample.stories.ts"],"names":[],"mappings":"AACA,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EAAE,8CAA8C;aAC1D;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAU;IACjC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EAAE,2DAA2D;aACnE;SACF;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAucP;CACR,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nconst meta: Meta = {\n title: 'Full Page Examples',\n tags: ['autodocs'],\n parameters: {\n docs: {\n description: {\n component: 'Another description, overriding the comments',\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\n/**\n * # Primary Button\n * This is the primary button\n */\nexport const BasicExample: Story = {\n parameters: {\n docs: {\n description: {\n story: 'Another description on the story, overriding the comments',\n },\n },\n },\n render: () => `<style>\n html,body {\n font-size: 14px;\n font-family: \"Helvetica Neue\", \"Arial\", sans-serif;\n line-height: 1\n }\n \n @media screen and (min-width: 768px) {\n html,body {\n font-size:16px\n }\n }\n \n .page-wrapper {\n max-width: 1366px;\n margin: auto\n }\n \n .text-style--header-1 {\n font-weight: bold;\n text-transform: uppercase;\n line-height: .88;\n font-size: 72px\n }\n \n @media screen and (min-width: 768px) {\n .text-style--header-1 {\n font-size:80px\n }\n }\n \n @media screen and (min-width: 1024px) {\n .text-style--header-1 {\n font-size:224px\n }\n }\n \n .text-style--header-2 {\n font-size: 24px;\n text-transform: uppercase;\n font-weight: bold\n }\n \n @media screen and (min-width: 768px) {\n .text-style--header-2 {\n font-size:32px\n }\n }\n \n @media screen and (min-width: 1024px) {\n .text-style--header-2 {\n font-size:36px\n }\n }\n \n .text-style--header {\n font-weight: bold;\n text-transform: uppercase;\n line-height: 1;\n font-size: 60px\n }\n \n .text-style--subheader {\n font-size: 24px;\n line-height: 1\n }\n \n @media screen and (min-width: 768px) {\n .text-style--subheader {\n font-size:32px\n }\n }\n \n @media screen and (min-width: 1024px) {\n .text-style--subheader {\n font-size:36px\n }\n }\n \n .text-style--small-copy {\n font-size: 12px;\n text-transform: uppercase\n }\n \n .text-style--tout-media-content {\n color: white;\n font-size: 12px\n }\n \n .button {\n display: inline-flex;\n text-decoration: none;\n }\n \n .button a {\n color: inherit;\n font-size: inherit;\n text-decoration: inherit; \n }\n .button--primary {\n background: black;\n color: white;\n height: 50px;\n padding: 0 30px\n }\n \n .button--primary:hover {\n background: #333\n }\n \n .button--play {\n color: white;\n font-size: 32px;\n font-weight: bold\n }\n \n .link a {\n text-decoration: none;\n color: inherit\n }\n \n .link:hover a {\n color: red\n }\n \n .link--large a {\n font-weight: bold;\n font-size: 32px\n }\n \n .grid--spaced .content-grid-formatter-grid {\n grid-column-gap: 15px;\n grid-row-gap: 15px\n }\n \n .grid--cast .content-grid-formatter-grid>content-tout-block {\n margin-bottom: 20px\n }\n \n .text-style--large-copy {\n font-size: 24px;\n line-height: 1.3\n }\n \n .content-block--40 {\n max-width: 100%\n }\n \n @media screen and (min-width: 768px) {\n .content-block--40 {\n max-width:40%\n }\n }\n \n .content-block--35 {\n max-width: 100%\n }\n \n @media screen and (min-width: 768px) {\n .content-block--35 {\n max-width:35%\n }\n }\n \n .swiper-button-prev {\n left: 0\n }\n \n .swiper-button-next {\n right: 0\n }\n \n .swiper-button-next,.swiper-button-prev {\n width: 64px;\n height: 64px;\n background: rgba(0,0,0,0.6)\n }\n \n .swiper-button-next:after,.swiper-button-prev:after {\n color: white\n }\n \n .swiper-scrollbar {\n display: none\n }\n \n content-spacer,content-text-block,content-tout-block, content-hero-block, content-image {\n opacity: 0;\n transition: all 1s\n }\n \n content-spacer.hydrated,content-text-block.hydrated,content-tout-block.hydrated, content-hero-block.hydrated, content-image.hydrated {\n opacity: 1;\n transform: translateY(0)\n }\n \n .content-image {\n transition: all 1s\n }\n </style>\n <div class=\"page-wrapper\">\n <content-spacer max-width=\"150px\">\n <content-image width=\"172\" height=\"54\" src=\"https://picsum.photos/172/54?random=1&grayscale\n \"></content-image>\n </content-spacer>\n <content-text-block slot=\"header\">\n <content-spacer max-width=\"90\" horizontal=\"left\" text-align=\"left\">\n <content-line classes=\"text-style--header-1\">Invent Yourself</content-line>\n </content-spacer>\n </content-text-block>\n <content-grid-formatter class=\"grid--cast\" columns=\"1|2|4\" type=\"grid\">\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=1&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=2&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=3&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" alt=\"Test Alt Text\" lazy-load=\"false\" width=\"2\" height=\"3\" src=\"https://picsum.photos/200/300?random=4&grayscale\"></content-image>\n <content-text-block slot=\"mediaContent\" vertical=\"bottom\">\n <content-spacer text-align=\"left\" left-offset=\"4\" bottom-offset=\"4\">\n <content-line classes=\"text-style--tout-media-content\">Cast Name</content-line>\n <content-line classes=\"text-style--tout-media-content\">Proession/Aspiration</content-line>\n </content-spacer>\n </content-text-block> \n </content-tout-block>\n \n </content-grid-formatter>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=1&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer max-width=\"100|50\" left-offset=\"2\" top-offset=\"2\">\n <content-line classes=\"text-style--header\" max-width=\"100|70\">Lorem Ipsum</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">START NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-grid-formatter type=\"flex\" flex-grow=\"true\" columns=\"1|2\">\n <content-text-block class=\"content-block--40\">\n <content-spacer left-offset=\"2\" right-offset=\"2\" top-offset=\"2\"> \n <content-line classes=\"text-style--header\">GET THE COVETED BOX-BAG</content-line>\n <content-line classes=\"text-style--subheader\">No time to wait</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n <content-image src=\"https://picsum.photos/1600/900?random=2&grayscale\"></content-image>\n </content-grid-formatter>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=3&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-spacer top-offset=\"1\" bottom-offset=\"1\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=4&grayscale\"></content-image>\n <content-text-block slot=\"content\" vertical=\"center\">\n <content-spacer left-offset=\"4\" max-width=\"100|75|65\">\n <content-line classes=\"text-style--header\">Get Down WIth The Best Daily Routine</content-line>\n <content-spacer top-offset=\"4\">\n <content-button classes=\"button button--play\" href=\"#heroVideoOverlay\">PLAY</content-button>\n </content-spacer>\n </content-spacer>\n <content-overlay id=\"heroVideoOverlay\" target=\"#\" full-screen=\"false\">\n <content-video slot=\"content\" fit-container=\"true\" src=\"https://www.youtube.com/watch?v=IY4x85zqoJM\" autoplay=\"true\"></content-video>\n <script slot=\"content\" type=\"text/template\">\n </script>\n </content-overlay>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-grid-formatter columns=\"1|3\" type=\"grid\" class=\"grid--spaced\">\n <content-image src=\"https://picsum.photos/400/300?random=1&grayscale\"></content-image>\n <content-image src=\"https://picsum.photos/400/300?random=2&grayscale\"></content-image>\n <content-image src=\"https://picsum.photos/400/300?random=3&grayscale\"></content-image>\n </content-grid-formatter>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-grid-formatter columns=\"1|2\">\n <content-spacer>\n <content-line classes=\"text-style--header\">Expert Chat</content-line>\n </content-spacer>\n <content-spacer>\n <content-line classes=\"text-style--large-copy\">We know shopping for your skincare needs can be overwhelming. Let us help! There's no such thing as a silly question! <content-button classes=\"link\">Give it a try ></content-button></content-line>\n </content-spacer>\n </content-grid-formatter>\n </content-spacer>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=4&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer max-width=\"100|50\" left-offset=\"2\" top-offset=\"2\">\n <content-line classes=\"text-style--header\" max-width=\"100|50\">Lorem Ipsum</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Learn more ></content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-text-block slot=\"header\">\n <content-line classes=\"text-style--header-2\">By Series</content-line>\n </content-text-block>\n <content-carousel init-method=\"load\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=5&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=6&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=7&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer left-offset=\"2\">\n <content-line classes=\"text-style--header\">Daily Rescue</content-line>\n <content-line classes=\"text-style--subheader\">Benefit copy goes here.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-carousel>\n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-grid-formatter type=\"flex\" flex-grow=\"true\" columns=\"1|2\">\n <content-tout-block hover=\"false\">\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=8&grayscale\"></content-image>\n <content-spacer slot=\"mediaContent\" top-offset=\"8\" bottom-offset=\"5\" left-offset=\"6\" right-offset=\"4\">\n <content-text-block color-class=\"light\">\n <content-line classes=\"text-style--header-2\">/Instructions</content-line>\n <content-spacer slot=\"footer\">\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n <content-line classes=\"text-style--small-copy\">/01 Twist base of bottle counter-clockwise to lock</content-line>\n </content-spacer>\n </content-text-block>\n </content-tout-block>\n </content-tout-block>\n <content-spacer left-offset=\"4\" class=\"content-block--35\">\n <content-text-block>\n <content-line classes=\"text-style--header\">BE PART OF THE CHANGE</content-line>\n <content-line classes=\"text-style--subheader\">Sustainability is our priority and we are the first men's skincare brand to introduce refillable packaging.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Learn more ></content-button>\n </content-spacer>\n </content-text-block>\n </content-spacer>\n </content-grid-formatter>\n </content-spacer>\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=9&grayscale\"></content-image>\n <content-text-block slot=\"content\">\n <content-spacer max-width=\"90|75|55|35\" top-offset=\"2|8\" left-offset=\"2\" right-offset=\"2|7\" horizontal=\"left|right\">\n <content-line classes=\"text-style--header\">Just The Tip</content-line>\n <content-line classes=\"text-style--subheader\">Master your skills on how to up your skincare game.</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Sign up ></content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n \n <content-spacer top-offset=\"5\" bottom-offset=\"5\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=10&grayscale\"></content-image>\n <content-text-block slot=\"content\" vertical=\"center\">\n <content-spacer max-width=\"90|75|55|35\" left-offset=\"2\" right-offset=\"10\" horizontal=\"left\">\n <content-line classes=\"text-style--header\">THE DROP:</content-line>\n <content-line classes=\"text-style--subheader\">BE THBE FIRST TO OWN OUR NEW MAXELLENCE MATTE BLACK PACKAGING ></content-line>\n <content-line classes=\"text-style--header\">09/01/21</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"link link--large\">Learn more ></content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n \n <content-spacer bottom-offset=\"2\">\n <content-hero-block>\n <content-image slot=\"background\" src=\"https://picsum.photos/1600/900?random=11&grayscale\"></content-image>\n <content-text-block slot=\"content\" vertical=\"top\">\n <content-spacer max-width=\"90|75|55|45\" left-offset=\"2|0\" top-offset=\"2\" right-offset=\"0\" horizontal=\"left|right\">\n <content-line classes=\"text-style--header\">Invigorate Yourself</content-line>\n <content-line classes=\"text-style--subheader\" max-width=\"100|82\">Shop our Molecule Shop products</content-line>\n <content-spacer top-offset=\"2\">\n <content-button classes=\"button button--primary\">SHOP NOW</content-button>\n </content-spacer>\n </content-spacer>\n </content-text-block>\n </content-hero-block>\n </content-spacer>\n </div>`,\n};\n"]}
|
|
@@ -8,10 +8,10 @@ const ContentAccordion$1 = /*@__PURE__*/ proxyCustomElement(class ContentAccordi
|
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
10
10
|
this.revealElement = undefined;
|
|
11
|
-
this.open = 'false
|
|
11
|
+
this.open = 'false';
|
|
12
12
|
this.animationStart = 'animation-start';
|
|
13
13
|
this.animationEnd = 'animation-end';
|
|
14
|
-
this.animationTime =
|
|
14
|
+
this.animationTime = 0;
|
|
15
15
|
this.isOpen = false;
|
|
16
16
|
this.randomID = '';
|
|
17
17
|
this.classString = '';
|
|
@@ -45,8 +45,6 @@ const ContentAccordion$1 = /*@__PURE__*/ proxyCustomElement(class ContentAccordi
|
|
|
45
45
|
else {
|
|
46
46
|
this.randomID = `${this.hostElement.tagName}_${Math.floor(Math.random() * document.querySelectorAll(this.hostElement.tagName).length)}`;
|
|
47
47
|
}
|
|
48
|
-
}
|
|
49
|
-
componentDidLoad() {
|
|
50
48
|
WindowResizeService.registerProp(this.open).subscribe(newValue => {
|
|
51
49
|
this.isOpen = newValue === 'true';
|
|
52
50
|
if (this.isOpen) {
|
|
@@ -82,6 +80,7 @@ function defineCustomElement$1() {
|
|
|
82
80
|
break;
|
|
83
81
|
} });
|
|
84
82
|
}
|
|
83
|
+
defineCustomElement$1();
|
|
85
84
|
|
|
86
85
|
const ContentAccordion = ContentAccordion$1;
|
|
87
86
|
const defineCustomElement = defineCustomElement$1;
|