@rededor/cura 0.5.0-alpha.0 → 0.5.0

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 (437) hide show
  1. package/dist/assets/icons/iconset-default-list.ts +1 -0
  2. package/dist/assets/icons/iconset-default-tmp.svg +976 -0
  3. package/dist/assets/icons/iconset-default.svg +1 -0
  4. package/dist/cjs/app-globals-0e3b7fc6.js +511 -0
  5. package/dist/cjs/app-globals-0e3b7fc6.js.map +1 -0
  6. package/dist/cjs/css-shim-83cf0349.js +8 -0
  7. package/dist/cjs/css-shim-83cf0349.js.map +1 -0
  8. package/dist/cjs/cura-accordion_12.cjs.entry.js +674 -0
  9. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -0
  10. package/dist/cjs/cura.cjs.js +36 -0
  11. package/dist/cjs/cura.cjs.js.map +1 -0
  12. package/dist/cjs/index-72217b50.js +2003 -0
  13. package/dist/cjs/index-72217b50.js.map +1 -0
  14. package/dist/cjs/index.cjs.js +4 -0
  15. package/dist/cjs/index.cjs.js.map +1 -0
  16. package/dist/cjs/loader.cjs.js +42 -0
  17. package/dist/cjs/loader.cjs.js.map +1 -0
  18. package/dist/cjs/shadow-css-8baae635.js +391 -0
  19. package/dist/cjs/shadow-css-8baae635.js.map +1 -0
  20. package/dist/collection/api/cura-api.js +34 -0
  21. package/dist/collection/api/cura-api.js.map +1 -0
  22. package/dist/collection/api/cura-api.type.js +7 -0
  23. package/dist/collection/api/cura-api.type.js.map +1 -0
  24. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +14 -0
  25. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -0
  26. package/dist/collection/api/modules/cura-theme-colors-module.js +76 -0
  27. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -0
  28. package/dist/collection/api/modules/cura-theme-fonts-module.js +36 -0
  29. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +1 -0
  30. package/dist/collection/api/modules/cura-theme-module.js +78 -0
  31. package/dist/collection/api/modules/cura-theme-module.js.map +1 -0
  32. package/dist/collection/api/modules/cura-theme-spacing-module.js +13 -0
  33. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +1 -0
  34. package/dist/collection/api/theme-presets/static.js +71 -0
  35. package/dist/collection/api/theme-presets/static.js.map +1 -0
  36. package/dist/collection/api/theme-presets/theme-default.js +50 -0
  37. package/dist/collection/api/theme-presets/theme-default.js.map +1 -0
  38. package/dist/collection/api/theme-presets/theme-legacy-default.js +32 -0
  39. package/dist/collection/api/theme-presets/theme-legacy-default.js.map +1 -0
  40. package/dist/collection/api/theme-presets/theme-maternity.js +46 -0
  41. package/dist/collection/api/theme-presets/theme-maternity.js.map +1 -0
  42. package/dist/collection/api/theme-presets/theme-oncology.js +53 -0
  43. package/dist/collection/api/theme-presets/theme-oncology.js.map +1 -0
  44. package/dist/collection/api/theme-presets/theme-presets.js +11 -0
  45. package/dist/collection/api/theme-presets/theme-presets.js.map +1 -0
  46. package/dist/collection/assets/icons/iconset-default-list.js +2 -0
  47. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -0
  48. package/dist/collection/assets/icons/iconset-default-tmp.svg +976 -0
  49. package/dist/collection/assets/icons/iconset-default.svg +1 -0
  50. package/dist/collection/assets-raw/icons/default/360.svg +8 -0
  51. package/dist/collection/assets-raw/icons/default/accessibility.svg +5 -0
  52. package/dist/collection/assets-raw/icons/default/addUser.svg +6 -0
  53. package/dist/collection/assets-raw/icons/default/airdrop.svg +6 -0
  54. package/dist/collection/assets-raw/icons/default/alertCircle.svg +5 -0
  55. package/dist/collection/assets-raw/icons/default/alertTriangle.svg +5 -0
  56. package/dist/collection/assets-raw/icons/default/arrowDown.svg +3 -0
  57. package/dist/collection/assets-raw/icons/default/arrowDownCircle.svg +4 -0
  58. package/dist/collection/assets-raw/icons/default/arrowLeft.svg +3 -0
  59. package/dist/collection/assets-raw/icons/default/arrowLeftCircle.svg +4 -0
  60. package/dist/collection/assets-raw/icons/default/arrowRight.svg +3 -0
  61. package/dist/collection/assets-raw/icons/default/arrowRightCircle.svg +4 -0
  62. package/dist/collection/assets-raw/icons/default/arrowUp.svg +3 -0
  63. package/dist/collection/assets-raw/icons/default/arrowUpCircle.svg +4 -0
  64. package/dist/collection/assets-raw/icons/default/attach.svg +3 -0
  65. package/dist/collection/assets-raw/icons/default/avatarF.svg +6 -0
  66. package/dist/collection/assets-raw/icons/default/avatarM.svg +5 -0
  67. package/dist/collection/assets-raw/icons/default/biometry.svg +3 -0
  68. package/dist/collection/assets-raw/icons/default/bloodGroup.svg +3 -0
  69. package/dist/collection/assets-raw/icons/default/calendar.svg +8 -0
  70. package/dist/collection/assets-raw/icons/default/cam.svg +4 -0
  71. package/dist/collection/assets-raw/icons/default/camOff.svg +5 -0
  72. package/dist/collection/assets-raw/icons/default/central.svg +7 -0
  73. package/dist/collection/assets-raw/icons/default/chatCircle.svg +6 -0
  74. package/dist/collection/assets-raw/icons/default/check.svg +3 -0
  75. package/dist/collection/assets-raw/icons/default/checkBadge.svg +4 -0
  76. package/dist/collection/assets-raw/icons/default/checkCircle.svg +4 -0
  77. package/dist/collection/assets-raw/icons/default/checkDouble.svg +4 -0
  78. package/dist/collection/assets-raw/icons/default/clock.svg +5 -0
  79. package/dist/collection/assets-raw/icons/default/close.svg +3 -0
  80. package/dist/collection/assets-raw/icons/default/closeCircle.svg +5 -0
  81. package/dist/collection/assets-raw/icons/default/collapse.svg +4 -0
  82. package/dist/collection/assets-raw/icons/default/config.svg +4 -0
  83. package/dist/collection/assets-raw/icons/default/currency.svg +3 -0
  84. package/dist/collection/assets-raw/icons/default/delete.svg +7 -0
  85. package/dist/collection/assets-raw/icons/default/desktop.svg +6 -0
  86. package/dist/collection/assets-raw/icons/default/doc.svg +7 -0
  87. package/dist/collection/assets-raw/icons/default/down.svg +3 -0
  88. package/dist/collection/assets-raw/icons/default/download.svg +3 -0
  89. package/dist/collection/assets-raw/icons/default/duplicate.svg +4 -0
  90. package/dist/collection/assets-raw/icons/default/edit.svg +5 -0
  91. package/dist/collection/assets-raw/icons/default/exam.svg +6 -0
  92. package/dist/collection/assets-raw/icons/default/examDoc.svg +8 -0
  93. package/dist/collection/assets-raw/icons/default/expand.svg +4 -0
  94. package/dist/collection/assets-raw/icons/default/facebook.svg +3 -0
  95. package/dist/collection/assets-raw/icons/default/fileBmp.svg +17 -0
  96. package/dist/collection/assets-raw/icons/default/fileJpg.svg +8 -0
  97. package/dist/collection/assets-raw/icons/default/filePdf.svg +10 -0
  98. package/dist/collection/assets-raw/icons/default/filePng.svg +10 -0
  99. package/dist/collection/assets-raw/icons/default/fileUpload.svg +5 -0
  100. package/dist/collection/assets-raw/icons/default/fileXls.svg +8 -0
  101. package/dist/collection/assets-raw/icons/default/filter.svg +11 -0
  102. package/dist/collection/assets-raw/icons/default/fullscreen.svg +6 -0
  103. package/dist/collection/assets-raw/icons/default/gallery.svg +6 -0
  104. package/dist/collection/assets-raw/icons/default/geotag.svg +4 -0
  105. package/dist/collection/assets-raw/icons/default/geotagUnity.svg +5 -0
  106. package/dist/collection/assets-raw/icons/default/geotagUnityGroup.svg +3 -0
  107. package/dist/collection/assets-raw/icons/default/google.svg +3 -0
  108. package/dist/collection/assets-raw/icons/default/graph.svg +6 -0
  109. package/dist/collection/assets-raw/icons/default/healthPlan.svg +6 -0
  110. package/dist/collection/assets-raw/icons/default/heart.svg +3 -0
  111. package/dist/collection/assets-raw/icons/default/height.svg +10 -0
  112. package/dist/collection/assets-raw/icons/default/height2.svg +8 -0
  113. package/dist/collection/assets-raw/icons/default/home.svg +6 -0
  114. package/dist/collection/assets-raw/icons/default/horizontalList.svg +4 -0
  115. package/dist/collection/assets-raw/icons/default/imageUp.svg +5 -0
  116. package/dist/collection/assets-raw/icons/default/infoCircle.svg +5 -0
  117. package/dist/collection/assets-raw/icons/default/instagram.svg +5 -0
  118. package/dist/collection/assets-raw/icons/default/key.svg +4 -0
  119. package/dist/collection/assets-raw/icons/default/lamp.svg +12 -0
  120. package/dist/collection/assets-raw/icons/default/language.svg +9 -0
  121. package/dist/collection/assets-raw/icons/default/language2.svg +4 -0
  122. package/dist/collection/assets-raw/icons/default/languageEN.svg +5 -0
  123. package/dist/collection/assets-raw/icons/default/languagePT.svg +5 -0
  124. package/dist/collection/assets-raw/icons/default/lattes.svg +3 -0
  125. package/dist/collection/assets-raw/icons/default/left.svg +3 -0
  126. package/dist/collection/assets-raw/icons/default/like.svg +4 -0
  127. package/dist/collection/assets-raw/icons/default/link.svg +4 -0
  128. package/dist/collection/assets-raw/icons/default/linkExternal.svg +4 -0
  129. package/dist/collection/assets-raw/icons/default/linkedin.svg +5 -0
  130. package/dist/collection/assets-raw/icons/default/list.svg +8 -0
  131. package/dist/collection/assets-raw/icons/default/login.svg +4 -0
  132. package/dist/collection/assets-raw/icons/default/logout.svg +3 -0
  133. package/dist/collection/assets-raw/icons/default/mail.svg +6 -0
  134. package/dist/collection/assets-raw/icons/default/maintenance.svg +4 -0
  135. package/dist/collection/assets-raw/icons/default/medDoc.svg +5 -0
  136. package/dist/collection/assets-raw/icons/default/medEspec.svg +4 -0
  137. package/dist/collection/assets-raw/icons/default/medImg.svg +5 -0
  138. package/dist/collection/assets-raw/icons/default/medUser.svg +10 -0
  139. package/dist/collection/assets-raw/icons/default/medical.svg +9 -0
  140. package/dist/collection/assets-raw/icons/default/menuHamburguer.svg +5 -0
  141. package/dist/collection/assets-raw/icons/default/menuKebab.svg +5 -0
  142. package/dist/collection/assets-raw/icons/default/menuMeatballs.svg +5 -0
  143. package/dist/collection/assets-raw/icons/default/mic.svg +5 -0
  144. package/dist/collection/assets-raw/icons/default/micOff.svg +6 -0
  145. package/dist/collection/assets-raw/icons/default/minus.svg +3 -0
  146. package/dist/collection/assets-raw/icons/default/minusCircle.svg +4 -0
  147. package/dist/collection/assets-raw/icons/default/minusSquare.svg +4 -0
  148. package/dist/collection/assets-raw/icons/default/mobile.svg +4 -0
  149. package/dist/collection/assets-raw/icons/default/news.svg +8 -0
  150. package/dist/collection/assets-raw/icons/default/notification.svg +6 -0
  151. package/dist/collection/assets-raw/icons/default/npsDeslike.svg +6 -0
  152. package/dist/collection/assets-raw/icons/default/npsHate.svg +6 -0
  153. package/dist/collection/assets-raw/icons/default/npsLike.svg +6 -0
  154. package/dist/collection/assets-raw/icons/default/npsLove.svg +6 -0
  155. package/dist/collection/assets-raw/icons/default/npsNeutral.svg +6 -0
  156. package/dist/collection/assets-raw/icons/default/order.svg +6 -0
  157. package/dist/collection/assets-raw/icons/default/partner.svg +5 -0
  158. package/dist/collection/assets-raw/icons/default/phone.svg +5 -0
  159. package/dist/collection/assets-raw/icons/default/play.svg +4 -0
  160. package/dist/collection/assets-raw/icons/default/plus.svg +4 -0
  161. package/dist/collection/assets-raw/icons/default/plusCircle.svg +5 -0
  162. package/dist/collection/assets-raw/icons/default/plusSquare.svg +5 -0
  163. package/dist/collection/assets-raw/icons/default/print.svg +7 -0
  164. package/dist/collection/assets-raw/icons/default/profile.svg +4 -0
  165. package/dist/collection/assets-raw/icons/default/profileCircle.svg +4 -0
  166. package/dist/collection/assets-raw/icons/default/questionCircle.svg +4 -0
  167. package/dist/collection/assets-raw/icons/default/questionSquare.svg +4 -0
  168. package/dist/collection/assets-raw/icons/default/range.svg +5 -0
  169. package/dist/collection/assets-raw/icons/default/reload.svg +4 -0
  170. package/dist/collection/assets-raw/icons/default/ribbon.svg +4 -0
  171. package/dist/collection/assets-raw/icons/default/right.svg +3 -0
  172. package/dist/collection/assets-raw/icons/default/schedule.svg +9 -0
  173. package/dist/collection/assets-raw/icons/default/scheduleCheck.svg +8 -0
  174. package/dist/collection/assets-raw/icons/default/scheduleHistorico.svg +9 -0
  175. package/dist/collection/assets-raw/icons/default/search.svg +4 -0
  176. package/dist/collection/assets-raw/icons/default/secure.svg +6 -0
  177. package/dist/collection/assets-raw/icons/default/share.svg +7 -0
  178. package/dist/collection/assets-raw/icons/default/siren.svg +12 -0
  179. package/dist/collection/assets-raw/icons/default/sound.svg +5 -0
  180. package/dist/collection/assets-raw/icons/default/soundOff.svg +4 -0
  181. package/dist/collection/assets-raw/icons/default/subItem.svg +4 -0
  182. package/dist/collection/assets-raw/icons/default/target.svg +8 -0
  183. package/dist/collection/assets-raw/icons/default/team.svg +6 -0
  184. package/dist/collection/assets-raw/icons/default/telegram.svg +3 -0
  185. package/dist/collection/assets-raw/icons/default/twitter.svg +5 -0
  186. package/dist/collection/assets-raw/icons/default/unLink.svg +10 -0
  187. package/dist/collection/assets-raw/icons/default/unSecure.svg +6 -0
  188. package/dist/collection/assets-raw/icons/default/unity.svg +13 -0
  189. package/dist/collection/assets-raw/icons/default/unlike.svg +4 -0
  190. package/dist/collection/assets-raw/icons/default/up.svg +3 -0
  191. package/dist/collection/assets-raw/icons/default/upload.svg +3 -0
  192. package/dist/collection/assets-raw/icons/default/verticalList.svg +4 -0
  193. package/dist/collection/assets-raw/icons/default/viewFalse.svg +5 -0
  194. package/dist/collection/assets-raw/icons/default/viewTrue.svg +4 -0
  195. package/dist/collection/assets-raw/icons/default/weight.svg +5 -0
  196. package/dist/collection/assets-raw/icons/default/whatsapp.svg +4 -0
  197. package/dist/collection/assets-raw/icons/default/wifi.svg +6 -0
  198. package/dist/collection/assets-raw/icons/default/wifiOff.svg +7 -0
  199. package/dist/collection/assets-raw/icons/default/youtube.svg +4 -0
  200. package/dist/collection/assets-raw/icons/default/zoomIn.svg +6 -0
  201. package/dist/collection/assets-raw/icons/default/zoomOut.svg +5 -0
  202. package/dist/collection/collection-manifest.json +24 -0
  203. package/dist/collection/components/accordion/cura-accordion/cura-accordion.css +14 -0
  204. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +271 -0
  205. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -0
  206. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +160 -0
  207. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -0
  208. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +142 -0
  209. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +199 -0
  210. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -0
  211. package/dist/collection/components/buttons/cura-button/cura-button.css +185 -0
  212. package/dist/collection/components/buttons/cura-button/cura-button.js +308 -0
  213. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -0
  214. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +168 -0
  215. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -0
  216. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +220 -0
  217. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +308 -0
  218. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -0
  219. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +168 -0
  220. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -0
  221. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +204 -0
  222. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +308 -0
  223. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -0
  224. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +168 -0
  225. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -0
  226. package/dist/collection/components/cura-icon/cura-icon.css +12 -0
  227. package/dist/collection/components/cura-icon/cura-icon.js +162 -0
  228. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -0
  229. package/dist/collection/components/cura-icon/cura-icon.stories.js +75 -0
  230. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -0
  231. package/dist/collection/components/cura-icons-view/cura-icons-view.css +68 -0
  232. package/dist/collection/components/cura-icons-view/cura-icons-view.js +33 -0
  233. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -0
  234. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +11 -0
  235. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +1 -0
  236. package/dist/collection/components/cura-page-template/cura-page-template.css +105 -0
  237. package/dist/collection/components/cura-page-template/cura-page-template.js +55 -0
  238. package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -0
  239. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +33 -0
  240. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +77 -0
  241. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -0
  242. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +56 -0
  243. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -0
  244. package/dist/collection/components/text/cura-display/cura-display.css +84 -0
  245. package/dist/collection/components/text/cura-display/cura-display.js +146 -0
  246. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -0
  247. package/dist/collection/components/text/cura-display/cura-display.stories.js +80 -0
  248. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -0
  249. package/dist/collection/components/text/cura-heading/cura-heading.css +92 -0
  250. package/dist/collection/components/text/cura-heading/cura-heading.js +168 -0
  251. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -0
  252. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +91 -0
  253. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -0
  254. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +115 -0
  255. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +150 -0
  256. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -0
  257. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +94 -0
  258. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -0
  259. package/dist/collection/index.js +2 -0
  260. package/dist/collection/index.js.map +1 -0
  261. package/dist/collection/rededor-cura-start.js +10 -0
  262. package/dist/collection/rededor-cura-start.js.map +1 -0
  263. package/dist/collection/stories/assets/accessibility.svg +5 -0
  264. package/dist/collection/stories/assets/discord.svg +15 -0
  265. package/dist/collection/stories/assets/github.svg +3 -0
  266. package/dist/collection/stories/assets/tutorials.svg +12 -0
  267. package/dist/collection/stories/assets/youtube.svg +4 -0
  268. package/dist/collection/stories/olds/Button.js +21 -0
  269. package/dist/collection/stories/olds/Button.st.js +50 -0
  270. package/dist/collection/stories/olds/Header.js +47 -0
  271. package/dist/collection/stories/olds/Header.st.js +28 -0
  272. package/dist/collection/stories/olds/Page.js +94 -0
  273. package/dist/collection/stories/olds/Page.st.js +27 -0
  274. package/dist/collection/utils/utils.js +16 -0
  275. package/dist/collection/utils/utils.js.map +1 -0
  276. package/dist/collection/utils/utils.spec.js +16 -0
  277. package/dist/collection/utils/utils.spec.js.map +1 -0
  278. package/dist/components/cura-accordion-item.d.ts +11 -0
  279. package/dist/components/cura-accordion-item.js +76 -0
  280. package/dist/components/cura-accordion-item.js.map +1 -0
  281. package/dist/components/cura-accordion.d.ts +11 -0
  282. package/dist/components/cura-accordion.js +120 -0
  283. package/dist/components/cura-accordion.js.map +1 -0
  284. package/dist/components/cura-button-outline.d.ts +11 -0
  285. package/dist/components/cura-button-outline.js +123 -0
  286. package/dist/components/cura-button-outline.js.map +1 -0
  287. package/dist/components/cura-button-transparent.d.ts +11 -0
  288. package/dist/components/cura-button-transparent.js +123 -0
  289. package/dist/components/cura-button-transparent.js.map +1 -0
  290. package/dist/components/cura-button.d.ts +11 -0
  291. package/dist/components/cura-button.js +123 -0
  292. package/dist/components/cura-button.js.map +1 -0
  293. package/dist/components/cura-display.d.ts +11 -0
  294. package/dist/components/cura-display.js +89 -0
  295. package/dist/components/cura-display.js.map +1 -0
  296. package/dist/components/cura-heading.d.ts +11 -0
  297. package/dist/components/cura-heading.js +94 -0
  298. package/dist/components/cura-heading.js.map +1 -0
  299. package/dist/components/cura-icon.d.ts +11 -0
  300. package/dist/components/cura-icon.js +8 -0
  301. package/dist/components/cura-icon.js.map +1 -0
  302. package/dist/components/cura-icon2.js +79 -0
  303. package/dist/components/cura-icon2.js.map +1 -0
  304. package/dist/components/cura-icons-view.d.ts +11 -0
  305. package/dist/components/cura-icons-view.js +51 -0
  306. package/dist/components/cura-icons-view.js.map +1 -0
  307. package/dist/components/cura-loader-circle.d.ts +11 -0
  308. package/dist/components/cura-loader-circle.js +8 -0
  309. package/dist/components/cura-loader-circle.js.map +1 -0
  310. package/dist/components/cura-loader-circle2.js +51 -0
  311. package/dist/components/cura-loader-circle2.js.map +1 -0
  312. package/dist/components/cura-page-template.d.ts +11 -0
  313. package/dist/components/cura-page-template.js +49 -0
  314. package/dist/components/cura-page-template.js.map +1 -0
  315. package/dist/components/cura-paragraph.d.ts +11 -0
  316. package/dist/components/cura-paragraph.js +87 -0
  317. package/dist/components/cura-paragraph.js.map +1 -0
  318. package/dist/components/index.d.ts +39 -0
  319. package/dist/components/index.js +547 -0
  320. package/dist/components/index.js.map +1 -0
  321. package/dist/cura/cura.esm.js +2 -0
  322. package/dist/cura/cura.esm.js.map +1 -0
  323. package/dist/cura/cura.js +133 -0
  324. package/dist/cura/index.esm.js +2 -0
  325. package/dist/cura/index.esm.js.map +1 -0
  326. package/dist/cura/p-118112e5.system.js +14 -0
  327. package/dist/cura/p-118112e5.system.js.map +1 -0
  328. package/dist/cura/p-183305c3.js +2 -0
  329. package/dist/cura/p-183305c3.js.map +1 -0
  330. package/dist/cura/p-2cbf52f1.js +3 -0
  331. package/dist/cura/p-2cbf52f1.js.map +1 -0
  332. package/dist/cura/p-3f6aaefc.system.js +2 -0
  333. package/dist/cura/p-3f6aaefc.system.js.map +1 -0
  334. package/dist/cura/p-4cdbc8a1.system.entry.js +2 -0
  335. package/dist/cura/p-4cdbc8a1.system.entry.js.map +1 -0
  336. package/dist/cura/p-50ea2036.system.js +2 -0
  337. package/dist/cura/p-50ea2036.system.js.map +1 -0
  338. package/dist/cura/p-788e035b.system.js +2 -0
  339. package/dist/cura/p-788e035b.system.js.map +1 -0
  340. package/dist/cura/p-8da635b7.system.js +3 -0
  341. package/dist/cura/p-8da635b7.system.js.map +1 -0
  342. package/dist/cura/p-beab48cd.js +13 -0
  343. package/dist/cura/p-beab48cd.js.map +1 -0
  344. package/dist/cura/p-c54ce246.entry.js +2 -0
  345. package/dist/cura/p-c54ce246.entry.js.map +1 -0
  346. package/dist/cura/p-d5c64a5f.js +2 -0
  347. package/dist/cura/p-d5c64a5f.js.map +1 -0
  348. package/dist/cura/p-f4232daa.system.js +2 -0
  349. package/dist/cura/p-f4232daa.system.js.map +1 -0
  350. package/dist/esm/app-globals-cc003eaf.js +509 -0
  351. package/dist/esm/app-globals-cc003eaf.js.map +1 -0
  352. package/dist/esm/css-shim-d13f0738.js +6 -0
  353. package/dist/esm/css-shim-d13f0738.js.map +1 -0
  354. package/dist/esm/cura-accordion_12.entry.js +659 -0
  355. package/dist/esm/cura-accordion_12.entry.js.map +1 -0
  356. package/dist/esm/cura.js +31 -0
  357. package/dist/esm/cura.js.map +1 -0
  358. package/dist/esm/index-9af0cdbd.js +1972 -0
  359. package/dist/esm/index-9af0cdbd.js.map +1 -0
  360. package/dist/esm/index.js +3 -0
  361. package/dist/esm/index.js.map +1 -0
  362. package/dist/esm/loader.js +38 -0
  363. package/dist/esm/loader.js.map +1 -0
  364. package/dist/esm/polyfills/core-js.js +11 -0
  365. package/dist/esm/polyfills/css-shim.js +1 -0
  366. package/dist/esm/polyfills/dom.js +79 -0
  367. package/dist/esm/polyfills/es5-html-element.js +1 -0
  368. package/dist/esm/polyfills/index.js +34 -0
  369. package/dist/esm/polyfills/system.js +6 -0
  370. package/dist/esm/shadow-css-07b0c8c8.js +389 -0
  371. package/dist/esm/shadow-css-07b0c8c8.js.map +1 -0
  372. package/dist/esm-es5/app-globals-cc003eaf.js +2 -0
  373. package/dist/esm-es5/app-globals-cc003eaf.js.map +1 -0
  374. package/dist/esm-es5/css-shim-d13f0738.js +2 -0
  375. package/dist/esm-es5/css-shim-d13f0738.js.map +1 -0
  376. package/dist/esm-es5/cura-accordion_12.entry.js +2 -0
  377. package/dist/esm-es5/cura-accordion_12.entry.js.map +1 -0
  378. package/dist/esm-es5/cura.js +2 -0
  379. package/dist/esm-es5/cura.js.map +1 -0
  380. package/dist/esm-es5/index-9af0cdbd.js +3 -0
  381. package/dist/esm-es5/index-9af0cdbd.js.map +1 -0
  382. package/dist/esm-es5/index.js +2 -0
  383. package/dist/esm-es5/index.js.map +1 -0
  384. package/dist/esm-es5/loader.js +2 -0
  385. package/dist/esm-es5/loader.js.map +1 -0
  386. package/dist/esm-es5/shadow-css-07b0c8c8.js +13 -0
  387. package/dist/esm-es5/shadow-css-07b0c8c8.js.map +1 -0
  388. package/dist/index.cjs.js +1 -0
  389. package/dist/index.js +1 -0
  390. package/dist/loader/cdn.js +3 -0
  391. package/dist/loader/index.cjs.js +3 -0
  392. package/dist/loader/index.d.ts +21 -0
  393. package/dist/loader/index.es2017.js +3 -0
  394. package/dist/loader/index.js +4 -0
  395. package/dist/loader/package.json +11 -0
  396. package/dist/types/api/cura-api.d.ts +6 -0
  397. package/dist/types/api/cura-api.type.d.ts +65 -0
  398. package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +5 -0
  399. package/dist/types/api/modules/cura-theme-colors-module.d.ts +48 -0
  400. package/dist/types/api/modules/cura-theme-fonts-module.d.ts +24 -0
  401. package/dist/types/api/modules/cura-theme-module.d.ts +32 -0
  402. package/dist/types/api/modules/cura-theme-spacing-module.d.ts +6 -0
  403. package/dist/types/api/theme-presets/static.d.ts +69 -0
  404. package/dist/types/api/theme-presets/theme-default.d.ts +46 -0
  405. package/dist/types/api/theme-presets/theme-legacy-default.d.ts +43 -0
  406. package/dist/types/api/theme-presets/theme-maternity.d.ts +43 -0
  407. package/dist/types/api/theme-presets/theme-oncology.d.ts +50 -0
  408. package/dist/types/api/theme-presets/theme-presets.d.ts +181 -0
  409. package/dist/types/assets/icons/iconset-default-list.d.ts +2 -0
  410. package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +39 -0
  411. package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +154 -0
  412. package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +29 -0
  413. package/dist/types/components/buttons/cura-button/cura-button.d.ts +61 -0
  414. package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +171 -0
  415. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +61 -0
  416. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +171 -0
  417. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +61 -0
  418. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +171 -0
  419. package/dist/types/components/cura-icon/cura-icon.d.ts +56 -0
  420. package/dist/types/components/cura-icon/cura-icon.stories.d.ts +65 -0
  421. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +7 -0
  422. package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +7 -0
  423. package/dist/types/components/cura-page-template/cura-page-template.d.ts +8 -0
  424. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +23 -0
  425. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +43 -0
  426. package/dist/types/components/text/cura-display/cura-display.d.ts +38 -0
  427. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +76 -0
  428. package/dist/types/components/text/cura-heading/cura-heading.d.ts +43 -0
  429. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +90 -0
  430. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +37 -0
  431. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +74 -0
  432. package/dist/types/components.d.ts +688 -0
  433. package/dist/types/index.d.ts +1 -0
  434. package/dist/types/rededor-cura-start.d.ts +9 -0
  435. package/dist/types/stencil-public-runtime.d.ts +1638 -0
  436. package/dist/types/utils/utils.d.ts +2 -0
  437. package/package.json +4 -6
@@ -0,0 +1 @@
1
+ {"file":"cura-button-transparent.js","mappings":";;;;AAAA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AI,CAAC,UAAU,EAAE,EAC9B,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,EAC/B,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IACnC,YAAM,KAAK,EAAC,kBAAkB,IAC1B,IAAI,CAAC,OAAO,EAAE,EAChB,YAAM,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,KAAK,OAAO,EAAC,IAAE,eAAa,CAAO,CACjF,EACP,0BAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,GAAuB,CACjF,CACV,CACM,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraButtonTransparent"],"sources":["./src/components/buttons/cura-button-transparent/cura-button-transparent.scss?tag=cura-button-transparent&encapsulation=shadow","./src/components/buttons/cura-button-transparent/cura-button-transparent.tsx"],"sourcesContent":["@import \"../../../scss/mixins/buttons.scss\";\n\n:host {\n @include button-host();\n\n button, a {\n @include button-element() {\n background-color: transparent;\n border-width: 0px;\n border-color: transparent;\n\n &:not(.disabled):not(.isLoading):hover {\n .label { color: var(--color-light); }\n cura-icon { --color: var(--color-light) !important; }\n }\n\n &:not(.disabled):not(.inverted):not(.isLoading):active { \n .label { color: var(--color-dark); }\n cura-icon { --color: var(--color-dark) !important; }\n }\n }\n \n @include button-sizes();\n\n // Children Elements\n @include button-container();\n @include button-label() {\n color: var(--color-base);\n &.inverted { color: var(--neutral-white); }\n }\n @include button-icon();\n\n // Disabled state\n @include button-disabled() {\n border-color: var(--neutral-base);\n .label, .label.inverted { color: var(--neutral-dark); }\n &.inverted {\n opacity: 0.6;\n .label, .label.inverted { color: var(--neutral-white); }\n cura-icon { --color: var(--neutral-white) !important; }\n cura-loader-circle { --color: var(--neutral-white) !important; }\n }\n }\n\n // FAB / Icon-only\n @include button-icon-only-behavior();\n\n &.inverted {\n &:not(.isLoading):not(.disabled):hover { \n .label { color: var(--color-lighter); }\n cura-icon { --color: var(--color-lighter) !important; }\n }\n &:not(.isLoading):not(.disabled):active {\n .label { color: var(--color-light); }\n cura-icon { --color: var(--color-light) !important; }\n }\n }\n\n // Loading State\n @include button-loading();\n\n }\n}\n","import { Component, Host, h, Prop, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'cura-button-transparent',\n styleUrl: 'cura-button-transparent.scss',\n shadow: true,\n})\nexport class CuraButtonTransparent {\n\n /**\n * Button size: small | medium | large (default)\n */\n @Prop({reflect: true}) size: 'small' | 'medium' | 'large' = 'large';\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-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);\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-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 };\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 : `${this.color}-base`;\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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraButton extends Components.CuraButton, HTMLElement {}
4
+ export const CuraButton: {
5
+ prototype: CuraButton;
6
+ new (): CuraButton;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,123 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$3 } from './cura-icon2.js';
3
+ import { d as defineCustomElement$2 } from './cura-loader-circle2.js';
4
+
5
+ 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}";
6
+
7
+ const CuraButton$1 = /*@__PURE__*/ proxyCustomElement(class CuraButton extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.size = 'medium';
13
+ this.disabled = false;
14
+ this.isLoading = false;
15
+ this.iconName = undefined;
16
+ this.iconset = 'default';
17
+ this.iconPosition = 'left';
18
+ this.iconOnly = undefined;
19
+ this.href = undefined;
20
+ this.target = "_self";
21
+ this.color = 'accent';
22
+ this.fontColor = 'dark';
23
+ this.textAlign = 'left';
24
+ this.styles = {};
25
+ }
26
+ handleChangeColor() {
27
+ this.setColors();
28
+ }
29
+ connectedCallback() {
30
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
31
+ this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
32
+ this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
33
+ this.styles['--neutral-light'] = window.CuraAPI.theme.colors.getColor(`neutral-light`);
34
+ this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
35
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
36
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
37
+ this.styles['--font-weight-medium'] = this.weights.medium;
38
+ this.styles['--text-align'] = this.textAlign;
39
+ this.setColors();
40
+ }
41
+ getClasses() {
42
+ const classes = {};
43
+ classes[`${this.size.toLowerCase()}`] = true;
44
+ classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
45
+ classes[`icon-only`] = this.iconOnly;
46
+ classes['inverted'] = this.fontColor === 'light';
47
+ classes['disabled'] = this.disabled;
48
+ classes['isLoading'] = this.isLoading;
49
+ return classes;
50
+ }
51
+ setColors() {
52
+ 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`) });
53
+ }
54
+ getIcon() {
55
+ if (!this.iconName)
56
+ return '';
57
+ const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
58
+ const color = this.getSymbolColor();
59
+ return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: color });
60
+ }
61
+ getSymbolColor() {
62
+ return this.disabled
63
+ ? 'neutral-dark'
64
+ : this.fontColor === 'light'
65
+ ? 'neutral-white'
66
+ : 'neutral-black';
67
+ }
68
+ handleClick(e) {
69
+ if (this.disabled || this.isLoading)
70
+ e.preventDefault();
71
+ }
72
+ render() {
73
+ return (h(Host, null, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e) }, h("span", { class: "button-container" }, this.getIcon(), h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e) }, h("span", { class: "button-container" }, this.getIcon(), h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() })))));
74
+ }
75
+ static get watchers() { return {
76
+ "color": ["handleChangeColor"]
77
+ }; }
78
+ static get style() { return curaButtonCss; }
79
+ }, [1, "cura-button", {
80
+ "size": [513],
81
+ "disabled": [516],
82
+ "isLoading": [516, "is-loading"],
83
+ "iconName": [513, "icon-name"],
84
+ "iconset": [513],
85
+ "iconPosition": [513, "icon-position"],
86
+ "iconOnly": [516, "icon-only"],
87
+ "href": [513],
88
+ "target": [513],
89
+ "color": [1],
90
+ "fontColor": [513, "font-color"],
91
+ "textAlign": [513, "text-align"],
92
+ "styles": [32]
93
+ }]);
94
+ function defineCustomElement$1() {
95
+ if (typeof customElements === "undefined") {
96
+ return;
97
+ }
98
+ const components = ["cura-button", "cura-icon", "cura-loader-circle"];
99
+ components.forEach(tagName => { switch (tagName) {
100
+ case "cura-button":
101
+ if (!customElements.get(tagName)) {
102
+ customElements.define(tagName, CuraButton$1);
103
+ }
104
+ break;
105
+ case "cura-icon":
106
+ if (!customElements.get(tagName)) {
107
+ defineCustomElement$3();
108
+ }
109
+ break;
110
+ case "cura-loader-circle":
111
+ if (!customElements.get(tagName)) {
112
+ defineCustomElement$2();
113
+ }
114
+ break;
115
+ } });
116
+ }
117
+
118
+ const CuraButton = CuraButton$1;
119
+ const define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U,EAAE,EAC9B,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,EAC/B,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IACnC,YAAM,KAAK,EAAC,kBAAkB,IAC1B,IAAI,CAAC,OAAO,EAAE,EAChB,YAAM,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,KAAK,OAAO,EAAC,IAAE,eAAa,CAAO,CACjF,EACP,0BAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,GAAuB,CACjF,CACV,CACM,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraButton"],"sources":["./src/components/buttons/cura-button/cura-button.scss?tag=cura-button&encapsulation=shadow","./src/components/buttons/cura-button/cura-button.tsx"],"sourcesContent":["@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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraDisplay extends Components.CuraDisplay, HTMLElement {}
4
+ export const CuraDisplay: {
5
+ prototype: CuraDisplay;
6
+ new (): CuraDisplay;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,89 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const curaDisplayCss = ":host{display:block;font-size:var(--font-size);text-transform:uppercase}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:4.285em;font-weight:var(--font-weight-black);color:var(--color-body);line-height:120%;letter-spacing:-4%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:6.21em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3em;font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.92em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:7.07em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3.428em}}@media (min-width: 1366px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:6.14em;line-height:125%}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:8.857em;letter-spacing:-6%}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:4.285em;letter-spacing:-2%}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}: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}";
4
+
5
+ const CuraDisplay$1 = /*@__PURE__*/ proxyCustomElement(class CuraDisplay extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.level = 1;
11
+ this.size = 'regular';
12
+ this.inverted = false;
13
+ this.spotColor = 'primary';
14
+ }
15
+ connectedCallback() {
16
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
17
+ this.setFontProperties();
18
+ this.setColors();
19
+ }
20
+ getClasses() {
21
+ const classes = {};
22
+ classes[this.size.toLowerCase()] = true;
23
+ return classes;
24
+ }
25
+ setFontProperties() {
26
+ this.styles = {
27
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),
28
+ '--font-size': window.CuraAPI.theme.fonts.getSize(),
29
+ '--font-weight-bold': this.weights.bold,
30
+ '--font-weight-black': this.weights.black
31
+ };
32
+ this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
33
+ this.setHostProperty('--block-margin', '0.5em');
34
+ }
35
+ setColors() {
36
+ const fontColor = this.inverted
37
+ ? window.CuraAPI.theme.colors.getColor('neutral-white')
38
+ : window.CuraAPI.theme.fonts.getColor();
39
+ this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
40
+ this.styles['--color-link'] = this.inverted
41
+ ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
42
+ : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);
43
+ }
44
+ setHostProperty(prop, value) {
45
+ this.host.style.setProperty(prop, value);
46
+ }
47
+ getHeadingTag() {
48
+ const tags = {
49
+ '1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
50
+ '2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
51
+ '3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
52
+ '4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
53
+ '5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
54
+ '6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
55
+ 'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
56
+ };
57
+ return tags[`${this.level}`] || tags['default'];
58
+ }
59
+ render() {
60
+ return (h(Host, null, this.getHeadingTag()));
61
+ }
62
+ get host() { return this; }
63
+ static get style() { return curaDisplayCss; }
64
+ }, [1, "cura-display", {
65
+ "level": [514],
66
+ "size": [513],
67
+ "inverted": [516],
68
+ "spotColor": [513, "spot-color"]
69
+ }]);
70
+ function defineCustomElement$1() {
71
+ if (typeof customElements === "undefined") {
72
+ return;
73
+ }
74
+ const components = ["cura-display"];
75
+ components.forEach(tagName => { switch (tagName) {
76
+ case "cura-display":
77
+ if (!customElements.get(tagName)) {
78
+ customElements.define(tagName, CuraDisplay$1);
79
+ }
80
+ break;
81
+ } });
82
+ }
83
+
84
+ const CuraDisplay = CuraDisplay$1;
85
+ const defineCustomElement = defineCustomElement$1;
86
+
87
+ export { CuraDisplay, defineCustomElement };
88
+
89
+ //# sourceMappingURL=cura-display.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-display.js","mappings":";;AAAA,MAAM,cAAc,GAAG,oxDAAoxD;;MCO9xDA,aAAW;;;;;iBAMS,CAAC;gBAKF,SAAS;oBAKL,KAAK;qBAKJ,SAAS;;EAa3C,iBAAiB;IAChB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzB,IAAI,CAAC,SAAS,EAAE,CAAC;GAClB;EAED,UAAU;IACR,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAI,IAAI,CAAC;IACzC,OAAO,OAAO,CAAC;GAChB;EAED,iBAAiB;IACf,IAAI,CAAC,MAAM,GAAG;MACZ,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;MAChE,aAAa,EAAE,MAAM,CAAC,OA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E,IAAE,eAAa,CAAK;MACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;MACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;MACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;MACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;MACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;MACzE,SAAS,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;KAChF,CAAC;IACF,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;GACjD;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACD,IAAI,CAAC,aAAa,EAAE,CACjB,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraDisplay"],"sources":["./src/components/text/cura-display/cura-display.scss?tag=cura-display&encapsulation=shadow","./src/components/text/cura-display/cura-display.tsx"],"sourcesContent":["@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n font-size: var(--font-size);\n text-transform: uppercase;\n\n h1, h2, h3, h4, h5, h6 {\n font-family: var(--font-family);\n font-size: 4.285em;\n font-weight: var(--font-weight-black);\n color: var(--color-body);\n line-height: 120%;\n letter-spacing: -4%;\n margin-block-start: var(--block-margin);\n margin-block-end: var(--block-margin);\n\n &.large {\n font-size:6.21em;\n }\n\n &.small {\n font-size: 3em;\n font-weight: var(--font-weight-bold);\n }\n\n }\n\n @include medium-only() {\n h1, h2, h3, h4, h5, h6 { \n font-size: 4.92em;\n\n &.large {\n font-size: 7.07em;\n }\n\n &.small {\n font-size: 3.428em;\n }\n\n }\n }\n\n @include large-up() {\n h1, h2, h3, h4, h5, h6 { \n font-size: 6.14em;\n line-height: 125%;\n\n &.large {\n font-size: 8.857em;\n letter-spacing: -6%;\n }\n\n &.small {\n font-size: 4.285em;\n letter-spacing: -2%;\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-bold);\n color: var(--color-link);\n text-decoration: none;\n text-underline-offset: 10%;\n cursor: pointer;\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","import { Component, Host, h, Element, Prop } from '@stencil/core';\n\n@Component({\n tag: 'cura-display',\n styleUrl: 'cura-display.scss',\n shadow: true,\n})\nexport class CuraDisplay {\n\n /**\n * Heading level for semantics.\n * Values: 1(default)-6.\n */\n @Prop({reflect: true}) level = 1;\n /**\n * Heading style size.\n * Values: small | regular(default) | large.\n */\n @Prop({reflect: true}) size = 'regular';\n /**\n * Apply light color to text in dark background.\n * Values: boolean.\n */\n @Prop({reflect: true}) inverted = false;\n /**\n * Apply base system color to elements like <a> and <abbr>.\n * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.\n */\n @Prop({reflect: true}) spotColor = 'primary';\n \n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n \n /**\n * Internal Props\n */\n weights: any;\n styles: any;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n return classes;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '0.5em');\n }\n\n setColors() {\n const fontColor = this.inverted \n ? window.CuraAPI.theme.colors.getColor('neutral-white') \n : window.CuraAPI.theme.fonts.getColor();\n this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');\n this.styles['--color-link'] = this.inverted \n ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)\n : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraHeading extends Components.CuraHeading, HTMLElement {}
4
+ export const CuraHeading: {
5
+ prototype: CuraHeading;
6
+ new (): CuraHeading;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,94 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const curaHeadingCss = ":host{display:block;font-size:var(--font-size)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.71em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:130%;letter-spacing:0%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}: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.07em;letter-spacing:-2%}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:150%;letter-spacing:0%}:host h1.small.bold-weight,:host h2.small.bold-weight,:host h3.small.bold-weight,:host h4.small.bold-weight,:host h5.small.bold-weight,:host h6.small.bold-weight{font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){: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}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}}@media (min-width: 1366px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:135%;letter-spacing:-2%}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.92em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.71em;line-height:160%;letter-spacing:0%}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}: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}";
4
+
5
+ const CuraHeading$1 = /*@__PURE__*/ proxyCustomElement(class CuraHeading extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.level = 1;
11
+ this.size = 'regular';
12
+ this.weight = 'regular';
13
+ this.inverted = false;
14
+ this.spotColor = 'primary';
15
+ }
16
+ connectedCallback() {
17
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
18
+ this.setFontProperties();
19
+ this.setColors();
20
+ }
21
+ getClasses() {
22
+ const classes = {};
23
+ classes[this.size.toLowerCase()] = true;
24
+ classes[`${this.weight.toLowerCase()}-weight`] = true;
25
+ return classes;
26
+ }
27
+ setFontProperties() {
28
+ this.styles = {
29
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
30
+ '--font-size': window.CuraAPI.theme.fonts.getSize(),
31
+ '--font-weight-regular': this.weights.regular,
32
+ '--font-weight-medium': this.weights.medium,
33
+ '--font-weight-bold': this.weights.bold,
34
+ '--font-weight-black': this.weights.black
35
+ };
36
+ this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
37
+ this.setHostProperty('--block-margin', '0.5em');
38
+ }
39
+ setColors() {
40
+ const fontColor = this.inverted
41
+ ? window.CuraAPI.theme.colors.getColor('neutral-white')
42
+ : window.CuraAPI.theme.fonts.getColor();
43
+ this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
44
+ this.styles['--color-link'] = this.inverted
45
+ ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
46
+ : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);
47
+ }
48
+ setHostProperty(prop, value) {
49
+ this.host.style.setProperty(prop, value);
50
+ }
51
+ getHeadingTag() {
52
+ const tags = {
53
+ '1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
54
+ '2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
55
+ '3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
56
+ '4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
57
+ '5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
58
+ '6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
59
+ 'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
60
+ };
61
+ return tags[`${this.level}`] || tags['default'];
62
+ }
63
+ render() {
64
+ return (h(Host, null, this.getHeadingTag()));
65
+ }
66
+ get host() { return this; }
67
+ static get style() { return curaHeadingCss; }
68
+ }, [1, "cura-heading", {
69
+ "level": [514],
70
+ "size": [513],
71
+ "weight": [513],
72
+ "inverted": [516],
73
+ "spotColor": [513, "spot-color"]
74
+ }]);
75
+ function defineCustomElement$1() {
76
+ if (typeof customElements === "undefined") {
77
+ return;
78
+ }
79
+ const components = ["cura-heading"];
80
+ components.forEach(tagName => { switch (tagName) {
81
+ case "cura-heading":
82
+ if (!customElements.get(tagName)) {
83
+ customElements.define(tagName, CuraHeading$1);
84
+ }
85
+ break;
86
+ } });
87
+ }
88
+
89
+ const CuraHeading = CuraHeading$1;
90
+ const defineCustomElement = defineCustomElement$1;
91
+
92
+ export { CuraHeading, defineCustomElement };
93
+
94
+ //# sourceMappingURL=cura-heading.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-heading.js","mappings":";;AAAA,MAAM,cAAc,GAAG,soEAAsoE;;MCOhpEA,aAAW;;;;;iBAMS,CAAC;gBAKF,SAAS;kBAKP,SAAS;oBAKP,KAAK;qBAKJ,SAAS;;EAa5C,iBAAiB;IACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzB,IAAI,CAAC,SAAS,EAAE,CAAC;GAClB;EAED,UAAU;IACR,MAAM,OAAO,GA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AI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;GACjD;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACD,IAAI,CAAC,aAAa,EAAE,CACjB,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraHeading"],"sources":["./src/components/text/cura-heading/cura-heading.scss?tag=cura-heading&encapsulation=shadow","./src/components/text/cura-heading/cura-heading.tsx"],"sourcesContent":["@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n font-size: var(--font-size);\n\n h1, h2, h3, h4, h5, h6 {\n font-family: var(--font-family);\n font-size: 1.71em;\n font-weight: var(--font-weight-regular);\n color: var(--color-body);\n line-height: 130%;\n letter-spacing: 0%;\n margin-block-start: var(--block-margin);\n margin-block-end: var(--block-margin);\n\n &.bold-weight {\n font-weight: var(--font-weight-medium);\n }\n\n &.large {\n font-size: 2.07em;\n letter-spacing: -2%;\n }\n\n &.small {\n font-size: 1.214em;\n line-height: 150%;\n letter-spacing: 0%;\n\n &.bold-weight {\n font-weight: var(--font-weight-bold);\n }\n }\n\n }\n\n @include medium-only() {\n h1, h2, h3, h4, h5, h6 { \n font-size: 2em;\n\n &.large {\n font-size: 2.357em;\n }\n\n &.small {\n font-size: 1.357em;\n }\n\n }\n }\n\n @include large-up() {\n h1, h2, h3, h4, h5, h6 { \n font-size: 2.5em;\n line-height: 135%;\n letter-spacing: -2%;\n\n &.large {\n font-size: 2.92em;\n }\n\n &.small {\n font-size: 1.71em;\n line-height: 160%;\n letter-spacing: 0%;\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-bold);\n color: var(--color-link);\n text-decoration: none;\n text-underline-offset: 10%;\n cursor: pointer;\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","import { Component, Host, h, Prop, Element } from '@stencil/core';\n\n@Component({\n tag: 'cura-heading',\n styleUrl: 'cura-heading.scss',\n shadow: true,\n})\nexport class CuraHeading {\n\n /**\n * Heading level for semantics.\n * Values: 1(default)-6.\n */\n @Prop({reflect: true}) level = 1;\n /**\n * Heading style size.\n * Values: small | regular(default) | large.\n */\n @Prop({reflect: true}) size = 'regular';\n /**\n * Heading font weight.\n * Values: regular(default) | bold.\n */\n @Prop({reflect: true}) weight = 'regular';\n /**\n * Apply light color to text in dark background.\n * Values: boolean.\n */\n @Prop({reflect: true}) inverted = false;\n /**\n * Apply base system color to elements like <a> and <abbr>.\n * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.\n */\n @Prop({reflect: true}) spotColor = 'primary';\n\n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n styles: any;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n classes[`${this.weight.toLowerCase()}-weight`] = true;\n return classes;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '0.5em');\n }\n\n setColors() {\n const fontColor = this.inverted \n ? window.CuraAPI.theme.colors.getColor('neutral-white') \n : window.CuraAPI.theme.fonts.getColor();\n this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');\n this.styles['--color-link'] = this.inverted \n ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)\n : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraIcon extends Components.CuraIcon, HTMLElement {}
4
+ export const CuraIcon: {
5
+ prototype: CuraIcon;
6
+ new (): CuraIcon;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { C as CuraIcon$1, d as defineCustomElement$1 } from './cura-icon2.js';
2
+
3
+ const CuraIcon = CuraIcon$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { CuraIcon, defineCustomElement };
7
+
8
+ //# sourceMappingURL=cura-icon.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-icon.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,79 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ 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}";
4
+
5
+ const CuraIcon = /*@__PURE__*/ proxyCustomElement(class CuraIcon extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.sizes = {
11
+ "128": { size: 128, stroke: 5.25 },
12
+ "72": { size: 72, stroke: 3.5 },
13
+ "64": { size: 64, stroke: 3.25 },
14
+ "48": { size: 48, stroke: 2.75 },
15
+ "40": { size: 40, stroke: 2.5 },
16
+ "32": { size: 32, stroke: 2.25 },
17
+ "24": { size: 24, stroke: 2 },
18
+ "20": { size: 20, stroke: 1.75 },
19
+ "16": { size: 16, stroke: 1.5 },
20
+ "default": { size: 24, stroke: 2 }
21
+ };
22
+ this.name = '';
23
+ this.color = 'neutral-base';
24
+ this.size = undefined;
25
+ this.iconset = 'default';
26
+ this.disabled = false;
27
+ }
28
+ sizeHandler(size) {
29
+ const scaledStroke = (iconSize) => {
30
+ return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;
31
+ };
32
+ this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);
33
+ this.setHostProperty('--stroke', this.sizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
34
+ }
35
+ colorHandler() {
36
+ this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color));
37
+ }
38
+ connectedCallback() {
39
+ this.assetsPath = window.CuraAPI.localAssetsPath;
40
+ this.sizeHandler(this.size);
41
+ this.colorHandler();
42
+ }
43
+ setHostProperty(prop, value) {
44
+ this.host.style.setProperty(prop, value);
45
+ }
46
+ render() {
47
+ return (h(Host, null, h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
48
+ }
49
+ get host() { return this; }
50
+ static get watchers() { return {
51
+ "size": ["sizeHandler"],
52
+ "color": ["colorHandler"],
53
+ "disabled": ["colorHandler"]
54
+ }; }
55
+ static get style() { return curaIconCss; }
56
+ }, [1, "cura-icon", {
57
+ "name": [513],
58
+ "color": [1],
59
+ "size": [8],
60
+ "iconset": [513],
61
+ "disabled": [4]
62
+ }]);
63
+ function defineCustomElement() {
64
+ if (typeof customElements === "undefined") {
65
+ return;
66
+ }
67
+ const components = ["cura-icon"];
68
+ components.forEach(tagName => { switch (tagName) {
69
+ case "cura-icon":
70
+ if (!customElements.get(tagName)) {
71
+ customElements.define(tagName, CuraIcon);
72
+ }
73
+ break;
74
+ } });
75
+ }
76
+
77
+ export { CuraIcon as C, defineCustomElement as d };
78
+
79
+ //# sourceMappingURL=cura-icon2.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-icon2.js","mappings":";;AAAA,MAAM,WAAW,GAAG,0KAA0K;;MCOjL,QAAQ;;;;;IAUnB,UAAK,GAAG;MACN,KAAK,EAAE,EAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAC;MAChC,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;MAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;MAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;MAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;MAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;MAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAC;MAC3B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;MAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;MAC7B,SAAS,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE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AC,CAAC;GAC1C;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,WACE,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,mBAAmB,EAAC,eAAe,EACnC,KAAK,EAAC,4BAA4B,IAClC,WACE,SAAS,EAAE,GAAG,IAAI,CAAC,UAAU,kBAAkB,IAAI,CAAC,OAAO,QAAQ,IAAI,CAAC,IAAI,EAAE,GAC1E,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/cura-icon/cura-icon.scss?tag=cura-icon&encapsulation=shadow","./src/components/cura-icon/cura-icon.tsx"],"sourcesContent":[":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';\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 sizes = {\n \"128\": {size: 128, stroke: 5.25},\n \"72\": {size: 72, stroke: 3.5},\n \"64\": {size: 64, stroke: 3.25},\n \"48\": {size: 48, stroke: 2.75},\n \"40\": {size: 40, stroke: 2.5},\n \"32\": {size: 32, stroke: 2.25},\n \"24\": {size: 24, stroke: 2},\n \"20\": {size: 20, stroke: 1.75},\n \"16\": {size: 16, stroke: 1.5},\n \"default\": {size: 24, stroke: 2}\n };\n\n @Watch('size')\n sizeHandler(size: string | number) {\n const scaledStroke = (iconSize: string | number) => {\n return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;\n }\n this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);\n this.setHostProperty('--stroke', this.sizes[`${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));\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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraIconsView extends Components.CuraIconsView, HTMLElement {}
4
+ export const CuraIconsView: {
5
+ prototype: CuraIconsView;
6
+ new (): CuraIconsView;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;