@rededor/cura 0.3.4-alpha.1 → 0.3.4

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 (193) hide show
  1. package/dist/cjs/{app-globals-0f70160b.js → app-globals-a41d7f40.js} +40 -17
  2. package/dist/cjs/app-globals-a41d7f40.js.map +1 -0
  3. package/dist/cjs/css-shim-83cf0349.js +8 -0
  4. package/dist/cjs/css-shim-83cf0349.js.map +1 -0
  5. package/dist/cjs/cura-button_6.cjs.entry.js +334 -0
  6. package/dist/cjs/cura-button_6.cjs.entry.js.map +1 -0
  7. package/dist/cjs/cura-icons-view.cjs.entry.js +4 -2
  8. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -0
  9. package/dist/cjs/cura.cjs.js +19 -4
  10. package/dist/cjs/cura.cjs.js.map +1 -0
  11. package/dist/cjs/{index-76f95c4b.js → index-0e874533.js} +256 -37
  12. package/dist/cjs/index-0e874533.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +2 -0
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/loader.cjs.js +23 -4
  16. package/dist/cjs/loader.cjs.js.map +1 -0
  17. package/dist/cjs/shadow-css-8baae635.js +391 -0
  18. package/dist/cjs/shadow-css-8baae635.js.map +1 -0
  19. package/dist/collection/api/cura-api.js +1 -0
  20. package/dist/collection/api/cura-api.js.map +1 -0
  21. package/dist/collection/api/cura-api.type.js +1 -0
  22. package/dist/collection/api/cura-api.type.js.map +1 -0
  23. package/dist/collection/api/modules/cura-theme-colors-module.js +1 -0
  24. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -0
  25. package/dist/collection/api/modules/cura-theme-fonts-module.js +1 -0
  26. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +1 -0
  27. package/dist/collection/api/modules/cura-theme-module.js +1 -0
  28. package/dist/collection/api/modules/cura-theme-module.js.map +1 -0
  29. package/dist/collection/api/modules/cura-theme-spacing-module.js +1 -0
  30. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +1 -0
  31. package/dist/collection/api/theme-presets/static.js +1 -0
  32. package/dist/collection/api/theme-presets/static.js.map +1 -0
  33. package/dist/collection/api/theme-presets/theme-default.js +6 -5
  34. package/dist/collection/api/theme-presets/theme-default.js.map +1 -0
  35. package/dist/collection/api/theme-presets/theme-maternity.js +8 -0
  36. package/dist/collection/api/theme-presets/theme-maternity.js.map +1 -0
  37. package/dist/collection/api/theme-presets/theme-oncology.js +27 -12
  38. package/dist/collection/api/theme-presets/theme-oncology.js.map +1 -0
  39. package/dist/collection/api/theme-presets/theme-presets.js +1 -0
  40. package/dist/collection/api/theme-presets/theme-presets.js.map +1 -0
  41. package/dist/collection/assets/icons/iconset-default-list.js +1 -0
  42. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -0
  43. package/dist/collection/collection-manifest.json +3 -2
  44. package/dist/collection/components/buttons/cura-button/cura-button.css +161 -0
  45. package/dist/collection/components/buttons/cura-button/cura-button.js +285 -0
  46. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -0
  47. package/dist/collection/components/cura-icon/cura-icon.css +2 -2
  48. package/dist/collection/components/cura-icon/cura-icon.js +8 -5
  49. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -0
  50. package/dist/collection/components/cura-icons-view/cura-icons-view.js +3 -1
  51. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -0
  52. package/dist/collection/components/cura-page-template/cura-page-template.css +24 -24
  53. package/dist/collection/components/cura-page-template/cura-page-template.js +3 -1
  54. package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -0
  55. package/dist/collection/components/text/cura-display/cura-display.css +13 -14
  56. package/dist/collection/components/text/cura-display/cura-display.js +3 -17
  57. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -0
  58. package/dist/collection/components/text/cura-heading/cura-heading.css +15 -15
  59. package/dist/collection/components/text/cura-heading/cura-heading.js +3 -21
  60. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -0
  61. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +16 -17
  62. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +3 -13
  63. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -0
  64. package/dist/collection/index.js +1 -0
  65. package/dist/collection/index.js.map +1 -0
  66. package/dist/collection/rededor-cura-start.js +1 -0
  67. package/dist/collection/rededor-cura-start.js.map +1 -0
  68. package/dist/collection/utils/utils.js +1 -0
  69. package/dist/collection/utils/utils.js.map +1 -0
  70. package/dist/collection/utils/utils.spec.js +16 -0
  71. package/dist/collection/utils/utils.spec.js.map +1 -0
  72. package/dist/components/cura-button.d.ts +11 -0
  73. package/dist/components/cura-button.js +110 -0
  74. package/dist/components/cura-button.js.map +1 -0
  75. package/dist/components/cura-display.js +7 -20
  76. package/dist/components/cura-display.js.map +1 -0
  77. package/dist/components/cura-heading.js +7 -24
  78. package/dist/components/cura-heading.js.map +1 -0
  79. package/dist/components/cura-icon.js +2 -0
  80. package/dist/components/cura-icon.js.map +1 -0
  81. package/dist/components/cura-icon2.js +12 -8
  82. package/dist/components/cura-icon2.js.map +1 -0
  83. package/dist/components/cura-icons-view.js +6 -3
  84. package/dist/components/cura-icons-view.js.map +1 -0
  85. package/dist/components/cura-page-template.js +7 -4
  86. package/dist/components/cura-page-template.js.map +1 -0
  87. package/dist/components/cura-paragraph.js +7 -16
  88. package/dist/components/cura-paragraph.js.map +1 -0
  89. package/dist/components/index.d.ts +21 -9
  90. package/dist/components/index.js +67 -24
  91. package/dist/components/index.js.map +1 -0
  92. package/dist/cura/cura.esm.js +2 -1
  93. package/dist/cura/cura.esm.js.map +1 -0
  94. package/dist/cura/cura.js +3 -1
  95. package/dist/cura/index.esm.js +2 -0
  96. package/dist/cura/index.esm.js.map +1 -0
  97. package/dist/cura/p-118112e5.system.js +14 -0
  98. package/dist/cura/p-118112e5.system.js.map +1 -0
  99. package/dist/cura/p-183305c3.js +2 -0
  100. package/dist/cura/p-183305c3.js.map +1 -0
  101. package/dist/cura/p-36c8b693.system.js +2 -0
  102. package/dist/cura/p-36c8b693.system.js.map +1 -0
  103. package/dist/cura/p-3f6aaefc.system.js +2 -0
  104. package/dist/cura/p-3f6aaefc.system.js.map +1 -0
  105. package/dist/cura/p-4fc49972.system.js +2 -0
  106. package/dist/cura/p-4fc49972.system.js.map +1 -0
  107. package/dist/cura/p-50ea2036.system.js +2 -1
  108. package/dist/cura/p-50ea2036.system.js.map +1 -0
  109. package/dist/cura/{p-54c09404.system.entry.js → p-825028d1.system.entry.js} +2 -1
  110. package/dist/cura/p-825028d1.system.entry.js.map +1 -0
  111. package/dist/cura/p-a84ae34f.system.js +3 -0
  112. package/dist/cura/p-a84ae34f.system.js.map +1 -0
  113. package/dist/cura/p-bac0b4ab.js +2 -0
  114. package/dist/cura/p-bac0b4ab.js.map +1 -0
  115. package/dist/cura/p-beab48cd.js +13 -0
  116. package/dist/cura/p-beab48cd.js.map +1 -0
  117. package/dist/cura/p-cbc91ac5.js +3 -0
  118. package/dist/cura/p-cbc91ac5.js.map +1 -0
  119. package/dist/cura/p-e32ae366.entry.js +2 -0
  120. package/dist/cura/p-e32ae366.entry.js.map +1 -0
  121. package/dist/cura/p-e5fd4452.system.entry.js +2 -0
  122. package/dist/cura/p-e5fd4452.system.entry.js.map +1 -0
  123. package/dist/cura/p-e7785610.entry.js +2 -0
  124. package/dist/cura/p-e7785610.entry.js.map +1 -0
  125. package/dist/esm/{app-globals-cb45bff3.js → app-globals-8ed931e6.js} +40 -17
  126. package/dist/esm/app-globals-8ed931e6.js.map +1 -0
  127. package/dist/esm/css-shim-d13f0738.js +6 -0
  128. package/dist/esm/css-shim-d13f0738.js.map +1 -0
  129. package/dist/esm/cura-button_6.entry.js +325 -0
  130. package/dist/esm/cura-button_6.entry.js.map +1 -0
  131. package/dist/esm/cura-icons-view.entry.js +4 -2
  132. package/dist/esm/cura-icons-view.entry.js.map +1 -0
  133. package/dist/esm/cura.js +16 -4
  134. package/dist/esm/cura.js.map +1 -0
  135. package/dist/esm/{index-7e8c969d.js → index-92c824be.js} +253 -38
  136. package/dist/esm/index-92c824be.js.map +1 -0
  137. package/dist/esm/index.js +2 -0
  138. package/dist/esm/index.js.map +1 -0
  139. package/dist/esm/loader.js +23 -4
  140. package/dist/esm/loader.js.map +1 -0
  141. package/dist/esm/polyfills/css-shim.js +1 -1
  142. package/dist/esm/shadow-css-07b0c8c8.js +389 -0
  143. package/dist/esm/shadow-css-07b0c8c8.js.map +1 -0
  144. package/dist/esm-es5/app-globals-8ed931e6.js +2 -0
  145. package/dist/esm-es5/app-globals-8ed931e6.js.map +1 -0
  146. package/dist/esm-es5/css-shim-d13f0738.js +2 -0
  147. package/dist/esm-es5/css-shim-d13f0738.js.map +1 -0
  148. package/dist/esm-es5/cura-button_6.entry.js +2 -0
  149. package/dist/esm-es5/cura-button_6.entry.js.map +1 -0
  150. package/dist/esm-es5/cura-icons-view.entry.js +2 -1
  151. package/dist/esm-es5/cura-icons-view.entry.js.map +1 -0
  152. package/dist/esm-es5/cura.js +2 -1
  153. package/dist/esm-es5/cura.js.map +1 -0
  154. package/dist/esm-es5/index-92c824be.js +3 -0
  155. package/dist/esm-es5/index-92c824be.js.map +1 -0
  156. package/dist/esm-es5/index.js +2 -0
  157. package/dist/esm-es5/index.js.map +1 -0
  158. package/dist/esm-es5/loader.js +2 -1
  159. package/dist/esm-es5/loader.js.map +1 -0
  160. package/dist/esm-es5/shadow-css-07b0c8c8.js +13 -0
  161. package/dist/esm-es5/shadow-css-07b0c8c8.js.map +1 -0
  162. package/dist/{dist/loader → loader}/cdn.js +1 -1
  163. package/dist/{dist/loader → loader}/index.cjs.js +1 -1
  164. package/dist/{dist/loader → loader}/index.d.ts +10 -1
  165. package/dist/loader/index.es2017.js +3 -0
  166. package/dist/{dist/loader → loader}/index.js +2 -2
  167. package/dist/types/api/theme-presets/theme-maternity.d.ts +7 -0
  168. package/dist/types/api/theme-presets/theme-oncology.d.ts +5 -5
  169. package/dist/types/api/theme-presets/theme-presets.d.ts +12 -5
  170. package/dist/types/components/buttons/cura-button/cura-button.d.ts +54 -0
  171. package/dist/types/components.d.ts +101 -0
  172. package/dist/types/stencil-public-runtime.d.ts +77 -15
  173. package/package.json +7 -7
  174. package/dist/cjs/cura-display_4.cjs.entry.js +0 -257
  175. package/dist/cjs/cura-icon.cjs.entry.js +0 -59
  176. package/dist/cura/p-0b79032f.system.js +0 -2
  177. package/dist/cura/p-11002b56.system.js +0 -1
  178. package/dist/cura/p-32769783.system.js +0 -1
  179. package/dist/cura/p-57c5329e.js +0 -2
  180. package/dist/cura/p-5a6643e1.entry.js +0 -1
  181. package/dist/cura/p-a2ad5637.system.entry.js +0 -1
  182. package/dist/cura/p-aca36c98.js +0 -1
  183. package/dist/cura/p-bd91ecb9.system.entry.js +0 -1
  184. package/dist/cura/p-d69916ee.entry.js +0 -1
  185. package/dist/cura/p-f8a5b97d.entry.js +0 -1
  186. package/dist/dist/loader/index.es2017.js +0 -3
  187. package/dist/esm/cura-display_4.entry.js +0 -250
  188. package/dist/esm/cura-icon.entry.js +0 -55
  189. package/dist/esm-es5/app-globals-cb45bff3.js +0 -1
  190. package/dist/esm-es5/cura-display_4.entry.js +0 -1
  191. package/dist/esm-es5/cura-icon.entry.js +0 -1
  192. package/dist/esm-es5/index-7e8c969d.js +0 -2
  193. /package/dist/{dist/loader → loader}/package.json +0 -0
@@ -4,15 +4,16 @@ 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';
8
7
  this.setSelected = (icon) => {
9
8
  this.selected = icon;
10
9
  };
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"; }
16
17
  static get originalStyleUrls() {
17
18
  return {
18
19
  "$": ["cura-icons-view.scss"]
@@ -29,3 +30,4 @@ export class CuraIconsView {
29
30
  };
30
31
  }
31
32
  }
33
+ //# sourceMappingURL=cura-icons-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-icons-view.js","sourceRoot":"","sources":["../../../src/components/cura-icons-view/cura-icons-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAO1E,MAAM,OAAO,aAAa;;IAExB,UAAK,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IAC9C,WAAM,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAG9F,gBAAW,GAAG,CAAC,IAAI,EAAE,EAAE;MACrB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC,CAAA;oBAJmB,KAAK;;EAMzB,MAAM;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AAC;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, State } from '@stencil/core';\nimport iconsetdefaulticons from '../../assets/icons/iconset-default-list';\n\n@Component({\n tag: 'cura-icons-view',\n styleUrl: 'cura-icons-view.scss',\n shadow: true,\n})\nexport class CuraIconsView {\n\n sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];\n colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];\n @State() selected = '360';\n\n setSelected = (icon) => {\n this.selected = icon;\n }\n\n render() {\n return (\n <Host>\n <div class=\"iconDetail\">\n <h4>{ this.selected }</h4>\n <div class=\"iconSizes\">\n { this.sizes.map( size =>\n\n <div class=\"size\">\n <cura-icon name={this.selected} size={size}></cura-icon>\n <span>{ size }</span>\n </div>\n )}\n </div>\n <div class=\"iconSizes invert\">\n { this.sizes.map( size =>\n\n <div class=\"size\">\n <cura-icon name={this.selected} size={size} color=\"neutral-white\"></cura-icon>\n <span>{ size }</span>\n </div>\n )}\n </div>\n <div class=\"iconSizes\">\n { this.colors.map( color =>\n <div class=\"size\">\n <cura-icon name={this.selected} color={color}></cura-icon>\n <span>{ color }</span>\n </div>\n )}\n <div class=\"size\">\n <cura-icon name={this.selected} disabled></cura-icon>\n <span>Disabled</span>\n </div>\n </div>\n </div>\n <div class=\"icons\">\n { iconsetdefaulticons.map(icon =>\n <div class=\"icon\" onClick={() => this.setSelected(icon)}>\n <cura-icon name={icon}></cura-icon>\n <span>{icon}</span>\n </div>\n )}\n </div>\n </Host>\n );\n }\n\n}\n"]}
@@ -19,86 +19,86 @@
19
19
  * Responsive media for xlarge only.
20
20
  * Use: @include xlarge-only() { ... }
21
21
  */
22
- .cura-template {
22
+ :host {
23
23
  display: block;
24
24
  }
25
- .cura-template .grid-template {
25
+ :host .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
- .cura-template .grid-template #sub-header {
31
+ :host .grid-template #sub-header {
32
32
  grid-area: sub-header;
33
33
  }
34
- .cura-template .grid-template #header {
34
+ :host .grid-template #header {
35
35
  grid-area: header;
36
36
  }
37
- .cura-template .grid-template #pre-content {
37
+ :host .grid-template #pre-content {
38
38
  grid-area: pre-content;
39
39
  }
40
- .cura-template .grid-template #content-container {
40
+ :host .grid-template #content-container {
41
41
  grid-area: content-container;
42
42
  }
43
- .cura-template .grid-template #post-body {
43
+ :host .grid-template #post-body {
44
44
  grid-area: post-body;
45
45
  }
46
- .cura-template .grid-template #footer {
46
+ :host .grid-template #footer {
47
47
  grid-area: footer;
48
48
  }
49
- .cura-template .grid-template #sub-footer {
49
+ :host .grid-template #sub-footer {
50
50
  grid-area: sub-footer;
51
51
  }
52
52
  @media (max-width: 360px) {
53
- .cura-template .grid-template {
53
+ :host .grid-template {
54
54
  padding: 0px;
55
55
  }
56
56
  }
57
57
  @media (min-width: 768px) and (max-width: 1365px) {
58
- .cura-template .grid-template {
58
+ :host .grid-template {
59
59
  padding: 0px;
60
60
  }
61
61
  }
62
62
  @media (min-width: 1366px) and (max-width: 1919px) {
63
- .cura-template .grid-template {
63
+ :host .grid-template {
64
64
  padding: 0px;
65
65
  }
66
- .cura-template .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
66
+ :host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
67
67
  margin-right: calc(var(--spacing) * 5px);
68
68
  }
69
- .cura-template .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
69
+ :host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
70
70
  margin-left: calc(var(--spacing) * 5px);
71
71
  }
72
- .cura-template .grid-template #content-container {
72
+ :host .grid-template #content-container {
73
73
  display: flex;
74
74
  }
75
- .cura-template .grid-template #content-container #content {
75
+ :host .grid-template #content-container #content {
76
76
  flex-grow: 1;
77
77
  }
78
- .cura-template .grid-template #content-container #sidebar-left, .cura-template .grid-template #content-container #sidebar-right {
78
+ :host .grid-template #content-container #sidebar-left, :host .grid-template #content-container #sidebar-right {
79
79
  max-width: 20%;
80
80
  }
81
81
  }
82
82
  @media (min-width: 1920px) {
83
- .cura-template .grid-template {
83
+ :host .grid-template {
84
84
  padding: 0px;
85
85
  }
86
- .cura-template .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
86
+ :host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]) {
87
87
  margin-right: calc(var(--spacing) * 7px);
88
88
  }
89
- .cura-template .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
89
+ :host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]) {
90
90
  margin-left: calc(var(--spacing) * 7px);
91
91
  }
92
- .cura-template .grid-template #content-container {
92
+ :host .grid-template #content-container {
93
93
  display: flex;
94
94
  }
95
- .cura-template .grid-template #content-container #content {
95
+ :host .grid-template #content-container #content {
96
96
  flex-grow: 1;
97
97
  }
98
- .cura-template .grid-template #content-container #sidebar-left, .cura-template .grid-template #content-container #sidebar-right {
98
+ :host .grid-template #content-container #sidebar-left, :host .grid-template #content-container #sidebar-right {
99
99
  max-width: 20%;
100
100
  }
101
- .cura-template .grid-template #content-container.centered {
101
+ :host .grid-template #content-container.centered {
102
102
  max-width: 1920px;
103
103
  justify-self: center;
104
104
  }
@@ -14,9 +14,10 @@ export class CuraPageTemplate {
14
14
  return classes;
15
15
  }
16
16
  render() {
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' })))));
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' })))));
18
18
  }
19
19
  static get is() { return "cura-page-template"; }
20
+ static get encapsulation() { return "shadow"; }
20
21
  static get originalStyleUrls() {
21
22
  return {
22
23
  "$": ["cura-page-template.scss"]
@@ -51,3 +52,4 @@ export class CuraPageTemplate {
51
52
  }
52
53
  static get elementRef() { return "host"; }
53
54
  }
55
+ //# sourceMappingURL=cura-page-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-page-template.js","sourceRoot":"","sources":["../../../src/components/cura-page-template/cura-page-template.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,gBAAgB;;wBAEmC,SAAS;;EAMvE,iBAAiB;IACf,IAAI,CAAC,MAAM,GAAG;MACZ,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE;KACvD,CAAA;EACH,CAAC;EAED,UAAU;IACR,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC;IAChD,OAAO,OAAO,CAAC;EACjB,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WAAK,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,eAAe;QAC5C,WAAK,EAAE,EAAC,YAAY;UAClB,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC3B;QACN,WAAK,EAAE,EAAC,QAAQ;UACd,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB;QACN,WAAK,EAAE,EAAC,aAAa;UACnB,YAAM,IAAI,EAAC,aAAa,GAAQ,CAC5B;QACN,WAAK,EAAE,EAAC,mBAAmB,EAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;UAClD,WAAK,EAAE,EAAC,cAAc;YACpB,YAAM,IAAI,EAAC,cAAc,GAAQ,CAC7B;UACN,WAAK,EAAE,EAAC,SAAS;YACf,YAAM,IAAI,EAAC,SAAS,GAAQ;YAC5B,eAAa,CACT;UACN,WAAK,EAAE,EAAC,eAAe;YACrB,YAAM,IAAI,EAAC,eAAe,GAAQ,CAC9B,CACF;QACN,WAAK,EAAE,EAAC,WAAW;UACjB,YAAM,IAAI,EAAC,WAAW,GAAQ,CAC1B;QACN,WAAK,EAAE,EAAC,QAAQ;UACd,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB;QACN,WAAK,EAAE,EAAC,YAAY;UAClB,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC3B,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Element, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-page-template',\n styleUrl: 'cura-page-template.scss',\n shadow: true,\n})\nexport class CuraPageTemplate {\n\n @Prop({reflect: true}) contentwidth: 'default' | 'centered' = 'default';\n\n @Element() host: HTMLElement;\n\n styles: any;\n\n connectedCallback() {\n this.styles = {\n '--spacing': window.CuraAPI.theme.spacing.getSpacing(),\n }\n }\n\n getClasses() {\n const classes = {};\n classes[this.contentwidth.toLowerCase()] = true;\n return classes;\n }\n\n render() {\n return (\n <Host>\n <div style={this.styles} class=\"grid-template\">\n <div id=\"sub-header\">\n <slot name='sub-header'></slot>\n </div>\n <div id=\"header\">\n <slot name='header'></slot>\n </div>\n <div id=\"pre-content\">\n <slot name='pre-content'></slot>\n </div>\n <div id=\"content-container\" class={this.getClasses()}>\n <div id=\"sidebar-left\">\n <slot name='sidebar-left'></slot>\n </div>\n <div id=\"content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n <div id=\"sidebar-right\">\n <slot name='sidebar-right'></slot>\n </div>\n </div>\n <div id=\"post-body\">\n <slot name='post-body'></slot>\n </div>\n <div id=\"footer\">\n <slot name='footer'></slot>\n </div>\n <div id=\"sub-footer\">\n <slot name='sub-footer'></slot>\n </div>\n </div>\n </Host>\n );\n }\n\n}\n"]}
@@ -19,12 +19,12 @@
19
19
  * Responsive media for xlarge only.
20
20
  * Use: @include xlarge-only() { ... }
21
21
  */
22
- .cura-display {
22
+ :host {
23
23
  display: block;
24
24
  font-size: var(--font-size);
25
25
  text-transform: uppercase;
26
26
  }
27
- .cura-display h1, .cura-display h2, .cura-display h3, .cura-display h4, .cura-display h5, .cura-display h6 {
27
+ :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
28
28
  font-family: var(--font-family);
29
29
  font-size: 4.285em;
30
30
  font-weight: var(--font-weight-black);
@@ -34,50 +34,49 @@
34
34
  margin-block-start: var(--block-margin);
35
35
  margin-block-end: var(--block-margin);
36
36
  }
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 {
37
+ :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
38
38
  font-size: 6.21em;
39
39
  }
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 {
40
+ :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host 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
- .cura-display h1, .cura-display h2, .cura-display h3, .cura-display h4, .cura-display h5, .cura-display h6 {
45
+ :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
46
46
  font-size: 4.92em;
47
47
  }
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 {
48
+ :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
49
49
  font-size: 7.07em;
50
50
  }
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 {
51
+ :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
52
52
  font-size: 3.428em;
53
53
  }
54
54
  }
55
55
  @media (min-width: 1366px) {
56
- .cura-display h1, .cura-display h2, .cura-display h3, .cura-display h4, .cura-display h5, .cura-display h6 {
56
+ :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
57
57
  font-size: 6.14em;
58
58
  line-height: 125%;
59
59
  }
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 {
60
+ :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
61
61
  font-size: 8.857em;
62
62
  letter-spacing: -6%;
63
63
  }
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 {
64
+ :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
65
65
  font-size: 4.285em;
66
66
  letter-spacing: -2%;
67
67
  }
68
68
  }
69
- .cura-display b,
70
- .cura-display strong {
69
+ :host ::slotted(b), :host ::slotted(strong) {
71
70
  font-weight: var(--font-weight-bold);
72
71
  }
73
- .cura-display a {
72
+ :host ::slotted(a) {
74
73
  font-weight: var(--font-weight-bold);
75
74
  color: var(--color-link);
76
75
  text-decoration: none;
77
76
  text-underline-offset: 10%;
78
77
  cursor: pointer;
79
78
  }
80
- .cura-display abbr {
79
+ :host ::slotted(abbr) {
81
80
  color: var(--color-link);
82
81
  text-decoration: underline dashed 1px var(--color-link);
83
82
  text-underline-offset: 10%;
@@ -1,25 +1,9 @@
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
- */
8
4
  this.level = 1;
9
- /**
10
- * Heading style size.
11
- * Values: small | regular(default) | large.
12
- */
13
5
  this.size = 'regular';
14
- /**
15
- * Apply light color to text in dark background.
16
- * Values: boolean.
17
- */
18
6
  this.inverted = false;
19
- /**
20
- * Apply base system color to elements like <a> and <abbr>.
21
- * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
22
- */
23
7
  this.spotColor = 'primary';
24
8
  }
25
9
  connectedCallback() {
@@ -67,9 +51,10 @@ export class CuraDisplay {
67
51
  return tags[`${this.level}`] || tags['default'];
68
52
  }
69
53
  render() {
70
- return (h(Host, { class: "cura-display" }, this.getHeadingTag()));
54
+ return (h(Host, null, this.getHeadingTag()));
71
55
  }
72
56
  static get is() { return "cura-display"; }
57
+ static get encapsulation() { return "shadow"; }
73
58
  static get originalStyleUrls() {
74
59
  return {
75
60
  "$": ["cura-display.scss"]
@@ -158,3 +143,4 @@ export class CuraDisplay {
158
143
  }
159
144
  static get elementRef() { return "host"; }
160
145
  }
146
+ //# sourceMappingURL=cura-display.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-display.js","sourceRoot":"","sources":["../../../../src/components/text/cura-display/cura-display.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,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C,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;QAAE,eAAa,CAAK;MACzE,SAAS,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;QAAE,eAAa,CAAK;KAChF,CAAC;IACF,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;EAClD,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,QACD,IAAI,CAAC,aAAa,EAAE,CACjB,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Element, Prop } from '@stencil/core';\n\n@Component({\n tag: 'cura-display',\n styleUrl: 'cura-display.scss',\n shadow: true,\n})\nexport class CuraDisplay {\n\n /**\n * Heading level for semantics.\n * Values: 1(default)-6.\n */\n @Prop({reflect: true}) level = 1;\n /**\n * Heading style size.\n * Values: small | regular(default) | large.\n */\n @Prop({reflect: true}) size = 'regular';\n /**\n * Apply light color to text in dark background.\n * Values: boolean.\n */\n @Prop({reflect: true}) inverted = false;\n /**\n * Apply base system color to elements like <a> and <abbr>.\n * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.\n */\n @Prop({reflect: true}) spotColor = 'primary';\n \n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n \n /**\n * Internal Props\n */\n weights: any;\n styles: any;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n return classes;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '0.5em');\n }\n\n setColors() {\n const fontColor = this.inverted \n ? window.CuraAPI.theme.colors.getColor('neutral-100') \n : window.CuraAPI.theme.fonts.getColor();\n this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');\n this.styles['--color-link'] = this.inverted \n ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)\n : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"]}
@@ -19,11 +19,11 @@
19
19
  * Responsive media for xlarge only.
20
20
  * Use: @include xlarge-only() { ... }
21
21
  */
22
- .cura-heading {
22
+ :host {
23
23
  display: block;
24
24
  font-size: var(--font-size);
25
25
  }
26
- .cura-heading h1, .cura-heading h2, .cura-heading h3, .cura-heading h4, .cura-heading h5, .cura-heading h6 {
26
+ :host h1, :host h2, :host h3, :host h4, :host h5, :host 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
- .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 {
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 {
37
37
  font-weight: var(--font-weight-medium);
38
38
  }
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 {
39
+ :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
40
40
  font-size: 2.07em;
41
41
  letter-spacing: -2%;
42
42
  }
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 {
43
+ :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
44
44
  font-size: 1.214em;
45
45
  line-height: 150%;
46
46
  letter-spacing: 0%;
47
47
  }
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 {
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 {
49
49
  font-weight: var(--font-weight-bold);
50
50
  }
51
51
  @media (min-width: 768px) and (max-width: 1365px) {
52
- .cura-heading h1, .cura-heading h2, .cura-heading h3, .cura-heading h4, .cura-heading h5, .cura-heading h6 {
52
+ :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
53
53
  font-size: 2em;
54
54
  }
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 {
55
+ :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
56
56
  font-size: 2.357em;
57
57
  }
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 {
58
+ :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
59
59
  font-size: 1.357em;
60
60
  }
61
61
  }
62
62
  @media (min-width: 1366px) {
63
- .cura-heading h1, .cura-heading h2, .cura-heading h3, .cura-heading h4, .cura-heading h5, .cura-heading h6 {
63
+ :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
64
64
  font-size: 2.5em;
65
65
  line-height: 135%;
66
66
  letter-spacing: -2%;
67
67
  }
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 {
68
+ :host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
69
69
  font-size: 2.92em;
70
70
  }
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 {
71
+ :host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
72
72
  font-size: 1.71em;
73
73
  line-height: 160%;
74
74
  letter-spacing: 0%;
75
75
  }
76
76
  }
77
- .cura-heading b, .cura-heading strong {
77
+ :host ::slotted(b), :host ::slotted(strong) {
78
78
  font-weight: var(--font-weight-bold);
79
79
  }
80
- .cura-heading a {
80
+ :host ::slotted(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
- .cura-heading abbr {
87
+ :host ::slotted(abbr) {
88
88
  color: var(--color-link);
89
89
  text-decoration: underline dashed 1px var(--color-link);
90
90
  text-underline-offset: 10%;
@@ -1,30 +1,10 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  export class CuraHeading {
3
3
  constructor() {
4
- /**
5
- * Heading level for semantics.
6
- * Values: 1(default)-6.
7
- */
8
4
  this.level = 1;
9
- /**
10
- * Heading style size.
11
- * Values: small | regular(default) | large.
12
- */
13
5
  this.size = 'regular';
14
- /**
15
- * Heading font weight.
16
- * Values: regular(default) | bold.
17
- */
18
6
  this.weight = 'regular';
19
- /**
20
- * Apply light color to text in dark background.
21
- * Values: boolean.
22
- */
23
7
  this.inverted = false;
24
- /**
25
- * Apply base system color to elements like <a> and <abbr>.
26
- * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
27
- */
28
8
  this.spotColor = 'primary';
29
9
  }
30
10
  connectedCallback() {
@@ -75,9 +55,10 @@ export class CuraHeading {
75
55
  return tags[`${this.level}`] || tags['default'];
76
56
  }
77
57
  render() {
78
- return (h(Host, { class: "cura-heading" }, this.getHeadingTag()));
58
+ return (h(Host, null, this.getHeadingTag()));
79
59
  }
80
60
  static get is() { return "cura-heading"; }
61
+ static get encapsulation() { return "shadow"; }
81
62
  static get originalStyleUrls() {
82
63
  return {
83
64
  "$": ["cura-heading.scss"]
@@ -184,3 +165,4 @@ export class CuraHeading {
184
165
  }
185
166
  static get elementRef() { return "host"; }
186
167
  }
168
+ //# sourceMappingURL=cura-heading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-heading.js","sourceRoot":"","sources":["../../../../src/components/text/cura-heading/cura-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,WAAW;;iBAMS,CAAC;gBAKF,SAAS;kBAKP,SAAS;oBAKP,KAAK;qBAKJ,SAAS;;EAa5C,iBAAiB;IACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzB,IAAI,CAAC,SAAS,EAAE,CAAC;EACnB,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MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;QAAE,eAAa,CAAK;KAChF,CAAC;IACF,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;EAClD,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,QACD,IAAI,CAAC,aAAa,EAAE,CACjB,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Element } from '@stencil/core';\n\n@Component({\n tag: 'cura-heading',\n styleUrl: 'cura-heading.scss',\n shadow: true,\n})\nexport class CuraHeading {\n\n /**\n * Heading level for semantics.\n * Values: 1(default)-6.\n */\n @Prop({reflect: true}) level = 1;\n /**\n * Heading style size.\n * Values: small | regular(default) | large.\n */\n @Prop({reflect: true}) size = 'regular';\n /**\n * Heading font weight.\n * Values: regular(default) | bold.\n */\n @Prop({reflect: true}) weight = 'regular';\n /**\n * Apply light color to text in dark background.\n * Values: boolean.\n */\n @Prop({reflect: true}) inverted = false;\n /**\n * Apply base system color to elements like <a> and <abbr>.\n * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.\n */\n @Prop({reflect: true}) spotColor = 'primary';\n\n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n styles: any;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n classes[`${this.weight.toLowerCase()}-weight`] = true;\n return classes;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '0.5em');\n }\n\n setColors() {\n const fontColor = this.inverted \n ? window.CuraAPI.theme.colors.getColor('neutral-100') \n : window.CuraAPI.theme.fonts.getColor();\n this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');\n this.styles['--color-link'] = this.inverted \n ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)\n : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"]}
@@ -19,11 +19,11 @@
19
19
  * Responsive media for xlarge only.
20
20
  * Use: @include xlarge-only() { ... }
21
21
  */
22
- .cura-paragraph {
22
+ :host {
23
23
  display: block;
24
24
  font-size: var(--font-size);
25
25
  }
26
- .cura-paragraph p {
26
+ :host p {
27
27
  font-family: var(--font-family);
28
28
  font-size: var(--font-size);
29
29
  font-weight: var(--font-weight-regular);
@@ -33,71 +33,70 @@
33
33
  margin-block-start: var(--block-margin);
34
34
  margin-block-end: var(--block-margin);
35
35
  }
36
- .cura-paragraph p.large {
36
+ :host p.large {
37
37
  font-size: 1.21em;
38
38
  line-height: 150%;
39
39
  letter-spacing: 0%;
40
40
  }
41
- .cura-paragraph p.small {
41
+ :host p.small {
42
42
  font-size: 0.85em;
43
43
  line-height: 135%;
44
44
  letter-spacing: 4%;
45
45
  }
46
- .cura-paragraph p.caption {
46
+ :host p.caption {
47
47
  font-size: 0.71em;
48
48
  line-height: 135%;
49
49
  letter-spacing: 6%;
50
50
  }
51
51
  @media (min-width: 768px) and (max-width: 1365px) {
52
- .cura-paragraph p {
52
+ :host p {
53
53
  font-size: 1.14em;
54
54
  line-height: 145%;
55
55
  }
56
- .cura-paragraph p.large {
56
+ :host p.large {
57
57
  font-size: 1.35em;
58
58
  line-height: 150%;
59
59
  }
60
- .cura-paragraph p.small {
60
+ :host p.small {
61
61
  font-size: 1em;
62
62
  line-height: 135%;
63
63
  }
64
- .cura-paragraph p.caption {
64
+ :host p.caption {
65
65
  font-size: 0.85em;
66
66
  line-height: 135%;
67
67
  letter-spacing: 6%;
68
68
  }
69
69
  }
70
70
  @media (min-width: 1366px) {
71
- .cura-paragraph p {
71
+ :host p {
72
72
  font-size: 1.42em;
73
73
  line-height: 150%;
74
74
  letter-spacing: 0%;
75
75
  }
76
- .cura-paragraph p.large {
76
+ :host p.large {
77
77
  font-size: 1.71em;
78
78
  line-height: 160%;
79
79
  }
80
- .cura-paragraph p.small {
80
+ :host p.small {
81
81
  font-size: 1.21em;
82
82
  line-height: 145%;
83
83
  letter-spacing: 0%;
84
84
  }
85
- .cura-paragraph p.caption {
85
+ :host p.caption {
86
86
  font-size: 1em;
87
87
  line-height: 145%;
88
88
  letter-spacing: 2%;
89
89
  }
90
90
  }
91
- .cura-paragraph b,
92
- .cura-paragraph strong {
91
+ :host ::slotted(b), :host ::slotted(strong) {
93
92
  font-weight: var(--font-weight-bold);
94
93
  }
95
- .cura-paragraph a {
94
+ :host ::slotted(a) {
96
95
  font-weight: var(--font-weight-medium);
97
96
  color: var(--color-link);
98
97
  text-underline-offset: 10%;
99
98
  }
100
- .cura-paragraph abbr {
99
+ :host ::slotted(abbr) {
101
100
  color: var(--color-link);
102
101
  text-decoration: underline dashed 1px var(--color-link);
103
102
  text-underline-offset: 10%;
@@ -1,20 +1,8 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  export class CuraParagraph {
3
3
  constructor() {
4
- /**
5
- * Set size of body text.
6
- * Values: regular (default) | large | small | caption.
7
- */
8
4
  this.size = 'regular';
9
- /**
10
- * Apply light color to text in dark background.
11
- * Values: boolean.
12
- */
13
5
  this.inverted = false;
14
- /**
15
- * Apply base system color to elements like <a> and <abbr>.
16
- * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
17
- */
18
6
  this.spotColor = 'primary';
19
7
  }
20
8
  connectedCallback() {
@@ -51,9 +39,10 @@ export class CuraParagraph {
51
39
  this.host.style.setProperty(prop, value);
52
40
  }
53
41
  render() {
54
- return (h(Host, { class: "cura-paragraph" }, h("p", { style: this.styles, class: this.setsizeClass() }, h("slot", null))));
42
+ return (h(Host, null, h("p", { style: this.styles, class: this.setsizeClass() }, h("slot", null))));
55
43
  }
56
44
  static get is() { return "cura-paragraph"; }
45
+ static get encapsulation() { return "shadow"; }
57
46
  static get originalStyleUrls() {
58
47
  return {
59
48
  "$": ["cura-paragraph.scss"]
@@ -124,3 +113,4 @@ export class CuraParagraph {
124
113
  }
125
114
  static get elementRef() { return "host"; }
126
115
  }
116
+ //# sourceMappingURL=cura-paragraph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-paragraph.js","sourceRoot":"","sources":["../../../../src/components/text/cura-paragraph/cura-paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,aAAa;;gBAMM,SAAS;oBAKL,KAAK;qBAKJ,SAAS;;EAa5C,iBAAiB;IACf,IAAI,CA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CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAClG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,QAAQ;MACzC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,MAAM,CAAC;MAC/D,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,MAAM,CAAC,CAAC;EACpE,CAAC;EAED,eAAe,CAAC,IAAY,EAAE,KAAa;IACzC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;EAC3C,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,SAAG,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE;QAC/C,eAAa,CACX,CACC,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, Prop, h, Element } from '@stencil/core';\n\n@Component({\n tag: 'cura-paragraph',\n styleUrl: 'cura-paragraph.scss',\n shadow: true,\n})\nexport class CuraParagraph {\n\n /**\n * Set size of body text.\n * Values: regular (default) | large | small | caption.\n */\n @Prop({reflect: true}) size = 'regular';\n /**\n * Apply light color to text in dark background.\n * Values: boolean.\n */\n @Prop({reflect: true}) inverted = false;\n /**\n * Apply base system color to elements like <a> and <abbr>.\n * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.\n */\n @Prop({reflect: true}) spotColor = 'primary';\n \n /**\n * Host element <cura-paragraph>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n styles: any;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n setsizeClass() {\n const sizeclass = {};\n sizeclass[this.size.toLowerCase()] = true;\n return sizeclass;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('body'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '1.25em');\n }\n\n setColors() {\n const fontColor = this.inverted \n ? window.CuraAPI.theme.colors.getColor('neutral-100') \n : window.CuraAPI.theme.fonts.getColor();\n this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');\n this.styles['--color-link'] = this.inverted \n ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-100`)\n : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-700`);\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n render() {\n return (\n <Host>\n <p style={this.styles} class={this.setsizeClass()}>\n <slot></slot>\n </p>\n </Host>\n );\n }\n\n}\n"]}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"","sourcesContent":["export { Components, JSX } from './components';\n"]}
@@ -7,3 +7,4 @@ export default function () {
7
7
  if (config && typeof config.onReady === 'function')
8
8
  config.onReady(api);
9
9
  }
10
+ //# sourceMappingURL=rededor-cura-start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rededor-cura-start.js","sourceRoot":"","sources":["../src/rededor-cura-start.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAYrC,MAAM,CAAC,OAAO;EACZ,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;EAC/B,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;EAC9D,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;EAC3B,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,EAAC,GAAG,EAAC,EAAE,CAAC,CAAC,CAAC;EACzE,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU;IAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC1E,CAAC","sourcesContent":["import CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\n// import { setAssetPath } from '@stencil/core';\n\n// setAssetPath(import.meta.url);\ndeclare global {\n interface Window {\n CuraAPI?: CuraAPI,\n CuraInit?: CuraConfig\n }\n}\n\nexport default function() {\n const config = window.CuraInit;\n window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();\n const api = window.CuraAPI;\n window.dispatchEvent(new CustomEvent(\"CuraAPIReady\", { detail: {api} }));\n if (config && typeof config.onReady === 'function') config.onReady(api);\n}\n"]}
@@ -1,3 +1,4 @@
1
1
  export function format(first, middle, last) {
2
2
  return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
3
  }
4
+ //# sourceMappingURL=utils.js.map