@yoobic/yobi 8.5.0-10 → 8.5.0-12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/yoo-announcement-heading.cjs.entry.js +1 -1
  4. package/dist/cjs/yoo-community-detail.cjs.entry.js +2 -2
  5. package/dist/cjs/yoo-context-dialog.cjs.entry.js +1 -1
  6. package/dist/cjs/yoo-course-summary.cjs.entry.js +2 -2
  7. package/dist/cjs/yoo-form-signature-pad-dialog.cjs.entry.js +2 -2
  8. package/dist/cjs/yoo-grid.cjs.entry.js +3 -1
  9. package/dist/collection/collection-manifest.json +0 -1
  10. package/dist/collection/components/2.molecules/context-dialog/context-dialog.css +1 -1
  11. package/dist/collection/components/grid/grid/grid.css +1 -0
  12. package/dist/collection/components/grid/grid/grid.js +2 -0
  13. package/dist/collection/feature-communicate/feed/community-detail/community-detail.js +2 -2
  14. package/dist/collection/feature-learn/learning/course-summary/course-summary.css +1 -4
  15. package/dist/collection/feature-learn/learning/course-summary/course-summary.js +1 -1
  16. package/dist/collection/feature-operate/mission/announcement-heading/announcement-heading.js +1 -1
  17. package/dist/design-system/design-system.esm.js +1 -1
  18. package/dist/design-system/yoo-announcement-heading.entry.js +1 -1
  19. package/dist/design-system/yoo-community-detail.entry.js +2 -2
  20. package/dist/design-system/yoo-context-dialog.entry.js +1 -1
  21. package/dist/design-system/yoo-course-summary.entry.js +2 -2
  22. package/dist/design-system/yoo-form-signature-pad-dialog.entry.js +2 -2
  23. package/dist/design-system/yoo-grid.entry.js +3 -1
  24. package/dist/esm/design-system.js +1 -1
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/esm/yoo-announcement-heading.entry.js +1 -1
  27. package/dist/esm/yoo-community-detail.entry.js +2 -2
  28. package/dist/esm/yoo-context-dialog.entry.js +1 -1
  29. package/dist/esm/yoo-course-summary.entry.js +2 -2
  30. package/dist/esm/yoo-form-signature-pad-dialog.entry.js +2 -2
  31. package/dist/esm/yoo-grid.entry.js +3 -1
  32. package/dist/types/components.d.ts +0 -23
  33. package/package.json +1 -1
  34. package/dist/cjs/yoo-background.cjs.entry.js +0 -35
  35. package/dist/collection/components/1.atoms/background/background.css +0 -242
  36. package/dist/collection/components/1.atoms/background/background.js +0 -126
  37. package/dist/design-system/yoo-background.entry.js +0 -31
  38. package/dist/esm/yoo-background.entry.js +0 -31
  39. package/dist/types/components/1.atoms/background/background.d.ts +0 -15
  40. package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +0 -1236
@@ -428,13 +428,6 @@ export namespace Components {
428
428
  */
429
429
  "withTooltip": boolean;
430
430
  }
431
- interface YooBackground {
432
- "forceMobile": boolean;
433
- "imgHeight": number;
434
- "imgUrl": string;
435
- "imgWidth": number;
436
- "scaleValue": number;
437
- }
438
431
  interface YooBadge {
439
432
  /**
440
433
  * Defines badge color, by default is set to danger
@@ -8282,12 +8275,6 @@ declare global {
8282
8275
  prototype: HTMLYooAvatarsElement;
8283
8276
  new (): HTMLYooAvatarsElement;
8284
8277
  };
8285
- interface HTMLYooBackgroundElement extends Components.YooBackground, HTMLStencilElement {
8286
- }
8287
- var HTMLYooBackgroundElement: {
8288
- prototype: HTMLYooBackgroundElement;
8289
- new (): HTMLYooBackgroundElement;
8290
- };
8291
8278
  interface HTMLYooBadgeElement extends Components.YooBadge, HTMLStencilElement {
8292
8279
  }
8293
8280
  var HTMLYooBadgeElement: {
@@ -10354,7 +10341,6 @@ declare global {
10354
10341
  "yoo-audio-recorder-dialog": HTMLYooAudioRecorderDialogElement;
10355
10342
  "yoo-avatar": HTMLYooAvatarElement;
10356
10343
  "yoo-avatars": HTMLYooAvatarsElement;
10357
- "yoo-background": HTMLYooBackgroundElement;
10358
10344
  "yoo-badge": HTMLYooBadgeElement;
10359
10345
  "yoo-banner": HTMLYooBannerElement;
10360
10346
  "yoo-barcode": HTMLYooBarcodeElement;
@@ -11093,13 +11079,6 @@ declare namespace LocalJSX {
11093
11079
  */
11094
11080
  "withTooltip"?: boolean;
11095
11081
  }
11096
- interface YooBackground {
11097
- "forceMobile"?: boolean;
11098
- "imgHeight"?: number;
11099
- "imgUrl"?: string;
11100
- "imgWidth"?: number;
11101
- "scaleValue"?: number;
11102
- }
11103
11082
  interface YooBadge {
11104
11083
  /**
11105
11084
  * Defines badge color, by default is set to danger
@@ -19115,7 +19094,6 @@ declare namespace LocalJSX {
19115
19094
  "yoo-audio-recorder-dialog": YooAudioRecorderDialog;
19116
19095
  "yoo-avatar": YooAvatar;
19117
19096
  "yoo-avatars": YooAvatars;
19118
- "yoo-background": YooBackground;
19119
19097
  "yoo-badge": YooBadge;
19120
19098
  "yoo-banner": YooBanner;
19121
19099
  "yoo-barcode": YooBarcode;
@@ -19477,7 +19455,6 @@ declare module "@stencil/core" {
19477
19455
  "yoo-audio-recorder-dialog": LocalJSX.YooAudioRecorderDialog & JSXBase.HTMLAttributes<HTMLYooAudioRecorderDialogElement>;
19478
19456
  "yoo-avatar": LocalJSX.YooAvatar & JSXBase.HTMLAttributes<HTMLYooAvatarElement>;
19479
19457
  "yoo-avatars": LocalJSX.YooAvatars & JSXBase.HTMLAttributes<HTMLYooAvatarsElement>;
19480
- "yoo-background": LocalJSX.YooBackground & JSXBase.HTMLAttributes<HTMLYooBackgroundElement>;
19481
19458
  "yoo-badge": LocalJSX.YooBadge & JSXBase.HTMLAttributes<HTMLYooBadgeElement>;
19482
19459
  "yoo-banner": LocalJSX.YooBanner & JSXBase.HTMLAttributes<HTMLYooBannerElement>;
19483
19460
  "yoo-barcode": LocalJSX.YooBarcode & JSXBase.HTMLAttributes<HTMLYooBarcodeElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.5.0-10",
3
+ "version": "8.5.0-12",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-7319daa9.js');
6
- const commonHelpers = require('./common-helpers-175d28d1.js');
7
- require('./overlays-a6fd4072.js');
8
- require('./lodash-72d493b9.js');
9
- require('./index-f08462bf.js');
10
- require('./_commonjsHelpers-94df2ea7.js');
11
- require('./index-d6597639.js');
12
-
13
- const backgroundCss = "svg:not(:root){overflow:hidden}:host{background:var(--dark, #000000)}:host yoo-img{position:relative;-webkit-transition:-webkit-transform 250ms linear;transition:-webkit-transform 250ms linear;transition:transform 250ms linear;transition:transform 250ms linear, -webkit-transform 250ms linear}:host(.mobile) yoo-img::before{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));content:\"\"}:host(.force-mobile) yoo-img::before{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));content:\"\"}:host(.web:not(.force-mobile)){margin-top:var(--spacing-16, 1rem)}:host(.web.course-summary){margin-top:0}";
14
-
15
- const YooBackgroundComponent = class {
16
- constructor(hostRef) {
17
- index.registerInstance(this, hostRef);
18
- this.scaleValue = 1;
19
- }
20
- render() {
21
- const scaleStyle = {
22
- transform: `scale(${this.scaleValue})`,
23
- width: `${this.imgWidth}px`,
24
- height: `${this.imgHeight}px`
25
- };
26
- return (index.h(index.Host, { class: {
27
- ...commonHelpers.getAppContext(this.el),
28
- 'force-mobile': this.forceMobile
29
- } }, index.h("slot", null), index.h("yoo-img", { style: scaleStyle, contained: true, class: "course-image", src: this.imgUrl, cloudinaryOptions: { noRatio: true, fit: true } })));
30
- }
31
- get el() { return index.getElement(this); }
32
- };
33
- YooBackgroundComponent.style = backgroundCss;
34
-
35
- exports.yoo_background = YooBackgroundComponent;
@@ -1,242 +0,0 @@
1
- /* app direction */
2
- /* border-radius */
3
- /* border-width */
4
- /* font family */
5
- /* font-size */
6
- /* font weights */
7
- /* icon size */
8
- /* used for logos */
9
- /* spacing for padding, margin, etc... */
10
- /* shadow */
11
- /* Z-Index (Ionic)
12
- --------------------------------------------------
13
- Grouped by elements which would be siblings */
14
- /* Hairlines width */
15
- /* Default Colors
16
- ---------------------------------- */
17
- /* Private color variables */
18
- /* #3880ff; */
19
- /* #3880ff; */
20
- /* #3880ff; */
21
- /* #3880ff; */
22
- /* #3880ff;*/
23
- /* #3880ff; */
24
- /* #3880ff; */
25
- /* #3880ff; */
26
- /* #3880ff; */
27
- /* Color map should provide
28
- - base: main color to be used.
29
- - contrast: Color that will provide readable text against the base color
30
- - shade: 12% darker version of the base color (mix with black)
31
- - tint: 10% lighter version of the base color (mix with white) */
32
- /* Themed Colors
33
-
34
- Default Foreground and Background Colors values
35
- Allows users to override an foreground / background colors
36
- $background-color-value: $light !default;
37
- $background-color-rgb: 255, 255, 255 !default; */
38
- /* Default Foreground and Background Colors
39
- -------------------------------------------------- */
40
- /* Default General Colors
41
- -------------------------------------------------- */
42
- /* Default List & List Items
43
- -------------------------------------------------- */
44
- /* Item Divider */
45
- /* iOS List & List Items
46
- -------------------------------------------------- */
47
- /* Default Toolbar
48
- --------------------------------------------------*/
49
- /* iOS Toolbar
50
- --------------------------------------------------*/
51
- /* Default Tabs & Tab bar
52
- --------------------------------------------------*/
53
- /* iOS Tabs & Tab bar
54
- --------------------------------------------------*/
55
- /* Function related variables
56
- --------------------------------------------------*/
57
- /* Gets the active color's css variable from a variation. Alpha is optional.
58
- --------------------------------------------------------------------------------------------
59
- Example usage:
60
- current-color(base) => var(--ion-color-base)
61
- current-color(contrast, 0.1) => rgba(var(--ion-color-contrast-rgb), 0.1)
62
- --------------------------------------------------------------------------------------------*/
63
- /* Gets the specific color's css variable from the name and variation. Alpha/rgb are optional.
64
- --------------------------------------------------------------------------------------------
65
- Example usage:
66
- ion-color(primary, base) => var(--ion-color-primary, #3880ff)
67
- ion-color(secondary, contrast) => var(--ion-color-secondary-contrast)
68
- ion-color(primary, base, 0.5) => rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.5)
69
- --------------------------------------------------------------------------------------------*/
70
- /* Mixes a color with black to create its shade.
71
- --------------------------------------------------------------------------------------------*/
72
- /*Mixes a color with white to create its tint.
73
- --------------------------------------------------------------------------------------------*/
74
- /* Converts a color to a comma separated rgb.
75
- --------------------------------------------------------------------------------------------*/
76
- /* Str functions.
77
- ___________________________________________________________________________________________*/
78
- /* Creates a pulse animation.
79
- @param {color} $begin-color [stable-20] - starting color for pulse.
80
- @param {color} $end-color [stable-20] - ending color for pulse.
81
- @author Ben Morgan
82
- @author Damien Arondel
83
- */
84
- /* Execute a content if the hover state is supported.
85
-
86
- @content the content to execute if relevant
87
- @author Ben Morgan
88
- @author Damien Arondel
89
- */
90
- /* Properly hide overflow on rounded corner elements for Webkit based browsers.
91
- This mixin must be used at the same level as `overflow: hidden` and `border-radius: ...`.
92
-
93
- @link https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7
94
- @author Ben Morgan
95
- @author Damien Arondel
96
- */
97
- /* Truncate every overflown elements with an ellipsis.
98
- This mixin does not work with flex box on the same level.
99
-
100
- @author Ben Morgan
101
- @author Damien Arondel
102
- */
103
- /* Truncate text at a specific number of lines.
104
- */
105
- /* app direction */
106
- /* border-radius */
107
- /* border-width */
108
- /* font family */
109
- /* font-size */
110
- /* font weights */
111
- /* icon size */
112
- /* used for logos */
113
- /* spacing for padding, margin, etc... */
114
- /* shadow */
115
- /* https://web-design-weekly.com/2013/05/12/handy-sass-mixins/ */
116
- /* Single side border-radius */
117
- /* Text Direction - ltr / rtl
118
- $app-direction: multi | rtl | ltr | null (default)
119
- multi: Both [dir=ltr] and [dir=rtl] are applied to css selectors.
120
- rtl: Always assumes rtl and only includes rtl css. No [dir] selectors.
121
- ltr: Always assumes ltr and only includes ltr css. No [dir] selectors.
122
- null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override ltr defaults.
123
- ---------------------------------------------------------- */
124
- /* Add property horizontal
125
- @param {string} $start
126
- @param {string} $end
127
- ----------------------------------------------------------*/
128
- /* Add property for all directions
129
- @param {string} $prop
130
- @param {string} $top
131
- @param {string} $end
132
- @param {string} $bottom
133
- @param {string} $start
134
- @param {boolean} $content include content or use default
135
- ----------------------------------------------------------*/
136
- /* Add margin for all directions
137
- @param {string} $top
138
- @param {string} $end
139
- @param {string} $bottom
140
- @param {string} $start
141
- ----------------------------------------------------------*/
142
- /* Add padding for all directions
143
- @param {string} $top
144
- @param {string} $end
145
- @param {string} $bottom
146
- @param {string} $start
147
- ----------------------------------------------------------*/
148
- /*Font smoothing
149
- --------------------------------------------------*/
150
- /* SVG Background Image Mixin
151
- @param {string} $svg
152
- ----------------------------------------------------------*/
153
- /* Add padding horizontal
154
- @param {string} $start
155
- @param {string} $end
156
- ----------------------------------------------------------*/
157
- /* Add margin horizontal
158
- @param {string} $start
159
- @param {string} $end
160
- ----------------------------------------------------------*/
161
- /* Add safe area padding horizontal
162
- @param {string} $start
163
- @param {string} $end
164
- ----------------------------------------------------------*/
165
- /* Add border radius for all directions
166
- @param {string} $top-start
167
- @param {string} $top-end
168
- @param {string} $bottom-end
169
- @param {string} $bottom-start
170
- ----------------------------------------------------------*/
171
- /* Sets correct text align with support for old browsers
172
- @param {string} $direction - text direction
173
- @param {string} $decorator - !important
174
- ----------------------------------------------------------*/
175
- /* Add position for all directions
176
- @param {string} $top
177
- @param {string} $end
178
- @param {string} $bottom
179
- @param {string} $start
180
- ----------------------------------------------------------*/
181
- /* Add position horizontal
182
- @param {string} $start - amount to position start
183
- @param {string} $end - amount to left: 0; end
184
- ----------------------------------------------------------*/
185
- /**
186
- * NOTE DO NOT USE FOR NEW COMPONENTS
187
- * LEGACY CODE -- Styles maintained only to prevent breaking changes
188
- * For all Font Sizes please use the appropreate font-size-XX Variables.
189
- */
190
- /**
191
- * Global style mixin for being able to change the background / font-color and border-color
192
- * programmatically using global classes
193
- */
194
- /* app direction */
195
- /* border-radius */
196
- /* border-width */
197
- /* font family */
198
- /* font-size */
199
- /* font weights */
200
- /* icon size */
201
- /* used for logos */
202
- /* spacing for padding, margin, etc... */
203
- /* shadow */
204
- svg:not(:root) {
205
- overflow: hidden;
206
- }
207
-
208
- :host {
209
- background: var(--dark, #000000);
210
- }
211
- :host yoo-img {
212
- position: relative;
213
- transition: transform 250ms linear;
214
- }
215
-
216
- :host(.mobile) yoo-img::before {
217
- position: absolute;
218
- top: 0;
219
- left: 0;
220
- width: 100%;
221
- height: 100%;
222
- background: var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));
223
- content: "";
224
- }
225
-
226
- :host(.force-mobile) yoo-img::before {
227
- position: absolute;
228
- top: 0;
229
- left: 0;
230
- width: 100%;
231
- height: 100%;
232
- background: var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));
233
- content: "";
234
- }
235
-
236
- :host(.web:not(.force-mobile)) {
237
- margin-top: var(--spacing-16, 1rem);
238
- }
239
-
240
- :host(.web.course-summary) {
241
- margin-top: 0;
242
- }
@@ -1,126 +0,0 @@
1
- /**
2
- * @name: Background
3
- * @author: Andreea, Ugo, Damien
4
- * Zeplin link: n/a
5
- */
6
- import { h, Host } from '@stencil/core';
7
- import { getAppContext } from '../../../utils/helpers/common-helpers';
8
- export class YooBackgroundComponent {
9
- constructor() {
10
- this.scaleValue = 1;
11
- }
12
- render() {
13
- const scaleStyle = {
14
- transform: `scale(${this.scaleValue})`,
15
- width: `${this.imgWidth}px`,
16
- height: `${this.imgHeight}px`
17
- };
18
- return (h(Host, { class: {
19
- ...getAppContext(this.el),
20
- 'force-mobile': this.forceMobile
21
- } }, h("slot", null), h("yoo-img", { style: scaleStyle, contained: true, class: "course-image", src: this.imgUrl, cloudinaryOptions: { noRatio: true, fit: true } })));
22
- }
23
- static get is() { return "yoo-background"; }
24
- static get encapsulation() { return "shadow"; }
25
- static get originalStyleUrls() {
26
- return {
27
- "$": ["background.scss"]
28
- };
29
- }
30
- static get styleUrls() {
31
- return {
32
- "$": ["background.css"]
33
- };
34
- }
35
- static get properties() {
36
- return {
37
- "forceMobile": {
38
- "type": "boolean",
39
- "mutable": false,
40
- "complexType": {
41
- "original": "boolean",
42
- "resolved": "boolean",
43
- "references": {}
44
- },
45
- "required": false,
46
- "optional": false,
47
- "docs": {
48
- "tags": [],
49
- "text": ""
50
- },
51
- "attribute": "force-mobile",
52
- "reflect": false
53
- },
54
- "imgUrl": {
55
- "type": "string",
56
- "mutable": false,
57
- "complexType": {
58
- "original": "string",
59
- "resolved": "string",
60
- "references": {}
61
- },
62
- "required": false,
63
- "optional": false,
64
- "docs": {
65
- "tags": [],
66
- "text": ""
67
- },
68
- "attribute": "img-url",
69
- "reflect": false
70
- },
71
- "imgHeight": {
72
- "type": "number",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "number",
76
- "resolved": "number",
77
- "references": {}
78
- },
79
- "required": false,
80
- "optional": false,
81
- "docs": {
82
- "tags": [],
83
- "text": ""
84
- },
85
- "attribute": "img-height",
86
- "reflect": false
87
- },
88
- "imgWidth": {
89
- "type": "number",
90
- "mutable": false,
91
- "complexType": {
92
- "original": "number",
93
- "resolved": "number",
94
- "references": {}
95
- },
96
- "required": false,
97
- "optional": false,
98
- "docs": {
99
- "tags": [],
100
- "text": ""
101
- },
102
- "attribute": "img-width",
103
- "reflect": false
104
- },
105
- "scaleValue": {
106
- "type": "number",
107
- "mutable": false,
108
- "complexType": {
109
- "original": "number",
110
- "resolved": "number",
111
- "references": {}
112
- },
113
- "required": false,
114
- "optional": false,
115
- "docs": {
116
- "tags": [],
117
- "text": ""
118
- },
119
- "attribute": "scale-value",
120
- "reflect": false,
121
- "defaultValue": "1"
122
- }
123
- };
124
- }
125
- static get elementRef() { return "el"; }
126
- }
@@ -1,31 +0,0 @@
1
- import { r as registerInstance, h, e as Host, g as getElement } from './index-0a59e2a1.js';
2
- import { g as getAppContext } from './common-helpers-9d1399f6.js';
3
- import './overlays-bd637ed8.js';
4
- import './lodash-653c0bcd.js';
5
- import './index-a16ef4a4.js';
6
- import './_commonjsHelpers-f4d11124.js';
7
- import './index-71768407.js';
8
-
9
- const backgroundCss = "svg:not(:root){overflow:hidden}:host{background:var(--dark, #000000)}:host yoo-img{position:relative;-webkit-transition:-webkit-transform 250ms linear;transition:-webkit-transform 250ms linear;transition:transform 250ms linear;transition:transform 250ms linear, -webkit-transform 250ms linear}:host(.mobile) yoo-img::before{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));content:\"\"}:host(.force-mobile) yoo-img::before{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));content:\"\"}:host(.web:not(.force-mobile)){margin-top:var(--spacing-16, 1rem)}:host(.web.course-summary){margin-top:0}";
10
-
11
- const YooBackgroundComponent = class {
12
- constructor(hostRef) {
13
- registerInstance(this, hostRef);
14
- this.scaleValue = 1;
15
- }
16
- render() {
17
- const scaleStyle = {
18
- transform: `scale(${this.scaleValue})`,
19
- width: `${this.imgWidth}px`,
20
- height: `${this.imgHeight}px`
21
- };
22
- return (h(Host, { class: {
23
- ...getAppContext(this.el),
24
- 'force-mobile': this.forceMobile
25
- } }, h("slot", null), h("yoo-img", { style: scaleStyle, contained: true, class: "course-image", src: this.imgUrl, cloudinaryOptions: { noRatio: true, fit: true } })));
26
- }
27
- get el() { return getElement(this); }
28
- };
29
- YooBackgroundComponent.style = backgroundCss;
30
-
31
- export { YooBackgroundComponent as yoo_background };
@@ -1,31 +0,0 @@
1
- import { r as registerInstance, h, e as Host, g as getElement } from './index-0a59e2a1.js';
2
- import { g as getAppContext } from './common-helpers-9d1399f6.js';
3
- import './overlays-bd637ed8.js';
4
- import './lodash-653c0bcd.js';
5
- import './index-a16ef4a4.js';
6
- import './_commonjsHelpers-f4d11124.js';
7
- import './index-71768407.js';
8
-
9
- const backgroundCss = "svg:not(:root){overflow:hidden}:host{background:var(--dark, #000000)}:host yoo-img{position:relative;-webkit-transition:-webkit-transform 250ms linear;transition:-webkit-transform 250ms linear;transition:transform 250ms linear;transition:transform 250ms linear, -webkit-transform 250ms linear}:host(.mobile) yoo-img::before{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));content:\"\"}:host(.force-mobile) yoo-img::before{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--dark-40-transparent-gradient, linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent));content:\"\"}:host(.web:not(.force-mobile)){margin-top:var(--spacing-16, 1rem)}:host(.web.course-summary){margin-top:0}";
10
-
11
- const YooBackgroundComponent = class {
12
- constructor(hostRef) {
13
- registerInstance(this, hostRef);
14
- this.scaleValue = 1;
15
- }
16
- render() {
17
- const scaleStyle = {
18
- transform: `scale(${this.scaleValue})`,
19
- width: `${this.imgWidth}px`,
20
- height: `${this.imgHeight}px`
21
- };
22
- return (h(Host, { class: {
23
- ...getAppContext(this.el),
24
- 'force-mobile': this.forceMobile
25
- } }, h("slot", null), h("yoo-img", { style: scaleStyle, contained: true, class: "course-image", src: this.imgUrl, cloudinaryOptions: { noRatio: true, fit: true } })));
26
- }
27
- get el() { return getElement(this); }
28
- };
29
- YooBackgroundComponent.style = backgroundCss;
30
-
31
- export { YooBackgroundComponent as yoo_background };
@@ -1,15 +0,0 @@
1
- /**
2
- * @name: Background
3
- * @author: Andreea, Ugo, Damien
4
- * Zeplin link: n/a
5
- */
6
- import { ComponentInterface } from '../../../stencil-public-runtime';
7
- export declare class YooBackgroundComponent implements ComponentInterface {
8
- forceMobile: boolean;
9
- imgUrl: string;
10
- imgHeight: number;
11
- imgWidth: number;
12
- scaleValue: number;
13
- el: HTMLYooBackgroundElement;
14
- render(): any;
15
- }