@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
@@ -0,0 +1,220 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CuraBadgePill {
3
+ constructor() {
4
+ this.theme = window.CuraAPI.theme;
5
+ this.type = 'solid';
6
+ this.color = 'primary';
7
+ this.iconName = undefined;
8
+ this.iconset = 'default';
9
+ this.disabled = false;
10
+ this.iconOnly = false;
11
+ this.borderRadius = "2px";
12
+ this.styles = {};
13
+ }
14
+ handleColorChange() {
15
+ this.setColors();
16
+ }
17
+ connectedCallback() {
18
+ this.setBaseStyles();
19
+ this.setColors();
20
+ }
21
+ setBaseStyles() {
22
+ this.styles['--base-spacing'] = this.theme.spacing.getSpacing();
23
+ this.styles['--font-family'] = this.theme.fonts.getFamily();
24
+ this.styles['--font-size'] = this.theme.fonts.getSize();
25
+ this.styles = Object.assign({}, this.styles);
26
+ }
27
+ setColors() {
28
+ const colors = [
29
+ { name: '--color-background', theme: `${this.color}-lighter` },
30
+ { name: '--color-base', theme: `${this.color}-dark` },
31
+ { name: '--color-background-disabled', theme: 'neutral-pale' },
32
+ { name: '--color-outline-disabled', theme: 'neutral-medium' },
33
+ ];
34
+ colors.forEach(color => {
35
+ this.styles[color.name] = this.theme.colors.getColor(color.theme);
36
+ });
37
+ this.styles = Object.assign({}, this.styles);
38
+ }
39
+ hostCSSProperties() {
40
+ return {
41
+ '--border-radius': this.borderRadius || '2px',
42
+ };
43
+ }
44
+ getClasses() {
45
+ const classes = {};
46
+ classes['badge-container'] = true;
47
+ classes[`icon-only`] = this.iconOnly;
48
+ classes['disabled'] = this.disabled;
49
+ classes[`${this.type}`] = true;
50
+ return classes;
51
+ }
52
+ getSymbolColor() {
53
+ return this.disabled
54
+ ? 'neutral-medium'
55
+ : `${this.color}-dark`;
56
+ }
57
+ getIcon() {
58
+ if (!this.iconName)
59
+ return '';
60
+ return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: 'micro', color: this.getSymbolColor() });
61
+ }
62
+ render() {
63
+ const symbolColor = this.getSymbolColor();
64
+ 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' })))));
65
+ }
66
+ static get is() { return "cura-badge-pill"; }
67
+ static get encapsulation() { return "shadow"; }
68
+ static get originalStyleUrls() {
69
+ return {
70
+ "$": ["cura-badge-pill.scss"]
71
+ };
72
+ }
73
+ static get styleUrls() {
74
+ return {
75
+ "$": ["cura-badge-pill.css"]
76
+ };
77
+ }
78
+ static get properties() {
79
+ return {
80
+ "type": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "'solid' | 'outline' | 'transparent'",
85
+ "resolved": "\"outline\" | \"solid\" | \"transparent\"",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "Badge type: solid | outline | transparent"
93
+ },
94
+ "attribute": "type",
95
+ "reflect": true,
96
+ "defaultValue": "'solid'"
97
+ },
98
+ "color": {
99
+ "type": "string",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error'",
103
+ "resolved": "\"accent\" | \"error\" | \"info\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": false,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": "Color base from color scheme. Default: primary"
111
+ },
112
+ "attribute": "color",
113
+ "reflect": false,
114
+ "defaultValue": "'primary'"
115
+ },
116
+ "iconName": {
117
+ "type": "string",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "string",
121
+ "resolved": "string",
122
+ "references": {}
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": "Name of the icon to be used from iconset"
129
+ },
130
+ "attribute": "icon-name",
131
+ "reflect": true
132
+ },
133
+ "iconset": {
134
+ "type": "string",
135
+ "mutable": false,
136
+ "complexType": {
137
+ "original": "string",
138
+ "resolved": "string",
139
+ "references": {}
140
+ },
141
+ "required": false,
142
+ "optional": false,
143
+ "docs": {
144
+ "tags": [],
145
+ "text": "Custom iconset if needed"
146
+ },
147
+ "attribute": "iconset",
148
+ "reflect": true,
149
+ "defaultValue": "'default'"
150
+ },
151
+ "disabled": {
152
+ "type": "boolean",
153
+ "mutable": false,
154
+ "complexType": {
155
+ "original": "boolean",
156
+ "resolved": "boolean",
157
+ "references": {}
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": "Disabled state. Boolean"
164
+ },
165
+ "attribute": "disabled",
166
+ "reflect": true,
167
+ "defaultValue": "false"
168
+ },
169
+ "iconOnly": {
170
+ "type": "boolean",
171
+ "mutable": false,
172
+ "complexType": {
173
+ "original": "boolean",
174
+ "resolved": "boolean",
175
+ "references": {}
176
+ },
177
+ "required": false,
178
+ "optional": false,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": "Set badge to icon only. Boolean"
182
+ },
183
+ "attribute": "icon-only",
184
+ "reflect": true,
185
+ "defaultValue": "false"
186
+ },
187
+ "borderRadius": {
188
+ "type": "string",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "string",
192
+ "resolved": "string",
193
+ "references": {}
194
+ },
195
+ "required": false,
196
+ "optional": false,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": "Set border-radius."
200
+ },
201
+ "attribute": "border-radius",
202
+ "reflect": true,
203
+ "defaultValue": "\"2px\""
204
+ }
205
+ };
206
+ }
207
+ static get states() {
208
+ return {
209
+ "styles": {}
210
+ };
211
+ }
212
+ static get elementRef() { return "host"; }
213
+ static get watchers() {
214
+ return [{
215
+ "propName": "color",
216
+ "methodName": "handleColorChange"
217
+ }];
218
+ }
219
+ }
220
+ //# sourceMappingURL=cura-badge-pill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-badge-pill.js","sourceRoot":"","sources":["../../../../src/components/badges/cura-badge-pill/cura-badge-pill.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOhF,MAAM,OAAO,aAAa;;QAwCxB,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;oBAlCwC,OAAO;qBAK+B,SAAS;;uBAUjF,SAAS;wBAKR,KAAK;wBAKL,KAAK;4BAKO,KAAK;sBAEnC,EAAE;;IAKpB,iBAAiB;QACf,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAEO,aAAa;QACnB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,U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C,QAAQ,CAAC;QACpC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;QAC/B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,QAAQ;YAClB,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,OAAO,CAAC;IAC3B,CAAC;IAED,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,EAAE,CAAC;QAC9B,OAAO,iBACL,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,GAC5B,CAAC;IACL,CAAC;IAED,MAAM;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1C,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE;YACnC,4DAAK,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM;gBAC9C,IAAI,CAAC,OAAO,EAAE;gBACf,mEAAY,IAAI,EAAC,QAAQ,iBAAa,MAAM,EAAC,KAAK,EAAE,WAAW;oBAC7D,8DAAa,CACF,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -0,0 +1,126 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s)
4
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ import iconNames from "../../../assets/icons/iconset-default-list";
14
+ export default {
15
+ title: 'Componentes/Badges/Badge Pill',
16
+ tags: ['autodocs'],
17
+ render: (_a) => {
18
+ var args = __rest(_a, []);
19
+ return `<cura-badge-pill
20
+ type="${args.type}"
21
+ color="${args.color}"${args.iconName ? `
22
+ icon-name="${args.iconName}"` : ''} ${args.iconset ? `
23
+ iconset="${args.iconset}"` : ''} ${args.disabled ? `
24
+ disabled` : ''} ${args.iconOnly ? `
25
+ icon-only` : ''} ${args.borderRadius ? `
26
+ border-radius="${args.borderRadius}"` : ''}
27
+ >
28
+ ${args.label}
29
+ </cura-badge-pill>
30
+ ${args.cssBorderRadius ? `<style>
31
+ cura-badge-pill {
32
+ --border-radius: ${args.cssBorderRadius} !important;
33
+ }
34
+ </style>` : ''}`;
35
+ },
36
+ argTypes: {
37
+ type: {
38
+ control: { type: 'select' },
39
+ options: ['solid', 'outline', 'transparent'],
40
+ description: 'Tipo do badge',
41
+ table: {
42
+ category: 'Properties',
43
+ defaultValue: { summary: 'solid' }
44
+ }
45
+ },
46
+ color: {
47
+ control: { type: 'select' },
48
+ options: ['primary', 'secondary', 'accent', 'neutral', 'info', 'success', 'warning', 'error'],
49
+ description: 'Cor base do badge',
50
+ table: {
51
+ category: 'Properties',
52
+ defaultValue: { summary: 'primary' }
53
+ }
54
+ },
55
+ iconName: {
56
+ control: { type: 'select' },
57
+ options: ['', ...iconNames],
58
+ description: 'Nome do ícone do iconset',
59
+ table: {
60
+ category: 'Icons'
61
+ }
62
+ },
63
+ iconset: {
64
+ control: { type: 'text' },
65
+ description: 'Conjunto de ícones personalizado',
66
+ table: {
67
+ category: 'Icons',
68
+ defaultValue: { summary: 'default' }
69
+ }
70
+ },
71
+ iconOnly: {
72
+ control: 'boolean',
73
+ description: 'Mostra apenas o ícone',
74
+ table: {
75
+ category: 'Icons',
76
+ defaultValue: { summary: false }
77
+ }
78
+ },
79
+ disabled: {
80
+ control: 'boolean',
81
+ description: 'Estado desabilitado',
82
+ table: {
83
+ category: 'State',
84
+ defaultValue: { summary: false }
85
+ }
86
+ },
87
+ label: {
88
+ control: 'text',
89
+ description: 'Label do badge',
90
+ table: {
91
+ category: 'Properties'
92
+ }
93
+ },
94
+ borderRadius: {
95
+ control: 'text',
96
+ description: 'Border radius do badge',
97
+ table: {
98
+ category: 'Properties',
99
+ defaultValue: { summary: '2px' }
100
+ }
101
+ },
102
+ cssBorderRadius: {
103
+ control: 'text',
104
+ name: '--border-radius',
105
+ description: 'É possível sobrescrever o border-radius do componente (Ex: 10px, 50%, etc.)',
106
+ table: {
107
+ category: 'CSS Properties',
108
+ defaultValue: { summary: '' }
109
+ }
110
+ },
111
+ },
112
+ };
113
+ export const BadgePill = {
114
+ args: {
115
+ type: 'solid',
116
+ color: 'primary',
117
+ iconName: '',
118
+ iconset: '',
119
+ disabled: false,
120
+ iconOnly: false,
121
+ label: 'Badge Pill',
122
+ borderRadius: '',
123
+ cssBorderRadius: '',
124
+ },
125
+ };
126
+ //# sourceMappingURL=cura-badge-pill.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-badge-pill.stories.js","sourceRoot":"","sources":["../../../../src/components/badges/cura-badge-pill/cura-badge-pill.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,SAAS,MAAM,4CAA4C,CAAC;AAEnE,eAAe;IACb,KAAK,EAAE,+BAA+B;IACtC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,EAAE,CAAC,EAAW,EAAE,EAAE;YAAV,IAAI,cAAT,EAAW,CAAF;QAChB,OAAO;UACD,IAAI,CAAC,IAAI;WACR,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;eAC1B,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;aAC1C,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;WAC1C,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YACxB,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;mBACtB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE;;IAExC,IAAI,CAAC,KAAK;;EAEZ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;;uBAEF,IAAI,CAAC,eAAe;;SAElC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACf,CAAC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC;YAC5C,WAAW,EAAE,eAAe;YAC5B,KAAK,EAAE;gBACL,QAAQ,EAAE,YAAY;gBACtB,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;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ACf,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE;gBACL,QAAQ,EAAE,YAAY;gBACtB,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACjC;SACF;QACD,eAAe,EAAE;YACf,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,6EAA6E;YAC1F,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;aAC9B;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,YAAY;QACnB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,EAAE;KACpB;CACF,CAAC","sourcesContent":["import iconNames from '../../../assets/icons/iconset-default-list';\n\nexport default {\n title: 'Componentes/Badges/Badge Pill',\n tags: ['autodocs'],\n render: ({ ...args }) => {\n return `<cura-badge-pill\n type=\"${args.type}\"\n color=\"${args.color}\"${args.iconName ? `\n icon-name=\"${args.iconName}\"` : ''} ${args.iconset ? `\n iconset=\"${args.iconset}\"` : ''} ${args.disabled ? `\n disabled` : ''} ${args.iconOnly ? `\n icon-only` : ''} ${args.borderRadius ? `\n border-radius=\"${args.borderRadius}\"` : ''}\n>\n ${args.label}\n</cura-badge-pill>\n${args.cssBorderRadius ? `<style>\n cura-badge-pill {\n --border-radius: ${args.cssBorderRadius} !important;\n }\n</style>` : ''}`;\n },\n argTypes: {\n type: {\n control: { type: 'select' },\n options: ['solid', 'outline', 'transparent'],\n description: 'Tipo do badge',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'solid' }\n }\n },\n color: {\n control: { type: 'select' },\n options: ['primary', 'secondary', 'accent', 'neutral', 'info', 'success', 'warning', 'error'],\n description: 'Cor base do badge',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'primary' }\n }\n },\n iconName: {\n control: { type: 'select' },\n options: ['', ...iconNames],\n description: 'Nome do ícone do iconset',\n table: {\n category: 'Icons'\n }\n },\n iconset: {\n control: { type: 'text' },\n description: 'Conjunto de ícones personalizado',\n table: {\n category: 'Icons',\n defaultValue: { summary: 'default' }\n }\n },\n iconOnly: {\n control: 'boolean',\n description: 'Mostra apenas o ícone',\n table: {\n category: 'Icons',\n defaultValue: { summary: false }\n }\n },\n disabled: {\n control: 'boolean',\n description: 'Estado desabilitado',\n table: {\n category: 'State',\n defaultValue: { summary: false }\n }\n },\n label: {\n control: 'text',\n description: 'Label do badge',\n table: {\n category: 'Properties'\n }\n },\n borderRadius: {\n control: 'text',\n description: 'Border radius do badge',\n table: {\n category: 'Properties',\n defaultValue: { summary: '2px' }\n }\n },\n cssBorderRadius: {\n control: 'text',\n name: '--border-radius',\n description: 'É possível sobrescrever o border-radius do componente (Ex: 10px, 50%, etc.)',\n table: {\n category: 'CSS Properties',\n defaultValue: { summary: '' }\n }\n },\n },\n};\n\nexport const BadgePill = {\n args: {\n type: 'solid',\n color: 'primary',\n iconName: '',\n iconset: '',\n disabled: false,\n iconOnly: false,\n label: 'Badge Pill',\n borderRadius: '',\n cssBorderRadius: '',\n },\n};\n\n"]}
@@ -88,7 +88,7 @@ export class CuraButton {
88
88
  render() {
89
89
  const symbolColor = this.getSymbolColor();
90
90
  const labelSize = labelSizes[this.size] || labelSizes["default"];
91
- return (h(Host, { key: '2831f74cc53bbadcaf1648c759090204cf3c20ea' }, 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", { class: "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", { class: "label", size: labelSize, lineHeight: '105%', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor })))));
91
+ return (h(Host, { key: '07b87d98fb398bc2897e666dc8cd54734f20734d' }, 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", { class: "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", { class: "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 is() { return "cura-button"; }
94
94
  static get encapsulation() { return "shadow"; }
@@ -87,7 +87,7 @@ export class CuraButtonOutline {
87
87
  render() {
88
88
  const symbolColor = this.getSymbolColor();
89
89
  const labelSize = labelSizes[this.size] || labelSizes["default"];
90
- 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 })))));
90
+ 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 })))));
91
91
  }
92
92
  static get is() { return "cura-button-outline"; }
93
93
  static get encapsulation() { return "shadow"; }
@@ -57,15 +57,6 @@ export class CuraButtonSelect {
57
57
  return this.selected ? 'neutral-white' : 'neutral-black';
58
58
  }
59
59
  }
60
- getColorCounter() {
61
- if (this.background === 'dark' && this.disabled) {
62
- return !this.selected ? 'neutral-black' : 'neutral-dark';
63
- }
64
- if (this.background === 'light' && this.disabled) {
65
- return 'neutral-pale';
66
- }
67
- return `${this.color}-lighter`;
68
- }
69
60
  getColorBagdeNumber() {
70
61
  if (this.background === 'dark' && this.disabled) {
71
62
  return this.selected ? 'neutral-black' : 'neutral-dark';
@@ -83,7 +74,7 @@ export class CuraButtonSelect {
83
74
  return h("cura-icon", { name: this.iconName, size: iconSize, color: this.getLabelFontColor() });
84
75
  }
85
76
  getCounter() {
86
- return (h("cura-badge-number", { color: this.getColorCounter(), class: "badge-number" }, h("cura-label", { color: this.getColorBagdeNumber(), size: "small" }, this.counter)));
77
+ return (h("cura-badge-counter", { number: this.counter, color: this.color, disabled: this.disabled || null, class: "badge-number" }));
87
78
  }
88
79
  getCheckIconRight() {
89
80
  const iconSize = this.size === 'large' ? 20 : 16;
@@ -105,7 +96,7 @@ export class CuraButtonSelect {
105
96
  }
106
97
  render() {
107
98
  const labelSize = labelSizes[this.size] || labelSizes['default'];
108
- 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))));
99
+ 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))));
109
100
  }
110
101
  static get is() { return "cura-button-select"; }
111
102
  static get encapsulation() { return "shadow"; }
@@ -175,11 +166,11 @@ export class CuraButtonSelect {
175
166
  "defaultValue": "'medium'"
176
167
  },
177
168
  "counter": {
178
- "type": "any",
169
+ "type": "number",
179
170
  "mutable": true,
180
171
  "complexType": {
181
- "original": "string | number | null",
182
- "resolved": "number | string",
172
+ "original": "number | null",
173
+ "resolved": "number",
183
174
  "references": {}
184
175
  },
185
176
  "required": false,
@@ -1 +1 @@
1
- {"version":3,"file":"cura-button-select.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-select/cura-button-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAOxD,MAAM,OAAO,gBAAgB;;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,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe,EAAE;YACzG,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAA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["import { Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-select',\n styleUrl: 'cura-button-select.scss',\n shadow: true,\n})\nexport class CuraButtonSelect {\n @Element() host: HTMLElement;\n\n @Prop({ reflect: true, mutable: true }) selected = false;\n @Prop({ reflect: true, mutable: true }) iconName: string;\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n @Prop({ reflect: true, mutable: true }) counter: 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"]}
1
+ {"version":3,"file":"cura-button-select.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-select/cura-button-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAOxD,MAAM,OAAO,gBAAgB;;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,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe,EAAE;YACzG,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,GAA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AAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE;gBAE3C,4DAAK,KAAK,EAAC,kBAAkB;oBAC1B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI;oBACtC,mEAAY,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAC,SAAS;wBAC1G,8DAAa,CACF;oBACZ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI;oBACvC,IAAI,CAAC,YAAY,KAAK,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,IAAI,CAC7E,CACC,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { labelSizes } from '../cura-button.definitions';\n\n@Component({\n tag: 'cura-button-select',\n styleUrl: 'cura-button-select.scss',\n shadow: true,\n})\nexport class CuraButtonSelect {\n @Element() host: HTMLElement;\n\n @Prop({ reflect: true, mutable: true }) selected = false;\n @Prop({ reflect: true, mutable: true }) iconName: string;\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n @Prop({ reflect: true, mutable: true }) counter: number | null;\n @Prop({ reflect: true }) disabled: boolean;\n @Prop() background: 'dark' | 'light' = 'light';\n @Prop() color: string = 'primary';\n @Prop({ reflect: true }) iconPosition: 'left' | 'right';\n\n @State() hovered = false;\n @State() styles = {};\n\n @Event({ eventName: 'onclick' }) onclick: EventEmitter<{ selected: boolean }>;\n\n theme = window.CuraAPI.theme;\n\n weights;\n\n @Watch('background')\n @Watch('color')\n setColors() {\n const colors = [\n { name: '--color-border', thema: this.background === 'light' ? `${this.color}-darker` : 'neutral-white' },\n { name: '--color-border-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-light` },\n { name: '--color-background-hover', thema: this.background === 'light' ? `${this.color}-light` : `${this.color}-dark` },\n { name: '--color-select', thema: this.background === 'light' ? `${this.color}-base` : 'neutral-white' },\n { name: '--color-select-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-lighter` },\n { name: '--color-select-focus', thema: this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter` },\n { name: '--color-disable-select', thema: this.background === 'light' ? 'neutral-white' : 'neutral-black' },\n { name: '--color-border-disable-unselect', thema: 'neutral-dark' },\n { name: '--color-counter-disabled', thema: this.background === 'light' ? 'neutral-pale' : 'neutral-black' },\n { name: '--color-counter', thema: !this.disabled && 'primary-lighter' },\n ];\n\n colors.forEach(color => (this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.thema)));\n this.styles = { ...this.styles };\n }\n\n getClasses() {\n const classes = {};\n classes[`${this.size?.toLowerCase()}`] = true;\n classes[`icon-${this.iconPosition.toLowerCase()}`] = true;\n classes['disabled'] = this.disabled;\n classes['selected'] = this.selected;\n return classes;\n }\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();\n this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();\n this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();\n this.styles['--font-weight-medium'] = this.weights.medium;\n this.setColors();\n }\n\n getLabelFontColor() {\n if (this.disabled) return 'neutral-dark';\n\n if (this.background === 'dark') {\n return this.selected ? 'neutral-black' : 'neutral-white';\n }\n if (this.background === 'light') {\n return this.selected ? 'neutral-white' : 'neutral-black';\n }\n }\n\n getColorBagdeNumber() {\n if (this.background === 'dark' && this.disabled) {\n return this.selected ? 'neutral-black' : 'neutral-dark';\n }\n\n if (this.background === 'light' && this.disabled) {\n return 'neutral-medium';\n }\n\n return `${this.color}-darker`;\n }\n\n getIcon() {\n const iconSize = this.size === 'large' ? 20 : 16;\n if (this.iconPosition === 'right') {\n return;\n }\n\n return <cura-icon name={this.iconName} size={iconSize} color={this.getLabelFontColor()} />;\n }\n\n getCounter() {\n return (\n <cura-badge-counter\n number={this.counter}\n color={this.color}\n disabled={this.disabled || null}\n class=\"badge-number\">\n </cura-badge-counter>\n );\n }\n\n getCheckIconRight() {\n const iconSize = this.size === 'large' ? 20 : 16;\n return <cura-icon name=\"check\" size={iconSize} color={this.getLabelFontColor()}></cura-icon>;\n }\n\n handleMouseEnter() {\n if (this.disabled) return;\n this.hovered = true;\n }\n\n handleMouseLeave() {\n this.hovered = false;\n }\n\n handleClick(e: Event) {\n if (this.disabled) e.preventDefault();\n this.selected = !this.selected;\n this.onclick.emit({ selected: this.selected });\n }\n\n render() {\n const labelSize = labelSizes[this.size] || labelSizes['default'];\n return (\n <Host>\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"]}
@@ -76,7 +76,7 @@ export class CuraButtonTransparent {
76
76
  render() {
77
77
  const symbolColor = this.getSymbolColor();
78
78
  const labelSize = labelSizes[this.size] || labelSizes["default"];
79
- 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 })))));
79
+ 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 })))));
80
80
  }
81
81
  static get is() { return "cura-button-transparent"; }
82
82
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class CuraAlert {
44
44
  return this.icon ? this.icon : iconMapping[this.type];
45
45
  }
46
46
  render() {
47
- 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 ?
47
+ 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 ?
48
48
  (h("cura-icon", { name: "close", size: 16, color: "error-dark", class: "icon-right", onClick: this.handleClose }))
49
49
  : '')));
50
50
  }
@@ -39,7 +39,7 @@ export class CuraAvatar {
39
39
  this.imageSrc = this.imageSrcDefault || `${this.assetsPath}/images/avatar/patient-default.svg`;
40
40
  }
41
41
  render() {
42
- 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() }))));
42
+ 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() }))));
43
43
  }
44
44
  static get is() { return "cura-avatar"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -452,7 +452,7 @@ export class CuraCalendar {
452
452
  }
453
453
  render() {
454
454
  const { months } = this.fetchMonthNames();
455
- 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
455
+ 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
456
456
  ? this.fetchDaysOfMonth().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))
457
457
  : 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)));
458
458
  }
@@ -34,7 +34,7 @@ export class CuraCard {
34
34
  return classes;
35
35
  }
36
36
  render() {
37
- 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)))));
37
+ 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)))));
38
38
  }
39
39
  static get is() { return "cura-card"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,3 @@
1
- export const microIcons = ['arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'check', 'checkDouble', 'close', 'closeCircle', 'collapse', 'down', 'expand', 'linkExternal', 'link', 'left', 'minus', 'minusCircle', 'minusSquare', 'order', 'subItem', 'right', 'plus', 'plusCircle', 'plusSquare', 'up', 'filter', 'swap'];
2
1
  export const iconSizes = {
3
2
  "128": { size: 128, stroke: 5.25 },
4
3
  "72": { size: 72, stroke: 3.5 },
@@ -9,7 +8,7 @@ export const iconSizes = {
9
8
  "24": { size: 24, stroke: 2 },
10
9
  "20": { size: 20, stroke: 1.75 },
11
10
  "16": { size: 16, stroke: 1.5 },
12
- "micro": { size: 12, stroke: 1.5 },
11
+ "micro": { size: 12, stroke: 1.25 },
13
12
  "default": { size: 24, stroke: 2 }
14
13
  };
15
14
  //# sourceMappingURL=cura-icon.definitions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cura-icon.definitions.js","sourceRoot":"","sources":["../../../src/components/cura-icon/cura-icon.definitions.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAAW,EAAC,WAAW,EAAC,YAAY,EAAC,SAAS,EAAC,OAAO,EAAC,aAAa,EAAC,OAAO,EAAC,aAAa,EAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,aAAa,EAAC,aAAa,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,YAAY,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,MAAM,CAAC,CAAC;AAEnS,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,EAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAC;IAChC,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAC;IAC3B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;IACjC,SAAS,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAC;CACjC,CAAC","sourcesContent":["export const microIcons = ['arrowDown','arrowLeft','arrowRight','arrowUp','check','checkDouble','close','closeCircle','collapse','down','expand','linkExternal','link','left','minus','minusCircle','minusSquare','order','subItem','right','plus','plusCircle','plusSquare','up','filter','swap'];\n\nexport const iconSizes = {\n \"128\": {size: 128, stroke: 5.25},\n \"72\": {size: 72, stroke: 3.5},\n \"64\": {size: 64, stroke: 3.25},\n \"48\": {size: 48, stroke: 2.75},\n \"40\": {size: 40, stroke: 2.5},\n \"32\": {size: 32, stroke: 2.25},\n \"24\": {size: 24, stroke: 2},\n \"20\": {size: 20, stroke: 1.75},\n \"16\": {size: 16, stroke: 1.5},\n \"micro\": {size: 12, stroke: 1.5 },\n \"default\": {size: 24, stroke: 2}\n};\n"]}
1
+ {"version":3,"file":"cura-icon.definitions.js","sourceRoot":"","sources":["../../../src/components/cura-icon/cura-icon.definitions.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,EAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAC;IAChC,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAC;IAC3B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;IAClC,SAAS,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAC;CACjC,CAAC","sourcesContent":["export const iconSizes = {\n \"128\": {size: 128, stroke: 5.25},\n \"72\": {size: 72, stroke: 3.5},\n \"64\": {size: 64, stroke: 3.25},\n \"48\": {size: 48, stroke: 2.75},\n \"40\": {size: 40, stroke: 2.5},\n \"32\": {size: 32, stroke: 2.25},\n \"24\": {size: 24, stroke: 2},\n \"20\": {size: 20, stroke: 1.75},\n \"16\": {size: 16, stroke: 1.5},\n \"micro\": {size: 12, stroke: 1.25 },\n \"default\": {size: 24, stroke: 2}\n};\n"]}