@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,16 @@
1
+ import { format } from './utils';
2
+ describe('format', () => {
3
+ it('returns empty string for no names defined', () => {
4
+ expect(format(undefined, undefined, undefined)).toEqual('');
5
+ });
6
+ it('formats just first names', () => {
7
+ expect(format('Joseph', undefined, undefined)).toEqual('Joseph');
8
+ });
9
+ it('formats first and last names', () => {
10
+ expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');
11
+ });
12
+ it('formats first, middle and last names', () => {
13
+ expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');
14
+ });
15
+ });
16
+ //# sourceMappingURL=utils.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.spec.js","sourceRoot":"","sources":["../../src/utils/utils.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;EACtB,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;IACnD,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;EAC9D,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;IAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;EACnE,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;IACtC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;EAC7E,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;IAC9C,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;EACnF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { format } from './utils';\n\ndescribe('format', () => {\n it('returns empty string for no names defined', () => {\n expect(format(undefined, undefined, undefined)).toEqual('');\n });\n\n it('formats just first names', () => {\n expect(format('Joseph', undefined, undefined)).toEqual('Joseph');\n });\n\n it('formats first and last names', () => {\n expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');\n });\n\n it('formats first, middle and last names', () => {\n expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');\n });\n});\n"]}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraAccordionItem extends Components.CuraAccordionItem, HTMLElement {}
4
+ export const CuraAccordionItem: {
5
+ prototype: CuraAccordionItem;
6
+ new (): CuraAccordionItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,76 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$2 } from './cura-icon2.js';
3
+
4
+ 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: 768px) and (max-width: 1365px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 1366px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}";
5
+
6
+ const CuraAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class CuraAccordionItem extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.label = '';
12
+ this.iconSize = 32;
13
+ this.openIcon = 'down';
14
+ this.closeIcon = 'up';
15
+ this.iconColor = '';
16
+ this.iconActiveColor = '';
17
+ this.colorMode = 'dark';
18
+ this.opened = false;
19
+ this.styles = {};
20
+ }
21
+ getIconColor() {
22
+ const inverted = this.colorMode === 'light';
23
+ const iconColor = inverted ? 'neutral-lighter' : `${this.iconColor}-base`;
24
+ const iconActiveColor = inverted ? 'neutral-purewhite' : `${this.iconActiveColor}-base`;
25
+ return this.opened ? iconActiveColor : iconColor;
26
+ }
27
+ getClasses() {
28
+ const classes = {};
29
+ classes['accordion-item'] = true;
30
+ classes['active'] = this.opened;
31
+ classes['inverted'] = this.colorMode === 'light';
32
+ return classes;
33
+ }
34
+ accordionItemClick(_) {
35
+ this.opened = !this.opened;
36
+ }
37
+ render() {
38
+ return (h(Host, { slot: "accordion-item" }, h("div", { class: this.getClasses(), style: this.styles }, h("div", { class: "label", onClick: e => this.accordionItemClick(e) }, h("div", { class: "label-container" }, h("span", null, this.label), h("cura-icon", { name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: this.getIconColor() }))), h("div", { class: 'content' }, h("div", { class: "content-wrapper" }, h("slot", null))))));
39
+ }
40
+ static get style() { return curaAccordionItemCss; }
41
+ }, [1, "cura-accordion-item", {
42
+ "label": [513],
43
+ "iconSize": [514, "icon-size"],
44
+ "openIcon": [513, "open-icon"],
45
+ "closeIcon": [513, "close-icon"],
46
+ "iconColor": [513, "icon-color"],
47
+ "iconActiveColor": [513, "icon-active-color"],
48
+ "colorMode": [1, "color-mode"],
49
+ "opened": [1540],
50
+ "styles": [32]
51
+ }]);
52
+ function defineCustomElement$1() {
53
+ if (typeof customElements === "undefined") {
54
+ return;
55
+ }
56
+ const components = ["cura-accordion-item", "cura-icon"];
57
+ components.forEach(tagName => { switch (tagName) {
58
+ case "cura-accordion-item":
59
+ if (!customElements.get(tagName)) {
60
+ customElements.define(tagName, CuraAccordionItem$1);
61
+ }
62
+ break;
63
+ case "cura-icon":
64
+ if (!customElements.get(tagName)) {
65
+ defineCustomElement$2();
66
+ }
67
+ break;
68
+ } });
69
+ }
70
+
71
+ const CuraAccordionItem = CuraAccordionItem$1;
72
+ const defineCustomElement = defineCustomElement$1;
73
+
74
+ export { CuraAccordionItem, defineCustomElement };
75
+
76
+ //# sourceMappingURL=cura-accordion-item.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-accordion-item.js","mappings":";;;AAAA,MAAM,oBAAoB,GAAG,6zGAA6zG;;MCO70GA,mBAAiB;;;;;iBAKW,EAAE;oBAMP,EAAE;oBACF,MAAM;qBACL,IAAI;qBAMJ,EAAE;2BACI,EAAE;qBAKL,MAAM;kBAEc,KAAK;kBAE7C,EAAE;;EAEpB,YAAY;IACV,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC;IAC5C,MAAM,SAAS,GAAG,QAAQ,GAAG,iBAAiB,GAAG,GAAG,IAAI,CAAC,SAAS,OAAO,CAAC;IAC1E,MAAM,eAAe,GAAG,QAAQ,GAAG,mBAAmB,GAAG,GAAG,IAAI,CAAC,eAAe,OAAO,CAAC;IACxF,OAAO,IAAI,CAAC,MAAM,GAAG,eAAe,GAAG,SAAS,CAAC;GAClD;EAED,UAAU;IACR,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACjC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;IAChC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC;IACjD,OAAO,OAAO,CAAC;GAChB;EAED,kBAAkB,CAAC,CAAQ;IACzB,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;GAC5B;EAED,MAAM;IACJ,QACE,EAAC,IAAI,IAAC,IAAI,EAAC,gBAAgB,IACzB,WAAK,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,IAC/C,WAAK,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IACzD,WAAK,KAAK,EAAC,iBAAiB,IAC1B,gBAAO,IAAI,CAAC,KAAK,CAAQ,EACzB,iBAAW,IAAI,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,GAAc,CACxH,CACF,EACN,WAAK,KAAK,EAAC,SAAS,IAClB,WAAK,KAAK,EAAC,iBAAiB,IAC1B,eAAa,CACT,CACF,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraAccordionItem"],"sources":["./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"],"sourcesContent":["@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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraAccordion extends Components.CuraAccordion, HTMLElement {}
4
+ export const CuraAccordion: {
5
+ prototype: CuraAccordion;
6
+ new (): CuraAccordion;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,120 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ 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%}";
4
+
5
+ const CuraAccordion$1 = /*@__PURE__*/ proxyCustomElement(class CuraAccordion extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.mutationObserverCallback = (mutations, _) => {
11
+ var _a;
12
+ for (const mutation of mutations) {
13
+ if (mutation.type === 'attributes' && mutation.attributeName === 'opened' && ((_a = mutation.target) === null || _a === void 0 ? void 0 : _a['opened'])) {
14
+ if (this.behavior !== 'default')
15
+ continue;
16
+ this.host.querySelectorAll('cura-accordion-item').forEach(item => {
17
+ if (item != mutation.target) {
18
+ item.opened = false;
19
+ }
20
+ });
21
+ }
22
+ if (mutation.type === 'childList') {
23
+ const addedNodes = Array.from(mutation.addedNodes || []);
24
+ for (let node of addedNodes) {
25
+ this.setChildProperties(node);
26
+ }
27
+ }
28
+ }
29
+ };
30
+ this.mutationObserver = new MutationObserver(this.mutationObserverCallback);
31
+ this.color = 'primary';
32
+ this.activeColor = 'accent';
33
+ this.colorMode = 'dark';
34
+ this.iconSize = 32;
35
+ this.openIcon = 'down';
36
+ this.closeIcon = 'up';
37
+ this.iconColor = '';
38
+ this.iconActiveColor = '';
39
+ this.behavior = 'default';
40
+ this.styles = {};
41
+ }
42
+ handleChangeColor() {
43
+ this.setColors();
44
+ }
45
+ connectedCallback() {
46
+ const weights = window.CuraAPI.theme.fonts.getWeights();
47
+ this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
48
+ this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
49
+ this.styles['--neutral-lighter'] = window.CuraAPI.theme.colors.getColor(`neutral-lighter`);
50
+ this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
51
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
52
+ this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();
53
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
54
+ this.styles['--font-weight-regular'] = weights.regular;
55
+ this.setColors();
56
+ }
57
+ componentDidLoad() {
58
+ this.host.querySelectorAll('cura-accordion-item').forEach(item => {
59
+ this.setChildProperties(item);
60
+ });
61
+ const options = { childList: true, subtree: true, attributes: true };
62
+ this.mutationObserver.observe(this.host, options);
63
+ }
64
+ disconnectedCallback() {
65
+ this.mutationObserver.disconnect();
66
+ }
67
+ setChildProperties(item) {
68
+ // Theme
69
+ item.colorMode = this.colorMode;
70
+ item.iconColor = this.iconColor || this.color;
71
+ item.iconActiveColor = this.iconActiveColor || this.activeColor;
72
+ // Icon
73
+ item.iconSize = this.iconSize;
74
+ item.openIcon = this.openIcon;
75
+ item.closeIcon = this.closeIcon;
76
+ }
77
+ setColors() {
78
+ 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`) });
79
+ }
80
+ render() {
81
+ return (h(Host, { style: this.styles }, h("slot", { name: 'accordion-item' })));
82
+ }
83
+ get host() { return this; }
84
+ static get watchers() { return {
85
+ "color": ["handleChangeColor"],
86
+ "activeColor": ["handleChangeColor"]
87
+ }; }
88
+ static get style() { return curaAccordionCss; }
89
+ }, [1, "cura-accordion", {
90
+ "color": [513],
91
+ "activeColor": [513, "active-color"],
92
+ "colorMode": [513, "color-mode"],
93
+ "iconSize": [514, "icon-size"],
94
+ "openIcon": [513, "open-icon"],
95
+ "closeIcon": [513, "close-icon"],
96
+ "iconColor": [513, "icon-color"],
97
+ "iconActiveColor": [513, "icon-active-color"],
98
+ "behavior": [513],
99
+ "styles": [32]
100
+ }]);
101
+ function defineCustomElement$1() {
102
+ if (typeof customElements === "undefined") {
103
+ return;
104
+ }
105
+ const components = ["cura-accordion"];
106
+ components.forEach(tagName => { switch (tagName) {
107
+ case "cura-accordion":
108
+ if (!customElements.get(tagName)) {
109
+ customElements.define(tagName, CuraAccordion$1);
110
+ }
111
+ break;
112
+ } });
113
+ }
114
+
115
+ const CuraAccordion = CuraAccordion$1;
116
+ const defineCustomElement = defineCustomElement$1;
117
+
118
+ export { CuraAccordion, defineCustomElement };
119
+
120
+ //# sourceMappingURL=cura-accordion.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-accordion.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,yQAAyQ;;MCOrRA,eAAa;;;;;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,S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AM,IAAI,EAAC,gBAAgB,GAAQ,CAC9B,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraAccordion"],"sources":["./src/components/accordion/cura-accordion/cura-accordion.scss?tag=cura-accordion&encapsulation=shadow","./src/components/accordion/cura-accordion/cura-accordion.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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraButtonOutline extends Components.CuraButtonOutline, HTMLElement {}
4
+ export const CuraButtonOutline: {
5
+ prototype: CuraButtonOutline;
6
+ new (): CuraButtonOutline;
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 curaButtonOutlineCss = ":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:transparent;border:none;-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-base);box-shadow:inset 0px 0px 0px 2px var(--color-base);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(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-light);box-shadow:inset 0px 0px 0px 2px var(--color-light)}:host button:not(.disabled):not(.isLoading):hover .label,:host a:not(.disabled):not(.isLoading):hover .label{color:var(--color-light)}:host button:not(.disabled):not(.isLoading):hover cura-icon,:host a:not(.disabled):not(.isLoading):hover cura-icon{--color:var(--color-light) !important}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-dark);box-shadow:inset 0px 0px 0px 2px var(--color-dark)}:host button:not(.disabled):not(.inverted):not(.isLoading):active .label,:host a:not(.disabled):not(.inverted):not(.isLoading):active .label{color:var(--color-dark)}:host button:not(.disabled):not(.inverted):not(.isLoading):active cura-icon,:host a:not(.disabled):not(.inverted):not(.isLoading):active cura-icon{--color:var(--color-dark) !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(--color-base)}: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;-webkit-box-shadow:inset 0px 0px 0px 2px var(--neutral-base);box-shadow:inset 0px 0px 0px 2px var(--neutral-base)}:host button.disabled .label,:host button.disabled .label.inverted,:host a.disabled .label,:host a.disabled .label.inverted{color:var(--neutral-dark)}:host button.disabled.inverted,:host a.disabled.inverted{opacity:0.6;-webkit-box-shadow:inset 0px 0px 0px 2px var(--neutral-white);box-shadow:inset 0px 0px 0px 2px var(--neutral-white)}:host button.disabled.inverted .label,:host button.disabled.inverted .label.inverted,:host a.disabled.inverted .label,:host a.disabled.inverted .label.inverted{color:var(--neutral-white)}:host button.disabled.inverted cura-icon,:host a.disabled.inverted cura-icon{--color:var(--neutral-white) !important}:host button.disabled.inverted cura-loader-circle,:host a.disabled.inverted cura-loader-circle{--color:var(--neutral-white) !important}: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.inverted,:host a.inverted{-webkit-box-shadow:inset 0px 0px 0px 2px var(--neutral-white);box-shadow:inset 0px 0px 0px 2px var(--neutral-white)}:host button.inverted:not(.disabled):not(.isLoading):hover,:host a.inverted:not(.disabled):not(.isLoading):hover{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-lighter);box-shadow:inset 0px 0px 0px 2px var(--color-lighter)}:host button.inverted:not(.disabled):not(.isLoading):hover .label,:host a.inverted:not(.disabled):not(.isLoading):hover .label{color:var(--color-lighter)}:host button.inverted:not(.disabled):not(.isLoading):hover cura-icon,:host a.inverted:not(.disabled):not(.isLoading):hover cura-icon{--color:var(--color-lighter) !important}:host button.inverted:not(.disabled):not(.isLoading):active,:host a.inverted:not(.disabled):not(.isLoading):active{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-light);box-shadow:inset 0px 0px 0px 2px var(--color-light)}:host button.inverted:not(.disabled):not(.isLoading):active .label,:host a.inverted:not(.disabled):not(.isLoading):active .label{color:var(--color-light)}:host button.inverted:not(.disabled):not(.isLoading):active cura-icon,:host a.inverted:not(.disabled):not(.isLoading):active cura-icon{--color:var(--color-light) !important}: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 CuraButtonOutline$1 = /*@__PURE__*/ proxyCustomElement(class CuraButtonOutline extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.size = 'large';
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-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
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-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`) });
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
+ : `${this.color}-base`;
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 curaButtonOutlineCss; }
79
+ }, [1, "cura-button-outline", {
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-outline", "cura-icon", "cura-loader-circle"];
99
+ components.forEach(tagName => { switch (tagName) {
100
+ case "cura-button-outline":
101
+ if (!customElements.get(tagName)) {
102
+ customElements.define(tagName, CuraButtonOutline$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 CuraButtonOutline = CuraButtonOutline$1;
119
+ const defineCustomElement = defineCustomElement$1;
120
+
121
+ export { CuraButtonOutline, defineCustomElement };
122
+
123
+ //# sourceMappingURL=cura-button-outline.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-button-outline.js","mappings":";;;;AAAA,MAAM,oBAAoB,GAAG,kjOAAkjO;;MCOlkOA,mBAAiB;;;;;gBAKgC,OAAO;oBAKjC,KAAK;qBAIJ,KAAK;;mBASP,SAAS;wBAIc,MAAM;;;kBAa9B,OAAO;iBAKvB,QAAQ;qBAQ6B,MAAM;qBAKK,MAAM;kBAGpD,EAAE;;EAdpB,iBAAiB;IACf,IAAI,CAAC,SAAS,EAAE,CAAC;GAClB;EAgBD,iBAAiB;IACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IACvD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;IAC1E,IAAI,CAAC,MAAM,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraButtonOutline"],"sources":["./src/components/buttons/cura-button-outline/cura-button-outline.scss?tag=cura-button-outline&encapsulation=shadow","./src/components/buttons/cura-button-outline/cura-button-outline.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: none;\n box-shadow: inset 0px 0px 0px 2px var(--color-base);\n\n &:not(.disabled):not(.isLoading):hover {\n box-shadow: inset 0px 0px 0px 2px var(--color-light);\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 box-shadow: inset 0px 0px 0px 2px var(--color-dark);\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 box-shadow: inset 0px 0px 0px 2px var(--neutral-base);\n .label, .label.inverted { color: var(--neutral-dark); }\n &.inverted {\n opacity: 0.6;\n box-shadow: inset 0px 0px 0px 2px var(--neutral-white);\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 // Light version, inverted.\n &.inverted {\n box-shadow: inset 0px 0px 0px 2px var(--neutral-white);\n &:not(.disabled):not(.isLoading):hover { \n box-shadow: inset 0px 0px 0px 2px var(--color-lighter);\n .label { color: var(--color-lighter); }\n cura-icon { --color: var(--color-lighter) !important; }\n }\n &:not(.disabled):not(.isLoading):active {\n box-shadow: inset 0px 0px 0px 2px var(--color-light);\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}\n","import { Component, Host, h, Prop, Watch, State } from '@stencil/core';\n\n@Component({\n tag: 'cura-button-outline',\n styleUrl: 'cura-button-outline.scss',\n shadow: true,\n})\nexport class CuraButtonOutline {\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 CuraButtonTransparent extends Components.CuraButtonTransparent, HTMLElement {}
4
+ export const CuraButtonTransparent: {
5
+ prototype: CuraButtonTransparent;
6
+ new (): CuraButtonTransparent;
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 curaButtonTransparentCss = ":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:transparent;border-width:0px;border-color:transparent;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(.disabled):not(.isLoading):hover .label,:host a:not(.disabled):not(.isLoading):hover .label{color:var(--color-light)}:host button:not(.disabled):not(.isLoading):hover cura-icon,:host a:not(.disabled):not(.isLoading):hover cura-icon{--color:var(--color-light) !important}:host button:not(.disabled):not(.inverted):not(.isLoading):active .label,:host a:not(.disabled):not(.inverted):not(.isLoading):active .label{color:var(--color-dark)}:host button:not(.disabled):not(.inverted):not(.isLoading):active cura-icon,:host a:not(.disabled):not(.inverted):not(.isLoading):active cura-icon{--color:var(--color-dark) !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(--color-base)}: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;border-color:var(--neutral-base)}:host button.disabled .label,:host button.disabled .label.inverted,:host a.disabled .label,:host a.disabled .label.inverted{color:var(--neutral-dark)}:host button.disabled.inverted,:host a.disabled.inverted{opacity:0.6}:host button.disabled.inverted .label,:host button.disabled.inverted .label.inverted,:host a.disabled.inverted .label,:host a.disabled.inverted .label.inverted{color:var(--neutral-white)}:host button.disabled.inverted cura-icon,:host a.disabled.inverted cura-icon{--color:var(--neutral-white) !important}:host button.disabled.inverted cura-loader-circle,:host a.disabled.inverted cura-loader-circle{--color:var(--neutral-white) !important}: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.inverted:not(.isLoading):not(.disabled):hover .label,:host a.inverted:not(.isLoading):not(.disabled):hover .label{color:var(--color-lighter)}:host button.inverted:not(.isLoading):not(.disabled):hover cura-icon,:host a.inverted:not(.isLoading):not(.disabled):hover cura-icon{--color:var(--color-lighter) !important}:host button.inverted:not(.isLoading):not(.disabled):active .label,:host a.inverted:not(.isLoading):not(.disabled):active .label{color:var(--color-light)}:host button.inverted:not(.isLoading):not(.disabled):active cura-icon,:host a.inverted:not(.isLoading):not(.disabled):active cura-icon{--color:var(--color-light) !important}: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 CuraButtonTransparent$1 = /*@__PURE__*/ proxyCustomElement(class CuraButtonTransparent extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.size = 'large';
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-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
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-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`) });
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
+ : `${this.color}-base`;
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 curaButtonTransparentCss; }
79
+ }, [1, "cura-button-transparent", {
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-transparent", "cura-icon", "cura-loader-circle"];
99
+ components.forEach(tagName => { switch (tagName) {
100
+ case "cura-button-transparent":
101
+ if (!customElements.get(tagName)) {
102
+ customElements.define(tagName, CuraButtonTransparent$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 CuraButtonTransparent = CuraButtonTransparent$1;
119
+ const defineCustomElement = defineCustomElement$1;
120
+
121
+ export { CuraButtonTransparent, defineCustomElement };
122
+
123
+ //# sourceMappingURL=cura-button-transparent.js.map