@rededor/cura 0.4.5 → 0.5.0-alpha.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 (368) hide show
  1. package/package.json +18 -4
  2. package/dist/assets/icons/iconset-default-list.ts +0 -1
  3. package/dist/assets/icons/iconset-default.svg +0 -1
  4. package/dist/cjs/app-globals-858f45bf.js +0 -479
  5. package/dist/cjs/app-globals-858f45bf.js.map +0 -1
  6. package/dist/cjs/css-shim-83cf0349.js +0 -8
  7. package/dist/cjs/css-shim-83cf0349.js.map +0 -1
  8. package/dist/cjs/cura-button_10.cjs.entry.js +0 -549
  9. package/dist/cjs/cura-button_10.cjs.entry.js.map +0 -1
  10. package/dist/cjs/cura.cjs.js +0 -36
  11. package/dist/cjs/cura.cjs.js.map +0 -1
  12. package/dist/cjs/index-0e874533.js +0 -1995
  13. package/dist/cjs/index-0e874533.js.map +0 -1
  14. package/dist/cjs/index.cjs.js +0 -4
  15. package/dist/cjs/index.cjs.js.map +0 -1
  16. package/dist/cjs/loader.cjs.js +0 -42
  17. package/dist/cjs/loader.cjs.js.map +0 -1
  18. package/dist/cjs/shadow-css-8baae635.js +0 -391
  19. package/dist/cjs/shadow-css-8baae635.js.map +0 -1
  20. package/dist/collection/api/cura-api.js +0 -34
  21. package/dist/collection/api/cura-api.js.map +0 -1
  22. package/dist/collection/api/cura-api.type.js +0 -7
  23. package/dist/collection/api/cura-api.type.js.map +0 -1
  24. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -14
  25. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -1
  26. package/dist/collection/api/modules/cura-theme-colors-module.js +0 -75
  27. package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
  28. package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -36
  29. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
  30. package/dist/collection/api/modules/cura-theme-module.js +0 -78
  31. package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
  32. package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -13
  33. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
  34. package/dist/collection/api/theme-presets/static.js +0 -71
  35. package/dist/collection/api/theme-presets/static.js.map +0 -1
  36. package/dist/collection/api/theme-presets/theme-default.js +0 -50
  37. package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
  38. package/dist/collection/api/theme-presets/theme-maternity.js +0 -46
  39. package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
  40. package/dist/collection/api/theme-presets/theme-oncology.js +0 -53
  41. package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
  42. package/dist/collection/api/theme-presets/theme-presets.js +0 -9
  43. package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
  44. package/dist/collection/assets/icons/iconset-default-list.js +0 -2
  45. package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
  46. package/dist/collection/assets/icons/iconset-default.svg +0 -1
  47. package/dist/collection/assets-raw/icons/default/360.svg +0 -8
  48. package/dist/collection/assets-raw/icons/default/accessibility.svg +0 -5
  49. package/dist/collection/assets-raw/icons/default/addUser.svg +0 -6
  50. package/dist/collection/assets-raw/icons/default/alertCircle.svg +0 -5
  51. package/dist/collection/assets-raw/icons/default/alertTriangle.svg +0 -5
  52. package/dist/collection/assets-raw/icons/default/arrowDown.svg +0 -3
  53. package/dist/collection/assets-raw/icons/default/arrowDownCircle.svg +0 -4
  54. package/dist/collection/assets-raw/icons/default/arrowLeft.svg +0 -3
  55. package/dist/collection/assets-raw/icons/default/arrowLeftCircle.svg +0 -4
  56. package/dist/collection/assets-raw/icons/default/arrowRight.svg +0 -3
  57. package/dist/collection/assets-raw/icons/default/arrowRightCircle.svg +0 -4
  58. package/dist/collection/assets-raw/icons/default/arrowUp.svg +0 -3
  59. package/dist/collection/assets-raw/icons/default/arrowUpCircle.svg +0 -4
  60. package/dist/collection/assets-raw/icons/default/attach.svg +0 -3
  61. package/dist/collection/assets-raw/icons/default/avatarF.svg +0 -6
  62. package/dist/collection/assets-raw/icons/default/avatarM.svg +0 -5
  63. package/dist/collection/assets-raw/icons/default/biometry.svg +0 -3
  64. package/dist/collection/assets-raw/icons/default/bloodGroup.svg +0 -3
  65. package/dist/collection/assets-raw/icons/default/calendar.svg +0 -8
  66. package/dist/collection/assets-raw/icons/default/cam.svg +0 -4
  67. package/dist/collection/assets-raw/icons/default/camOff.svg +0 -5
  68. package/dist/collection/assets-raw/icons/default/central.svg +0 -7
  69. package/dist/collection/assets-raw/icons/default/chatCircle.svg +0 -6
  70. package/dist/collection/assets-raw/icons/default/check.svg +0 -3
  71. package/dist/collection/assets-raw/icons/default/checkBadge.svg +0 -4
  72. package/dist/collection/assets-raw/icons/default/checkCircle.svg +0 -4
  73. package/dist/collection/assets-raw/icons/default/checkDouble.svg +0 -4
  74. package/dist/collection/assets-raw/icons/default/clock.svg +0 -5
  75. package/dist/collection/assets-raw/icons/default/close.svg +0 -3
  76. package/dist/collection/assets-raw/icons/default/closeCircle.svg +0 -5
  77. package/dist/collection/assets-raw/icons/default/collapse.svg +0 -4
  78. package/dist/collection/assets-raw/icons/default/config.svg +0 -4
  79. package/dist/collection/assets-raw/icons/default/delete.svg +0 -7
  80. package/dist/collection/assets-raw/icons/default/desktop.svg +0 -6
  81. package/dist/collection/assets-raw/icons/default/doc.svg +0 -4
  82. package/dist/collection/assets-raw/icons/default/down.svg +0 -3
  83. package/dist/collection/assets-raw/icons/default/download.svg +0 -3
  84. package/dist/collection/assets-raw/icons/default/duplicate.svg +0 -4
  85. package/dist/collection/assets-raw/icons/default/edit.svg +0 -5
  86. package/dist/collection/assets-raw/icons/default/exam.svg +0 -6
  87. package/dist/collection/assets-raw/icons/default/expand.svg +0 -4
  88. package/dist/collection/assets-raw/icons/default/facebook.svg +0 -3
  89. package/dist/collection/assets-raw/icons/default/fileBmp.svg +0 -17
  90. package/dist/collection/assets-raw/icons/default/fileJpg.svg +0 -8
  91. package/dist/collection/assets-raw/icons/default/filePdf.svg +0 -10
  92. package/dist/collection/assets-raw/icons/default/filePng.svg +0 -10
  93. package/dist/collection/assets-raw/icons/default/fileUpload.svg +0 -5
  94. package/dist/collection/assets-raw/icons/default/fileXls.svg +0 -8
  95. package/dist/collection/assets-raw/icons/default/filter.svg +0 -11
  96. package/dist/collection/assets-raw/icons/default/fullscreen.svg +0 -6
  97. package/dist/collection/assets-raw/icons/default/gallery.svg +0 -6
  98. package/dist/collection/assets-raw/icons/default/geotag.svg +0 -4
  99. package/dist/collection/assets-raw/icons/default/geotagUnity.svg +0 -5
  100. package/dist/collection/assets-raw/icons/default/google.svg +0 -3
  101. package/dist/collection/assets-raw/icons/default/graph.svg +0 -6
  102. package/dist/collection/assets-raw/icons/default/healthPlan.svg +0 -6
  103. package/dist/collection/assets-raw/icons/default/height.svg +0 -10
  104. package/dist/collection/assets-raw/icons/default/height2.svg +0 -8
  105. package/dist/collection/assets-raw/icons/default/home.svg +0 -6
  106. package/dist/collection/assets-raw/icons/default/horizontalList.svg +0 -4
  107. package/dist/collection/assets-raw/icons/default/imageUp.svg +0 -5
  108. package/dist/collection/assets-raw/icons/default/infoCircle.svg +0 -5
  109. package/dist/collection/assets-raw/icons/default/instagram.svg +0 -5
  110. package/dist/collection/assets-raw/icons/default/key.svg +0 -4
  111. package/dist/collection/assets-raw/icons/default/lamp.svg +0 -12
  112. package/dist/collection/assets-raw/icons/default/language.svg +0 -9
  113. package/dist/collection/assets-raw/icons/default/language2.svg +0 -4
  114. package/dist/collection/assets-raw/icons/default/languageEN.svg +0 -5
  115. package/dist/collection/assets-raw/icons/default/languagePT.svg +0 -5
  116. package/dist/collection/assets-raw/icons/default/lattes.svg +0 -3
  117. package/dist/collection/assets-raw/icons/default/left.svg +0 -3
  118. package/dist/collection/assets-raw/icons/default/like.svg +0 -4
  119. package/dist/collection/assets-raw/icons/default/link.svg +0 -4
  120. package/dist/collection/assets-raw/icons/default/linkExternal.svg +0 -4
  121. package/dist/collection/assets-raw/icons/default/linkedin.svg +0 -5
  122. package/dist/collection/assets-raw/icons/default/list.svg +0 -8
  123. package/dist/collection/assets-raw/icons/default/login.svg +0 -4
  124. package/dist/collection/assets-raw/icons/default/logout.svg +0 -3
  125. package/dist/collection/assets-raw/icons/default/mail.svg +0 -6
  126. package/dist/collection/assets-raw/icons/default/medDoc.svg +0 -5
  127. package/dist/collection/assets-raw/icons/default/medEspec.svg +0 -4
  128. package/dist/collection/assets-raw/icons/default/medImg.svg +0 -5
  129. package/dist/collection/assets-raw/icons/default/medUser.svg +0 -10
  130. package/dist/collection/assets-raw/icons/default/medical.svg +0 -9
  131. package/dist/collection/assets-raw/icons/default/menuHamburguer.svg +0 -5
  132. package/dist/collection/assets-raw/icons/default/menuKebab.svg +0 -5
  133. package/dist/collection/assets-raw/icons/default/menuMeatballs.svg +0 -5
  134. package/dist/collection/assets-raw/icons/default/mic.svg +0 -5
  135. package/dist/collection/assets-raw/icons/default/micOff.svg +0 -6
  136. package/dist/collection/assets-raw/icons/default/minus.svg +0 -3
  137. package/dist/collection/assets-raw/icons/default/minusCircle.svg +0 -4
  138. package/dist/collection/assets-raw/icons/default/minusSquare.svg +0 -4
  139. package/dist/collection/assets-raw/icons/default/mobile.svg +0 -4
  140. package/dist/collection/assets-raw/icons/default/news.svg +0 -8
  141. package/dist/collection/assets-raw/icons/default/notification.svg +0 -6
  142. package/dist/collection/assets-raw/icons/default/npsDeslike.svg +0 -6
  143. package/dist/collection/assets-raw/icons/default/npsHate.svg +0 -6
  144. package/dist/collection/assets-raw/icons/default/npsLike.svg +0 -6
  145. package/dist/collection/assets-raw/icons/default/npsLove.svg +0 -6
  146. package/dist/collection/assets-raw/icons/default/npsNeutral.svg +0 -6
  147. package/dist/collection/assets-raw/icons/default/order.svg +0 -6
  148. package/dist/collection/assets-raw/icons/default/partner.svg +0 -5
  149. package/dist/collection/assets-raw/icons/default/phone.svg +0 -5
  150. package/dist/collection/assets-raw/icons/default/play.svg +0 -4
  151. package/dist/collection/assets-raw/icons/default/plus.svg +0 -4
  152. package/dist/collection/assets-raw/icons/default/plusCircle.svg +0 -5
  153. package/dist/collection/assets-raw/icons/default/plusSquare.svg +0 -5
  154. package/dist/collection/assets-raw/icons/default/print.svg +0 -7
  155. package/dist/collection/assets-raw/icons/default/profile.svg +0 -4
  156. package/dist/collection/assets-raw/icons/default/profile2.svg +0 -4
  157. package/dist/collection/assets-raw/icons/default/questionCircle.svg +0 -4
  158. package/dist/collection/assets-raw/icons/default/questionSquare.svg +0 -4
  159. package/dist/collection/assets-raw/icons/default/range.svg +0 -5
  160. package/dist/collection/assets-raw/icons/default/reload.svg +0 -4
  161. package/dist/collection/assets-raw/icons/default/ribbon.svg +0 -4
  162. package/dist/collection/assets-raw/icons/default/right.svg +0 -3
  163. package/dist/collection/assets-raw/icons/default/schedule.svg +0 -9
  164. package/dist/collection/assets-raw/icons/default/scheduleHistorico.svg +0 -9
  165. package/dist/collection/assets-raw/icons/default/search.svg +0 -4
  166. package/dist/collection/assets-raw/icons/default/secure.svg +0 -6
  167. package/dist/collection/assets-raw/icons/default/share.svg +0 -7
  168. package/dist/collection/assets-raw/icons/default/sound.svg +0 -5
  169. package/dist/collection/assets-raw/icons/default/soundOff.svg +0 -4
  170. package/dist/collection/assets-raw/icons/default/subItem.svg +0 -4
  171. package/dist/collection/assets-raw/icons/default/target.svg +0 -8
  172. package/dist/collection/assets-raw/icons/default/team.svg +0 -6
  173. package/dist/collection/assets-raw/icons/default/twitter.svg +0 -3
  174. package/dist/collection/assets-raw/icons/default/unLink.svg +0 -10
  175. package/dist/collection/assets-raw/icons/default/unSecure.svg +0 -6
  176. package/dist/collection/assets-raw/icons/default/unity.svg +0 -13
  177. package/dist/collection/assets-raw/icons/default/unlike.svg +0 -4
  178. package/dist/collection/assets-raw/icons/default/up.svg +0 -3
  179. package/dist/collection/assets-raw/icons/default/upload.svg +0 -3
  180. package/dist/collection/assets-raw/icons/default/verticalList.svg +0 -4
  181. package/dist/collection/assets-raw/icons/default/viewFalse.svg +0 -5
  182. package/dist/collection/assets-raw/icons/default/viewTrue.svg +0 -4
  183. package/dist/collection/assets-raw/icons/default/weight.svg +0 -5
  184. package/dist/collection/assets-raw/icons/default/whatsapp.svg +0 -4
  185. package/dist/collection/assets-raw/icons/default/wifi.svg +0 -6
  186. package/dist/collection/assets-raw/icons/default/wifiOff.svg +0 -7
  187. package/dist/collection/assets-raw/icons/default/youtube.svg +0 -4
  188. package/dist/collection/assets-raw/icons/default/zoomIn.svg +0 -6
  189. package/dist/collection/assets-raw/icons/default/zoomOut.svg +0 -5
  190. package/dist/collection/collection-manifest.json +0 -22
  191. package/dist/collection/components/buttons/cura-button/cura-button.css +0 -185
  192. package/dist/collection/components/buttons/cura-button/cura-button.js +0 -308
  193. package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
  194. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +0 -220
  195. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +0 -308
  196. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -1
  197. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +0 -204
  198. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +0 -308
  199. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -1
  200. package/dist/collection/components/cura-icon/cura-icon.css +0 -12
  201. package/dist/collection/components/cura-icon/cura-icon.js +0 -162
  202. package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
  203. package/dist/collection/components/cura-icons-view/cura-icons-view.css +0 -68
  204. package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -33
  205. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
  206. package/dist/collection/components/cura-page-template/cura-page-template.css +0 -105
  207. package/dist/collection/components/cura-page-template/cura-page-template.js +0 -55
  208. package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
  209. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +0 -33
  210. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +0 -77
  211. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -1
  212. package/dist/collection/components/text/cura-display/cura-display.css +0 -84
  213. package/dist/collection/components/text/cura-display/cura-display.js +0 -146
  214. package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
  215. package/dist/collection/components/text/cura-heading/cura-heading.css +0 -92
  216. package/dist/collection/components/text/cura-heading/cura-heading.js +0 -168
  217. package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
  218. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +0 -115
  219. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +0 -150
  220. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
  221. package/dist/collection/index.js +0 -2
  222. package/dist/collection/index.js.map +0 -1
  223. package/dist/collection/rededor-cura-start.js +0 -10
  224. package/dist/collection/rededor-cura-start.js.map +0 -1
  225. package/dist/collection/utils/utils.js +0 -4
  226. package/dist/collection/utils/utils.js.map +0 -1
  227. package/dist/collection/utils/utils.spec.js +0 -16
  228. package/dist/collection/utils/utils.spec.js.map +0 -1
  229. package/dist/components/cura-button-outline.d.ts +0 -11
  230. package/dist/components/cura-button-outline.js +0 -123
  231. package/dist/components/cura-button-outline.js.map +0 -1
  232. package/dist/components/cura-button-transparent.d.ts +0 -11
  233. package/dist/components/cura-button-transparent.js +0 -123
  234. package/dist/components/cura-button-transparent.js.map +0 -1
  235. package/dist/components/cura-button.d.ts +0 -11
  236. package/dist/components/cura-button.js +0 -123
  237. package/dist/components/cura-button.js.map +0 -1
  238. package/dist/components/cura-display.d.ts +0 -11
  239. package/dist/components/cura-display.js +0 -89
  240. package/dist/components/cura-display.js.map +0 -1
  241. package/dist/components/cura-heading.d.ts +0 -11
  242. package/dist/components/cura-heading.js +0 -94
  243. package/dist/components/cura-heading.js.map +0 -1
  244. package/dist/components/cura-icon.d.ts +0 -11
  245. package/dist/components/cura-icon.js +0 -8
  246. package/dist/components/cura-icon.js.map +0 -1
  247. package/dist/components/cura-icon2.js +0 -79
  248. package/dist/components/cura-icon2.js.map +0 -1
  249. package/dist/components/cura-icons-view.d.ts +0 -11
  250. package/dist/components/cura-icons-view.js +0 -51
  251. package/dist/components/cura-icons-view.js.map +0 -1
  252. package/dist/components/cura-loader-circle.d.ts +0 -11
  253. package/dist/components/cura-loader-circle.js +0 -8
  254. package/dist/components/cura-loader-circle.js.map +0 -1
  255. package/dist/components/cura-loader-circle2.js +0 -51
  256. package/dist/components/cura-loader-circle2.js.map +0 -1
  257. package/dist/components/cura-page-template.d.ts +0 -11
  258. package/dist/components/cura-page-template.js +0 -49
  259. package/dist/components/cura-page-template.js.map +0 -1
  260. package/dist/components/cura-paragraph.d.ts +0 -11
  261. package/dist/components/cura-paragraph.js +0 -87
  262. package/dist/components/cura-paragraph.js.map +0 -1
  263. package/dist/components/index.d.ts +0 -39
  264. package/dist/components/index.js +0 -511
  265. package/dist/components/index.js.map +0 -1
  266. package/dist/cura/cura.esm.js +0 -2
  267. package/dist/cura/cura.esm.js.map +0 -1
  268. package/dist/cura/cura.js +0 -133
  269. package/dist/cura/index.esm.js +0 -2
  270. package/dist/cura/index.esm.js.map +0 -1
  271. package/dist/cura/p-118112e5.system.js +0 -14
  272. package/dist/cura/p-118112e5.system.js.map +0 -1
  273. package/dist/cura/p-183305c3.js +0 -2
  274. package/dist/cura/p-183305c3.js.map +0 -1
  275. package/dist/cura/p-2b6e4727.entry.js +0 -2
  276. package/dist/cura/p-2b6e4727.entry.js.map +0 -1
  277. package/dist/cura/p-3f6aaefc.system.js +0 -2
  278. package/dist/cura/p-3f6aaefc.system.js.map +0 -1
  279. package/dist/cura/p-50ea2036.system.js +0 -2
  280. package/dist/cura/p-50ea2036.system.js.map +0 -1
  281. package/dist/cura/p-8e62c529.system.entry.js +0 -2
  282. package/dist/cura/p-8e62c529.system.entry.js.map +0 -1
  283. package/dist/cura/p-a84ae34f.system.js +0 -3
  284. package/dist/cura/p-a84ae34f.system.js.map +0 -1
  285. package/dist/cura/p-aa9ad33b.system.js +0 -2
  286. package/dist/cura/p-aa9ad33b.system.js.map +0 -1
  287. package/dist/cura/p-b1ae12e5.system.js +0 -2
  288. package/dist/cura/p-b1ae12e5.system.js.map +0 -1
  289. package/dist/cura/p-beab48cd.js +0 -13
  290. package/dist/cura/p-beab48cd.js.map +0 -1
  291. package/dist/cura/p-cbc91ac5.js +0 -3
  292. package/dist/cura/p-cbc91ac5.js.map +0 -1
  293. package/dist/cura/p-deafb1b5.js +0 -2
  294. package/dist/cura/p-deafb1b5.js.map +0 -1
  295. package/dist/esm/app-globals-66a65edd.js +0 -477
  296. package/dist/esm/app-globals-66a65edd.js.map +0 -1
  297. package/dist/esm/css-shim-d13f0738.js +0 -6
  298. package/dist/esm/css-shim-d13f0738.js.map +0 -1
  299. package/dist/esm/cura-button_10.entry.js +0 -536
  300. package/dist/esm/cura-button_10.entry.js.map +0 -1
  301. package/dist/esm/cura.js +0 -31
  302. package/dist/esm/cura.js.map +0 -1
  303. package/dist/esm/index-92c824be.js +0 -1964
  304. package/dist/esm/index-92c824be.js.map +0 -1
  305. package/dist/esm/index.js +0 -3
  306. package/dist/esm/index.js.map +0 -1
  307. package/dist/esm/loader.js +0 -38
  308. package/dist/esm/loader.js.map +0 -1
  309. package/dist/esm/polyfills/core-js.js +0 -11
  310. package/dist/esm/polyfills/css-shim.js +0 -1
  311. package/dist/esm/polyfills/dom.js +0 -79
  312. package/dist/esm/polyfills/es5-html-element.js +0 -1
  313. package/dist/esm/polyfills/index.js +0 -34
  314. package/dist/esm/polyfills/system.js +0 -6
  315. package/dist/esm/shadow-css-07b0c8c8.js +0 -389
  316. package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
  317. package/dist/esm-es5/app-globals-66a65edd.js +0 -2
  318. package/dist/esm-es5/app-globals-66a65edd.js.map +0 -1
  319. package/dist/esm-es5/css-shim-d13f0738.js +0 -2
  320. package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
  321. package/dist/esm-es5/cura-button_10.entry.js +0 -2
  322. package/dist/esm-es5/cura-button_10.entry.js.map +0 -1
  323. package/dist/esm-es5/cura.js +0 -2
  324. package/dist/esm-es5/cura.js.map +0 -1
  325. package/dist/esm-es5/index-92c824be.js +0 -3
  326. package/dist/esm-es5/index-92c824be.js.map +0 -1
  327. package/dist/esm-es5/index.js +0 -2
  328. package/dist/esm-es5/index.js.map +0 -1
  329. package/dist/esm-es5/loader.js +0 -2
  330. package/dist/esm-es5/loader.js.map +0 -1
  331. package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
  332. package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
  333. package/dist/index.cjs.js +0 -1
  334. package/dist/index.js +0 -1
  335. package/dist/loader/cdn.js +0 -3
  336. package/dist/loader/index.cjs.js +0 -3
  337. package/dist/loader/index.d.ts +0 -21
  338. package/dist/loader/index.es2017.js +0 -3
  339. package/dist/loader/index.js +0 -4
  340. package/dist/loader/package.json +0 -11
  341. package/dist/types/api/cura-api.d.ts +0 -6
  342. package/dist/types/api/cura-api.type.d.ts +0 -65
  343. package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +0 -5
  344. package/dist/types/api/modules/cura-theme-colors-module.d.ts +0 -48
  345. package/dist/types/api/modules/cura-theme-fonts-module.d.ts +0 -24
  346. package/dist/types/api/modules/cura-theme-module.d.ts +0 -32
  347. package/dist/types/api/modules/cura-theme-spacing-module.d.ts +0 -6
  348. package/dist/types/api/theme-presets/static.d.ts +0 -69
  349. package/dist/types/api/theme-presets/theme-default.d.ts +0 -46
  350. package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -43
  351. package/dist/types/api/theme-presets/theme-oncology.d.ts +0 -50
  352. package/dist/types/api/theme-presets/theme-presets.d.ts +0 -138
  353. package/dist/types/assets/icons/iconset-default-list.d.ts +0 -2
  354. package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -61
  355. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +0 -61
  356. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +0 -61
  357. package/dist/types/components/cura-icon/cura-icon.d.ts +0 -56
  358. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +0 -7
  359. package/dist/types/components/cura-page-template/cura-page-template.d.ts +0 -8
  360. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +0 -23
  361. package/dist/types/components/text/cura-display/cura-display.d.ts +0 -38
  362. package/dist/types/components/text/cura-heading/cura-heading.d.ts +0 -43
  363. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +0 -37
  364. package/dist/types/components.d.ts +0 -574
  365. package/dist/types/index.d.ts +0 -1
  366. package/dist/types/rededor-cura-start.d.ts +0 -9
  367. package/dist/types/stencil-public-runtime.d.ts +0 -1638
  368. package/dist/types/utils/utils.d.ts +0 -1
@@ -1,150 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- export class CuraParagraph {
3
- constructor() {
4
- this.size = 'regular';
5
- this.inverted = false;
6
- this.spotColor = 'primary';
7
- this.color = undefined;
8
- this.styles = {};
9
- }
10
- handleChangeColor() {
11
- this.setColors();
12
- }
13
- connectedCallback() {
14
- this.weights = window.CuraAPI.theme.fonts.getWeights();
15
- this.setFontProperties();
16
- this.setColors();
17
- }
18
- setsizeClass() {
19
- const sizeclass = {};
20
- sizeclass[this.size.toLowerCase()] = true;
21
- return sizeclass;
22
- }
23
- setFontProperties() {
24
- this.styles = {
25
- '--font-family': window.CuraAPI.theme.fonts.getFamily('body'),
26
- '--font-size': window.CuraAPI.theme.fonts.getSize(),
27
- '--font-weight-regular': this.weights.regular,
28
- '--font-weight-medium': this.weights.medium,
29
- '--font-weight-bold': this.weights.bold
30
- };
31
- this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
32
- this.setHostProperty('--block-margin', '1.25em');
33
- this.setHostProperty('--line-height', '140%');
34
- }
35
- setColors() {
36
- const fontColor = this.color ? window.CuraAPI.theme.colors.getColor(this.color) :
37
- this.inverted
38
- ? window.CuraAPI.theme.colors.getColor('neutral-white')
39
- : window.CuraAPI.theme.fonts.getColor();
40
- this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker'), '--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
- render() {
48
- return (h(Host, null, h("p", { style: this.styles, class: this.setsizeClass() }, h("slot", null))));
49
- }
50
- static get is() { return "cura-paragraph"; }
51
- static get encapsulation() { return "shadow"; }
52
- static get originalStyleUrls() {
53
- return {
54
- "$": ["cura-paragraph.scss"]
55
- };
56
- }
57
- static get styleUrls() {
58
- return {
59
- "$": ["cura-paragraph.css"]
60
- };
61
- }
62
- static get properties() {
63
- return {
64
- "size": {
65
- "type": "string",
66
- "mutable": false,
67
- "complexType": {
68
- "original": "'regular' | 'large' | 'small' | 'caption'",
69
- "resolved": "\"caption\" | \"large\" | \"regular\" | \"small\"",
70
- "references": {}
71
- },
72
- "required": false,
73
- "optional": false,
74
- "docs": {
75
- "tags": [],
76
- "text": "Set size of body text.\nValues: regular (default) | large | small | caption."
77
- },
78
- "attribute": "size",
79
- "reflect": true,
80
- "defaultValue": "'regular'"
81
- },
82
- "inverted": {
83
- "type": "boolean",
84
- "mutable": false,
85
- "complexType": {
86
- "original": "boolean",
87
- "resolved": "boolean",
88
- "references": {}
89
- },
90
- "required": false,
91
- "optional": false,
92
- "docs": {
93
- "tags": [],
94
- "text": "Apply light color to text in dark background.\nValues: boolean."
95
- },
96
- "attribute": "inverted",
97
- "reflect": true,
98
- "defaultValue": "false"
99
- },
100
- "spotColor": {
101
- "type": "string",
102
- "mutable": false,
103
- "complexType": {
104
- "original": "string",
105
- "resolved": "string",
106
- "references": {}
107
- },
108
- "required": false,
109
- "optional": false,
110
- "docs": {
111
- "tags": [],
112
- "text": "Apply base system color to elements like <a> and <abbr>.\nValues: String primary(default) | secondary | accent | neutral | success | error | warning | info."
113
- },
114
- "attribute": "spot-color",
115
- "reflect": true,
116
- "defaultValue": "'primary'"
117
- },
118
- "color": {
119
- "type": "any",
120
- "mutable": false,
121
- "complexType": {
122
- "original": "any",
123
- "resolved": "any",
124
- "references": {}
125
- },
126
- "required": false,
127
- "optional": false,
128
- "docs": {
129
- "tags": [],
130
- "text": "Color base from color scheme. Default: theme font color."
131
- },
132
- "attribute": "color",
133
- "reflect": false
134
- }
135
- };
136
- }
137
- static get states() {
138
- return {
139
- "styles": {}
140
- };
141
- }
142
- static get elementRef() { return "host"; }
143
- static get watchers() {
144
- return [{
145
- "propName": "color",
146
- "methodName": "handleChangeColor"
147
- }];
148
- }
149
- }
150
- //# sourceMappingURL=cura-paragraph.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cura-paragraph.js","sourceRoot":"","sources":["../../../../src/components/text/cura-paragraph/cura-paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOhF,MAAM,OAAO,aAAa;;gBAMiD,SAAS;oBAKhD,KAAK;qBAKJ,SAAS;;kBAmB1B,EAAE;;EAbpB,iBAAiB;IACf,IAAI,CAAC,SAAS,EAAE,CAAC;EACnB,CAAC;EAaD,iBAAiB;IACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzB,IAAI,CAAC,SAAS,EAAE,CAAC;EACnB,CAAC;EAED,YAAY;IACV,MAAM,SAAS,GAAG,EAAE,CAAC;IACrB,SAAS,CAAC,IAAI,C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gB,CAAC,EACnF,cAAc,EAAE,IAAI,CAAC,QAAQ;QAC3B,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,UAAU,CAAC;QACnE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,OAAO,CAAC,GACnE,CAAC;EACJ,CAAC;EAED,eAAe,CAAC,IAAY,EAAE,KAAa;IACzC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;EAC3C,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,SAAG,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE;QAC/C,eAAa,CACX,CACC,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, Prop, h, Element, Watch, State } from '@stencil/core';\n\n@Component({\n tag: 'cura-paragraph',\n styleUrl: 'cura-paragraph.scss',\n shadow: true,\n})\nexport class CuraParagraph {\n\n /**\n * Set size of body text.\n * Values: regular (default) | large | small | caption.\n */\n @Prop({reflect: true}) size: 'regular' | 'large' | 'small' | 'caption' = '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 * Color base from color scheme. Default: theme font color.\n */\n @Prop() color;\n @Watch('color')\n handleChangeColor() {\n this.setColors();\n }\n\n /**\n * Host element <cura-paragraph>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n @State() styles = {};\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n setsizeClass() {\n const sizeclass = {};\n sizeclass[this.size.toLowerCase()] = true;\n return sizeclass;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('body'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '1.25em');\n this.setHostProperty('--line-height', '140%');\n }\n\n setColors() {\n const fontColor = this.color ? window.CuraAPI.theme.colors.getColor(this.color) :\n this.inverted\n ? window.CuraAPI.theme.colors.getColor('neutral-white')\n : window.CuraAPI.theme.fonts.getColor();\n this.styles = {\n ...this.styles,\n '--color-body': fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker'),\n '--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\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n render() {\n return (\n <Host>\n <p style={this.styles} class={this.setsizeClass()}>\n <slot></slot>\n </p>\n </Host>\n );\n }\n\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"","sourcesContent":["export { Components, JSX } from './components';\n"]}
@@ -1,10 +0,0 @@
1
- import CuraAPI from './api/cura-api';
2
- export default function () {
3
- const config = window.CuraInit;
4
- window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
5
- const api = window.CuraAPI;
6
- window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
7
- if (config && typeof config.onReady === 'function')
8
- config.onReady(api);
9
- }
10
- //# sourceMappingURL=rededor-cura-start.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rededor-cura-start.js","sourceRoot":"","sources":["../src/rededor-cura-start.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAYrC,MAAM,CAAC,OAAO;EACZ,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;EAC/B,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;EAC9D,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;EAC3B,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,EAAC,GAAG,EAAC,EAAE,CAAC,CAAC,CAAC;EACzE,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU;IAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC1E,CAAC","sourcesContent":["import CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\n// import { setAssetPath } from '@stencil/core';\n\n// setAssetPath(import.meta.url);\ndeclare global {\n interface Window {\n CuraAPI?: CuraAPI,\n CuraInit?: CuraConfig\n }\n}\n\nexport default function() {\n const config = window.CuraInit;\n window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();\n const api = window.CuraAPI;\n window.dispatchEvent(new CustomEvent(\"CuraAPIReady\", { detail: {api} }));\n if (config && typeof config.onReady === 'function') config.onReady(api);\n}\n"]}
@@ -1,4 +0,0 @@
1
- export function format(first, middle, last) {
2
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
- }
4
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY;EAChE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"]}
@@ -1,16 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,11 +0,0 @@
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;
@@ -1,123 +0,0 @@
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
@@ -1 +0,0 @@
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,iBAAiB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACvF,IAAI,CAAC,M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AAC,IAAI,IACV,SAAG,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,EACrC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,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,CACtF,KAEJ,cAAQ,KAAK,EAAE,IAAI,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":["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}
@@ -1,11 +0,0 @@
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;
@@ -1,123 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"file":"cura-button-transparent.js","mappings":";;;;AAAA,MAAM,wBAAwB,GAAG,8vLAA8vL;;MCOlxLA,uBAAqB;;;;;gBAK6B,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,iBAAiB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACvF,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACrF,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACrF,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAClE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,CAA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EACP,0BAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,GAAuB,CACtF,KAEJ,cAAQ,KAAK,EAAE,IAAI,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}
@@ -1,11 +0,0 @@
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;