@rededor/cura 1.7.0 → 1.8.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 (569) hide show
  1. package/dist/assets/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/assets/icons/iconset-default-tmp.svg +26 -0
  3. package/dist/assets/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/cura-accordion_20.cjs.entry.js +485 -138
  5. package/dist/cjs/cura-accordion_20.cjs.entry.js.map +1 -1
  6. package/dist/cjs/cura-alert.cjs.entry.js +9 -12
  7. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/cura-alert.entry.cjs.js.map +1 -0
  9. package/dist/cjs/cura-badge-counter.cjs.entry.js +16 -8
  10. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -1
  11. package/dist/cjs/cura-badge-counter.entry.cjs.js.map +1 -0
  12. package/dist/cjs/cura-badge-dot.cjs.entry.js +14 -5
  13. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -1
  14. package/dist/cjs/cura-badge-dot.entry.cjs.js.map +1 -0
  15. package/dist/cjs/cura-badge-pill.cjs.entry.js +23 -7
  16. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
  17. package/dist/cjs/cura-badge-pill.entry.cjs.js.map +1 -0
  18. package/dist/cjs/cura-button-outline.cjs.entry.js +46 -8
  19. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
  20. package/dist/cjs/cura-button-outline.entry.cjs.js.map +1 -0
  21. package/dist/cjs/cura-button-select.cjs.entry.js +7 -12
  22. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  23. package/dist/cjs/cura-button-select.entry.cjs.js.map +1 -0
  24. package/dist/cjs/{cura-button.definitions-f036371c.js → cura-button.definitions-B3SK8MaV.js} +2 -1
  25. package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +1 -0
  26. package/dist/cjs/cura-calendar.cjs.entry.js +203 -94
  27. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
  28. package/dist/cjs/cura-calendar.entry.cjs.js.map +1 -0
  29. package/dist/cjs/cura-card.cjs.entry.js +34 -6
  30. package/dist/cjs/cura-card.cjs.entry.js.map +1 -1
  31. package/dist/cjs/cura-card.entry.cjs.js.map +1 -0
  32. package/dist/cjs/cura-checkbox.cjs.entry.js +72 -20
  33. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
  34. package/dist/cjs/cura-checkbox.entry.cjs.js.map +1 -0
  35. package/dist/cjs/cura-display.cjs.entry.js +25 -7
  36. package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
  37. package/dist/cjs/cura-display.entry.cjs.js.map +1 -0
  38. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +5 -6
  39. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +1 -1
  40. package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +1 -0
  41. package/dist/cjs/{cura-forms.definitions-c164f1b8.js → cura-forms.definitions-DVLuO67c.js} +2 -1
  42. package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +1 -0
  43. package/dist/cjs/{cura-icon.definitions-5223028b.js → cura-icon.definitions-DT0wF67y.js} +2 -1
  44. package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +1 -0
  45. package/dist/cjs/cura-icons-view.cjs.entry.js +7 -8
  46. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  47. package/dist/cjs/cura-icons-view.entry.cjs.js.map +1 -0
  48. package/dist/cjs/cura-input-date.cjs.entry.js +32 -15
  49. package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -1
  50. package/dist/cjs/cura-input-date.entry.cjs.js.map +1 -0
  51. package/dist/cjs/cura-loader-bar.cjs.entry.js +4 -5
  52. package/dist/cjs/cura-loader-bar.cjs.entry.js.map +1 -1
  53. package/dist/cjs/cura-loader-bar.entry.cjs.js.map +1 -0
  54. package/dist/cjs/cura-modal.cjs.entry.js +46 -15
  55. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
  56. package/dist/cjs/cura-modal.entry.cjs.js.map +1 -0
  57. package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +1 -0
  58. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +25 -15
  59. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +1 -1
  60. package/dist/cjs/cura-radio.cjs.entry.js +73 -21
  61. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
  62. package/dist/cjs/cura-radio.entry.cjs.js.map +1 -0
  63. package/dist/cjs/cura-stepper.cjs.entry.js +23 -6
  64. package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -1
  65. package/dist/cjs/cura-stepper.entry.cjs.js.map +1 -0
  66. package/dist/cjs/cura-switch.cjs.entry.js +61 -18
  67. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
  68. package/dist/cjs/cura-switch.entry.cjs.js.map +1 -0
  69. package/dist/cjs/cura-tabs-button.cjs.entry.js +6 -9
  70. package/dist/cjs/cura-tabs-button.cjs.entry.js.map +1 -1
  71. package/dist/cjs/cura-tabs-button.entry.cjs.js.map +1 -0
  72. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +6 -9
  73. package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +1 -1
  74. package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +1 -0
  75. package/dist/cjs/{cura-tabs.definitions-b8955ad4.js → cura-tabs.definitions-CGqqGE2e.js} +2 -1
  76. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +1 -0
  77. package/dist/cjs/{cura-theme-module-09bb63a4.js → cura-theme-module-CJkmAxBA.js} +94 -9
  78. package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +1 -0
  79. package/dist/cjs/cura-toast.cjs.entry.js +8 -11
  80. package/dist/cjs/cura-toast.cjs.entry.js.map +1 -1
  81. package/dist/cjs/cura-toast.entry.cjs.js.map +1 -0
  82. package/dist/cjs/cura-tooltip.cjs.entry.js +9 -11
  83. package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
  84. package/dist/cjs/cura-tooltip.entry.cjs.js.map +1 -0
  85. package/dist/cjs/cura.cjs.js +9 -10
  86. package/dist/cjs/cura.cjs.js.map +1 -1
  87. package/dist/cjs/{index-60783089.js → index-BK9MSAiE.js} +947 -289
  88. package/dist/cjs/index-BK9MSAiE.js.map +1 -0
  89. package/dist/cjs/{index-6dc29195.js → index-EyP6Zlkd.js} +2 -1
  90. package/dist/cjs/index-EyP6Zlkd.js.map +1 -0
  91. package/dist/cjs/index.cjs.js +2 -4
  92. package/dist/cjs/index.cjs.js.map +1 -1
  93. package/dist/cjs/loader.cjs.js +5 -8
  94. package/dist/cjs/loader.cjs.js.map +1 -1
  95. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  96. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  97. package/dist/collection/assets/icons/iconset-default-tmp.svg +26 -0
  98. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  99. package/dist/collection/assets-raw/icons/default/bike.svg +3 -0
  100. package/dist/collection/assets-raw/icons/default/cart.svg +3 -0
  101. package/dist/collection/assets-raw/icons/default/coffee.svg +3 -0
  102. package/dist/collection/assets-raw/icons/default/id.svg +3 -0
  103. package/dist/collection/assets-raw/icons/default/image.svg +5 -0
  104. package/dist/collection/assets-raw/icons/default/store.svg +3 -0
  105. package/dist/collection/collection-manifest.json +1 -1
  106. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +57 -18
  107. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
  108. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +45 -9
  109. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
  110. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +24 -7
  111. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -1
  112. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +8 -4
  113. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +1 -1
  114. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +19 -3
  115. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +1 -1
  116. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +40 -9
  117. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
  118. package/dist/collection/components/buttons/cura-button/cura-button.js +86 -17
  119. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
  120. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +86 -17
  121. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
  122. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +25 -13
  123. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  124. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +81 -16
  125. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
  126. package/dist/collection/components/cura-alert/cura-alert.js +19 -11
  127. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
  128. package/dist/collection/components/cura-avatar/cura-avatar.js +48 -13
  129. package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -1
  130. package/dist/collection/components/cura-calendar/cura-calendar.js +196 -24
  131. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
  132. package/dist/collection/components/cura-card/cura-card.js +48 -7
  133. package/dist/collection/components/cura-card/cura-card.js.map +1 -1
  134. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +31 -9
  135. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -1
  136. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +91 -28
  137. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  138. package/dist/collection/components/cura-icon/cura-icon.js +15 -6
  139. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  140. package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
  141. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  142. package/dist/collection/components/cura-modal/cura-modal.css +0 -1
  143. package/dist/collection/components/cura-modal/cura-modal.js +65 -17
  144. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  145. package/dist/collection/components/cura-page-template/cura-page-template.js +3 -1
  146. package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
  147. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +21 -8
  148. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +1 -1
  149. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +26 -9
  150. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +1 -1
  151. package/dist/collection/components/cura-stepper/cura-stepper.js +34 -6
  152. package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -1
  153. package/dist/collection/components/cura-toast/cura-toast.js +24 -12
  154. package/dist/collection/components/cura-toast/cura-toast.js.map +1 -1
  155. package/dist/collection/components/cura-tooltip/cura-tooltip.js +25 -12
  156. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +1 -1
  157. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +114 -29
  158. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
  159. package/dist/collection/components/forms/cura-input-date/cura-input-date.css +1 -1
  160. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +74 -16
  161. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -1
  162. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +13 -0
  163. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -1
  164. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +132 -28
  165. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  166. package/dist/collection/components/forms/cura-label/cura-label.js +46 -9
  167. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
  168. package/dist/collection/components/forms/cura-radio/cura-radio.js +109 -28
  169. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
  170. package/dist/collection/components/forms/cura-select/cura-select.js +114 -34
  171. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  172. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +13 -6
  173. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -1
  174. package/dist/collection/components/forms/cura-switch/cura-switch.js +85 -21
  175. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
  176. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +6 -2
  177. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +1 -1
  178. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +14 -4
  179. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
  180. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +21 -9
  181. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +1 -1
  182. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +21 -9
  183. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +1 -1
  184. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +9 -3
  185. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +1 -1
  186. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +21 -9
  187. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +1 -1
  188. package/dist/collection/components/text/cura-display/cura-display.js +39 -8
  189. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  190. package/dist/collection/components/text/cura-heading/cura-heading.js +53 -10
  191. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  192. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +39 -8
  193. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  194. package/dist/components/cura-accordion-item.js +24 -6
  195. package/dist/components/cura-accordion-item.js.map +1 -1
  196. package/dist/components/cura-accordion.js +34 -13
  197. package/dist/components/cura-accordion.js.map +1 -1
  198. package/dist/components/cura-alert.js +12 -14
  199. package/dist/components/cura-alert.js.map +1 -1
  200. package/dist/components/cura-avatar.js +25 -8
  201. package/dist/components/cura-avatar.js.map +1 -1
  202. package/dist/components/cura-badge-counter.js +2 -1
  203. package/dist/components/cura-badge-distance.js +7 -7
  204. package/dist/components/cura-badge-distance.js.map +1 -1
  205. package/dist/components/cura-badge-dot.js +14 -4
  206. package/dist/components/cura-badge-dot.js.map +1 -1
  207. package/dist/components/cura-badge-pill.js +2 -1
  208. package/dist/components/cura-button-outline.js +49 -10
  209. package/dist/components/cura-button-outline.js.map +1 -1
  210. package/dist/components/cura-button-select.js +10 -14
  211. package/dist/components/cura-button-select.js.map +1 -1
  212. package/dist/components/cura-button-transparent.js +2 -1
  213. package/dist/components/cura-button.js +49 -10
  214. package/dist/components/cura-button.js.map +1 -1
  215. package/dist/components/cura-calendar.js +2 -1
  216. package/dist/components/cura-card.js +34 -5
  217. package/dist/components/cura-card.js.map +1 -1
  218. package/dist/components/cura-checkbox.js +75 -22
  219. package/dist/components/cura-checkbox.js.map +1 -1
  220. package/dist/components/cura-display.js +25 -6
  221. package/dist/components/cura-display.js.map +1 -1
  222. package/dist/components/cura-dropdown-search-category.js +5 -5
  223. package/dist/components/cura-dropdown-search-category.js.map +1 -1
  224. package/dist/components/cura-dropdown-search-not-found.js +6 -6
  225. package/dist/components/cura-dropdown-search-not-found.js.map +1 -1
  226. package/dist/components/cura-dropdown-search-option.js +22 -10
  227. package/dist/components/cura-dropdown-search-option.js.map +1 -1
  228. package/dist/components/cura-dropdown-search.js +66 -27
  229. package/dist/components/cura-dropdown-search.js.map +1 -1
  230. package/dist/components/cura-heading.js +2 -1
  231. package/dist/components/cura-icon.js +2 -1
  232. package/dist/components/cura-icons-view.js +9 -9
  233. package/dist/components/cura-icons-view.js.map +1 -1
  234. package/dist/components/cura-input-date.js +40 -21
  235. package/dist/components/cura-input-date.js.map +1 -1
  236. package/dist/components/cura-input-text.js +2 -1
  237. package/dist/components/cura-label.js +2 -1
  238. package/dist/components/cura-loader-bar.js +2 -1
  239. package/dist/components/cura-loader-circle.js +2 -1
  240. package/dist/components/cura-modal.js +50 -18
  241. package/dist/components/cura-modal.js.map +1 -1
  242. package/dist/components/cura-page-template.js +4 -4
  243. package/dist/components/cura-page-template.js.map +1 -1
  244. package/dist/components/cura-paragraph.js +2 -1
  245. package/dist/components/cura-progress-bar.js +2 -1
  246. package/dist/components/cura-radio.js +75 -22
  247. package/dist/components/cura-radio.js.map +1 -1
  248. package/dist/components/cura-select-option.js +2 -1
  249. package/dist/components/cura-select.js +2 -1
  250. package/dist/components/cura-stepper-item.js +2 -1
  251. package/dist/components/cura-stepper.js +30 -12
  252. package/dist/components/cura-stepper.js.map +1 -1
  253. package/dist/components/cura-switch.js +62 -18
  254. package/dist/components/cura-switch.js.map +1 -1
  255. package/dist/components/cura-tabs-button.js +9 -11
  256. package/dist/components/cura-tabs-button.js.map +1 -1
  257. package/dist/components/cura-tabs-group.js +5 -5
  258. package/dist/components/cura-tabs-group.js.map +1 -1
  259. package/dist/components/cura-tabs-transparent.js +8 -10
  260. package/dist/components/cura-tabs-transparent.js.map +1 -1
  261. package/dist/components/cura-tabs.js +8 -10
  262. package/dist/components/cura-tabs.js.map +1 -1
  263. package/dist/components/cura-toast.js +12 -14
  264. package/dist/components/cura-toast.js.map +1 -1
  265. package/dist/components/cura-tooltip.js +15 -16
  266. package/dist/components/cura-tooltip.js.map +1 -1
  267. package/dist/components/index.js +3 -547
  268. package/dist/components/index.js.map +1 -1
  269. package/dist/components/{cura-icon2.js → p-B5aO1chh.js} +5 -6
  270. package/dist/components/p-B5aO1chh.js.map +1 -0
  271. package/dist/components/{cura-heading2.js → p-BHEafDKD.js} +34 -7
  272. package/dist/components/p-BHEafDKD.js.map +1 -0
  273. package/dist/components/{cura-button-transparent2.js → p-BRDqwZ4N.js} +48 -11
  274. package/dist/components/p-BRDqwZ4N.js.map +1 -0
  275. package/dist/{esm/cura-button.definitions-617d3bad.js → components/p-BSI2FkNn.js} +2 -1
  276. package/dist/components/p-BSI2FkNn.js.map +1 -0
  277. package/dist/components/{cura-badge-counter2.js → p-C72aF-gL.js} +18 -9
  278. package/dist/components/p-C72aF-gL.js.map +1 -0
  279. package/dist/components/{cura-tabs.definitions.js → p-CHcd-uKK.js} +2 -1
  280. package/dist/components/p-CHcd-uKK.js.map +1 -0
  281. package/dist/components/p-D1cPOZpG.js +2617 -0
  282. package/dist/components/p-D1cPOZpG.js.map +1 -0
  283. package/dist/components/{cura-paragraph2.js → p-DI4g-ZH4.js} +26 -7
  284. package/dist/components/p-DI4g-ZH4.js.map +1 -0
  285. package/dist/components/{cura-label2.js → p-DR1RHrEX.js} +30 -7
  286. package/dist/components/p-DR1RHrEX.js.map +1 -0
  287. package/dist/components/{cura-stepper-item2.js → p-DaPc6Dxl.js} +23 -14
  288. package/dist/components/p-DaPc6Dxl.js.map +1 -0
  289. package/dist/components/{cura-forms.definitions.js → p-Dot54hbB.js} +2 -1
  290. package/dist/components/p-Dot54hbB.js.map +1 -0
  291. package/dist/components/{cura-select-option2.js → p-DpIu_Oxz.js} +8 -9
  292. package/dist/components/p-DpIu_Oxz.js.map +1 -0
  293. package/dist/components/{cura-loader-circle2.js → p-Dqm2sAwv.js} +13 -7
  294. package/dist/components/p-Dqm2sAwv.js.map +1 -0
  295. package/dist/components/{cura-progress-bar2.js → p-FTSrgi0q.js} +11 -8
  296. package/dist/components/p-FTSrgi0q.js.map +1 -0
  297. package/dist/components/{cura-loader-bar2.js → p-KIQMkSRF.js} +5 -5
  298. package/dist/components/p-KIQMkSRF.js.map +1 -0
  299. package/dist/components/{cura-badge-pill2.js → p-cOEGtL9C.js} +26 -9
  300. package/dist/components/p-cOEGtL9C.js.map +1 -0
  301. package/dist/components/{cura-calendar2.js → p-e-P5qR3J.js} +210 -100
  302. package/dist/components/p-e-P5qR3J.js.map +1 -0
  303. package/dist/components/{cura-select2.js → p-y6Cly9DJ.js} +87 -31
  304. package/dist/components/p-y6Cly9DJ.js.map +1 -0
  305. package/dist/components/{cura-input-text2.js → p-zz_zOPBZ.js} +75 -102
  306. package/dist/components/p-zz_zOPBZ.js.map +1 -0
  307. package/dist/cura/cura-alert.entry.esm.js.map +1 -0
  308. package/dist/cura/cura-badge-counter.entry.esm.js.map +1 -0
  309. package/dist/cura/cura-badge-dot.entry.esm.js.map +1 -0
  310. package/dist/cura/cura-badge-pill.entry.esm.js.map +1 -0
  311. package/dist/cura/cura-button-outline.entry.esm.js.map +1 -0
  312. package/dist/cura/cura-button-select.entry.esm.js.map +1 -0
  313. package/dist/cura/{p-12a4ae7e.entry.js.map → cura-calendar.entry.esm.js.map} +1 -1
  314. package/dist/cura/{p-53d68d72.entry.js.map → cura-card.entry.esm.js.map} +1 -1
  315. package/dist/cura/cura-checkbox.entry.esm.js.map +1 -0
  316. package/dist/cura/cura-display.entry.esm.js.map +1 -0
  317. package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +1 -0
  318. package/dist/cura/cura-icons-view.entry.esm.js.map +1 -0
  319. package/dist/cura/cura-input-date.entry.esm.js.map +1 -0
  320. package/dist/cura/cura-loader-bar.entry.esm.js.map +1 -0
  321. package/dist/cura/{p-1ef21ae9.entry.js.map → cura-modal.entry.esm.js.map} +1 -1
  322. package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +1 -0
  323. package/dist/cura/cura-radio.entry.esm.js.map +1 -0
  324. package/dist/cura/cura-stepper.entry.esm.js.map +1 -0
  325. package/dist/cura/cura-switch.entry.esm.js.map +1 -0
  326. package/dist/cura/cura-tabs-button.entry.esm.js.map +1 -0
  327. package/dist/cura/cura-tabs-transparent.entry.esm.js.map +1 -0
  328. package/dist/cura/cura-toast.entry.esm.js.map +1 -0
  329. package/dist/cura/cura-tooltip.entry.esm.js.map +1 -0
  330. package/dist/cura/cura.esm.js +1 -1
  331. package/dist/cura/cura.esm.js.map +1 -1
  332. package/dist/cura/index.esm.js +1 -1
  333. package/dist/cura/index.esm.js.map +1 -1
  334. package/dist/cura/loader.esm.js.map +1 -0
  335. package/dist/cura/p-077019da.entry.js +2 -0
  336. package/dist/cura/p-077019da.entry.js.map +1 -0
  337. package/dist/cura/p-07783235.entry.js +2 -0
  338. package/dist/cura/p-07783235.entry.js.map +1 -0
  339. package/dist/cura/p-090e297c.entry.js +2 -0
  340. package/dist/cura/p-090e297c.entry.js.map +1 -0
  341. package/dist/cura/p-16c0b52c.entry.js +2 -0
  342. package/dist/cura/p-16c0b52c.entry.js.map +1 -0
  343. package/dist/cura/p-2632183e.entry.js +2 -0
  344. package/dist/cura/p-2632183e.entry.js.map +1 -0
  345. package/dist/cura/p-32015dcc.entry.js +2 -0
  346. package/dist/cura/p-32015dcc.entry.js.map +1 -0
  347. package/dist/cura/p-32f94709.entry.js +2 -0
  348. package/dist/cura/p-32f94709.entry.js.map +1 -0
  349. package/dist/cura/p-3d6040e2.entry.js +2 -0
  350. package/dist/cura/p-3d6040e2.entry.js.map +1 -0
  351. package/dist/cura/p-4ac578a6.entry.js +2 -0
  352. package/dist/cura/p-4ac578a6.entry.js.map +1 -0
  353. package/dist/cura/p-4bde448e.entry.js +2 -0
  354. package/dist/cura/p-4bde448e.entry.js.map +1 -0
  355. package/dist/cura/p-6feba852.entry.js +2 -0
  356. package/dist/cura/p-6feba852.entry.js.map +1 -0
  357. package/dist/cura/p-7586fd07.entry.js +2 -0
  358. package/dist/cura/p-7586fd07.entry.js.map +1 -0
  359. package/dist/cura/p-76cbb798.entry.js +2 -0
  360. package/dist/cura/p-76cbb798.entry.js.map +1 -0
  361. package/dist/cura/p-7fd143aa.entry.js +2 -0
  362. package/dist/cura/p-7fd143aa.entry.js.map +1 -0
  363. package/dist/cura/p-8c83f259.entry.js +2 -0
  364. package/dist/cura/p-8c83f259.entry.js.map +1 -0
  365. package/dist/cura/p-95cd7918.entry.js +2 -0
  366. package/dist/cura/p-95cd7918.entry.js.map +1 -0
  367. package/dist/cura/{p-272c784a.js → p-964stZ3D.js} +1 -1
  368. package/dist/cura/p-964stZ3D.js.map +1 -0
  369. package/dist/cura/p-9ef5444e.entry.js +2 -0
  370. package/dist/cura/p-9ef5444e.entry.js.map +1 -0
  371. package/dist/cura/p-BPKQjAwN.js +2 -0
  372. package/dist/cura/p-BPKQjAwN.js.map +1 -0
  373. package/dist/cura/{p-53c18ed4.js → p-BSI2FkNn.js} +1 -1
  374. package/dist/cura/p-BSI2FkNn.js.map +1 -0
  375. package/dist/cura/{p-efcb32eb.js → p-CHcd-uKK.js} +1 -1
  376. package/dist/cura/p-CHcd-uKK.js.map +1 -0
  377. package/dist/cura/{p-f9b8f665.js → p-Dot54hbB.js} +1 -1
  378. package/dist/cura/p-Dot54hbB.js.map +1 -0
  379. package/dist/cura/p-PPMZr_VE.js +3 -0
  380. package/dist/cura/p-PPMZr_VE.js.map +1 -0
  381. package/dist/cura/p-c6f240f0.entry.js +2 -0
  382. package/dist/cura/p-c6f240f0.entry.js.map +1 -0
  383. package/dist/cura/p-ceb646df.entry.js +2 -0
  384. package/dist/cura/p-ceb646df.entry.js.map +1 -0
  385. package/dist/cura/p-d040f8b9.entry.js +2 -0
  386. package/dist/cura/p-d040f8b9.entry.js.map +1 -0
  387. package/dist/cura/p-deb0b764.entry.js +2 -0
  388. package/dist/cura/p-deb0b764.entry.js.map +1 -0
  389. package/dist/cura/p-df7cb250.entry.js +2 -0
  390. package/dist/cura/p-df7cb250.entry.js.map +1 -0
  391. package/dist/cura/p-f9af3a3b.entry.js +2 -0
  392. package/dist/cura/p-f9af3a3b.entry.js.map +1 -0
  393. package/dist/cura/p-fc3b57a8.entry.js +2 -0
  394. package/dist/cura/p-fc3b57a8.entry.js.map +1 -0
  395. package/dist/cura/{p-48f9289b.js → p-sjLA93YY.js} +1 -1
  396. package/dist/cura/p-sjLA93YY.js.map +1 -0
  397. package/dist/esm/cura-accordion_20.entry.js +484 -135
  398. package/dist/esm/cura-accordion_20.entry.js.map +1 -1
  399. package/dist/esm/cura-alert.entry.js +9 -10
  400. package/dist/esm/cura-alert.entry.js.map +1 -1
  401. package/dist/esm/cura-badge-counter.entry.js +16 -6
  402. package/dist/esm/cura-badge-counter.entry.js.map +1 -1
  403. package/dist/esm/cura-badge-dot.entry.js +14 -3
  404. package/dist/esm/cura-badge-dot.entry.js.map +1 -1
  405. package/dist/esm/cura-badge-pill.entry.js +23 -5
  406. package/dist/esm/cura-badge-pill.entry.js.map +1 -1
  407. package/dist/esm/cura-button-outline.entry.js +46 -6
  408. package/dist/esm/cura-button-outline.entry.js.map +1 -1
  409. package/dist/esm/cura-button-select.entry.js +7 -10
  410. package/dist/esm/cura-button-select.entry.js.map +1 -1
  411. package/dist/{components/cura-button.definitions.js → esm/cura-button.definitions-BSI2FkNn.js} +2 -1
  412. package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +1 -0
  413. package/dist/esm/cura-calendar.entry.js +203 -92
  414. package/dist/esm/cura-calendar.entry.js.map +1 -1
  415. package/dist/esm/cura-card.entry.js +34 -4
  416. package/dist/esm/cura-card.entry.js.map +1 -1
  417. package/dist/esm/cura-checkbox.entry.js +72 -18
  418. package/dist/esm/cura-checkbox.entry.js.map +1 -1
  419. package/dist/esm/cura-display.entry.js +25 -5
  420. package/dist/esm/cura-display.entry.js.map +1 -1
  421. package/dist/esm/cura-dropdown-search-not-found.entry.js +5 -4
  422. package/dist/esm/cura-dropdown-search-not-found.entry.js.map +1 -1
  423. package/dist/esm/{cura-forms.definitions-2f963167.js → cura-forms.definitions-Dot54hbB.js} +2 -1
  424. package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +1 -0
  425. package/dist/esm/{cura-icon.definitions-a892c0e2.js → cura-icon.definitions-sjLA93YY.js} +2 -1
  426. package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +1 -0
  427. package/dist/esm/cura-icons-view.entry.js +7 -6
  428. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  429. package/dist/esm/cura-input-date.entry.js +32 -13
  430. package/dist/esm/cura-input-date.entry.js.map +1 -1
  431. package/dist/esm/cura-loader-bar.entry.js +4 -3
  432. package/dist/esm/cura-loader-bar.entry.js.map +1 -1
  433. package/dist/esm/cura-modal.entry.js +46 -13
  434. package/dist/esm/cura-modal.entry.js.map +1 -1
  435. package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +1 -0
  436. package/dist/esm/cura-progress-bar_2.entry.js +25 -13
  437. package/dist/esm/cura-progress-bar_2.entry.js.map +1 -1
  438. package/dist/esm/cura-radio.entry.js +73 -19
  439. package/dist/esm/cura-radio.entry.js.map +1 -1
  440. package/dist/esm/cura-stepper.entry.js +23 -4
  441. package/dist/esm/cura-stepper.entry.js.map +1 -1
  442. package/dist/esm/cura-switch.entry.js +61 -16
  443. package/dist/esm/cura-switch.entry.js.map +1 -1
  444. package/dist/esm/cura-tabs-button.entry.js +6 -7
  445. package/dist/esm/cura-tabs-button.entry.js.map +1 -1
  446. package/dist/esm/cura-tabs-transparent.entry.js +6 -7
  447. package/dist/esm/cura-tabs-transparent.entry.js.map +1 -1
  448. package/dist/esm/{cura-tabs.definitions-a017126e.js → cura-tabs.definitions-CHcd-uKK.js} +2 -1
  449. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +1 -0
  450. package/dist/esm/{cura-theme-module-bf286f68.js → cura-theme-module-BPKQjAwN.js} +88 -4
  451. package/dist/esm/cura-theme-module-BPKQjAwN.js.map +1 -0
  452. package/dist/esm/cura-toast.entry.js +8 -9
  453. package/dist/esm/cura-toast.entry.js.map +1 -1
  454. package/dist/esm/cura-tooltip.entry.js +9 -9
  455. package/dist/esm/cura-tooltip.entry.js.map +1 -1
  456. package/dist/esm/cura.js +7 -7
  457. package/dist/esm/cura.js.map +1 -1
  458. package/dist/esm/{index-fbee309a.js → index-964stZ3D.js} +2 -1
  459. package/dist/esm/index-964stZ3D.js.map +1 -0
  460. package/dist/esm/{index-21683715.js → index-OdKytJIH.js} +947 -270
  461. package/dist/esm/index-OdKytJIH.js.map +1 -0
  462. package/dist/esm/index.js +2 -2
  463. package/dist/esm/index.js.map +1 -1
  464. package/dist/esm/loader.js +5 -6
  465. package/dist/esm/loader.js.map +1 -1
  466. package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +4 -0
  467. package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +14 -0
  468. package/dist/types/components.d.ts +718 -0
  469. package/dist/types/stencil-public-runtime.d.ts +25 -1
  470. package/package.json +13 -16
  471. package/dist/cjs/app-globals-6d5b51b6.js +0 -70
  472. package/dist/cjs/app-globals-6d5b51b6.js.map +0 -1
  473. package/dist/cjs/cura-button.definitions-f036371c.js.map +0 -1
  474. package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +0 -1
  475. package/dist/cjs/cura-icon.definitions-5223028b.js.map +0 -1
  476. package/dist/cjs/cura-tabs.definitions-b8955ad4.js.map +0 -1
  477. package/dist/cjs/cura-theme-module-09bb63a4.js.map +0 -1
  478. package/dist/cjs/index-60783089.js.map +0 -1
  479. package/dist/cjs/index-6dc29195.js.map +0 -1
  480. package/dist/cjs/static-44199808.js +0 -90
  481. package/dist/cjs/static-44199808.js.map +0 -1
  482. package/dist/components/cura-badge-counter2.js.map +0 -1
  483. package/dist/components/cura-badge-pill2.js.map +0 -1
  484. package/dist/components/cura-button-transparent2.js.map +0 -1
  485. package/dist/components/cura-button.definitions.js.map +0 -1
  486. package/dist/components/cura-calendar2.js.map +0 -1
  487. package/dist/components/cura-forms.definitions.js.map +0 -1
  488. package/dist/components/cura-heading2.js.map +0 -1
  489. package/dist/components/cura-icon2.js.map +0 -1
  490. package/dist/components/cura-input-text2.js.map +0 -1
  491. package/dist/components/cura-label2.js.map +0 -1
  492. package/dist/components/cura-loader-bar2.js.map +0 -1
  493. package/dist/components/cura-loader-circle2.js.map +0 -1
  494. package/dist/components/cura-paragraph2.js.map +0 -1
  495. package/dist/components/cura-progress-bar2.js.map +0 -1
  496. package/dist/components/cura-select-option2.js.map +0 -1
  497. package/dist/components/cura-select2.js.map +0 -1
  498. package/dist/components/cura-stepper-item2.js.map +0 -1
  499. package/dist/components/cura-tabs.definitions.js.map +0 -1
  500. package/dist/cura/p-0aeaf57a.entry.js +0 -2
  501. package/dist/cura/p-0aeaf57a.entry.js.map +0 -1
  502. package/dist/cura/p-0b872499.entry.js +0 -2
  503. package/dist/cura/p-0b872499.entry.js.map +0 -1
  504. package/dist/cura/p-0ccde0ff.entry.js +0 -2
  505. package/dist/cura/p-0ccde0ff.entry.js.map +0 -1
  506. package/dist/cura/p-12a4ae7e.entry.js +0 -2
  507. package/dist/cura/p-137f003b.entry.js +0 -2
  508. package/dist/cura/p-137f003b.entry.js.map +0 -1
  509. package/dist/cura/p-197213c0.entry.js +0 -2
  510. package/dist/cura/p-197213c0.entry.js.map +0 -1
  511. package/dist/cura/p-1ef21ae9.entry.js +0 -2
  512. package/dist/cura/p-202dc01a.entry.js +0 -2
  513. package/dist/cura/p-202dc01a.entry.js.map +0 -1
  514. package/dist/cura/p-20b05d8f.entry.js +0 -2
  515. package/dist/cura/p-20b05d8f.entry.js.map +0 -1
  516. package/dist/cura/p-272c784a.js.map +0 -1
  517. package/dist/cura/p-2db4deb3.js +0 -2
  518. package/dist/cura/p-2db4deb3.js.map +0 -1
  519. package/dist/cura/p-48f9289b.js.map +0 -1
  520. package/dist/cura/p-4ee8efca.js +0 -3
  521. package/dist/cura/p-4ee8efca.js.map +0 -1
  522. package/dist/cura/p-53c18ed4.js.map +0 -1
  523. package/dist/cura/p-53d68d72.entry.js +0 -2
  524. package/dist/cura/p-5a43e745.entry.js +0 -2
  525. package/dist/cura/p-5a43e745.entry.js.map +0 -1
  526. package/dist/cura/p-5c6f9593.entry.js +0 -2
  527. package/dist/cura/p-5c6f9593.entry.js.map +0 -1
  528. package/dist/cura/p-633c13cd.entry.js +0 -2
  529. package/dist/cura/p-633c13cd.entry.js.map +0 -1
  530. package/dist/cura/p-6cbd49dd.js +0 -2
  531. package/dist/cura/p-6cbd49dd.js.map +0 -1
  532. package/dist/cura/p-7a68835f.entry.js +0 -2
  533. package/dist/cura/p-7a68835f.entry.js.map +0 -1
  534. package/dist/cura/p-7e10b146.entry.js +0 -2
  535. package/dist/cura/p-7e10b146.entry.js.map +0 -1
  536. package/dist/cura/p-7e2d1229.entry.js +0 -2
  537. package/dist/cura/p-7e2d1229.entry.js.map +0 -1
  538. package/dist/cura/p-8aade007.entry.js +0 -2
  539. package/dist/cura/p-8aade007.entry.js.map +0 -1
  540. package/dist/cura/p-9f460031.js +0 -2
  541. package/dist/cura/p-9f460031.js.map +0 -1
  542. package/dist/cura/p-ac0c90af.entry.js +0 -2
  543. package/dist/cura/p-ac0c90af.entry.js.map +0 -1
  544. package/dist/cura/p-b254bbe4.entry.js +0 -2
  545. package/dist/cura/p-b254bbe4.entry.js.map +0 -1
  546. package/dist/cura/p-b4ee956b.entry.js +0 -2
  547. package/dist/cura/p-b4ee956b.entry.js.map +0 -1
  548. package/dist/cura/p-b60a6aaa.entry.js +0 -2
  549. package/dist/cura/p-b60a6aaa.entry.js.map +0 -1
  550. package/dist/cura/p-b6ff8ac1.entry.js +0 -2
  551. package/dist/cura/p-b6ff8ac1.entry.js.map +0 -1
  552. package/dist/cura/p-d8e1e182.entry.js +0 -2
  553. package/dist/cura/p-d8e1e182.entry.js.map +0 -1
  554. package/dist/cura/p-d97719bc.entry.js +0 -2
  555. package/dist/cura/p-d97719bc.entry.js.map +0 -1
  556. package/dist/cura/p-efcb32eb.js.map +0 -1
  557. package/dist/cura/p-f9b8f665.js.map +0 -1
  558. package/dist/esm/app-globals-c2abb41c.js +0 -68
  559. package/dist/esm/app-globals-c2abb41c.js.map +0 -1
  560. package/dist/esm/cura-button.definitions-617d3bad.js.map +0 -1
  561. package/dist/esm/cura-forms.definitions-2f963167.js.map +0 -1
  562. package/dist/esm/cura-icon.definitions-a892c0e2.js.map +0 -1
  563. package/dist/esm/cura-tabs.definitions-a017126e.js.map +0 -1
  564. package/dist/esm/cura-theme-module-bf286f68.js.map +0 -1
  565. package/dist/esm/index-21683715.js.map +0 -1
  566. package/dist/esm/index-fbee309a.js.map +0 -1
  567. package/dist/esm/static-090f0088.js +0 -88
  568. package/dist/esm/static-090f0088.js.map +0 -1
  569. package/dist/loader/package.json +0 -11
@@ -1 +1 @@
1
- {"file":"cura-button-select.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,8vGAA8vG,CAAC;AAC3xG,+BAAe,mBAAmB;;MCOrBA,kBAAgB;;;;;;QAiB3B,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;wBAdsB,KAAK;;oBAEM,QAAQ;;;0BAG/B,OAAO;qBACtB,SAAS;;uBAGd,KAAK;sBACN,EAAE;;IAUpB,SAAS;QACP,MAAM,MAAM,GAAG;YACb,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,KAAK,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,SAAS,GAAG,eAAe,EAAE;YACzG,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,KAAK,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,QAAQ,EAAE;YAC3H,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,KAAK,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,QAAQ,GAAG,GAAG,IAAI,CAAC,KAAK,OAAO,EAAE;YACvH,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,KAAK,OAAO,GAAG,GAAG,IAAI,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,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;KAChD;IAED,MAAM;QACJ,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;QACjE,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,QAAQ,mBACJ,IAAI,CAAC,QAAQ,kBACd,IAAI,CAAC,QAAQ,IACzB,+DACE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EACjC,YAAY,EAAE,MAAM,IAAI,CAAC,gBAAgB,EAAE,EAC3C,YAAY,EAAE,MAAM,IAAI,CAAC,gBAAgB,EAAE,IAE3C,4DAAK,KAAK,EAAC,kBAAkB,IAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,EACtC,mEAAY,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAC,SAAS,IAC1G,8DAAa,CACF,EACZ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,EACvC,IAAI,CAAC,YAAY,KAAK,OAAO,IAAI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAC7E,CACC,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraButtonSelect"],"sources":["src/components/buttons/cura-button-select/cura-button-select.scss?tag=cura-button-select&encapsulation=shadow","src/components/buttons/cura-button-select/cura-button-select.tsx"],"sourcesContent":["@import '../../../scss/mixins/buttons.scss';\n\n:host {\n @include button-host();\n\n button,\n a {\n @include button-element() {\n background-color: var(--neutral-purewhite);\n box-sizing: border-box;\n border: none;\n\n &::before {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0px;\n top: 0px;\n box-sizing: border-box;\n border: 2px solid var(--color-border);\n border-radius: var(--border-radius);\n }\n\n &:not(.disabled):hover {\n background-color: var(--color-background-hover);\n border-color: var(--color-border-hover-pressed);\n }\n\n &:focus {\n border-color: var(--color-border) !important;\n }\n }\n\n @include button-sizes();\n\n @include button-label();\n\n // Children Elements\n @include button-container() {\n flex-direction: row !important;\n\n .badge-number {\n margin-left: 10px;\n }\n }\n\n @include button-icon();\n\n // selected state\n @include button-selected() {\n background-color: var(--color-select);\n border-color: var(--color-select);\n\n &:not(.disabled):hover {\n background-color: var(--color-border-hover-pressed);\n border-color: var(--color-border-hover-pressed);\n }\n\n &:focus {\n border-color: var(--color-select-focus) !important;\n }\n\n &.disabled {\n background-color: var(--color-disable-select);\n border-color: var(--color-disable-select);\n }\n }\n\n // Disabled state\n @include button-disabled() {\n background-color: var(--neutral-white-primary-darker);\n border-color: var(--color-border-disable-unselect);\n }\n }\n}\n","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"],"version":3}
1
+ {"file":"cura-button-select.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,8vGAA8vG;;MCQ7wGA,kBAAgB,iBAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAAC,CAAA,CAAA;AA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,YAAY,KAAK,OAAO,IAAI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAC7E,CACC,CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraButtonSelect","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/buttons/cura-button-select/cura-button-select.scss?tag=cura-button-select&encapsulation=shadow","src/components/buttons/cura-button-select/cura-button-select.tsx"],"sourcesContent":["@import '../../../scss/mixins/buttons.scss';\n\n:host {\n @include button-host();\n\n button,\n a {\n @include button-element() {\n background-color: var(--neutral-purewhite);\n box-sizing: border-box;\n border: none;\n\n &::before {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0px;\n top: 0px;\n box-sizing: border-box;\n border: 2px solid var(--color-border);\n border-radius: var(--border-radius);\n }\n\n &:not(.disabled):hover {\n background-color: var(--color-background-hover);\n border-color: var(--color-border-hover-pressed);\n }\n\n &:focus {\n border-color: var(--color-border) !important;\n }\n }\n\n @include button-sizes();\n\n @include button-label();\n\n // Children Elements\n @include button-container() {\n flex-direction: row !important;\n\n .badge-number {\n margin-left: 10px;\n }\n }\n\n @include button-icon();\n\n // selected state\n @include button-selected() {\n background-color: var(--color-select);\n border-color: var(--color-select);\n\n &:not(.disabled):hover {\n background-color: var(--color-border-hover-pressed);\n border-color: var(--color-border-hover-pressed);\n }\n\n &:focus {\n border-color: var(--color-select-focus) !important;\n }\n\n &.disabled {\n background-color: var(--color-disable-select);\n border-color: var(--color-disable-select);\n }\n }\n\n // Disabled state\n @include button-disabled() {\n background-color: var(--neutral-white-primary-darker);\n border-color: var(--color-border-disable-unselect);\n }\n }\n}\n","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"],"version":3}
@@ -1,8 +1,9 @@
1
- import { C as CuraButtonTransparent$1, d as defineCustomElement$1 } from './cura-button-transparent2.js';
1
+ import { C as CuraButtonTransparent$1, d as defineCustomElement$1 } from './p-BRDqwZ4N.js';
2
2
 
3
3
  const CuraButtonTransparent = CuraButtonTransparent$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { CuraButtonTransparent, defineCustomElement };
7
+ //# sourceMappingURL=cura-button-transparent.js.map
7
8
 
8
9
  //# sourceMappingURL=cura-button-transparent.js.map
@@ -1,32 +1,70 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { l as labelSizes } from './cura-button.definitions.js';
3
- import { d as defineCustomElement$4 } from './cura-icon2.js';
4
- import { d as defineCustomElement$3 } from './cura-label2.js';
5
- import { d as defineCustomElement$2 } from './cura-loader-circle2.js';
1
+ import { p as proxyCustomElement, H, h, d as Host } from './p-D1cPOZpG.js';
2
+ import { l as labelSizes } from './p-BSI2FkNn.js';
3
+ import { d as defineCustomElement$4 } from './p-B5aO1chh.js';
4
+ import { d as defineCustomElement$3 } from './p-DR1RHrEX.js';
5
+ import { d as defineCustomElement$2 } from './p-Dqm2sAwv.js';
6
6
 
7
7
  const curaButtonCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:var(--color-base-neutral-purewhite);box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button::before,:host a::before{content:\"\";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:2px solid transparent;border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading)::before,:host a:not(.disabled):not(.isLoading)::before{border:2px solid var(--color-base-color-light)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{background:var(--color-base-color-light);box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host button:not(.disabled):not(.isLoading):hover::before,:host a:not(.disabled):not(.isLoading):hover::before{border-color:var(--color-dark-color-base)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark-color-light)}:host button:not(.isLoading):not(.disabled):active::before,:host a:not(.isLoading):not(.disabled):active::before{border-color:var(--color-dark-color-light)}:host button:hover,:host a:hover{box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16)}:host button.medium:hover,:host a.medium:hover{box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16)}:host button.small:hover,:host a.small:hover{box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16)}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{box-shadow:none !important}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-pale-neutral-black)}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-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(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}: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}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}";
8
- const CuraButtonStyle0 = curaButtonCss;
9
8
 
10
- const CuraButton$1 = /*@__PURE__*/ proxyCustomElement(class CuraButton extends HTMLElement {
9
+ const CuraButton$1 = /*@__PURE__*/ proxyCustomElement(class CuraButton extends H {
11
10
  constructor() {
12
11
  super();
13
12
  this.__registerHost();
14
13
  this.__attachShadow();
15
14
  this.internals = this.attachInternals();
15
+ /**
16
+ * Button type: button (default) | submit | reset
17
+ */
16
18
  this.type = 'button';
19
+ /**
20
+ * Button size: small | medium | large (default)
21
+ */
17
22
  this.size = 'large';
23
+ /**
24
+ * Disabled state. Boolean.
25
+ */
18
26
  this.disabled = false;
27
+ /**
28
+ * Loading state. Boolean.
29
+ */
19
30
  this.isLoading = false;
20
- this.iconName = undefined;
31
+ /**
32
+ * Custom iconset if needed.
33
+ */
21
34
  this.iconset = 'default';
35
+ /**
36
+ * Icon position: left (default) | right.
37
+ */
22
38
  this.iconPosition = 'left';
39
+ /**
40
+ * Set button to FAB/icon only.
41
+ */
23
42
  this.iconOnly = false;
24
- this.href = undefined;
43
+ /**
44
+ * Set target if link.
45
+ */
25
46
  this.target = "_self";
47
+ /**
48
+ * Color base from color scheme. Default: accent.
49
+ */
26
50
  this.color = 'accent';
51
+ /**
52
+ * Set the background color to dark or light.
53
+ */
27
54
  this.background = 'light';
55
+ /**
56
+ * Set the font color to dark or light.
57
+ */
28
58
  this.fontColor = 'dark';
59
+ /**
60
+ * Set text aligment for the button label.
61
+ * Vales: left (default) | center | right.
62
+ */
29
63
  this.textAlign = 'left';
64
+ /**
65
+ * Justify icons and label inside the button.
66
+ * Vales: false (default) | true.
67
+ */
30
68
  this.justify = false;
31
69
  this.styles = {};
32
70
  this.hovered = false;
@@ -106,7 +144,7 @@ const CuraButton$1 = /*@__PURE__*/ proxyCustomElement(class CuraButton extends H
106
144
  "background": ["setColors"],
107
145
  "color": ["setColors"]
108
146
  }; }
109
- static get style() { return CuraButtonStyle0; }
147
+ static get style() { return curaButtonCss; }
110
148
  }, [65, "cura-button", {
111
149
  "type": [513],
112
150
  "size": [513],
@@ -162,5 +200,6 @@ const CuraButton = CuraButton$1;
162
200
  const defineCustomElement = defineCustomElement$1;
163
201
 
164
202
  export { CuraButton, defineCustomElement };
203
+ //# sourceMappingURL=cura-button.js.map
165
204
 
166
205
  //# sourceMappingURL=cura-button.js.map
@@ -1 +1 @@
1
- {"file":"cura-button.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,0xIAA0xI,CAAC;AACjzI,yBAAe,aAAa;;MCQfA,YAAU;;;;;;oBAO0C,QAAQ;oBAKT,OAAO;wBAKjC,KAAK;yBAIJ,KAAK;;uBASP,SAAS;4BAIc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AC3B,IAAI,CAAC,OAAO,EAAE,EACf,kBAAY,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAC,QAAQ,EAAC,KAAK,EAAE,WAAW,IAAE,eAAa,CAAa,CACxG,EACP,0BAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,GAAuB,CACvE,CACV,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraButton"],"sources":["src/components/buttons/cura-button/cura-button.scss?tag=cura-button&encapsulation=shadow","src/components/buttons/cura-button/cura-button.tsx"],"sourcesContent":["@import \"../../../scss/mixins/buttons.scss\";\n\n:host {\n @include button-host();\n\n button,\n a {\n @include button-element() {\n background-color: var(--color-base-neutral-purewhite);\n box-sizing: border-box;\n border: none;\n\n &::before {\n content: \"\";\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0px;\n top: 0px;\n box-sizing: border-box;\n border: 2px solid transparent;\n border-radius: var(--border-radius);\n }\n\n &:not(.disabled) {\n &:not(.isLoading)::before {\n border: 2px solid var(--color-base-color-light);\n }\n\n &:hover {\n background: var(--color-base-color-light);\n box-shadow: 0px 4px 8px 0px rgba(38, 38, 38, 0.16);\n }\n &:not(.isLoading):hover::before {\n border-color: var(--color-dark-color-base);\n }\n }\n\n &:not(.isLoading):not(.disabled):active {\n background-color: var(--color-dark-color-light);\n }\n &:not(.isLoading):not(.disabled):active::before {\n border-color: var(--color-dark-color-light);\n }\n }\n\n @include button-shadow-behavior();\n @include button-sizes();\n\n // Children Elements\n @include button-container();\n @include button-label();\n @include button-icon();\n\n // Disabled state\n @include button-disabled() {\n background-color: var(--neutral-pale-neutral-black);\n }\n\n // FAB / Icon-only\n @include button-icon-only-behavior();\n\n // Loading State\n @include button-loading();\n }\n}\n","import { Component, Host, h, Prop, Watch, State, AttachInternals } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button',\n styleUrl: 'cura-button.scss',\n shadow: true,\n formAssociated: true\n})\nexport class CuraButton {\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() color = 'accent';\n\n /**\n * Set the background color to dark or light.\n */\n @Prop({ reflect: true }) background: 'dark' | 'light' = 'light';\n\n /**\n * Set the font color to dark or light.\n */\n @Prop({ reflect: true }) fontColor: 'dark' | 'light' = 'dark';\n\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\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.styles['--text-align'] = this.textAlign;\n this.setColors();\n }\n\n @Watch('background')\n @Watch('color')\n setColors() {\n const colors = [\n { name: '--color-base-neutral-purewhite', theme: `${this.background === 'light' ? `${this.color}-base` : 'neutral-pale'}` },\n { name: '--color-base-color-light', theme: `${this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter`}` },\n { name: '--color-dark-color-light', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-light`}` },\n { name: '--color-dark-color-base', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-base`}` },\n { name: '--neutral-pale-neutral-black', theme: `${this.background === 'light' ? 'neutral-pale' : 'neutral-black'}` },\n ]\n\n colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.theme));\n this.styles = { ...this.styles };\n }\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\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\n return classes;\n }\n\n getIcon() {\n if (!this.iconName) return '';\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 getSymbolColor() {\n if (this.isLoading && this.fontColor === 'light' ? 'neutral-white' : 'neutral-black')\n return this.disabled\n ? 'neutral-dark'\n : this.fontColor === 'light'\n ? 'neutral-white'\n : 'neutral-black';\n }\n\n handleClick(e: Event) {\n if (this.disabled || this.isLoading) {\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 class=\"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 class=\"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"],"version":3}
1
+ {"file":"cura-button.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,0xIAA0xI;;MCSnyIA,YAAU,iBAAAC,kBAAA,CAAA,MAAA,UAAA,SAAAC,CAAA,CAAA;AANvB,IAAA,WAAA,GAAA;;;;;AAUE;;AAEG;AACsB,QAAA,IAAI,CAAA,IAAA,GAAkC,QAAQ;AAEvE;;AAEG;AACsB,QAAA,IAAI,CAAA,IAAA,GAAiC,OAAO;AAErE;;AAEG;AACsB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AACzC;;AAEG;AACsB,QAAA,IAAS,CAAA,SAAA,GAAG,KAAK;AAM1C;;AAEG;AACsB,QAAA,IAAO,CAAA,OAAA,GAAG,SAAS;AAC5C;;AAEG;AACsB,QAAA,IAA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CAAA,CAAA,MAAA,EAAA,IAAA,CAAa,CAAa,CACxG,EACP,CAAA,CAAA,oBAAA,EAAA,EAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,EAAuB,CAAA,CACvE,CACV,CACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraButton","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/buttons/cura-button/cura-button.scss?tag=cura-button&encapsulation=shadow","src/components/buttons/cura-button/cura-button.tsx"],"sourcesContent":["@import \"../../../scss/mixins/buttons.scss\";\n\n:host {\n @include button-host();\n\n button,\n a {\n @include button-element() {\n background-color: var(--color-base-neutral-purewhite);\n box-sizing: border-box;\n border: none;\n\n &::before {\n content: \"\";\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0px;\n top: 0px;\n box-sizing: border-box;\n border: 2px solid transparent;\n border-radius: var(--border-radius);\n }\n\n &:not(.disabled) {\n &:not(.isLoading)::before {\n border: 2px solid var(--color-base-color-light);\n }\n\n &:hover {\n background: var(--color-base-color-light);\n box-shadow: 0px 4px 8px 0px rgba(38, 38, 38, 0.16);\n }\n &:not(.isLoading):hover::before {\n border-color: var(--color-dark-color-base);\n }\n }\n\n &:not(.isLoading):not(.disabled):active {\n background-color: var(--color-dark-color-light);\n }\n &:not(.isLoading):not(.disabled):active::before {\n border-color: var(--color-dark-color-light);\n }\n }\n\n @include button-shadow-behavior();\n @include button-sizes();\n\n // Children Elements\n @include button-container();\n @include button-label();\n @include button-icon();\n\n // Disabled state\n @include button-disabled() {\n background-color: var(--neutral-pale-neutral-black);\n }\n\n // FAB / Icon-only\n @include button-icon-only-behavior();\n\n // Loading State\n @include button-loading();\n }\n}\n","import { Component, Host, h, Prop, Watch, State, AttachInternals } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button',\n styleUrl: 'cura-button.scss',\n shadow: true,\n formAssociated: true\n})\nexport class CuraButton {\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() color = 'accent';\n\n /**\n * Set the background color to dark or light.\n */\n @Prop({ reflect: true }) background: 'dark' | 'light' = 'light';\n\n /**\n * Set the font color to dark or light.\n */\n @Prop({ reflect: true }) fontColor: 'dark' | 'light' = 'dark';\n\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\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.styles['--text-align'] = this.textAlign;\n this.setColors();\n }\n\n @Watch('background')\n @Watch('color')\n setColors() {\n const colors = [\n { name: '--color-base-neutral-purewhite', theme: `${this.background === 'light' ? `${this.color}-base` : 'neutral-pale'}` },\n { name: '--color-base-color-light', theme: `${this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter`}` },\n { name: '--color-dark-color-light', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-light`}` },\n { name: '--color-dark-color-base', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-base`}` },\n { name: '--neutral-pale-neutral-black', theme: `${this.background === 'light' ? 'neutral-pale' : 'neutral-black'}` },\n ]\n\n colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.theme));\n this.styles = { ...this.styles };\n }\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\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\n return classes;\n }\n\n getIcon() {\n if (!this.iconName) return '';\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 getSymbolColor() {\n if (this.isLoading && this.fontColor === 'light' ? 'neutral-white' : 'neutral-black')\n return this.disabled\n ? 'neutral-dark'\n : this.fontColor === 'light'\n ? 'neutral-white'\n : 'neutral-black';\n }\n\n handleClick(e: Event) {\n if (this.disabled || this.isLoading) {\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 class=\"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 class=\"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"],"version":3}
@@ -1,8 +1,9 @@
1
- import { C as CuraCalendar$1, d as defineCustomElement$1 } from './cura-calendar2.js';
1
+ import { C as CuraCalendar$1, d as defineCustomElement$1 } from './p-e-P5qR3J.js';
2
2
 
3
3
  const CuraCalendar = CuraCalendar$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { CuraCalendar, defineCustomElement };
7
+ //# sourceMappingURL=cura-calendar.js.map
7
8
 
8
9
  //# sourceMappingURL=cura-calendar.js.map
@@ -1,18 +1,46 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
1
+ import { p as proxyCustomElement, H, h, d as Host } from './p-D1cPOZpG.js';
2
2
 
3
3
  const curaCardCss = ":host{display:block;box-sizing:border-box;font-size:var(--font-size);font-family:var(--font-family)}:host ::slotted(*){display:flex;align-items:center;justify-content:center;font-size:var(--font-size);font-family:var(--font-family)}a{display:block;text-decoration:none !important;color:inherit}.solid{background-color:var(--neutral-purewhite);border:2px solid var(--neutral-base);border-radius:12px;overflow:hidden;padding:0px;box-shadow:none}.solid ::slotted(*){border-radius:0}.solid.hasPadding{padding:20px}.solid.hasPadding ::slotted(*){border-radius:4px !important}.solid.hasShadow{border:2px solid var(--neutral-base);box-shadow:0px 1px 4px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}.solid.cardLink{background-color:var(--neutral-purewhite);border:2px solid var(--primary-base);border-radius:12px;padding:0px;box-shadow:none;cursor:pointer}.solid.cardLink ::slotted(*){border-radius:0px}.solid.cardLink:hover{border:2px solid var(--primary-lighter) !important}.solid.cardLink.hasPadding{padding:20px}.solid.cardLink.hasPadding ::slotted(*){border-radius:4px !important}.solid.cardLink.hasPadding:hover{border:2px solid var(--primary-lighter) !important}.solid.cardLink.hasShadow{border:2px solid var(--primary-base);box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}.solid.cardLink:not(.hasPadding).hasShadow ::slotted(*){border-radius:12px !important}.solid.cardLink.dark{background-color:var(--neutral-purewhite);border:2px solid var(--neutral-purewhite)}.solid.cardLink.dark:hover{border:2px solid var(--primary-lighter)}.transparent{background-color:transparent;border:0;border-radius:12px;padding:0px;overflow:hidden}.transparent ::slotted(*){border-radius:12px}.transparent.hasPadding{padding:20px}.transparent.hasPadding ::slotted(*){border-radius:4px}.transparent.cardLink{background-color:transparent;border:2px solid var(--primary-base);overflow:hidden;border-radius:12px;padding:0px;box-shadow:none}.transparent.cardLink ::slotted(*){border-radius:0px !important}.transparent.cardLink:hover{border:2px solid var(--primary-lighter) !important}.transparent.cardLink.light{background-color:var(--neutral-purewhite);border:2px solid var(--primary-base)}.transparent.cardLink.light ::slotted(*){border-radius:12px !important}.transparent.cardLink.light:hover{border-color:var(--primary-lighter) !important}.transparent.cardLink.dark{background-color:transparent;border:2px solid var(--neutral-purewhite)}.transparent.cardLink.dark:hover{border:0}.transparent.cardLink.hasPadding{padding:20px}.transparent.cardLink.hasPadding ::slotted(*){border-radius:4px !important}";
4
- const CuraCardStyle0 = curaCardCss;
5
4
 
6
- const CuraCard$1 = /*@__PURE__*/ proxyCustomElement(class CuraCard extends HTMLElement {
5
+ const CuraCard$1 = /*@__PURE__*/ proxyCustomElement(class CuraCard extends H {
7
6
  constructor() {
8
7
  super();
9
8
  this.__registerHost();
10
9
  this.__attachShadow();
10
+ /**
11
+ * Determines whether the card should have padding.
12
+ * @type {boolean}
13
+ * @default false
14
+ */
11
15
  this.hasPadding = true;
16
+ /**
17
+ * Determines whether the card should have a shadow effect.
18
+ * @type {boolean}
19
+ * @default false
20
+ */
12
21
  this.hasShadow = false;
22
+ /**
23
+ * Sets the type of the card background.
24
+ * - 'solid': A solid background.
25
+ * - 'transparent': A transparent background.
26
+ * @type {'solid' | 'transparent'}
27
+ * @default 'solid'
28
+ */
13
29
  this.type = 'solid';
30
+ /**
31
+ * Sets the color mode of the card.
32
+ * - 'light': Light mode for the card.
33
+ * - 'dark': Dark mode for the card.
34
+ * @type {'light' | 'dark'}
35
+ * @default 'light'
36
+ */
14
37
  this.colorMode = 'light';
15
- this.href = undefined;
38
+ /**
39
+ * The target attribute for the link.
40
+ * Applicable only if `href` is set.
41
+ * @type {string}
42
+ * @default '_self'
43
+ */
16
44
  this.target = '_self';
17
45
  this.styles = {};
18
46
  }
@@ -43,7 +71,7 @@ const CuraCard$1 = /*@__PURE__*/ proxyCustomElement(class CuraCard extends HTMLE
43
71
  render() {
44
72
  return (h(Host, { key: '9478ce754c108db722dbc5bcbb00a0884b6c6f38', role: this.href ? 'link' : 'div' }, this.href ? (h("a", { class: this.getClasses(), target: this.target, style: this.styles, href: this.href }, h("slot", null))) : (h("div", { class: this.getClasses(), style: this.styles }, h("slot", null)))));
45
73
  }
46
- static get style() { return CuraCardStyle0; }
74
+ static get style() { return curaCardCss; }
47
75
  }, [1, "cura-card", {
48
76
  "hasPadding": [1028, "has-padding"],
49
77
  "hasShadow": [1028, "has-shadow"],
@@ -71,5 +99,6 @@ const CuraCard = CuraCard$1;
71
99
  const defineCustomElement = defineCustomElement$1;
72
100
 
73
101
  export { CuraCard, defineCustomElement };
102
+ //# sourceMappingURL=cura-card.js.map
74
103
 
75
104
  //# sourceMappingURL=cura-card.js.map
@@ -1 +1 @@
1
- {"file":"cura-card.js","mappings":";;AAAA,MAAM,WAAW,GAAG,gkFAAgkF,CAAC;AACrlF,uBAAe,WAAW;;MCMbA,UAAQ;;;;;0BAM4B,IAAI;yBAOL,KAAK;oBASM,OAAO;yBAST,OAAO;;sBAepB,OAAO;sBAE1B,EAAE;;IAIzB,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,qBAAqB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QAC/F,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,CAAC,cAAc,CAAC,CAAC;QACrF,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,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,GAAG,MAAM,GAAG,KAAK,IACnC,IAAI,CAAC,IAAI,IACR,SAAG,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IACnF,eAAa,CACX,KAEJ,WAAK,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,IAC/C,eAAa,CACT,CACP,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraCard"],"sources":["src/components/cura-card/cura-card.scss?tag=cura-card&encapsulation=shadow","src/components/cura-card/cura-card.tsx"],"sourcesContent":["@import '../../../src/scss/mixins/shadows.scss';\n\n:host {\n display: block;\n box-sizing: border-box;\n font-size: var(--font-size);\n font-family: var(--font-family);\n ::slotted(*) {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: var(--font-size);\n font-family: var(--font-family);\n }\n \n}\n\na {\n display: block;\n text-decoration: none !important;\n color: inherit;\n}\n.solid {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--neutral-base);\n border-radius: 12px;\n overflow: hidden;\n padding: 0px;\n box-shadow: none;\n\n ::slotted(*) {\n \n border-radius: 0 ;\n }\n &.hasPadding {\n padding: 20px;\n ::slotted(*) {\n border-radius: 4px !important;\n }\n }\n\n &.hasShadow {\n border: 2px solid var(--neutral-base);\n\n @include shadow-level2(--neutral-black-shadow);\n }\n\n &.cardLink {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--primary-base);\n border-radius: 12px;\n padding: 0px;\n box-shadow: none;\n cursor: pointer;\n\n ::slotted(*) {\n border-radius: 0px;\n }\n &:hover {\n border: 2px solid var(--primary-lighter) !important;\n }\n &.hasPadding {\n padding: 20px;\n ::slotted(*) {\n border-radius: 4px !important;\n }\n &:hover {\n border: 2px solid var(--primary-lighter) !important;\n }\n }\n\n &.hasShadow {\n border: 2px solid var(--primary-base);\n\n @include shadow-level3(--neutral-black-shadow);\n }\n &:not(.hasPadding).hasShadow {\n ::slotted(*) {\n border-radius: 12px !important;\n }\n }\n\n &.dark {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--neutral-purewhite);\n &:hover {\n border: 2px solid var(--primary-lighter);\n }\n }\n }\n}\n\n.transparent {\n background-color: transparent;\n border: 0;\n border-radius: 12px;\n padding: 0px;\n overflow: hidden;\n ::slotted(*) {\n border-radius: 12px;\n }\n\n &.hasPadding {\n padding: 20px;\n\n ::slotted(*) {\n border-radius: 4px;\n }\n }\n\n &.cardLink {\n background-color: transparent;\n border: 2px solid var(--primary-base);\n overflow: hidden;\n border-radius: 12px;\n padding: 0px;\n box-shadow: none;\n ::slotted(*) {\n border-radius: 0px !important;\n }\n &:hover {\n border: 2px solid var(--primary-lighter) !important;\n }\n\n &.light {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--primary-base);\n ::slotted(*) {\n border-radius: 12px !important;\n }\n &:hover {\n border-color: var(--primary-lighter) !important;\n }\n }\n &.dark {\n background-color: transparent;\n\n border: 2px solid var(--neutral-purewhite);\n\n &:hover {\n border: 0;\n }\n }\n &.hasPadding {\n padding: 20px;\n\n ::slotted(*) {\n border-radius: 4px !important;\n }\n }\n }\n}\n","import { Component, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-card',\n styleUrl: 'cura-card.scss',\n shadow: true,\n})\nexport class CuraCard {\n /**\n * Determines whether the card should have padding.\n * @type {boolean}\n * @default false\n */\n @Prop({ mutable: true }) hasPadding: boolean = true;\n\n /**\n * Determines whether the card should have a shadow effect.\n * @type {boolean}\n * @default false\n */\n @Prop({ mutable: true }) hasShadow: boolean = false;\n\n /**\n * Sets the type of the card background.\n * - 'solid': A solid background.\n * - 'transparent': A transparent background.\n * @type {'solid' | 'transparent'}\n * @default 'solid'\n */\n @Prop({ mutable: true }) type: 'solid' | 'transparent' = 'solid';\n\n /**\n * Sets the color mode of the card.\n * - 'light': Light mode for the card.\n * - 'dark': Dark mode for the card.\n * @type {'light' | 'dark'}\n * @default 'light'\n */\n @Prop({ mutable: true }) colorMode: 'light' | 'dark' = 'light';\n\n /**\n * The URL that the card should link to (if set).\n * If not set, the card acts as a normal card.\n * @type {string | undefined}\n */\n @Prop({ mutable: true, reflect: true }) href?: string;\n\n /**\n * The target attribute for the link.\n * Applicable only if `href` is set.\n * @type {string}\n * @default '_self'\n */\n @Prop({ reflect: true }) target: string = '_self';\n\n @State() styles: any = {};\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-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);\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['--neutral-black'] = window.CuraAPI.theme.colors.getColor(`neutral-black`);\n this.styles['--neutral-black-shadow'] = window.CuraAPI.theme.colors.getColor(`neutral-black`, 0.16);\n this.styles['--primary-lighter'] = window.CuraAPI.theme.colors.getColor(`primary-lighter`);\n this.styles['--primary-base'] = window.CuraAPI.theme.colors.getColor(`primary-base`);\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 }\n\n getClasses() {\n const classes = {};\n classes[this.type] = true;\n classes[`cardLink`] = this.href;\n classes[this.colorMode] = true;\n classes[`hasPadding`] = this.hasPadding;\n classes[`hasShadow`] = this.hasShadow;\n return classes;\n }\n\n render() {\n return (\n <Host role={this.href ? 'link' : 'div'}>\n {this.href ? (\n <a class={this.getClasses()} target={this.target} style={this.styles} href={this.href}>\n <slot></slot>\n </a>\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QAAA,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI;AAC9B,QAAA,OAAO,CAAC,CAAY,UAAA,CAAA,CAAC,GAAG,IAAI,CAAC,UAAU;AACvC,QAAA,OAAO,CAAC,CAAW,SAAA,CAAA,CAAC,GAAG,IAAI,CAAC,SAAS;AACrC,QAAA,OAAO,OAAO;;IAGhB,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,KAAK,IACnC,IAAI,CAAC,IAAI,IACR,CAAG,CAAA,GAAA,EAAA,EAAA,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAA,EACnF,CAAA,CAAA,MAAA,EAAA,IAAA,CAAa,CACX,KAEJ,WAAK,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAA,EAC/C,CAAA,CAAA,MAAA,EAAA,IAAA,CAAa,CACT,CACP,CACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraCard","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/cura-card/cura-card.scss?tag=cura-card&encapsulation=shadow","src/components/cura-card/cura-card.tsx"],"sourcesContent":["@import '../../../src/scss/mixins/shadows.scss';\n\n:host {\n display: block;\n box-sizing: border-box;\n font-size: var(--font-size);\n font-family: var(--font-family);\n ::slotted(*) {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: var(--font-size);\n font-family: var(--font-family);\n }\n \n}\n\na {\n display: block;\n text-decoration: none !important;\n color: inherit;\n}\n.solid {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--neutral-base);\n border-radius: 12px;\n overflow: hidden;\n padding: 0px;\n box-shadow: none;\n\n ::slotted(*) {\n \n border-radius: 0 ;\n }\n &.hasPadding {\n padding: 20px;\n ::slotted(*) {\n border-radius: 4px !important;\n }\n }\n\n &.hasShadow {\n border: 2px solid var(--neutral-base);\n\n @include shadow-level2(--neutral-black-shadow);\n }\n\n &.cardLink {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--primary-base);\n border-radius: 12px;\n padding: 0px;\n box-shadow: none;\n cursor: pointer;\n\n ::slotted(*) {\n border-radius: 0px;\n }\n &:hover {\n border: 2px solid var(--primary-lighter) !important;\n }\n &.hasPadding {\n padding: 20px;\n ::slotted(*) {\n border-radius: 4px !important;\n }\n &:hover {\n border: 2px solid var(--primary-lighter) !important;\n }\n }\n\n &.hasShadow {\n border: 2px solid var(--primary-base);\n\n @include shadow-level3(--neutral-black-shadow);\n }\n &:not(.hasPadding).hasShadow {\n ::slotted(*) {\n border-radius: 12px !important;\n }\n }\n\n &.dark {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--neutral-purewhite);\n &:hover {\n border: 2px solid var(--primary-lighter);\n }\n }\n }\n}\n\n.transparent {\n background-color: transparent;\n border: 0;\n border-radius: 12px;\n padding: 0px;\n overflow: hidden;\n ::slotted(*) {\n border-radius: 12px;\n }\n\n &.hasPadding {\n padding: 20px;\n\n ::slotted(*) {\n border-radius: 4px;\n }\n }\n\n &.cardLink {\n background-color: transparent;\n border: 2px solid var(--primary-base);\n overflow: hidden;\n border-radius: 12px;\n padding: 0px;\n box-shadow: none;\n ::slotted(*) {\n border-radius: 0px !important;\n }\n &:hover {\n border: 2px solid var(--primary-lighter) !important;\n }\n\n &.light {\n background-color: var(--neutral-purewhite);\n border: 2px solid var(--primary-base);\n ::slotted(*) {\n border-radius: 12px !important;\n }\n &:hover {\n border-color: var(--primary-lighter) !important;\n }\n }\n &.dark {\n background-color: transparent;\n\n border: 2px solid var(--neutral-purewhite);\n\n &:hover {\n border: 0;\n }\n }\n &.hasPadding {\n padding: 20px;\n\n ::slotted(*) {\n border-radius: 4px !important;\n }\n }\n }\n}\n","import { Component, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-card',\n styleUrl: 'cura-card.scss',\n shadow: true,\n})\nexport class CuraCard {\n /**\n * Determines whether the card should have padding.\n * @type {boolean}\n * @default false\n */\n @Prop({ mutable: true }) hasPadding: boolean = true;\n\n /**\n * Determines whether the card should have a shadow effect.\n * @type {boolean}\n * @default false\n */\n @Prop({ mutable: true }) hasShadow: boolean = false;\n\n /**\n * Sets the type of the card background.\n * - 'solid': A solid background.\n * - 'transparent': A transparent background.\n * @type {'solid' | 'transparent'}\n * @default 'solid'\n */\n @Prop({ mutable: true }) type: 'solid' | 'transparent' = 'solid';\n\n /**\n * Sets the color mode of the card.\n * - 'light': Light mode for the card.\n * - 'dark': Dark mode for the card.\n * @type {'light' | 'dark'}\n * @default 'light'\n */\n @Prop({ mutable: true }) colorMode: 'light' | 'dark' = 'light';\n\n /**\n * The URL that the card should link to (if set).\n * If not set, the card acts as a normal card.\n * @type {string | undefined}\n */\n @Prop({ mutable: true, reflect: true }) href?: string;\n\n /**\n * The target attribute for the link.\n * Applicable only if `href` is set.\n * @type {string}\n * @default '_self'\n */\n @Prop({ reflect: true }) target: string = '_self';\n\n @State() styles: any = {};\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-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);\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['--neutral-black'] = window.CuraAPI.theme.colors.getColor(`neutral-black`);\n this.styles['--neutral-black-shadow'] = window.CuraAPI.theme.colors.getColor(`neutral-black`, 0.16);\n this.styles['--primary-lighter'] = window.CuraAPI.theme.colors.getColor(`primary-lighter`);\n this.styles['--primary-base'] = window.CuraAPI.theme.colors.getColor(`primary-base`);\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 }\n\n getClasses() {\n const classes = {};\n classes[this.type] = true;\n classes[`cardLink`] = this.href;\n classes[this.colorMode] = true;\n classes[`hasPadding`] = this.hasPadding;\n classes[`hasShadow`] = this.hasShadow;\n return classes;\n }\n\n render() {\n return (\n <Host role={this.href ? 'link' : 'div'}>\n {this.href ? (\n <a class={this.getClasses()} target={this.target} style={this.styles} href={this.href}>\n <slot></slot>\n </a>\n ) : (\n <div class={this.getClasses()} style={this.styles}>\n <slot></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,46 +1,98 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { f as formsSizes } from './cura-forms.definitions.js';
3
- import { d as defineCustomElement$4 } from './cura-icon2.js';
4
- import { d as defineCustomElement$3 } from './cura-label2.js';
5
- import { d as defineCustomElement$2 } from './cura-paragraph2.js';
1
+ import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-D1cPOZpG.js';
2
+ import { f as formsSizes } from './p-Dot54hbB.js';
3
+ import { d as defineCustomElement$4 } from './p-B5aO1chh.js';
4
+ import { d as defineCustomElement$3 } from './p-DR1RHrEX.js';
5
+ import { d as defineCustomElement$2 } from './p-DI4g-ZH4.js';
6
6
 
7
7
  const curaCheckboxCss = "@charset \"UTF-8\";:host{display:block;box-sizing:border-box;min-width:0}.container{display:flex;align-items:center;flex-direction:row-reverse;justify-content:start;gap:var(--gap);cursor:pointer}.position.container{flex-direction:row}.position .label-wrapper{justify-content:end}.position .message{text-align:right}.position .label{order:1}.info{display:flex;flex-direction:column;overflow:hidden}.label.textoverflow-single{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;min-width:0;max-width:100%}.label-wrapper{display:flex;justify-content:start;align-items:center;gap:5px}.control{width:fit-content;cursor:pointer;position:relative}.checkbox{appearance:none;border:2px solid var(--neutral-base-neutral-medium);border-radius:4px;background:var(--neutral-black-neutral-purewhite);flex:1 0;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;box-sizing:border-box;width:var(--size);height:var(--size);flex:0 0 var(--size)}.icon{position:absolute;display:flex;opacity:0;transition:opacity 0.3s}.checkbox:focus{border-color:var(--info-base) !important}.disabled .checkbox{background:var(--neutral-black-neutral-white);border-color:var(--neutral-darker-neutral-base);cursor:not-allowed}.disabled .checkbox:hover{border-color:var(--neutral-darker-neutral-base) !important}.disabled.checked .checkbox,.disabled.indeterminate .checkbox{background:var(--neutral-black-neutral-white);border-color:var(--neutral-darker-neutral-base)}.disabled.checked .checkbox:hover,.disabled.indeterminate .checkbox:hover{border-color:var(--neutral-base-neutral-white);background:var(--primary-base-neutral-white)}.disabled .checkbox:focus{border-color:var(--neutral-darker-neutral-base) !important}.checked .checkbox{border-color:var(--color-dark);background:var(--color-base)}.checked .checkbox:hover{border-color:var(--color-base) !important;background:var(--color-light)}.indeterminate .checkbox{border-color:var(--color-base);background:var(--color-light)}.indeterminate .checkbox:hover{border-color:var(--color-dark) !important;background:var(--color-base)}.checked .icon,.indeterminate .icon{opacity:1}:not(.disabled):not(.checked):not(.indeterminate) .checkbox:hover{border-color:var(--neutral-purewhite-neutral-dark)}.success.dark .checkbox{background:var(--neutral-black)}.success .checkbox{border-color:var(--success-base);background:var(--success-lighter)}.success .checkbox:hover{border-color:var(--success-base) !important}.success.checked .checkbox{border-color:var(--success-dark-base);background:var(--success-base-lighter)}.success.checked .checkbox:hover{border-color:var(--success-dark-base)}.error.dark .checkbox{background:var(--neutral-black)}.error .checkbox{border-color:var(--error-base);background:var(--error-lighter)}.error .checkbox:hover{border-color:var(--error-base) !important}.error.checked .checkbox{border-color:var(--error-dark-base);background:var(--error-base-lighter)}.error.checked .checkbox:hover{border-color:var(--error-dark-base)}input{appearance:none;-webkit-appearance:none;-moz-appearance:none}";
8
- const CuraCheckboxStyle0 = curaCheckboxCss;
9
8
 
10
- const CuraCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class CuraCheckbox extends HTMLElement {
9
+ const CuraCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class CuraCheckbox extends H {
11
10
  constructor() {
12
11
  super();
13
12
  this.__registerHost();
14
13
  this.__attachShadow();
15
- this.onchange = createEvent(this, "onchange", 7);
14
+ this.onchange = createEvent(this, "onchange");
16
15
  this.internals = this.attachInternals();
17
- this.isDarkBackground = () => this.background === 'dark';
18
- this.isDarkIconColor = () => this.iconColor === 'dark';
19
- this.handleClick = () => {
20
- if (this.disabled)
21
- return;
22
- this.indeterminate = false;
23
- this.checked = !this.checked;
24
- this.internals.setFormValue(this.value);
25
- this.onchange.emit({ value: this.value, checked: this.checked, indeterminate: this.indeterminate });
26
- };
16
+ /**
17
+ * Reflects the checked state of the checkbox.
18
+ * Mutable property allowing state change.
19
+ */
27
20
  this.checked = false;
21
+ /**
22
+ * Reflects the indeterminate state of the checkbox.
23
+ * Mutable property allowing state change.
24
+ */
28
25
  this.indeterminate = false;
26
+ /**
27
+ * Status of the checkbox.
28
+ * Can be 'error', 'success', or 'default'.
29
+ */
29
30
  this.status = 'default';
31
+ /**
32
+ * Reflects the disabled state of the checkbox.
33
+ */
30
34
  this.disabled = false;
35
+ /**
36
+ * Reflects the required state of the checkbox.
37
+ */
31
38
  this.required = false;
32
- this.label = undefined;
39
+ /**
40
+ * Specifies the tabindex of the checkbox.
41
+ */
33
42
  this.ontabindex = 0;
43
+ /**
44
+ * Position of the label relative to the checkbox.
45
+ * Can be 'left' or 'right'.
46
+ */
34
47
  this.position = 'left';
35
- this.value = undefined;
36
- this.name = undefined;
48
+ /**
49
+ * Size of the checkbox.
50
+ * Can be 'small', 'medium', or 'large'.
51
+ */
37
52
  this.size = 'medium';
53
+ /**
54
+ * Background theme of the checkbox.
55
+ * Can be 'dark' or 'light'.
56
+ */
38
57
  this.background = 'light';
58
+ /**
59
+ * iconColor theme of the checkbox.
60
+ * Can be 'dark' or 'light'.
61
+ */
39
62
  this.iconColor = 'dark';
63
+ /**
64
+ * Color theme of the checkbox.
65
+ */
40
66
  this.color = 'accent';
67
+ /**
68
+ * Controls how the label text should handle overflow.
69
+ * - `'none'`: No overflow handling; the label displays normally.
70
+ * - `'single'`: The label will be truncated with an ellipsis if it overflows a single line.
71
+ * - `string`: Custom overflow handling mode.
72
+ *
73
+ * @default 'none'
74
+ */
41
75
  this.overflowLabel = 'none';
76
+ /**
77
+ * Controls how the helper text should handle overflow.
78
+ * - `'none'`: No overflow handling; the label displays normally.
79
+ * - `'single'`: The label will be truncated with an ellipsis if it overflows a single line.
80
+ * - `string`: Custom overflow handling mode.
81
+ *
82
+ * @default 'none'
83
+ */
42
84
  this.overflowHelper = 'none';
43
85
  this.styles = {};
86
+ this.isDarkBackground = () => this.background === 'dark';
87
+ this.isDarkIconColor = () => this.iconColor === 'dark';
88
+ this.handleClick = () => {
89
+ if (this.disabled)
90
+ return;
91
+ this.indeterminate = false;
92
+ this.checked = !this.checked;
93
+ this.internals.setFormValue(this.value);
94
+ this.onchange.emit({ value: this.value, checked: this.checked, indeterminate: this.indeterminate });
95
+ };
44
96
  }
45
97
  sizeHandler() {
46
98
  this.styles = Object.assign(Object.assign({}, this.styles), { '--size': `${formsSizes[this.size].size}px`, '--gap': `${formsSizes[this.size].gap}px` });
@@ -171,7 +223,7 @@ const CuraCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class CuraCheckbox exten
171
223
  "background": ["setColors", "assignColor"],
172
224
  "iconColor": ["assignColor"]
173
225
  }; }
174
- static get style() { return CuraCheckboxStyle0; }
226
+ static get style() { return curaCheckboxCss; }
175
227
  }, [65, "cura-checkbox", {
176
228
  "checked": [1540],
177
229
  "indeterminate": [1540],
@@ -229,5 +281,6 @@ const CuraCheckbox = CuraCheckbox$1;
229
281
  const defineCustomElement = defineCustomElement$1;
230
282
 
231
283
  export { CuraCheckbox, defineCustomElement };
284
+ //# sourceMappingURL=cura-checkbox.js.map
232
285
 
233
286
  //# sourceMappingURL=cura-checkbox.js.map