@rededor/cura 0.3.4-alpha.0 → 0.3.4-alpha.1
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-a41d7f40.js → app-globals-0f70160b.js} +17 -40
- 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 +2 -4
- package/dist/cjs/cura.cjs.js +4 -19
- package/dist/cjs/{index-29633529.js → index-76f95c4b.js} +39 -502
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +4 -23
- package/dist/collection/api/cura-api.js +0 -1
- package/dist/collection/api/cura-api.type.js +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -1
- package/dist/collection/api/theme-presets/static.js +0 -1
- package/dist/collection/api/theme-presets/theme-default.js +5 -6
- package/dist/collection/api/theme-presets/theme-maternity.js +0 -8
- package/dist/collection/api/theme-presets/theme-oncology.js +12 -27
- package/dist/collection/api/theme-presets/theme-presets.js +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js +0 -1
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/cura-icon/cura-icon.css +2 -2
- package/dist/collection/components/cura-icon/cura-icon.js +5 -8
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -3
- package/dist/collection/components/cura-page-template/cura-page-template.css +24 -24
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -3
- package/dist/collection/components/text/cura-display/cura-display.css +14 -13
- package/dist/collection/components/text/cura-display/cura-display.js +17 -3
- package/dist/collection/components/text/cura-heading/cura-heading.css +15 -15
- package/dist/collection/components/text/cura-heading/cura-heading.js +21 -3
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +17 -16
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +13 -3
- package/dist/collection/index.js +0 -1
- package/dist/collection/rededor-cura-start.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/cura-display.js +20 -7
- package/dist/components/cura-heading.js +24 -7
- package/dist/components/cura-icon.js +0 -2
- package/dist/components/cura-icon2.js +8 -12
- package/dist/components/cura-icons-view.js +3 -6
- package/dist/components/cura-page-template.js +4 -7
- package/dist/components/cura-paragraph.js +16 -7
- package/dist/components/index.d.ts +9 -21
- package/dist/components/index.js +24 -67
- package/dist/cura/cura.esm.js +1 -2
- package/dist/cura/cura.js +1 -3
- package/dist/cura/index.esm.js +0 -2
- package/dist/cura/p-0b79032f.system.js +2 -0
- package/dist/cura/p-11002b56.system.js +1 -0
- package/dist/cura/p-32769783.system.js +1 -0
- package/dist/cura/p-50ea2036.system.js +1 -2
- package/dist/cura/{p-958c8695.system.entry.js → p-54c09404.system.entry.js} +1 -2
- package/dist/cura/p-57c5329e.js +2 -0
- package/dist/cura/p-5a6643e1.entry.js +1 -0
- package/dist/cura/p-a2ad5637.system.entry.js +1 -0
- package/dist/cura/p-aca36c98.js +1 -0
- package/dist/cura/p-bd91ecb9.system.entry.js +1 -0
- package/dist/cura/p-d69916ee.entry.js +1 -0
- package/dist/cura/p-f8a5b97d.entry.js +1 -0
- package/dist/dist/loader/index.d.ts +0 -9
- package/dist/esm/{app-globals-8ed931e6.js → app-globals-cb45bff3.js} +17 -40
- 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 +2 -4
- package/dist/esm/cura.js +4 -16
- package/dist/esm/{index-e11775ce.js → index-7e8c969d.js} +40 -499
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +4 -23
- package/dist/esm/polyfills/css-shim.js +1 -1
- 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 -2
- package/dist/esm-es5/cura.js +1 -2
- package/dist/esm-es5/index-7e8c969d.js +2 -0
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -7
- package/dist/types/api/theme-presets/theme-oncology.d.ts +5 -5
- package/dist/types/api/theme-presets/theme-presets.d.ts +5 -12
- package/dist/types/components.d.ts +0 -93
- package/dist/types/stencil-public-runtime.d.ts +15 -77
- package/package.json +7 -7
- package/dist/cjs/app-globals-a41d7f40.js.map +0 -1
- package/dist/cjs/css-shim-83cf0349.js +0 -8
- package/dist/cjs/css-shim-83cf0349.js.map +0 -1
- package/dist/cjs/cura-button_6.cjs.entry.js +0 -322
- package/dist/cjs/cura-button_6.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +0 -1
- package/dist/cjs/cura.cjs.js.map +0 -1
- package/dist/cjs/index-29633529.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/shadow-css-8baae635.js +0 -391
- package/dist/cjs/shadow-css-8baae635.js.map +0 -1
- package/dist/collection/api/cura-api.js.map +0 -1
- package/dist/collection/api/cura-api.type.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
- package/dist/collection/api/theme-presets/static.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.css +0 -70
- package/dist/collection/components/buttons/cura-button/cura-button.js +0 -255
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
- package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/rededor-cura-start.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/collection/utils/utils.spec.js +0 -16
- package/dist/collection/utils/utils.spec.js.map +0 -1
- package/dist/components/cura-button.d.ts +0 -11
- package/dist/components/cura-button.js +0 -97
- package/dist/components/cura-button.js.map +0 -1
- package/dist/components/cura-display.js.map +0 -1
- package/dist/components/cura-heading.js.map +0 -1
- package/dist/components/cura-icon.js.map +0 -1
- package/dist/components/cura-icon2.js.map +0 -1
- package/dist/components/cura-icons-view.js.map +0 -1
- package/dist/components/cura-page-template.js.map +0 -1
- package/dist/components/cura-paragraph.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/cura/cura.esm.js.map +0 -1
- package/dist/cura/index.esm.js.map +0 -1
- package/dist/cura/p-118112e5.system.js +0 -14
- package/dist/cura/p-118112e5.system.js.map +0 -1
- package/dist/cura/p-183305c3.js +0 -2
- package/dist/cura/p-183305c3.js.map +0 -1
- package/dist/cura/p-3f6aaefc.system.js +0 -2
- package/dist/cura/p-3f6aaefc.system.js.map +0 -1
- package/dist/cura/p-4c60d085.entry.js +0 -2
- package/dist/cura/p-4c60d085.entry.js.map +0 -1
- package/dist/cura/p-4fc49972.system.js +0 -2
- package/dist/cura/p-4fc49972.system.js.map +0 -1
- package/dist/cura/p-50ea2036.system.js.map +0 -1
- package/dist/cura/p-61953b75.system.js +0 -2
- package/dist/cura/p-61953b75.system.js.map +0 -1
- package/dist/cura/p-731abb13.entry.js +0 -2
- package/dist/cura/p-731abb13.entry.js.map +0 -1
- package/dist/cura/p-958c8695.system.entry.js.map +0 -1
- package/dist/cura/p-b5872ed0.system.entry.js +0 -2
- package/dist/cura/p-b5872ed0.system.entry.js.map +0 -1
- package/dist/cura/p-bac0b4ab.js +0 -2
- package/dist/cura/p-bac0b4ab.js.map +0 -1
- package/dist/cura/p-beab48cd.js +0 -13
- package/dist/cura/p-beab48cd.js.map +0 -1
- package/dist/cura/p-c30e14d5.system.js +0 -3
- package/dist/cura/p-c30e14d5.system.js.map +0 -1
- package/dist/cura/p-d5990392.js +0 -3
- package/dist/cura/p-d5990392.js.map +0 -1
- package/dist/esm/app-globals-8ed931e6.js.map +0 -1
- package/dist/esm/css-shim-d13f0738.js +0 -6
- package/dist/esm/css-shim-d13f0738.js.map +0 -1
- package/dist/esm/cura-button_6.entry.js +0 -313
- package/dist/esm/cura-button_6.entry.js.map +0 -1
- package/dist/esm/cura-icons-view.entry.js.map +0 -1
- package/dist/esm/cura.js.map +0 -1
- package/dist/esm/index-e11775ce.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/shadow-css-07b0c8c8.js +0 -389
- package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
- package/dist/esm-es5/app-globals-8ed931e6.js +0 -2
- package/dist/esm-es5/app-globals-8ed931e6.js.map +0 -1
- package/dist/esm-es5/css-shim-d13f0738.js +0 -2
- package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
- package/dist/esm-es5/cura-button_6.entry.js +0 -2
- package/dist/esm-es5/cura-button_6.entry.js.map +0 -1
- package/dist/esm-es5/cura-icons-view.entry.js.map +0 -1
- package/dist/esm-es5/cura.js.map +0 -1
- package/dist/esm-es5/index-e11775ce.js +0 -3
- package/dist/esm-es5/index-e11775ce.js.map +0 -1
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
- package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
- package/dist/loader/index.d.ts +0 -12
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -49
package/dist/cjs/index.cjs.js
CHANGED
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,29 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const appGlobals = require('./app-globals-
|
|
5
|
+
const index = require('./index-76f95c4b.js');
|
|
6
|
+
const appGlobals = require('./app-globals-0f70160b.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Esm
|
|
9
|
+
Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
const patchEsm = () => {
|
|
12
|
-
// NOTE!! This fn cannot use async/await!
|
|
13
|
-
// TODO(STENCIL-659): Remove code implementing the CSS variable shim
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
if (!(index.CSS && index.CSS.supports && index.CSS.supports('color', 'var(--c)'))) {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-83cf0349.js'); }).then(() => {
|
|
18
|
-
if ((index.plt.$cssShim$ = index.win.__cssshim)) {
|
|
19
|
-
// TODO(STENCIL-659): Remove code implementing the CSS variable shim
|
|
20
|
-
return index.plt.$cssShim$.i();
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
// for better minification
|
|
24
|
-
return 0;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
12
|
return index.promiseResolve();
|
|
29
13
|
};
|
|
30
14
|
|
|
@@ -32,11 +16,8 @@ const defineCustomElements = (win, options) => {
|
|
|
32
16
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
33
17
|
return patchEsm().then(() => {
|
|
34
18
|
appGlobals.globalScripts();
|
|
35
|
-
return index.bootstrapLazy([["cura-
|
|
19
|
+
return index.bootstrapLazy([["cura-icon.cjs",[[0,"cura-icon",{"name":[513],"color":[1],"size":[8],"iconset":[513],"disabled":[4]}]]],["cura-icons-view.cjs",[[0,"cura-icons-view",{"selected":[32]}]]],["cura-display_4.cjs",[[4,"cura-display",{"level":[514],"size":[513],"inverted":[516],"spotColor":[513,"spot-color"]}],[4,"cura-heading",{"level":[514],"size":[513],"weight":[513],"inverted":[516],"spotColor":[513,"spot-color"]}],[4,"cura-page-template",{"contentwidth":[513]}],[4,"cura-paragraph",{"size":[513],"inverted":[516],"spotColor":[513,"spot-color"]}]]]], options);
|
|
36
20
|
});
|
|
37
21
|
};
|
|
38
22
|
|
|
39
|
-
exports.setNonce = index.setNonce;
|
|
40
23
|
exports.defineCustomElements = defineCustomElements;
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=loader.cjs.js.map
|
|
@@ -19,11 +19,11 @@ export const ThemeDefault = {
|
|
|
19
19
|
'900': '#292017'
|
|
20
20
|
},
|
|
21
21
|
accent: {
|
|
22
|
-
'100': '#
|
|
23
|
-
'300': '#
|
|
24
|
-
'500': '#
|
|
25
|
-
'700': '#
|
|
26
|
-
'900': '#
|
|
22
|
+
'100': '#F9E8D5',
|
|
23
|
+
'300': '#E4A04F',
|
|
24
|
+
'500': '#DF8D2C',
|
|
25
|
+
'700': '#955E1D',
|
|
26
|
+
'900': '#2D1C09'
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
/* Spacing */
|
|
@@ -47,4 +47,3 @@ export const ThemeDefault = {
|
|
|
47
47
|
},
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=theme-default.js.map
|
|
@@ -19,14 +19,6 @@ export const ThemeMaternity = Object.assign(Object.assign({}, ThemeDefault), {
|
|
|
19
19
|
'500': '#189AB4',
|
|
20
20
|
'700': '#001C58',
|
|
21
21
|
'900': '#430E31'
|
|
22
|
-
},
|
|
23
|
-
accent: {
|
|
24
|
-
'100': '#FCEFF6',
|
|
25
|
-
'300': '#FFBFE5',
|
|
26
|
-
'500': '#CD4D9A',
|
|
27
|
-
'700': '#99126C',
|
|
28
|
-
'900': '#00133B'
|
|
29
22
|
}
|
|
30
23
|
}
|
|
31
24
|
});
|
|
32
|
-
//# sourceMappingURL=theme-maternity.js.map
|
|
@@ -7,11 +7,11 @@ export const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
|
|
|
7
7
|
/* Colors */
|
|
8
8
|
color: {
|
|
9
9
|
primary: {
|
|
10
|
-
'100': '#
|
|
11
|
-
'300': '#
|
|
12
|
-
'500': '#
|
|
13
|
-
'700': '#
|
|
14
|
-
'900': '#
|
|
10
|
+
'100': '#99CFFF',
|
|
11
|
+
'300': '#47A9FF',
|
|
12
|
+
'500': '#0083F5',
|
|
13
|
+
'700': '#006DCC',
|
|
14
|
+
'900': '#0058A4',
|
|
15
15
|
},
|
|
16
16
|
secondary: {
|
|
17
17
|
'100': '#CDD7E3',
|
|
@@ -20,34 +20,19 @@ export const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
|
|
|
20
20
|
'700': '#365E8F',
|
|
21
21
|
'900': '#043673',
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
'100': '#
|
|
25
|
-
'300': '#
|
|
26
|
-
'500': '#
|
|
27
|
-
'700': '#
|
|
28
|
-
'900': '#
|
|
23
|
+
aux1: {
|
|
24
|
+
'100': '#AABEE1',
|
|
25
|
+
'300': '#557EC4',
|
|
26
|
+
'500': '#003DA6',
|
|
27
|
+
'700': '#00296F',
|
|
28
|
+
'900': '#000C21',
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
aux2: {
|
|
31
31
|
'100': '#DAF2EF',
|
|
32
32
|
'300': '#84D4CA',
|
|
33
33
|
'500': '#47BFB0',
|
|
34
34
|
'700': '#2F7F75',
|
|
35
35
|
'900': '#0E2623',
|
|
36
36
|
},
|
|
37
|
-
}, font: {
|
|
38
|
-
size: '14px',
|
|
39
|
-
color: '#4A4A4A',
|
|
40
|
-
body: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
|
|
41
|
-
heading: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
|
|
42
|
-
display: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
|
|
43
|
-
weights: {
|
|
44
|
-
thin: 100,
|
|
45
|
-
light: 300,
|
|
46
|
-
regular: 400,
|
|
47
|
-
medium: 500,
|
|
48
|
-
bold: 700,
|
|
49
|
-
black: 900
|
|
50
|
-
},
|
|
51
37
|
}
|
|
52
38
|
});
|
|
53
|
-
//# sourceMappingURL=theme-oncology.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export default ["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"];
|
|
2
|
-
//# sourceMappingURL=iconset-default-list.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"./components/buttons/cura-button/cura-button.js",
|
|
4
3
|
"./components/cura-icon/cura-icon.js",
|
|
5
4
|
"./components/cura-icons-view/cura-icons-view.js",
|
|
6
5
|
"./components/cura-page-template/cura-page-template.js",
|
|
@@ -10,8 +9,8 @@
|
|
|
10
9
|
],
|
|
11
10
|
"compiler": {
|
|
12
11
|
"name": "@stencil/core",
|
|
13
|
-
"version": "
|
|
14
|
-
"typescriptVersion": "
|
|
12
|
+
"version": "2.18.1",
|
|
13
|
+
"typescriptVersion": "4.7.4"
|
|
15
14
|
},
|
|
16
15
|
"collections": [],
|
|
17
16
|
"bundles": [],
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class CuraIcon {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.name = '';
|
|
5
|
+
this.color = 'neutral-base';
|
|
6
|
+
this.iconset = 'default';
|
|
7
|
+
this.disabled = false;
|
|
4
8
|
this.sizes = {
|
|
5
9
|
"128": { size: 128, stroke: 5.25 },
|
|
6
10
|
"72": { size: 72, stroke: 3.5 },
|
|
@@ -13,11 +17,6 @@ export class CuraIcon {
|
|
|
13
17
|
"16": { size: 16, stroke: 1.5 },
|
|
14
18
|
"default": { size: 24, stroke: 2 }
|
|
15
19
|
};
|
|
16
|
-
this.name = '';
|
|
17
|
-
this.color = 'neutral-base';
|
|
18
|
-
this.size = undefined;
|
|
19
|
-
this.iconset = 'default';
|
|
20
|
-
this.disabled = false;
|
|
21
20
|
}
|
|
22
21
|
sizeHandler(size) {
|
|
23
22
|
const scaledStroke = (iconSize) => {
|
|
@@ -38,10 +37,9 @@ export class CuraIcon {
|
|
|
38
37
|
this.host.style.setProperty(prop, value);
|
|
39
38
|
}
|
|
40
39
|
render() {
|
|
41
|
-
return (h(Host,
|
|
40
|
+
return (h(Host, { class: 'cura-icon' }, 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}` }))));
|
|
42
41
|
}
|
|
43
42
|
static get is() { return "cura-icon"; }
|
|
44
|
-
static get encapsulation() { return "shadow"; }
|
|
45
43
|
static get originalStyleUrls() {
|
|
46
44
|
return {
|
|
47
45
|
"$": ["cura-icon.scss"]
|
|
@@ -159,4 +157,3 @@ export class CuraIcon {
|
|
|
159
157
|
}];
|
|
160
158
|
}
|
|
161
159
|
}
|
|
162
|
-
//# sourceMappingURL=cura-icon.js.map
|
|
@@ -4,16 +4,15 @@ export class CuraIconsView {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];
|
|
6
6
|
this.colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];
|
|
7
|
+
this.selected = '360';
|
|
7
8
|
this.setSelected = (icon) => {
|
|
8
9
|
this.selected = icon;
|
|
9
10
|
};
|
|
10
|
-
this.selected = '360';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
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))))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "cura-icons-view"; }
|
|
16
|
-
static get encapsulation() { return "shadow"; }
|
|
17
16
|
static get originalStyleUrls() {
|
|
18
17
|
return {
|
|
19
18
|
"$": ["cura-icons-view.scss"]
|
|
@@ -30,4 +29,3 @@ export class CuraIconsView {
|
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
|
-
//# sourceMappingURL=cura-icons-view.js.map
|
|
@@ -19,86 +19,86 @@
|
|
|
19
19
|
* Responsive media for xlarge only.
|
|
20
20
|
* Use: @include xlarge-only() { ... }
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
.cura-template {
|
|
23
23
|
display: block;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
.cura-template .grid-template {
|
|
26
26
|
display: grid;
|
|
27
27
|
grid-template-rows: auto;
|
|
28
28
|
grid-template-columns: auto;
|
|
29
29
|
grid-template-areas: "sub-header" "header" "pre-content" "content-container" "post-body" "footer" "sub-footer";
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
.cura-template .grid-template #sub-header {
|
|
32
32
|
grid-area: sub-header;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
.cura-template .grid-template #header {
|
|
35
35
|
grid-area: header;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
.cura-template .grid-template #pre-content {
|
|
38
38
|
grid-area: pre-content;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
.cura-template .grid-template #content-container {
|
|
41
41
|
grid-area: content-container;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
.cura-template .grid-template #post-body {
|
|
44
44
|
grid-area: post-body;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
.cura-template .grid-template #footer {
|
|
47
47
|
grid-area: footer;
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
.cura-template .grid-template #sub-footer {
|
|
50
50
|
grid-area: sub-footer;
|
|
51
51
|
}
|
|
52
52
|
@media (max-width: 360px) {
|
|
53
|
-
|
|
53
|
+
.cura-template .grid-template {
|
|
54
54
|
padding: 0px;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
@media (min-width: 768px) and (max-width: 1365px) {
|
|
58
|
-
|
|
58
|
+
.cura-template .grid-template {
|
|
59
59
|
padding: 0px;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
@media (min-width: 1366px) and (max-width: 1919px) {
|
|
63
|
-
|
|
63
|
+
.cura-template .grid-template {
|
|
64
64
|
padding: 0px;
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
.cura-template .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
|
|
67
67
|
margin-right: calc(var(--spacing) * 5px);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
.cura-template .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
|
|
70
70
|
margin-left: calc(var(--spacing) * 5px);
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
.cura-template .grid-template #content-container {
|
|
73
73
|
display: flex;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
.cura-template .grid-template #content-container #content {
|
|
76
76
|
flex-grow: 1;
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
.cura-template .grid-template #content-container #sidebar-left, .cura-template .grid-template #content-container #sidebar-right {
|
|
79
79
|
max-width: 20%;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
@media (min-width: 1920px) {
|
|
83
|
-
|
|
83
|
+
.cura-template .grid-template {
|
|
84
84
|
padding: 0px;
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
.cura-template .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
|
|
87
87
|
margin-right: calc(var(--spacing) * 7px);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
.cura-template .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
|
|
90
90
|
margin-left: calc(var(--spacing) * 7px);
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
.cura-template .grid-template #content-container {
|
|
93
93
|
display: flex;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
.cura-template .grid-template #content-container #content {
|
|
96
96
|
flex-grow: 1;
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
.cura-template .grid-template #content-container #sidebar-left, .cura-template .grid-template #content-container #sidebar-right {
|
|
99
99
|
max-width: 20%;
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
.cura-template .grid-template #content-container.centered {
|
|
102
102
|
max-width: 1920px;
|
|
103
103
|
justify-self: center;
|
|
104
104
|
}
|
|
@@ -14,10 +14,9 @@ export class CuraPageTemplate {
|
|
|
14
14
|
return classes;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host,
|
|
17
|
+
return (h(Host, { class: "cura-template" }, 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' })))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "cura-page-template"; }
|
|
20
|
-
static get encapsulation() { return "shadow"; }
|
|
21
20
|
static get originalStyleUrls() {
|
|
22
21
|
return {
|
|
23
22
|
"$": ["cura-page-template.scss"]
|
|
@@ -52,4 +51,3 @@ export class CuraPageTemplate {
|
|
|
52
51
|
}
|
|
53
52
|
static get elementRef() { return "host"; }
|
|
54
53
|
}
|
|
55
|
-
//# sourceMappingURL=cura-page-template.js.map
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
* Responsive media for xlarge only.
|
|
20
20
|
* Use: @include xlarge-only() { ... }
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
.cura-display {
|
|
23
23
|
display: block;
|
|
24
24
|
font-size: var(--font-size);
|
|
25
25
|
text-transform: uppercase;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
.cura-display h1, .cura-display h2, .cura-display h3, .cura-display h4, .cura-display h5, .cura-display h6 {
|
|
28
28
|
font-family: var(--font-family);
|
|
29
29
|
font-size: 4.285em;
|
|
30
30
|
font-weight: var(--font-weight-black);
|
|
@@ -34,49 +34,50 @@
|
|
|
34
34
|
margin-block-start: var(--block-margin);
|
|
35
35
|
margin-block-end: var(--block-margin);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
.cura-display h1.large, .cura-display h2.large, .cura-display h3.large, .cura-display h4.large, .cura-display h5.large, .cura-display h6.large {
|
|
38
38
|
font-size: 6.21em;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
.cura-display h1.small, .cura-display h2.small, .cura-display h3.small, .cura-display h4.small, .cura-display h5.small, .cura-display h6.small {
|
|
41
41
|
font-size: 3em;
|
|
42
42
|
font-weight: var(--font-weight-bold);
|
|
43
43
|
}
|
|
44
44
|
@media (min-width: 768px) and (max-width: 1365px) {
|
|
45
|
-
|
|
45
|
+
.cura-display h1, .cura-display h2, .cura-display h3, .cura-display h4, .cura-display h5, .cura-display h6 {
|
|
46
46
|
font-size: 4.92em;
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
.cura-display h1.large, .cura-display h2.large, .cura-display h3.large, .cura-display h4.large, .cura-display h5.large, .cura-display h6.large {
|
|
49
49
|
font-size: 7.07em;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
.cura-display h1.small, .cura-display h2.small, .cura-display h3.small, .cura-display h4.small, .cura-display h5.small, .cura-display h6.small {
|
|
52
52
|
font-size: 3.428em;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
@media (min-width: 1366px) {
|
|
56
|
-
|
|
56
|
+
.cura-display h1, .cura-display h2, .cura-display h3, .cura-display h4, .cura-display h5, .cura-display h6 {
|
|
57
57
|
font-size: 6.14em;
|
|
58
58
|
line-height: 125%;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
.cura-display h1.large, .cura-display h2.large, .cura-display h3.large, .cura-display h4.large, .cura-display h5.large, .cura-display h6.large {
|
|
61
61
|
font-size: 8.857em;
|
|
62
62
|
letter-spacing: -6%;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
.cura-display h1.small, .cura-display h2.small, .cura-display h3.small, .cura-display h4.small, .cura-display h5.small, .cura-display h6.small {
|
|
65
65
|
font-size: 4.285em;
|
|
66
66
|
letter-spacing: -2%;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
.cura-display b,
|
|
70
|
+
.cura-display strong {
|
|
70
71
|
font-weight: var(--font-weight-bold);
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
+
.cura-display a {
|
|
73
74
|
font-weight: var(--font-weight-bold);
|
|
74
75
|
color: var(--color-link);
|
|
75
76
|
text-decoration: none;
|
|
76
77
|
text-underline-offset: 10%;
|
|
77
78
|
cursor: pointer;
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
+
.cura-display abbr {
|
|
80
81
|
color: var(--color-link);
|
|
81
82
|
text-decoration: underline dashed 1px var(--color-link);
|
|
82
83
|
text-underline-offset: 10%;
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class CuraDisplay {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Heading level for semantics.
|
|
6
|
+
* Values: 1(default)-6.
|
|
7
|
+
*/
|
|
4
8
|
this.level = 1;
|
|
9
|
+
/**
|
|
10
|
+
* Heading style size.
|
|
11
|
+
* Values: small | regular(default) | large.
|
|
12
|
+
*/
|
|
5
13
|
this.size = 'regular';
|
|
14
|
+
/**
|
|
15
|
+
* Apply light color to text in dark background.
|
|
16
|
+
* Values: boolean.
|
|
17
|
+
*/
|
|
6
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
|
+
*/
|
|
7
23
|
this.spotColor = 'primary';
|
|
8
24
|
}
|
|
9
25
|
connectedCallback() {
|
|
@@ -51,10 +67,9 @@ export class CuraDisplay {
|
|
|
51
67
|
return tags[`${this.level}`] || tags['default'];
|
|
52
68
|
}
|
|
53
69
|
render() {
|
|
54
|
-
return (h(Host,
|
|
70
|
+
return (h(Host, { class: "cura-display" }, this.getHeadingTag()));
|
|
55
71
|
}
|
|
56
72
|
static get is() { return "cura-display"; }
|
|
57
|
-
static get encapsulation() { return "shadow"; }
|
|
58
73
|
static get originalStyleUrls() {
|
|
59
74
|
return {
|
|
60
75
|
"$": ["cura-display.scss"]
|
|
@@ -143,4 +158,3 @@ export class CuraDisplay {
|
|
|
143
158
|
}
|
|
144
159
|
static get elementRef() { return "host"; }
|
|
145
160
|
}
|
|
146
|
-
//# sourceMappingURL=cura-display.js.map
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
* Responsive media for xlarge only.
|
|
20
20
|
* Use: @include xlarge-only() { ... }
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
.cura-heading {
|
|
23
23
|
display: block;
|
|
24
24
|
font-size: var(--font-size);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
.cura-heading h1, .cura-heading h2, .cura-heading h3, .cura-heading h4, .cura-heading h5, .cura-heading h6 {
|
|
27
27
|
font-family: var(--font-family);
|
|
28
28
|
font-size: 1.71em;
|
|
29
29
|
font-weight: var(--font-weight-regular);
|
|
@@ -33,58 +33,58 @@
|
|
|
33
33
|
margin-block-start: var(--block-margin);
|
|
34
34
|
margin-block-end: var(--block-margin);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
.cura-heading h1.bold-weight, .cura-heading h2.bold-weight, .cura-heading h3.bold-weight, .cura-heading h4.bold-weight, .cura-heading h5.bold-weight, .cura-heading h6.bold-weight {
|
|
37
37
|
font-weight: var(--font-weight-medium);
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
.cura-heading h1.large, .cura-heading h2.large, .cura-heading h3.large, .cura-heading h4.large, .cura-heading h5.large, .cura-heading h6.large {
|
|
40
40
|
font-size: 2.07em;
|
|
41
41
|
letter-spacing: -2%;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
.cura-heading h1.small, .cura-heading h2.small, .cura-heading h3.small, .cura-heading h4.small, .cura-heading h5.small, .cura-heading h6.small {
|
|
44
44
|
font-size: 1.214em;
|
|
45
45
|
line-height: 150%;
|
|
46
46
|
letter-spacing: 0%;
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
.cura-heading h1.small.bold-weight, .cura-heading h2.small.bold-weight, .cura-heading h3.small.bold-weight, .cura-heading h4.small.bold-weight, .cura-heading h5.small.bold-weight, .cura-heading h6.small.bold-weight {
|
|
49
49
|
font-weight: var(--font-weight-bold);
|
|
50
50
|
}
|
|
51
51
|
@media (min-width: 768px) and (max-width: 1365px) {
|
|
52
|
-
|
|
52
|
+
.cura-heading h1, .cura-heading h2, .cura-heading h3, .cura-heading h4, .cura-heading h5, .cura-heading h6 {
|
|
53
53
|
font-size: 2em;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
.cura-heading h1.large, .cura-heading h2.large, .cura-heading h3.large, .cura-heading h4.large, .cura-heading h5.large, .cura-heading h6.large {
|
|
56
56
|
font-size: 2.357em;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
.cura-heading h1.small, .cura-heading h2.small, .cura-heading h3.small, .cura-heading h4.small, .cura-heading h5.small, .cura-heading h6.small {
|
|
59
59
|
font-size: 1.357em;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
@media (min-width: 1366px) {
|
|
63
|
-
|
|
63
|
+
.cura-heading h1, .cura-heading h2, .cura-heading h3, .cura-heading h4, .cura-heading h5, .cura-heading h6 {
|
|
64
64
|
font-size: 2.5em;
|
|
65
65
|
line-height: 135%;
|
|
66
66
|
letter-spacing: -2%;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
.cura-heading h1.large, .cura-heading h2.large, .cura-heading h3.large, .cura-heading h4.large, .cura-heading h5.large, .cura-heading h6.large {
|
|
69
69
|
font-size: 2.92em;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
.cura-heading h1.small, .cura-heading h2.small, .cura-heading h3.small, .cura-heading h4.small, .cura-heading h5.small, .cura-heading h6.small {
|
|
72
72
|
font-size: 1.71em;
|
|
73
73
|
line-height: 160%;
|
|
74
74
|
letter-spacing: 0%;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
.cura-heading b, .cura-heading strong {
|
|
78
78
|
font-weight: var(--font-weight-bold);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
.cura-heading a {
|
|
81
81
|
font-weight: var(--font-weight-bold);
|
|
82
82
|
color: var(--color-link);
|
|
83
83
|
text-decoration: none;
|
|
84
84
|
text-underline-offset: 10%;
|
|
85
85
|
cursor: pointer;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
.cura-heading abbr {
|
|
88
88
|
color: var(--color-link);
|
|
89
89
|
text-decoration: underline dashed 1px var(--color-link);
|
|
90
90
|
text-underline-offset: 10%;
|