@rededor/cura 1.4.0 → 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 (266) hide show
  1. package/dist/cjs/{cura-accordion_12.cjs.entry.js → cura-accordion_13.cjs.entry.js} +77 -12
  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 +2 -2
  6. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -1
  7. package/dist/cjs/cura-badge-dot.cjs.entry.js +44 -0
  8. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -0
  9. package/dist/cjs/cura-badge-pill.cjs.entry.js +2 -1
  10. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
  11. package/dist/cjs/cura-button-outline.cjs.entry.js +1 -1
  12. package/dist/cjs/cura-button-select.cjs.entry.js +1 -1
  13. package/dist/cjs/cura-button-transparent.cjs.entry.js +1 -1
  14. package/dist/cjs/cura-calendar.cjs.entry.js +1 -1
  15. package/dist/cjs/cura-card.cjs.entry.js +1 -1
  16. package/dist/cjs/cura-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/cura-display.cjs.entry.js +1 -1
  18. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +1 -1
  19. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +2 -2
  20. package/dist/cjs/cura-dropdown-search.cjs.entry.js +27 -21
  21. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
  22. package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
  23. package/dist/cjs/cura-input-date.cjs.entry.js +1 -1
  24. package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
  25. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +98 -0
  26. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +1 -0
  27. package/dist/cjs/cura-radio.cjs.entry.js +1 -1
  28. package/dist/cjs/cura-stepper.cjs.entry.js +123 -0
  29. package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -0
  30. package/dist/cjs/cura-switch.cjs.entry.js +1 -1
  31. package/dist/cjs/cura-toast.cjs.entry.js +1 -1
  32. package/dist/cjs/cura-tooltip.cjs.entry.js +9 -8
  33. package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/cura.cjs.js +1 -1
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/collection/collection-manifest.json +4 -0
  37. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +2 -2
  38. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -1
  39. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.css +61 -0
  40. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +108 -0
  41. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +1 -0
  42. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js +65 -0
  43. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js.map +1 -0
  44. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +2 -1
  45. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
  46. package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
  47. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
  48. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +1 -1
  49. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
  50. package/dist/collection/components/cura-alert/cura-alert.js +1 -1
  51. package/dist/collection/components/cura-avatar/cura-avatar.js +1 -1
  52. package/dist/collection/components/cura-calendar/cura-calendar.js +1 -1
  53. package/dist/collection/components/cura-card/cura-card.js +1 -1
  54. package/dist/collection/components/cura-icon/cura-icon.js +1 -1
  55. package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
  56. package/dist/collection/components/cura-modal/cura-modal.css +3 -3
  57. package/dist/collection/components/cura-modal/cura-modal.js +39 -1
  58. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  59. package/dist/collection/components/cura-modal/cura-modal.stories.js +18 -0
  60. package/dist/collection/components/cura-modal/cura-modal.stories.js.map +1 -1
  61. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
  62. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.css +15 -0
  63. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +121 -0
  64. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +1 -0
  65. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.css +10 -0
  66. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +153 -0
  67. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +1 -0
  68. package/dist/collection/components/cura-stepper/cura-stepper.css +72 -0
  69. package/dist/collection/components/cura-stepper/cura-stepper.js +227 -0
  70. package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -0
  71. package/dist/collection/components/cura-stepper/cura-stepper.stories.js +97 -0
  72. package/dist/collection/components/cura-stepper/cura-stepper.stories.js.map +1 -0
  73. package/dist/collection/components/cura-stepper/stepper.type.js +2 -0
  74. package/dist/collection/components/cura-stepper/stepper.type.js.map +1 -0
  75. package/dist/collection/components/cura-toast/cura-toast.js +1 -1
  76. package/dist/collection/components/cura-tooltip/cura-tooltip.js +9 -8
  77. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +1 -1
  78. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
  79. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +2 -2
  80. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +1 -1
  81. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +4 -2
  82. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +28 -21
  83. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  84. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
  85. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  86. package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
  87. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  88. package/dist/collection/components/forms/cura-select/cura-select.stories.js +1 -1
  89. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -1
  90. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  91. package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
  92. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  93. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  94. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  95. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  96. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  97. package/dist/components/cura-alert.js +1 -1
  98. package/dist/components/cura-avatar.js +1 -1
  99. package/dist/components/cura-badge-counter2.js +2 -2
  100. package/dist/components/cura-badge-counter2.js.map +1 -1
  101. package/dist/components/cura-badge-dot.d.ts +11 -0
  102. package/dist/components/cura-badge-dot.js +63 -0
  103. package/dist/components/cura-badge-dot.js.map +1 -0
  104. package/dist/components/cura-badge-pill.js +1 -113
  105. package/dist/components/cura-badge-pill.js.map +1 -1
  106. package/dist/components/cura-badge-pill2.js +118 -0
  107. package/dist/components/cura-badge-pill2.js.map +1 -0
  108. package/dist/components/cura-button-outline.js +1 -1
  109. package/dist/components/cura-button-select.js +1 -1
  110. package/dist/components/cura-button-transparent2.js +1 -1
  111. package/dist/components/cura-button.js +1 -1
  112. package/dist/components/cura-calendar2.js +1 -1
  113. package/dist/components/cura-card.js +1 -1
  114. package/dist/components/cura-checkbox.js +1 -1
  115. package/dist/components/cura-display.js +1 -1
  116. package/dist/components/cura-dropdown-search-option-title.js +1 -1
  117. package/dist/components/cura-dropdown-search-option.js +2 -2
  118. package/dist/components/cura-dropdown-search.js +29 -22
  119. package/dist/components/cura-dropdown-search.js.map +1 -1
  120. package/dist/components/cura-heading2.js +1 -1
  121. package/dist/components/cura-icon2.js +1 -1
  122. package/dist/components/cura-icons-view.js +1 -1
  123. package/dist/components/cura-input-date.js +1 -1
  124. package/dist/components/cura-label2.js +1 -1
  125. package/dist/components/cura-loader-bar2.js +1 -1
  126. package/dist/components/cura-loader-circle2.js +1 -1
  127. package/dist/components/cura-modal.js +6 -2
  128. package/dist/components/cura-modal.js.map +1 -1
  129. package/dist/components/cura-page-template.js +1 -1
  130. package/dist/components/cura-paragraph2.js +1 -1
  131. package/dist/components/cura-progress-bar.d.ts +11 -0
  132. package/dist/components/cura-progress-bar.js +8 -0
  133. package/dist/components/cura-progress-bar.js.map +1 -0
  134. package/dist/components/cura-progress-bar2.js +48 -0
  135. package/dist/components/cura-progress-bar2.js.map +1 -0
  136. package/dist/components/cura-radio.js +1 -1
  137. package/dist/components/cura-select-option2.js +1 -1
  138. package/dist/components/cura-select2.js +3 -3
  139. package/dist/components/cura-stepper-item.d.ts +11 -0
  140. package/dist/components/cura-stepper-item.js +8 -0
  141. package/dist/components/cura-stepper-item.js.map +1 -0
  142. package/dist/components/cura-stepper-item2.js +116 -0
  143. package/dist/components/cura-stepper-item2.js.map +1 -0
  144. package/dist/components/cura-stepper.d.ts +11 -0
  145. package/dist/components/cura-stepper.js +187 -0
  146. package/dist/components/cura-stepper.js.map +1 -0
  147. package/dist/components/cura-switch.js +1 -1
  148. package/dist/components/cura-toast.js +1 -1
  149. package/dist/components/cura-tooltip.js +9 -8
  150. package/dist/components/cura-tooltip.js.map +1 -1
  151. package/dist/components/index.js +8 -0
  152. package/dist/components/index.js.map +1 -1
  153. package/dist/cura/cura.esm.js +1 -1
  154. package/dist/cura/cura.esm.js.map +1 -1
  155. package/dist/cura/{p-a91d451f.entry.js → p-04006a3e.entry.js} +2 -2
  156. package/dist/cura/{p-576c65b4.entry.js → p-0a133399.entry.js} +2 -2
  157. package/dist/cura/{p-116a1cd6.entry.js → p-164ddb46.entry.js} +2 -2
  158. package/dist/cura/{p-36dbec98.entry.js → p-235ac0b4.entry.js} +2 -2
  159. package/dist/cura/p-23fa2246.entry.js +2 -0
  160. package/dist/cura/p-23fa2246.entry.js.map +1 -0
  161. package/dist/cura/{p-c4da4c44.entry.js → p-2af6216a.entry.js} +2 -2
  162. package/dist/cura/{p-3d958d45.entry.js → p-3c0931d3.entry.js} +2 -2
  163. package/dist/cura/{p-3eca0f0c.entry.js → p-46b21329.entry.js} +2 -2
  164. package/dist/cura/{p-bdb1a0c5.entry.js → p-4aefe237.entry.js} +2 -2
  165. package/dist/cura/{p-aa65cb50.entry.js → p-529332d3.entry.js} +2 -2
  166. package/dist/cura/{p-aa65cb50.entry.js.map → p-529332d3.entry.js.map} +1 -1
  167. package/dist/cura/{p-19f28fa8.entry.js → p-545e8e55.entry.js} +2 -2
  168. package/dist/cura/p-557b90c4.entry.js +2 -0
  169. package/dist/cura/p-557b90c4.entry.js.map +1 -0
  170. package/dist/cura/p-6624108e.entry.js +2 -0
  171. package/dist/cura/p-6b627841.entry.js +2 -0
  172. package/dist/cura/p-6b627841.entry.js.map +1 -0
  173. package/dist/cura/{p-ef593f12.entry.js → p-6f1a3fe5.entry.js} +2 -2
  174. package/dist/cura/p-6f1a3fe5.entry.js.map +1 -0
  175. package/dist/cura/{p-52f854e0.entry.js → p-7ba80d78.entry.js} +2 -2
  176. package/dist/cura/{p-52f854e0.entry.js.map → p-7ba80d78.entry.js.map} +1 -1
  177. package/dist/cura/p-8622c492.entry.js +2 -0
  178. package/dist/cura/p-8622c492.entry.js.map +1 -0
  179. package/dist/cura/{p-42258230.entry.js → p-a5af4225.entry.js} +2 -2
  180. package/dist/cura/{p-b1a51e81.entry.js → p-a7c60a4e.entry.js} +2 -2
  181. package/dist/cura/{p-2545cfc7.entry.js → p-b3e93e74.entry.js} +2 -2
  182. package/dist/cura/{p-dcd2e5bb.entry.js → p-bce10f9b.entry.js} +2 -2
  183. package/dist/cura/p-cfbe2bce.entry.js +2 -0
  184. package/dist/cura/p-cfbe2bce.entry.js.map +1 -0
  185. package/dist/cura/{p-818c581f.entry.js → p-d13e3295.entry.js} +2 -2
  186. package/dist/cura/{p-e1a41792.entry.js → p-ec7876d3.entry.js} +2 -2
  187. package/dist/cura/{p-4b496c51.entry.js → p-f96b0923.entry.js} +2 -2
  188. package/dist/esm/{cura-accordion_12.entry.js → cura-accordion_13.entry.js} +77 -13
  189. package/dist/esm/cura-accordion_13.entry.js.map +1 -0
  190. package/dist/esm/cura-alert.entry.js +1 -1
  191. package/dist/esm/cura-avatar.entry.js +1 -1
  192. package/dist/esm/cura-badge-counter.entry.js +2 -2
  193. package/dist/esm/cura-badge-counter.entry.js.map +1 -1
  194. package/dist/esm/cura-badge-dot.entry.js +40 -0
  195. package/dist/esm/cura-badge-dot.entry.js.map +1 -0
  196. package/dist/esm/cura-badge-pill.entry.js +2 -1
  197. package/dist/esm/cura-badge-pill.entry.js.map +1 -1
  198. package/dist/esm/cura-button-outline.entry.js +1 -1
  199. package/dist/esm/cura-button-select.entry.js +1 -1
  200. package/dist/esm/cura-button-transparent.entry.js +1 -1
  201. package/dist/esm/cura-calendar.entry.js +1 -1
  202. package/dist/esm/cura-card.entry.js +1 -1
  203. package/dist/esm/cura-checkbox.entry.js +1 -1
  204. package/dist/esm/cura-display.entry.js +1 -1
  205. package/dist/esm/cura-dropdown-search-option-title.entry.js +1 -1
  206. package/dist/esm/cura-dropdown-search-option.entry.js +2 -2
  207. package/dist/esm/cura-dropdown-search.entry.js +27 -21
  208. package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
  209. package/dist/esm/cura-icons-view.entry.js +1 -1
  210. package/dist/esm/cura-input-date.entry.js +1 -1
  211. package/dist/esm/cura-loader-bar.entry.js +1 -1
  212. package/dist/esm/cura-progress-bar_2.entry.js +93 -0
  213. package/dist/esm/cura-progress-bar_2.entry.js.map +1 -0
  214. package/dist/esm/cura-radio.entry.js +1 -1
  215. package/dist/esm/cura-stepper.entry.js +119 -0
  216. package/dist/esm/cura-stepper.entry.js.map +1 -0
  217. package/dist/esm/cura-switch.entry.js +1 -1
  218. package/dist/esm/cura-toast.entry.js +1 -1
  219. package/dist/esm/cura-tooltip.entry.js +9 -8
  220. package/dist/esm/cura-tooltip.entry.js.map +1 -1
  221. package/dist/esm/cura.js +1 -1
  222. package/dist/esm/loader.js +1 -1
  223. package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.d.ts +24 -0
  224. package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.stories.d.ts +53 -0
  225. package/dist/types/components/cura-modal/cura-modal.d.ts +10 -0
  226. package/dist/types/components/cura-modal/cura-modal.stories.d.ts +20 -0
  227. package/dist/types/components/cura-stepper/cura-progress-bar/cura-progress-bar.d.ts +23 -0
  228. package/dist/types/components/cura-stepper/cura-stepper-item/cura-stepper-item.d.ts +60 -0
  229. package/dist/types/components/cura-stepper/cura-stepper.d.ts +62 -0
  230. package/dist/types/components/cura-stepper/cura-stepper.stories.d.ts +77 -0
  231. package/dist/types/components/cura-stepper/stepper.type.d.ts +4 -0
  232. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +3 -1
  233. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +1 -1
  234. package/dist/types/components.d.ts +206 -0
  235. package/package.json +2 -2
  236. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +0 -1
  237. package/dist/cjs/cura-modal.cjs.entry.js +0 -71
  238. package/dist/cjs/cura-modal.cjs.entry.js.map +0 -1
  239. package/dist/cura/p-35920ac0.entry.js +0 -2
  240. package/dist/cura/p-35920ac0.entry.js.map +0 -1
  241. package/dist/cura/p-3e4ca7e7.entry.js +0 -2
  242. package/dist/cura/p-3e4ca7e7.entry.js.map +0 -1
  243. package/dist/cura/p-ef593f12.entry.js.map +0 -1
  244. package/dist/cura/p-f23c4ed8.entry.js +0 -2
  245. package/dist/cura/p-f23c4ed8.entry.js.map +0 -1
  246. package/dist/cura/p-f5d45776.entry.js +0 -2
  247. package/dist/esm/cura-accordion_12.entry.js.map +0 -1
  248. package/dist/esm/cura-modal.entry.js +0 -67
  249. package/dist/esm/cura-modal.entry.js.map +0 -1
  250. /package/dist/cura/{p-a91d451f.entry.js.map → p-04006a3e.entry.js.map} +0 -0
  251. /package/dist/cura/{p-576c65b4.entry.js.map → p-0a133399.entry.js.map} +0 -0
  252. /package/dist/cura/{p-116a1cd6.entry.js.map → p-164ddb46.entry.js.map} +0 -0
  253. /package/dist/cura/{p-36dbec98.entry.js.map → p-235ac0b4.entry.js.map} +0 -0
  254. /package/dist/cura/{p-c4da4c44.entry.js.map → p-2af6216a.entry.js.map} +0 -0
  255. /package/dist/cura/{p-3d958d45.entry.js.map → p-3c0931d3.entry.js.map} +0 -0
  256. /package/dist/cura/{p-3eca0f0c.entry.js.map → p-46b21329.entry.js.map} +0 -0
  257. /package/dist/cura/{p-bdb1a0c5.entry.js.map → p-4aefe237.entry.js.map} +0 -0
  258. /package/dist/cura/{p-19f28fa8.entry.js.map → p-545e8e55.entry.js.map} +0 -0
  259. /package/dist/cura/{p-f5d45776.entry.js.map → p-6624108e.entry.js.map} +0 -0
  260. /package/dist/cura/{p-42258230.entry.js.map → p-a5af4225.entry.js.map} +0 -0
  261. /package/dist/cura/{p-b1a51e81.entry.js.map → p-a7c60a4e.entry.js.map} +0 -0
  262. /package/dist/cura/{p-2545cfc7.entry.js.map → p-b3e93e74.entry.js.map} +0 -0
  263. /package/dist/cura/{p-dcd2e5bb.entry.js.map → p-bce10f9b.entry.js.map} +0 -0
  264. /package/dist/cura/{p-818c581f.entry.js.map → p-d13e3295.entry.js.map} +0 -0
  265. /package/dist/cura/{p-e1a41792.entry.js.map → p-ec7876d3.entry.js.map} +0 -0
  266. /package/dist/cura/{p-4b496c51.entry.js.map → p-f96b0923.entry.js.map} +0 -0
@@ -42,7 +42,7 @@ const CuraSelectOption = /*@__PURE__*/ proxyCustomElement(class CuraSelectOption
42
42
  };
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: 'cf0489e6e396d60d4a4f71e306727ac12b3fbb7a', slot: "option" }, h("div", { key: 'e970f361bff2c54e0324e43a612d3fa45a83b2bd', class: this.getClasses(), style: this.styles }, h("cura-label", { key: '7bbcc39a51c2c9e14f233c94ea2dcf20543e11eb', color: `${this.selected ? 'primary-base' : 'neutral-black'}`, size: this.getSize('label'), "margin-block": "0" }, h("slot", { key: 'f5a54eaf4e2ef19239ca185b39897f98d11f05c7' })), this.selected && h("cura-icon", { key: '8a1560793da12ec6f5d3e9dc2db7e242a440267c', name: 'check', size: this.getSize('icon'), color: "primary-base" }))));
45
+ return (h(Host, { key: '52804251a1d97d2288a0db65db60c53f32151ff2', slot: "option" }, h("div", { key: '3203a910590d8a920109c995f9f60a5f8a01f58b', class: this.getClasses(), style: this.styles }, h("cura-label", { key: 'be6b3a56e7665ea059c0859f97a1b7884d8605f9', color: `${this.selected ? 'primary-base' : 'neutral-black'}`, size: this.getSize('label'), "margin-block": "0" }, h("slot", { key: '5077a345d3524e0c14c33573f1a650b4c1aeb9ff' })), this.selected && h("cura-icon", { key: '4c76229249ef35319d92d1c05321c79ea93790b3', name: 'check', size: this.getSize('icon'), color: "primary-base" }))));
46
46
  }
47
47
  get host() { return this; }
48
48
  static get watchers() { return {
@@ -276,13 +276,13 @@ const CuraSelect = /*@__PURE__*/ proxyCustomElement(class CuraSelect extends HTM
276
276
  return (h("cura-icon", { class: 'feedback-icon', name: icon, iconset: 'default', size: this.size === 'large' ? 20 : 16, color: this.getColor('icon'), style: this.styles }));
277
277
  }
278
278
  render() {
279
- return (h(Host, { key: 'cb2962534d4f39e83739c14396bf7ada6389f4e2', style: this.styles }, h("div", { key: '2b09c26a8f5e1dd8f11b8624c4fbc4d840cdb9fd', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: 'c6585f4b4024a42ce4e105acec9f1710b7c0eb71', class: 'label', weight: 'bold', size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '4dcc4a50529b1521b43a7e8bbeee62d0bbc12dc7', class: 'required' }, "* "))), h("div", { key: '189da945bff9d9e946ef5b46d2a021b29b508214', class: {
279
+ return (h(Host, { key: '80cc2b0b4aa2ea8421cf2bee808b1c1d18dfd805', style: this.styles }, h("div", { key: '93d8b6c8a1c10d0ed7382349cad19713a5f9e27c', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: 'a7a60586c38e2f0fd746bf4b0d5b161fb506ba14', class: 'label', weight: 'bold', size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '57903ed08819a70cd02267cccfb419fb47f3ef42', class: 'required' }, "* "))), h("div", { key: '252158e79c221c977b0015de743aa3df8843aa4b', class: {
280
280
  'cura-input-field': true,
281
281
  'open': this.isOpen
282
- } }, this.renderIcon(), h("input", { key: '13cc7d03a4770819a84239ab934f7a73f10434db', type: "text", autocomplete: 'off', onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("cura-icon", { key: 'c0ccb27b7de0849b0e960e69ef472463a4b9d02b', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: 'default' })), h("cura-label", { key: '5b093234b507fe6a2c350e9bee5e9a24eba2e5d6', class: "helper-text", size: 'xsmall', color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: 'c051fa93257f3d68945fa15edd2ab10e9ca75087' })), this.isOpen && (h("div", { key: '8a20447dee35780853e3560c86975ead069e9369', class: {
282
+ } }, this.renderIcon(), h("input", { key: 'b27fb9017445068047eef3b58bfbf9d365d1e5fb', type: "text", autocomplete: 'off', onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("cura-icon", { key: 'a90e58a4e11de658595208dfd9a2797e1adca140', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: 'default' })), h("cura-label", { key: '70ed24f2b6657b41d5afc914c0ae9a9293e941ba', class: "helper-text", size: 'xsmall', color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: 'd3f8934cd5a8ad0af564559925d2e5d8cfc356f6' })), this.isOpen && (h("div", { key: 'abd2100c9a4c63c1456d19eee808c43ca0b647f2', class: {
283
283
  'menu': true,
284
284
  'open': this.isOpen
285
- } }, h("slot", { key: 'dff5e6b54842ed9a6e458414977080069a0c4b5c', name: 'option' }))))));
285
+ } }, h("slot", { key: 'c6c4129a91e3e5c71897e96a07533754333c4ee6', name: 'option' }))))));
286
286
  }
287
287
  static get formAssociated() { return true; }
288
288
  get host() { return this; }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraStepperItem extends Components.CuraStepperItem, HTMLElement {}
4
+ export const CuraStepperItem: {
5
+ prototype: CuraStepperItem;
6
+ new (): CuraStepperItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { C as CuraStepperItem$1, d as defineCustomElement$1 } from './cura-stepper-item2.js';
2
+
3
+ const CuraStepperItem = CuraStepperItem$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { CuraStepperItem, defineCustomElement };
7
+
8
+ //# sourceMappingURL=cura-stepper-item.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-stepper-item.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,116 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$4 } from './cura-badge-pill2.js';
3
+ import { d as defineCustomElement$3 } from './cura-icon2.js';
4
+ import { d as defineCustomElement$2 } from './cura-label2.js';
5
+ import { d as defineCustomElement$1 } from './cura-paragraph2.js';
6
+
7
+ const curaStepperItemCss = ":host{display:block;box-sizing:border-box}.item-container{display:flex;gap:4px;align-items:center}";
8
+ const CuraStepperItemStyle0 = curaStepperItemCss;
9
+
10
+ const CuraStepperItem = /*@__PURE__*/ proxyCustomElement(class CuraStepperItem extends HTMLElement {
11
+ constructor() {
12
+ super();
13
+ this.__registerHost();
14
+ this.__attachShadow();
15
+ this.statusMap = {
16
+ active: {
17
+ badgeColor: 'info',
18
+ textColor: 'info-dark',
19
+ icon: '',
20
+ iconOnly: false,
21
+ },
22
+ stop: {
23
+ badgeColor: 'error',
24
+ textColor: 'error-darker',
25
+ icon: 'alertCircle',
26
+ iconOnly: true,
27
+ },
28
+ done: {
29
+ badgeColor: 'success',
30
+ textColor: 'success-darker',
31
+ icon: 'checkCircle',
32
+ iconOnly: true,
33
+ },
34
+ default: {
35
+ badgeColor: 'neutral',
36
+ textColor: 'neutral',
37
+ icon: '',
38
+ iconOnly: false,
39
+ },
40
+ };
41
+ this.displayHeading = false;
42
+ this.heading = undefined;
43
+ this.label = undefined;
44
+ this.status = 'default';
45
+ this.styles = {};
46
+ }
47
+ connectedCallback() {
48
+ this.updateStyles();
49
+ }
50
+ getStatusProperties() {
51
+ return this.statusMap[this.status] || this.statusMap.default;
52
+ }
53
+ updateStyles() {
54
+ const { fonts, colors, spacing } = window.CuraAPI.theme;
55
+ const weights = fonts.getWeights();
56
+ this.styles = {
57
+ '--base-spacing': spacing.getSpacing(),
58
+ '--neutral-purewhite': colors.getColor('neutral-purewhite'),
59
+ '--neutral-lighter': colors.getColor('neutral-lighter'),
60
+ '--neutral-base': colors.getColor('neutral-base'),
61
+ '--font-size': fonts.getSize(),
62
+ '--font-color': fonts.getColor(),
63
+ '--font-family': fonts.getFamily(),
64
+ '--font-weight-regular': weights.regular,
65
+ };
66
+ }
67
+ render() {
68
+ const { badgeColor, textColor, icon, iconOnly } = this.getStatusProperties();
69
+ return (h(Host, { key: 'c226daf451d9c861d5303474ef0fc31c1602371b' }, h("div", { key: '7aece988946e4bef02c597a80ea1a505c201e188', class: "item-container", style: this.styles }, h("cura-badge-pill", { key: 'd0362b4a4ee3c047173399ea5f7c912a5a0f7810', type: "solid", color: badgeColor, "icon-name": icon, "icon-only": iconOnly, "border-radius": "50%" }, this.label), this.displayHeading && this.heading && (h("cura-paragraph", { key: '015effecdb26be22386363e77bd5a0e671701d60', marginBlock: "0", size: "xsmall", color: textColor }, this.heading)))));
70
+ }
71
+ get hostElement() { return this; }
72
+ static get style() { return CuraStepperItemStyle0; }
73
+ }, [1, "cura-stepper-item", {
74
+ "displayHeading": [516, "display-heading"],
75
+ "heading": [513],
76
+ "label": [513],
77
+ "status": [513],
78
+ "styles": [32]
79
+ }]);
80
+ function defineCustomElement() {
81
+ if (typeof customElements === "undefined") {
82
+ return;
83
+ }
84
+ const components = ["cura-stepper-item", "cura-badge-pill", "cura-icon", "cura-label", "cura-paragraph"];
85
+ components.forEach(tagName => { switch (tagName) {
86
+ case "cura-stepper-item":
87
+ if (!customElements.get(tagName)) {
88
+ customElements.define(tagName, CuraStepperItem);
89
+ }
90
+ break;
91
+ case "cura-badge-pill":
92
+ if (!customElements.get(tagName)) {
93
+ defineCustomElement$4();
94
+ }
95
+ break;
96
+ case "cura-icon":
97
+ if (!customElements.get(tagName)) {
98
+ defineCustomElement$3();
99
+ }
100
+ break;
101
+ case "cura-label":
102
+ if (!customElements.get(tagName)) {
103
+ defineCustomElement$2();
104
+ }
105
+ break;
106
+ case "cura-paragraph":
107
+ if (!customElements.get(tagName)) {
108
+ defineCustomElement$1();
109
+ }
110
+ break;
111
+ } });
112
+ }
113
+
114
+ export { CuraStepperItem as C, defineCustomElement as d };
115
+
116
+ //# sourceMappingURL=cura-stepper-item2.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-stepper-item2.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,oGAAoG,CAAC;AAChI,8BAAe,kBAAkB;;MCMpB,eAAe;;;;;QAkC1B,cAAS,GAAG;YACV,MAAM,EAAE;gBACN,UAAU,EAAE,MAAM;gBAClB,SAAS,EAAE,WAAW;gBACtB,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,KAAK;aAChB;YACD,IAAI,EAAE;gBACJ,UAAU,EAAE,OAAO;gBACnB,SAAS,EAAE,cAAc;gBACzB,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,IAAI;aACf;YACD,IAAI,EAAE;gBACJ,UAAU,EAAE,SAAS;gBACrB,SAAS,EAAE,gBAAgB;gBAC3B,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,IAAI;aACf;YACD,OAAO,EAAE;gBACP,UAAU,EAAE,SAAS;gBACrB,SAAS,EAAE,SAAS;gBACpB,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,KAAK;aAChB;SACF,CAAC;8BAvDiD,KAAK;;;sBAoBkB,SAAS;sBAEjE,EAAE;;IAIpB,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;KACrB;IA6BD,mBAAmB;QACjB,OAAO,IAAI,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;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/cura-stepper/cura-stepper-item/cura-stepper-item.scss?tag=cura-stepper-item&encapsulation=shadow","src/components/cura-stepper/cura-stepper-item/cura-stepper-item.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n}\n\n.item-container{\n display: flex;\n gap: 4px;\n align-items: center;\n}\n","import { Component, Element, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-stepper-item',\n styleUrl: 'cura-stepper-item.scss',\n shadow: true,\n})\nexport class CuraStepperItem {\n /**\n * Determines if the step title is displayed (default: false)\n */\n @Prop({ reflect: true }) displayHeading: boolean = false;\n\n /**\n * The title of the step (displayed if `displayHeading` is true)\n */\n @Prop({ reflect: true }) heading: string;\n\n /**\n * The label displayed inside the badge\n */\n @Prop({ reflect: true }) label: string;\n\n /**\n * The current status of the step\n * Can be:\n * - 'done' for completed steps\n * - 'stop' for failed steps\n * - 'active' for the current active step\n * - 'default' for steps that are neither done, active nor stopped.\n */\n @Prop({ reflect: true }) status: 'done' | 'stop' | 'active' | 'default' = 'default';\n\n @State() styles = {};\n\n @Element() hostElement: HTMLElement;\n\n connectedCallback() {\n this.updateStyles();\n }\n\n statusMap = {\n active: {\n badgeColor: 'info',\n textColor: 'info-dark',\n icon: '',\n iconOnly: false,\n },\n stop: {\n badgeColor: 'error',\n textColor: 'error-darker',\n icon: 'alertCircle',\n iconOnly: true,\n },\n done: {\n badgeColor: 'success',\n textColor: 'success-darker',\n icon: 'checkCircle',\n iconOnly: true,\n },\n default: {\n badgeColor: 'neutral',\n textColor: 'neutral',\n icon: '',\n iconOnly: false,\n },\n };\n\n getStatusProperties() {\n return this.statusMap[this.status] || this.statusMap.default;\n }\n\n updateStyles() {\n const { fonts, colors, spacing } = window.CuraAPI.theme;\n const weights = fonts.getWeights();\n\n this.styles = {\n '--base-spacing': spacing.getSpacing(),\n '--neutral-purewhite': colors.getColor('neutral-purewhite'),\n '--neutral-lighter': colors.getColor('neutral-lighter'),\n '--neutral-base': colors.getColor('neutral-base'),\n '--font-size': fonts.getSize(),\n '--font-color': fonts.getColor(),\n '--font-family': fonts.getFamily(),\n '--font-weight-regular': weights.regular,\n };\n }\n\n render() {\n const { badgeColor, textColor, icon, iconOnly } = this.getStatusProperties();\n return (\n <Host>\n <div class=\"item-container\" style={this.styles}>\n <cura-badge-pill\n type=\"solid\"\n color={badgeColor as 'info' | 'error' | 'success' | 'neutral' | 'primary' | 'secondary' | 'accent' | 'warning'}\n icon-name={icon}\n icon-only={iconOnly}\n border-radius=\"50%\"\n >\n {this.label}\n </cura-badge-pill>\n {this.displayHeading && this.heading && (\n <cura-paragraph marginBlock=\"0\" size=\"xsmall\" color={textColor}>\n {this.heading}\n </cura-paragraph>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CuraStepper extends Components.CuraStepper, HTMLElement {}
4
+ export const CuraStepper: {
5
+ prototype: CuraStepper;
6
+ new (): CuraStepper;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,187 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$8 } from './cura-badge-pill2.js';
3
+ import { d as defineCustomElement$7 } from './cura-heading2.js';
4
+ import { d as defineCustomElement$6 } from './cura-icon2.js';
5
+ import { d as defineCustomElement$5 } from './cura-label2.js';
6
+ import { d as defineCustomElement$4 } from './cura-paragraph2.js';
7
+ import { d as defineCustomElement$3 } from './cura-progress-bar2.js';
8
+ import { d as defineCustomElement$2 } from './cura-stepper-item2.js';
9
+
10
+ const curaStepperCss = ":host{display:block;box-sizing:border-box;width:100%}cura-heading{--margin-block:0 !important}.container{display:flex}.compact{display:flex;padding:0px;justify-content:space-between;align-items:center}.compact .heading{text-align:right}.stepper-list{gap:4px;display:flex;flex-shrink:0;align-items:center;padding:0;flex:1;width:100%;justify-content:space-between}.step{display:flex;align-items:center;flex-direction:row;flex:1;gap:4px}.step .wrapper{flex:1;position:relative}.step .divider{background-color:var(--neutral-light);height:2px;flex:1;transition:all 1s}.step .animation{position:absolute;top:0;left:0;right:0;width:var(--progress-width)}.step .done{background-color:var(--success-light)}.step .stop{background-color:var(--error-light)}.step .active{background-color:var(--info-light)}.last{flex:0}";
11
+ const CuraStepperStyle0 = curaStepperCss;
12
+
13
+ const CuraStepper$1 = /*@__PURE__*/ proxyCustomElement(class CuraStepper extends HTMLElement {
14
+ constructor() {
15
+ super();
16
+ this.__registerHost();
17
+ this.__attachShadow();
18
+ this.activeStepIndex = undefined;
19
+ this.errorInCurrentStep = false;
20
+ this.displayHeading = false;
21
+ this.variant = 'default';
22
+ this.steps = [];
23
+ this.styles = {};
24
+ this.stepList = [];
25
+ }
26
+ connectedCallback() {
27
+ this.initializeSteps();
28
+ const { fonts, colors, spacing } = window.CuraAPI.theme;
29
+ const weights = fonts.getWeights();
30
+ this.styles = this.generateStyles(colors, fonts, spacing, weights);
31
+ }
32
+ generateStyles(colors, fonts, spacing, weights) {
33
+ return {
34
+ '--base-spacing': spacing.getSpacing(),
35
+ '--neutral-purewhite': colors.getColor('neutral-purewhite'),
36
+ '--neutral-lighter': colors.getColor('neutral-lighter'),
37
+ '--neutral-base': colors.getColor('neutral-base'),
38
+ '--neutral-light': colors.getColor('neutral-light'),
39
+ '--success-light': colors.getColor('success-light'),
40
+ '--info-light': colors.getColor('info-light'),
41
+ '--error-light': colors.getColor('error-light'),
42
+ '--font-size': fonts.getSize(),
43
+ '--font-color': fonts.getColor(),
44
+ '--font-family': fonts.getFamily(),
45
+ '--font-weight-regular': weights.regular,
46
+ };
47
+ }
48
+ initializeSteps() {
49
+ if (typeof this.steps === 'string') {
50
+ this.stepList = JSON.parse(this.steps || '[]');
51
+ }
52
+ else {
53
+ this.stepList = this.steps;
54
+ }
55
+ }
56
+ getStepStatus(step) {
57
+ if (this.activeStepIndex === step && this.errorInCurrentStep)
58
+ return 'stop';
59
+ if (this.activeStepIndex === step && this.stepList.length !== step)
60
+ return 'active';
61
+ if (this.activeStepIndex >= step)
62
+ return 'done';
63
+ return 'default';
64
+ }
65
+ getProgressStyles() {
66
+ const progressStyles = {
67
+ default: {
68
+ progressColor: 'var(--info-light)',
69
+ activeStepTextColor: 'info-darker',
70
+ nextStepTextColor: 'info-dark',
71
+ },
72
+ firstStep: {
73
+ progressColor: 'var(--info-light)',
74
+ activeStepTextColor: 'neutral-dark',
75
+ nextStepTextColor: 'neutral-medium',
76
+ },
77
+ completed: {
78
+ progressColor: 'var(--success-light)',
79
+ activeStepTextColor: 'success-darker',
80
+ nextStepTextColor: 'success-dark',
81
+ },
82
+ error: {
83
+ progressColor: 'var(--error-light)',
84
+ activeStepTextColor: 'error-darker',
85
+ nextStepTextColor: 'error-dark',
86
+ },
87
+ };
88
+ if (this.errorInCurrentStep) {
89
+ return progressStyles.error;
90
+ }
91
+ if (this.activeStepIndex === 0) {
92
+ return progressStyles.firstStep;
93
+ }
94
+ if (this.activeStepIndex === this.stepList.length) {
95
+ return progressStyles.completed;
96
+ }
97
+ return progressStyles.default;
98
+ }
99
+ renderCompactStepper() {
100
+ var _a;
101
+ const title = this.activeStepIndex === 0 ? this.stepList[this.activeStepIndex].title : this.stepList[this.activeStepIndex - 1].title;
102
+ const subtitle = this.activeStepIndex === 0 ? this.stepList[this.activeStepIndex + 1].title : (_a = this.stepList[this.activeStepIndex]) === null || _a === void 0 ? void 0 : _a.title;
103
+ const completed = this.activeStepIndex === this.stepList.length;
104
+ const inProgress = !(completed || this.errorInCurrentStep);
105
+ const { progressColor, activeStepTextColor, nextStepTextColor } = this.getProgressStyles();
106
+ // Representa a porcentagem de progresso (step atual / quantidade de steps;)
107
+ const progress = (this.activeStepIndex * 100) / this.stepList.length;
108
+ return (h("div", { class: "container compact", style: this.styles }, h("cura-progress-bar", { progress: progress, progressColor: progressColor, active: this.activeStepIndex !== 0 }, !inProgress ? (h("cura-icon", { name: this.errorInCurrentStep ? 'alertCircle' : 'checkCircle', color: this.errorInCurrentStep ? 'error-dark' : 'success-dark', size: "16" })) : (h("cura-heading", { color: "neutral-dark", size: "xsmall" }, this.activeStepIndex, "/", this.stepList.length))), this.displayHeading && (h("div", { class: "heading" }, h("cura-heading", { size: "small", weight: "bold", color: activeStepTextColor }, title), !completed && (h("cura-heading", { size: "xsmall", weight: "regular", color: nextStepTextColor }, "Pr\u00F3ximo: ", subtitle))))));
109
+ }
110
+ renderStep(step, stepIndex) {
111
+ const stepStatus = this.getStepStatus(stepIndex + 1);
112
+ const lastStep = stepIndex === this.stepList.length - 1;
113
+ const progressWidth = stepStatus !== 'default' ? '100%' : '0';
114
+ return (h("div", { class: `step ${lastStep ? 'last' : ''}`, key: step.title }, h("cura-stepper-item", { heading: step.title, label: step.label, displayHeading: this.displayHeading, status: stepStatus }), stepIndex < this.stepList.length - 1 && (h("div", { class: "wrapper" }, h("div", { class: "divider" }), h("div", { class: `divider ${stepStatus} animation`, style: { '--progress-width': progressWidth } })))));
115
+ }
116
+ renderStepper() {
117
+ return (h("div", { class: "container", style: this.styles }, h("div", { class: "stepper-list" }, this.stepList.map((step, stepIndex) => this.renderStep(step, stepIndex)))));
118
+ }
119
+ render() {
120
+ return h(Host, { key: 'a3c23a43dc82cba74b777a7e28ae7de1632ec95d' }, this.variant === 'default' ? this.renderStepper() : this.renderCompactStepper());
121
+ }
122
+ get host() { return this; }
123
+ static get style() { return CuraStepperStyle0; }
124
+ }, [1, "cura-stepper", {
125
+ "activeStepIndex": [514, "active-step-index"],
126
+ "errorInCurrentStep": [516, "error-in-current-step"],
127
+ "displayHeading": [516, "display-heading"],
128
+ "variant": [513],
129
+ "steps": [1],
130
+ "styles": [32],
131
+ "stepList": [32]
132
+ }]);
133
+ function defineCustomElement$1() {
134
+ if (typeof customElements === "undefined") {
135
+ return;
136
+ }
137
+ const components = ["cura-stepper", "cura-badge-pill", "cura-heading", "cura-icon", "cura-label", "cura-paragraph", "cura-progress-bar", "cura-stepper-item"];
138
+ components.forEach(tagName => { switch (tagName) {
139
+ case "cura-stepper":
140
+ if (!customElements.get(tagName)) {
141
+ customElements.define(tagName, CuraStepper$1);
142
+ }
143
+ break;
144
+ case "cura-badge-pill":
145
+ if (!customElements.get(tagName)) {
146
+ defineCustomElement$8();
147
+ }
148
+ break;
149
+ case "cura-heading":
150
+ if (!customElements.get(tagName)) {
151
+ defineCustomElement$7();
152
+ }
153
+ break;
154
+ case "cura-icon":
155
+ if (!customElements.get(tagName)) {
156
+ defineCustomElement$6();
157
+ }
158
+ break;
159
+ case "cura-label":
160
+ if (!customElements.get(tagName)) {
161
+ defineCustomElement$5();
162
+ }
163
+ break;
164
+ case "cura-paragraph":
165
+ if (!customElements.get(tagName)) {
166
+ defineCustomElement$4();
167
+ }
168
+ break;
169
+ case "cura-progress-bar":
170
+ if (!customElements.get(tagName)) {
171
+ defineCustomElement$3();
172
+ }
173
+ break;
174
+ case "cura-stepper-item":
175
+ if (!customElements.get(tagName)) {
176
+ defineCustomElement$2();
177
+ }
178
+ break;
179
+ } });
180
+ }
181
+
182
+ const CuraStepper = CuraStepper$1;
183
+ const defineCustomElement = defineCustomElement$1;
184
+
185
+ export { CuraStepper, defineCustomElement };
186
+
187
+ //# sourceMappingURL=cura-stepper.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-stepper.js","mappings":";;;;;;;;;AAAA,MAAM,cAAc,GAAG,yyBAAyyB,CAAC;AACj0B,0BAAe,cAAc;;MCOhBA,aAAW;;;;;;kCAUiC,KAAK;8BAKT,KAAK;uBAKE,SAAS;qBAKlC,EAAE;sBAMjB,EAAE;wBAQQ,EAAE;;IAE9B,iBAAiB;QACf,IAAI,CAAC,eAAe,EAAE,CAAC;QAEvB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;QACxD,MAAM,OAAO,GAAG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C,OAAO,KAAK,SAAS,GAAG,IAAI,CAAC,aAAa,EAAE,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAQ,CAAC;KACvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CuraStepper"],"sources":["src/components/cura-stepper/cura-stepper.scss?tag=cura-stepper&encapsulation=shadow","src/components/cura-stepper/cura-stepper.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n width: 100%;\n}\n\ncura-heading { \n --margin-block: 0 !important;\n}\n\n.container {\n display: flex;\n}\n\n.compact {\n display: flex;\n padding: 0px;\n justify-content: space-between;\n align-items: center;\n\n .heading{\n text-align: right;\n }\n}\n\n.stepper-list {\n gap: 4px;\n display: flex;\n flex-shrink: 0;\n align-items: center;\n padding: 0;\n flex: 1;\n width: 100%;\n justify-content: space-between;\n}\n\n.step{\n display: flex;\n align-items: center;\n flex-direction: row;\n flex: 1;\n gap: 4px;\n\n .wrapper {\n flex: 1;\n position: relative;\n }\n\n .divider{\n background-color: var(--neutral-light);\n height: 2px;\n flex: 1;\n\n transition: all 1s;\n }\n\n .animation {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n width: var(--progress-width);\n }\n\n .done{\n background-color: var(--success-light);\n }\n\n .stop{\n background-color: var(--error-light);\n }\n\n .active{\n background-color: var(--info-light);\n }\n}\n\n.last{\n flex: 0;\n}\n","import { Component, Host, State, h, Element, Prop } from '@stencil/core';\nimport { Step } from './stepper.type';\n\n@Component({\n tag: 'cura-stepper',\n styleUrl: 'cura-stepper.scss',\n shadow: true,\n})\nexport class CuraStepper {\n /**\n * The current active step index\n */\n @Prop({ reflect: true }) activeStepIndex: number;\n\n /**\n * Indicates if a step has encountered an error\n * If `true`, the current step will be marked as 'stop'\n */\n @Prop({ reflect: true }) errorInCurrentStep: boolean = false;\n\n /**\n * Whether to display the title (default: false)\n */\n @Prop({ reflect: true }) displayHeading: boolean = false;\n\n /**\n * Allows you to set the appearance of the component (default: default)\n */\n @Prop({ reflect: true }) variant: 'compact' | 'default' = 'default';\n\n /**\n * List of steps in the stepper.\n */\n @Prop() steps: Step[] | string = [];\n /**\n * Reference to the host element.\n */\n @Element() host: HTMLElement;\n\n @State() styles = {};\n\n /**\n * Array of steps in the stepper.\n *\n * @type {Date[]}\n * @default []\n */\n @State() stepList: Step[] = [];\n\n connectedCallback() {\n this.initializeSteps();\n\n const { fonts, colors, spacing } = window.CuraAPI.theme;\n const weights = fonts.getWeights();\n\n this.styles = this.generateStyles(colors, fonts, spacing, weights);\n }\n\n generateStyles(colors, fonts, spacing, weights) {\n return {\n '--base-spacing': spacing.getSpacing(),\n '--neutral-purewhite': colors.getColor('neutral-purewhite'),\n '--neutral-lighter': colors.getColor('neutral-lighter'),\n '--neutral-base': colors.getColor('neutral-base'),\n '--neutral-light': colors.getColor('neutral-light'),\n '--success-light': colors.getColor('success-light'),\n '--info-light': colors.getColor('info-light'),\n '--error-light': colors.getColor('error-light'),\n '--font-size': fonts.getSize(),\n '--font-color': fonts.getColor(),\n '--font-family': fonts.getFamily(),\n '--font-weight-regular': weights.regular,\n };\n }\n\n initializeSteps() {\n if (typeof this.steps === 'string') {\n this.stepList = JSON.parse(this.steps || '[]');\n } else {\n this.stepList = this.steps;\n }\n }\n\n getStepStatus(step: number): 'done' | 'stop' | 'active' | 'default' {\n if (this.activeStepIndex === step && this.errorInCurrentStep) return 'stop';\n if (this.activeStepIndex === step && this.stepList.length !== step) return 'active';\n if (this.activeStepIndex >= step) return 'done';\n\n return 'default';\n }\n\n getProgressStyles() {\n const progressStyles = {\n default: {\n progressColor: 'var(--info-light)',\n activeStepTextColor: 'info-darker',\n nextStepTextColor: 'info-dark',\n },\n firstStep: {\n progressColor: 'var(--info-light)',\n activeStepTextColor: 'neutral-dark',\n nextStepTextColor: 'neutral-medium',\n },\n completed: {\n progressColor: 'var(--success-light)',\n activeStepTextColor: 'success-darker',\n nextStepTextColor: 'success-dark',\n },\n error: {\n progressColor: 'var(--error-light)',\n activeStepTextColor: 'error-darker',\n nextStepTextColor: 'error-dark',\n },\n };\n\n if (this.errorInCurrentStep) {\n return progressStyles.error;\n }\n\n if (this.activeStepIndex === 0) {\n return progressStyles.firstStep;\n }\n\n if (this.activeStepIndex === this.stepList.length) {\n return progressStyles.completed;\n }\n\n return progressStyles.default;\n }\n\n renderCompactStepper() {\n const title = this.activeStepIndex === 0 ? this.stepList[this.activeStepIndex].title : this.stepList[this.activeStepIndex - 1].title;\n const subtitle = this.activeStepIndex === 0 ? this.stepList[this.activeStepIndex + 1].title : this.stepList[this.activeStepIndex]?.title;\n const completed = this.activeStepIndex === this.stepList.length;\n const inProgress = !(completed || this.errorInCurrentStep);\n const { progressColor, activeStepTextColor, nextStepTextColor } = this.getProgressStyles();\n\n // Representa a porcentagem de progresso (step atual / quantidade de steps;)\n const progress = (this.activeStepIndex * 100) / this.stepList.length;\n\n return (\n <div class=\"container compact\" style={this.styles}>\n <cura-progress-bar progress={progress} progressColor={progressColor} active={this.activeStepIndex !== 0}>\n {!inProgress ? (\n <cura-icon name={this.errorInCurrentStep ? 'alertCircle' : 'checkCircle'} color={this.errorInCurrentStep ? 'error-dark' : 'success-dark'} size=\"16\"></cura-icon>\n ) : (\n <cura-heading color=\"neutral-dark\" size=\"xsmall\">\n {this.activeStepIndex}/{this.stepList.length}\n </cura-heading>\n )}\n </cura-progress-bar>\n {this.displayHeading && (\n <div class=\"heading\">\n <cura-heading size=\"small\" weight=\"bold\" color={activeStepTextColor}>\n {title}\n </cura-heading>\n {!completed && (\n <cura-heading size=\"xsmall\" weight=\"regular\" color={nextStepTextColor}>\n Próximo: {subtitle}\n </cura-heading>\n )}\n </div>\n )}\n </div>\n );\n }\n\n renderStep(step: Step, stepIndex: number) {\n const stepStatus = this.getStepStatus(stepIndex + 1);\n const lastStep = stepIndex === this.stepList.length - 1;\n const progressWidth = stepStatus !== 'default' ? '100%' : '0';\n\n return (\n <div class={`step ${lastStep ? 'last' : ''}`} key={step.title}>\n <cura-stepper-item heading={step.title} label={step.label} displayHeading={this.displayHeading} status={stepStatus} />\n {stepIndex < this.stepList.length - 1 && (\n <div class=\"wrapper\">\n <div class=\"divider\" />\n <div class={`divider ${stepStatus} animation`} style={{ '--progress-width': progressWidth }} />\n </div>\n )}\n </div>\n );\n }\n renderStepper() {\n return (\n <div class=\"container\" style={this.styles}>\n <div class=\"stepper-list\">{this.stepList.map((step, stepIndex) => this.renderStep(step, stepIndex))}</div>\n </div>\n );\n }\n\n render() {\n return <Host>{this.variant === 'default' ? this.renderStepper() : this.renderCompactStepper()}</Host>;\n }\n}\n"],"version":3}
@@ -102,7 +102,7 @@ const CuraSwitch$1 = /*@__PURE__*/ proxyCustomElement(class CuraSwitch extends H
102
102
  return classes;
103
103
  }
104
104
  render() {
105
- return (h(Host, { key: 'd7aee391a4604acfae345b3645543c6b27efc033' }, h("div", { key: '446f921b82386fb0f9d8d8551f6128a2891cd27e', class: this.getClasses(), style: this.styles }, h("div", { key: 'a6528ac65f396a40ea92556183d047212b4c678f', class: "info" }, h("cura-label", { key: '0d404e3d0310c985b03cc29d4b9495331ce87c2a', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, class: "label", weight: "bold", size: this.size === 'large' ? 'medium' : 'xsmall', lineHeight: "125%", color: this.assignColor('neutral-white', 'neutral-black') }, this.label), h("cura-label", { key: '833c04b96bf358b2991b618f4089e7ce31e96e30', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, color: this.assignColor('primary-lighter', 'neutral-dark'), size: "xsmall", class: "message" }, h("slot", { key: '3cb25210dbc16055660d612b78940e5b53cf6f96' }))), h("div", { key: 'db87f67c29558a05704a5baae728bfaa4db217d1', onClick: this.toggleSwitch, class: "control" }, h("div", { key: 'cdafeccd3cd11f5b7bfabf73ce8e2a3476febe99', class: `track ${this.size.toLowerCase()}` }, h("div", { key: 'da8ef012bcb02afe21d22b0e6145a129a9282f25', class: `thumb ${this.size.toLowerCase()}`, tabIndex: this.ontabindex }))))));
105
+ return (h(Host, { key: '46860420ccaabb21c57129a108db5f1ae9f6d9ce' }, h("div", { key: '4a9979890a90783a546d97f73c3562c22a72ad9e', class: this.getClasses(), style: this.styles }, h("div", { key: '77c09cbe03694ad36776073cd34d7d8f06c55b85', class: "info" }, h("cura-label", { key: '34fb44a104954c8540bc2f4a87a3efd8f1db789f', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, class: "label", weight: "bold", size: this.size === 'large' ? 'medium' : 'xsmall', lineHeight: "125%", color: this.assignColor('neutral-white', 'neutral-black') }, this.label), h("cura-label", { key: '5af93372fafedc89f32f393a45cd37416c7f092c', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, color: this.assignColor('primary-lighter', 'neutral-dark'), size: "xsmall", class: "message" }, h("slot", { key: '72b3bbbf88821623ffab554423aa8c2ed90c2e9c' }))), h("div", { key: '76fb47dcc44e5c59aa29dc911bbc764b63f4cc4b', onClick: this.toggleSwitch, class: "control" }, h("div", { key: 'a3155acd634dbf8cef95115ed107b975cd085b11', class: `track ${this.size.toLowerCase()}` }, h("div", { key: 'd0692eed52590930a528b339527f16870959c450', class: `thumb ${this.size.toLowerCase()}`, tabIndex: this.ontabindex }))))));
106
106
  }
107
107
  static get formAssociated() { return true; }
108
108
  static get watchers() { return {
@@ -33,7 +33,7 @@ const CuraToast$1 = /*@__PURE__*/ proxyCustomElement(class CuraToast extends HTM
33
33
  this.setStyle();
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: '0265d288e95db1331400e60d2ca694be22397294' }, h("div", { key: '2aee45d4fd237b703846272582e8258fbabb5238', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: 'c75ea1c8aceaf039e8d525c1ff406bcbf25b8554', class: "default-icon", name: this.getNameIcon(), size: 16, color: `${this.type}-dark` }), h("div", { key: 'e4d75da71aef899ec260666095f977caec86c19f', class: "content" }, h("cura-heading", { key: '3523fb7c3674854322dad502252cda7dd3bdca9e', level: 4, size: "xsmall", color: `${this.type}-dark`, weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: 'a4d639691820e4e242a178604d9b20a97da7bccb', color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: '4b86678d47455798a0f5455a406c02eaf8000ba8' })), h("slot", { key: '28b9088b76b7b2084cf7024eb1f35f28b344e098', name: "actions" })), this.closeButton && h("cura-icon", { key: '20a3b18030bfc418439f75795bd98ebacbb1aeca', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.loader && !!this.autoCloseDelay && h("cura-loader-bar", { key: '82b7e205ad8c5abae481bbed409109cd17661ce1', color: `${this.type}-base`, progress: this.progress }))));
36
+ return (h(Host, { key: '4dc290042792d96f31c2e63936d70a77bc37917d' }, h("div", { key: '668c102d3a31d0a0e39c390546fcf5422e954246', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: '502b24915e1000877ccd4ae25806b152b4a72948', class: "default-icon", name: this.getNameIcon(), size: 16, color: `${this.type}-dark` }), h("div", { key: 'd7afe4d1a9740d3bd1bce04858f6e71e0c857da2', class: "content" }, h("cura-heading", { key: '419e0d64e12e828efa2fecebe0eb86c74ff86dda', level: 4, size: "xsmall", color: `${this.type}-dark`, weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: 'bc6f5c120f0b32858cbda9ebf16c5d79366452bb', color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: '9cc8ba28b3e5ee5d8137351cfbb5dc07b417b7e9' })), h("slot", { key: 'f260ca44fa6cc515a1bda3ecb94dd1ac90f880d7', name: "actions" })), this.closeButton && h("cura-icon", { key: '7db6c2e5c3c66ab0b12822fc8099e17b77ed2c39', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.loader && !!this.autoCloseDelay && h("cura-loader-bar", { key: 'd0a6f1e838ec98f6dac5773214e1e5cf501e3e2e', color: `${this.type}-base`, progress: this.progress }))));
37
37
  }
38
38
  componentDidLoad() {
39
39
  this.openContainer();
@@ -39,9 +39,10 @@ const CuraTooltip$1 = /*@__PURE__*/ proxyCustomElement(class CuraTooltip extends
39
39
  this.setStyle();
40
40
  }
41
41
  render() {
42
- return (h(Host, { key: 'a8e36ac08ca7a12c1ff893c0d7525e31bd820b32', role: "tooltip", id: this.elementId }, h("div", { key: '8d1c01e85f80b2c00846273c270d7a09d555a038', class: "container", style: this.styles }, h("div", { key: '39501b4a8dbfc71cb166ec539db8fa24d2e65db0', class: "content" }, h("cura-heading", { key: '7c9209d35ab4dd2c21af7de18e013546947b3937', level: 4, size: "xsmall", color: "neutral-black", weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: '21cef01e82c0000eaaecf4ba7351d5cc416a45f4', color: "neutral-dark", "spot-color": "secondary-darker", size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: 'c752679de543d3d31d4b4a5a97c928c7a5cc9f1a' }))), this.closeButton && !this.isMobile && h("cura-icon", { key: '398b9a3579df7969e319c207814cdf43e0bd7b5a', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.isMobile && h("cura-button-transparent", { key: 'dc605edcfa382bad86acb8d51510c35a6ee67b74', class: "close-button", size: "small", type: "button", color: "error", "icon-name": "close", "icon-position": "right", onClick: this.handleClose }, "OK, entendi."))));
42
+ return (h(Host, { key: '3fe89da4d5b3a2830d4ab6a88e705b4cf2433289', role: "tooltip", id: this.elementId }, h("div", { key: '6cece3dcbf275a851e0d53cb154b9dcf50a76948', class: "container", style: this.styles }, h("div", { key: '802840b89feb6c4d89303da156f6f130e552a83b', class: "content" }, h("cura-heading", { key: 'ea98692d4fc34f05dcf8fcd5c325b8a1cd408226', level: 4, size: "xsmall", color: "neutral-black", weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: '38bb7bf9f0a837813b490062ba5645f7148ac74b', color: "neutral-dark", "spot-color": "secondary-darker", size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: '960b6b6d8ee4636a31c2058aa4779050973e143e' }))), this.closeButton && !this.isMobile && h("cura-icon", { key: 'd0bf72702fa8d24d1f5fac6fa473747bdaadcdaf', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.isMobile && h("cura-button-transparent", { key: '2213a6353b3d326ecde2e9eefe84811bd3161727', class: "close-button", size: "small", type: "button", color: "error", "icon-name": "close", "icon-position": "right", onClick: this.handleClose }, "OK, entendi."))));
43
43
  }
44
44
  componentDidLoad() {
45
+ var _a, _b, _c, _d, _e;
45
46
  this.targetElement = document.querySelector(`[aria-labelledby="${this.elementId}"]`);
46
47
  if (!this.interactive) {
47
48
  this.host.style.visibility = 'visible';
@@ -50,28 +51,28 @@ const CuraTooltip$1 = /*@__PURE__*/ proxyCustomElement(class CuraTooltip extends
50
51
  this.host.style.visibility = 'hidden';
51
52
  let openTimeoutID = null;
52
53
  let closeTimeoutID = null;
53
- this.targetElement.addEventListener('mouseenter', () => {
54
+ (_a = this.targetElement) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', () => {
54
55
  clearTimeout(closeTimeoutID);
55
56
  openTimeoutID = setTimeout(() => {
56
57
  this.host.style.visibility = 'visible';
57
58
  }, typeof this.delay === 'number' && this.delay > 250 ? this.delay : 250);
58
59
  });
59
- this.targetElement.addEventListener('mouseleave', () => {
60
+ (_b = this.targetElement) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', () => {
60
61
  clearTimeout(openTimeoutID);
61
62
  closeTimeoutID = setTimeout(() => {
62
63
  this.handleClose();
63
64
  }, typeof this.delay === 'number' && this.delay > 250 ? this.delay : 250);
64
65
  });
65
- this.host.addEventListener('mouseenter', () => {
66
+ (_c = this.host) === null || _c === void 0 ? void 0 : _c.addEventListener('mouseenter', () => {
66
67
  if (window.getComputedStyle(this.host).visibility === 'visible') {
67
68
  clearTimeout(closeTimeoutID);
68
69
  }
69
70
  });
70
- this.host.addEventListener('mouseleave', () => {
71
+ (_d = this.host) === null || _d === void 0 ? void 0 : _d.addEventListener('mouseleave', () => {
71
72
  clearTimeout(openTimeoutID);
72
73
  this.handleClose();
73
74
  });
74
- this.targetElement.addEventListener('click', () => {
75
+ (_e = this.targetElement) === null || _e === void 0 ? void 0 : _e.addEventListener('click', () => {
75
76
  if (window.getComputedStyle(this.host).visibility === 'hidden') {
76
77
  openTimeoutID = setTimeout(() => {
77
78
  this.host.style.visibility = 'visible';
@@ -82,7 +83,7 @@ const CuraTooltip$1 = /*@__PURE__*/ proxyCustomElement(class CuraTooltip extends
82
83
  this.handleClose();
83
84
  }
84
85
  });
85
- document.addEventListener('click', (event) => {
86
+ document === null || document === void 0 ? void 0 : document.addEventListener('click', (event) => {
86
87
  if (!this.targetElement.contains(event.target) && !this.host.contains(event.target)) {
87
88
  clearTimeout(openTimeoutID);
88
89
  this.handleClose();
@@ -117,7 +118,7 @@ const CuraTooltip$1 = /*@__PURE__*/ proxyCustomElement(class CuraTooltip extends
117
118
  this.host.style.bottom = this.isMobile ? '0' : 'unset';
118
119
  container.style.flexDirection = this.isMobile ? 'column' : 'row';
119
120
  if (this.isMobile) {
120
- this.host.style.left = 'unset';
121
+ this.host.style.left = '0';
121
122
  this.host.style.top = 'unset';
122
123
  return;
123
124
  }