@rededor/cura 0.5.1 → 0.5.3

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 (375) hide show
  1. package/dist/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/icons/iconset-default-tmp.svg +4 -0
  3. package/dist/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/{app-globals-0e3b7fc6.js → app-globals-2988084b.js} +5 -5
  5. package/dist/cjs/app-globals-2988084b.js.map +1 -0
  6. package/dist/cjs/cura-accordion_8.cjs.entry.js +445 -0
  7. package/dist/cjs/cura-accordion_8.cjs.entry.js.map +1 -0
  8. package/dist/cjs/cura-alert.cjs.entry.js +67 -0
  9. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -0
  10. package/dist/cjs/cura-button-outline.cjs.entry.js +83 -0
  11. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -0
  12. package/dist/cjs/cura-button-select.cjs.entry.js +97 -0
  13. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -0
  14. package/dist/cjs/cura-button-transparent.cjs.entry.js +83 -0
  15. package/dist/cjs/cura-button-transparent.cjs.entry.js.map +1 -0
  16. package/dist/cjs/cura-checkbox.cjs.entry.js +144 -0
  17. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -0
  18. package/dist/cjs/cura-display.cjs.entry.js +74 -0
  19. package/dist/cjs/cura-display.cjs.entry.js.map +1 -0
  20. package/dist/cjs/cura-forms.definitions-11be2ebd.js +20 -0
  21. package/dist/cjs/cura-forms.definitions-11be2ebd.js.map +1 -0
  22. package/dist/cjs/cura-icon.definitions-b73b0178.js +21 -0
  23. package/dist/cjs/cura-icon.definitions-b73b0178.js.map +1 -0
  24. package/dist/cjs/cura-icons-view.cjs.entry.js +36 -0
  25. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -0
  26. package/dist/cjs/cura-input-text.cjs.entry.js +3907 -0
  27. package/dist/cjs/cura-input-text.cjs.entry.js.map +1 -0
  28. package/dist/cjs/cura-label.cjs.entry.js +69 -0
  29. package/dist/cjs/cura-label.cjs.entry.js.map +1 -0
  30. package/dist/cjs/cura-radio.cjs.entry.js +114 -0
  31. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -0
  32. package/dist/cjs/cura-switch.cjs.entry.js +89 -0
  33. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -0
  34. package/dist/cjs/cura.cjs.js +3 -3
  35. package/dist/cjs/{index-404d93e9.js → index-7616f620.js} +35 -1
  36. package/dist/cjs/index-7616f620.js.map +1 -0
  37. package/dist/cjs/index.cjs.js +7 -0
  38. package/dist/cjs/index.cjs.js.map +1 -1
  39. package/dist/cjs/loader.cjs.js +3 -3
  40. package/dist/collection/api/cura-api.type.js.map +1 -1
  41. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +1 -1
  42. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -1
  43. package/dist/collection/api/modules/cura-theme-colors-module.js +1 -1
  44. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
  45. package/dist/collection/api/theme-presets/static.js +2 -2
  46. package/dist/collection/api/theme-presets/static.js.map +1 -1
  47. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  48. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  49. package/dist/collection/assets/icons/iconset-default-tmp.svg +4 -0
  50. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  51. package/dist/collection/assets-raw/icons/default/swap.svg +3 -0
  52. package/dist/collection/collection-manifest.json +7 -0
  53. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +10 -6
  54. package/dist/collection/components/buttons/cura-button/cura-button.css +4 -0
  55. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +2 -2
  56. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
  57. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +4 -0
  58. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +2 -2
  59. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
  60. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +139 -0
  61. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +263 -0
  62. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -0
  63. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +4 -0
  64. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +2 -2
  65. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
  66. package/dist/collection/components/cura-alert/cura-alert.css +30 -0
  67. package/dist/collection/components/cura-alert/cura-alert.js +167 -0
  68. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -0
  69. package/dist/collection/components/cura-alert/cura-alert.stories.js +95 -0
  70. package/dist/collection/components/cura-alert/cura-alert.stories.js.map +1 -0
  71. package/dist/collection/components/cura-icon/cura-icon.definitions.js +15 -0
  72. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -0
  73. package/dist/collection/components/cura-icon/cura-icon.js +9 -16
  74. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  75. package/dist/collection/components/cura-icon/cura-icon.stories.js +7 -6
  76. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
  77. package/dist/collection/components/cura-icons-view/cura-icons-view.css +16 -17
  78. package/dist/collection/components/cura-icons-view/cura-icons-view.js +10 -3
  79. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  80. package/dist/collection/components/cura-page-template/cura-page-template.css +13 -9
  81. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +163 -0
  82. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +431 -0
  83. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -0
  84. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +196 -0
  85. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -0
  86. package/dist/collection/components/forms/cura-forms.definitions.js +15 -0
  87. package/dist/collection/components/forms/cura-forms.definitions.js.map +1 -0
  88. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +326 -0
  89. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +655 -0
  90. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -0
  91. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +224 -0
  92. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -0
  93. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +46 -0
  94. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -0
  95. package/dist/collection/components/forms/cura-label/cura-label.css +70 -0
  96. package/dist/collection/components/forms/cura-label/cura-label.js +190 -0
  97. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -0
  98. package/dist/collection/components/forms/cura-label/cura-label.stories.js +137 -0
  99. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -0
  100. package/dist/collection/components/forms/cura-radio/cura-radio.css +146 -0
  101. package/dist/collection/components/forms/cura-radio/cura-radio.js +365 -0
  102. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -0
  103. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +175 -0
  104. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -0
  105. package/dist/collection/components/forms/cura-switch/cura-switch.css +100 -0
  106. package/dist/collection/components/forms/cura-switch/cura-switch.js +266 -0
  107. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -0
  108. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +137 -0
  109. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -0
  110. package/dist/collection/components/text/cura-display/cura-display.css +21 -38
  111. package/dist/collection/components/text/cura-display/cura-display.js +80 -49
  112. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  113. package/dist/collection/components/text/cura-display/cura-display.stories.js +78 -33
  114. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -1
  115. package/dist/collection/components/text/cura-heading/cura-heading.css +50 -24
  116. package/dist/collection/components/text/cura-heading/cura-heading.js +94 -39
  117. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  118. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +92 -36
  119. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
  120. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +37 -38
  121. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +62 -41
  122. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  123. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +78 -46
  124. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
  125. package/dist/collection/index.js +3 -1
  126. package/dist/collection/index.js.map +1 -1
  127. package/dist/components/cura-accordion-item.js +1 -1
  128. package/dist/components/cura-accordion-item.js.map +1 -1
  129. package/dist/components/cura-alert.d.ts +11 -0
  130. package/dist/components/cura-alert.js +105 -0
  131. package/dist/components/cura-alert.js.map +1 -0
  132. package/dist/components/cura-button-select.d.ts +11 -0
  133. package/dist/components/cura-button-select.js +127 -0
  134. package/dist/components/cura-button-select.js.map +1 -0
  135. package/dist/components/cura-checkbox.d.ts +11 -0
  136. package/dist/components/cura-checkbox.js +192 -0
  137. package/dist/components/cura-checkbox.js.map +1 -0
  138. package/dist/components/cura-display.js +41 -35
  139. package/dist/components/cura-display.js.map +1 -1
  140. package/dist/components/cura-forms.definitions.js +18 -0
  141. package/dist/components/cura-forms.definitions.js.map +1 -0
  142. package/dist/components/cura-heading.js +1 -87
  143. package/dist/components/cura-heading.js.map +1 -1
  144. package/dist/components/cura-heading2.js +104 -0
  145. package/dist/components/cura-heading2.js.map +1 -0
  146. package/dist/components/cura-icon2.js +24 -17
  147. package/dist/components/cura-icon2.js.map +1 -1
  148. package/dist/components/cura-icons-view.js +31 -7
  149. package/dist/components/cura-icons-view.js.map +1 -1
  150. package/dist/components/cura-input-text.d.ts +11 -0
  151. package/dist/components/cura-input-text.js +3961 -0
  152. package/dist/components/cura-input-text.js.map +1 -0
  153. package/dist/components/cura-label.d.ts +11 -0
  154. package/dist/components/cura-label.js +8 -0
  155. package/dist/components/cura-label.js.map +1 -0
  156. package/dist/components/cura-label2.js +88 -0
  157. package/dist/components/cura-label2.js.map +1 -0
  158. package/dist/components/cura-page-template.js +1 -1
  159. package/dist/components/cura-page-template.js.map +1 -1
  160. package/dist/components/cura-paragraph.js +1 -80
  161. package/dist/components/cura-paragraph.js.map +1 -1
  162. package/dist/components/cura-paragraph2.js +86 -0
  163. package/dist/components/cura-paragraph2.js.map +1 -0
  164. package/dist/components/cura-radio.d.ts +11 -0
  165. package/dist/components/cura-radio.js +154 -0
  166. package/dist/components/cura-radio.js.map +1 -0
  167. package/dist/components/cura-switch.d.ts +11 -0
  168. package/dist/components/cura-switch.js +119 -0
  169. package/dist/components/cura-switch.js.map +1 -0
  170. package/dist/components/index.js +23 -5
  171. package/dist/components/index.js.map +1 -1
  172. package/dist/cura/cura.esm.js +1 -1
  173. package/dist/cura/cura.esm.js.map +1 -1
  174. package/dist/cura/cura.js +1 -1
  175. package/dist/cura/index.esm.js +1 -1
  176. package/dist/cura/index.esm.js.map +1 -1
  177. package/dist/cura/p-120926c5.system.js +2 -0
  178. package/dist/cura/p-120926c5.system.js.map +1 -0
  179. package/dist/cura/p-1228e771.entry.js +2 -0
  180. package/dist/cura/p-1228e771.entry.js.map +1 -0
  181. package/dist/cura/p-2d42ccf4.entry.js +2 -0
  182. package/dist/cura/p-2d42ccf4.entry.js.map +1 -0
  183. package/dist/cura/p-3688570d.js +2 -0
  184. package/dist/cura/p-3688570d.js.map +1 -0
  185. package/dist/cura/p-36a83bc7.system.js +3 -0
  186. package/dist/cura/p-36a83bc7.system.js.map +1 -0
  187. package/dist/cura/p-3f3355f3.system.entry.js +2 -0
  188. package/dist/cura/p-3f3355f3.system.entry.js.map +1 -0
  189. package/dist/cura/p-48426f60.system.js +2 -0
  190. package/dist/cura/p-48426f60.system.js.map +1 -0
  191. package/dist/cura/p-4df84c9e.entry.js +2 -0
  192. package/dist/cura/p-4df84c9e.entry.js.map +1 -0
  193. package/dist/cura/p-70cefaf8.entry.js +2 -0
  194. package/dist/cura/p-70cefaf8.entry.js.map +1 -0
  195. package/dist/cura/p-72a9ed55.entry.js +2 -0
  196. package/dist/cura/p-72a9ed55.entry.js.map +1 -0
  197. package/dist/cura/p-75b2e4d1.system.entry.js +2 -0
  198. package/dist/cura/p-75b2e4d1.system.entry.js.map +1 -0
  199. package/dist/cura/p-880917c1.entry.js +2 -0
  200. package/dist/cura/p-880917c1.entry.js.map +1 -0
  201. package/dist/cura/p-9471c93e.system.entry.js +2 -0
  202. package/dist/cura/p-9471c93e.system.entry.js.map +1 -0
  203. package/dist/cura/p-98014544.entry.js +2 -0
  204. package/dist/cura/p-98014544.entry.js.map +1 -0
  205. package/dist/cura/p-98352c92.system.entry.js +2 -0
  206. package/dist/cura/p-98352c92.system.entry.js.map +1 -0
  207. package/dist/cura/p-a32889a4.system.js +2 -0
  208. package/dist/cura/p-a32889a4.system.js.map +1 -0
  209. package/dist/cura/p-a6d20c12.system.entry.js +2 -0
  210. package/dist/cura/p-a6d20c12.system.entry.js.map +1 -0
  211. package/dist/cura/p-ab8c9a8f.system.entry.js +2 -0
  212. package/dist/cura/p-ab8c9a8f.system.entry.js.map +1 -0
  213. package/dist/cura/p-ad194144.entry.js +2 -0
  214. package/dist/cura/p-ad194144.entry.js.map +1 -0
  215. package/dist/cura/p-b0e13882.system.entry.js +2 -0
  216. package/dist/cura/p-b0e13882.system.entry.js.map +1 -0
  217. package/dist/cura/p-ba66d7be.js +3 -0
  218. package/dist/cura/{p-c0c00396.system.js.map → p-ba66d7be.js.map} +1 -1
  219. package/dist/cura/p-bb3f9d05.entry.js +2 -0
  220. package/dist/cura/p-bb3f9d05.entry.js.map +1 -0
  221. package/dist/cura/p-c791725b.js +2 -0
  222. package/dist/cura/p-c791725b.js.map +1 -0
  223. package/dist/cura/p-c9afb94f.entry.js +2 -0
  224. package/dist/cura/p-c9afb94f.entry.js.map +1 -0
  225. package/dist/cura/p-d3f9c888.system.js +2 -0
  226. package/dist/cura/p-d3f9c888.system.js.map +1 -0
  227. package/dist/cura/p-e5e259fd.system.entry.js +2 -0
  228. package/dist/cura/p-e5e259fd.system.entry.js.map +1 -0
  229. package/dist/cura/p-edeffbfc.entry.js +2 -0
  230. package/dist/cura/p-edeffbfc.entry.js.map +1 -0
  231. package/dist/cura/p-eea5ca70.system.entry.js +2 -0
  232. package/dist/cura/p-eea5ca70.system.entry.js.map +1 -0
  233. package/dist/cura/p-f6e61abf.system.entry.js +2 -0
  234. package/dist/cura/p-f6e61abf.system.entry.js.map +1 -0
  235. package/dist/cura/p-f89f2ecc.system.entry.js +2 -0
  236. package/dist/cura/p-f89f2ecc.system.entry.js.map +1 -0
  237. package/dist/cura/p-f8fffdc1.js +2 -0
  238. package/dist/cura/p-f8fffdc1.js.map +1 -0
  239. package/dist/cura/p-fc4ba4ce.system.js +2 -0
  240. package/dist/cura/p-fc4ba4ce.system.js.map +1 -0
  241. package/dist/cura/p-fef52079.entry.js +2 -0
  242. package/dist/cura/p-fef52079.entry.js.map +1 -0
  243. package/dist/cura/p-ffd41520.system.entry.js +2 -0
  244. package/dist/cura/p-ffd41520.system.entry.js.map +1 -0
  245. package/dist/esm/{app-globals-cc003eaf.js → app-globals-29001758.js} +5 -5
  246. package/dist/esm/app-globals-29001758.js.map +1 -0
  247. package/dist/esm/cura-accordion_8.entry.js +434 -0
  248. package/dist/esm/cura-accordion_8.entry.js.map +1 -0
  249. package/dist/esm/cura-alert.entry.js +63 -0
  250. package/dist/esm/cura-alert.entry.js.map +1 -0
  251. package/dist/esm/cura-button-outline.entry.js +79 -0
  252. package/dist/esm/cura-button-outline.entry.js.map +1 -0
  253. package/dist/esm/cura-button-select.entry.js +93 -0
  254. package/dist/esm/cura-button-select.entry.js.map +1 -0
  255. package/dist/esm/cura-button-transparent.entry.js +79 -0
  256. package/dist/esm/cura-button-transparent.entry.js.map +1 -0
  257. package/dist/esm/cura-checkbox.entry.js +140 -0
  258. package/dist/esm/cura-checkbox.entry.js.map +1 -0
  259. package/dist/esm/cura-display.entry.js +70 -0
  260. package/dist/esm/cura-display.entry.js.map +1 -0
  261. package/dist/esm/cura-forms.definitions-0f774253.js +18 -0
  262. package/dist/esm/cura-forms.definitions-0f774253.js.map +1 -0
  263. package/dist/esm/cura-icon.definitions-a63d1862.js +18 -0
  264. package/dist/esm/cura-icon.definitions-a63d1862.js.map +1 -0
  265. package/dist/esm/cura-icons-view.entry.js +32 -0
  266. package/dist/esm/cura-icons-view.entry.js.map +1 -0
  267. package/dist/esm/cura-input-text.entry.js +3903 -0
  268. package/dist/esm/cura-input-text.entry.js.map +1 -0
  269. package/dist/esm/cura-label.entry.js +65 -0
  270. package/dist/esm/cura-label.entry.js.map +1 -0
  271. package/dist/esm/cura-radio.entry.js +110 -0
  272. package/dist/esm/cura-radio.entry.js.map +1 -0
  273. package/dist/esm/cura-switch.entry.js +85 -0
  274. package/dist/esm/cura-switch.entry.js.map +1 -0
  275. package/dist/esm/cura.js +4 -4
  276. package/dist/esm/{index-d99da69e.js → index-81f1a268.js} +35 -2
  277. package/dist/{esm-es5/index-d99da69e.js.map → esm/index-81f1a268.js.map} +1 -1
  278. package/dist/esm/index.js +4 -0
  279. package/dist/esm/index.js.map +1 -1
  280. package/dist/esm/loader.js +4 -4
  281. package/dist/esm-es5/app-globals-29001758.js +2 -0
  282. package/dist/esm-es5/app-globals-29001758.js.map +1 -0
  283. package/dist/esm-es5/cura-accordion_8.entry.js +2 -0
  284. package/dist/esm-es5/cura-accordion_8.entry.js.map +1 -0
  285. package/dist/esm-es5/cura-alert.entry.js +2 -0
  286. package/dist/esm-es5/cura-alert.entry.js.map +1 -0
  287. package/dist/esm-es5/cura-button-outline.entry.js +2 -0
  288. package/dist/esm-es5/cura-button-outline.entry.js.map +1 -0
  289. package/dist/esm-es5/cura-button-select.entry.js +2 -0
  290. package/dist/esm-es5/cura-button-select.entry.js.map +1 -0
  291. package/dist/esm-es5/cura-button-transparent.entry.js +2 -0
  292. package/dist/esm-es5/cura-button-transparent.entry.js.map +1 -0
  293. package/dist/esm-es5/cura-checkbox.entry.js +2 -0
  294. package/dist/esm-es5/cura-checkbox.entry.js.map +1 -0
  295. package/dist/esm-es5/cura-display.entry.js +2 -0
  296. package/dist/esm-es5/cura-display.entry.js.map +1 -0
  297. package/dist/esm-es5/cura-forms.definitions-0f774253.js +2 -0
  298. package/dist/esm-es5/cura-forms.definitions-0f774253.js.map +1 -0
  299. package/dist/esm-es5/cura-icon.definitions-a63d1862.js +2 -0
  300. package/dist/esm-es5/cura-icon.definitions-a63d1862.js.map +1 -0
  301. package/dist/esm-es5/cura-icons-view.entry.js +2 -0
  302. package/dist/esm-es5/cura-icons-view.entry.js.map +1 -0
  303. package/dist/esm-es5/cura-input-text.entry.js +2 -0
  304. package/dist/esm-es5/cura-input-text.entry.js.map +1 -0
  305. package/dist/esm-es5/cura-label.entry.js +2 -0
  306. package/dist/esm-es5/cura-label.entry.js.map +1 -0
  307. package/dist/esm-es5/cura-radio.entry.js +2 -0
  308. package/dist/esm-es5/cura-radio.entry.js.map +1 -0
  309. package/dist/esm-es5/cura-switch.entry.js +2 -0
  310. package/dist/esm-es5/cura-switch.entry.js.map +1 -0
  311. package/dist/esm-es5/cura.js +1 -1
  312. package/dist/esm-es5/cura.js.map +1 -1
  313. package/dist/esm-es5/index-81f1a268.js +3 -0
  314. package/dist/esm-es5/index-81f1a268.js.map +1 -0
  315. package/dist/esm-es5/index.js +1 -1
  316. package/dist/esm-es5/index.js.map +1 -1
  317. package/dist/esm-es5/loader.js +1 -1
  318. package/dist/esm-es5/loader.js.map +1 -1
  319. package/dist/types/api/cura-api.type.d.ts +1 -0
  320. package/dist/types/components/buttons/cura-button/cura-button.d.ts +1 -1
  321. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +51 -0
  322. package/dist/types/components/cura-alert/cura-alert.d.ts +16 -0
  323. package/dist/types/components/cura-alert/cura-alert.stories.d.ts +79 -0
  324. package/dist/types/components/cura-icon/cura-icon.d.ts +0 -42
  325. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +47 -0
  326. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +2 -1
  327. package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +100 -0
  328. package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +199 -0
  329. package/dist/types/components/forms/cura-forms.definitions.d.ts +14 -0
  330. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +138 -0
  331. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +224 -0
  332. package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +5 -0
  333. package/dist/types/components/forms/cura-label/cura-label.d.ts +54 -0
  334. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +126 -0
  335. package/dist/types/components/forms/cura-radio/cura-radio.d.ts +81 -0
  336. package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +180 -0
  337. package/dist/types/components/forms/cura-switch/cura-switch.d.ts +62 -0
  338. package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +135 -0
  339. package/dist/types/components/text/cura-display/cura-display.d.ts +29 -18
  340. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +52 -14
  341. package/dist/types/components/text/cura-heading/cura-heading.d.ts +34 -17
  342. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +58 -6
  343. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +24 -12
  344. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +47 -9
  345. package/dist/types/components.d.ts +741 -46
  346. package/dist/types/index.d.ts +9 -0
  347. package/package.json +5 -6
  348. package/dist/cjs/app-globals-0e3b7fc6.js.map +0 -1
  349. package/dist/cjs/cura-accordion_12.cjs.entry.js +0 -674
  350. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +0 -1
  351. package/dist/cjs/index-404d93e9.js.map +0 -1
  352. package/dist/cura/p-319699df.entry.js +0 -2
  353. package/dist/cura/p-319699df.entry.js.map +0 -1
  354. package/dist/cura/p-46d20db3.js +0 -3
  355. package/dist/cura/p-46d20db3.js.map +0 -1
  356. package/dist/cura/p-50ea2036.system.js +0 -2
  357. package/dist/cura/p-50ea2036.system.js.map +0 -1
  358. package/dist/cura/p-5250cb43.system.js +0 -2
  359. package/dist/cura/p-5250cb43.system.js.map +0 -1
  360. package/dist/cura/p-5cc3c8bd.system.entry.js +0 -2
  361. package/dist/cura/p-5cc3c8bd.system.entry.js.map +0 -1
  362. package/dist/cura/p-788e035b.system.js +0 -2
  363. package/dist/cura/p-788e035b.system.js.map +0 -1
  364. package/dist/cura/p-c0c00396.system.js +0 -3
  365. package/dist/cura/p-d5c64a5f.js +0 -2
  366. package/dist/cura/p-d5c64a5f.js.map +0 -1
  367. package/dist/esm/app-globals-cc003eaf.js.map +0 -1
  368. package/dist/esm/cura-accordion_12.entry.js +0 -659
  369. package/dist/esm/cura-accordion_12.entry.js.map +0 -1
  370. package/dist/esm/index-d99da69e.js.map +0 -1
  371. package/dist/esm-es5/app-globals-cc003eaf.js +0 -2
  372. package/dist/esm-es5/app-globals-cc003eaf.js.map +0 -1
  373. package/dist/esm-es5/cura-accordion_12.entry.js +0 -2
  374. package/dist/esm-es5/cura-accordion_12.entry.js.map +0 -1
  375. package/dist/esm-es5/index-d99da69e.js +0 -3
@@ -0,0 +1,445 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-7616f620.js');
6
+ const curaIcon_definitions = require('./cura-icon.definitions-b73b0178.js');
7
+
8
+ const curaAccordionCss = ":host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}:host::after{content:\"\";display:block;border-bottom:solid 1px var(--neutral-base);width:100%}";
9
+
10
+ const CuraAccordion = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.mutationObserverCallback = (mutations, _) => {
14
+ var _a;
15
+ for (const mutation of mutations) {
16
+ if (mutation.type === 'attributes' && mutation.attributeName === 'opened' && ((_a = mutation.target) === null || _a === void 0 ? void 0 : _a['opened'])) {
17
+ if (this.behavior !== 'default')
18
+ continue;
19
+ this.host.querySelectorAll('cura-accordion-item').forEach(item => {
20
+ if (item != mutation.target) {
21
+ item.opened = false;
22
+ }
23
+ });
24
+ }
25
+ if (mutation.type === 'childList') {
26
+ const addedNodes = Array.from(mutation.addedNodes || []);
27
+ for (let node of addedNodes) {
28
+ this.setChildProperties(node);
29
+ }
30
+ }
31
+ }
32
+ };
33
+ this.mutationObserver = new MutationObserver(this.mutationObserverCallback);
34
+ this.color = 'primary';
35
+ this.activeColor = 'accent';
36
+ this.colorMode = 'dark';
37
+ this.iconSize = 32;
38
+ this.openIcon = 'down';
39
+ this.closeIcon = 'up';
40
+ this.iconColor = '';
41
+ this.iconActiveColor = '';
42
+ this.behavior = 'default';
43
+ this.styles = {};
44
+ }
45
+ handleChangeColor() {
46
+ this.setColors();
47
+ }
48
+ connectedCallback() {
49
+ const weights = window.CuraAPI.theme.fonts.getWeights();
50
+ this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
51
+ this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
52
+ this.styles['--neutral-lighter'] = window.CuraAPI.theme.colors.getColor(`neutral-lighter`);
53
+ this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
54
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
55
+ this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();
56
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
57
+ this.styles['--font-weight-regular'] = weights.regular;
58
+ this.setColors();
59
+ }
60
+ componentDidLoad() {
61
+ this.host.querySelectorAll('cura-accordion-item').forEach(item => {
62
+ this.setChildProperties(item);
63
+ });
64
+ const options = { childList: true, subtree: true, attributes: true };
65
+ this.mutationObserver.observe(this.host, options);
66
+ }
67
+ disconnectedCallback() {
68
+ this.mutationObserver.disconnect();
69
+ }
70
+ setChildProperties(item) {
71
+ // Theme
72
+ item.colorMode = this.colorMode;
73
+ item.iconColor = this.iconColor || this.color;
74
+ item.iconActiveColor = this.iconActiveColor || this.activeColor;
75
+ // Icon
76
+ item.iconSize = this.iconSize;
77
+ item.openIcon = this.openIcon;
78
+ item.closeIcon = this.closeIcon;
79
+ }
80
+ setColors() {
81
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`), '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`), '--color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-lighter`), '--color-active-light': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-light`), '--color-active-base': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-base`), '--color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-dark`), '--icon-color-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-lighter`), '--icon-color-light': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-light`), '--icon-color-base': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-base`), '--icon-color-dark': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-dark`), '--icon-color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-lighter`), '--icon-color-active-light': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-light`), '--icon-color-active-base': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-base`), '--icon-color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-dark`) });
82
+ }
83
+ render() {
84
+ return (index.h(index.Host, { style: this.styles }, index.h("slot", { name: 'accordion-item' })));
85
+ }
86
+ get host() { return index.getElement(this); }
87
+ static get watchers() { return {
88
+ "color": ["handleChangeColor"],
89
+ "activeColor": ["handleChangeColor"]
90
+ }; }
91
+ };
92
+ CuraAccordion.style = curaAccordionCss;
93
+
94
+ const curaAccordionItemCss = ":host{display:block}:host .accordion-item{width:100%}:host .accordion-item .label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .accordion-item .label::before{content:\"\";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item .label .label-container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;gap:calc(var(--base-spacing) * 2px);min-height:40px;word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular);color:var(--color-base);padding:0px}:host .accordion-item .label .label-container cura-icon{margin-right:4px}:host .accordion-item .label .label-container:hover{color:var(--color-light)}:host .accordion-item .label .label-container:hover cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item .label .label-container:active{color:var(--color-dark)}:host .accordion-item .label .label-container:active cura-icon{--color:var(--icon-color-dark) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;-webkit-transition:max-height 0.25s ease;transition:max-height 0.25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--base-spacing) * 2px) 0px;border-top:solid 1px var(--neutral-base)}:host .accordion-item.active .label .label-container{color:var(--color-active-base)}:host .accordion-item.active .label .label-container:hover{color:var(--color-active-light)}:host .accordion-item.active .label .label-container:hover cura-icon{--color:var(--icon-color-active-light) !important}:host .accordion-item.active .label .label-container:active{color:var(--color-active-dark)}:host .accordion-item.active .label .label-container:active cura-icon{--color:var(--icon-color-active-dark) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;-webkit-transition:max-height 0.5s ease 0.14s;transition:max-height 0.5s ease 0.14s}:host .accordion-item.inverted .label .label-container{color:var(--neutral-lighter)}:host .accordion-item.inverted .label .label-container:hover{color:var(--color-lighter)}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-lighter) !important}:host .accordion-item.inverted .label .label-container:active{color:var(--color-light)}:host .accordion-item.inverted .label .label-container:active cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item.active.inverted .label .label-container{color:var(--neutral-purewhite)}:host .accordion-item.active.inverted .label .label-container:hover{color:var(--color-active-lighter)}:host .accordion-item.active.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-active-lighter) !important}:host .accordion-item.active.inverted .label .label-container:active{color:var(--color-active-light)}:host .accordion-item.active.inverted .label .label-container:active cura-icon{--color:var(--icon-color-active-light) !important}@media (min-width: 769px) and (max-width: 992px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 993px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}";
95
+
96
+ const CuraAccordionItem = class {
97
+ constructor(hostRef) {
98
+ index.registerInstance(this, hostRef);
99
+ this.label = '';
100
+ this.iconSize = 32;
101
+ this.openIcon = 'down';
102
+ this.closeIcon = 'up';
103
+ this.iconColor = '';
104
+ this.iconActiveColor = '';
105
+ this.colorMode = 'dark';
106
+ this.opened = false;
107
+ this.styles = {};
108
+ }
109
+ getIconColor() {
110
+ const inverted = this.colorMode === 'light';
111
+ const iconColor = inverted ? 'neutral-lighter' : `${this.iconColor}-base`;
112
+ const iconActiveColor = inverted ? 'neutral-purewhite' : `${this.iconActiveColor}-base`;
113
+ return this.opened ? iconActiveColor : iconColor;
114
+ }
115
+ getClasses() {
116
+ const classes = {};
117
+ classes['accordion-item'] = true;
118
+ classes['active'] = this.opened;
119
+ classes['inverted'] = this.colorMode === 'light';
120
+ return classes;
121
+ }
122
+ accordionItemClick(_) {
123
+ this.opened = !this.opened;
124
+ }
125
+ render() {
126
+ return (index.h(index.Host, { slot: "accordion-item" }, index.h("div", { class: this.getClasses(), style: this.styles }, index.h("div", { class: "label", onClick: e => this.accordionItemClick(e) }, index.h("div", { class: "label-container" }, index.h("span", null, this.label), index.h("cura-icon", { name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: this.getIconColor() }))), index.h("div", { class: 'content' }, index.h("div", { class: "content-wrapper" }, index.h("slot", null))))));
127
+ }
128
+ };
129
+ CuraAccordionItem.style = curaAccordionItemCss;
130
+
131
+ const curaButtonCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle}:host button,:host a{outline:none;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;-webkit-transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;border-radius:var(--border-radius);background-color:var(--color-base);border:none;padding:calc(var(--base-spacing) * 3.5px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 13px)}:host button:not(.isLoading):not(.disabled):hover,:host a:not(.isLoading):not(.disabled):hover{background-color:var(--color-light)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark)}:host button:hover,:host a:hover{-webkit-box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16);box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16)}:host button.medium:hover,:host a.medium:hover{-webkit-box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16);box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16)}:host button.small:hover,:host a.small:hover{-webkit-box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16);box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16)}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{-webkit-box-shadow:none !important;box-shadow:none !important}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 2.75px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 11px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 1.5px) calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:1;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}:host button.icon-right .button-container,:host a.icon-right .button-container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host button .label,:host a .label{-ms-flex:1;flex:1;font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:1.43em;line-height:1.2em;text-align:var(--text-align, \"left\");color:var(--neutral-black)}:host button .label.inverted,:host a .label.inverted{color:var(--neutral-white)}:host button.medium .label,:host a.medium .label{font-size:1.14em}:host button.small .label,:host a.small .label{font-size:1em}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host a.medium.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.7px)}:host button.medium.icon-right cura-icon,:host a.medium.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.7px)}:host button.small.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.5px)}:host button.small.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.5px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-light)}:host button.disabled .label,:host button.disabled .label.inverted,:host a.disabled .label,:host a.disabled .label.inverted{color:var(--neutral-dark)}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3.5px)}:host button.icon-only .label,:host a.icon-only .label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 2.75px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 1.5px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0.3}:host button.isLoading.icon-only .button-container,:host a.isLoading.icon-only .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}";
132
+
133
+ const CuraButton = class {
134
+ constructor(hostRef) {
135
+ index.registerInstance(this, hostRef);
136
+ this.size = 'medium';
137
+ this.disabled = false;
138
+ this.isLoading = false;
139
+ this.iconName = undefined;
140
+ this.iconset = 'default';
141
+ this.iconPosition = 'left';
142
+ this.iconOnly = false;
143
+ this.href = undefined;
144
+ this.target = "_self";
145
+ this.color = 'accent';
146
+ this.fontColor = 'dark';
147
+ this.textAlign = 'left';
148
+ this.styles = {};
149
+ }
150
+ handleChangeColor() {
151
+ this.setColors();
152
+ }
153
+ connectedCallback() {
154
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
155
+ this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
156
+ this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
157
+ this.styles['--neutral-light'] = window.CuraAPI.theme.colors.getColor(`neutral-light`);
158
+ this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
159
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
160
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
161
+ this.styles['--font-weight-medium'] = this.weights.medium;
162
+ this.styles['--text-align'] = this.textAlign;
163
+ this.setColors();
164
+ }
165
+ getClasses() {
166
+ const classes = {};
167
+ classes[`${this.size.toLowerCase()}`] = true;
168
+ classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
169
+ classes[`icon-only`] = this.iconOnly;
170
+ classes['inverted'] = this.fontColor === 'light';
171
+ classes['disabled'] = this.disabled;
172
+ classes['isLoading'] = this.isLoading;
173
+ return classes;
174
+ }
175
+ setColors() {
176
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`) });
177
+ }
178
+ getIcon() {
179
+ if (!this.iconName)
180
+ return '';
181
+ const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
182
+ const color = this.getSymbolColor();
183
+ return index.h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: color });
184
+ }
185
+ getSymbolColor() {
186
+ return this.disabled
187
+ ? 'neutral-dark'
188
+ : this.fontColor === 'light'
189
+ ? 'neutral-white'
190
+ : 'neutral-black';
191
+ }
192
+ handleClick(e) {
193
+ if (this.disabled || this.isLoading)
194
+ e.preventDefault();
195
+ }
196
+ render() {
197
+ return (index.h(index.Host, null, this.href ? (index.h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() }))) : (index.h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() })))));
198
+ }
199
+ static get watchers() { return {
200
+ "color": ["handleChangeColor"]
201
+ }; }
202
+ };
203
+ CuraButton.style = curaButtonCss;
204
+
205
+ const curaHeadingCss = ":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.714em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.071em;letter-spacing:-0.58px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:calc(var(--line-height) + 20%)}:host h1.small.bold-weight,:host h1.small ::slotted(b),:host h1.small ::slotted(strong),:host h2.small.bold-weight,:host h2.small ::slotted(b),:host h2.small ::slotted(strong),:host h3.small.bold-weight,:host h3.small ::slotted(b),:host h3.small ::slotted(strong),:host h4.small.bold-weight,:host h4.small ::slotted(b),:host h4.small ::slotted(strong),:host h5.small.bold-weight,:host h5.small ::slotted(b),:host h5.small ::slotted(strong),:host h6.small.bold-weight,:host h6.small ::slotted(b),:host h6.small ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.714em;font-weight:var(--font-weight-medium);letter-spacing:0.6px}:host h1.xsmall.bold-weight,:host h1.xsmall ::slotted(b),:host h1.xsmall ::slotted(strong),:host h2.xsmall.bold-weight,:host h2.xsmall ::slotted(b),:host h2.xsmall ::slotted(strong),:host h3.xsmall.bold-weight,:host h3.xsmall ::slotted(b),:host h3.xsmall ::slotted(strong),:host h4.xsmall.bold-weight,:host h4.xsmall ::slotted(b),:host h4.xsmall ::slotted(strong),:host h5.xsmall.bold-weight,:host h5.xsmall ::slotted(b),:host h5.xsmall ::slotted(strong),:host h6.xsmall.bold-weight,:host h6.xsmall ::slotted(b),:host h6.xsmall ::slotted(strong){font-weight:var(--font-weight-bold)}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em;letter-spacing:-0.66px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.857em;line-height:calc(var(--line-height) + 3%);letter-spacing:0.72px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:calc(var(--line-height) + 5%);letter-spacing:-0.82px}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.929em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.714em;line-height:calc(var(--line-height) + 30%);letter-spacing:0%}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:1em;line-height:calc(var(--line-height) + 12.857%);letter-spacing:0.28px}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-medium)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%;cursor:pointer}:host ::slotted(u){text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}:host ::slotted(i),:host ::slotted(em){font-weight:var(--font-weight-medium)}";
206
+
207
+ const CuraHeading = class {
208
+ constructor(hostRef) {
209
+ index.registerInstance(this, hostRef);
210
+ this.theme = window.CuraAPI.theme;
211
+ this.level = 1;
212
+ this.size = 'medium';
213
+ this.weight = 'regular';
214
+ this.spotColor = 'accent-dark';
215
+ this.color = undefined;
216
+ this.marginBlock = '1.25em';
217
+ this.lineHeight = '130%';
218
+ this.styles = {};
219
+ }
220
+ handleChangeColor() {
221
+ this.setColors();
222
+ }
223
+ connectedCallback() {
224
+ this.setFontProperties();
225
+ this.setColors();
226
+ }
227
+ getClasses() {
228
+ const classes = {};
229
+ classes[this.size.toLowerCase()] = true;
230
+ classes[`${this.weight.toLowerCase()}-weight`] = true;
231
+ return classes;
232
+ }
233
+ setFontProperties() {
234
+ this.weights = this.theme.fonts.getWeights();
235
+ this.fontSizeBase = this.theme.fonts.getSize();
236
+ this.styles = {
237
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
238
+ '--font-weight-regular': this.weights.regular,
239
+ '--font-weight-medium': this.weights.medium,
240
+ '--font-weight-bold': this.weights.bold,
241
+ '--font-weight-black': this.weights.black
242
+ };
243
+ }
244
+ hostCSSProperties() {
245
+ return {
246
+ '--margin-block': this.marginBlock,
247
+ '--font-size-base': this.fontSizeBase,
248
+ '--line-height': this.lineHeight
249
+ };
250
+ }
251
+ setColors() {
252
+ const fontColor = this.color
253
+ ? this.theme.colors.getColor(this.color)
254
+ : this.theme.fonts.getColor();
255
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
256
+ }
257
+ getHeadingTag() {
258
+ const tags = {
259
+ '1': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
260
+ '2': index.h("h2", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
261
+ '3': index.h("h3", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
262
+ '4': index.h("h4", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
263
+ '5': index.h("h5", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
264
+ '6': index.h("h6", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
265
+ 'default': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null))
266
+ };
267
+ return tags[`${this.level}`] || tags['default'];
268
+ }
269
+ render() {
270
+ return (index.h(index.Host, { style: this.hostCSSProperties() }, this.getHeadingTag()));
271
+ }
272
+ get host() { return index.getElement(this); }
273
+ static get watchers() { return {
274
+ "color": ["handleChangeColor"],
275
+ "spotColor": ["handleChangeColor"]
276
+ }; }
277
+ };
278
+ CuraHeading.style = curaHeadingCss;
279
+
280
+ const curaIconCss = ":host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
281
+
282
+ const CuraIcon = class {
283
+ constructor(hostRef) {
284
+ index.registerInstance(this, hostRef);
285
+ this.name = '';
286
+ this.color = 'neutral-base';
287
+ this.size = undefined;
288
+ this.iconset = 'default';
289
+ this.disabled = false;
290
+ }
291
+ sizeHandler(size) {
292
+ if (size === 'micro' && !curaIcon_definitions.microIcons.includes(this.name)) {
293
+ size = 16;
294
+ console.warn(`Icon ${this.name} doesn't support micro size. Minimum size of 16 was applied instead.`);
295
+ }
296
+ const scaledStroke = (iconSize) => {
297
+ return `${curaIcon_definitions.iconSizes[iconSize].stroke * (curaIcon_definitions.iconSizes.default.size / curaIcon_definitions.iconSizes[iconSize].size)}px`;
298
+ };
299
+ this.setHostProperty('--size', curaIcon_definitions.iconSizes[`${size}`] ? `${curaIcon_definitions.iconSizes[size].size}px` : `${curaIcon_definitions.iconSizes.default.size}px`);
300
+ this.setHostProperty('--stroke', curaIcon_definitions.iconSizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
301
+ }
302
+ colorHandler() {
303
+ this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color || 'neutral'));
304
+ }
305
+ connectedCallback() {
306
+ this.assetsPath = window.CuraAPI.localAssetsPath;
307
+ this.sizeHandler(this.size);
308
+ this.colorHandler();
309
+ }
310
+ setHostProperty(prop, value) {
311
+ this.host.style.setProperty(prop, value);
312
+ }
313
+ render() {
314
+ return (index.h(index.Host, null, 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}` }))));
315
+ }
316
+ get host() { return index.getElement(this); }
317
+ static get watchers() { return {
318
+ "size": ["sizeHandler"],
319
+ "color": ["colorHandler"],
320
+ "disabled": ["colorHandler"]
321
+ }; }
322
+ };
323
+ CuraIcon.style = curaIconCss;
324
+
325
+ const curaLoaderCircleCss = ":host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);-webkit-animation:rotate 0.7s linear infinite;animation:rotate 0.7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:0.14}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
326
+
327
+ const CuraLoaderCircle = class {
328
+ constructor(hostRef) {
329
+ index.registerInstance(this, hostRef);
330
+ this.sizes = {
331
+ xlarge: 32,
332
+ large: 24,
333
+ medium: 20,
334
+ small: 16,
335
+ default: 16,
336
+ };
337
+ this.getPxSize = () => this.sizes[this.size] || this.sizes['default'];
338
+ this.size = 'medium';
339
+ this.color = 'neutral-white';
340
+ }
341
+ getStyles() {
342
+ return {
343
+ '--size': `${this.getPxSize()}px`,
344
+ '--color': window.CuraAPI.theme.colors.getColor(this.color)
345
+ };
346
+ }
347
+ render() {
348
+ return (index.h(index.Host, { style: this.getStyles() }, index.h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", null, index.h("circle", { cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), index.h("path", { d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), index.h("defs", null, index.h("linearGradient", { id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, index.h("stop", null), index.h("stop", { offset: "1" }))))));
349
+ }
350
+ };
351
+ CuraLoaderCircle.style = curaLoaderCircleCss;
352
+
353
+ const curaPageTemplateCss = ":host{display:block}:host .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\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 768px){:host .grid-template{padding:0px}}@media (min-width: 769px) and (max-width: 992px){:host .grid-template{padding:0px}}@media (min-width: 993px) and (max-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:-ms-flexbox;display:flex}:host .grid-template #content-container #content{-ms-flex-positive:1;flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1921px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:-ms-flexbox;display:flex}:host .grid-template #content-container #content{-ms-flex-positive:1;flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1921px;justify-self:center}}";
354
+
355
+ const CuraPageTemplate = class {
356
+ constructor(hostRef) {
357
+ index.registerInstance(this, hostRef);
358
+ this.contentwidth = 'default';
359
+ }
360
+ connectedCallback() {
361
+ this.styles = {
362
+ '--spacing': window.CuraAPI.theme.spacing.getSpacing(),
363
+ };
364
+ }
365
+ getClasses() {
366
+ const classes = {};
367
+ classes[this.contentwidth.toLowerCase()] = true;
368
+ return classes;
369
+ }
370
+ render() {
371
+ return (index.h(index.Host, null, 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' })))));
372
+ }
373
+ get host() { return index.getElement(this); }
374
+ };
375
+ CuraPageTemplate.style = curaPageTemplateCss;
376
+
377
+ const curaParagraphCss = ":host{display:block;font-size:var(--font-size-base)}:host p{font-family:var(--font-family);font-size:var(--font-size-base);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.28px}:host p.large{font-size:1.214em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.48px}:host p.caption,:host p.xsmall{font-size:0.714em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.6px}@media (min-width: 769px) and (max-width: 1920px){:host p{font-size:1.143em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.32px}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.56px}:host p.caption,:host p.xsmall{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.72px}}@media (min-width: 1921px){:host p{font-size:1.429em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.large{font-size:1.714em;line-height:calc(var(--line-height) + 20%)}:host p.small{font-size:1.21em;line-height:calc(var(--line-height) + 5%);letter-spacing:0px}:host p.caption,:host p.xsmall{font-size:1em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.28px}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-medium);color:var(--color-link);text-underline-offset:10%}:host ::slotted(u){font-weight:var(--font-weight-medium);text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
378
+
379
+ const CuraParagraph = class {
380
+ constructor(hostRef) {
381
+ index.registerInstance(this, hostRef);
382
+ this.theme = window.CuraAPI.theme;
383
+ this.size = 'medium';
384
+ this.spotColor = 'accent-dark';
385
+ this.color = undefined;
386
+ this.marginBlock = '1.25em';
387
+ this.lineHeight = '140%';
388
+ this.styles = {};
389
+ }
390
+ handleChangeColor() {
391
+ this.setColors();
392
+ }
393
+ connectedCallback() {
394
+ this.setFontProperties();
395
+ this.setColors();
396
+ }
397
+ setsizeClass() {
398
+ const sizeclass = {};
399
+ sizeclass[this.size.toLowerCase()] = true;
400
+ return sizeclass;
401
+ }
402
+ setFontProperties() {
403
+ this.weights = this.theme.fonts.getWeights();
404
+ this.fontSizeBase = this.theme.fonts.getSize();
405
+ this.styles = {
406
+ '--font-family': this.theme.fonts.getFamily('body'),
407
+ '--font-weight-regular': this.weights.regular,
408
+ '--font-weight-medium': this.weights.medium,
409
+ '--font-weight-bold': this.weights.bold
410
+ };
411
+ }
412
+ setColors() {
413
+ const fontColor = this.color
414
+ ? this.theme.colors.getColor(this.color)
415
+ : this.theme.fonts.getColor();
416
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
417
+ }
418
+ hostCSSProperties() {
419
+ return {
420
+ '--margin-block': this.marginBlock,
421
+ '--font-size-base': this.fontSizeBase,
422
+ '--line-height': this.lineHeight
423
+ };
424
+ }
425
+ render() {
426
+ return (index.h(index.Host, { style: this.hostCSSProperties() }, index.h("p", { style: this.styles, class: this.setsizeClass() }, index.h("slot", null))));
427
+ }
428
+ get host() { return index.getElement(this); }
429
+ static get watchers() { return {
430
+ "color": ["handleChangeColor"],
431
+ "spotColor": ["handleChangeColor"]
432
+ }; }
433
+ };
434
+ CuraParagraph.style = curaParagraphCss;
435
+
436
+ exports.cura_accordion = CuraAccordion;
437
+ exports.cura_accordion_item = CuraAccordionItem;
438
+ exports.cura_button = CuraButton;
439
+ exports.cura_heading = CuraHeading;
440
+ exports.cura_icon = CuraIcon;
441
+ exports.cura_loader_circle = CuraLoaderCircle;
442
+ exports.cura_page_template = CuraPageTemplate;
443
+ exports.cura_paragraph = CuraParagraph;
444
+
445
+ //# sourceMappingURL=cura-accordion_8.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-accordion.cura-accordion-item.cura-button.cura-heading.cura-icon.cura-loader-circle.cura-page-template.cura-paragraph.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,gBAAgB,GAAG,yQAAyQ;;MCOrR,aAAa;;;IAwCxB,6BAAwB,GAAG,CAAC,SAA2B,EAAE,CAAmB;;MAC1E,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;QAChC,IAAI,QAAQ,CAAC,IAAI,KAAK,YAAY,IAAI,QAAQ,CAAC,aAAa,KAAK,QAAQ,KAAI,MAAA,QAAQ,CAAC,MAAM,0CAAG,QAAQ,CAAC,CAAA,EAAE;UACxG,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;YAAE,SAAS;UAC1C,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC,OAAO,CAAC,IAAI;YAC5D,IAAI,IAAI,IAAI,QAAQ,CAAC,MAAM,EAAE;cAC3B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;aACrB;WACF,CAAC,CAAC;SACJ;QACD,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,EAAE;UACjC,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;UACzD,KAAI,IAAI,IAAI,IAAI,UAAU,EAAE;YAC1B,IAAI,CAAC,kBAAkB,CAAC,IAAoC,CAAC,CAAC;WAC/D;SACF;OACF;KACF,CAAA;IACD,qBAAgB,GAAqB,IAAI,gBAAgB,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;iBAnD1D,SAAS;uBACH,QAAQ;qBAUQ,MAAM;oBAKzB,EAAE;oBACF,MAAM;qBACL,IAAI;qBAMJ,EAAE;2BACI,EAAE;oBAMgB,SAAS;kBAsBlD,EAAE;;EAjDpB,iBAAiB;IACf,IAAI,CAAC,SAAS,E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ACnCD,eAAG,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,IAC/CA,qBAAa,CACX,CACC,EACP;GACH;;;;;;;;;;;;;;;;;;","names":["h","Host","microIcons","iconSizes"],"sources":["./src/components/accordion/cura-accordion/cura-accordion.scss?tag=cura-accordion&encapsulation=shadow","./src/components/accordion/cura-accordion/cura-accordion.tsx","./src/components/accordion/cura-accordion-item/cura-accordion-item.scss?tag=cura-accordion-item&encapsulation=shadow","./src/components/accordion/cura-accordion-item/cura-accordion-item.tsx","./src/components/buttons/cura-button/cura-button.scss?tag=cura-button&encapsulation=shadow","./src/components/buttons/cura-button/cura-button.tsx","./src/components/text/cura-heading/cura-heading.scss?tag=cura-heading&encapsulation=shadow","./src/components/text/cura-heading/cura-heading.tsx","./src/components/cura-icon/cura-icon.scss?tag=cura-icon&encapsulation=shadow","./src/components/cura-icon/cura-icon.tsx","./src/components/loaders/cura-loader-circle/cura-loader-circle.scss?tag=cura-loader-circle&encapsulation=shadow","./src/components/loaders/cura-loader-circle/cura-loader-circle.tsx","./src/components/cura-page-template/cura-page-template.scss?tag=cura-page-template&encapsulation=shadow","./src/components/cura-page-template/cura-page-template.tsx","./src/components/text/cura-paragraph/cura-paragraph.scss?tag=cura-paragraph&encapsulation=shadow","./src/components/text/cura-paragraph/cura-paragraph.tsx"],"sourcesContent":[":host {\n display: block;\n color: var(--font-color);\n font-size: var(--font-size);\n font-size: var(--font-size);\n font-family: var(--font-family);\n font-weight: var(--font-weight-regular);\n\n &::after {\n content: \"\";\n display: block;\n border-bottom: solid 1px var(--neutral-base);\n width: 100%;\n }\n}\n\n","import { Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-accordion',\n styleUrl: 'cura-accordion.scss',\n shadow: true,\n})\nexport class CuraAccordion {\n\n @Element() host: HTMLElement;\n\n /**\n * Color scheme base color\n */\n @Prop({reflect: true}) color = 'primary';\n @Prop({reflect: true}) activeColor = 'accent';\n @Watch('color')\n @Watch('activeColor')\n handleChangeColor() {\n this.setColors();\n }\n\n /**\n * Set the color mode to dark or light\n */\n @Prop({reflect: true}) colorMode: 'dark' | 'light' = 'dark';\n\n /**\n * Accordion items icons\n */\n @Prop({reflect: true}) iconSize = 32;\n @Prop({reflect: true}) openIcon = 'down';\n @Prop({reflect: true}) closeIcon = 'up';\n\n /**\n * Color scheme base color\n * (By default, the icon will use the same color of 'color' and 'activeColor')\n */\n @Prop({reflect: true}) iconColor = '';\n @Prop({reflect: true}) iconActiveColor = '';\n\n /**\n * Accordion behavior when item is clicked\n * (The default will close all items except the current one)\n */\n @Prop({reflect: true}) behavior: 'default' | 'keep-open' = 'default';\n\n mutationObserverCallback = (mutations: MutationRecord[], _: MutationObserver) => {\n for (const mutation of mutations) {\n if (mutation.type === 'attributes' && mutation.attributeName === 'opened' && mutation.target?.['opened']) {\n if (this.behavior !== 'default') continue;\n this.host.querySelectorAll('cura-accordion-item').forEach(item => {\n if (item != mutation.target) {\n item.opened = false;\n }\n });\n }\n if (mutation.type === 'childList') {\n const addedNodes = Array.from(mutation.addedNodes || []);\n for(let node of addedNodes) {\n this.setChildProperties(node as HTMLCuraAccordionItemElement);\n }\n }\n }\n }\n mutationObserver: MutationObserver = new MutationObserver(this.mutationObserverCallback);\n\n @State() styles = {};\n\n connectedCallback() {\n const weights = window.CuraAPI.theme.fonts.getWeights();\n this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();\n this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);\n this.styles['--neutral-lighter'] = window.CuraAPI.theme.colors.getColor(`neutral-lighter`);\n this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);\n this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();\n this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();\n this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();\n this.styles['--font-weight-regular'] = weights.regular;\n this.setColors();\n }\n\n componentDidLoad() {\n this.host.querySelectorAll('cura-accordion-item').forEach(item => {\n this.setChildProperties(item);\n });\n const options: MutationObserverInit = {childList: true, subtree: true, attributes: true}\n this.mutationObserver.observe(this.host, options)\n }\n\n disconnectedCallback() {\n this.mutationObserver.disconnect();\n }\n\n setChildProperties(item: HTMLCuraAccordionItemElement) {\n // Theme\n item.colorMode = this.colorMode;\n item.iconColor = this.iconColor || this.color;\n item.iconActiveColor = this.iconActiveColor || this.activeColor;\n // Icon\n item.iconSize = this.iconSize;\n item.openIcon = this.openIcon;\n item.closeIcon = this.closeIcon;\n }\n\n setColors() {\n this.styles = {\n ...this.styles,\n '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`),\n '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`),\n '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`),\n '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`),\n '--color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-lighter`),\n '--color-active-light': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-light`),\n '--color-active-base': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-base`),\n '--color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-dark`),\n\n '--icon-color-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-lighter`),\n '--icon-color-light': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-light`),\n '--icon-color-base': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-base`),\n '--icon-color-dark': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-dark`),\n '--icon-color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-lighter`),\n '--icon-color-active-light': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-light`),\n '--icon-color-active-base': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-base`),\n '--icon-color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-dark`),\n };\n }\n\n render() {\n return (\n <Host style={this.styles}>\n <slot name='accordion-item'></slot>\n </Host>\n );\n }\n\n}\n","@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n\n .accordion-item {\n width: 100%;\n\n .label {\n display: flex;\n flex-direction: column;\n &::before {\n content: \"\";\n display: block;\n border-top: solid 1px var(--neutral-base);\n width: 100%;\n }\n .label-container {\n display: flex;\n flex-grow: 1;\n justify-content: space-between;\n align-items: center;\n gap: calc(var(--base-spacing) * 2px);\n min-height: 40px;\n word-break: break-word;\n cursor: pointer;\n font-size: 1.14em;\n font-weight: var(--font-weight-regular);\n color: var(--color-base);\n padding: 0px;\n\n cura-icon {\n margin-right: 4px;\n }\n\n &:hover {\n color: var(--color-light);\n cura-icon {\n --color: var(--icon-color-light) !important;\n }\n }\n &:active {\n color: var(--color-dark);\n cura-icon {\n --color: var(--icon-color-dark) !important;\n }\n }\n }\n }\n\n .content {\n font-size: 1em;\n overflow: hidden;\n max-height: 0;\n transition: max-height .25s ease;\n .content-wrapper {\n padding: calc(var(--base-spacing) * 2px) 0px;\n border-top: solid 1px var(--neutral-base);\n }\n }\n\n &.active {\n .label .label-container {\n color: var(--color-active-base);\n &:hover {\n color: var(--color-active-light);\n cura-icon {\n --color: var(--icon-color-active-light) !important;\n }\n }\n &:active {\n color: var(--color-active-dark);\n cura-icon {\n --color: var(--icon-color-active-dark) !important;\n }\n }\n }\n\n .content {\n max-height: 200vh;\n overflow-y: auto;\n transition: max-height .5s ease .14s;\n }\n }\n\n &.inverted {\n .label .label-container {\n color: var(--neutral-lighter);\n &:hover {\n color: var(--color-lighter);\n cura-icon {\n --color: var(--icon-color-lighter) !important;\n }\n }\n &:active {\n color: var(--color-light);\n cura-icon {\n --color: var(--icon-color-light) !important;\n }\n }\n }\n }\n\n &.active.inverted {\n .label .label-container {\n color: var(--neutral-purewhite);\n &:hover {\n color: var(--color-active-lighter);\n cura-icon {\n --color: var(--icon-color-active-lighter) !important;\n }\n }\n &:active {\n color: var(--color-active-light);\n cura-icon {\n --color: var(--icon-color-active-light) !important;\n }\n }\n }\n }\n }\n\n @include medium-only() {\n .accordion-item {\n .label .label-container {\n font-size: 1.29em;\n }\n\n .content {\n font-size: 1.14em;\n }\n }\n }\n\n @include large-up() {\n .accordion-item {\n .label .label-container {\n font-size: 1.29em;\n }\n\n .content {\n font-size: 1.14em;\n }\n }\n }\n}\n","import { Component, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-accordion-item',\n styleUrl: 'cura-accordion-item.scss',\n shadow: true,\n})\nexport class CuraAccordionItem {\n\n /**\n * Text label for accordion item\n */\n @Prop({reflect: true}) label: string = '';\n\n /** ***Properties below are inherited from the cura-accordion*** */\n /**\n * Accordion items icons\n */\n @Prop({reflect: true}) iconSize = 32;\n @Prop({reflect: true}) openIcon = 'down';\n @Prop({reflect: true}) closeIcon = 'up';\n\n /**\n * Color scheme base color\n * (By default, the icon will use the same color of 'color' and 'activeColor')\n */\n @Prop({reflect: true}) iconColor = '';\n @Prop({reflect: true}) iconActiveColor = '';\n\n /**\n * Set the color mode to dark or light\n */\n @Prop() colorMode: 'dark' | 'light' = 'dark';\n\n @Prop({ reflect: true, mutable: true }) opened: boolean = false;\n\n @State() styles = {};\n\n getIconColor() {\n const inverted = this.colorMode === 'light';\n const iconColor = inverted ? 'neutral-lighter' : `${this.iconColor}-base`;\n const iconActiveColor = inverted ? 'neutral-purewhite' : `${this.iconActiveColor}-base`;\n return this.opened ? iconActiveColor : iconColor;\n }\n\n getClasses() {\n const classes = {};\n classes['accordion-item'] = true;\n classes['active'] = this.opened;\n classes['inverted'] = this.colorMode === 'light';\n return classes;\n }\n\n accordionItemClick(_: Event) {\n this.opened = !this.opened;\n }\n\n render() {\n return (\n <Host slot=\"accordion-item\">\n <div class={this.getClasses()} style={this.styles}>\n <div class=\"label\" onClick={e => this.accordionItemClick(e)}>\n <div class=\"label-container\">\n <span>{this.label}</span>\n <cura-icon name={this.opened ? this.closeIcon : this.openIcon} size={this.iconSize} color={this.getIconColor()}></cura-icon>\n </div>\n </div>\n <div class='content'>\n <div class=\"content-wrapper\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n}\n","@import \"../../../scss/mixins/buttons.scss\";\n\n:host {\n @include button-host();\n\n button, a {\n @include button-element() {\n background-color: var(--color-base);\n border: none;\n &:not(.isLoading):not(.disabled):hover { background-color: var(--color-light); }\n &:not(.isLoading):not(.disabled):active { background-color: var(--color-dark); }\n };\n @include button-shadow-behavior();\n @include button-sizes();\n\n // Children Elements\n @include button-container();\n @include button-label() {\n color: var(--neutral-black);\n &.inverted { color: var(--neutral-white); }\n }\n @include button-icon();\n\n // Disabled state\n @include button-disabled() {\n background-color: var(--neutral-light); \n .label, .label.inverted { color: var(--neutral-dark); }\n };\n\n // FAB / Icon-only\n @include button-icon-only-behavior();\n\n // Loading State\n @include button-loading();\n\n }\n}\n","import { Component, Host, h, Prop, Watch, State } from '@stencil/core';\n\n@Component({\n tag: 'cura-button',\n styleUrl: 'cura-button.scss',\n shadow: true,\n})\nexport class CuraButton {\n\n /**\n * Button size: small | medium | large (default)\n */\n @Prop({reflect: true}) size: 'small' | 'medium' | 'large' = 'medium';\n\n /**\n * Disabled state. Boolean.\n */\n @Prop({reflect: true}) disabled = false;\n /**\n * Loading state. Boolean.\n */\n @Prop({reflect: true}) isLoading = false;\n\n /**\n * Name of the icon to be used from iconset.\n */\n @Prop({reflect: true}) iconName: string;\n /**\n * Custom iconset if needed.\n */\n @Prop({reflect: true}) iconset = 'default';\n /**\n * Icon position: left (default) | right.\n */\n @Prop({reflect: true}) iconPosition: 'left' | 'right' = 'left';\n /**\n * Set button to FAB/icon only.\n */\n @Prop({reflect: true}) iconOnly = false;\n\n /**\n * Property href switch button to link.\n */\n @Prop({reflect: true}) href: string;\n /**\n * Set target if link.\n */\n @Prop({reflect: true}) target = \"_self\";\n\n /**\n * Color base from color scheme. Default: accent.\n */\n @Prop() color = 'accent';\n @Watch('color')\n handleChangeColor() {\n this.setColors();\n }\n /**\n * Set the font color to dark or light.\n */\n @Prop({reflect: true}) fontColor: 'dark' | 'light' = 'dark';\n /**\n * Set text aligment for the button label.\n * Vales: left (default) | center | right.\n */\n @Prop({reflect: true}) textAlign: 'left' | 'center' | 'right' = 'left';\n\n\n @State() styles = {};\n\n weights;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();\n this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);\n this.styles['--neutral-light'] = window.CuraAPI.theme.colors.getColor(`neutral-light`);\n this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);\n this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();\n this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();\n this.styles['--font-weight-medium'] = this.weights.medium;\n this.styles['--text-align'] = this.textAlign;\n this.setColors();\n }\n\n getClasses() {\n const classes = {};\n classes[`${this.size.toLowerCase()}`] = true;\n classes[`icon-${this.iconPosition.toLowerCase()}`] = true;\n classes[`icon-only`] = this.iconOnly;\n classes['inverted'] = this.fontColor === 'light';\n classes['disabled'] = this.disabled;\n classes['isLoading'] = this.isLoading;\n return classes;\n }\n\n setColors() {\n this.styles = {\n ...this.styles,\n '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`),\n '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`),\n '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`)\n };\n }\n\n getIcon() {\n if (!this.iconName) return '';\n const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;\n const color = this.getSymbolColor();\n return <cura-icon name={this.iconName} iconset={this.iconset} size={iconSize} color={color}></cura-icon>;\n }\n\n getSymbolColor() {\n return this.disabled\n ? 'neutral-dark'\n : this.fontColor === 'light'\n ? 'neutral-white'\n : 'neutral-black';\n }\n\n handleClick(e: Event) {\n if (this.disabled || this.isLoading) e.preventDefault();\n }\n\n render() {\n return (\n <Host>\n { this.href ? (\n <a href={this.disabled ? '' : this.href}\n target={this.target}\n class={this.getClasses()}\n style={this.styles}\n onClick={(e) => this.handleClick(e)}>\n <span class=\"button-container\">\n { this.getIcon() }\n <span class={{label: true, inverted: this.fontColor === 'light'}}><slot></slot></span>\n </span>\n <cura-loader-circle size={this.size} color={this.getSymbolColor()}></cura-loader-circle>\n </a>\n ) : (\n <button class={this.getClasses()}\n style={this.styles}\n disabled={this.disabled || null}\n onClick={(e) => this.handleClick(e)}>\n <span class=\"button-container\">\n { this.getIcon() }\n <span class={{label: true, inverted: this.fontColor === 'light'}}><slot></slot></span>\n </span>\n <cura-loader-circle size={this.size} color={this.getSymbolColor()}></cura-loader-circle>\n </button>\n )}\n </Host>\n );\n }\n\n}\n","@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n font-size: var(--font-size-base);\n\n h1, h2, h3, h4, h5, h6 {\n font-family: var(--font-family);\n font-size: 1.714em;\n font-weight: var(--font-weight-regular);\n color: var(--color-body);\n line-height: var(--line-height);\n margin-block: var(--margin-block);\n letter-spacing: 0px;\n\n &.bold-weight {\n font-weight: var(--font-weight-medium);\n }\n\n &.large {\n font-size: 2.071em;\n letter-spacing: -0.58px;\n }\n\n &.small {\n font-size: 1.214em;\n line-height: calc(var(--line-height) + 20%);\n\n &.bold-weight, ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n }\n\n &.xsmall {\n font-size: 0.714em;\n font-weight: var(--font-weight-medium);\n letter-spacing: 0.6px;\n\n &.bold-weight, ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n }\n\n }\n\n @include medium-large() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 2em;\n\n &.large {\n font-size: 2.357em;\n letter-spacing: -0.66px;\n }\n\n &.small {\n font-size: 1.357em;\n }\n\n &.xsmall {\n font-size: 0.857em;\n line-height: calc(var(--line-height) + 3%);\n letter-spacing: 0.72px;\n }\n\n }\n }\n\n @include xlarge-only() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 2.5em;\n line-height: calc(var(--line-height) + 5%);\n letter-spacing: -0.82px;\n\n &.large {\n font-size: 2.929em;\n }\n\n &.small {\n font-size: 1.714em;\n line-height: calc(var(--line-height) + 30%);\n letter-spacing: 0%;\n }\n\n &.xsmall {\n font-size: 1em;\n line-height: calc(var(--line-height) + 12.857%);\n letter-spacing: 0.28px;\n }\n }\n }\n\n ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-medium);\n }\n\n ::slotted(a) {\n font-weight: var(--font-weight-bold);\n color: var(--color-link);\n text-underline-offset: 10%;\n cursor: pointer;\n }\n\n ::slotted(u) {\n text-underline-offset: 10%;\n }\n\n ::slotted(abbr) {\n color: var(--color-link);\n text-decoration: underline dashed 1px var(--color-link);\n text-underline-offset: 10%;\n cursor: default;\n }\n\n ::slotted(i), ::slotted(em) {\n font-weight: var(--font-weight-medium);\n }\n\n}\n","import { Component, Host, h, Prop, Element, Watch, State } 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. Will render the related HTML tag <h1>, <h2>, ...\n * Values: 1(default) to 6.\n */\n @Prop({reflect: true}) level: 1 | 2 | 3 | 4 | 5 | 6 = 1;\n\n /**\n * Heading style size.\n * Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.\n */\n @Prop({reflect: true}) size: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall' = 'medium';\n\n /**\n * Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well.\n * Values: regular (default) | bold.\n */\n @Prop({reflect: true}) weight: 'regular' | 'bold' = 'regular';\n\n /**\n * Apply design system color to interactive elements like <a> and <abbr> inside the text.\n * Values: Color from design system scheme. Default to 'accent-dark'.\n */\n @Prop({reflect: true}) spotColor = 'accent-dark';\n\n /**\n * Text color.\n * Values: Color from design system scheme. Default to the font color from the theme.\n */\n @Prop() color: string;\n @Watch('color')\n @Watch('spotColor')\n handleChangeColor() {\n this.setColors();\n }\n\n /**\n * CSS margin-block property values.\n * Default to 1.25em\n */\n @Prop({reflect: true}) marginBlock = '1.25em';\n\n /**\n * CSS line-height property values.\n * Default to 140%\n */\n @Prop({reflect: true}) lineHeight = '130%';\n\n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n fontSizeBase: string;\n @State() styles = {};\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\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.weights = this.theme.fonts.getWeights();\n this.fontSizeBase = this.theme.fonts.getSize();\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),\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 }\n\n hostCSSProperties() {\n return {\n '--margin-block': this.marginBlock,\n '--font-size-base': this.fontSizeBase,\n '--line-height': this.lineHeight\n };\n }\n\n setColors() {\n const fontColor = this.color\n ? this.theme.colors.getColor(this.color)\n : this.theme.fonts.getColor();\n this.styles = {\n ...this.styles,\n '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'),\n '--color-link': this.theme.colors.getColor(`${this.spotColor}`)\n };\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 style={this.hostCSSProperties()}>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n",":host {\n width: var(--size);\n height: var(--size);\n svg {\n display: inline-block;\n stroke: var(--color);\n width: var(--size);\n height: var(--size);\n stroke-width: var(--stroke);\n fill: none;\n }\n}\n","import { Component, Host, h, Prop, Element, Watch } from '@stencil/core';\nimport { microIcons, iconSizes } from './cura-icon.definitions';\n\n@Component({\n tag: 'cura-icon',\n styleUrl: 'cura-icon.scss',\n shadow: true\n})\nexport class CuraIcon {\n\n @Prop({reflect: true}) name = '';\n @Prop() color = 'neutral-base';\n @Prop() size: string | number;\n @Prop({reflect: true}) iconset = 'default';\n @Prop() disabled = false;\n\n @Element() host: HTMLElement;\n\n @Watch('size')\n sizeHandler(size: string | number) {\n if (size === 'micro' && !microIcons.includes(this.name) ) {\n size = 16;\n console.warn(`Icon ${this.name} doesn't support micro size. Minimum size of 16 was applied instead.`);\n }\n const scaledStroke = (iconSize: string | number) => {\n return `${iconSizes[iconSize].stroke * (iconSizes.default.size / iconSizes[iconSize].size)}px`;\n }\n this.setHostProperty('--size', iconSizes[`${size}`] ? `${iconSizes[size].size}px` : `${iconSizes.default.size}px`);\n this.setHostProperty('--stroke', iconSizes[`${size}`] ? scaledStroke(size) : scaledStroke(\"default\"));\n }\n\n @Watch('color')\n @Watch('disabled')\n colorHandler() {\n this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color || 'neutral'));\n }\n\n assetsPath: string;\n\n connectedCallback() {\n this.assetsPath = window.CuraAPI.localAssetsPath;\n this.sizeHandler(this.size);\n this.colorHandler();\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n render() {\n return (\n <Host>\n <svg\n version=\"1.1\"\n viewBox=\"0 0 24 24\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <use\n xlinkHref={`${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}`}>\n </use>\n </svg>\n </Host>\n );\n }\n\n}\n","@import '../../../scss/mixins/animations.scss';\n\n:host {\n display: inline-block;\n width: var(--size);\n height: var(--size);\n \n svg {\n width: var(--size);\n height: var(--size);\n animation: rotate .7s linear infinite;\n }\n\n circle, path {\n stroke-miterlimit: 10;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n\n path { stroke: var(--color); }\n\n stop { stop-color: var(--color); }\n linearGradient stop:first-child {\n stop-opacity: 0.14;\n }\n}\n\n@include rotate();\n\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'cura-loader-circle',\n styleUrl: 'cura-loader-circle.scss',\n shadow: true,\n})\nexport class CuraLoaderCircle {\n\n /**\n * Loader size. Values: small, medium or large.\n */\n @Prop({reflect: true}) size: 'small' | 'medium' | 'large' | 'xlarge' = 'medium';\n /**\n * One from color scheme. Default: neutral-white.\n */\n @Prop({reflect: true}) color = 'neutral-white';\n\n sizes = {\n xlarge: 32,\n large: 24,\n medium: 20,\n small: 16,\n default: 16,\n };\n\n getPxSize = () => this.sizes[this.size] || this.sizes['default'];\n\n getStyles() {\n return {\n '--size': `${this.getPxSize()}px`,\n '--color': window.CuraAPI.theme.colors.getColor(this.color)\n }\n }\n\n render() {\n return (\n <Host style={this.getStyles()}>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g>\n <circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"url(#paint0_linear_13485_11488)\" stroke-width=\"2\"/>\n <path d=\"M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5\" stroke-width=\"2\"/>\n </g>\n <defs>\n <linearGradient id=\"paint0_linear_13485_11488\" x1=\"15.7\" y1=\"4.5\" x2=\"4.15\" y2=\"11.5\" gradientUnits=\"userSpaceOnUse\">\n <stop/>\n <stop offset=\"1\"/>\n </linearGradient>\n </defs>\n </svg>\n </Host>\n );\n }\n\n}\n","@import '../../scss/mixins/responsive.scss';\n\n@mixin template-spacing($spacing-scale: 0px, $large-device: false) {\n $spacing-px: calc(var(--spacing) * $spacing-scale);\n padding: 0px;\n @if $large-device {\n #content-container {\n #sidebar-left ::slotted(div[slot=\"sidebar-left\"]) {\n margin-right: $spacing-px;\n }\n #sidebar-right ::slotted(div[slot=\"sidebar-right\"]) {\n margin-left: $spacing-px;\n }\n }\n }\n}\n\n:host {\n display: block;\n\n .grid-template {\n display: grid;\n grid-template-rows: auto;\n grid-template-columns: auto;\n grid-template-areas:\n 'sub-header'\n 'header'\n 'pre-content'\n 'content-container'\n 'post-body'\n 'footer'\n 'sub-footer';\n\n #sub-header {\n grid-area: sub-header;\n }\n\n #header {\n grid-area: header;\n }\n\n #pre-content {\n grid-area: pre-content;\n }\n\n #content-container {\n grid-area: content-container;\n }\n\n #post-body {\n grid-area: post-body;\n }\n\n #footer {\n grid-area: footer;\n }\n\n #sub-footer {\n grid-area: sub-footer;\n }\n\n @include mobile-only() {\n $spacing-scale: 4px;\n @include template-spacing($spacing-scale);\n }\n\n @include medium-only() {\n $spacing-scale: 5px;\n @include template-spacing($spacing-scale);\n }\n\n @include large-only() {\n $spacing-scale: 5px;\n @include template-spacing($spacing-scale, true);\n #content-container {\n display: flex;\n #content {\n flex-grow: 1;\n }\n #sidebar-left, #sidebar-right {\n max-width: 20%;\n }\n }\n }\n\n @include xlarge-only() {\n $spacing-scale: 7px;\n @include template-spacing($spacing-scale, true);\n #content-container {\n display: flex;\n #content {\n flex-grow: 1;\n }\n #sidebar-left, #sidebar-right {\n max-width: 20%;\n }\n &.centered {\n max-width: $breakpoint-xlarge-min;\n justify-self: center;\n }\n }\n }\n }\n}\n","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","@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n font-size: var(--font-size-base);\n\n p {\n font-family: var(--font-family);\n font-size: var(--font-size-base);\n font-weight: var(--font-weight-regular);\n color: var(--color-body);\n line-height: var(--line-height);\n margin-block: var(--margin-block);\n letter-spacing: 0.28px;\n\n &.large {\n font-size: 1.214em;\n line-height: calc(var(--line-height) + 10%);\n letter-spacing: 0px;\n }\n\n &.small {\n font-size: 0.85em;\n line-height: calc(var(--line-height) - 5%);\n letter-spacing: 0.48px;\n }\n\n &.caption, &.xsmall {\n font-size: 0.714em;\n line-height: calc(var(--line-height) - 5%);\n letter-spacing: 0.6px;\n }\n }\n\n @include medium-large() {\n p {\n font-size: 1.143em;\n line-height: calc(var(--line-height) + 5%);\n letter-spacing: 0.32px;\n\n &.large {\n font-size: 1.357em;\n line-height: calc(var(--line-height) + 10%);\n letter-spacing: 0px;\n }\n\n &.small {\n font-size: 1em;\n line-height: calc(var(--line-height) - 5%);\n letter-spacing: 0.56px;\n }\n\n &.caption, &.xsmall {\n font-size: 0.85em;\n line-height: calc(var(--line-height) - 5%);\n letter-spacing: 0.72px;\n }\n }\n }\n\n @include xlarge-only() {\n p {\n font-size: 1.429em;\n line-height: calc(var(--line-height) + 10%);\n letter-spacing: 0px;\n\n &.large {\n font-size: 1.714em;\n line-height: calc(var(--line-height) + 20%);\n }\n\n &.small {\n font-size: 1.21em;\n line-height: calc(var(--line-height) + 5%);\n letter-spacing: 0px;\n }\n\n &.caption, &.xsmall {\n font-size: 1em;\n line-height: calc(var(--line-height) + 5%);\n letter-spacing: 0.28px;\n }\n }\n }\n\n ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n\n ::slotted(a) {\n font-weight: var(--font-weight-medium);\n color: var(--color-link);\n text-underline-offset: 10%;\n }\n\n ::slotted(u) {\n font-weight: var(--font-weight-medium);\n text-underline-offset: 10%;\n }\n\n ::slotted(abbr) {\n color: var(--color-link);\n text-decoration: underline dashed 1px var(--color-link);\n text-underline-offset: 10%;\n cursor: default;\n }\n\n}\n\n","import { Component, Host, Prop, h, Element, Watch, State } 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 (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.\n */\n @Prop({reflect: true}) size: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall' = 'medium';\n\n /**\n * Apply design system color to interactive elements like <a> and <abbr> inside the text.\n * Values: Color from design system scheme. Default to 'accent-dark'.\n */\n @Prop({reflect: true}) spotColor = 'accent-dark';\n\n /**\n * Text color.\n * Values: Color from design system scheme. Default to the font color from the theme.\n */\n @Prop() color: string;\n @Watch('color')\n @Watch('spotColor')\n handleChangeColor() {\n this.setColors();\n }\n\n /**\n * CSS margin-block property values.\n * Default to 1.25em\n */\n @Prop({reflect: true}) marginBlock = '1.25em';\n\n /**\n * CSS line-height property values.\n * Default to 140%\n */\n @Prop({reflect: true}) lineHeight = '140%';\n\n /**\n * Host element <cura-paragraph>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n fontSizeBase: string;\n @State() styles = {};\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\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.weights = this.theme.fonts.getWeights();\n this.fontSizeBase = this.theme.fonts.getSize();\n this.styles = {\n '--font-family': this.theme.fonts.getFamily('body'),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold\n };\n }\n\n setColors() {\n const fontColor = this.color\n ? this.theme.colors.getColor(this.color)\n : this.theme.fonts.getColor();\n this.styles = {\n ...this.styles,\n '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'),\n '--color-link': this.theme.colors.getColor(`${this.spotColor}`)\n };\n }\n\n hostCSSProperties() {\n return {\n '--margin-block': this.marginBlock,\n '--font-size-base': this.fontSizeBase,\n '--line-height': this.lineHeight\n };\n }\n\n render() {\n return (\n <Host style={this.hostCSSProperties()}>\n <p style={this.styles} class={this.setsizeClass()}>\n <slot></slot>\n </p>\n </Host>\n );\n }\n\n}\n"],"version":3}