@rededor/cura 1.4.0-alpha.1 → 1.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/cjs/{cura-accordion_12.cjs.entry.js → cura-accordion_13.cjs.entry.js} +78 -17
  2. package/dist/cjs/cura-accordion_13.cjs.entry.js.map +1 -0
  3. package/dist/cjs/cura-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/cura-avatar.cjs.entry.js +1 -1
  5. package/dist/cjs/cura-badge-counter.cjs.entry.js +63 -0
  6. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -0
  7. package/dist/cjs/cura-badge-distance.cjs.entry.js +1 -1
  8. package/dist/cjs/cura-badge-dot.cjs.entry.js +44 -0
  9. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -0
  10. package/dist/cjs/cura-badge-pill.cjs.entry.js +84 -0
  11. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -0
  12. package/dist/cjs/cura-button-outline.cjs.entry.js +1 -1
  13. package/dist/cjs/cura-button-select.cjs.entry.js +2 -11
  14. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  15. package/dist/cjs/cura-button-transparent.cjs.entry.js +1 -1
  16. package/dist/cjs/cura-calendar.cjs.entry.js +1 -1
  17. package/dist/cjs/cura-card.cjs.entry.js +1 -1
  18. package/dist/cjs/cura-checkbox.cjs.entry.js +1 -1
  19. package/dist/cjs/cura-display.cjs.entry.js +1 -1
  20. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +1 -1
  21. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +2 -2
  22. package/dist/cjs/cura-dropdown-search.cjs.entry.js +27 -21
  23. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
  24. package/dist/cjs/{cura-icon.definitions-8d714f6a.js → cura-icon.definitions-5223028b.js} +2 -4
  25. package/dist/cjs/cura-icon.definitions-5223028b.js.map +1 -0
  26. package/dist/cjs/cura-icons-view.cjs.entry.js +2 -5
  27. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  28. package/dist/cjs/cura-input-date.cjs.entry.js +1 -1
  29. package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +98 -0
  31. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +1 -0
  32. package/dist/cjs/cura-radio.cjs.entry.js +1 -1
  33. package/dist/cjs/cura-stepper.cjs.entry.js +123 -0
  34. package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -0
  35. package/dist/cjs/cura-switch.cjs.entry.js +1 -1
  36. package/dist/cjs/cura-toast.cjs.entry.js +1 -1
  37. package/dist/cjs/cura-tooltip.cjs.entry.js +9 -8
  38. package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
  39. package/dist/cjs/cura.cjs.js +1 -1
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/collection/collection-manifest.json +6 -1
  42. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.css +51 -0
  43. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +149 -0
  44. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -0
  45. package/dist/collection/components/badges/{cura-badge-number/cura-badge-number.stories.js → cura-badge-counter/cura-badge-counter.stories.js} +33 -13
  46. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js.map +1 -0
  47. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +1 -1
  48. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.css +61 -0
  49. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +108 -0
  50. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +1 -0
  51. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js +65 -0
  52. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js.map +1 -0
  53. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.css +73 -0
  54. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +220 -0
  55. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -0
  56. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +126 -0
  57. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +1 -0
  58. package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
  59. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
  60. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +5 -14
  61. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  62. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
  63. package/dist/collection/components/cura-alert/cura-alert.js +1 -1
  64. package/dist/collection/components/cura-avatar/cura-avatar.js +1 -1
  65. package/dist/collection/components/cura-calendar/cura-calendar.js +1 -1
  66. package/dist/collection/components/cura-card/cura-card.js +1 -1
  67. package/dist/collection/components/cura-icon/cura-icon.definitions.js +1 -2
  68. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -1
  69. package/dist/collection/components/cura-icon/cura-icon.js +2 -6
  70. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  71. package/dist/collection/components/cura-icon/cura-icon.stories.js +1 -3
  72. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
  73. package/dist/collection/components/cura-icons-view/cura-icons-view.js +2 -5
  74. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  75. package/dist/collection/components/cura-modal/cura-modal.css +7 -5
  76. package/dist/collection/components/cura-modal/cura-modal.js +129 -10
  77. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  78. package/dist/collection/components/cura-modal/cura-modal.stories.js +72 -18
  79. package/dist/collection/components/cura-modal/cura-modal.stories.js.map +1 -1
  80. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
  81. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.css +15 -0
  82. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +121 -0
  83. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +1 -0
  84. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.css +10 -0
  85. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +153 -0
  86. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +1 -0
  87. package/dist/collection/components/cura-stepper/cura-stepper.css +72 -0
  88. package/dist/collection/components/cura-stepper/cura-stepper.js +227 -0
  89. package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -0
  90. package/dist/collection/components/cura-stepper/cura-stepper.stories.js +97 -0
  91. package/dist/collection/components/cura-stepper/cura-stepper.stories.js.map +1 -0
  92. package/dist/collection/components/cura-stepper/stepper.type.js +2 -0
  93. package/dist/collection/components/cura-stepper/stepper.type.js.map +1 -0
  94. package/dist/collection/components/cura-toast/cura-toast.js +1 -1
  95. package/dist/collection/components/cura-tooltip/cura-tooltip.js +9 -8
  96. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +1 -1
  97. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
  98. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +2 -2
  99. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +1 -1
  100. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +4 -2
  101. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +28 -21
  102. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  103. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
  104. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  105. package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
  106. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  107. package/dist/collection/components/forms/cura-select/cura-select.stories.js +1 -1
  108. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -1
  109. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  110. package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
  111. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  112. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  113. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  114. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  115. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  116. package/dist/collection/utils/utils.js +1 -0
  117. package/dist/collection/utils/utils.js.map +1 -1
  118. package/dist/components/cura-alert.js +1 -1
  119. package/dist/components/cura-avatar.js +1 -1
  120. package/dist/components/cura-badge-counter.d.ts +11 -0
  121. package/dist/components/cura-badge-counter.js +8 -0
  122. package/dist/components/cura-badge-counter.js.map +1 -0
  123. package/dist/components/cura-badge-counter2.js +90 -0
  124. package/dist/components/cura-badge-counter2.js.map +1 -0
  125. package/dist/components/cura-badge-distance.js +1 -1
  126. package/dist/components/cura-badge-dot.d.ts +11 -0
  127. package/dist/components/cura-badge-dot.js +63 -0
  128. package/dist/components/cura-badge-dot.js.map +1 -0
  129. package/dist/components/cura-badge-pill.d.ts +11 -0
  130. package/dist/components/cura-badge-pill.js +8 -0
  131. package/dist/components/cura-badge-pill.js.map +1 -0
  132. package/dist/components/cura-badge-pill2.js +118 -0
  133. package/dist/components/cura-badge-pill2.js.map +1 -0
  134. package/dist/components/cura-button-outline.js +1 -1
  135. package/dist/components/cura-button-select.js +6 -15
  136. package/dist/components/cura-button-select.js.map +1 -1
  137. package/dist/components/cura-button-transparent2.js +1 -1
  138. package/dist/components/cura-button.js +1 -1
  139. package/dist/components/cura-calendar2.js +1 -1
  140. package/dist/components/cura-card.js +1 -1
  141. package/dist/components/cura-checkbox.js +1 -1
  142. package/dist/components/cura-display.js +1 -1
  143. package/dist/components/cura-dropdown-search-option-title.js +1 -1
  144. package/dist/components/cura-dropdown-search-option.js +2 -2
  145. package/dist/components/cura-dropdown-search.js +29 -22
  146. package/dist/components/cura-dropdown-search.js.map +1 -1
  147. package/dist/components/cura-heading2.js +1 -1
  148. package/dist/components/cura-icon2.js +3 -8
  149. package/dist/components/cura-icon2.js.map +1 -1
  150. package/dist/components/cura-icons-view.js +7 -16
  151. package/dist/components/cura-icons-view.js.map +1 -1
  152. package/dist/components/cura-input-date.js +1 -1
  153. package/dist/components/cura-label2.js +1 -1
  154. package/dist/components/cura-loader-bar2.js +1 -1
  155. package/dist/components/cura-loader-circle2.js +1 -1
  156. package/dist/components/cura-modal.js +40 -9
  157. package/dist/components/cura-modal.js.map +1 -1
  158. package/dist/components/cura-page-template.js +1 -1
  159. package/dist/components/cura-paragraph2.js +1 -1
  160. package/dist/components/{cura-badge-number.d.ts → cura-progress-bar.d.ts} +4 -4
  161. package/dist/components/cura-progress-bar.js +8 -0
  162. package/dist/components/cura-progress-bar.js.map +1 -0
  163. package/dist/components/cura-progress-bar2.js +48 -0
  164. package/dist/components/cura-progress-bar2.js.map +1 -0
  165. package/dist/components/cura-radio.js +1 -1
  166. package/dist/components/cura-select-option2.js +1 -1
  167. package/dist/components/cura-select2.js +3 -3
  168. package/dist/components/cura-stepper-item.d.ts +11 -0
  169. package/dist/components/cura-stepper-item.js +8 -0
  170. package/dist/components/cura-stepper-item.js.map +1 -0
  171. package/dist/components/cura-stepper-item2.js +116 -0
  172. package/dist/components/cura-stepper-item2.js.map +1 -0
  173. package/dist/components/cura-stepper.d.ts +11 -0
  174. package/dist/components/cura-stepper.js +187 -0
  175. package/dist/components/cura-stepper.js.map +1 -0
  176. package/dist/components/cura-switch.js +1 -1
  177. package/dist/components/cura-toast.js +1 -1
  178. package/dist/components/cura-tooltip.js +9 -8
  179. package/dist/components/cura-tooltip.js.map +1 -1
  180. package/dist/components/index.js +12 -2
  181. package/dist/components/index.js.map +1 -1
  182. package/dist/cura/cura.esm.js +1 -1
  183. package/dist/cura/cura.esm.js.map +1 -1
  184. package/dist/cura/{p-b0451cb3.entry.js → p-04006a3e.entry.js} +2 -2
  185. package/dist/cura/{p-81c66f2b.entry.js → p-0a133399.entry.js} +2 -2
  186. package/dist/cura/{p-01e301d4.entry.js → p-164ddb46.entry.js} +2 -2
  187. package/dist/cura/{p-eea093b2.entry.js → p-235ac0b4.entry.js} +2 -2
  188. package/dist/cura/p-23fa2246.entry.js +2 -0
  189. package/dist/cura/p-23fa2246.entry.js.map +1 -0
  190. package/dist/cura/p-2af6216a.entry.js +2 -0
  191. package/dist/cura/p-2af6216a.entry.js.map +1 -0
  192. package/dist/cura/{p-ed839f1e.entry.js → p-3c0931d3.entry.js} +2 -2
  193. package/dist/cura/{p-e5b0dd74.entry.js → p-46b21329.entry.js} +2 -2
  194. package/dist/cura/p-48f9289b.js +2 -0
  195. package/dist/cura/p-48f9289b.js.map +1 -0
  196. package/dist/cura/{p-f375a612.entry.js → p-4aefe237.entry.js} +2 -2
  197. package/dist/cura/p-529332d3.entry.js +2 -0
  198. package/dist/cura/p-529332d3.entry.js.map +1 -0
  199. package/dist/cura/{p-5bb8302c.entry.js → p-545e8e55.entry.js} +2 -2
  200. package/dist/cura/p-545e8e55.entry.js.map +1 -0
  201. package/dist/cura/p-557b90c4.entry.js +2 -0
  202. package/dist/cura/p-557b90c4.entry.js.map +1 -0
  203. package/dist/cura/p-6624108e.entry.js +2 -0
  204. package/dist/cura/p-6b627841.entry.js +2 -0
  205. package/dist/cura/p-6b627841.entry.js.map +1 -0
  206. package/dist/cura/{p-bfb5e9e1.entry.js → p-6e4f4fbf.entry.js} +2 -2
  207. package/dist/cura/p-6f1a3fe5.entry.js +2 -0
  208. package/dist/cura/p-6f1a3fe5.entry.js.map +1 -0
  209. package/dist/cura/p-7ba80d78.entry.js +2 -0
  210. package/dist/cura/p-7ba80d78.entry.js.map +1 -0
  211. package/dist/cura/p-8622c492.entry.js +2 -0
  212. package/dist/cura/p-8622c492.entry.js.map +1 -0
  213. package/dist/cura/{p-1f53580a.entry.js → p-a5af4225.entry.js} +2 -2
  214. package/dist/cura/{p-075b02de.entry.js → p-a7c60a4e.entry.js} +2 -2
  215. package/dist/cura/{p-eda28278.entry.js → p-b3e93e74.entry.js} +2 -2
  216. package/dist/cura/{p-a7ecea4a.entry.js → p-bce10f9b.entry.js} +2 -2
  217. package/dist/cura/p-cfbe2bce.entry.js +2 -0
  218. package/dist/cura/p-cfbe2bce.entry.js.map +1 -0
  219. package/dist/cura/{p-0e28f1c8.entry.js → p-d13e3295.entry.js} +2 -2
  220. package/dist/cura/{p-7853ab16.entry.js → p-ec7876d3.entry.js} +2 -2
  221. package/dist/cura/{p-dbd9eab3.entry.js → p-f96b0923.entry.js} +2 -2
  222. package/dist/esm/{cura-accordion_12.entry.js → cura-accordion_13.entry.js} +78 -18
  223. package/dist/esm/cura-accordion_13.entry.js.map +1 -0
  224. package/dist/esm/cura-alert.entry.js +1 -1
  225. package/dist/esm/cura-avatar.entry.js +1 -1
  226. package/dist/esm/cura-badge-counter.entry.js +59 -0
  227. package/dist/esm/cura-badge-counter.entry.js.map +1 -0
  228. package/dist/esm/cura-badge-distance.entry.js +1 -1
  229. package/dist/esm/cura-badge-dot.entry.js +40 -0
  230. package/dist/esm/cura-badge-dot.entry.js.map +1 -0
  231. package/dist/esm/cura-badge-pill.entry.js +80 -0
  232. package/dist/esm/cura-badge-pill.entry.js.map +1 -0
  233. package/dist/esm/cura-button-outline.entry.js +1 -1
  234. package/dist/esm/cura-button-select.entry.js +2 -11
  235. package/dist/esm/cura-button-select.entry.js.map +1 -1
  236. package/dist/esm/cura-button-transparent.entry.js +1 -1
  237. package/dist/esm/cura-calendar.entry.js +1 -1
  238. package/dist/esm/cura-card.entry.js +1 -1
  239. package/dist/esm/cura-checkbox.entry.js +1 -1
  240. package/dist/esm/cura-display.entry.js +1 -1
  241. package/dist/esm/cura-dropdown-search-option-title.entry.js +1 -1
  242. package/dist/esm/cura-dropdown-search-option.entry.js +2 -2
  243. package/dist/esm/cura-dropdown-search.entry.js +27 -21
  244. package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
  245. package/dist/esm/cura-icon.definitions-a892c0e2.js +17 -0
  246. package/dist/esm/cura-icon.definitions-a892c0e2.js.map +1 -0
  247. package/dist/esm/cura-icons-view.entry.js +2 -5
  248. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  249. package/dist/esm/cura-input-date.entry.js +1 -1
  250. package/dist/esm/cura-loader-bar.entry.js +1 -1
  251. package/dist/esm/cura-progress-bar_2.entry.js +93 -0
  252. package/dist/esm/cura-progress-bar_2.entry.js.map +1 -0
  253. package/dist/esm/cura-radio.entry.js +1 -1
  254. package/dist/esm/cura-stepper.entry.js +119 -0
  255. package/dist/esm/cura-stepper.entry.js.map +1 -0
  256. package/dist/esm/cura-switch.entry.js +1 -1
  257. package/dist/esm/cura-toast.entry.js +1 -1
  258. package/dist/esm/cura-tooltip.entry.js +9 -8
  259. package/dist/esm/cura-tooltip.entry.js.map +1 -1
  260. package/dist/esm/cura.js +1 -1
  261. package/dist/esm/loader.js +1 -1
  262. package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.d.ts +30 -0
  263. package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.stories.d.ts +64 -0
  264. package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.d.ts +24 -0
  265. package/dist/types/components/badges/{cura-badge-number/cura-badge-number.stories.d.ts → cura-badge-dot/cura-badge-dot.stories.d.ts} +20 -6
  266. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +44 -0
  267. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.stories.d.ts +119 -0
  268. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +1 -2
  269. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +0 -1
  270. package/dist/types/components/cura-modal/cura-modal.d.ts +32 -3
  271. package/dist/types/components/cura-modal/cura-modal.stories.d.ts +62 -3
  272. package/dist/types/components/cura-stepper/cura-progress-bar/cura-progress-bar.d.ts +23 -0
  273. package/dist/types/components/cura-stepper/cura-stepper-item/cura-stepper-item.d.ts +60 -0
  274. package/dist/types/components/cura-stepper/cura-stepper.d.ts +62 -0
  275. package/dist/types/components/cura-stepper/cura-stepper.stories.d.ts +77 -0
  276. package/dist/types/components/cura-stepper/stepper.type.d.ts +4 -0
  277. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +3 -1
  278. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +1 -1
  279. package/dist/types/components.d.ts +344 -17
  280. package/dist/types/utils/utils.d.ts +1 -0
  281. package/package.json +2 -2
  282. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +0 -1
  283. package/dist/cjs/cura-badge-number.cjs.entry.js +0 -29
  284. package/dist/cjs/cura-badge-number.cjs.entry.js.map +0 -1
  285. package/dist/cjs/cura-icon.definitions-8d714f6a.js.map +0 -1
  286. package/dist/cjs/cura-modal.cjs.entry.js +0 -50
  287. package/dist/cjs/cura-modal.cjs.entry.js.map +0 -1
  288. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.css +0 -28
  289. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js +0 -66
  290. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js.map +0 -1
  291. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js.map +0 -1
  292. package/dist/components/cura-badge-number.js +0 -8
  293. package/dist/components/cura-badge-number.js.map +0 -1
  294. package/dist/components/cura-badge-number2.js +0 -49
  295. package/dist/components/cura-badge-number2.js.map +0 -1
  296. package/dist/cura/p-0308cf6b.entry.js +0 -2
  297. package/dist/cura/p-0308cf6b.entry.js.map +0 -1
  298. package/dist/cura/p-3536c96b.entry.js +0 -2
  299. package/dist/cura/p-3536c96b.entry.js.map +0 -1
  300. package/dist/cura/p-5bb8302c.entry.js.map +0 -1
  301. package/dist/cura/p-71a2dcef.entry.js +0 -2
  302. package/dist/cura/p-71a2dcef.entry.js.map +0 -1
  303. package/dist/cura/p-9a7e3f48.entry.js +0 -2
  304. package/dist/cura/p-9a7e3f48.entry.js.map +0 -1
  305. package/dist/cura/p-a7221f0c.js +0 -2
  306. package/dist/cura/p-a7221f0c.js.map +0 -1
  307. package/dist/cura/p-d635501a.entry.js +0 -2
  308. package/dist/cura/p-d635501a.entry.js.map +0 -1
  309. package/dist/cura/p-deadde8d.entry.js +0 -2
  310. package/dist/cura/p-deadde8d.entry.js.map +0 -1
  311. package/dist/cura/p-ebed83d1.entry.js +0 -2
  312. package/dist/esm/cura-accordion_12.entry.js.map +0 -1
  313. package/dist/esm/cura-badge-number.entry.js +0 -25
  314. package/dist/esm/cura-badge-number.entry.js.map +0 -1
  315. package/dist/esm/cura-icon.definitions-aaa4e80f.js +0 -18
  316. package/dist/esm/cura-icon.definitions-aaa4e80f.js.map +0 -1
  317. package/dist/esm/cura-modal.entry.js +0 -46
  318. package/dist/esm/cura-modal.entry.js.map +0 -1
  319. package/dist/types/components/badges/cura-badge-number/cura-badge-number.d.ts +0 -8
  320. /package/dist/cura/{p-b0451cb3.entry.js.map → p-04006a3e.entry.js.map} +0 -0
  321. /package/dist/cura/{p-81c66f2b.entry.js.map → p-0a133399.entry.js.map} +0 -0
  322. /package/dist/cura/{p-01e301d4.entry.js.map → p-164ddb46.entry.js.map} +0 -0
  323. /package/dist/cura/{p-eea093b2.entry.js.map → p-235ac0b4.entry.js.map} +0 -0
  324. /package/dist/cura/{p-ed839f1e.entry.js.map → p-3c0931d3.entry.js.map} +0 -0
  325. /package/dist/cura/{p-e5b0dd74.entry.js.map → p-46b21329.entry.js.map} +0 -0
  326. /package/dist/cura/{p-f375a612.entry.js.map → p-4aefe237.entry.js.map} +0 -0
  327. /package/dist/cura/{p-ebed83d1.entry.js.map → p-6624108e.entry.js.map} +0 -0
  328. /package/dist/cura/{p-bfb5e9e1.entry.js.map → p-6e4f4fbf.entry.js.map} +0 -0
  329. /package/dist/cura/{p-1f53580a.entry.js.map → p-a5af4225.entry.js.map} +0 -0
  330. /package/dist/cura/{p-075b02de.entry.js.map → p-a7c60a4e.entry.js.map} +0 -0
  331. /package/dist/cura/{p-eda28278.entry.js.map → p-b3e93e74.entry.js.map} +0 -0
  332. /package/dist/cura/{p-a7ecea4a.entry.js.map → p-bce10f9b.entry.js.map} +0 -0
  333. /package/dist/cura/{p-0e28f1c8.entry.js.map → p-d13e3295.entry.js.map} +0 -0
  334. /package/dist/cura/{p-7853ab16.entry.js.map → p-ec7876d3.entry.js.map} +0 -0
  335. /package/dist/cura/{p-dbd9eab3.entry.js.map → p-f96b0923.entry.js.map} +0 -0
@@ -50,7 +50,7 @@ const CuraAlert = class {
50
50
  return this.icon ? this.icon : iconMapping[this.type];
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: 'e8998ea87d6a1342f6907ac96d2ee73c9f2ef2ad' }, h("div", { key: '917a9c712631eb1f3af2caf3d9d1bbdb7390c239', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: '406ec8e8ebbdcb7b634c26085785fb5e6943c23c', name: this.getNameIcon(), class: "icon-left", size: 16, color: `${this.type}-dark` }), h("div", { key: 'de416db715df6bf4335def85044564e51af97b2d', class: "content" }, this.label ? (h("cura-label", { class: "title", size: "small", color: "neutral-darker", weight: "bold" }, this.label)) : '', h("cura-paragraph", { key: '7c759da9b461769f01facda7b52faac4fad4ff86', class: "text", color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: 'f71f45289c632acbe25c19db15de07b09ec395fe' })), h("slot", { key: 'd46e508a7da7579fc4aed665c9606d1d7a93ceb4', name: "actions" })), this.closeable ?
53
+ return (h(Host, { key: 'a0b22404673b1568b9cb937150dda71ce4c99d50' }, h("div", { key: 'c30bf1b97d1e1ffaf334ef3bca6cdd1f081c679c', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: '1bd88c8a19e073d7b9d967d8df38bb74063cd110', name: this.getNameIcon(), class: "icon-left", size: 16, color: `${this.type}-dark` }), h("div", { key: '0df09a27c27c7e1743f7cfb9e71c96b102ff4484', class: "content" }, this.label ? (h("cura-label", { class: "title", size: "small", color: "neutral-darker", weight: "bold" }, this.label)) : '', h("cura-paragraph", { key: '687cc7ab050299f0878c2d10ccd28e92708db85d', class: "text", color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: 'e2d85d40e65029ea71a43aa23e7298d6dcc7efa9' })), h("slot", { key: 'a28fe90c9bfe2b9fb22f196eab7bb2e09e408dbf', name: "actions" })), this.closeable ?
54
54
  (h("cura-icon", { name: "close", size: 16, color: "error-dark", class: "icon-right", onClick: this.handleClose }))
55
55
  : '')));
56
56
  }
@@ -50,7 +50,7 @@ const CuraAvatar = class {
50
50
  this.imageSrc = this.imageSrcDefault || `${this.assetsPath}/images/avatar/patient-default.svg`;
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: '01de93bd7f04abfba6c189c944f71cc75528b187', style: this.hostCSSProperties(), role: "img" }, h("div", { key: '8d34f270a8c70a46678f7ec16d7d210eecc6b43e', class: this.getClasses(), style: this.styles }, h("img", { key: 'c0997bfcdb3468d5017ca5902c76e8ec0e8ea6f9', src: this.imageSrc || this.imageSrcDefault || `${this.assetsPath}/images/avatar/patient-default.svg`, onError: () => this.onSrcError() }))));
53
+ return (h(Host, { key: '467e74004b400e80a2d7f8e1a40cd9d7e782ff8a', style: this.hostCSSProperties(), role: "img" }, h("div", { key: 'c38a163b8aeebd07f8aece7aea9889c336df92a5', class: this.getClasses(), style: this.styles }, h("img", { key: 'a22868d4aae4029afb9b325a5c8f5556fa8984ea', src: this.imageSrc || this.imageSrcDefault || `${this.assetsPath}/images/avatar/patient-default.svg`, onError: () => this.onSrcError() }))));
54
54
  }
55
55
  get host() { return getElement(this); }
56
56
  static get watchers() { return {
@@ -0,0 +1,59 @@
1
+ import { r as registerInstance, h, H as Host } from './index-747aad85.js';
2
+
3
+ const curaBadgeCounterCss = ":host{width:fit-content;display:inline-block;height:calc(var(--base-spacing) * 4px);position:relative}:host .container{display:flex;min-width:calc(var(--base-spacing) * 4px);width:fit-content;height:calc(var(--base-spacing) * 4px);justify-content:center;align-items:center;border-radius:calc(calc(var(--base-spacing) * 4px) / 2);background:var(--background-color);box-sizing:border-box;padding:0 calc(var(--base-spacing) * 1px);position:relative}:host .container.outline,:host .container.transparent{background:transparent !important}:host .container.outline::before{content:\"\";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:1px solid var(--background-color);border-radius:calc(calc(var(--base-spacing) * 4px) / 2)}";
4
+ const CuraBadgeCounterStyle0 = curaBadgeCounterCss;
5
+
6
+ const CuraBadgeNumber = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.theme = window.CuraAPI.theme;
10
+ this.labelColor = 'primary-darker';
11
+ this.bgColorName = 'primary-lighter';
12
+ this.number = undefined;
13
+ this.color = 'primary';
14
+ this.disabled = false;
15
+ this.type = 'solid';
16
+ this.styles = {};
17
+ }
18
+ handleColorChange() {
19
+ this.setColors();
20
+ }
21
+ setColors() {
22
+ const color = this.color.toLowerCase();
23
+ /** type outline and transparent */
24
+ if (this.type === 'outline' || this.type === 'transparent') {
25
+ this.bgColorName = this.disabled ? `neutral-medium` : `${color}-dark`;
26
+ this.labelColor = this.bgColorName;
27
+ /** type solid - default */
28
+ }
29
+ else {
30
+ this.bgColorName = color === 'neutral' || this.disabled ? `neutral-pale` : `${color}-lighter`;
31
+ this.labelColor = this.disabled ? 'neutral-medium' : `${color}-dark`;
32
+ }
33
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--background-color': this.theme.colors.getColor(`${this.bgColorName}`) });
34
+ }
35
+ connectedCallback() {
36
+ this.styles['--base-spacing'] = this.theme.spacing.getSpacing();
37
+ this.setColors();
38
+ }
39
+ getClasses() {
40
+ const classes = {
41
+ 'container': true
42
+ };
43
+ classes[this.type.toLowerCase()] = true;
44
+ return classes;
45
+ }
46
+ render() {
47
+ return (h(Host, { key: '8b67f2b913a10de53a519cdafcfbcb140b2adda5' }, this.number && this.number <= 0 ? '' : (h("div", { class: this.getClasses(), style: this.styles }, h("cura-label", { size: "xsmall", "line-height": "none", color: this.labelColor }, this.number >= 100 ? '99+' : this.number)))));
48
+ }
49
+ static get watchers() { return {
50
+ "disabled": ["handleColorChange"],
51
+ "color": ["handleColorChange"],
52
+ "type": ["handleColorChange"]
53
+ }; }
54
+ };
55
+ CuraBadgeNumber.style = CuraBadgeCounterStyle0;
56
+
57
+ export { CuraBadgeNumber as cura_badge_counter };
58
+
59
+ //# sourceMappingURL=cura-badge-counter.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-badge-counter.entry.js","mappings":";;AAAA,MAAM,mBAAmB,GAAG,uvBAAuvB,CAAC;AACpxB,+BAAe,mBAAmB;;MCMrB,eAAe;;;QAE1B,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;QAqB7B,eAAU,GAAG,gBAAgB,CAAC;QAC9B,gBAAW,GAAG,iBAAiB,CAAC;;qBAZR,SAAS;wBAIL,KAAK;oBAI4B,OAAO;sBAElD,EAAE;;IAOpB,iBAAiB;QACf,IAAI,CAAC,SAAS,EAAE,CAAC;KAClB;IAED,SAAS;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;;QAEvC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,EAAE;YAC1D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,GAAG,gBAAgB,GAAG,GAAG,KAAK,OAAO,CAAC;YACtE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;;SAEpC;aAAM;YACL,IAAI,CAAC,WAAW,GAAG,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,GAAG,cAAc,GAAG,GAAG,KAAK,UAAU,CAAC;YAC9F,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,GAAG,gBAAgB,GAAG,GAAG,KAAK,OAAO,CAAC;SACtE;QACD,IAAI,CAAC,MAAM,mCACN,IAAI,CAAC,MAAM,KACd,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,GACxE,CAAA;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAChE,IAAI,CAAC,SAAS,EAAE,CAAC;KAClB;IAED,UAAU;QACR,MAAM,OAAO,GAAG;YACd,WAAW,EAAE,IAAI;SAClB,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC;QACxC,OAAO,OAAO,CAAC;KAChB;IAGD,MAAM;QACJ,QACE,EAAC,IAAI,uDACD,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE,IACtC,WAAK,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,IAC/C,kBAAY,IAAI,EAAC,QAAQ,iBAAa,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,UAAU,IAChE,IAAI,CAAC,MAAM,IAAI,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC,MAAM,CAC9B,CACT,CACL,CACI,EACP;KACH;;;;;;;;;;;","names":[],"sources":["src/components/badges/cura-badge-counter/cura-badge-counter.scss?tag=cura-badge-counter&encapsulation=shadow","src/components/badges/cura-badge-counter/cura-badge-counter.tsx"],"sourcesContent":["@import '../../../scss/mixins/spacing.scss';\n\n:host {\n width: fit-content;\n display: inline-block;\n height: #{$spacing-xxs};\n position: relative;\n\n .container {\n display: flex;\n min-width: #{$spacing-xxs};\n width: fit-content;\n height: #{$spacing-xxs};\n justify-content: center;\n align-items: center;\n border-radius: calc(#{$spacing-xxs} / 2);\n background: var(--background-color);\n box-sizing: border-box;\n padding: 0 #{$spacing-tiny};\n position: relative;\n\n &.outline,\n &.transparent {\n background: transparent !important;\n }\n\n &.outline {\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: 1px solid var(--background-color);\n border-radius: calc(#{$spacing-xxs} / 2);\n }\n }\n }\n\n}\n","import { Component, Host, Prop, h, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'cura-badge-counter',\n styleUrl: 'cura-badge-counter.scss',\n shadow: true,\n})\nexport class CuraBadgeNumber {\n\n theme = window.CuraAPI.theme;\n\n /** Número a ser representado no badge.\n * Apresentará 99+ para números acima desse valor.\n */\n @Prop({ reflect: true }) number: number | null;\n /**\n * Cor fundamental do design system sem profundidade.\n * Ex.: primary (padrão)\n */\n @Prop() color: string = 'primary';\n /**\n * Define o estado do badge como desabilitado ou habilitado.\n */\n @Prop() disabled: boolean = false;\n /**\n * Define o estilo visual entre solid (default), outline ou transparent.\n */\n @Prop() type: 'solid' | 'outline' | 'transparent' | string = 'solid';\n\n @State() styles = {};\n labelColor = 'primary-darker';\n bgColorName = 'primary-lighter';\n\n @Watch(\"disabled\")\n @Watch(\"color\")\n @Watch(\"type\")\n handleColorChange() {\n this.setColors();\n }\n\n setColors() {\n const color = this.color.toLowerCase();\n /** type outline and transparent */\n if (this.type === 'outline' || this.type === 'transparent') {\n this.bgColorName = this.disabled ? `neutral-medium` : `${color}-dark`;\n this.labelColor = this.bgColorName;\n /** type solid - default */\n } else {\n this.bgColorName = color === 'neutral' || this.disabled ? `neutral-pale` : `${color}-lighter`;\n this.labelColor = this.disabled ? 'neutral-medium' : `${color}-dark`;\n }\n this.styles = {\n ...this.styles,\n '--background-color': this.theme.colors.getColor(`${this.bgColorName}`),\n }\n }\n\n connectedCallback() {\n this.styles['--base-spacing'] = this.theme.spacing.getSpacing();\n this.setColors();\n }\n\n getClasses() {\n const classes = {\n 'container': true\n };\n classes[this.type.toLowerCase()] = true;\n return classes;\n }\n\n\n render() {\n return (\n <Host>\n { this.number && this.number <= 0 ? '' : (\n <div class={this.getClasses()} style={this.styles}>\n <cura-label size=\"xsmall\" line-height=\"none\" color={this.labelColor}>\n {this.number >= 100 ? '99+' : this.number}\n </cura-label>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -23,7 +23,7 @@ const CuraDistance = class {
23
23
  this.formatDistance();
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: '7027189b17f2ad1759f9d43bc5dbc9cbb1fe47cc' }, h("div", { key: 'bc57ac9c32c0651469d4bd6ee75d0f97408fde34', class: "container", style: this.styles }, h("cura-label", { key: '913db081273caf2e7d46d92b22e1988cf28ddeb3', size: 'xsmall', weight: 'bold', color: 'neutral-black' }, this.displayDistance, this.isThousandRounded ? 'K' : ''), h("cura-label", { key: '4c327bd9d55466bb2d9c614d9aa0420e42da23ce', size: 'xsmall', weight: 'bold', color: 'neutral-dark' }, this.label))));
26
+ return (h(Host, { key: 'cdc206deecbed2e069befda5d21ddcaf03049afc' }, h("div", { key: 'd22d2b5b97964281e8588fbc17a66f3fddcd875e', class: "container", style: this.styles }, h("cura-label", { key: '0d54ab1ad403ba23a57fb78a422ed8c577cd627e', size: 'xsmall', weight: 'bold', color: 'neutral-black' }, this.displayDistance, this.isThousandRounded ? 'K' : ''), h("cura-label", { key: 'd4929a67484bbfd6d6f3edce82414951ea4778c8', size: 'xsmall', weight: 'bold', color: 'neutral-dark' }, this.label))));
27
27
  }
28
28
  setCssProperties() {
29
29
  this.styles = {
@@ -0,0 +1,40 @@
1
+ import { r as registerInstance, h, H as Host } from './index-747aad85.js';
2
+
3
+ const curaBadgeDotCss = ":host{display:block;position:relative;width:fit-content;height:fit-content}:host .container{width:calc(var(--base-spacing) * 2px);height:calc(var(--base-spacing) * 2px);position:relative;box-sizing:border-box}:host .container::before{width:100%;height:100%;position:absolute;left:0;top:0;content:\"\";box-sizing:border-box;border-radius:50%;border:1px solid var(--color-dark);background:var(--color)}:host .container.disabled::before{background:var(--neutral-pale);border:1px solid var(--neutral-medium)}:host .container.outline::before{background:transparent;border:2px solid var(--color)}:host .container.outline.disabled::before{border:2px solid var(--neutral-medium)}:host .container.transparent::before{background:var(--color-dark);border:none}:host .container.transparent.disabled::before{background:var(--neutral-medium);border:none}";
4
+ const CuraBadgeDotStyle0 = curaBadgeDotCss;
5
+
6
+ const CuraBadgeDot = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.theme = window.CuraAPI.theme;
10
+ this.color = 'primary';
11
+ this.disabled = false;
12
+ this.type = 'solid';
13
+ this.styles = {};
14
+ }
15
+ connectedCallback() {
16
+ this.styles['--base-spacing'] = this.theme.spacing.getSpacing();
17
+ this.styles['--neutral-medium'] = this.theme.colors.getColor('neutral-dark');
18
+ this.styles['--neutral-pale'] = this.theme.colors.getColor('neutral-pale');
19
+ this.setColors();
20
+ }
21
+ setColors() {
22
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color': this.theme.colors.getColor(`${this.color}`), '--color-dark': this.theme.colors.getColor(`${this.color}-dark`) });
23
+ }
24
+ getClasses() {
25
+ const classes = {
26
+ 'container': true,
27
+ 'disabled': this.disabled
28
+ };
29
+ classes[`${this.type}`] = true;
30
+ return classes;
31
+ }
32
+ render() {
33
+ return (h(Host, { key: '00e335977fbb0677db9d95bab901a012ba8a5c06' }, h("div", { key: 'e828743793731c986f37dd6a9f7abdc78b63932b', class: this.getClasses(), style: this.styles })));
34
+ }
35
+ };
36
+ CuraBadgeDot.style = CuraBadgeDotStyle0;
37
+
38
+ export { CuraBadgeDot as cura_badge_dot };
39
+
40
+ //# sourceMappingURL=cura-badge-dot.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-badge-dot.entry.js","mappings":";;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ources":["src/components/badges/cura-badge-dot/cura-badge-dot.scss?tag=cura-badge-dot&encapsulation=shadow","src/components/badges/cura-badge-dot/cura-badge-dot.tsx"],"sourcesContent":["@import \"../../../scss/mixins/spacing.scss\";\n\n:host {\n display: block;\n position: relative;\n width: fit-content;\n height: fit-content;\n\n .container {\n width: #{$spacing-mini};\n height: #{$spacing-mini};\n position: relative;\n box-sizing: border-box;\n\n &::before {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n content: \"\";\n box-sizing: border-box;\n border-radius: 50%;\n border: 1px solid var(--color-dark);\n background: var(--color);\n }\n\n &.disabled::before {\n background: var(--neutral-pale);\n border: 1px solid var(--neutral-medium);\n }\n\n &.outline::before {\n background: transparent;\n border: 2px solid var(--color);\n }\n &.outline.disabled::before {\n border: 2px solid var(--neutral-medium);\n }\n\n &.transparent::before {\n background: var(--color-dark);\n border: none;\n }\n &.transparent.disabled::before {\n background: var(--neutral-medium);\n border: none;\n }\n\n }\n}\n","import { Component, Host, h, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'cura-badge-dot',\n styleUrl: 'cura-badge-dot.scss',\n shadow: true,\n})\nexport class CuraBadgeDot {\n\n theme = window.CuraAPI.theme;\n\n /**\n * Cor fundamental do design system sem profundidade.\n * Ex.: primary (padrão)\n */\n @Prop() color: string = 'primary';\n /**\n * Define o estado do badge como desabilitado ou habilitado.\n */\n @Prop({reflect: true}) disabled: boolean = false;\n /**\n * Define o estilo visual entre solid (default), outline ou transparent.\n */\n @Prop({reflect: true}) type: 'solid' | 'outline' | 'transparent' | string = 'solid';\n\n @State() styles = {};\n\n\n connectedCallback() {\n this.styles['--base-spacing'] = this.theme.spacing.getSpacing();\n this.styles['--neutral-medium'] = this.theme.colors.getColor('neutral-dark');;\n this.styles['--neutral-pale'] = this.theme.colors.getColor('neutral-pale');;\n this.setColors();\n }\n\n setColors() {\n this.styles = {\n ...this.styles,\n '--color': this.theme.colors.getColor(`${this.color}`),\n '--color-dark': this.theme.colors.getColor(`${this.color}-dark`)\n }\n }\n\n getClasses() {\n const classes = {\n 'container': true,\n 'disabled': this.disabled\n };\n classes[`${this.type}`] = true;\n return classes;\n }\n\n render() {\n return (\n <Host>\n <div class={this.getClasses()} style={this.styles}></div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,80 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-747aad85.js';
2
+
3
+ const curaBadgePillCss = ".badge-container{display:flex;align-items:center;justify-content:center;gap:calc(var(--base-spacing) * 1px);padding:calc(var(--base-spacing) * 1px);border-radius:var(--border-radius);font-family:var(--font-family);font-size:var(--font-size);position:relative;box-sizing:border-box;width:fit-content;height:calc(var(--base-spacing) * 5px);min-width:calc(var(--base-spacing) * 5px);background-color:var(--color-background)}.badge-container::before{content:\"\";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:1px solid transparent;border-radius:var(--border-radius);pointer-events:none}.badge-container.icon-only cura-label{display:none !important}.badge-container.disabled{background-color:var(--color-background-disabled)}.badge-container.outline{background-color:transparent}.badge-container.outline::before{border:1px solid var(--color-base)}.badge-container.outline.disabled::before{border:1px solid var(--color-outline-disabled)}.badge-container.transparent{background-color:transparent}.badge-container.transparent::before{border:1px solid transparent}.badge-container.transparent.disabled{background-color:transparent}.badge-container cura-icon{display:flex}";
4
+ const CuraBadgePillStyle0 = curaBadgePillCss;
5
+
6
+ const CuraBadgePill = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.theme = window.CuraAPI.theme;
10
+ this.type = 'solid';
11
+ this.color = 'primary';
12
+ this.iconName = undefined;
13
+ this.iconset = 'default';
14
+ this.disabled = false;
15
+ this.iconOnly = false;
16
+ this.borderRadius = "2px";
17
+ this.styles = {};
18
+ }
19
+ handleColorChange() {
20
+ this.setColors();
21
+ }
22
+ connectedCallback() {
23
+ this.setBaseStyles();
24
+ this.setColors();
25
+ }
26
+ setBaseStyles() {
27
+ this.styles['--base-spacing'] = this.theme.spacing.getSpacing();
28
+ this.styles['--font-family'] = this.theme.fonts.getFamily();
29
+ this.styles['--font-size'] = this.theme.fonts.getSize();
30
+ this.styles = Object.assign({}, this.styles);
31
+ }
32
+ setColors() {
33
+ const colors = [
34
+ { name: '--color-background', theme: `${this.color}-lighter` },
35
+ { name: '--color-base', theme: `${this.color}-dark` },
36
+ { name: '--color-background-disabled', theme: 'neutral-pale' },
37
+ { name: '--color-outline-disabled', theme: 'neutral-medium' },
38
+ ];
39
+ colors.forEach(color => {
40
+ this.styles[color.name] = this.theme.colors.getColor(color.theme);
41
+ });
42
+ this.styles = Object.assign({}, this.styles);
43
+ }
44
+ hostCSSProperties() {
45
+ return {
46
+ '--border-radius': this.borderRadius || '2px',
47
+ };
48
+ }
49
+ getClasses() {
50
+ const classes = {};
51
+ classes['badge-container'] = true;
52
+ classes[`icon-only`] = this.iconOnly;
53
+ classes['disabled'] = this.disabled;
54
+ classes[`${this.type}`] = true;
55
+ return classes;
56
+ }
57
+ getSymbolColor() {
58
+ return this.disabled
59
+ ? 'neutral-medium'
60
+ : `${this.color}-dark`;
61
+ }
62
+ getIcon() {
63
+ if (!this.iconName)
64
+ return '';
65
+ return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: 'micro', color: this.getSymbolColor() });
66
+ }
67
+ render() {
68
+ const symbolColor = this.getSymbolColor();
69
+ return (h(Host, { key: 'd2b79aa7ede4462cd2b591b62321ef69b9e4fed3', style: this.hostCSSProperties() }, h("div", { key: 'a82383b03c02990b5879ca647ae06cabb5c32845', class: this.getClasses(), style: this.styles }, this.getIcon(), h("cura-label", { key: '1ccf493530fa6b7cee25db83d0fcb37cf308df3d', size: 'xsmall', "line-height": "117%", color: symbolColor }, h("slot", { key: '488e4fbd8b30cfcd15b25c9227e129b1c6e1ce32' })))));
70
+ }
71
+ get host() { return getElement(this); }
72
+ static get watchers() { return {
73
+ "color": ["handleColorChange"]
74
+ }; }
75
+ };
76
+ CuraBadgePill.style = CuraBadgePillStyle0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,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,IAC9C,IAAI,CAAC,OAAO,EAAE,EACf,mEAAY,IAAI,EAAC,QAAQ,iBAAa,MAAM,EAAC,KAAK,EAAE,WAAW,IAC7D,8DAAa,CACF,CACT,CACD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/badges/cura-badge-pill/cura-badge-pill.scss?tag=cura-badge-pill&encapsulation=shadow","src/components/badges/cura-badge-pill/cura-badge-pill.tsx"],"sourcesContent":["@import \"../../../scss/mixins/spacing.scss\";\n\n.badge-container {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: #{$spacing-tiny};\n padding: #{$spacing-tiny};\n border-radius: var(--border-radius);\n font-family: var(--font-family);\n font-size: var(--font-size);\n position: relative;\n box-sizing: border-box;\n width: fit-content;\n height: #{$spacing-xs};\n min-width: #{$spacing-xs};\n\n background-color: var(--color-background);\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: 1px solid transparent;\n border-radius: var(--border-radius);\n pointer-events: none;\n }\n\n &.icon-only {\n cura-label {\n display: none !important;\n }\n }\n\n &.disabled {\n background-color: var(--color-background-disabled);\n }\n\n &.outline {\n background-color: transparent;\n\n &::before {\n border: 1px solid var(--color-base);\n }\n\n &.disabled::before {\n border: 1px solid var(--color-outline-disabled);\n }\n }\n\n &.transparent {\n background-color: transparent;\n\n &::before {\n border: 1px solid transparent;\n }\n\n &.disabled {\n background-color: transparent;\n }\n }\n\n cura-icon {\n display: flex;\n }\n}\n","import { Component, Host, Prop, State, h, Watch, Element } from '@stencil/core';\n\n@Component({\n tag: 'cura-badge-pill',\n styleUrl: 'cura-badge-pill.scss',\n shadow: true,\n})\nexport class CuraBadgePill {\n @Element() host: HTMLElement;\n\n /**\n * Badge type: solid | outline | transparent\n */\n @Prop({ reflect: true }) type: 'solid' | 'outline' | 'transparent' = 'solid';\n\n /**\n * Color base from color scheme. Default: primary\n */\n @Prop() color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error' = 'primary';\n\n /**\n * Name of the icon to be used from iconset\n */\n @Prop({ reflect: true }) iconName: string;\n\n /**\n * Custom iconset if needed\n */\n @Prop({ reflect: true }) iconset = 'default';\n\n /**\n * Disabled state. Boolean\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Set badge to icon only. Boolean\n */\n @Prop({ reflect: true }) iconOnly = false;\n\n /**\n * Set border-radius.\n */\n @Prop({ reflect: true }) borderRadius: string = \"2px\";\n\n @State() styles = {};\n\n theme = window.CuraAPI.theme;\n\n @Watch('color')\n handleColorChange() {\n this.setColors();\n }\n\n connectedCallback() {\n this.setBaseStyles();\n this.setColors();\n }\n\n private setBaseStyles() {\n this.styles['--base-spacing'] = this.theme.spacing.getSpacing();\n this.styles['--font-family'] = this.theme.fonts.getFamily();\n this.styles['--font-size'] = this.theme.fonts.getSize();\n this.styles = { ...this.styles };\n }\n\n private setColors() {\n const colors = [\n { name: '--color-background', theme: `${this.color}-lighter` },\n { name: '--color-base', theme: `${this.color}-dark` },\n { name: '--color-background-disabled', theme: 'neutral-pale' },\n { name: '--color-outline-disabled', theme: 'neutral-medium' },\n ];\n\n colors.forEach(color => {\n this.styles[color.name] = this.theme.colors.getColor(color.theme);\n });\n this.styles = { ...this.styles };\n }\n\n hostCSSProperties() {\n return {\n '--border-radius': this.borderRadius || '2px',\n };\n }\n\n getClasses() {\n const classes = {};\n classes['badge-container'] = true;\n classes[`icon-only`] = this.iconOnly;\n classes['disabled'] = this.disabled;\n classes[`${this.type}`] = true;\n return classes;\n }\n\n getSymbolColor() {\n return this.disabled\n ? 'neutral-medium'\n : `${this.color}-dark`;\n }\n\n getIcon() {\n if (!this.iconName) return '';\n return <cura-icon\n name={this.iconName}\n iconset={this.iconset}\n size={'micro'}\n color={this.getSymbolColor()}\n />;\n }\n\n render() {\n const symbolColor = this.getSymbolColor();\n return (\n <Host style={this.hostCSSProperties()}>\n <div class={this.getClasses()} style={this.styles}>\n {this.getIcon()}\n <cura-label size='xsmall' line-height=\"117%\" color={symbolColor}>\n <slot></slot>\n </cura-label>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -99,7 +99,7 @@ const CuraButtonOutline = class {
99
99
  render() {
100
100
  const symbolColor = this.getSymbolColor();
101
101
  const labelSize = labelSizes[this.size] || labelSizes["default"];
102
- return (h(Host, { key: '5adde27bc83165040d4279e4835646e13b08a412' }, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor })))));
102
+ return (h(Host, { key: '0a0c25f94d0c18dbb90e4836ca3e7bcbbe10d032' }, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor })))));
103
103
  }
104
104
  static get formAssociated() { return true; }
105
105
  static get watchers() { return {
@@ -63,15 +63,6 @@ const CuraButtonSelect = class {
63
63
  return this.selected ? 'neutral-white' : 'neutral-black';
64
64
  }
65
65
  }
66
- getColorCounter() {
67
- if (this.background === 'dark' && this.disabled) {
68
- return !this.selected ? 'neutral-black' : 'neutral-dark';
69
- }
70
- if (this.background === 'light' && this.disabled) {
71
- return 'neutral-pale';
72
- }
73
- return `${this.color}-lighter`;
74
- }
75
66
  getColorBagdeNumber() {
76
67
  if (this.background === 'dark' && this.disabled) {
77
68
  return this.selected ? 'neutral-black' : 'neutral-dark';
@@ -89,7 +80,7 @@ const CuraButtonSelect = class {
89
80
  return h("cura-icon", { name: this.iconName, size: iconSize, color: this.getLabelFontColor() });
90
81
  }
91
82
  getCounter() {
92
- return (h("cura-badge-number", { color: this.getColorCounter(), class: "badge-number" }, h("cura-label", { color: this.getColorBagdeNumber(), size: "small" }, this.counter)));
83
+ return (h("cura-badge-counter", { number: this.counter, color: this.color, disabled: this.disabled || null, class: "badge-number" }));
93
84
  }
94
85
  getCheckIconRight() {
95
86
  const iconSize = this.size === 'large' ? 20 : 16;
@@ -111,7 +102,7 @@ const CuraButtonSelect = class {
111
102
  }
112
103
  render() {
113
104
  const labelSize = labelSizes[this.size] || labelSizes['default'];
114
- return (h(Host, { key: '8b766a3e23c2af13a47d113884047d19717702f2' }, h("button", { key: '90b57f260baa61de7c73e09965e190cd13eb62e1', class: this.getClasses(), style: this.styles, disabled: this.disabled, onClick: e => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("div", { key: 'f318438fa59f43846ce5043e4ee290faf3cf05d4', class: "button-container" }, this.iconName ? this.getIcon() : null, h("cura-label", { key: '2d069740c62b32dd3aa0fd74bdafb951d8deb73b', class: "label", size: labelSize, lineHeight: "0%", color: this.getLabelFontColor(), weight: "regular" }, h("slot", { key: 'e71e072d1dd91bbbafa939181cc22ba7b7c6189e' })), this.counter ? this.getCounter() : null, this.iconPosition === 'right' && this.selected ? this.getCheckIconRight() : null))));
105
+ return (h(Host, { key: '4b7592b68a09c5b93ec1c9ec6b84c7e5afa06ec3' }, h("button", { key: 'd607a733d64f73bd4bd4405e0aeb9d7f5ceebf52', class: this.getClasses(), style: this.styles, disabled: this.disabled, onClick: e => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("div", { key: '14e2f5b7309bf6c2252c81ab2f02fb36670facf3', class: "button-container" }, this.iconName ? this.getIcon() : null, h("cura-label", { key: '0759d70b0105a56dfa42bce78f2f5b8c33b04254', class: "label", size: labelSize, lineHeight: "0%", color: this.getLabelFontColor(), weight: "regular" }, h("slot", { key: 'a9935483ee6c67b8142878672804dfb7df0d8479' })), this.counter ? this.getCounter() : null, this.iconPosition === 'right' && this.selected ? this.getCheckIconRight() : null))));
115
106
  }
116
107
  get host() { return getElement(this); }
117
108
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"cura-button-select.entry.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,usGAAusG,CAAC;AACpuG,+BAAe,mBAAmB;;MCOrB,gBAAgB;;;;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,IAA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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":[],"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: string | 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 getColorCounter() {\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-pale';\n }\n return `${this.color}-lighter`;\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-number color={this.getColorCounter()} class=\"badge-number\">\n <cura-label color={this.getColorBagdeNumber()} size=\"small\">\n {this.counter}\n </cura-label>\n </cura-badge-number>\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>\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.entry.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,usGAAusG,CAAC;AACpuG,+BAAe,mBAAmB;;MCOrB,gBAAgB;;;;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,CA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C;QACtC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,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,uDACH,+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":[],"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>\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}
@@ -88,7 +88,7 @@ const CuraButtonTransparent = class {
88
88
  render() {
89
89
  const symbolColor = this.getSymbolColor();
90
90
  const labelSize = labelSizes[this.size] || labelSizes["default"];
91
- return (h(Host, { key: '60ab1e67798d35b9bb391ad491e4a9e6f3bc123f' }, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor })))));
91
+ return (h(Host, { key: 'f93f2f1b495403127238468c57edfcb5e9f69d43' }, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor })))));
92
92
  }
93
93
  static get formAssociated() { return true; }
94
94
  static get watchers() { return {
@@ -3902,7 +3902,7 @@ const CuraCalendar = class {
3902
3902
  }
3903
3903
  render() {
3904
3904
  const { months } = this.fetchMonthNames();
3905
- return (h(Host, { key: '2167c17db3fcc20b3b9de3e8b4c071f78369d37e', style: this.getHostCSSProperties() }, h("div", { key: 'e09c187cd19bc53cd9b4c592001c8de8bc30bdd7', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''}`, style: this.styles }, h("header", { key: 'c89688cd2b5e398364b3b0208eb01ae82aa7d808', class: "header" }, h("div", { key: 'a18b029a7446791c87303e959c3c7ecd3bdead47', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, h("cura-icon", { key: '25532f4297827c6431fb9be4491894952cda1c8f', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "left", color: this.determinePrevButtonColor(), onClick: !this.collapsed ? () => this.updateCurrentMonth('prev') : () => this.updateCurrentWeek('prev') }), this.type === 'dropdown' ? (h("div", { class: "select" }, h("cura-select", { size: "small", class: "drop-month", mode: "transparent", value: months[getMonth(this.currentDate)], onSelected: e => this.onMonthDropdownChange(e) }, months.map((month, index) => (h("cura-select-option", { size: "xsmall", key: index, value: month }, month)))), h("cura-select", { size: "small", class: "drop-year", mode: "transparent", value: getYear(this.currentDate).toString(), onSelected: e => this.onYearDropdownChange(e) }, this.fetchYearList().map((year, index) => (h("cura-select-option", { key: index, value: year.toString() }, year.toString())))))) : (h("cura-label", { color: "neutral-black", size: "large" }, months[getMonth(this.currentDate)].slice(0, 3), ", ", getYear(this.currentDate))), h("cura-icon", { key: '52d65856b6797a8ad185fdeb0bd40abee24cc95e', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", color: "primary-base", onClick: !this.collapsed ? () => this.updateCurrentMonth('next') : () => this.updateCurrentWeek('next') }))), h("span", { key: '83afcab7b30fc4bdf3e02810dc911000c71a6d68', class: "days-of-week" }, this.fetchWeekDays().map((day, index) => (h("cura-label", { class: "day", size: "xsmall", color: "neutral-black", weight: "bold", key: index }, day === 'sab' ? 'SÁB' : day.toLocaleUpperCase())))), h("div", { key: 'f5b55f62ced251c9a77138492e77aeb6feb3e117', class: "dates" }, !this.collapsed
3905
+ return (h(Host, { key: '859c5f15de173c774dc9f8a88792845741b665e2', style: this.getHostCSSProperties() }, h("div", { key: '5838783d7ecb5b2258ef7ef73ba32ca7ddbad470', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''}`, style: this.styles }, h("header", { key: '16245dbb73d9d0a277891b3853f451b89acccc35', class: "header" }, h("div", { key: '9a22c4386363642fa7219edebd9e9a5cfb5220aa', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, h("cura-icon", { key: '4d3ee4454dfc8bbcd8d76df101b553c86b0cea8f', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "left", color: this.determinePrevButtonColor(), onClick: !this.collapsed ? () => this.updateCurrentMonth('prev') : () => this.updateCurrentWeek('prev') }), this.type === 'dropdown' ? (h("div", { class: "select" }, h("cura-select", { size: "small", class: "drop-month", mode: "transparent", value: months[getMonth(this.currentDate)], onSelected: e => this.onMonthDropdownChange(e) }, months.map((month, index) => (h("cura-select-option", { size: "xsmall", key: index, value: month }, month)))), h("cura-select", { size: "small", class: "drop-year", mode: "transparent", value: getYear(this.currentDate).toString(), onSelected: e => this.onYearDropdownChange(e) }, this.fetchYearList().map((year, index) => (h("cura-select-option", { key: index, value: year.toString() }, year.toString())))))) : (h("cura-label", { color: "neutral-black", size: "large" }, months[getMonth(this.currentDate)].slice(0, 3), ", ", getYear(this.currentDate))), h("cura-icon", { key: '1f54119aafaa80816cdd016100a7987cba6656b0', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", color: "primary-base", onClick: !this.collapsed ? () => this.updateCurrentMonth('next') : () => this.updateCurrentWeek('next') }))), h("span", { key: '40be6c876675cf43b42e214e30639e48873dc4bc', class: "days-of-week" }, this.fetchWeekDays().map((day, index) => (h("cura-label", { class: "day", size: "xsmall", color: "neutral-black", weight: "bold", key: index }, day === 'sab' ? 'SÁB' : day.toLocaleUpperCase())))), h("div", { key: '72cae6b30fa5b7d5e180b796458d1844aba27ea9', class: "dates" }, !this.collapsed
3906
3906
  ? this.fetchDaysOfMonth().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))
3907
3907
  : this.fetchDaysOfWeek().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null)));
3908
3908
  }
@@ -39,7 +39,7 @@ const CuraCard = class {
39
39
  return classes;
40
40
  }
41
41
  render() {
42
- return (h(Host, { key: '72140d7ae467677c7acbdb3ff45fa84c9fe60fce', 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)))));
42
+ 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)))));
43
43
  }
44
44
  };
45
45
  CuraCard.style = CuraCardStyle0;
@@ -160,7 +160,7 @@ const CuraCheckbox = class {
160
160
  return h("cura-icon", { class: "icon", name: iconName, size: iconSize, color: iconColor });
161
161
  }
162
162
  render() {
163
- return (h(Host, { key: '876fa0a7aa0fc7110cbf0ffeb2d95d529fa78e64' }, h("div", { key: '3e6d730765590ee75d7e045cadc7d03e5fc035e2', class: this.getClasses(), style: this.styles, onClick: this.handleClick }, h("div", { key: '0f7f6f3bc61a80e899d940d76fee266af1914f5a', class: "info" }, h("div", { key: 'a836cb0d7751a1a812364fe93a30403b02ec5c95', class: "label-wrapper" }, h("cura-label", { key: '5d180552ec71e22ddd8822727bd32d4167215f33', class: "label", weight: 'bold', size: this.size === 'large' ? 'medium' : 'xsmall', color: this.assignColor('label') }, this.label), this.required && h("cura-paragraph", { key: '047413aa21a28bc33984d19ad4dc10a38289c205', lineHeight: '0%', marginBlock: '0', color: "error-base" }, "* ")), h("cura-label", { key: '68c9dd6f228ec3204647795f1cae32a8f8797bc2', color: this.assignColor('message'), size: "xsmall", class: "message" }, h("slot", { key: '3a35a1219f135002f1b9ae64c0eb4227529bc904' }))), h("div", { key: 'fe969ee332b3c64a259ec552f411b5d2d4bc81e4', class: 'checkbox', tabIndex: this.ontabindex }, h("input", { key: '2cbcbe56130bddb5853cfcc3a8ef1b421f39bc7b', type: "checkbox", name: this.name, value: this.value, disabled: this.disabled, required: this.required, checked: this.checked, indeterminate: this.indeterminate }), this.getIcon()))));
163
+ return (h(Host, { key: 'c589b642a730e09b8d5ba60b69b45f131560ffda' }, h("div", { key: '85ee55dc52042e513e070d68af348dc78d1990e2', class: this.getClasses(), style: this.styles, onClick: this.handleClick }, h("div", { key: '59e78d3b717b0bbd77d98da09ab7f1da30d02f14', class: "info" }, h("div", { key: '64d683966633a625e7e477fcf1b00364d5fd3fa7', class: "label-wrapper" }, h("cura-label", { key: '76d34006ffd837285cb899278f759d95862097c5', class: "label", weight: 'bold', size: this.size === 'large' ? 'medium' : 'xsmall', color: this.assignColor('label') }, this.label), this.required && h("cura-paragraph", { key: '01394587736d7402d5c6729e9f7e93f7b08ad742', lineHeight: '0%', marginBlock: '0', color: "error-base" }, "* ")), h("cura-label", { key: 'fcbbea9a05b9299a814111ea36d7412df6f54e92', color: this.assignColor('message'), size: "xsmall", class: "message" }, h("slot", { key: '99c46ed2eb8492cbebb114d828935f1ec0bf7796' }))), h("div", { key: '6291780f613af4e320c486b46697df6f19bdce0e', class: 'checkbox', tabIndex: this.ontabindex }, h("input", { key: 'b922e6498ecfd28391843cdfa45c850f045f3ab6', type: "checkbox", name: this.name, value: this.value, disabled: this.disabled, required: this.required, checked: this.checked, indeterminate: this.indeterminate }), this.getIcon()))));
164
164
  }
165
165
  static get formAssociated() { return true; }
166
166
  get host() { return getElement(this); }
@@ -65,7 +65,7 @@ const CuraDisplay = class {
65
65
  return tags[`${this.level}`] || tags['default'];
66
66
  }
67
67
  render() {
68
- return (h(Host, { key: '9d75215eaa43baaf9ca9aada36dfdbff4596afb2', style: this.hostCSSProperties() }, this.getHeadingTag()));
68
+ return (h(Host, { key: '454c94a3f6a1ee3f8ec8ba28ba77f31a5abe8f49', style: this.hostCSSProperties() }, this.getHeadingTag()));
69
69
  }
70
70
  get host() { return getElement(this); }
71
71
  static get watchers() { return {
@@ -8,7 +8,7 @@ const CuraDropdownSearchOptionTitle = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: 'ed1d2aeeba08c3c53f04f434fa46cb178271f405', slot: "dropdown-search-option" }, h("cura-label", { key: '910b1ada8d333ace0171a3180ba6320e813e4fce', color: "neutral-dark", size: "xsmall", lineHeight: "16px", marginBlock: "0" }, h("slot", { key: '20816c3a0c9805a88074f36e060ad850157427e2' }))));
11
+ return (h(Host, { key: 'b378a877e6a90727e3216c284c2a064992f2dfc9', slot: "dropdown-search-option" }, h("cura-label", { key: 'e2d457a7d42bcacae09012322b19a54e44fb109f', color: "neutral-dark", size: "xsmall", lineHeight: "16px", marginBlock: "0" }, h("slot", { key: 'e889fa1839988a0f138e14ad15b0e250100ba38c' }))));
12
12
  }
13
13
  };
14
14
  CuraDropdownSearchOptionTitle.style = CuraDropdownSearchOptionTitleStyle0;
@@ -42,12 +42,12 @@ const CuraDropdownSearchOption = class {
42
42
  }
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: '0dfb8d67f1aee692af5abdad170f2fc3e6c5ffc6', slot: "dropdown-search-option" }, h("div", { key: '6596c224bbfc0e9b5c3d2a39d064852019af5b74', style: this.styles, class: {
45
+ return (h(Host, { key: '515f662d5fb08cd77e7ad24de425ec34497e5e6e', slot: "dropdown-search-option" }, h("div", { key: '8decccf2416ae3ea135bba38845da2a63c9cfdce', style: this.styles, class: {
46
46
  "option-container": true,
47
47
  hovered: this.selectable ? this.hovered : false,
48
48
  selected: this.selected,
49
49
  disabled: !this.selectable
50
- } }, h("div", { key: 'b73badabbcde37615c58707d8a62832363deb694', class: "content-container" }, h("div", { key: '6ea1e5cfa3aa5f7bb7d0a4a2c9c8aff6e076304c', class: "option-info", onClick: (e) => this.handleOptionClick(e) }, h("slot", { key: '9e6272b220a723fbc1b52a23f59873cb4eea0986', name: "image" }), h("cura-heading", { key: '4bec4f91fd5ef5759373d846c0876678e67b1b48', size: "xsmall", lineHeight: "16px", marginBlock: "0px", weight: "bold", color: "neutral-black" }, h("slot", { key: 'c485bfd68ddf4b5bcfa0c590c11344352939fe87' }))), h("slot", { key: '0ce8978f72401af3580c72919b6079ef222dcc0d', name: "action" })))));
50
+ } }, h("div", { key: '8c3cce88d40c764ae87cf8c54e3fb9fe9651f62d', class: "content-container" }, h("div", { key: '1c674ff6a3721c42e034b994bf903d8608100cb8', class: "option-info", onClick: (e) => this.handleOptionClick(e) }, h("slot", { key: '7a6545a242da0774b74a403b2dc26ce378d146fd', name: "image" }), h("cura-heading", { key: '860fede2f20748b5e15ddf3222cd0c6ce3ff1f8c', size: "xsmall", lineHeight: "16px", marginBlock: "0px", weight: "bold", color: "neutral-black" }, h("slot", { key: 'e9a7610e2d561cb399d58c44f98fb9ea0e6cf5c6' }))), h("slot", { key: 'c784f7cddd4d5e246126ef43ab08e82db51fc2be', name: "action" })))));
51
51
  }
52
52
  get hostElement() { return getElement(this); }
53
53
  static get watchers() { return {