@rededor/cura 1.7.1 → 1.8.1

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 (556) hide show
  1. package/dist/cjs/cura-accordion_20.cjs.entry.js +484 -137
  2. package/dist/cjs/cura-accordion_20.cjs.entry.js.map +1 -1
  3. package/dist/cjs/cura-alert.cjs.entry.js +9 -12
  4. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
  5. package/dist/cjs/cura-alert.entry.cjs.js.map +1 -0
  6. package/dist/cjs/cura-badge-counter.cjs.entry.js +16 -8
  7. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -1
  8. package/dist/cjs/cura-badge-counter.entry.cjs.js.map +1 -0
  9. package/dist/cjs/cura-badge-dot.cjs.entry.js +14 -5
  10. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -1
  11. package/dist/cjs/cura-badge-dot.entry.cjs.js.map +1 -0
  12. package/dist/cjs/cura-badge-pill.cjs.entry.js +23 -7
  13. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
  14. package/dist/cjs/cura-badge-pill.entry.cjs.js.map +1 -0
  15. package/dist/cjs/cura-button-outline.cjs.entry.js +46 -8
  16. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
  17. package/dist/cjs/cura-button-outline.entry.cjs.js.map +1 -0
  18. package/dist/cjs/cura-button-select.cjs.entry.js +7 -12
  19. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  20. package/dist/cjs/cura-button-select.entry.cjs.js.map +1 -0
  21. package/dist/cjs/{cura-button.definitions-f036371c.js → cura-button.definitions-B3SK8MaV.js} +2 -1
  22. package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +1 -0
  23. package/dist/cjs/cura-calendar.cjs.entry.js +203 -94
  24. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
  25. package/dist/cjs/cura-calendar.entry.cjs.js.map +1 -0
  26. package/dist/cjs/cura-card.cjs.entry.js +34 -6
  27. package/dist/cjs/cura-card.cjs.entry.js.map +1 -1
  28. package/dist/cjs/cura-card.entry.cjs.js.map +1 -0
  29. package/dist/cjs/cura-checkbox.cjs.entry.js +72 -20
  30. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
  31. package/dist/cjs/cura-checkbox.entry.cjs.js.map +1 -0
  32. package/dist/cjs/cura-display.cjs.entry.js +25 -7
  33. package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
  34. package/dist/cjs/cura-display.entry.cjs.js.map +1 -0
  35. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +5 -6
  36. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +1 -1
  37. package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +1 -0
  38. package/dist/cjs/{cura-forms.definitions-c164f1b8.js → cura-forms.definitions-DVLuO67c.js} +2 -1
  39. package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +1 -0
  40. package/dist/cjs/{cura-icon.definitions-5223028b.js → cura-icon.definitions-DT0wF67y.js} +2 -1
  41. package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +1 -0
  42. package/dist/cjs/cura-icons-view.cjs.entry.js +7 -8
  43. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  44. package/dist/cjs/cura-icons-view.entry.cjs.js.map +1 -0
  45. package/dist/cjs/cura-input-date.cjs.entry.js +32 -15
  46. package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -1
  47. package/dist/cjs/cura-input-date.entry.cjs.js.map +1 -0
  48. package/dist/cjs/cura-loader-bar.cjs.entry.js +4 -5
  49. package/dist/cjs/cura-loader-bar.cjs.entry.js.map +1 -1
  50. package/dist/cjs/cura-loader-bar.entry.cjs.js.map +1 -0
  51. package/dist/cjs/cura-modal.cjs.entry.js +46 -15
  52. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
  53. package/dist/cjs/cura-modal.entry.cjs.js.map +1 -0
  54. package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +1 -0
  55. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +25 -15
  56. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +1 -1
  57. package/dist/cjs/cura-radio.cjs.entry.js +73 -21
  58. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
  59. package/dist/cjs/cura-radio.entry.cjs.js.map +1 -0
  60. package/dist/cjs/cura-stepper.cjs.entry.js +23 -6
  61. package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -1
  62. package/dist/cjs/cura-stepper.entry.cjs.js.map +1 -0
  63. package/dist/cjs/cura-switch.cjs.entry.js +61 -18
  64. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
  65. package/dist/cjs/cura-switch.entry.cjs.js.map +1 -0
  66. package/dist/cjs/cura-tabs-button.cjs.entry.js +6 -9
  67. package/dist/cjs/cura-tabs-button.cjs.entry.js.map +1 -1
  68. package/dist/cjs/cura-tabs-button.entry.cjs.js.map +1 -0
  69. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +6 -9
  70. package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +1 -1
  71. package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +1 -0
  72. package/dist/cjs/{cura-tabs.definitions-b8955ad4.js → cura-tabs.definitions-CGqqGE2e.js} +2 -1
  73. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +1 -0
  74. package/dist/cjs/{cura-theme-module-09bb63a4.js → cura-theme-module-CJkmAxBA.js} +94 -9
  75. package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +1 -0
  76. package/dist/cjs/cura-toast.cjs.entry.js +8 -11
  77. package/dist/cjs/cura-toast.cjs.entry.js.map +1 -1
  78. package/dist/cjs/cura-toast.entry.cjs.js.map +1 -0
  79. package/dist/cjs/cura-tooltip.cjs.entry.js +9 -11
  80. package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
  81. package/dist/cjs/cura-tooltip.entry.cjs.js.map +1 -0
  82. package/dist/cjs/cura.cjs.js +9 -10
  83. package/dist/cjs/cura.cjs.js.map +1 -1
  84. package/dist/cjs/{index-60783089.js → index-BK9MSAiE.js} +947 -289
  85. package/dist/cjs/index-BK9MSAiE.js.map +1 -0
  86. package/dist/cjs/{index-6dc29195.js → index-EyP6Zlkd.js} +2 -1
  87. package/dist/cjs/index-EyP6Zlkd.js.map +1 -0
  88. package/dist/cjs/index.cjs.js +2 -4
  89. package/dist/cjs/index.cjs.js.map +1 -1
  90. package/dist/cjs/loader.cjs.js +5 -8
  91. package/dist/cjs/loader.cjs.js.map +1 -1
  92. package/dist/collection/collection-manifest.json +1 -1
  93. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +57 -18
  94. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
  95. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +45 -9
  96. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
  97. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +24 -7
  98. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -1
  99. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +8 -4
  100. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +1 -1
  101. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +19 -3
  102. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +1 -1
  103. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +40 -9
  104. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
  105. package/dist/collection/components/buttons/cura-button/cura-button.js +86 -17
  106. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
  107. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +86 -17
  108. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
  109. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +25 -13
  110. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  111. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +81 -16
  112. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
  113. package/dist/collection/components/cura-alert/cura-alert.js +19 -11
  114. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
  115. package/dist/collection/components/cura-avatar/cura-avatar.js +48 -13
  116. package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -1
  117. package/dist/collection/components/cura-calendar/cura-calendar.js +196 -24
  118. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
  119. package/dist/collection/components/cura-card/cura-card.js +48 -7
  120. package/dist/collection/components/cura-card/cura-card.js.map +1 -1
  121. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +31 -9
  122. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -1
  123. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +91 -28
  124. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  125. package/dist/collection/components/cura-icon/cura-icon.js +15 -6
  126. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  127. package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
  128. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  129. package/dist/collection/components/cura-modal/cura-modal.css +0 -1
  130. package/dist/collection/components/cura-modal/cura-modal.js +65 -17
  131. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  132. package/dist/collection/components/cura-page-template/cura-page-template.js +3 -1
  133. package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
  134. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +21 -8
  135. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +1 -1
  136. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +26 -9
  137. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +1 -1
  138. package/dist/collection/components/cura-stepper/cura-stepper.js +34 -6
  139. package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -1
  140. package/dist/collection/components/cura-toast/cura-toast.js +24 -12
  141. package/dist/collection/components/cura-toast/cura-toast.js.map +1 -1
  142. package/dist/collection/components/cura-tooltip/cura-tooltip.js +25 -12
  143. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +1 -1
  144. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +114 -29
  145. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
  146. package/dist/collection/components/forms/cura-input-date/cura-input-date.css +1 -1
  147. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +74 -16
  148. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -1
  149. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +13 -0
  150. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -1
  151. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +132 -28
  152. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  153. package/dist/collection/components/forms/cura-label/cura-label.js +46 -9
  154. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
  155. package/dist/collection/components/forms/cura-radio/cura-radio.js +109 -28
  156. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
  157. package/dist/collection/components/forms/cura-select/cura-select.js +113 -33
  158. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  159. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +13 -6
  160. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -1
  161. package/dist/collection/components/forms/cura-switch/cura-switch.js +85 -21
  162. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
  163. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +6 -2
  164. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +1 -1
  165. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +14 -4
  166. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
  167. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +21 -9
  168. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +1 -1
  169. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +21 -9
  170. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +1 -1
  171. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +9 -3
  172. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +1 -1
  173. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +21 -9
  174. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +1 -1
  175. package/dist/collection/components/text/cura-display/cura-display.js +39 -8
  176. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  177. package/dist/collection/components/text/cura-heading/cura-heading.js +53 -10
  178. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  179. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +39 -8
  180. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  181. package/dist/components/cura-accordion-item.js +24 -6
  182. package/dist/components/cura-accordion-item.js.map +1 -1
  183. package/dist/components/cura-accordion.js +34 -13
  184. package/dist/components/cura-accordion.js.map +1 -1
  185. package/dist/components/cura-alert.js +12 -14
  186. package/dist/components/cura-alert.js.map +1 -1
  187. package/dist/components/cura-avatar.js +25 -8
  188. package/dist/components/cura-avatar.js.map +1 -1
  189. package/dist/components/cura-badge-counter.js +2 -1
  190. package/dist/components/cura-badge-distance.js +7 -7
  191. package/dist/components/cura-badge-distance.js.map +1 -1
  192. package/dist/components/cura-badge-dot.js +14 -4
  193. package/dist/components/cura-badge-dot.js.map +1 -1
  194. package/dist/components/cura-badge-pill.js +2 -1
  195. package/dist/components/cura-button-outline.js +49 -10
  196. package/dist/components/cura-button-outline.js.map +1 -1
  197. package/dist/components/cura-button-select.js +10 -14
  198. package/dist/components/cura-button-select.js.map +1 -1
  199. package/dist/components/cura-button-transparent.js +2 -1
  200. package/dist/components/cura-button.js +49 -10
  201. package/dist/components/cura-button.js.map +1 -1
  202. package/dist/components/cura-calendar.js +2 -1
  203. package/dist/components/cura-card.js +34 -5
  204. package/dist/components/cura-card.js.map +1 -1
  205. package/dist/components/cura-checkbox.js +75 -22
  206. package/dist/components/cura-checkbox.js.map +1 -1
  207. package/dist/components/cura-display.js +25 -6
  208. package/dist/components/cura-display.js.map +1 -1
  209. package/dist/components/cura-dropdown-search-category.js +5 -5
  210. package/dist/components/cura-dropdown-search-category.js.map +1 -1
  211. package/dist/components/cura-dropdown-search-not-found.js +6 -6
  212. package/dist/components/cura-dropdown-search-not-found.js.map +1 -1
  213. package/dist/components/cura-dropdown-search-option.js +22 -10
  214. package/dist/components/cura-dropdown-search-option.js.map +1 -1
  215. package/dist/components/cura-dropdown-search.js +66 -27
  216. package/dist/components/cura-dropdown-search.js.map +1 -1
  217. package/dist/components/cura-heading.js +2 -1
  218. package/dist/components/cura-icon.js +2 -1
  219. package/dist/components/cura-icons-view.js +9 -9
  220. package/dist/components/cura-icons-view.js.map +1 -1
  221. package/dist/components/cura-input-date.js +40 -21
  222. package/dist/components/cura-input-date.js.map +1 -1
  223. package/dist/components/cura-input-text.js +2 -1
  224. package/dist/components/cura-label.js +2 -1
  225. package/dist/components/cura-loader-bar.js +2 -1
  226. package/dist/components/cura-loader-circle.js +2 -1
  227. package/dist/components/cura-modal.js +50 -18
  228. package/dist/components/cura-modal.js.map +1 -1
  229. package/dist/components/cura-page-template.js +4 -4
  230. package/dist/components/cura-page-template.js.map +1 -1
  231. package/dist/components/cura-paragraph.js +2 -1
  232. package/dist/components/cura-progress-bar.js +2 -1
  233. package/dist/components/cura-radio.js +75 -22
  234. package/dist/components/cura-radio.js.map +1 -1
  235. package/dist/components/cura-select-option.js +2 -1
  236. package/dist/components/cura-select.js +2 -1
  237. package/dist/components/cura-stepper-item.js +2 -1
  238. package/dist/components/cura-stepper.js +30 -12
  239. package/dist/components/cura-stepper.js.map +1 -1
  240. package/dist/components/cura-switch.js +62 -18
  241. package/dist/components/cura-switch.js.map +1 -1
  242. package/dist/components/cura-tabs-button.js +9 -11
  243. package/dist/components/cura-tabs-button.js.map +1 -1
  244. package/dist/components/cura-tabs-group.js +5 -5
  245. package/dist/components/cura-tabs-group.js.map +1 -1
  246. package/dist/components/cura-tabs-transparent.js +8 -10
  247. package/dist/components/cura-tabs-transparent.js.map +1 -1
  248. package/dist/components/cura-tabs.js +8 -10
  249. package/dist/components/cura-tabs.js.map +1 -1
  250. package/dist/components/cura-toast.js +12 -14
  251. package/dist/components/cura-toast.js.map +1 -1
  252. package/dist/components/cura-tooltip.js +15 -16
  253. package/dist/components/cura-tooltip.js.map +1 -1
  254. package/dist/components/index.js +3 -547
  255. package/dist/components/index.js.map +1 -1
  256. package/dist/components/{cura-icon2.js → p-B5aO1chh.js} +5 -6
  257. package/dist/components/p-B5aO1chh.js.map +1 -0
  258. package/dist/components/{cura-calendar2.js → p-BGnJiNyu.js} +210 -100
  259. package/dist/components/p-BGnJiNyu.js.map +1 -0
  260. package/dist/components/{cura-heading2.js → p-BHEafDKD.js} +34 -7
  261. package/dist/components/p-BHEafDKD.js.map +1 -0
  262. package/dist/components/{cura-button-transparent2.js → p-BRDqwZ4N.js} +48 -11
  263. package/dist/components/p-BRDqwZ4N.js.map +1 -0
  264. package/dist/{esm/cura-button.definitions-617d3bad.js → components/p-BSI2FkNn.js} +2 -1
  265. package/dist/components/p-BSI2FkNn.js.map +1 -0
  266. package/dist/components/{cura-select2.js → p-BTt-pVTn.js} +86 -30
  267. package/dist/components/p-BTt-pVTn.js.map +1 -0
  268. package/dist/components/{cura-badge-counter2.js → p-C72aF-gL.js} +18 -9
  269. package/dist/components/p-C72aF-gL.js.map +1 -0
  270. package/dist/components/{cura-tabs.definitions.js → p-CHcd-uKK.js} +2 -1
  271. package/dist/components/p-CHcd-uKK.js.map +1 -0
  272. package/dist/components/p-D1cPOZpG.js +2617 -0
  273. package/dist/components/p-D1cPOZpG.js.map +1 -0
  274. package/dist/components/{cura-paragraph2.js → p-DI4g-ZH4.js} +26 -7
  275. package/dist/components/p-DI4g-ZH4.js.map +1 -0
  276. package/dist/components/{cura-label2.js → p-DR1RHrEX.js} +30 -7
  277. package/dist/components/p-DR1RHrEX.js.map +1 -0
  278. package/dist/components/{cura-stepper-item2.js → p-DaPc6Dxl.js} +23 -14
  279. package/dist/components/p-DaPc6Dxl.js.map +1 -0
  280. package/dist/components/{cura-forms.definitions.js → p-Dot54hbB.js} +2 -1
  281. package/dist/components/p-Dot54hbB.js.map +1 -0
  282. package/dist/components/{cura-select-option2.js → p-DpIu_Oxz.js} +8 -9
  283. package/dist/components/p-DpIu_Oxz.js.map +1 -0
  284. package/dist/components/{cura-loader-circle2.js → p-Dqm2sAwv.js} +13 -7
  285. package/dist/components/p-Dqm2sAwv.js.map +1 -0
  286. package/dist/components/{cura-progress-bar2.js → p-FTSrgi0q.js} +11 -8
  287. package/dist/components/p-FTSrgi0q.js.map +1 -0
  288. package/dist/components/{cura-loader-bar2.js → p-KIQMkSRF.js} +5 -5
  289. package/dist/components/p-KIQMkSRF.js.map +1 -0
  290. package/dist/components/{cura-badge-pill2.js → p-cOEGtL9C.js} +26 -9
  291. package/dist/components/p-cOEGtL9C.js.map +1 -0
  292. package/dist/components/{cura-input-text2.js → p-zz_zOPBZ.js} +75 -102
  293. package/dist/components/p-zz_zOPBZ.js.map +1 -0
  294. package/dist/cura/cura-alert.entry.esm.js.map +1 -0
  295. package/dist/cura/cura-badge-counter.entry.esm.js.map +1 -0
  296. package/dist/cura/cura-badge-dot.entry.esm.js.map +1 -0
  297. package/dist/cura/cura-badge-pill.entry.esm.js.map +1 -0
  298. package/dist/cura/cura-button-outline.entry.esm.js.map +1 -0
  299. package/dist/cura/cura-button-select.entry.esm.js.map +1 -0
  300. package/dist/cura/{p-12a4ae7e.entry.js.map → cura-calendar.entry.esm.js.map} +1 -1
  301. package/dist/cura/{p-53d68d72.entry.js.map → cura-card.entry.esm.js.map} +1 -1
  302. package/dist/cura/cura-checkbox.entry.esm.js.map +1 -0
  303. package/dist/cura/cura-display.entry.esm.js.map +1 -0
  304. package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +1 -0
  305. package/dist/cura/cura-icons-view.entry.esm.js.map +1 -0
  306. package/dist/cura/cura-input-date.entry.esm.js.map +1 -0
  307. package/dist/cura/cura-loader-bar.entry.esm.js.map +1 -0
  308. package/dist/cura/{p-1ef21ae9.entry.js.map → cura-modal.entry.esm.js.map} +1 -1
  309. package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +1 -0
  310. package/dist/cura/cura-radio.entry.esm.js.map +1 -0
  311. package/dist/cura/cura-stepper.entry.esm.js.map +1 -0
  312. package/dist/cura/cura-switch.entry.esm.js.map +1 -0
  313. package/dist/cura/cura-tabs-button.entry.esm.js.map +1 -0
  314. package/dist/cura/cura-tabs-transparent.entry.esm.js.map +1 -0
  315. package/dist/cura/cura-toast.entry.esm.js.map +1 -0
  316. package/dist/cura/cura-tooltip.entry.esm.js.map +1 -0
  317. package/dist/cura/cura.esm.js +1 -1
  318. package/dist/cura/cura.esm.js.map +1 -1
  319. package/dist/cura/index.esm.js +1 -1
  320. package/dist/cura/index.esm.js.map +1 -1
  321. package/dist/cura/loader.esm.js.map +1 -0
  322. package/dist/cura/p-077019da.entry.js +2 -0
  323. package/dist/cura/p-077019da.entry.js.map +1 -0
  324. package/dist/cura/p-07783235.entry.js +2 -0
  325. package/dist/cura/p-07783235.entry.js.map +1 -0
  326. package/dist/cura/p-090e297c.entry.js +2 -0
  327. package/dist/cura/p-090e297c.entry.js.map +1 -0
  328. package/dist/cura/p-16c0b52c.entry.js +2 -0
  329. package/dist/cura/p-16c0b52c.entry.js.map +1 -0
  330. package/dist/cura/p-2632183e.entry.js +2 -0
  331. package/dist/cura/p-2632183e.entry.js.map +1 -0
  332. package/dist/cura/p-32015dcc.entry.js +2 -0
  333. package/dist/cura/p-32015dcc.entry.js.map +1 -0
  334. package/dist/cura/p-32f94709.entry.js +2 -0
  335. package/dist/cura/p-32f94709.entry.js.map +1 -0
  336. package/dist/cura/p-3d6040e2.entry.js +2 -0
  337. package/dist/cura/p-3d6040e2.entry.js.map +1 -0
  338. package/dist/cura/p-4ac578a6.entry.js +2 -0
  339. package/dist/cura/p-4ac578a6.entry.js.map +1 -0
  340. package/dist/cura/p-4bde448e.entry.js +2 -0
  341. package/dist/cura/p-4bde448e.entry.js.map +1 -0
  342. package/dist/cura/p-6feba852.entry.js +2 -0
  343. package/dist/cura/p-6feba852.entry.js.map +1 -0
  344. package/dist/cura/p-7586fd07.entry.js +2 -0
  345. package/dist/cura/p-7586fd07.entry.js.map +1 -0
  346. package/dist/cura/p-76cbb798.entry.js +2 -0
  347. package/dist/cura/p-76cbb798.entry.js.map +1 -0
  348. package/dist/cura/p-7fd143aa.entry.js +2 -0
  349. package/dist/cura/p-7fd143aa.entry.js.map +1 -0
  350. package/dist/cura/p-8c83f259.entry.js +2 -0
  351. package/dist/cura/p-8c83f259.entry.js.map +1 -0
  352. package/dist/cura/p-95cd7918.entry.js +2 -0
  353. package/dist/cura/p-95cd7918.entry.js.map +1 -0
  354. package/dist/cura/{p-272c784a.js → p-964stZ3D.js} +1 -1
  355. package/dist/cura/p-964stZ3D.js.map +1 -0
  356. package/dist/cura/p-9759f26f.entry.js +2 -0
  357. package/dist/cura/p-9759f26f.entry.js.map +1 -0
  358. package/dist/cura/p-9ef5444e.entry.js +2 -0
  359. package/dist/cura/p-9ef5444e.entry.js.map +1 -0
  360. package/dist/cura/p-BPKQjAwN.js +2 -0
  361. package/dist/cura/p-BPKQjAwN.js.map +1 -0
  362. package/dist/cura/{p-53c18ed4.js → p-BSI2FkNn.js} +1 -1
  363. package/dist/cura/p-BSI2FkNn.js.map +1 -0
  364. package/dist/cura/{p-efcb32eb.js → p-CHcd-uKK.js} +1 -1
  365. package/dist/cura/p-CHcd-uKK.js.map +1 -0
  366. package/dist/cura/{p-f9b8f665.js → p-Dot54hbB.js} +1 -1
  367. package/dist/cura/p-Dot54hbB.js.map +1 -0
  368. package/dist/cura/p-PPMZr_VE.js +3 -0
  369. package/dist/cura/p-PPMZr_VE.js.map +1 -0
  370. package/dist/cura/p-c6f240f0.entry.js +2 -0
  371. package/dist/cura/p-c6f240f0.entry.js.map +1 -0
  372. package/dist/cura/p-ceb646df.entry.js +2 -0
  373. package/dist/cura/p-ceb646df.entry.js.map +1 -0
  374. package/dist/cura/p-d040f8b9.entry.js +2 -0
  375. package/dist/cura/p-d040f8b9.entry.js.map +1 -0
  376. package/dist/cura/p-deb0b764.entry.js +2 -0
  377. package/dist/cura/p-deb0b764.entry.js.map +1 -0
  378. package/dist/cura/p-df7cb250.entry.js +2 -0
  379. package/dist/cura/p-df7cb250.entry.js.map +1 -0
  380. package/dist/cura/p-f9af3a3b.entry.js +2 -0
  381. package/dist/cura/p-f9af3a3b.entry.js.map +1 -0
  382. package/dist/cura/{p-48f9289b.js → p-sjLA93YY.js} +1 -1
  383. package/dist/cura/p-sjLA93YY.js.map +1 -0
  384. package/dist/esm/cura-accordion_20.entry.js +483 -134
  385. package/dist/esm/cura-accordion_20.entry.js.map +1 -1
  386. package/dist/esm/cura-alert.entry.js +9 -10
  387. package/dist/esm/cura-alert.entry.js.map +1 -1
  388. package/dist/esm/cura-badge-counter.entry.js +16 -6
  389. package/dist/esm/cura-badge-counter.entry.js.map +1 -1
  390. package/dist/esm/cura-badge-dot.entry.js +14 -3
  391. package/dist/esm/cura-badge-dot.entry.js.map +1 -1
  392. package/dist/esm/cura-badge-pill.entry.js +23 -5
  393. package/dist/esm/cura-badge-pill.entry.js.map +1 -1
  394. package/dist/esm/cura-button-outline.entry.js +46 -6
  395. package/dist/esm/cura-button-outline.entry.js.map +1 -1
  396. package/dist/esm/cura-button-select.entry.js +7 -10
  397. package/dist/esm/cura-button-select.entry.js.map +1 -1
  398. package/dist/{components/cura-button.definitions.js → esm/cura-button.definitions-BSI2FkNn.js} +2 -1
  399. package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +1 -0
  400. package/dist/esm/cura-calendar.entry.js +203 -92
  401. package/dist/esm/cura-calendar.entry.js.map +1 -1
  402. package/dist/esm/cura-card.entry.js +34 -4
  403. package/dist/esm/cura-card.entry.js.map +1 -1
  404. package/dist/esm/cura-checkbox.entry.js +72 -18
  405. package/dist/esm/cura-checkbox.entry.js.map +1 -1
  406. package/dist/esm/cura-display.entry.js +25 -5
  407. package/dist/esm/cura-display.entry.js.map +1 -1
  408. package/dist/esm/cura-dropdown-search-not-found.entry.js +5 -4
  409. package/dist/esm/cura-dropdown-search-not-found.entry.js.map +1 -1
  410. package/dist/esm/{cura-forms.definitions-2f963167.js → cura-forms.definitions-Dot54hbB.js} +2 -1
  411. package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +1 -0
  412. package/dist/esm/{cura-icon.definitions-a892c0e2.js → cura-icon.definitions-sjLA93YY.js} +2 -1
  413. package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +1 -0
  414. package/dist/esm/cura-icons-view.entry.js +7 -6
  415. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  416. package/dist/esm/cura-input-date.entry.js +32 -13
  417. package/dist/esm/cura-input-date.entry.js.map +1 -1
  418. package/dist/esm/cura-loader-bar.entry.js +4 -3
  419. package/dist/esm/cura-loader-bar.entry.js.map +1 -1
  420. package/dist/esm/cura-modal.entry.js +46 -13
  421. package/dist/esm/cura-modal.entry.js.map +1 -1
  422. package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +1 -0
  423. package/dist/esm/cura-progress-bar_2.entry.js +25 -13
  424. package/dist/esm/cura-progress-bar_2.entry.js.map +1 -1
  425. package/dist/esm/cura-radio.entry.js +73 -19
  426. package/dist/esm/cura-radio.entry.js.map +1 -1
  427. package/dist/esm/cura-stepper.entry.js +23 -4
  428. package/dist/esm/cura-stepper.entry.js.map +1 -1
  429. package/dist/esm/cura-switch.entry.js +61 -16
  430. package/dist/esm/cura-switch.entry.js.map +1 -1
  431. package/dist/esm/cura-tabs-button.entry.js +6 -7
  432. package/dist/esm/cura-tabs-button.entry.js.map +1 -1
  433. package/dist/esm/cura-tabs-transparent.entry.js +6 -7
  434. package/dist/esm/cura-tabs-transparent.entry.js.map +1 -1
  435. package/dist/esm/{cura-tabs.definitions-a017126e.js → cura-tabs.definitions-CHcd-uKK.js} +2 -1
  436. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +1 -0
  437. package/dist/esm/{cura-theme-module-bf286f68.js → cura-theme-module-BPKQjAwN.js} +88 -4
  438. package/dist/esm/cura-theme-module-BPKQjAwN.js.map +1 -0
  439. package/dist/esm/cura-toast.entry.js +8 -9
  440. package/dist/esm/cura-toast.entry.js.map +1 -1
  441. package/dist/esm/cura-tooltip.entry.js +9 -9
  442. package/dist/esm/cura-tooltip.entry.js.map +1 -1
  443. package/dist/esm/cura.js +7 -7
  444. package/dist/esm/cura.js.map +1 -1
  445. package/dist/esm/{index-fbee309a.js → index-964stZ3D.js} +2 -1
  446. package/dist/esm/index-964stZ3D.js.map +1 -0
  447. package/dist/esm/{index-21683715.js → index-OdKytJIH.js} +947 -270
  448. package/dist/esm/index-OdKytJIH.js.map +1 -0
  449. package/dist/esm/index.js +2 -2
  450. package/dist/esm/index.js.map +1 -1
  451. package/dist/esm/loader.js +5 -6
  452. package/dist/esm/loader.js.map +1 -1
  453. package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +4 -0
  454. package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +14 -0
  455. package/dist/types/components.d.ts +718 -0
  456. package/dist/types/stencil-public-runtime.d.ts +25 -1
  457. package/package.json +5 -5
  458. package/dist/cjs/app-globals-6d5b51b6.js +0 -70
  459. package/dist/cjs/app-globals-6d5b51b6.js.map +0 -1
  460. package/dist/cjs/cura-button.definitions-f036371c.js.map +0 -1
  461. package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +0 -1
  462. package/dist/cjs/cura-icon.definitions-5223028b.js.map +0 -1
  463. package/dist/cjs/cura-tabs.definitions-b8955ad4.js.map +0 -1
  464. package/dist/cjs/cura-theme-module-09bb63a4.js.map +0 -1
  465. package/dist/cjs/index-60783089.js.map +0 -1
  466. package/dist/cjs/index-6dc29195.js.map +0 -1
  467. package/dist/cjs/static-44199808.js +0 -90
  468. package/dist/cjs/static-44199808.js.map +0 -1
  469. package/dist/components/cura-badge-counter2.js.map +0 -1
  470. package/dist/components/cura-badge-pill2.js.map +0 -1
  471. package/dist/components/cura-button-transparent2.js.map +0 -1
  472. package/dist/components/cura-button.definitions.js.map +0 -1
  473. package/dist/components/cura-calendar2.js.map +0 -1
  474. package/dist/components/cura-forms.definitions.js.map +0 -1
  475. package/dist/components/cura-heading2.js.map +0 -1
  476. package/dist/components/cura-icon2.js.map +0 -1
  477. package/dist/components/cura-input-text2.js.map +0 -1
  478. package/dist/components/cura-label2.js.map +0 -1
  479. package/dist/components/cura-loader-bar2.js.map +0 -1
  480. package/dist/components/cura-loader-circle2.js.map +0 -1
  481. package/dist/components/cura-paragraph2.js.map +0 -1
  482. package/dist/components/cura-progress-bar2.js.map +0 -1
  483. package/dist/components/cura-select-option2.js.map +0 -1
  484. package/dist/components/cura-select2.js.map +0 -1
  485. package/dist/components/cura-stepper-item2.js.map +0 -1
  486. package/dist/components/cura-tabs.definitions.js.map +0 -1
  487. package/dist/cura/p-0aeaf57a.entry.js +0 -2
  488. package/dist/cura/p-0aeaf57a.entry.js.map +0 -1
  489. package/dist/cura/p-0b872499.entry.js +0 -2
  490. package/dist/cura/p-0b872499.entry.js.map +0 -1
  491. package/dist/cura/p-0ccde0ff.entry.js +0 -2
  492. package/dist/cura/p-0ccde0ff.entry.js.map +0 -1
  493. package/dist/cura/p-12a4ae7e.entry.js +0 -2
  494. package/dist/cura/p-137f003b.entry.js +0 -2
  495. package/dist/cura/p-137f003b.entry.js.map +0 -1
  496. package/dist/cura/p-197213c0.entry.js +0 -2
  497. package/dist/cura/p-197213c0.entry.js.map +0 -1
  498. package/dist/cura/p-1ef21ae9.entry.js +0 -2
  499. package/dist/cura/p-202dc01a.entry.js +0 -2
  500. package/dist/cura/p-202dc01a.entry.js.map +0 -1
  501. package/dist/cura/p-20b05d8f.entry.js +0 -2
  502. package/dist/cura/p-20b05d8f.entry.js.map +0 -1
  503. package/dist/cura/p-272c784a.js.map +0 -1
  504. package/dist/cura/p-2db4deb3.js +0 -2
  505. package/dist/cura/p-2db4deb3.js.map +0 -1
  506. package/dist/cura/p-48f9289b.js.map +0 -1
  507. package/dist/cura/p-4ee8efca.js +0 -3
  508. package/dist/cura/p-4ee8efca.js.map +0 -1
  509. package/dist/cura/p-53c18ed4.js.map +0 -1
  510. package/dist/cura/p-53d68d72.entry.js +0 -2
  511. package/dist/cura/p-5a43e745.entry.js +0 -2
  512. package/dist/cura/p-5a43e745.entry.js.map +0 -1
  513. package/dist/cura/p-633c13cd.entry.js +0 -2
  514. package/dist/cura/p-633c13cd.entry.js.map +0 -1
  515. package/dist/cura/p-6cbd49dd.js +0 -2
  516. package/dist/cura/p-6cbd49dd.js.map +0 -1
  517. package/dist/cura/p-7a68835f.entry.js +0 -2
  518. package/dist/cura/p-7a68835f.entry.js.map +0 -1
  519. package/dist/cura/p-7e10b146.entry.js +0 -2
  520. package/dist/cura/p-7e10b146.entry.js.map +0 -1
  521. package/dist/cura/p-7e2d1229.entry.js +0 -2
  522. package/dist/cura/p-7e2d1229.entry.js.map +0 -1
  523. package/dist/cura/p-8aade007.entry.js +0 -2
  524. package/dist/cura/p-8aade007.entry.js.map +0 -1
  525. package/dist/cura/p-9f460031.js +0 -2
  526. package/dist/cura/p-9f460031.js.map +0 -1
  527. package/dist/cura/p-ac0c90af.entry.js +0 -2
  528. package/dist/cura/p-ac0c90af.entry.js.map +0 -1
  529. package/dist/cura/p-b254bbe4.entry.js +0 -2
  530. package/dist/cura/p-b254bbe4.entry.js.map +0 -1
  531. package/dist/cura/p-b4ee956b.entry.js +0 -2
  532. package/dist/cura/p-b4ee956b.entry.js.map +0 -1
  533. package/dist/cura/p-b60a6aaa.entry.js +0 -2
  534. package/dist/cura/p-b60a6aaa.entry.js.map +0 -1
  535. package/dist/cura/p-b6ff8ac1.entry.js +0 -2
  536. package/dist/cura/p-b6ff8ac1.entry.js.map +0 -1
  537. package/dist/cura/p-d8e1e182.entry.js +0 -2
  538. package/dist/cura/p-d8e1e182.entry.js.map +0 -1
  539. package/dist/cura/p-d97719bc.entry.js +0 -2
  540. package/dist/cura/p-d97719bc.entry.js.map +0 -1
  541. package/dist/cura/p-daf422ce.entry.js +0 -2
  542. package/dist/cura/p-daf422ce.entry.js.map +0 -1
  543. package/dist/cura/p-efcb32eb.js.map +0 -1
  544. package/dist/cura/p-f9b8f665.js.map +0 -1
  545. package/dist/esm/app-globals-c2abb41c.js +0 -68
  546. package/dist/esm/app-globals-c2abb41c.js.map +0 -1
  547. package/dist/esm/cura-button.definitions-617d3bad.js.map +0 -1
  548. package/dist/esm/cura-forms.definitions-2f963167.js.map +0 -1
  549. package/dist/esm/cura-icon.definitions-a892c0e2.js.map +0 -1
  550. package/dist/esm/cura-tabs.definitions-a017126e.js.map +0 -1
  551. package/dist/esm/cura-theme-module-bf286f68.js.map +0 -1
  552. package/dist/esm/index-21683715.js.map +0 -1
  553. package/dist/esm/index-fbee309a.js.map +0 -1
  554. package/dist/esm/static-090f0088.js +0 -88
  555. package/dist/esm/static-090f0088.js.map +0 -1
  556. package/dist/loader/package.json +0 -11
@@ -1 +1 @@
1
- {"version":3,"file":"cura-button-outline.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-outline/cura-button-outline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Watch, State, AttachInternals } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-outline',\n styleUrl: 'cura-button-outline.scss',\n shadow: true,\n formAssociated: true\n})\nexport class CuraButtonOutline {\n\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Button type: button (default) | submit | reset\n */\n @Prop({ reflect: true }) type: 'button' | 'reset' | 'submit' = 'button';\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 * Color base from color scheme. Default: primary.\n */\n @Prop() color = 'primary';\n /**\n * Set the font background to dark or light.\n */\n @Prop() background: 'dark' | 'light' = 'light';\n\n /**\n * Set the font color to dark or light.\n */\n @Prop() 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 * Justify icons and label inside the button.\n * Vales: false (default) | true.\n */\n @Prop({ reflect: true }) justify = false;\n\n @State() styles = {};\n\n @State() hovered = false;\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\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['disabled'] = this.disabled;\n classes['isLoading'] = this.isLoading;\n classes['justify'] = this.justify;\n return classes;\n }\n\n @Watch('background')\n @Watch('color')\n setColors() {\n const colors = [\n { name: '--color-dark-neutral-purewhite', thema: `${this.background === 'light' ? `${this.color}-dark` : 'neutral-purewhite'}` },\n { name: '--color-lighter-color-darker', thema: `${this.background === 'light' ? `${this.color}-lighter` : `${this.color}-darker`}` },\n { name: '--color-light-color-darker', thema: `${this.background === 'light' ? `${this.color}-light` : `${this.color}-lighter`}` },\n { name: '--neutral-dark', thema: 'neutral-dark' },\n ]\n\n colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.thema));\n this.styles = { ...this.styles };\n }\n\n getIcon() {\n if (!this.iconName) return '';\n const iconSize = this.size === 'large' ? 20 : 16;\n\n return <cura-icon name={this.iconName} iconset={this.iconset} size={iconSize} color={this.getSymbolColor()}></cura-icon>;\n }\n\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\n }\n\n @Watch('fontColor')\n @Watch('color')\n getSymbolColor() {\n if (this.disabled) return 'neutral-dark';\n return this.fontColor === 'light' ? 'neutral-purewhite' : `${this.color}-darker`;\n }\n\n handleClick(e: Event) {\n if (this.disabled || this.isLoading) {\n e.preventDefault();\n return;\n }\n if (!this.href) {\n if (this.type === 'submit' && this.internals.form) this.internals.form.submit();\n if (this.type === 'reset' && this.internals.form) this.internals.form.reset();\n }\n }\n\n render() {\n const symbolColor = this.getSymbolColor();\n const labelSize = labelSizes[this.size] || labelSizes[\"default\"];\n return (\n <Host role={ this.href ? 'link' : this.type }\n aria-disabled={this.disabled}>\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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}\n type={this.type}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></cura-loader-circle>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"]}
1
+ {"version":3,"file":"cura-button-outline.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-outline/cura-button-outline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAQxD,MAAM,OAAO,iBAAiB;IAN9B;QAUE;;WAEG;QACsB,SAAI,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Watch, State, AttachInternals } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-outline',\n styleUrl: 'cura-button-outline.scss',\n shadow: true,\n formAssociated: true\n})\nexport class CuraButtonOutline {\n\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Button type: button (default) | submit | reset\n */\n @Prop({ reflect: true }) type: 'button' | 'reset' | 'submit' = 'button';\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 * Color base from color scheme. Default: primary.\n */\n @Prop() color = 'primary';\n /**\n * Set the font background to dark or light.\n */\n @Prop() background: 'dark' | 'light' = 'light';\n\n /**\n * Set the font color to dark or light.\n */\n @Prop() 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 * Justify icons and label inside the button.\n * Vales: false (default) | true.\n */\n @Prop({ reflect: true }) justify = false;\n\n @State() styles = {};\n\n @State() hovered = false;\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\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['disabled'] = this.disabled;\n classes['isLoading'] = this.isLoading;\n classes['justify'] = this.justify;\n return classes;\n }\n\n @Watch('background')\n @Watch('color')\n setColors() {\n const colors = [\n { name: '--color-dark-neutral-purewhite', thema: `${this.background === 'light' ? `${this.color}-dark` : 'neutral-purewhite'}` },\n { name: '--color-lighter-color-darker', thema: `${this.background === 'light' ? `${this.color}-lighter` : `${this.color}-darker`}` },\n { name: '--color-light-color-darker', thema: `${this.background === 'light' ? `${this.color}-light` : `${this.color}-lighter`}` },\n { name: '--neutral-dark', thema: 'neutral-dark' },\n ]\n\n colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.thema));\n this.styles = { ...this.styles };\n }\n\n getIcon() {\n if (!this.iconName) return '';\n const iconSize = this.size === 'large' ? 20 : 16;\n\n return <cura-icon name={this.iconName} iconset={this.iconset} size={iconSize} color={this.getSymbolColor()}></cura-icon>;\n }\n\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\n }\n\n @Watch('fontColor')\n @Watch('color')\n getSymbolColor() {\n if (this.disabled) return 'neutral-dark';\n return this.fontColor === 'light' ? 'neutral-purewhite' : `${this.color}-darker`;\n }\n\n handleClick(e: Event) {\n if (this.disabled || this.isLoading) {\n e.preventDefault();\n return;\n }\n if (!this.href) {\n if (this.type === 'submit' && this.internals.form) this.internals.form.submit();\n if (this.type === 'reset' && this.internals.form) this.internals.form.reset();\n }\n }\n\n render() {\n const symbolColor = this.getSymbolColor();\n const labelSize = labelSizes[this.size] || labelSizes[\"default\"];\n return (\n <Host role={ this.href ? 'link' : this.type }\n aria-disabled={this.disabled}>\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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}\n type={this.type}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></cura-loader-circle>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"]}
@@ -2,17 +2,13 @@ import { Host, h } from "@stencil/core";
2
2
  import { labelSizes } from "../cura-button.definitions";
3
3
  export class CuraButtonSelect {
4
4
  constructor() {
5
- this.theme = window.CuraAPI.theme;
6
5
  this.selected = false;
7
- this.iconName = undefined;
8
6
  this.size = 'medium';
9
- this.counter = undefined;
10
- this.disabled = undefined;
11
7
  this.background = 'light';
12
8
  this.color = 'primary';
13
- this.iconPosition = undefined;
14
9
  this.hovered = false;
15
10
  this.styles = {};
11
+ this.theme = window.CuraAPI.theme;
16
12
  }
17
13
  setColors() {
18
14
  const colors = [
@@ -114,6 +110,7 @@ export class CuraButtonSelect {
114
110
  return {
115
111
  "selected": {
116
112
  "type": "boolean",
113
+ "attribute": "selected",
117
114
  "mutable": true,
118
115
  "complexType": {
119
116
  "original": "boolean",
@@ -126,12 +123,14 @@ export class CuraButtonSelect {
126
123
  "tags": [],
127
124
  "text": ""
128
125
  },
129
- "attribute": "selected",
126
+ "getter": false,
127
+ "setter": false,
130
128
  "reflect": true,
131
129
  "defaultValue": "false"
132
130
  },
133
131
  "iconName": {
134
132
  "type": "string",
133
+ "attribute": "icon-name",
135
134
  "mutable": true,
136
135
  "complexType": {
137
136
  "original": "string",
@@ -144,11 +143,13 @@ export class CuraButtonSelect {
144
143
  "tags": [],
145
144
  "text": ""
146
145
  },
147
- "attribute": "icon-name",
146
+ "getter": false,
147
+ "setter": false,
148
148
  "reflect": true
149
149
  },
150
150
  "size": {
151
151
  "type": "string",
152
+ "attribute": "size",
152
153
  "mutable": false,
153
154
  "complexType": {
154
155
  "original": "'small' | 'medium' | 'large'",
@@ -161,12 +162,14 @@ export class CuraButtonSelect {
161
162
  "tags": [],
162
163
  "text": ""
163
164
  },
164
- "attribute": "size",
165
+ "getter": false,
166
+ "setter": false,
165
167
  "reflect": true,
166
168
  "defaultValue": "'medium'"
167
169
  },
168
170
  "counter": {
169
171
  "type": "number",
172
+ "attribute": "counter",
170
173
  "mutable": true,
171
174
  "complexType": {
172
175
  "original": "number | null",
@@ -179,11 +182,13 @@ export class CuraButtonSelect {
179
182
  "tags": [],
180
183
  "text": ""
181
184
  },
182
- "attribute": "counter",
185
+ "getter": false,
186
+ "setter": false,
183
187
  "reflect": true
184
188
  },
185
189
  "disabled": {
186
190
  "type": "boolean",
191
+ "attribute": "disabled",
187
192
  "mutable": false,
188
193
  "complexType": {
189
194
  "original": "boolean",
@@ -196,11 +201,13 @@ export class CuraButtonSelect {
196
201
  "tags": [],
197
202
  "text": ""
198
203
  },
199
- "attribute": "disabled",
204
+ "getter": false,
205
+ "setter": false,
200
206
  "reflect": true
201
207
  },
202
208
  "background": {
203
209
  "type": "string",
210
+ "attribute": "background",
204
211
  "mutable": false,
205
212
  "complexType": {
206
213
  "original": "'dark' | 'light'",
@@ -213,12 +220,14 @@ export class CuraButtonSelect {
213
220
  "tags": [],
214
221
  "text": ""
215
222
  },
216
- "attribute": "background",
223
+ "getter": false,
224
+ "setter": false,
217
225
  "reflect": false,
218
226
  "defaultValue": "'light'"
219
227
  },
220
228
  "color": {
221
229
  "type": "string",
230
+ "attribute": "color",
222
231
  "mutable": false,
223
232
  "complexType": {
224
233
  "original": "string",
@@ -231,12 +240,14 @@ export class CuraButtonSelect {
231
240
  "tags": [],
232
241
  "text": ""
233
242
  },
234
- "attribute": "color",
243
+ "getter": false,
244
+ "setter": false,
235
245
  "reflect": false,
236
246
  "defaultValue": "'primary'"
237
247
  },
238
248
  "iconPosition": {
239
249
  "type": "string",
250
+ "attribute": "icon-position",
240
251
  "mutable": false,
241
252
  "complexType": {
242
253
  "original": "'left' | 'right'",
@@ -249,7 +260,8 @@ export class CuraButtonSelect {
249
260
  "tags": [],
250
261
  "text": ""
251
262
  },
252
- "attribute": "icon-position",
263
+ "getter": false,
264
+ "setter": false,
253
265
  "reflect": true
254
266
  }
255
267
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cura-button-select.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-select/cura-button-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAA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CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,IAAI,CAC7E,CACC,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-select',\n styleUrl: 'cura-button-select.scss',\n shadow: true,\n})\nexport class CuraButtonSelect {\n @Element() host: HTMLElement;\n\n @Prop({ reflect: true, mutable: true }) selected = false;\n @Prop({ reflect: true, mutable: true }) iconName: string;\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n @Prop({ reflect: true, mutable: true }) counter: number | null;\n @Prop({ reflect: true }) disabled: boolean;\n @Prop() background: 'dark' | 'light' = 'light';\n @Prop() color: string = 'primary';\n @Prop({ reflect: true }) iconPosition: 'left' | 'right';\n\n @State() hovered = false;\n @State() styles = {};\n\n @Event({ eventName: 'onclick' }) onclick: EventEmitter<{ selected: boolean }>;\n\n theme = window.CuraAPI.theme;\n\n weights;\n\n @Watch('background')\n @Watch('color')\n setColors() {\n const colors = [\n { name: '--color-border', thema: this.background === 'light' ? `${this.color}-darker` : 'neutral-white' },\n { name: '--color-border-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-light` },\n { name: '--color-background-hover', thema: this.background === 'light' ? `${this.color}-light` : `${this.color}-dark` },\n { name: '--color-select', thema: this.background === 'light' ? `${this.color}-base` : 'neutral-white' },\n { name: '--color-select-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-lighter` },\n { name: '--color-select-focus', thema: this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter` },\n { name: '--color-disable-select', thema: this.background === 'light' ? 'neutral-white' : 'neutral-black' },\n { name: '--color-border-disable-unselect', thema: 'neutral-dark' },\n { name: '--color-counter-disabled', thema: this.background === 'light' ? 'neutral-pale' : 'neutral-black' },\n { name: '--color-counter', thema: !this.disabled && 'primary-lighter' },\n ];\n\n colors.forEach(color => (this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.thema)));\n this.styles = { ...this.styles };\n }\n\n getClasses() {\n const classes = {};\n classes[`${this.size?.toLowerCase()}`] = true;\n classes[`icon-${this.iconPosition.toLowerCase()}`] = true;\n classes['disabled'] = this.disabled;\n classes['selected'] = this.selected;\n return classes;\n }\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();\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.setColors();\n }\n\n getLabelFontColor() {\n if (this.disabled) return 'neutral-dark';\n\n if (this.background === 'dark') {\n return this.selected ? 'neutral-black' : 'neutral-white';\n }\n if (this.background === 'light') {\n return this.selected ? 'neutral-white' : 'neutral-black';\n }\n }\n\n getColorBagdeNumber() {\n if (this.background === 'dark' && this.disabled) {\n return this.selected ? 'neutral-black' : 'neutral-dark';\n }\n\n if (this.background === 'light' && this.disabled) {\n return 'neutral-medium';\n }\n\n return `${this.color}-darker`;\n }\n\n getIcon() {\n const iconSize = this.size === 'large' ? 20 : 16;\n if (this.iconPosition === 'right') {\n return;\n }\n\n return <cura-icon name={this.iconName} size={iconSize} color={this.getLabelFontColor()} />;\n }\n\n getCounter() {\n return (\n <cura-badge-counter\n number={this.counter}\n color={this.color}\n disabled={this.disabled || null}\n class=\"badge-number\">\n </cura-badge-counter>\n );\n }\n\n getCheckIconRight() {\n const iconSize = this.size === 'large' ? 20 : 16;\n return <cura-icon name=\"check\" size={iconSize} color={this.getLabelFontColor()}></cura-icon>;\n }\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\n }\n\n handleClick(e: Event) {\n if (this.disabled) e.preventDefault();\n this.selected = !this.selected;\n this.onclick.emit({ selected: this.selected });\n }\n\n render() {\n const labelSize = labelSizes[this.size] || labelSizes['default'];\n return (\n <Host role=\"button\"\n aria-disabled={this.disabled}\n aria-pressed={this.selected}>\n <button\n class={this.getClasses()}\n style={this.styles}\n disabled={this.disabled}\n onClick={e => this.handleClick(e)}\n onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}\n >\n <div class=\"button-container\">\n {this.iconName ? this.getIcon() : null}\n <cura-label class=\"label\" size={labelSize} lineHeight=\"0%\" color={this.getLabelFontColor()} weight=\"regular\">\n <slot></slot>\n </cura-label>\n {this.counter ? this.getCounter() : null}\n {this.iconPosition === 'right' && this.selected ? this.getCheckIconRight() : null}\n </div>\n </button>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cura-button-select.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-select/cura-button-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAOxD,MAAM,OAAO,gBAAgB;IAL7B;QAQ0C,aAAQ,GAAG,KAAK,CAAC;QAEhC,SAAI,GAAiC,QAAQ,CAAC;QAG/D,eAAU,GAAqB,OAAO,CAAC;QACvC,UAAK,GAAW,SAAS,CAAC;QAGzB,YAAO,GAAG,KAAK,CAAC;QAChB,WAAM,GAAG,EAAE,CAAC;QAIrB,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;KAmI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["import { Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-select',\n styleUrl: 'cura-button-select.scss',\n shadow: true,\n})\nexport class CuraButtonSelect {\n @Element() host: HTMLElement;\n\n @Prop({ reflect: true, mutable: true }) selected = false;\n @Prop({ reflect: true, mutable: true }) iconName: string;\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n @Prop({ reflect: true, mutable: true }) counter: number | null;\n @Prop({ reflect: true }) disabled: boolean;\n @Prop() background: 'dark' | 'light' = 'light';\n @Prop() color: string = 'primary';\n @Prop({ reflect: true }) iconPosition: 'left' | 'right';\n\n @State() hovered = false;\n @State() styles = {};\n\n @Event({ eventName: 'onclick' }) onclick: EventEmitter<{ selected: boolean }>;\n\n theme = window.CuraAPI.theme;\n\n weights;\n\n @Watch('background')\n @Watch('color')\n setColors() {\n const colors = [\n { name: '--color-border', thema: this.background === 'light' ? `${this.color}-darker` : 'neutral-white' },\n { name: '--color-border-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-light` },\n { name: '--color-background-hover', thema: this.background === 'light' ? `${this.color}-light` : `${this.color}-dark` },\n { name: '--color-select', thema: this.background === 'light' ? `${this.color}-base` : 'neutral-white' },\n { name: '--color-select-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-lighter` },\n { name: '--color-select-focus', thema: this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter` },\n { name: '--color-disable-select', thema: this.background === 'light' ? 'neutral-white' : 'neutral-black' },\n { name: '--color-border-disable-unselect', thema: 'neutral-dark' },\n { name: '--color-counter-disabled', thema: this.background === 'light' ? 'neutral-pale' : 'neutral-black' },\n { name: '--color-counter', thema: !this.disabled && 'primary-lighter' },\n ];\n\n colors.forEach(color => (this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.thema)));\n this.styles = { ...this.styles };\n }\n\n getClasses() {\n const classes = {};\n classes[`${this.size?.toLowerCase()}`] = true;\n classes[`icon-${this.iconPosition.toLowerCase()}`] = true;\n classes['disabled'] = this.disabled;\n classes['selected'] = this.selected;\n return classes;\n }\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();\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.setColors();\n }\n\n getLabelFontColor() {\n if (this.disabled) return 'neutral-dark';\n\n if (this.background === 'dark') {\n return this.selected ? 'neutral-black' : 'neutral-white';\n }\n if (this.background === 'light') {\n return this.selected ? 'neutral-white' : 'neutral-black';\n }\n }\n\n getColorBagdeNumber() {\n if (this.background === 'dark' && this.disabled) {\n return this.selected ? 'neutral-black' : 'neutral-dark';\n }\n\n if (this.background === 'light' && this.disabled) {\n return 'neutral-medium';\n }\n\n return `${this.color}-darker`;\n }\n\n getIcon() {\n const iconSize = this.size === 'large' ? 20 : 16;\n if (this.iconPosition === 'right') {\n return;\n }\n\n return <cura-icon name={this.iconName} size={iconSize} color={this.getLabelFontColor()} />;\n }\n\n getCounter() {\n return (\n <cura-badge-counter\n number={this.counter}\n color={this.color}\n disabled={this.disabled || null}\n class=\"badge-number\">\n </cura-badge-counter>\n );\n }\n\n getCheckIconRight() {\n const iconSize = this.size === 'large' ? 20 : 16;\n return <cura-icon name=\"check\" size={iconSize} color={this.getLabelFontColor()}></cura-icon>;\n }\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\n }\n\n handleClick(e: Event) {\n if (this.disabled) e.preventDefault();\n this.selected = !this.selected;\n this.onclick.emit({ selected: this.selected });\n }\n\n render() {\n const labelSize = labelSizes[this.size] || labelSizes['default'];\n return (\n <Host role=\"button\"\n aria-disabled={this.disabled}\n aria-pressed={this.selected}>\n <button\n class={this.getClasses()}\n style={this.styles}\n disabled={this.disabled}\n onClick={e => this.handleClick(e)}\n onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}\n >\n <div class=\"button-container\">\n {this.iconName ? this.getIcon() : null}\n <cura-label class=\"label\" size={labelSize} lineHeight=\"0%\" color={this.getLabelFontColor()} weight=\"regular\">\n <slot></slot>\n </cura-label>\n {this.counter ? this.getCounter() : null}\n {this.iconPosition === 'right' && this.selected ? this.getCheckIconRight() : null}\n </div>\n </button>\n </Host>\n );\n }\n}\n"]}
@@ -2,19 +2,56 @@ import { Host, h } from "@stencil/core";
2
2
  import { labelSizes } from "../cura-button.definitions";
3
3
  export class CuraButtonTransparent {
4
4
  constructor() {
5
+ /**
6
+ * Button type: button (default) | submit | reset
7
+ */
5
8
  this.type = 'button';
9
+ /**
10
+ * Button size: small | medium | large (default)
11
+ */
6
12
  this.size = 'large';
13
+ /**
14
+ * Disabled state. Boolean.
15
+ */
7
16
  this.disabled = false;
17
+ /**
18
+ * Loading state. Boolean.
19
+ */
8
20
  this.isLoading = false;
9
- this.iconName = undefined;
21
+ /**
22
+ * Custom iconset if needed.
23
+ */
10
24
  this.iconset = 'default';
25
+ /**
26
+ * Icon position: left (default) | right.
27
+ */
11
28
  this.iconPosition = 'left';
29
+ /**
30
+ * Set button to FAB/icon only.
31
+ */
12
32
  this.iconOnly = false;
13
- this.href = undefined;
33
+ /**
34
+ * Set target if link.
35
+ */
14
36
  this.target = "_self";
37
+ /**
38
+ * Color base from color scheme. Default: accent.
39
+ */
15
40
  this.color = 'primary';
41
+ /**
42
+ * Set the font color to dark or light.
43
+ * Default: dark.
44
+ */
16
45
  this.fontColor = 'dark';
46
+ /**
47
+ * Set text aligment for the button label.
48
+ * Vales: left (default) | center | right.
49
+ */
17
50
  this.textAlign = 'left';
51
+ /**
52
+ * Justify icons and label inside the button.
53
+ * Vales: false (default) | true.
54
+ */
18
55
  this.justify = false;
19
56
  this.hovered = false;
20
57
  this.styles = {};
@@ -95,6 +132,7 @@ export class CuraButtonTransparent {
95
132
  return {
96
133
  "type": {
97
134
  "type": "string",
135
+ "attribute": "type",
98
136
  "mutable": false,
99
137
  "complexType": {
100
138
  "original": "'button' | 'reset' | 'submit'",
@@ -107,12 +145,14 @@ export class CuraButtonTransparent {
107
145
  "tags": [],
108
146
  "text": "Button type: button (default) | submit | reset"
109
147
  },
110
- "attribute": "type",
148
+ "getter": false,
149
+ "setter": false,
111
150
  "reflect": true,
112
151
  "defaultValue": "'button'"
113
152
  },
114
153
  "size": {
115
154
  "type": "string",
155
+ "attribute": "size",
116
156
  "mutable": false,
117
157
  "complexType": {
118
158
  "original": "'small' | 'medium' | 'large'",
@@ -125,12 +165,14 @@ export class CuraButtonTransparent {
125
165
  "tags": [],
126
166
  "text": "Button size: small | medium | large (default)"
127
167
  },
128
- "attribute": "size",
168
+ "getter": false,
169
+ "setter": false,
129
170
  "reflect": true,
130
171
  "defaultValue": "'large'"
131
172
  },
132
173
  "disabled": {
133
174
  "type": "boolean",
175
+ "attribute": "disabled",
134
176
  "mutable": false,
135
177
  "complexType": {
136
178
  "original": "boolean",
@@ -143,12 +185,14 @@ export class CuraButtonTransparent {
143
185
  "tags": [],
144
186
  "text": "Disabled state. Boolean."
145
187
  },
146
- "attribute": "disabled",
188
+ "getter": false,
189
+ "setter": false,
147
190
  "reflect": true,
148
191
  "defaultValue": "false"
149
192
  },
150
193
  "isLoading": {
151
194
  "type": "boolean",
195
+ "attribute": "is-loading",
152
196
  "mutable": false,
153
197
  "complexType": {
154
198
  "original": "boolean",
@@ -161,12 +205,14 @@ export class CuraButtonTransparent {
161
205
  "tags": [],
162
206
  "text": "Loading state. Boolean."
163
207
  },
164
- "attribute": "is-loading",
208
+ "getter": false,
209
+ "setter": false,
165
210
  "reflect": true,
166
211
  "defaultValue": "false"
167
212
  },
168
213
  "iconName": {
169
214
  "type": "string",
215
+ "attribute": "icon-name",
170
216
  "mutable": false,
171
217
  "complexType": {
172
218
  "original": "string",
@@ -179,11 +225,13 @@ export class CuraButtonTransparent {
179
225
  "tags": [],
180
226
  "text": "Name of the icon to be used from iconset."
181
227
  },
182
- "attribute": "icon-name",
228
+ "getter": false,
229
+ "setter": false,
183
230
  "reflect": true
184
231
  },
185
232
  "iconset": {
186
233
  "type": "string",
234
+ "attribute": "iconset",
187
235
  "mutable": false,
188
236
  "complexType": {
189
237
  "original": "string",
@@ -196,12 +244,14 @@ export class CuraButtonTransparent {
196
244
  "tags": [],
197
245
  "text": "Custom iconset if needed."
198
246
  },
199
- "attribute": "iconset",
247
+ "getter": false,
248
+ "setter": false,
200
249
  "reflect": true,
201
250
  "defaultValue": "'default'"
202
251
  },
203
252
  "iconPosition": {
204
253
  "type": "string",
254
+ "attribute": "icon-position",
205
255
  "mutable": false,
206
256
  "complexType": {
207
257
  "original": "'left' | 'right'",
@@ -214,12 +264,14 @@ export class CuraButtonTransparent {
214
264
  "tags": [],
215
265
  "text": "Icon position: left (default) | right."
216
266
  },
217
- "attribute": "icon-position",
267
+ "getter": false,
268
+ "setter": false,
218
269
  "reflect": true,
219
270
  "defaultValue": "'left'"
220
271
  },
221
272
  "iconOnly": {
222
273
  "type": "boolean",
274
+ "attribute": "icon-only",
223
275
  "mutable": false,
224
276
  "complexType": {
225
277
  "original": "boolean",
@@ -232,12 +284,14 @@ export class CuraButtonTransparent {
232
284
  "tags": [],
233
285
  "text": "Set button to FAB/icon only."
234
286
  },
235
- "attribute": "icon-only",
287
+ "getter": false,
288
+ "setter": false,
236
289
  "reflect": true,
237
290
  "defaultValue": "false"
238
291
  },
239
292
  "href": {
240
293
  "type": "string",
294
+ "attribute": "href",
241
295
  "mutable": false,
242
296
  "complexType": {
243
297
  "original": "string",
@@ -250,11 +304,13 @@ export class CuraButtonTransparent {
250
304
  "tags": [],
251
305
  "text": "Property href switch button to link."
252
306
  },
253
- "attribute": "href",
307
+ "getter": false,
308
+ "setter": false,
254
309
  "reflect": true
255
310
  },
256
311
  "target": {
257
312
  "type": "string",
313
+ "attribute": "target",
258
314
  "mutable": false,
259
315
  "complexType": {
260
316
  "original": "string",
@@ -267,12 +323,14 @@ export class CuraButtonTransparent {
267
323
  "tags": [],
268
324
  "text": "Set target if link."
269
325
  },
270
- "attribute": "target",
326
+ "getter": false,
327
+ "setter": false,
271
328
  "reflect": true,
272
329
  "defaultValue": "\"_self\""
273
330
  },
274
331
  "color": {
275
332
  "type": "string",
333
+ "attribute": "color",
276
334
  "mutable": false,
277
335
  "complexType": {
278
336
  "original": "string",
@@ -285,12 +343,14 @@ export class CuraButtonTransparent {
285
343
  "tags": [],
286
344
  "text": "Color base from color scheme. Default: accent."
287
345
  },
288
- "attribute": "color",
346
+ "getter": false,
347
+ "setter": false,
289
348
  "reflect": true,
290
349
  "defaultValue": "'primary'"
291
350
  },
292
351
  "fontColor": {
293
352
  "type": "string",
353
+ "attribute": "font-color",
294
354
  "mutable": false,
295
355
  "complexType": {
296
356
  "original": "'dark' | 'light'",
@@ -303,12 +363,14 @@ export class CuraButtonTransparent {
303
363
  "tags": [],
304
364
  "text": "Set the font color to dark or light.\nDefault: dark."
305
365
  },
306
- "attribute": "font-color",
366
+ "getter": false,
367
+ "setter": false,
307
368
  "reflect": true,
308
369
  "defaultValue": "'dark'"
309
370
  },
310
371
  "textAlign": {
311
372
  "type": "string",
373
+ "attribute": "text-align",
312
374
  "mutable": false,
313
375
  "complexType": {
314
376
  "original": "'left' | 'center' | 'right'",
@@ -321,12 +383,14 @@ export class CuraButtonTransparent {
321
383
  "tags": [],
322
384
  "text": "Set text aligment for the button label.\nVales: left (default) | center | right."
323
385
  },
324
- "attribute": "text-align",
386
+ "getter": false,
387
+ "setter": false,
325
388
  "reflect": true,
326
389
  "defaultValue": "'left'"
327
390
  },
328
391
  "justify": {
329
392
  "type": "boolean",
393
+ "attribute": "justify",
330
394
  "mutable": false,
331
395
  "complexType": {
332
396
  "original": "boolean",
@@ -339,7 +403,8 @@ export class CuraButtonTransparent {
339
403
  "tags": [],
340
404
  "text": "Justify icons and label inside the button.\nVales: false (default) | true."
341
405
  },
342
- "attribute": "justify",
406
+ "getter": false,
407
+ "setter": false,
343
408
  "reflect": true,
344
409
  "defaultValue": "false"
345
410
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cura-button-transparent.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-transparent/cura-button-transparent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAQxD,MAAM,OAAO,qBAAqB;;oBAO+B,QAAQ;oBAKT,OAAO;wBAKjC,KAAK;yBAIJ,KAAK;;uBASP,SAAS;4BAIc,MAAM;wBAI5B,KAAK;;sBASP,OAAO;qBAKR,SAAS;yBAMa,MAAM;yBAKK,MAAM;uBAMrC,KAAK;uBAErB,KAAK;sBAEN,EAAE;;IAIpB,iBAAiB;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACvD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAC1E,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QACrF,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ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AAC,IAAI,CAAC,gBAAgB,EAAE,EAC3C,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAC3C,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,YAAM,KAAK,EAAC,kBAAkB;gBAC3B,IAAI,CAAC,OAAO,EAAE;gBACf,kBAAY,IAAI,EAAE,SAAS,EAAE,UAAU,EAAC,QAAQ,EAAC,KAAK,EAAE,WAAW;oBAAE,eAAa,CAAa,CAC1F;YACP,0BAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,GAAuB,CACvE,CACV,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, State, Watch, AttachInternals } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-transparent',\n styleUrl: 'cura-button-transparent.scss',\n shadow: true,\n formAssociated: true\n})\nexport class CuraButtonTransparent {\n\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Button type: button (default) | submit | reset\n */\n @Prop({ reflect: true }) type: 'button' | 'reset' | 'submit' = 'button';\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({ reflect: true }) color = 'primary';\n\n /**\n * Set the font color to dark or light.\n * Default: dark.\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 * Justify icons and label inside the button.\n * Vales: false (default) | true.\n */\n @Prop({ reflect: true }) justify = false;\n\n @State() hovered = false;\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 }\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['disabled'] = this.disabled;\n classes['isLoading'] = this.isLoading;\n classes['justify'] = this.justify;\n return classes;\n }\n\n\n getIcon() {\n if (!this.iconName) return null;\n const iconSize = this.size === 'large' ? 20 : 16;\n return <cura-icon name={this.iconName} iconset={this.iconset} size={iconSize} color={this.getSymbolColor()}></cura-icon>;\n }\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\n }\n\n @Watch('fontColor')\n @Watch('color')\n getSymbolColor() {\n if (this.disabled) return 'neutral-dark';\n if (this.hovered && !this.isLoading) return this.fontColor === 'light' ? `${this.color}-light` : `${this.color}-darker`;\n return this.fontColor === 'light' ? 'neutral-white' : `${this.color}-dark`;\n }\n\n handleClick(e: Event) {\n if (this.disabled || this.isLoading) {\n e.preventDefault();\n return;\n }\n if (!this.href) {\n if (this.type === 'submit' && this.internals.form) this.internals.form.submit();\n if (this.type === 'reset' && this.internals.form) this.internals.form.reset();\n }\n }\n\n render() {\n const symbolColor = this.getSymbolColor();\n const labelSize = labelSizes[this.size] || labelSizes[\"default\"];\n return (\n <Host role={ this.href ? 'link' : this.type }\n aria-disabled={this.disabled}>\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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}\n type={this.type}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></cura-loader-circle>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"]}
1
+ {"version":3,"file":"cura-button-transparent.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-transparent/cura-button-transparent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAQxD,MAAM,OAAO,qBAAqB;IANlC;QAUE;;WAEG;QACsB,SAAI,GAAkC,QAAQ,CAAC;QAExE;;WAEG;QACsB,SAAI,GAAiC,OAAO,CAAC;QAEtE;;WAEG;QACsB,aAAQ,GAAG,KAAK,CAAC;QAC1C;;WAEG;QACsB,cAAS,GAAG,KAAK,CAAC;QAM3C;;WAEG;QACsB,YAAO,GAAG,SAAS,CAAC;QAC7C;;WAEG;QACsB,iBAAY,GAAqB,MAAM,CAAC;QACjE;;WAEG;QACsB,aAAQ,GAAG,KAAK,CAAC;QAM1C;;WAEG;QACsB,WAAM,GAAG,OAAO,CAAC;QAE1C;;WAEG;QACsB,UAAK,GAAG,SAAS,CAAC;QAE3C;;;WAGG;QACsB,cAAS,GAAqB,MAAM,CAAC;QAC9D;;;WAGG;QACsB,cAAS,GAAgC,MAAM,CAAC;QAEzE;;;WAGG;QACsB,YAAO,GAAG,KAAK,CAAC;QAEhC,YAAO,GAAG,KAAK,CAAC;QAEhB,WAAM,GAAG,EAAE,CAAC;KAqGtB;IAjGC,iBAAiB;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACvD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAC1E,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC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,EAAE,WAAW,GAAuB,CAC5E,CACL,CAAC,CAAC,CAAC,CACF,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,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EACnC,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAC3C,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAC3C,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,YAAM,KAAK,EAAC,kBAAkB;gBAC3B,IAAI,CAAC,OAAO,EAAE;gBACf,kBAAY,IAAI,EAAE,SAAS,EAAE,UAAU,EAAC,QAAQ,EAAC,KAAK,EAAE,WAAW;oBAAE,eAAa,CAAa,CAC1F;YACP,0BAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,GAAuB,CACvE,CACV,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, State, Watch, AttachInternals } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-transparent',\n styleUrl: 'cura-button-transparent.scss',\n shadow: true,\n formAssociated: true\n})\nexport class CuraButtonTransparent {\n\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Button type: button (default) | submit | reset\n */\n @Prop({ reflect: true }) type: 'button' | 'reset' | 'submit' = 'button';\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({ reflect: true }) color = 'primary';\n\n /**\n * Set the font color to dark or light.\n * Default: dark.\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 * Justify icons and label inside the button.\n * Vales: false (default) | true.\n */\n @Prop({ reflect: true }) justify = false;\n\n @State() hovered = false;\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 }\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['disabled'] = this.disabled;\n classes['isLoading'] = this.isLoading;\n classes['justify'] = this.justify;\n return classes;\n }\n\n\n getIcon() {\n if (!this.iconName) return null;\n const iconSize = this.size === 'large' ? 20 : 16;\n return <cura-icon name={this.iconName} iconset={this.iconset} size={iconSize} color={this.getSymbolColor()}></cura-icon>;\n }\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\n }\n\n @Watch('fontColor')\n @Watch('color')\n getSymbolColor() {\n if (this.disabled) return 'neutral-dark';\n if (this.hovered && !this.isLoading) return this.fontColor === 'light' ? `${this.color}-light` : `${this.color}-darker`;\n return this.fontColor === 'light' ? 'neutral-white' : `${this.color}-dark`;\n }\n\n handleClick(e: Event) {\n if (this.disabled || this.isLoading) {\n e.preventDefault();\n return;\n }\n if (!this.href) {\n if (this.type === 'submit' && this.internals.form) this.internals.form.submit();\n if (this.type === 'reset' && this.internals.form) this.internals.form.reset();\n }\n }\n\n render() {\n const symbolColor = this.getSymbolColor();\n const labelSize = labelSizes[this.size] || labelSizes[\"default\"];\n return (\n <Host role={ this.href ? 'link' : this.type }\n aria-disabled={this.disabled}>\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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></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 onMouseEnter={() => this.handleMouseEnter()}\n onMouseLeave={() => this.handleMouseLeave()}\n type={this.type}>\n <span class=\"button-container\">\n {this.getIcon()}\n <cura-label size={labelSize} lineHeight='normal' color={symbolColor}><slot></slot></cura-label>\n </span>\n <cura-loader-circle size={this.size} color={symbolColor}></cura-loader-circle>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"]}