@rededor/cura 0.3.1 → 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/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-icon.cjs.entry.js +59 -0
- package/dist/cjs/cura-icons-view.cjs.entry.js +27 -0
- 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/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 +1 -1
- 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-22290742.entry.js +1 -0
- 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-e8fadcfa.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-icon.entry.js +55 -0
- package/dist/esm/cura-icons-view.entry.js +23 -0
- 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-icon.entry.js +1 -0
- package/dist/esm-es5/cura-icons-view.entry.js +1 -0
- 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_5.cjs.entry.js +0 -261
- package/dist/cura/p-265c1706.js +0 -1
- package/dist/cura/p-3d8bbf37.system.js +0 -1
- package/dist/cura/p-a8dcaaed.system.js +0 -1
- package/dist/cura/p-fc50b109.system.entry.js +0 -1
- package/dist/cura/p-fc80cb18.entry.js +0 -1
- package/dist/esm/cura-display_5.entry.js +0 -253
- package/dist/esm-es5/app-globals-d7dd3a4d.js +0 -1
- package/dist/esm-es5/cura-display_5.entry.js +0 -1
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-c3d31886.js';
|
|
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%}: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 screen and (min-width: 768px) and (max-width: 1366px){: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 screen and (min-width: 1367px){: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
|
-
|
|
5
|
-
const CuraDisplay = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Heading level for semantics.
|
|
10
|
-
* Values: 1(default)-6.
|
|
11
|
-
*/
|
|
12
|
-
this.level = 1;
|
|
13
|
-
/**
|
|
14
|
-
* Heading style size.
|
|
15
|
-
* Values: small | regular(default) | large.
|
|
16
|
-
*/
|
|
17
|
-
this.size = 'regular';
|
|
18
|
-
}
|
|
19
|
-
connectedCallback() {
|
|
20
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
21
|
-
this.setFontProperties();
|
|
22
|
-
this.setColors();
|
|
23
|
-
}
|
|
24
|
-
getClasses() {
|
|
25
|
-
const classes = {};
|
|
26
|
-
classes[this.size.toLowerCase()] = true;
|
|
27
|
-
return classes;
|
|
28
|
-
}
|
|
29
|
-
setFontProperties() {
|
|
30
|
-
this.styles = {
|
|
31
|
-
'--font-family': window.CuraAPI.theme.fonts.getFamily('display'),
|
|
32
|
-
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
33
|
-
'--font-weight-bold': this.weights.bold,
|
|
34
|
-
'--font-weight-black': this.weights.black
|
|
35
|
-
};
|
|
36
|
-
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
37
|
-
}
|
|
38
|
-
setColors() {
|
|
39
|
-
const fontColor = window.CuraAPI.theme.fonts.getColor();
|
|
40
|
-
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
41
|
-
this.styles['--color-link'] = window.CuraAPI.theme.colors.getColor('primary-700');
|
|
42
|
-
}
|
|
43
|
-
setHostProperty(prop, value) {
|
|
44
|
-
this.host.style.setProperty(prop, value);
|
|
45
|
-
}
|
|
46
|
-
getHeadingTag() {
|
|
47
|
-
const tags = {
|
|
48
|
-
'1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
49
|
-
'2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
50
|
-
'3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
51
|
-
'4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
52
|
-
'5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
53
|
-
'6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
54
|
-
'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
|
|
55
|
-
};
|
|
56
|
-
return tags[`${this.level}`] || tags['default'];
|
|
57
|
-
}
|
|
58
|
-
render() {
|
|
59
|
-
return (h(Host, null, this.getHeadingTag()));
|
|
60
|
-
}
|
|
61
|
-
get host() { return getElement(this); }
|
|
62
|
-
};
|
|
63
|
-
CuraDisplay.style = curaDisplayCss;
|
|
64
|
-
|
|
65
|
-
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%}: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 screen and (min-width: 768px) and (max-width: 1366px){: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 screen and (min-width: 1367px){: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}";
|
|
66
|
-
|
|
67
|
-
const CuraHeading = class {
|
|
68
|
-
constructor(hostRef) {
|
|
69
|
-
registerInstance(this, hostRef);
|
|
70
|
-
/**
|
|
71
|
-
* Heading level for semantics.
|
|
72
|
-
* Values: 1(default)-6.
|
|
73
|
-
*/
|
|
74
|
-
this.level = 1;
|
|
75
|
-
/**
|
|
76
|
-
* Heading style size.
|
|
77
|
-
* Values: small | regular(default) | large.
|
|
78
|
-
*/
|
|
79
|
-
this.size = 'regular';
|
|
80
|
-
/**
|
|
81
|
-
* Heading font weight.
|
|
82
|
-
* Values: regular(default) | bold.
|
|
83
|
-
*/
|
|
84
|
-
this.weight = 'regular';
|
|
85
|
-
}
|
|
86
|
-
connectedCallback() {
|
|
87
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
88
|
-
this.setFontProperties();
|
|
89
|
-
this.setColors();
|
|
90
|
-
}
|
|
91
|
-
getClasses() {
|
|
92
|
-
const classes = {};
|
|
93
|
-
classes[this.size.toLowerCase()] = true;
|
|
94
|
-
classes[`${this.weight.toLowerCase()}-weight`] = true;
|
|
95
|
-
return classes;
|
|
96
|
-
}
|
|
97
|
-
setFontProperties() {
|
|
98
|
-
this.styles = {
|
|
99
|
-
'--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
|
|
100
|
-
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
101
|
-
'--font-weight-regular': this.weights.regular,
|
|
102
|
-
'--font-weight-medium': this.weights.medium,
|
|
103
|
-
'--font-weight-bold': this.weights.bold,
|
|
104
|
-
'--font-weight-black': this.weights.black
|
|
105
|
-
};
|
|
106
|
-
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
107
|
-
}
|
|
108
|
-
setColors() {
|
|
109
|
-
const fontColor = window.CuraAPI.theme.fonts.getColor();
|
|
110
|
-
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
111
|
-
this.styles['--color-link'] = window.CuraAPI.theme.colors.getColor('primary-700');
|
|
112
|
-
}
|
|
113
|
-
setHostProperty(prop, value) {
|
|
114
|
-
this.host.style.setProperty(prop, value);
|
|
115
|
-
}
|
|
116
|
-
getHeadingTag() {
|
|
117
|
-
const tags = {
|
|
118
|
-
'1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
119
|
-
'2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
120
|
-
'3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
121
|
-
'4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
122
|
-
'5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
123
|
-
'6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
124
|
-
'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
|
|
125
|
-
};
|
|
126
|
-
return tags[`${this.level}`] || tags['default'];
|
|
127
|
-
}
|
|
128
|
-
render() {
|
|
129
|
-
return (h(Host, null, this.getHeadingTag()));
|
|
130
|
-
}
|
|
131
|
-
get host() { return getElement(this); }
|
|
132
|
-
};
|
|
133
|
-
CuraHeading.style = curaHeadingCss;
|
|
134
|
-
|
|
135
|
-
const curaIconCss = ":host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
|
|
136
|
-
|
|
137
|
-
const CuraIcon = class {
|
|
138
|
-
constructor(hostRef) {
|
|
139
|
-
registerInstance(this, hostRef);
|
|
140
|
-
this.name = '';
|
|
141
|
-
this.color = 'neutral-base';
|
|
142
|
-
this.iconset = 'default';
|
|
143
|
-
this.disabled = false;
|
|
144
|
-
this.sizes = {
|
|
145
|
-
"128": { size: 128, stroke: 5.25 },
|
|
146
|
-
"72": { size: 72, stroke: 3.5 },
|
|
147
|
-
"64": { size: 64, stroke: 3.25 },
|
|
148
|
-
"48": { size: 48, stroke: 2.75 },
|
|
149
|
-
"40": { size: 40, stroke: 2.5 },
|
|
150
|
-
"32": { size: 32, stroke: 2.25 },
|
|
151
|
-
"24": { size: 24, stroke: 2 },
|
|
152
|
-
"20": { size: 20, stroke: 1.75 },
|
|
153
|
-
"16": { size: 16, stroke: 1.5 },
|
|
154
|
-
"default": { size: 24, stroke: 2 }
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
sizeHandler(size) {
|
|
158
|
-
const scaledStroke = (iconSize) => {
|
|
159
|
-
return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;
|
|
160
|
-
};
|
|
161
|
-
this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);
|
|
162
|
-
this.setHostProperty('--stroke', this.sizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
|
|
163
|
-
}
|
|
164
|
-
colorHandler() {
|
|
165
|
-
this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color));
|
|
166
|
-
}
|
|
167
|
-
connectedCallback() {
|
|
168
|
-
this.assetsPath = window.CuraAPI.localAssetsPath;
|
|
169
|
-
this.sizeHandler(this.size);
|
|
170
|
-
this.colorHandler();
|
|
171
|
-
}
|
|
172
|
-
setHostProperty(prop, value) {
|
|
173
|
-
this.host.style.setProperty(prop, value);
|
|
174
|
-
}
|
|
175
|
-
render() {
|
|
176
|
-
return (h(Host, null, h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
|
|
177
|
-
}
|
|
178
|
-
get host() { return getElement(this); }
|
|
179
|
-
static get watchers() { return {
|
|
180
|
-
"size": ["sizeHandler"],
|
|
181
|
-
"color": ["colorHandler"],
|
|
182
|
-
"disabled": ["colorHandler"]
|
|
183
|
-
}; }
|
|
184
|
-
};
|
|
185
|
-
CuraIcon.style = curaIconCss;
|
|
186
|
-
|
|
187
|
-
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"];
|
|
188
|
-
|
|
189
|
-
const curaIconsViewCss = ":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.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}";
|
|
190
|
-
|
|
191
|
-
const CuraIconsView = class {
|
|
192
|
-
constructor(hostRef) {
|
|
193
|
-
registerInstance(this, hostRef);
|
|
194
|
-
this.sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];
|
|
195
|
-
this.colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];
|
|
196
|
-
this.selected = '360';
|
|
197
|
-
this.setSelected = (icon) => {
|
|
198
|
-
this.selected = icon;
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
render() {
|
|
202
|
-
return (h(Host, null, h("div", { class: "iconDetail" }, h("h4", null, this.selected), h("div", { class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), h("span", null, size)))), h("div", { class: "iconSizes" }, this.colors.map(color => h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: color }), h("span", null, color))), h("div", { class: "size" }, h("cura-icon", { name: this.selected, disabled: true }), h("span", null, "Disabled")))), h("div", { class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: "icon", onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon }), h("span", null, icon))))));
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
CuraIconsView.style = curaIconsViewCss;
|
|
206
|
-
|
|
207
|
-
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%}: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 screen and (min-width: 768px) and (max-width: 1366px){: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 screen and (min-width: 1367px){: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}";
|
|
208
|
-
|
|
209
|
-
const CuraParagraph = class {
|
|
210
|
-
constructor(hostRef) {
|
|
211
|
-
registerInstance(this, hostRef);
|
|
212
|
-
/**
|
|
213
|
-
* Set size of body text.
|
|
214
|
-
* Values: regular (default) | large | small | caption.
|
|
215
|
-
*/
|
|
216
|
-
this.size = 'regular';
|
|
217
|
-
}
|
|
218
|
-
connectedCallback() {
|
|
219
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
220
|
-
this.setFontProperties();
|
|
221
|
-
this.setColors();
|
|
222
|
-
}
|
|
223
|
-
setsizeClass() {
|
|
224
|
-
const sizeclass = {};
|
|
225
|
-
sizeclass[this.size.toLowerCase()] = true;
|
|
226
|
-
return sizeclass;
|
|
227
|
-
}
|
|
228
|
-
setFontProperties() {
|
|
229
|
-
this.styles = {
|
|
230
|
-
'--font-family': window.CuraAPI.theme.fonts.getFamily('body'),
|
|
231
|
-
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
232
|
-
'--font-weight-regular': this.weights.regular,
|
|
233
|
-
'--font-weight-medium': this.weights.medium,
|
|
234
|
-
'--font-weight-bold': this.weights.bold
|
|
235
|
-
};
|
|
236
|
-
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
237
|
-
}
|
|
238
|
-
setColors() {
|
|
239
|
-
const fontColor = window.CuraAPI.theme.fonts.getColor();
|
|
240
|
-
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor(`neutral-darker`);
|
|
241
|
-
this.styles['--color-link'] = window.CuraAPI.theme.colors.getColor('primary-700');
|
|
242
|
-
}
|
|
243
|
-
setHostProperty(prop, value) {
|
|
244
|
-
this.host.style.setProperty(prop, value);
|
|
245
|
-
}
|
|
246
|
-
render() {
|
|
247
|
-
return (h(Host, null, h("p", { style: this.styles, class: this.setsizeClass() }, h("slot", null))));
|
|
248
|
-
}
|
|
249
|
-
get host() { return getElement(this); }
|
|
250
|
-
};
|
|
251
|
-
CuraParagraph.style = curaParagraphCss;
|
|
252
|
-
|
|
253
|
-
export { CuraDisplay as cura_display, CuraHeading as cura_heading, CuraIcon as cura_icon, CuraIconsView as cura_icons_view, CuraParagraph as cura_paragraph };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var ThemeDefault={color:{primary:{100:"#71C5E8",300:"#449CD5",500:"#005EB8",700:"#004890",900:"#002855"},secondary:{100:"#F5ECE3",300:"#DDC0A2",500:"#CCA074",700:"#886B4D",900:"#292017"},accent:{100:"#F9E8D5",300:"#E4A04F",500:"#DF8D2C",700:"#955E1D",900:"#2D1C09"}},spacing:{base:4},font:{size:"14px",color:"#4A4A4A",body:"'Roboto', Arial, Helvetica, sans-serif",heading:"'Roboto', Arial, Helvetica, sans-serif",display:"'Roboto', Arial, Helvetica, sans-serif",weights:{thin:100,light:300,regular:400,medium:500,bold:700,black:900}}};var ThemeMaternity=Object.assign(Object.assign({},ThemeDefault),{color:{primary:{100:"#FCEFF6",300:"#FFBFE5",500:"#CD4D9A",700:"#99126C",900:"#00133B"},secondary:{100:"#EDF3FF",300:"#BDD2FF",500:"#189AB4",700:"#001C58",900:"#430E31"}}});var ThemePresets={default:ThemeDefault,maternidade:ThemeMaternity};var Static={color:{success:{lighter:"#DFF6E9",light:"#94E1B5",base:"#5FD290",dark:"#3F8C60",darker:"#132A1D",depth100:"#DFF6E9",depth300:"#94E1B5",depth500:"#5FD290",depth700:"#3F8C60",depth900:"#132A1D"},info:{lighter:"#CFE2FF",light:"#95BFFF",base:"#6EA8FF",dark:"#517BBB",darker:"#253855",depth100:"#CFE2FF",depth300:"#95BFFF",depth500:"#6EA8FF",depth700:"#517BBB",depth900:"#253855"},error:{lighter:"#FBDDDD",light:"#F28F8F",base:"#EB5757",dark:"#9D3A3A",darker:"#2F1111",depth100:"#FBDDDD",depth300:"#F28F8F",depth500:"#EB5757",depth700:"#9D3A3A",depth900:"#2F1111"},warning:{lighter:"#FCFAC4",light:"#F8F489",base:"#F5EF4E",dark:"#A39F34",darker:"#313010",depth100:"#FCFAC4",depth300:"#F8F489",depth500:"#F5EF4E",depth700:"#A39F34",depth900:"#313010"},neutral:{0:"#FFFFFF",100:"#F6F6F6",200:"#E9E9E9",300:"#E2E2E2",400:"#D4D4D4",500:"#B7B7B7",600:"#929292",700:"#6E6E6E",800:"#4A4A4A",900:"#262626"}},icons:{sizes:["128","72","64","48","40","32","24","20","16"],strokes:["5.25","3.5","3.25","2.75","2.5","2.25","2","1.75","1.5"],"default-size":"24"},breakpoints:{small:"576px",medium:"768px",large:"992px",xlarge:"1200px"}};var CuraThemeColorsModule=function(){function e(){this.NeutralDepthAlias={purewhite:"0",white:"100",pale:"200",lighter:"300",light:"400",base:"500",medium:"600",dark:"700",darker:"800",black:"900"};this.ColorDepthAlias={lighter:"100",light:"300",base:"500",dark:"700",darker:"900"}}e.prototype.getColor=function(e){if(e===void 0){e="primary-base"}var t=this.splitColorDepth(e),r=t.color,o=t.depth;var a=this.getStatic(r,o);if(a)return a;return this.getDynamic(r,o)};e.prototype.getStatic=function(e,t){var r,o;return((r=Static.color[e])===null||r===void 0?void 0:r[t])||((o=Static.color[e])===null||o===void 0?void 0:o[this.NeutralDepthAlias[t]])||null};e.prototype.getDynamic=function(e,t){var r=this.ColorDepthAlias[t]?"--cura-color-".concat(e,"-").concat(this.ColorDepthAlias[t]):"--cura-color-".concat(e,"-").concat(t);return getComputedStyle(document.body).getPropertyValue(r)?"var(".concat(r,")"):"var(--cura-color-primary-500)"};e.prototype.splitColorDepth=function(e){var t=e.toLowerCase().split(/-(.*)/),r=t[0],o=t[1];return{color:r!==null&&r!==void 0?r:"primary",depth:o!==null&&o!==void 0?o:"base"}};return e}();var CuraThemeFontsModule=function(){function e(){this.getSize=function(){return"var(--cura-font-size)"};this.getColor=function(){return"var(--cura-font-color)"}}e.prototype.getFamily=function(e){if(e===void 0){e="body"}var t="--cura-font-".concat(e.toLowerCase());return getComputedStyle(document.body).getPropertyValue(t)?"var(".concat(t,")"):"var(--cura-font-body)"};e.prototype.getWeights=function(){var e={};Object.keys(ThemeDefault.font.weights).forEach((function(t){return e[t]="var(--cura-font-weights-".concat(t,")")}));return e};return e}();var CuraThemeModule=function(){function e(){var e=this;this.prefix="--cura";this.colors=new CuraThemeColorsModule;this.fonts=new CuraThemeFontsModule;this.setCssVar=function(t,r){var o=e.groupPath(r,t[0]);e.body.style.setProperty(o,t[1])};this.groupPath=function(e,t){return"".concat(e,"-").concat(t)};this.isObject=function(e){return e&&typeof e==="object"&&!Array.isArray(e)};this.mergeObject=function(t,r){var o=Object.entries(t);for(var a=0,i=o;a<i.length;a++){var s=i[a];if(e.isObject(s[1])){e.mergeObject(s[1],r[s[0]])}else{r[s[0]]=s[1]}}};this.buildCssVars=function(t,r){var o=Object.entries(r);for(var a=0,i=o;a<i.length;a++){var s=i[a];if(e.isObject(s[1])){e.buildCssVars(e.groupPath(t,s[0]),s[1])}else{e.setCssVar(s,t)}}};this.body=window.document.documentElement.querySelector("body")}e.prototype.load=function(e){if(e===void 0){e="default"}var t=ThemePresets[e]?ThemePresets[e]:ThemePresets.default;this.buildCssVars(this.prefix,t)};e.prototype.setCustom=function(e){var t=e.name;if(t in ThemePresets){console.log("Error building custom theme. Theme %s already exists. Loading default theme.",t);this.load("default")}else{var r=e.fromPreset&&e.fromPreset in ThemePresets?ThemePresets[e.fromPreset]:ThemePresets.default;var o=Object.assign({},JSON.parse(JSON.stringify(r)));this.mergeObject(e.definitions,o);ThemePresets[t]=o;this.load(t)}};return e}();var CuraAPI=function(){function e(e){this.localAssetsPath=e&&e.localAssetsPath?e.localAssetsPath:"/assets";var t=new CuraThemeModule;this.theme={load:function(e){t.load(e)},setCustom:function(e){t.setCustom(e)},colors:{getColor:function(e){return t.colors.getColor(e)}},fonts:{getFamily:function(e){return t.fonts.getFamily(e)},getWeights:function(){return t.fonts.getWeights()},getSize:function(){return t.fonts.getSize()},getColor:function(){return t.fonts.getColor()}}};if(e&&e.customTheme){this.theme.setCustom(e.customTheme)}else{var r=e&&e.theme?e.theme:"default";this.theme.load(r)}}return e}();function appGlobalScript(){var e=window.CuraInit;window.CuraAPI=e?new CuraAPI(e):new CuraAPI;var t=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:t}}));if(e&&typeof e.onReady==="function")e.onReady(t)}var globalScripts=appGlobalScript;export{globalScripts as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-c3d31886.js";var 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%}: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 screen and (min-width: 768px) and (max-width: 1366px){: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 screen and (min-width: 1367px){: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}";var CuraDisplay=function(){function t(t){registerInstance(this,t);this.level=1;this.size="regular"}t.prototype.connectedCallback=function(){this.weights=window.CuraAPI.theme.fonts.getWeights();this.setFontProperties();this.setColors()};t.prototype.getClasses=function(){var t={};t[this.size.toLowerCase()]=true;return t};t.prototype.setFontProperties=function(){this.styles={"--font-family":window.CuraAPI.theme.fonts.getFamily("display"),"--font-size":window.CuraAPI.theme.fonts.getSize(),"--font-weight-bold":this.weights.bold,"--font-weight-black":this.weights.black};this.setHostProperty("--font-size",window.CuraAPI.theme.fonts.getSize())};t.prototype.setColors=function(){var t=window.CuraAPI.theme.fonts.getColor();this.styles["--color-body"]=t||window.CuraAPI.theme.colors.getColor("neutral-darker");this.styles["--color-link"]=window.CuraAPI.theme.colors.getColor("primary-700")};t.prototype.setHostProperty=function(t,e){this.host.style.setProperty(t,e)};t.prototype.getHeadingTag=function(){var t={1:h("h1",{style:this.styles,class:this.getClasses()},h("slot",null)),2:h("h2",{style:this.styles,class:this.getClasses()},h("slot",null)),3:h("h3",{style:this.styles,class:this.getClasses()},h("slot",null)),4:h("h4",{style:this.styles,class:this.getClasses()},h("slot",null)),5:h("h5",{style:this.styles,class:this.getClasses()},h("slot",null)),6:h("h6",{style:this.styles,class:this.getClasses()},h("slot",null)),default:h("h1",{style:this.styles,class:this.getClasses()},h("slot",null))};return t["".concat(this.level)]||t["default"]};t.prototype.render=function(){return h(Host,null,this.getHeadingTag())};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CuraDisplay.style=curaDisplayCss;var 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%}: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 screen and (min-width: 768px) and (max-width: 1366px){: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 screen and (min-width: 1367px){: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}";var CuraHeading=function(){function t(t){registerInstance(this,t);this.level=1;this.size="regular";this.weight="regular"}t.prototype.connectedCallback=function(){this.weights=window.CuraAPI.theme.fonts.getWeights();this.setFontProperties();this.setColors()};t.prototype.getClasses=function(){var t={};t[this.size.toLowerCase()]=true;t["".concat(this.weight.toLowerCase(),"-weight")]=true;return t};t.prototype.setFontProperties=function(){this.styles={"--font-family":window.CuraAPI.theme.fonts.getFamily("heading"),"--font-size":window.CuraAPI.theme.fonts.getSize(),"--font-weight-regular":this.weights.regular,"--font-weight-medium":this.weights.medium,"--font-weight-bold":this.weights.bold,"--font-weight-black":this.weights.black};this.setHostProperty("--font-size",window.CuraAPI.theme.fonts.getSize())};t.prototype.setColors=function(){var t=window.CuraAPI.theme.fonts.getColor();this.styles["--color-body"]=t||window.CuraAPI.theme.colors.getColor("neutral-darker");this.styles["--color-link"]=window.CuraAPI.theme.colors.getColor("primary-700")};t.prototype.setHostProperty=function(t,e){this.host.style.setProperty(t,e)};t.prototype.getHeadingTag=function(){var t={1:h("h1",{style:this.styles,class:this.getClasses()},h("slot",null)),2:h("h2",{style:this.styles,class:this.getClasses()},h("slot",null)),3:h("h3",{style:this.styles,class:this.getClasses()},h("slot",null)),4:h("h4",{style:this.styles,class:this.getClasses()},h("slot",null)),5:h("h5",{style:this.styles,class:this.getClasses()},h("slot",null)),6:h("h6",{style:this.styles,class:this.getClasses()},h("slot",null)),default:h("h1",{style:this.styles,class:this.getClasses()},h("slot",null))};return t["".concat(this.level)]||t["default"]};t.prototype.render=function(){return h(Host,null,this.getHeadingTag())};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CuraHeading.style=curaHeadingCss;var curaIconCss=":host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";var CuraIcon=function(){function t(t){registerInstance(this,t);this.name="";this.color="neutral-base";this.iconset="default";this.disabled=false;this.sizes={128:{size:128,stroke:5.25},72:{size:72,stroke:3.5},64:{size:64,stroke:3.25},48:{size:48,stroke:2.75},40:{size:40,stroke:2.5},32:{size:32,stroke:2.25},24:{size:24,stroke:2},20:{size:20,stroke:1.75},16:{size:16,stroke:1.5},default:{size:24,stroke:2}}}t.prototype.sizeHandler=function(t){var e=this;var s=function(t){return"".concat(e.sizes[t].stroke*(e.sizes.default.size/e.sizes[t].size),"px")};this.setHostProperty("--size",this.sizes["".concat(t)]?"".concat(this.sizes[t].size,"px"):"".concat(this.sizes.default.size,"px"));this.setHostProperty("--stroke",this.sizes["".concat(t)]?s(t):s("default"))};t.prototype.colorHandler=function(){this.setHostProperty("--color",window.CuraAPI.theme.colors.getColor(this.disabled?"neutral-light":this.color))};t.prototype.connectedCallback=function(){this.assetsPath=window.CuraAPI.localAssetsPath;this.sizeHandler(this.size);this.colorHandler()};t.prototype.setHostProperty=function(t,e){this.host.style.setProperty(t,e)};t.prototype.render=function(){return h(Host,null,h("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},h("use",{xlinkHref:"".concat(this.assetsPath,"/icons/iconset-").concat(this.iconset,".svg#").concat(this.name)})))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{size:["sizeHandler"],color:["colorHandler"],disabled:["colorHandler"]}},enumerable:false,configurable:true});return t}();CuraIcon.style=curaIconCss;var 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"];var curaIconsViewCss=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.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}";var CuraIconsView=function(){function t(t){var e=this;registerInstance(this,t);this.sizes=[16,20,24,32,40,48,64,72,128];this.colors=["primary","secondary","accent","info","warning","error","success","neutral"];this.selected="360";this.setSelected=function(t){e.selected=t}}t.prototype.render=function(){var t=this;return h(Host,null,h("div",{class:"iconDetail"},h("h4",null,this.selected),h("div",{class:"iconSizes"},this.sizes.map((function(e){return h("div",{class:"size"},h("cura-icon",{name:t.selected,size:e}),h("span",null,e))}))),h("div",{class:"iconSizes invert"},this.sizes.map((function(e){return h("div",{class:"size"},h("cura-icon",{name:t.selected,size:e,color:"neutral-white"}),h("span",null,e))}))),h("div",{class:"iconSizes"},this.colors.map((function(e){return h("div",{class:"size"},h("cura-icon",{name:t.selected,color:e}),h("span",null,e))})),h("div",{class:"size"},h("cura-icon",{name:this.selected,disabled:true}),h("span",null,"Disabled")))),h("div",{class:"icons"},iconsetdefaulticons.map((function(e){return h("div",{class:"icon",onClick:function(){return t.setSelected(e)}},h("cura-icon",{name:e}),h("span",null,e))}))))};return t}();CuraIconsView.style=curaIconsViewCss;var 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%}: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 screen and (min-width: 768px) and (max-width: 1366px){: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 screen and (min-width: 1367px){: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}";var CuraParagraph=function(){function t(t){registerInstance(this,t);this.size="regular"}t.prototype.connectedCallback=function(){this.weights=window.CuraAPI.theme.fonts.getWeights();this.setFontProperties();this.setColors()};t.prototype.setsizeClass=function(){var t={};t[this.size.toLowerCase()]=true;return t};t.prototype.setFontProperties=function(){this.styles={"--font-family":window.CuraAPI.theme.fonts.getFamily("body"),"--font-size":window.CuraAPI.theme.fonts.getSize(),"--font-weight-regular":this.weights.regular,"--font-weight-medium":this.weights.medium,"--font-weight-bold":this.weights.bold};this.setHostProperty("--font-size",window.CuraAPI.theme.fonts.getSize())};t.prototype.setColors=function(){var t=window.CuraAPI.theme.fonts.getColor();this.styles["--color-body"]=t||window.CuraAPI.theme.colors.getColor("neutral-darker");this.styles["--color-link"]=window.CuraAPI.theme.colors.getColor("primary-700")};t.prototype.setHostProperty=function(t,e){this.host.style.setProperty(t,e)};t.prototype.render=function(){return h(Host,null,h("p",{style:this.styles,class:this.setsizeClass()},h("slot",null)))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CuraParagraph.style=curaParagraphCss;export{CuraDisplay as cura_display,CuraHeading as cura_heading,CuraIcon as cura_icon,CuraIconsView as cura_icons_view,CuraParagraph as cura_paragraph};
|