@rededor/cura 0.3.0 → 0.3.2
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/assets/icons/iconset-default-list.ts +1 -1
- package/dist/assets/icons/iconset-default.svg +1 -1
- package/dist/cjs/{app-globals-5f5b9fbf.js → app-globals-0f70160b.js} +57 -15
- package/dist/cjs/cura-display_4.cjs.entry.js +257 -0
- package/dist/cjs/cura-icons-view.cjs.entry.js +2 -2
- package/dist/cjs/cura.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/api/cura-api.js +4 -1
- package/dist/collection/api/modules/cura-theme-module.js +2 -0
- package/dist/collection/api/modules/cura-theme-spacing-module.js +12 -0
- package/dist/collection/api/theme-presets/static.js +0 -13
- package/dist/collection/api/theme-presets/theme-oncology.js +38 -0
- package/dist/collection/api/theme-presets/theme-presets.js +3 -1
- package/dist/collection/assets/icons/iconset-default-list.js +1 -1
- package/dist/collection/assets/icons/iconset-default.svg +1 -1
- package/dist/collection/assets-raw/icons/default/facebook.svg +3 -0
- package/dist/collection/assets-raw/icons/default/google.svg +3 -0
- package/dist/collection/assets-raw/icons/default/instagram.svg +5 -0
- package/dist/collection/assets-raw/icons/default/lattes.svg +3 -0
- package/dist/collection/assets-raw/icons/default/likeHand.svg +4 -0
- package/dist/collection/assets-raw/icons/default/linkedin.svg +5 -0
- package/dist/collection/assets-raw/icons/default/twitter.svg +3 -0
- package/dist/collection/assets-raw/icons/default/unlikeHand.svg +4 -0
- package/dist/collection/assets-raw/icons/default/whatsapp.svg +4 -0
- package/dist/collection/assets-raw/icons/default/youtube.svg +4 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/cura-icons-view/cura-icons-view.css +1 -15
- package/dist/collection/components/cura-page-template/cura-page-template.css +123 -0
- package/dist/collection/components/cura-page-template/cura-page-template.js +54 -0
- package/dist/collection/components/text/cura-display/cura-display.css +25 -2
- package/dist/collection/components/text/cura-display/cura-display.js +56 -5
- package/dist/collection/components/text/cura-heading/cura-heading.css +25 -2
- package/dist/collection/components/text/cura-heading/cura-heading.js +53 -2
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +25 -2
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +54 -3
- package/dist/components/cura-display.js +24 -7
- package/dist/components/cura-heading.js +21 -4
- package/dist/components/cura-icons-view.js +2 -2
- package/dist/components/cura-page-template.d.ts +11 -0
- package/dist/components/cura-page-template.js +47 -0
- package/dist/components/cura-paragraph.js +22 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +58 -15
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.js +1 -1
- package/dist/cura/p-32769783.system.js +1 -0
- package/dist/cura/p-5b5cf2e4.system.entry.js +1 -0
- package/dist/cura/p-84b2ad25.entry.js +1 -0
- package/dist/cura/p-8b416bc6.system.js +1 -0
- package/dist/cura/p-aca36c98.js +1 -0
- package/dist/cura/p-e3facf6a.system.entry.js +1 -0
- package/dist/cura/p-fbcea891.entry.js +1 -0
- package/dist/esm/{app-globals-d7dd3a4d.js → app-globals-cb45bff3.js} +57 -15
- package/dist/esm/cura-display_4.entry.js +250 -0
- package/dist/esm/cura-icons-view.entry.js +2 -2
- package/dist/esm/cura.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/app-globals-cb45bff3.js +1 -0
- package/dist/esm-es5/cura-display_4.entry.js +1 -0
- package/dist/esm-es5/cura-icons-view.entry.js +1 -1
- package/dist/esm-es5/cura.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/types/api/cura-api.type.d.ts +4 -1
- package/dist/types/api/modules/cura-theme-module.d.ts +2 -0
- package/dist/types/api/modules/cura-theme-spacing-module.d.ts +6 -0
- package/dist/types/api/theme-presets/static.d.ts +0 -11
- package/dist/types/api/theme-presets/theme-oncology.d.ts +50 -0
- package/dist/types/api/theme-presets/theme-presets.d.ts +50 -0
- package/dist/types/components/cura-page-template/cura-page-template.d.ts +8 -0
- package/dist/types/components/text/cura-display/cura-display.d.ts +13 -3
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +10 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +10 -0
- package/dist/types/components.d.ts +63 -0
- package/package.json +2 -2
- package/dist/cjs/cura-display_3.cjs.entry.js +0 -187
- package/dist/cura/p-265c1706.js +0 -1
- package/dist/cura/p-3d8bbf37.system.js +0 -1
- package/dist/cura/p-5ae0d10c.system.entry.js +0 -1
- package/dist/cura/p-80dc1c9f.entry.js +0 -1
- package/dist/cura/p-9312a846.system.entry.js +0 -1
- package/dist/cura/p-a8dcaaed.system.js +0 -1
- package/dist/cura/p-d29b9e16.entry.js +0 -1
- package/dist/esm/cura-display_3.entry.js +0 -181
- package/dist/esm-es5/app-globals-d7dd3a4d.js +0 -1
- package/dist/esm-es5/cura-display_3.entry.js +0 -1
|
@@ -7,10 +7,20 @@ export class CuraDisplay {
|
|
|
7
7
|
*/
|
|
8
8
|
this.level = 1;
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
* Heading style size.
|
|
11
|
+
* Values: small | regular(default) | large.
|
|
12
|
+
*/
|
|
13
13
|
this.size = 'regular';
|
|
14
|
+
/**
|
|
15
|
+
* Apply light color to text in dark background.
|
|
16
|
+
* Values: boolean.
|
|
17
|
+
*/
|
|
18
|
+
this.inverted = false;
|
|
19
|
+
/**
|
|
20
|
+
* Apply base system color to elements like <a> and <abbr>.
|
|
21
|
+
* Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
22
|
+
*/
|
|
23
|
+
this.spotColor = 'primary';
|
|
14
24
|
}
|
|
15
25
|
connectedCallback() {
|
|
16
26
|
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
@@ -30,11 +40,16 @@ export class CuraDisplay {
|
|
|
30
40
|
'--font-weight-black': this.weights.black
|
|
31
41
|
};
|
|
32
42
|
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
43
|
+
this.setHostProperty('--block-margin', '0.5em');
|
|
33
44
|
}
|
|
34
45
|
setColors() {
|
|
35
|
-
const fontColor =
|
|
46
|
+
const fontColor = this.inverted
|
|
47
|
+
? window.CuraAPI.theme.colors.getColor('neutral-100')
|
|
48
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
36
49
|
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
37
|
-
this.styles['--color-link'] =
|
|
50
|
+
this.styles['--color-link'] = this.inverted
|
|
51
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
|
|
52
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
|
|
38
53
|
}
|
|
39
54
|
setHostProperty(prop, value) {
|
|
40
55
|
this.host.style.setProperty(prop, value);
|
|
@@ -103,6 +118,42 @@ export class CuraDisplay {
|
|
|
103
118
|
"attribute": "size",
|
|
104
119
|
"reflect": true,
|
|
105
120
|
"defaultValue": "'regular'"
|
|
121
|
+
},
|
|
122
|
+
"inverted": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "boolean",
|
|
127
|
+
"resolved": "boolean",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": "Apply light color to text in dark background.\nValues: boolean."
|
|
135
|
+
},
|
|
136
|
+
"attribute": "inverted",
|
|
137
|
+
"reflect": true,
|
|
138
|
+
"defaultValue": "false"
|
|
139
|
+
},
|
|
140
|
+
"spotColor": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"mutable": false,
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "string",
|
|
145
|
+
"resolved": "string",
|
|
146
|
+
"references": {}
|
|
147
|
+
},
|
|
148
|
+
"required": false,
|
|
149
|
+
"optional": false,
|
|
150
|
+
"docs": {
|
|
151
|
+
"tags": [],
|
|
152
|
+
"text": "Apply base system color to elements like <a> and <abbr>.\nValues: String primary(default) | secondary | accent | neutral | success | error | warning | info."
|
|
153
|
+
},
|
|
154
|
+
"attribute": "spot-color",
|
|
155
|
+
"reflect": true,
|
|
156
|
+
"defaultValue": "'primary'"
|
|
106
157
|
}
|
|
107
158
|
};
|
|
108
159
|
}
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
/* Breakpoints variables */
|
|
2
|
+
/**
|
|
3
|
+
* Responsive media for mobile (small) only.
|
|
4
|
+
* Use: @include mobile-only() { ... }
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Responsive media for medium only.
|
|
8
|
+
* Use: @include medium-only() { ... }
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Responsive media for large only.
|
|
12
|
+
* Use: @include large-only() { ... }
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Responsive media for large and up.
|
|
16
|
+
* Use: @include large-up() { ... }
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Responsive media for xlarge only.
|
|
20
|
+
* Use: @include xlarge-only() { ... }
|
|
21
|
+
*/
|
|
1
22
|
:host {
|
|
2
23
|
display: block;
|
|
3
24
|
font-size: var(--font-size);
|
|
@@ -9,6 +30,8 @@
|
|
|
9
30
|
color: var(--color-body);
|
|
10
31
|
line-height: 130%;
|
|
11
32
|
letter-spacing: 0%;
|
|
33
|
+
margin-block-start: var(--block-margin);
|
|
34
|
+
margin-block-end: var(--block-margin);
|
|
12
35
|
}
|
|
13
36
|
:host h1.bold-weight, :host h2.bold-weight, :host h3.bold-weight, :host h4.bold-weight, :host h5.bold-weight, :host h6.bold-weight {
|
|
14
37
|
font-weight: var(--font-weight-medium);
|
|
@@ -25,7 +48,7 @@
|
|
|
25
48
|
:host h1.small.bold-weight, :host h2.small.bold-weight, :host h3.small.bold-weight, :host h4.small.bold-weight, :host h5.small.bold-weight, :host h6.small.bold-weight {
|
|
26
49
|
font-weight: var(--font-weight-bold);
|
|
27
50
|
}
|
|
28
|
-
@media
|
|
51
|
+
@media (min-width: 768px) and (max-width: 1365px) {
|
|
29
52
|
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
30
53
|
font-size: 2em;
|
|
31
54
|
}
|
|
@@ -36,7 +59,7 @@
|
|
|
36
59
|
font-size: 1.357em;
|
|
37
60
|
}
|
|
38
61
|
}
|
|
39
|
-
@media
|
|
62
|
+
@media (min-width: 1366px) {
|
|
40
63
|
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
41
64
|
font-size: 2.5em;
|
|
42
65
|
line-height: 135%;
|
|
@@ -16,6 +16,16 @@ export class CuraHeading {
|
|
|
16
16
|
* Values: regular(default) | bold.
|
|
17
17
|
*/
|
|
18
18
|
this.weight = 'regular';
|
|
19
|
+
/**
|
|
20
|
+
* Apply light color to text in dark background.
|
|
21
|
+
* Values: boolean.
|
|
22
|
+
*/
|
|
23
|
+
this.inverted = false;
|
|
24
|
+
/**
|
|
25
|
+
* Apply base system color to elements like <a> and <abbr>.
|
|
26
|
+
* Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
27
|
+
*/
|
|
28
|
+
this.spotColor = 'primary';
|
|
19
29
|
}
|
|
20
30
|
connectedCallback() {
|
|
21
31
|
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
@@ -38,11 +48,16 @@ export class CuraHeading {
|
|
|
38
48
|
'--font-weight-black': this.weights.black
|
|
39
49
|
};
|
|
40
50
|
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
51
|
+
this.setHostProperty('--block-margin', '0.5em');
|
|
41
52
|
}
|
|
42
53
|
setColors() {
|
|
43
|
-
const fontColor =
|
|
54
|
+
const fontColor = this.inverted
|
|
55
|
+
? window.CuraAPI.theme.colors.getColor('neutral-100')
|
|
56
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
44
57
|
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
45
|
-
this.styles['--color-link'] =
|
|
58
|
+
this.styles['--color-link'] = this.inverted
|
|
59
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
|
|
60
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
|
|
46
61
|
}
|
|
47
62
|
setHostProperty(prop, value) {
|
|
48
63
|
this.host.style.setProperty(prop, value);
|
|
@@ -129,6 +144,42 @@ export class CuraHeading {
|
|
|
129
144
|
"attribute": "weight",
|
|
130
145
|
"reflect": true,
|
|
131
146
|
"defaultValue": "'regular'"
|
|
147
|
+
},
|
|
148
|
+
"inverted": {
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "boolean",
|
|
153
|
+
"resolved": "boolean",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "Apply light color to text in dark background.\nValues: boolean."
|
|
161
|
+
},
|
|
162
|
+
"attribute": "inverted",
|
|
163
|
+
"reflect": true,
|
|
164
|
+
"defaultValue": "false"
|
|
165
|
+
},
|
|
166
|
+
"spotColor": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "string",
|
|
171
|
+
"resolved": "string",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Apply base system color to elements like <a> and <abbr>.\nValues: String primary(default) | secondary | accent | neutral | success | error | warning | info."
|
|
179
|
+
},
|
|
180
|
+
"attribute": "spot-color",
|
|
181
|
+
"reflect": true,
|
|
182
|
+
"defaultValue": "'primary'"
|
|
132
183
|
}
|
|
133
184
|
};
|
|
134
185
|
}
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
/* Breakpoints variables */
|
|
2
|
+
/**
|
|
3
|
+
* Responsive media for mobile (small) only.
|
|
4
|
+
* Use: @include mobile-only() { ... }
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Responsive media for medium only.
|
|
8
|
+
* Use: @include medium-only() { ... }
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Responsive media for large only.
|
|
12
|
+
* Use: @include large-only() { ... }
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Responsive media for large and up.
|
|
16
|
+
* Use: @include large-up() { ... }
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Responsive media for xlarge only.
|
|
20
|
+
* Use: @include xlarge-only() { ... }
|
|
21
|
+
*/
|
|
1
22
|
:host {
|
|
2
23
|
display: block;
|
|
3
24
|
font-size: var(--font-size);
|
|
@@ -9,6 +30,8 @@
|
|
|
9
30
|
color: var(--color-body);
|
|
10
31
|
line-height: 140%;
|
|
11
32
|
letter-spacing: 2%;
|
|
33
|
+
margin-block-start: var(--block-margin);
|
|
34
|
+
margin-block-end: var(--block-margin);
|
|
12
35
|
}
|
|
13
36
|
:host p.large {
|
|
14
37
|
font-size: 1.21em;
|
|
@@ -25,7 +48,7 @@
|
|
|
25
48
|
line-height: 135%;
|
|
26
49
|
letter-spacing: 6%;
|
|
27
50
|
}
|
|
28
|
-
@media
|
|
51
|
+
@media (min-width: 768px) and (max-width: 1365px) {
|
|
29
52
|
:host p {
|
|
30
53
|
font-size: 1.14em;
|
|
31
54
|
line-height: 145%;
|
|
@@ -44,7 +67,7 @@
|
|
|
44
67
|
letter-spacing: 6%;
|
|
45
68
|
}
|
|
46
69
|
}
|
|
47
|
-
@media
|
|
70
|
+
@media (min-width: 1366px) {
|
|
48
71
|
:host p {
|
|
49
72
|
font-size: 1.42em;
|
|
50
73
|
line-height: 150%;
|
|
@@ -6,6 +6,16 @@ export class CuraParagraph {
|
|
|
6
6
|
* Values: regular (default) | large | small | caption.
|
|
7
7
|
*/
|
|
8
8
|
this.size = 'regular';
|
|
9
|
+
/**
|
|
10
|
+
* Apply light color to text in dark background.
|
|
11
|
+
* Values: boolean.
|
|
12
|
+
*/
|
|
13
|
+
this.inverted = false;
|
|
14
|
+
/**
|
|
15
|
+
* Apply base system color to elements like <a> and <abbr>.
|
|
16
|
+
* Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
17
|
+
*/
|
|
18
|
+
this.spotColor = 'primary';
|
|
9
19
|
}
|
|
10
20
|
connectedCallback() {
|
|
11
21
|
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
@@ -26,11 +36,16 @@ export class CuraParagraph {
|
|
|
26
36
|
'--font-weight-bold': this.weights.bold
|
|
27
37
|
};
|
|
28
38
|
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
39
|
+
this.setHostProperty('--block-margin', '1.25em');
|
|
29
40
|
}
|
|
30
41
|
setColors() {
|
|
31
|
-
const fontColor =
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
const fontColor = this.inverted
|
|
43
|
+
? window.CuraAPI.theme.colors.getColor('neutral-100')
|
|
44
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
45
|
+
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
46
|
+
this.styles['--color-link'] = this.inverted
|
|
47
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
|
|
48
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
|
|
34
49
|
}
|
|
35
50
|
setHostProperty(prop, value) {
|
|
36
51
|
this.host.style.setProperty(prop, value);
|
|
@@ -69,6 +84,42 @@ export class CuraParagraph {
|
|
|
69
84
|
"attribute": "size",
|
|
70
85
|
"reflect": true,
|
|
71
86
|
"defaultValue": "'regular'"
|
|
87
|
+
},
|
|
88
|
+
"inverted": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "boolean",
|
|
93
|
+
"resolved": "boolean",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "Apply light color to text in dark background.\nValues: boolean."
|
|
101
|
+
},
|
|
102
|
+
"attribute": "inverted",
|
|
103
|
+
"reflect": true,
|
|
104
|
+
"defaultValue": "false"
|
|
105
|
+
},
|
|
106
|
+
"spotColor": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": "Apply base system color to elements like <a> and <abbr>.\nValues: String primary(default) | secondary | accent | neutral | success | error | warning | info."
|
|
119
|
+
},
|
|
120
|
+
"attribute": "spot-color",
|
|
121
|
+
"reflect": true,
|
|
122
|
+
"defaultValue": "'primary'"
|
|
72
123
|
}
|
|
73
124
|
};
|
|
74
125
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const curaDisplayCss = ":host{display:block;font-size:var(--font-size);text-transform:uppercase}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:4.285em;font-weight:var(--font-weight-black);color:var(--color-body);line-height:120%;letter-spacing:-4
|
|
3
|
+
const curaDisplayCss = ":host{display:block;font-size:var(--font-size);text-transform:uppercase}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:4.285em;font-weight:var(--font-weight-black);color:var(--color-body);line-height:120%;letter-spacing:-4%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:6.21em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3em;font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.92em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:7.07em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3.428em}}@media (min-width: 1366px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:6.14em;line-height:125%}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:8.857em;letter-spacing:-6%}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:4.285em;letter-spacing:-2%}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
|
|
4
4
|
|
|
5
5
|
const CuraDisplay$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -13,10 +13,20 @@ const CuraDisplay$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
13
13
|
*/
|
|
14
14
|
this.level = 1;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
* Heading style size.
|
|
17
|
+
* Values: small | regular(default) | large.
|
|
18
|
+
*/
|
|
19
19
|
this.size = 'regular';
|
|
20
|
+
/**
|
|
21
|
+
* Apply light color to text in dark background.
|
|
22
|
+
* Values: boolean.
|
|
23
|
+
*/
|
|
24
|
+
this.inverted = false;
|
|
25
|
+
/**
|
|
26
|
+
* Apply base system color to elements like <a> and <abbr>.
|
|
27
|
+
* Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
28
|
+
*/
|
|
29
|
+
this.spotColor = 'primary';
|
|
20
30
|
}
|
|
21
31
|
connectedCallback() {
|
|
22
32
|
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
@@ -36,11 +46,16 @@ const CuraDisplay$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
36
46
|
'--font-weight-black': this.weights.black
|
|
37
47
|
};
|
|
38
48
|
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
49
|
+
this.setHostProperty('--block-margin', '0.5em');
|
|
39
50
|
}
|
|
40
51
|
setColors() {
|
|
41
|
-
const fontColor =
|
|
52
|
+
const fontColor = this.inverted
|
|
53
|
+
? window.CuraAPI.theme.colors.getColor('neutral-100')
|
|
54
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
42
55
|
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
43
|
-
this.styles['--color-link'] =
|
|
56
|
+
this.styles['--color-link'] = this.inverted
|
|
57
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
|
|
58
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
|
|
44
59
|
}
|
|
45
60
|
setHostProperty(prop, value) {
|
|
46
61
|
this.host.style.setProperty(prop, value);
|
|
@@ -64,7 +79,9 @@ const CuraDisplay$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
64
79
|
static get style() { return curaDisplayCss; }
|
|
65
80
|
}, [1, "cura-display", {
|
|
66
81
|
"level": [514],
|
|
67
|
-
"size": [513]
|
|
82
|
+
"size": [513],
|
|
83
|
+
"inverted": [516],
|
|
84
|
+
"spotColor": [513, "spot-color"]
|
|
68
85
|
}]);
|
|
69
86
|
function defineCustomElement$1() {
|
|
70
87
|
if (typeof customElements === "undefined") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const curaHeadingCss = ":host{display:block;font-size:var(--font-size)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.71em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:130%;letter-spacing:0
|
|
3
|
+
const curaHeadingCss = ":host{display:block;font-size:var(--font-size)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.71em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:130%;letter-spacing:0%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.07em;letter-spacing:-2%}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:150%;letter-spacing:0%}:host h1.small.bold-weight,:host h2.small.bold-weight,:host h3.small.bold-weight,:host h4.small.bold-weight,:host h5.small.bold-weight,:host h6.small.bold-weight{font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}}@media (min-width: 1366px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:135%;letter-spacing:-2%}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.92em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.71em;line-height:160%;letter-spacing:0%}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
|
|
4
4
|
|
|
5
5
|
const CuraHeading$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -22,6 +22,16 @@ const CuraHeading$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
22
22
|
* Values: regular(default) | bold.
|
|
23
23
|
*/
|
|
24
24
|
this.weight = 'regular';
|
|
25
|
+
/**
|
|
26
|
+
* Apply light color to text in dark background.
|
|
27
|
+
* Values: boolean.
|
|
28
|
+
*/
|
|
29
|
+
this.inverted = false;
|
|
30
|
+
/**
|
|
31
|
+
* Apply base system color to elements like <a> and <abbr>.
|
|
32
|
+
* Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
33
|
+
*/
|
|
34
|
+
this.spotColor = 'primary';
|
|
25
35
|
}
|
|
26
36
|
connectedCallback() {
|
|
27
37
|
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
@@ -44,11 +54,16 @@ const CuraHeading$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
44
54
|
'--font-weight-black': this.weights.black
|
|
45
55
|
};
|
|
46
56
|
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
57
|
+
this.setHostProperty('--block-margin', '0.5em');
|
|
47
58
|
}
|
|
48
59
|
setColors() {
|
|
49
|
-
const fontColor =
|
|
60
|
+
const fontColor = this.inverted
|
|
61
|
+
? window.CuraAPI.theme.colors.getColor('neutral-100')
|
|
62
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
50
63
|
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
51
|
-
this.styles['--color-link'] =
|
|
64
|
+
this.styles['--color-link'] = this.inverted
|
|
65
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
|
|
66
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
|
|
52
67
|
}
|
|
53
68
|
setHostProperty(prop, value) {
|
|
54
69
|
this.host.style.setProperty(prop, value);
|
|
@@ -73,7 +88,9 @@ const CuraHeading$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
73
88
|
}, [1, "cura-heading", {
|
|
74
89
|
"level": [514],
|
|
75
90
|
"size": [513],
|
|
76
|
-
"weight": [513]
|
|
91
|
+
"weight": [513],
|
|
92
|
+
"inverted": [516],
|
|
93
|
+
"spotColor": [513, "spot-color"]
|
|
77
94
|
}]);
|
|
78
95
|
function defineCustomElement$1() {
|
|
79
96
|
if (typeof customElements === "undefined") {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$2 } from './cura-icon2.js';
|
|
3
3
|
|
|
4
|
-
const iconsetdefaulticons = ["360", "accessibility", "alertCircle", "alertTriangle", "arrowDown", "arrowDownCircle", "arrowLeft", "arrowLeftCircle", "arrowRight", "arrowRightCircle", "arrowUp", "arrowUpCircle", "attach", "avatarF", "avatarM", "biometry", "bloodGroup", "calendar", "cam", "camOff", "central", "chatCircle", "check", "checkBadge", "checkCircle", "checkDouble", "clock", "close", "closeCircle", "collapse", "config", "delete", "desktop", "deslike", "download", "duplicate", "edit", "exam", "expand", "fileBmp", "fileJpg", "filePdf", "filePng", "fileUpload", "fileXls", "filter", "fullscreen", "gallery", "geotag", "hate", "healthPlan", "height", "height2", "home", "horizontalList", "imageUp", "info2", "infoCircle", "key", "language", "language2", "languageEN", "languagePT", "like", "link", "linkExternal", "list", "login", "logout", "love", "mail", "mail2", "medical", "menuHamburguer", "menuKebab", "menuMeatballs", "mic", "micOff", "minus", "minusCircle", "minusSquare", "mobile", "neutral", "news", "notification", "order", "partner", "phone", "play", "plus", "plusCircle", "plusSquare", "print", "profile", "profile2", "pulldownG", "pulldownP", "pullupG", "pullupP", "questionCircle", "questionSquare", "range", "reload", "schedule", "search", "secure", "share", "share2", "sound", "soundOff", "subItem", "target", "team", "unLink", "unSecure", "upload", "verticalList", "viewFalse", "viewTrue", "weight", "wifi", "zoomIn", "zoomOut"];
|
|
4
|
+
const iconsetdefaulticons = ["360", "accessibility", "alertCircle", "alertTriangle", "arrowDown", "arrowDownCircle", "arrowLeft", "arrowLeftCircle", "arrowRight", "arrowRightCircle", "arrowUp", "arrowUpCircle", "attach", "avatarF", "avatarM", "biometry", "bloodGroup", "calendar", "cam", "camOff", "central", "chatCircle", "check", "checkBadge", "checkCircle", "checkDouble", "clock", "close", "closeCircle", "collapse", "config", "delete", "desktop", "deslike", "download", "duplicate", "edit", "exam", "expand", "facebook", "fileBmp", "fileJpg", "filePdf", "filePng", "fileUpload", "fileXls", "filter", "fullscreen", "gallery", "geotag", "google", "hate", "healthPlan", "height", "height2", "home", "horizontalList", "imageUp", "info2", "infoCircle", "instagram", "key", "language", "language2", "languageEN", "languagePT", "lattes", "like", "likeHand", "link", "linkExternal", "linkedin", "list", "login", "logout", "love", "mail", "mail2", "medical", "menuHamburguer", "menuKebab", "menuMeatballs", "mic", "micOff", "minus", "minusCircle", "minusSquare", "mobile", "neutral", "news", "notification", "order", "partner", "phone", "play", "plus", "plusCircle", "plusSquare", "print", "profile", "profile2", "pulldownG", "pulldownP", "pullupG", "pullupP", "questionCircle", "questionSquare", "range", "reload", "schedule", "search", "secure", "share", "share2", "sound", "soundOff", "subItem", "target", "team", "twitter", "unLink", "unSecure", "unlikeHand", "upload", "verticalList", "viewFalse", "viewTrue", "weight", "whatsapp", "wifi", "youtube", "zoomIn", "zoomOut"];
|
|
5
5
|
|
|
6
|
-
const curaIconsViewCss = ":host{display:block;padding:24px;font-family
|
|
6
|
+
const curaIconsViewCss = ":host{display:block;padding:24px;font-family:\"Roboto\", Arial, Helvetica, sans-serif}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";
|
|
7
7
|
|
|
8
8
|
const CuraIconsView$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CuraPageTemplate extends Components.CuraPageTemplate, HTMLElement {}
|
|
4
|
+
export const CuraPageTemplate: {
|
|
5
|
+
prototype: CuraPageTemplate;
|
|
6
|
+
new (): CuraPageTemplate;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const curaPageTemplateCss = ":host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 360px){:host .grid-template{padding:0px}:host .grid-template #pre-content,:host .grid-template #content-container,:host .grid-template #post-body,:host .grid-template #footer{margin-top:calc(var(--spacing) * 4px)}}@media (min-width: 768px) and (max-width: 1365px){:host .grid-template{padding:0px}:host .grid-template #pre-content,:host .grid-template #content-container,:host .grid-template #post-body,:host .grid-template #footer{margin-top:calc(var(--spacing) * 5px)}}@media (min-width: 1366px) and (max-width: 1919px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #pre-content,:host .grid-template #content-container,:host .grid-template #post-body,:host .grid-template #footer{margin-top:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:-ms-flexbox;display:flex}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #pre-content,:host .grid-template #content-container,:host .grid-template #post-body,:host .grid-template #footer{margin-top:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:-ms-flexbox;display:flex}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1920px;justify-self:center}}";
|
|
4
|
+
|
|
5
|
+
const CuraPageTemplate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.contentwidth = 'default';
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
this.styles = {
|
|
14
|
+
'--spacing': window.CuraAPI.theme.spacing.getSpacing(),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
getClasses() {
|
|
18
|
+
const classes = {};
|
|
19
|
+
classes[this.contentwidth.toLowerCase()] = true;
|
|
20
|
+
return classes;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h(Host, null, h("div", { style: this.styles, class: "grid-template" }, h("div", { id: "sub-header" }, h("slot", { name: 'sub-header' })), h("div", { id: "header" }, h("slot", { name: 'header' })), h("div", { id: "pre-content" }, h("slot", { name: 'pre-content' })), h("div", { id: "content-container", class: this.getClasses() }, h("div", { id: "sidebar-left" }, h("slot", { name: 'sidebar-left' })), h("div", { id: "content" }, h("slot", { name: "content" }), h("slot", null)), h("div", { id: "sidebar-right" }, h("slot", { name: 'sidebar-right' }))), h("div", { id: "post-body" }, h("slot", { name: 'post-body' })), h("div", { id: "footer" }, h("slot", { name: 'footer' })), h("div", { id: "sub-footer" }, h("slot", { name: 'sub-footer' })))));
|
|
24
|
+
}
|
|
25
|
+
get host() { return this; }
|
|
26
|
+
static get style() { return curaPageTemplateCss; }
|
|
27
|
+
}, [1, "cura-page-template", {
|
|
28
|
+
"contentwidth": [513]
|
|
29
|
+
}]);
|
|
30
|
+
function defineCustomElement$1() {
|
|
31
|
+
if (typeof customElements === "undefined") {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const components = ["cura-page-template"];
|
|
35
|
+
components.forEach(tagName => { switch (tagName) {
|
|
36
|
+
case "cura-page-template":
|
|
37
|
+
if (!customElements.get(tagName)) {
|
|
38
|
+
customElements.define(tagName, CuraPageTemplate$1);
|
|
39
|
+
}
|
|
40
|
+
break;
|
|
41
|
+
} });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const CuraPageTemplate = CuraPageTemplate$1;
|
|
45
|
+
const defineCustomElement = defineCustomElement$1;
|
|
46
|
+
|
|
47
|
+
export { CuraPageTemplate, defineCustomElement };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const curaParagraphCss = ":host{display:block;font-size:var(--font-size)}:host p{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:140%;letter-spacing:2
|
|
3
|
+
const curaParagraphCss = ":host{display:block;font-size:var(--font-size)}:host p{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:140%;letter-spacing:2%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}:host p.large{font-size:1.21em;line-height:150%;letter-spacing:0%}:host p.small{font-size:0.85em;line-height:135%;letter-spacing:4%}:host p.caption{font-size:0.71em;line-height:135%;letter-spacing:6%}@media (min-width: 768px) and (max-width: 1365px){:host p{font-size:1.14em;line-height:145%}:host p.large{font-size:1.35em;line-height:150%}:host p.small{font-size:1em;line-height:135%}:host p.caption{font-size:0.85em;line-height:135%;letter-spacing:6%}}@media (min-width: 1366px){:host p{font-size:1.42em;line-height:150%;letter-spacing:0%}:host p.large{font-size:1.71em;line-height:160%}:host p.small{font-size:1.21em;line-height:145%;letter-spacing:0%}:host p.caption{font-size:1em;line-height:145%;letter-spacing:2%}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-medium);color:var(--color-link);text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
|
|
4
4
|
|
|
5
5
|
const CuraParagraph$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -12,6 +12,16 @@ const CuraParagraph$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
12
12
|
* Values: regular (default) | large | small | caption.
|
|
13
13
|
*/
|
|
14
14
|
this.size = 'regular';
|
|
15
|
+
/**
|
|
16
|
+
* Apply light color to text in dark background.
|
|
17
|
+
* Values: boolean.
|
|
18
|
+
*/
|
|
19
|
+
this.inverted = false;
|
|
20
|
+
/**
|
|
21
|
+
* Apply base system color to elements like <a> and <abbr>.
|
|
22
|
+
* Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
23
|
+
*/
|
|
24
|
+
this.spotColor = 'primary';
|
|
15
25
|
}
|
|
16
26
|
connectedCallback() {
|
|
17
27
|
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
@@ -32,11 +42,16 @@ const CuraParagraph$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
32
42
|
'--font-weight-bold': this.weights.bold
|
|
33
43
|
};
|
|
34
44
|
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
45
|
+
this.setHostProperty('--block-margin', '1.25em');
|
|
35
46
|
}
|
|
36
47
|
setColors() {
|
|
37
|
-
const fontColor =
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
const fontColor = this.inverted
|
|
49
|
+
? window.CuraAPI.theme.colors.getColor('neutral-100')
|
|
50
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
51
|
+
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
52
|
+
this.styles['--color-link'] = this.inverted
|
|
53
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
|
|
54
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
|
|
40
55
|
}
|
|
41
56
|
setHostProperty(prop, value) {
|
|
42
57
|
this.host.style.setProperty(prop, value);
|
|
@@ -47,7 +62,9 @@ const CuraParagraph$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
47
62
|
get host() { return this; }
|
|
48
63
|
static get style() { return curaParagraphCss; }
|
|
49
64
|
}, [1, "cura-paragraph", {
|
|
50
|
-
"size": [513]
|
|
65
|
+
"size": [513],
|
|
66
|
+
"inverted": [516],
|
|
67
|
+
"spotColor": [513, "spot-color"]
|
|
51
68
|
}]);
|
|
52
69
|
function defineCustomElement$1() {
|
|
53
70
|
if (typeof customElements === "undefined") {
|
|
@@ -3,6 +3,7 @@ export { CuraDisplay as CuraDisplay } from '../types/components/text/cura-displa
|
|
|
3
3
|
export { CuraHeading as CuraHeading } from '../types/components/text/cura-heading/cura-heading';
|
|
4
4
|
export { CuraIcon as CuraIcon } from '../types/components/cura-icon/cura-icon';
|
|
5
5
|
export { CuraIconsView as CuraIconsView } from '../types/components/cura-icons-view/cura-icons-view';
|
|
6
|
+
export { CuraPageTemplate as CuraPageTemplate } from '../types/components/cura-page-template/cura-page-template';
|
|
6
7
|
export { CuraParagraph as CuraParagraph } from '../types/components/text/cura-paragraph/cura-paragraph';
|
|
7
8
|
|
|
8
9
|
/**
|