@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.
Files changed (188) hide show
  1. package/dist/cjs/{app-globals-a41d7f40.js → app-globals-0f70160b.js} +17 -40
  2. package/dist/cjs/cura-display_4.cjs.entry.js +257 -0
  3. package/dist/cjs/cura-icon.cjs.entry.js +59 -0
  4. package/dist/cjs/cura-icons-view.cjs.entry.js +2 -4
  5. package/dist/cjs/cura.cjs.js +4 -19
  6. package/dist/cjs/{index-29633529.js → index-76f95c4b.js} +39 -502
  7. package/dist/cjs/index.cjs.js +0 -2
  8. package/dist/cjs/loader.cjs.js +4 -23
  9. package/dist/collection/api/cura-api.js +0 -1
  10. package/dist/collection/api/cura-api.type.js +0 -1
  11. package/dist/collection/api/modules/cura-theme-colors-module.js +0 -1
  12. package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -1
  13. package/dist/collection/api/modules/cura-theme-module.js +0 -1
  14. package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -1
  15. package/dist/collection/api/theme-presets/static.js +0 -1
  16. package/dist/collection/api/theme-presets/theme-default.js +5 -6
  17. package/dist/collection/api/theme-presets/theme-maternity.js +0 -8
  18. package/dist/collection/api/theme-presets/theme-oncology.js +12 -27
  19. package/dist/collection/api/theme-presets/theme-presets.js +0 -1
  20. package/dist/collection/assets/icons/iconset-default-list.js +0 -1
  21. package/dist/collection/collection-manifest.json +2 -3
  22. package/dist/collection/components/cura-icon/cura-icon.css +2 -2
  23. package/dist/collection/components/cura-icon/cura-icon.js +5 -8
  24. package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -3
  25. package/dist/collection/components/cura-page-template/cura-page-template.css +24 -24
  26. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -3
  27. package/dist/collection/components/text/cura-display/cura-display.css +14 -13
  28. package/dist/collection/components/text/cura-display/cura-display.js +17 -3
  29. package/dist/collection/components/text/cura-heading/cura-heading.css +15 -15
  30. package/dist/collection/components/text/cura-heading/cura-heading.js +21 -3
  31. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +17 -16
  32. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +13 -3
  33. package/dist/collection/index.js +0 -1
  34. package/dist/collection/rededor-cura-start.js +0 -1
  35. package/dist/collection/utils/utils.js +0 -1
  36. package/dist/components/cura-display.js +20 -7
  37. package/dist/components/cura-heading.js +24 -7
  38. package/dist/components/cura-icon.js +0 -2
  39. package/dist/components/cura-icon2.js +8 -12
  40. package/dist/components/cura-icons-view.js +3 -6
  41. package/dist/components/cura-page-template.js +4 -7
  42. package/dist/components/cura-paragraph.js +16 -7
  43. package/dist/components/index.d.ts +9 -21
  44. package/dist/components/index.js +24 -67
  45. package/dist/cura/cura.esm.js +1 -2
  46. package/dist/cura/cura.js +1 -3
  47. package/dist/cura/index.esm.js +0 -2
  48. package/dist/cura/p-0b79032f.system.js +2 -0
  49. package/dist/cura/p-11002b56.system.js +1 -0
  50. package/dist/cura/p-32769783.system.js +1 -0
  51. package/dist/cura/p-50ea2036.system.js +1 -2
  52. package/dist/cura/{p-958c8695.system.entry.js → p-54c09404.system.entry.js} +1 -2
  53. package/dist/cura/p-57c5329e.js +2 -0
  54. package/dist/cura/p-5a6643e1.entry.js +1 -0
  55. package/dist/cura/p-a2ad5637.system.entry.js +1 -0
  56. package/dist/cura/p-aca36c98.js +1 -0
  57. package/dist/cura/p-bd91ecb9.system.entry.js +1 -0
  58. package/dist/cura/p-d69916ee.entry.js +1 -0
  59. package/dist/cura/p-f8a5b97d.entry.js +1 -0
  60. package/dist/dist/loader/index.d.ts +0 -9
  61. package/dist/esm/{app-globals-8ed931e6.js → app-globals-cb45bff3.js} +17 -40
  62. package/dist/esm/cura-display_4.entry.js +250 -0
  63. package/dist/esm/cura-icon.entry.js +55 -0
  64. package/dist/esm/cura-icons-view.entry.js +2 -4
  65. package/dist/esm/cura.js +4 -16
  66. package/dist/esm/{index-e11775ce.js → index-7e8c969d.js} +40 -499
  67. package/dist/esm/index.js +0 -2
  68. package/dist/esm/loader.js +4 -23
  69. package/dist/esm/polyfills/css-shim.js +1 -1
  70. package/dist/esm-es5/app-globals-cb45bff3.js +1 -0
  71. package/dist/esm-es5/cura-display_4.entry.js +1 -0
  72. package/dist/esm-es5/cura-icon.entry.js +1 -0
  73. package/dist/esm-es5/cura-icons-view.entry.js +1 -2
  74. package/dist/esm-es5/cura.js +1 -2
  75. package/dist/esm-es5/index-7e8c969d.js +2 -0
  76. package/dist/esm-es5/index.js +0 -2
  77. package/dist/esm-es5/loader.js +1 -2
  78. package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -7
  79. package/dist/types/api/theme-presets/theme-oncology.d.ts +5 -5
  80. package/dist/types/api/theme-presets/theme-presets.d.ts +5 -12
  81. package/dist/types/components.d.ts +0 -93
  82. package/dist/types/stencil-public-runtime.d.ts +15 -77
  83. package/package.json +7 -7
  84. package/dist/cjs/app-globals-a41d7f40.js.map +0 -1
  85. package/dist/cjs/css-shim-83cf0349.js +0 -8
  86. package/dist/cjs/css-shim-83cf0349.js.map +0 -1
  87. package/dist/cjs/cura-button_6.cjs.entry.js +0 -322
  88. package/dist/cjs/cura-button_6.cjs.entry.js.map +0 -1
  89. package/dist/cjs/cura-icons-view.cjs.entry.js.map +0 -1
  90. package/dist/cjs/cura.cjs.js.map +0 -1
  91. package/dist/cjs/index-29633529.js.map +0 -1
  92. package/dist/cjs/index.cjs.js.map +0 -1
  93. package/dist/cjs/loader.cjs.js.map +0 -1
  94. package/dist/cjs/shadow-css-8baae635.js +0 -391
  95. package/dist/cjs/shadow-css-8baae635.js.map +0 -1
  96. package/dist/collection/api/cura-api.js.map +0 -1
  97. package/dist/collection/api/cura-api.type.js.map +0 -1
  98. package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
  99. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
  100. package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
  101. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
  102. package/dist/collection/api/theme-presets/static.js.map +0 -1
  103. package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
  104. package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
  105. package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
  106. package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
  107. package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
  108. package/dist/collection/components/buttons/cura-button/cura-button.css +0 -70
  109. package/dist/collection/components/buttons/cura-button/cura-button.js +0 -255
  110. package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
  111. package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
  112. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
  113. package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
  114. package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
  115. package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
  116. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
  117. package/dist/collection/index.js.map +0 -1
  118. package/dist/collection/rededor-cura-start.js.map +0 -1
  119. package/dist/collection/utils/utils.js.map +0 -1
  120. package/dist/collection/utils/utils.spec.js +0 -16
  121. package/dist/collection/utils/utils.spec.js.map +0 -1
  122. package/dist/components/cura-button.d.ts +0 -11
  123. package/dist/components/cura-button.js +0 -97
  124. package/dist/components/cura-button.js.map +0 -1
  125. package/dist/components/cura-display.js.map +0 -1
  126. package/dist/components/cura-heading.js.map +0 -1
  127. package/dist/components/cura-icon.js.map +0 -1
  128. package/dist/components/cura-icon2.js.map +0 -1
  129. package/dist/components/cura-icons-view.js.map +0 -1
  130. package/dist/components/cura-page-template.js.map +0 -1
  131. package/dist/components/cura-paragraph.js.map +0 -1
  132. package/dist/components/index.js.map +0 -1
  133. package/dist/cura/cura.esm.js.map +0 -1
  134. package/dist/cura/index.esm.js.map +0 -1
  135. package/dist/cura/p-118112e5.system.js +0 -14
  136. package/dist/cura/p-118112e5.system.js.map +0 -1
  137. package/dist/cura/p-183305c3.js +0 -2
  138. package/dist/cura/p-183305c3.js.map +0 -1
  139. package/dist/cura/p-3f6aaefc.system.js +0 -2
  140. package/dist/cura/p-3f6aaefc.system.js.map +0 -1
  141. package/dist/cura/p-4c60d085.entry.js +0 -2
  142. package/dist/cura/p-4c60d085.entry.js.map +0 -1
  143. package/dist/cura/p-4fc49972.system.js +0 -2
  144. package/dist/cura/p-4fc49972.system.js.map +0 -1
  145. package/dist/cura/p-50ea2036.system.js.map +0 -1
  146. package/dist/cura/p-61953b75.system.js +0 -2
  147. package/dist/cura/p-61953b75.system.js.map +0 -1
  148. package/dist/cura/p-731abb13.entry.js +0 -2
  149. package/dist/cura/p-731abb13.entry.js.map +0 -1
  150. package/dist/cura/p-958c8695.system.entry.js.map +0 -1
  151. package/dist/cura/p-b5872ed0.system.entry.js +0 -2
  152. package/dist/cura/p-b5872ed0.system.entry.js.map +0 -1
  153. package/dist/cura/p-bac0b4ab.js +0 -2
  154. package/dist/cura/p-bac0b4ab.js.map +0 -1
  155. package/dist/cura/p-beab48cd.js +0 -13
  156. package/dist/cura/p-beab48cd.js.map +0 -1
  157. package/dist/cura/p-c30e14d5.system.js +0 -3
  158. package/dist/cura/p-c30e14d5.system.js.map +0 -1
  159. package/dist/cura/p-d5990392.js +0 -3
  160. package/dist/cura/p-d5990392.js.map +0 -1
  161. package/dist/esm/app-globals-8ed931e6.js.map +0 -1
  162. package/dist/esm/css-shim-d13f0738.js +0 -6
  163. package/dist/esm/css-shim-d13f0738.js.map +0 -1
  164. package/dist/esm/cura-button_6.entry.js +0 -313
  165. package/dist/esm/cura-button_6.entry.js.map +0 -1
  166. package/dist/esm/cura-icons-view.entry.js.map +0 -1
  167. package/dist/esm/cura.js.map +0 -1
  168. package/dist/esm/index-e11775ce.js.map +0 -1
  169. package/dist/esm/index.js.map +0 -1
  170. package/dist/esm/loader.js.map +0 -1
  171. package/dist/esm/shadow-css-07b0c8c8.js +0 -389
  172. package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
  173. package/dist/esm-es5/app-globals-8ed931e6.js +0 -2
  174. package/dist/esm-es5/app-globals-8ed931e6.js.map +0 -1
  175. package/dist/esm-es5/css-shim-d13f0738.js +0 -2
  176. package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
  177. package/dist/esm-es5/cura-button_6.entry.js +0 -2
  178. package/dist/esm-es5/cura-button_6.entry.js.map +0 -1
  179. package/dist/esm-es5/cura-icons-view.entry.js.map +0 -1
  180. package/dist/esm-es5/cura.js.map +0 -1
  181. package/dist/esm-es5/index-e11775ce.js +0 -3
  182. package/dist/esm-es5/index-e11775ce.js.map +0 -1
  183. package/dist/esm-es5/index.js.map +0 -1
  184. package/dist/esm-es5/loader.js.map +0 -1
  185. package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
  186. package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
  187. package/dist/loader/index.d.ts +0 -12
  188. package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -49
@@ -1,4 +1,2 @@
1
1
  'use strict';
2
2
 
3
-
4
- //# sourceMappingURL=index.cjs.js.map
@@ -2,29 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-29633529.js');
6
- const appGlobals = require('./app-globals-a41d7f40.js');
5
+ const index = require('./index-76f95c4b.js');
6
+ const appGlobals = require('./app-globals-0f70160b.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Esm v3.3.0 | MIT Licensed | https://stenciljs.com
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-button_6.cjs",[[1,"cura-button",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"href":[513],"target":[1],"color":[1],"styles":[32]}],[1,"cura-display",{"level":[514],"size":[513],"inverted":[516],"spotColor":[513,"spot-color"]}],[1,"cura-heading",{"level":[514],"size":[513],"weight":[513],"inverted":[516],"spotColor":[513,"spot-color"]}],[1,"cura-page-template",{"contentwidth":[513]}],[1,"cura-paragraph",{"size":[513],"inverted":[516],"spotColor":[513,"spot-color"]}],[1,"cura-icon",{"name":[513],"color":[1],"size":[8],"iconset":[513],"disabled":[4]}]]],["cura-icons-view.cjs",[[1,"cura-icons-view",{"selected":[32]}]]]], options);
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
@@ -28,4 +28,3 @@ export default class CuraAPI {
28
28
  }
29
29
  }
30
30
  }
31
- //# sourceMappingURL=cura-api.js.map
@@ -4,4 +4,3 @@ export var InterfaceModes;
4
4
  InterfaceModes["LIGHT"] = "light";
5
5
  InterfaceModes["DARK"] = "dark";
6
6
  })(InterfaceModes || (InterfaceModes = {}));
7
- //# sourceMappingURL=cura-api.type.js.map
@@ -67,4 +67,3 @@ export default class CuraThemeColorsModule {
67
67
  return { color: color !== null && color !== void 0 ? color : "primary", depth: depth !== null && depth !== void 0 ? depth : "base" };
68
68
  }
69
69
  }
70
- //# sourceMappingURL=cura-theme-colors-module.js.map
@@ -33,4 +33,3 @@ export default class CuraThemeFontsModule {
33
33
  return weights;
34
34
  }
35
35
  }
36
- //# sourceMappingURL=cura-theme-fonts-module.js.map
@@ -73,4 +73,3 @@ export default class CuraThemeModule {
73
73
  }
74
74
  }
75
75
  }
76
- //# sourceMappingURL=cura-theme-module.js.map
@@ -10,4 +10,3 @@ export default class CuraThemeSpacingModule {
10
10
  return '4';
11
11
  }
12
12
  }
13
- //# sourceMappingURL=cura-theme-spacing-module.js.map
@@ -88,4 +88,3 @@ export const Static = {
88
88
  },
89
89
  },
90
90
  };
91
- //# sourceMappingURL=static.js.map
@@ -19,11 +19,11 @@ export const ThemeDefault = {
19
19
  '900': '#292017'
20
20
  },
21
21
  accent: {
22
- '100': '#FFC27B',
23
- '300': '#FFA84A',
24
- '500': '#FF8200',
25
- '700': '#D7720A',
26
- '900': '#9B5A1A'
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': '#AABEE1',
11
- '300': '#557EC4',
12
- '500': '#003DA6',
13
- '700': '#00296F',
14
- '900': '#000C21'
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
- accent: {
24
- '100': '#99CFFF',
25
- '300': '#47A9FF',
26
- '500': '#0083F5',
27
- '700': '#006DCC',
28
- '900': '#0058A4',
23
+ aux1: {
24
+ '100': '#AABEE1',
25
+ '300': '#557EC4',
26
+ '500': '#003DA6',
27
+ '700': '#00296F',
28
+ '900': '#000C21',
29
29
  },
30
- aux: {
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
@@ -6,4 +6,3 @@ export const ThemePresets = {
6
6
  'maternidade': ThemeMaternity,
7
7
  'oncologia': ThemeOncology,
8
8
  };
9
- //# sourceMappingURL=theme-presets.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": "3.3.0",
14
- "typescriptVersion": "5.0.4"
12
+ "version": "2.18.1",
13
+ "typescriptVersion": "4.7.4"
15
14
  },
16
15
  "collections": [],
17
16
  "bundles": [],
@@ -1,8 +1,8 @@
1
- :host {
1
+ .cura-icon {
2
2
  width: var(--size);
3
3
  height: var(--size);
4
4
  }
5
- :host svg {
5
+ .cura-icon svg {
6
6
  display: inline-block;
7
7
  stroke: var(--color);
8
8
  width: var(--size);
@@ -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, 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}` }))));
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
- :host {
22
+ .cura-template {
23
23
  display: block;
24
24
  }
25
- :host .grid-template {
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
- :host .grid-template #sub-header {
31
+ .cura-template .grid-template #sub-header {
32
32
  grid-area: sub-header;
33
33
  }
34
- :host .grid-template #header {
34
+ .cura-template .grid-template #header {
35
35
  grid-area: header;
36
36
  }
37
- :host .grid-template #pre-content {
37
+ .cura-template .grid-template #pre-content {
38
38
  grid-area: pre-content;
39
39
  }
40
- :host .grid-template #content-container {
40
+ .cura-template .grid-template #content-container {
41
41
  grid-area: content-container;
42
42
  }
43
- :host .grid-template #post-body {
43
+ .cura-template .grid-template #post-body {
44
44
  grid-area: post-body;
45
45
  }
46
- :host .grid-template #footer {
46
+ .cura-template .grid-template #footer {
47
47
  grid-area: footer;
48
48
  }
49
- :host .grid-template #sub-footer {
49
+ .cura-template .grid-template #sub-footer {
50
50
  grid-area: sub-footer;
51
51
  }
52
52
  @media (max-width: 360px) {
53
- :host .grid-template {
53
+ .cura-template .grid-template {
54
54
  padding: 0px;
55
55
  }
56
56
  }
57
57
  @media (min-width: 768px) and (max-width: 1365px) {
58
- :host .grid-template {
58
+ .cura-template .grid-template {
59
59
  padding: 0px;
60
60
  }
61
61
  }
62
62
  @media (min-width: 1366px) and (max-width: 1919px) {
63
- :host .grid-template {
63
+ .cura-template .grid-template {
64
64
  padding: 0px;
65
65
  }
66
- :host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
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
- :host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
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
- :host .grid-template #content-container {
72
+ .cura-template .grid-template #content-container {
73
73
  display: flex;
74
74
  }
75
- :host .grid-template #content-container #content {
75
+ .cura-template .grid-template #content-container #content {
76
76
  flex-grow: 1;
77
77
  }
78
- :host .grid-template #content-container #sidebar-left, :host .grid-template #content-container #sidebar-right {
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
- :host .grid-template {
83
+ .cura-template .grid-template {
84
84
  padding: 0px;
85
85
  }
86
- :host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
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
- :host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
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
- :host .grid-template #content-container {
92
+ .cura-template .grid-template #content-container {
93
93
  display: flex;
94
94
  }
95
- :host .grid-template #content-container #content {
95
+ .cura-template .grid-template #content-container #content {
96
96
  flex-grow: 1;
97
97
  }
98
- :host .grid-template #content-container #sidebar-left, :host .grid-template #content-container #sidebar-right {
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
- :host .grid-template #content-container.centered {
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, 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' })))));
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
- :host {
22
+ .cura-display {
23
23
  display: block;
24
24
  font-size: var(--font-size);
25
25
  text-transform: uppercase;
26
26
  }
27
- :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
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
- :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
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
- :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
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
- :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
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
- :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
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
- :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
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
- :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
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
- :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
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
- :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
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
- :host ::slotted(b), :host ::slotted(strong) {
69
+ .cura-display b,
70
+ .cura-display strong {
70
71
  font-weight: var(--font-weight-bold);
71
72
  }
72
- :host ::slotted(a) {
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
- :host ::slotted(abbr) {
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, null, this.getHeadingTag()));
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
- :host {
22
+ .cura-heading {
23
23
  display: block;
24
24
  font-size: var(--font-size);
25
25
  }
26
- :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
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
- :host h1.bold-weight, :host h2.bold-weight, :host h3.bold-weight, :host h4.bold-weight, :host h5.bold-weight, :host h6.bold-weight {
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
- :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
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
- :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
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
- :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 {
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
- :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
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
- :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
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
- :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
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
- :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
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
- :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
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
- :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
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
- :host ::slotted(b), :host ::slotted(strong) {
77
+ .cura-heading b, .cura-heading strong {
78
78
  font-weight: var(--font-weight-bold);
79
79
  }
80
- :host ::slotted(a) {
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
- :host ::slotted(abbr) {
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%;