@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
@@ -21,11 +21,11 @@ const ThemeDefault = {
21
21
  '900': '#292017'
22
22
  },
23
23
  accent: {
24
- '100': '#FFC27B',
25
- '300': '#FFA84A',
26
- '500': '#FF8200',
27
- '700': '#D7720A',
28
- '900': '#9B5A1A'
24
+ '100': '#F9E8D5',
25
+ '300': '#E4A04F',
26
+ '500': '#DF8D2C',
27
+ '700': '#955E1D',
28
+ '900': '#2D1C09'
29
29
  }
30
30
  },
31
31
  /* Spacing */
@@ -70,13 +70,6 @@ const ThemeMaternity = Object.assign(Object.assign({}, ThemeDefault), {
70
70
  '500': '#189AB4',
71
71
  '700': '#001C58',
72
72
  '900': '#430E31'
73
- },
74
- accent: {
75
- '100': '#FCEFF6',
76
- '300': '#FFBFE5',
77
- '500': '#CD4D9A',
78
- '700': '#99126C',
79
- '900': '#00133B'
80
73
  }
81
74
  } });
82
75
 
@@ -88,11 +81,11 @@ const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
88
81
  /* Colors */
89
82
  color: {
90
83
  primary: {
91
- '100': '#AABEE1',
92
- '300': '#557EC4',
93
- '500': '#003DA6',
94
- '700': '#00296F',
95
- '900': '#000C21'
84
+ '100': '#99CFFF',
85
+ '300': '#47A9FF',
86
+ '500': '#0083F5',
87
+ '700': '#006DCC',
88
+ '900': '#0058A4',
96
89
  },
97
90
  secondary: {
98
91
  '100': '#CDD7E3',
@@ -101,34 +94,20 @@ const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
101
94
  '700': '#365E8F',
102
95
  '900': '#043673',
103
96
  },
104
- accent: {
105
- '100': '#99CFFF',
106
- '300': '#47A9FF',
107
- '500': '#0083F5',
108
- '700': '#006DCC',
109
- '900': '#0058A4',
97
+ aux1: {
98
+ '100': '#AABEE1',
99
+ '300': '#557EC4',
100
+ '500': '#003DA6',
101
+ '700': '#00296F',
102
+ '900': '#000C21',
110
103
  },
111
- aux: {
104
+ aux2: {
112
105
  '100': '#DAF2EF',
113
106
  '300': '#84D4CA',
114
107
  '500': '#47BFB0',
115
108
  '700': '#2F7F75',
116
109
  '900': '#0E2623',
117
110
  },
118
- }, font: {
119
- size: '14px',
120
- color: '#4A4A4A',
121
- body: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
122
- heading: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
123
- display: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
124
- weights: {
125
- thin: 100,
126
- light: 300,
127
- regular: 400,
128
- medium: 500,
129
- bold: 700,
130
- black: 900
131
- },
132
111
  } });
133
112
 
134
113
  const ThemePresets = {
@@ -459,5 +438,3 @@ function appGlobalScript () {
459
438
  const globalScripts = appGlobalScript;
460
439
 
461
440
  exports.globalScripts = globalScripts;
462
-
463
- //# sourceMappingURL=app-globals-a41d7f40.js.map
@@ -0,0 +1,257 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-76f95c4b.js');
6
+
7
+ const curaDisplayCss = ".cura-display{display:block;font-size:var(--font-size);text-transform:uppercase}.cura-display h1,.cura-display h2,.cura-display h3,.cura-display h4,.cura-display h5,.cura-display h6{font-family:var(--font-family);font-size:4.285em;font-weight:var(--font-weight-black);color:var(--color-body);line-height:120%;letter-spacing:-4%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}.cura-display h1.large,.cura-display h2.large,.cura-display h3.large,.cura-display h4.large,.cura-display h5.large,.cura-display h6.large{font-size:6.21em}.cura-display h1.small,.cura-display h2.small,.cura-display h3.small,.cura-display h4.small,.cura-display h5.small,.cura-display h6.small{font-size:3em;font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){.cura-display h1,.cura-display h2,.cura-display h3,.cura-display h4,.cura-display h5,.cura-display h6{font-size:4.92em}.cura-display h1.large,.cura-display h2.large,.cura-display h3.large,.cura-display h4.large,.cura-display h5.large,.cura-display h6.large{font-size:7.07em}.cura-display h1.small,.cura-display h2.small,.cura-display h3.small,.cura-display h4.small,.cura-display h5.small,.cura-display h6.small{font-size:3.428em}}@media (min-width: 1366px){.cura-display h1,.cura-display h2,.cura-display h3,.cura-display h4,.cura-display h5,.cura-display h6{font-size:6.14em;line-height:125%}.cura-display h1.large,.cura-display h2.large,.cura-display h3.large,.cura-display h4.large,.cura-display h5.large,.cura-display h6.large{font-size:8.857em;letter-spacing:-6%}.cura-display h1.small,.cura-display h2.small,.cura-display h3.small,.cura-display h4.small,.cura-display h5.small,.cura-display h6.small{font-size:4.285em;letter-spacing:-2%}}.cura-display b,.cura-display strong{font-weight:var(--font-weight-bold)}.cura-display a{font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}.cura-display 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}";
8
+
9
+ const CuraDisplay = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ /**
13
+ * Heading level for semantics.
14
+ * Values: 1(default)-6.
15
+ */
16
+ this.level = 1;
17
+ /**
18
+ * Heading style size.
19
+ * Values: small | regular(default) | large.
20
+ */
21
+ this.size = 'regular';
22
+ /**
23
+ * Apply light color to text in dark background.
24
+ * Values: boolean.
25
+ */
26
+ this.inverted = false;
27
+ /**
28
+ * Apply base system color to elements like <a> and <abbr>.
29
+ * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
30
+ */
31
+ this.spotColor = 'primary';
32
+ }
33
+ connectedCallback() {
34
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
35
+ this.setFontProperties();
36
+ this.setColors();
37
+ }
38
+ getClasses() {
39
+ const classes = {};
40
+ classes[this.size.toLowerCase()] = true;
41
+ return classes;
42
+ }
43
+ setFontProperties() {
44
+ this.styles = {
45
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),
46
+ '--font-size': window.CuraAPI.theme.fonts.getSize(),
47
+ '--font-weight-bold': this.weights.bold,
48
+ '--font-weight-black': this.weights.black
49
+ };
50
+ this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
51
+ this.setHostProperty('--block-margin', '0.5em');
52
+ }
53
+ setColors() {
54
+ const fontColor = this.inverted
55
+ ? window.CuraAPI.theme.colors.getColor('neutral-100')
56
+ : window.CuraAPI.theme.fonts.getColor();
57
+ this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
58
+ this.styles['--color-link'] = this.inverted
59
+ ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
60
+ : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
61
+ }
62
+ setHostProperty(prop, value) {
63
+ this.host.style.setProperty(prop, value);
64
+ }
65
+ getHeadingTag() {
66
+ const tags = {
67
+ '1': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
68
+ '2': index.h("h2", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
69
+ '3': index.h("h3", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
70
+ '4': index.h("h4", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
71
+ '5': index.h("h5", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
72
+ '6': index.h("h6", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
73
+ 'default': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null))
74
+ };
75
+ return tags[`${this.level}`] || tags['default'];
76
+ }
77
+ render() {
78
+ return (index.h(index.Host, { class: "cura-display" }, this.getHeadingTag()));
79
+ }
80
+ get host() { return index.getElement(this); }
81
+ };
82
+ CuraDisplay.style = curaDisplayCss;
83
+
84
+ const curaHeadingCss = ".cura-heading{display:block;font-size:var(--font-size)}.cura-heading h1,.cura-heading h2,.cura-heading h3,.cura-heading h4,.cura-heading h5,.cura-heading h6{font-family:var(--font-family);font-size:1.71em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:130%;letter-spacing:0%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}.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{font-weight:var(--font-weight-medium)}.cura-heading h1.large,.cura-heading h2.large,.cura-heading h3.large,.cura-heading h4.large,.cura-heading h5.large,.cura-heading h6.large{font-size:2.07em;letter-spacing:-2%}.cura-heading h1.small,.cura-heading h2.small,.cura-heading h3.small,.cura-heading h4.small,.cura-heading h5.small,.cura-heading h6.small{font-size:1.214em;line-height:150%;letter-spacing:0%}.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{font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){.cura-heading h1,.cura-heading h2,.cura-heading h3,.cura-heading h4,.cura-heading h5,.cura-heading h6{font-size:2em}.cura-heading h1.large,.cura-heading h2.large,.cura-heading h3.large,.cura-heading h4.large,.cura-heading h5.large,.cura-heading h6.large{font-size:2.357em}.cura-heading h1.small,.cura-heading h2.small,.cura-heading h3.small,.cura-heading h4.small,.cura-heading h5.small,.cura-heading h6.small{font-size:1.357em}}@media (min-width: 1366px){.cura-heading h1,.cura-heading h2,.cura-heading h3,.cura-heading h4,.cura-heading h5,.cura-heading h6{font-size:2.5em;line-height:135%;letter-spacing:-2%}.cura-heading h1.large,.cura-heading h2.large,.cura-heading h3.large,.cura-heading h4.large,.cura-heading h5.large,.cura-heading h6.large{font-size:2.92em}.cura-heading h1.small,.cura-heading h2.small,.cura-heading h3.small,.cura-heading h4.small,.cura-heading h5.small,.cura-heading h6.small{font-size:1.71em;line-height:160%;letter-spacing:0%}}.cura-heading b,.cura-heading strong{font-weight:var(--font-weight-bold)}.cura-heading a{font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}.cura-heading 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}";
85
+
86
+ const CuraHeading = class {
87
+ constructor(hostRef) {
88
+ index.registerInstance(this, hostRef);
89
+ /**
90
+ * Heading level for semantics.
91
+ * Values: 1(default)-6.
92
+ */
93
+ this.level = 1;
94
+ /**
95
+ * Heading style size.
96
+ * Values: small | regular(default) | large.
97
+ */
98
+ this.size = 'regular';
99
+ /**
100
+ * Heading font weight.
101
+ * Values: regular(default) | bold.
102
+ */
103
+ this.weight = 'regular';
104
+ /**
105
+ * Apply light color to text in dark background.
106
+ * Values: boolean.
107
+ */
108
+ this.inverted = false;
109
+ /**
110
+ * Apply base system color to elements like <a> and <abbr>.
111
+ * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
112
+ */
113
+ this.spotColor = 'primary';
114
+ }
115
+ connectedCallback() {
116
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
117
+ this.setFontProperties();
118
+ this.setColors();
119
+ }
120
+ getClasses() {
121
+ const classes = {};
122
+ classes[this.size.toLowerCase()] = true;
123
+ classes[`${this.weight.toLowerCase()}-weight`] = true;
124
+ return classes;
125
+ }
126
+ setFontProperties() {
127
+ this.styles = {
128
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
129
+ '--font-size': window.CuraAPI.theme.fonts.getSize(),
130
+ '--font-weight-regular': this.weights.regular,
131
+ '--font-weight-medium': this.weights.medium,
132
+ '--font-weight-bold': this.weights.bold,
133
+ '--font-weight-black': this.weights.black
134
+ };
135
+ this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
136
+ this.setHostProperty('--block-margin', '0.5em');
137
+ }
138
+ setColors() {
139
+ const fontColor = this.inverted
140
+ ? window.CuraAPI.theme.colors.getColor('neutral-100')
141
+ : window.CuraAPI.theme.fonts.getColor();
142
+ this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
143
+ this.styles['--color-link'] = this.inverted
144
+ ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
145
+ : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
146
+ }
147
+ setHostProperty(prop, value) {
148
+ this.host.style.setProperty(prop, value);
149
+ }
150
+ getHeadingTag() {
151
+ const tags = {
152
+ '1': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
153
+ '2': index.h("h2", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
154
+ '3': index.h("h3", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
155
+ '4': index.h("h4", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
156
+ '5': index.h("h5", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
157
+ '6': index.h("h6", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
158
+ 'default': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null))
159
+ };
160
+ return tags[`${this.level}`] || tags['default'];
161
+ }
162
+ render() {
163
+ return (index.h(index.Host, { class: "cura-heading" }, this.getHeadingTag()));
164
+ }
165
+ get host() { return index.getElement(this); }
166
+ };
167
+ CuraHeading.style = curaHeadingCss;
168
+
169
+ const curaPageTemplateCss = ".cura-template{display:block}.cura-template .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}.cura-template .grid-template #sub-header{grid-area:sub-header}.cura-template .grid-template #header{grid-area:header}.cura-template .grid-template #pre-content{grid-area:pre-content}.cura-template .grid-template #content-container{grid-area:content-container}.cura-template .grid-template #post-body{grid-area:post-body}.cura-template .grid-template #footer{grid-area:footer}.cura-template .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 360px){.cura-template .grid-template{padding:0px}}@media (min-width: 768px) and (max-width: 1365px){.cura-template .grid-template{padding:0px}}@media (min-width: 1366px) and (max-width: 1919px){.cura-template .grid-template{padding:0px}.cura-template .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}.cura-template .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}.cura-template .grid-template #content-container{display:-ms-flexbox;display:flex}.cura-template .grid-template #content-container #content{-ms-flex-positive:1;flex-grow:1}.cura-template .grid-template #content-container #sidebar-left,.cura-template .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1920px){.cura-template .grid-template{padding:0px}.cura-template .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}.cura-template .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}.cura-template .grid-template #content-container{display:-ms-flexbox;display:flex}.cura-template .grid-template #content-container #content{-ms-flex-positive:1;flex-grow:1}.cura-template .grid-template #content-container #sidebar-left,.cura-template .grid-template #content-container #sidebar-right{max-width:20%}.cura-template .grid-template #content-container.centered{max-width:1920px;justify-self:center}}";
170
+
171
+ const CuraPageTemplate = class {
172
+ constructor(hostRef) {
173
+ index.registerInstance(this, hostRef);
174
+ this.contentwidth = 'default';
175
+ }
176
+ connectedCallback() {
177
+ this.styles = {
178
+ '--spacing': window.CuraAPI.theme.spacing.getSpacing(),
179
+ };
180
+ }
181
+ getClasses() {
182
+ const classes = {};
183
+ classes[this.contentwidth.toLowerCase()] = true;
184
+ return classes;
185
+ }
186
+ render() {
187
+ return (index.h(index.Host, { class: "cura-template" }, index.h("div", { style: this.styles, class: "grid-template" }, index.h("div", { id: "sub-header" }, index.h("slot", { name: 'sub-header' })), index.h("div", { id: "header" }, index.h("slot", { name: 'header' })), index.h("div", { id: "pre-content" }, index.h("slot", { name: 'pre-content' })), index.h("div", { id: "content-container", class: this.getClasses() }, index.h("div", { id: "sidebar-left" }, index.h("slot", { name: 'sidebar-left' })), index.h("div", { id: "content" }, index.h("slot", { name: "content" }), index.h("slot", null)), index.h("div", { id: "sidebar-right" }, index.h("slot", { name: 'sidebar-right' }))), index.h("div", { id: "post-body" }, index.h("slot", { name: 'post-body' })), index.h("div", { id: "footer" }, index.h("slot", { name: 'footer' })), index.h("div", { id: "sub-footer" }, index.h("slot", { name: 'sub-footer' })))));
188
+ }
189
+ get host() { return index.getElement(this); }
190
+ };
191
+ CuraPageTemplate.style = curaPageTemplateCss;
192
+
193
+ const curaParagraphCss = ".cura-paragraph{display:block;font-size:var(--font-size)}.cura-paragraph p{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:140%;letter-spacing:2%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}.cura-paragraph p.large{font-size:1.21em;line-height:150%;letter-spacing:0%}.cura-paragraph p.small{font-size:0.85em;line-height:135%;letter-spacing:4%}.cura-paragraph p.caption{font-size:0.71em;line-height:135%;letter-spacing:6%}@media (min-width: 768px) and (max-width: 1365px){.cura-paragraph p{font-size:1.14em;line-height:145%}.cura-paragraph p.large{font-size:1.35em;line-height:150%}.cura-paragraph p.small{font-size:1em;line-height:135%}.cura-paragraph p.caption{font-size:0.85em;line-height:135%;letter-spacing:6%}}@media (min-width: 1366px){.cura-paragraph p{font-size:1.42em;line-height:150%;letter-spacing:0%}.cura-paragraph p.large{font-size:1.71em;line-height:160%}.cura-paragraph p.small{font-size:1.21em;line-height:145%;letter-spacing:0%}.cura-paragraph p.caption{font-size:1em;line-height:145%;letter-spacing:2%}}.cura-paragraph b,.cura-paragraph strong{font-weight:var(--font-weight-bold)}.cura-paragraph a{font-weight:var(--font-weight-medium);color:var(--color-link);text-underline-offset:10%}.cura-paragraph 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}";
194
+
195
+ const CuraParagraph = class {
196
+ constructor(hostRef) {
197
+ index.registerInstance(this, hostRef);
198
+ /**
199
+ * Set size of body text.
200
+ * Values: regular (default) | large | small | caption.
201
+ */
202
+ this.size = 'regular';
203
+ /**
204
+ * Apply light color to text in dark background.
205
+ * Values: boolean.
206
+ */
207
+ this.inverted = false;
208
+ /**
209
+ * Apply base system color to elements like <a> and <abbr>.
210
+ * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
211
+ */
212
+ this.spotColor = 'primary';
213
+ }
214
+ connectedCallback() {
215
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
216
+ this.setFontProperties();
217
+ this.setColors();
218
+ }
219
+ setsizeClass() {
220
+ const sizeclass = {};
221
+ sizeclass[this.size.toLowerCase()] = true;
222
+ return sizeclass;
223
+ }
224
+ setFontProperties() {
225
+ this.styles = {
226
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('body'),
227
+ '--font-size': window.CuraAPI.theme.fonts.getSize(),
228
+ '--font-weight-regular': this.weights.regular,
229
+ '--font-weight-medium': this.weights.medium,
230
+ '--font-weight-bold': this.weights.bold
231
+ };
232
+ this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
233
+ this.setHostProperty('--block-margin', '1.25em');
234
+ }
235
+ setColors() {
236
+ const fontColor = this.inverted
237
+ ? window.CuraAPI.theme.colors.getColor('neutral-100')
238
+ : window.CuraAPI.theme.fonts.getColor();
239
+ this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
240
+ this.styles['--color-link'] = this.inverted
241
+ ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)
242
+ : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);
243
+ }
244
+ setHostProperty(prop, value) {
245
+ this.host.style.setProperty(prop, value);
246
+ }
247
+ render() {
248
+ return (index.h(index.Host, { class: "cura-paragraph" }, index.h("p", { style: this.styles, class: this.setsizeClass() }, index.h("slot", null))));
249
+ }
250
+ get host() { return index.getElement(this); }
251
+ };
252
+ CuraParagraph.style = curaParagraphCss;
253
+
254
+ exports.cura_display = CuraDisplay;
255
+ exports.cura_heading = CuraHeading;
256
+ exports.cura_page_template = CuraPageTemplate;
257
+ exports.cura_paragraph = CuraParagraph;
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-76f95c4b.js');
6
+
7
+ const curaIconCss = ".cura-icon{width:var(--size);height:var(--size)}.cura-icon svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
8
+
9
+ const CuraIcon = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.name = '';
13
+ this.color = 'neutral-base';
14
+ this.iconset = 'default';
15
+ this.disabled = false;
16
+ this.sizes = {
17
+ "128": { size: 128, stroke: 5.25 },
18
+ "72": { size: 72, stroke: 3.5 },
19
+ "64": { size: 64, stroke: 3.25 },
20
+ "48": { size: 48, stroke: 2.75 },
21
+ "40": { size: 40, stroke: 2.5 },
22
+ "32": { size: 32, stroke: 2.25 },
23
+ "24": { size: 24, stroke: 2 },
24
+ "20": { size: 20, stroke: 1.75 },
25
+ "16": { size: 16, stroke: 1.5 },
26
+ "default": { size: 24, stroke: 2 }
27
+ };
28
+ }
29
+ sizeHandler(size) {
30
+ const scaledStroke = (iconSize) => {
31
+ return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;
32
+ };
33
+ this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);
34
+ this.setHostProperty('--stroke', this.sizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
35
+ }
36
+ colorHandler() {
37
+ this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color));
38
+ }
39
+ connectedCallback() {
40
+ this.assetsPath = window.CuraAPI.localAssetsPath;
41
+ this.sizeHandler(this.size);
42
+ this.colorHandler();
43
+ }
44
+ setHostProperty(prop, value) {
45
+ this.host.style.setProperty(prop, value);
46
+ }
47
+ render() {
48
+ return (index.h(index.Host, { class: 'cura-icon' }, index.h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, index.h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
49
+ }
50
+ get host() { return index.getElement(this); }
51
+ static get watchers() { return {
52
+ "size": ["sizeHandler"],
53
+ "color": ["colorHandler"],
54
+ "disabled": ["colorHandler"]
55
+ }; }
56
+ };
57
+ CuraIcon.style = curaIconCss;
58
+
59
+ exports.cura_icon = CuraIcon;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-29633529.js');
5
+ const index = require('./index-76f95c4b.js');
6
6
 
7
7
  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"];
8
8
 
@@ -13,10 +13,10 @@ const CuraIconsView = class {
13
13
  index.registerInstance(this, hostRef);
14
14
  this.sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];
15
15
  this.colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];
16
+ this.selected = '360';
16
17
  this.setSelected = (icon) => {
17
18
  this.selected = icon;
18
19
  };
19
- this.selected = '360';
20
20
  }
21
21
  render() {
22
22
  return (index.h(index.Host, null, index.h("div", { class: "iconDetail" }, index.h("h4", null, this.selected), index.h("div", { class: "iconSizes" }, this.sizes.map(size => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, size: size }), index.h("span", null, size)))), index.h("div", { class: "iconSizes invert" }, this.sizes.map(size => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), index.h("span", null, size)))), index.h("div", { class: "iconSizes" }, this.colors.map(color => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, color: color }), index.h("span", null, color))), index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, disabled: true }), index.h("span", null, "Disabled")))), index.h("div", { class: "icons" }, iconsetdefaulticons.map(icon => index.h("div", { class: "icon", onClick: () => this.setSelected(icon) }, index.h("cura-icon", { name: icon }), index.h("span", null, icon))))));
@@ -25,5 +25,3 @@ const CuraIconsView = class {
25
25
  CuraIconsView.style = curaIconsViewCss;
26
26
 
27
27
  exports.cura_icons_view = CuraIconsView;
28
-
29
- //# sourceMappingURL=cura-icons-view.cjs.entry.js.map
@@ -1,36 +1,21 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-29633529.js');
6
- const appGlobals = require('./app-globals-a41d7f40.js');
3
+ const index = require('./index-76f95c4b.js');
4
+ const appGlobals = require('./app-globals-0f70160b.js');
7
5
 
8
6
  /*
9
- Stencil Client Patch Browser v3.3.0 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
10
8
  */
11
9
  const patchBrowser = () => {
12
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
13
- {
14
- // shim css vars
15
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
16
- index.plt.$cssShim$ = index.win.__cssshim;
17
- }
18
10
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('cura.cjs.js', document.baseURI).href));
19
11
  const opts = {};
20
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
21
12
  if (importMeta !== '') {
22
13
  opts.resourcesUrl = new URL('.', importMeta).href;
23
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
24
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
25
14
  }
26
15
  return index.promiseResolve(opts);
27
16
  };
28
17
 
29
18
  patchBrowser().then(options => {
30
19
  appGlobals.globalScripts();
31
- 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);
20
+ 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);
32
21
  });
33
-
34
- exports.setNonce = index.setNonce;
35
-
36
- //# sourceMappingURL=cura.cjs.js.map