@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
@@ -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: 'c7d36a87c8ca4ea44a53d90edf5028e27d4ab631' }, h("div", { key: 'c54f199ba48a8a0e0549c5f046cf7dc128d8108e', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: 'f1607925bceeaf29a8bee7a021b1bf9e9be5b0e6', name: this.getNameIcon(), class: "icon-left", size: 16, color: `${this.type}-dark` }), h("div", { key: '6ccb322b9594a0c963cf8fa873b4a66642d69357', class: "content" }, this.label ? (h("cura-label", { class: "title", size: "small", color: "neutral-darker", weight: "bold" }, this.label)) : '', h("cura-paragraph", { key: 'e70495f19e2eac2b0c593d156436061aba50c295', class: "text", color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: '043f67d199324f668aced318a81e6ecdbd3ac97a' })), h("slot", { key: '83cc65b83514bdbc77a3676d2fab55ebb20aa5dc', 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: '2760534555a0483e7e30c5f3009ec0cf68d0973b', style: this.hostCSSProperties(), role: "img" }, h("div", { key: '3daf6dd066983dc63525c38b7da498147c0bf387', class: this.getClasses(), style: this.styles }, h("img", { key: 'a5f4de7983722fc3f750404fa985c312590b5e98', 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: 'fcea88a384ceebadccb6059ef59cea945f875a72', style: this.getHostCSSProperties() }, h("div", { key: '82c5271ba6b073439fb58471920f73b68b8f1320', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''}`, style: this.styles }, h("header", { key: '3921fb57f3d526b9f33c59f998ad422806505bc1', class: "header" }, h("div", { key: '1f852f0f29ff927d3940c670f5b25206837cc331', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, h("cura-icon", { key: '697fda3903f24611628fe24a7f669ab87474aeab', 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: '6b7f0694e978b0807c4e54629cda68f2fde27c8a', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", color: "primary-base", onClick: !this.collapsed ? () => this.updateCurrentMonth('next') : () => this.updateCurrentWeek('next') }))), h("span", { key: '5a151331c2c9872cf3b50bbaea7c9b92b1476297', 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: '7eeb57ed5dc104c953343697a205a922a1b2b912', 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: 'db1a13cfe3bb925300e65641e1d45fade5a03f52', 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"; }
@@ -27,7 +27,7 @@ export class CuraIcon {
27
27
  this.host.style.setProperty(prop, value);
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: '0a9f6e85bc7be23072c17fd8f99ca88601e2a830' }, h("svg", { key: '00e4c6f5ce357b7a974d3dd0a27948fc1e8138ce', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { key: '504a842d6b030539cb615cf60b090fbc9f771761', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
30
+ return (h(Host, { key: '09f68d2b455427bf45dca2e6b30e993ebfa6b3a0' }, h("svg", { key: 'f15fea7564efac510263f06f8d15288fec004f66', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { key: 'b88136d10453dc9e1d2c41ceb10676b348430ae3', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
31
31
  }
32
32
  static get is() { return "cura-icon"; }
33
33
  static get encapsulation() { return "shadow"; }
@@ -14,7 +14,7 @@ export class CuraIconsView {
14
14
  this.sizes.unshift(this.sizes.pop());
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '4c5839d8673f7b6cc5ef212f3dab12fbd7fa4a65' }, h("div", { key: '80ac970319cd6041b133a5808ff5c47a8e7b8aa6', class: "iconDetail" }, h("cura-heading", { key: 'd1a2fbd4455304a9f581e62207492cd172abcd93', size: "small", "margin-block": "0 24px" }, "Icon: ", h("b", { key: '67e7e479b00f6305af972c7de12e926c0d2067ca' }, this.selected)), h("div", { key: '8eb81c26431259818f299dd7ebcf708d1f664dc1', class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { key: '2ff3b3a5868a68e2f6fa967fa2e3e9c2e5883451', class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), h("span", null, size))))), h("div", { key: 'c3581991a1b8971447625ed67f4ba0d616efb855', class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: { icon: true, selected: icon === this.selected }, onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon, size: "32", color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }), h("cura-label", { size: "xsmall", weight: icon === this.selected ? 'bold' : 'regular', color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }, icon))))));
17
+ return (h(Host, { key: '4918bc5d13f24f3133af45ce5991b3f3f43e99cf' }, h("div", { key: '837d47976a39702b13ceb5a7c5ac8ae097d34988', class: "iconDetail" }, h("cura-heading", { key: 'de4c75c4652b464991aa173cf7243db65f9ba2ba', size: "small", "margin-block": "0 24px" }, "Icon: ", h("b", { key: '77591ce199e5140ddcde3d7b956586d27fe6bc05' }, this.selected)), h("div", { key: '6da36b174603d48ab3b11a8490c424f164855147', class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { key: '4920c8010e0a55f80bb557f4ba0e537b7861ae36', class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), h("span", null, size))))), h("div", { key: '99739b351fb25036efd4b55774c0f077058be8fc', class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: { icon: true, selected: icon === this.selected }, onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon, size: "32", color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }), h("cura-label", { size: "xsmall", weight: icon === this.selected ? 'bold' : 'regular', color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }, icon))))));
18
18
  }
19
19
  static get is() { return "cura-icons-view"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -100,7 +100,7 @@
100
100
  margin-top: var(--offset-top);
101
101
  }
102
102
  .modal.open {
103
- z-index: 100;
103
+ z-index: var(--zIndex);
104
104
  }
105
105
  .modal.open .backdrop,
106
106
  .modal.open .wrapper {
@@ -124,7 +124,7 @@
124
124
 
125
125
  .backdrop {
126
126
  background-color: var(--background-color);
127
- z-index: 90;
127
+ z-index: calc(var(--zIndex) - 10);
128
128
  animation: fadeIn 0.3s ease-out;
129
129
  }
130
130
 
@@ -137,7 +137,7 @@
137
137
  max-width: 600px;
138
138
  min-width: 200px;
139
139
  padding: 0px calc(var(--base-spacing) * 4px) calc(var(--base-spacing) * 4px) calc(var(--base-spacing) * 4px);
140
- z-index: 100;
140
+ z-index: var(--zIndex);
141
141
  box-shadow: 0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12));
142
142
  transform: scale(0.95);
143
143
  transition: transform 0.3s ease-out, opacity 0.3s ease, visibility 0.3s ease;
@@ -11,6 +11,8 @@ export class CuraModal {
11
11
  this.bottom = 0;
12
12
  this.left = 0;
13
13
  this.right = 0;
14
+ this.mobileCloseLabel = 'Fechar';
15
+ this.zindex = '100';
14
16
  this.styles = {};
15
17
  }
16
18
  setColors() {
@@ -44,7 +46,7 @@ export class CuraModal {
44
46
  this.setRight();
45
47
  }
46
48
  render() {
47
- return (h(Host, { key: '5061e0536f1f06ae425a810fc15eb85d36caa271', role: "dialog", "aria-modal": "true" }, h("div", { key: '2afc242ddb391923dccfb6adc218179d32ee85e3', class: this.open ? 'modal container open' : 'modal container', style: this.styles }, h("div", { key: '5cf4d0d0817e23774984991467b8a34297f47336', class: this.open ? 'modal backdrop open' : 'modal backdrop', onClick: this.handleClose }), h("div", { key: 'ba6a2679ce03c87c88e42c4f28616ab9afc09116', class: "wrapper" }, h("button", { key: 'cc3126fa311ef7eb75dbdb56468d7b53af13740c', class: "close desktop", onClick: this.handleClose }, h("cura-icon", { key: 'b116480ab348f69fafbbc5e8bef7ee5a43640b00', name: "close", color: "error-dark", size: "small" })), h("slot", { key: '7fd83b4991dee4e7cab92bf6e357efa4ce3c1d71' }), h("button", { key: '1351ba9d296c1362197496f336a20007cd6f45f0', class: "close mobile", onClick: this.handleClose }, h("cura-icon", { key: '3d72c9f8981c380ab8ff19e4507497703011aece', name: "close", color: "error-dark", size: "16" }), h("cura-paragraph", { key: '77e1144a9edb1c20e34f9f7e02ea97264d525143', color: "error-dark", size: "small", marginBlock: "0" }, "Fechar"))))));
49
+ return (h(Host, { key: '50f4146aed5392ae16803fb060d4921a5e8a3271', role: "dialog", "aria-modal": "true", style: { '--zIndex': this.zindex } }, h("div", { key: '149e99a4b8b479515ed3d67c5c8aea08d4d96d1c', class: this.open ? 'modal container open' : 'modal container', style: this.styles }, h("div", { key: 'f32f7f7e16475c51babf95e1ca5f4fea449c1bb0', class: this.open ? 'modal backdrop open' : 'modal backdrop', onClick: this.handleClose }), h("div", { key: '183f7ab8f2cee8106795f6104c38a2c93272387f', class: "wrapper" }, h("button", { key: '28778c8120c92dfcae0443dccd21f55a204bd82e', class: "close desktop", onClick: this.handleClose }, h("cura-icon", { key: 'a847de5c1314ea1460673870334f3f98e98f1cf9', name: "close", color: "error-dark", size: "small" })), h("slot", { key: 'e08b556b7232425c2b83a21dac75d30fb4361a83' }), h("button", { key: 'e736a95f878ff5a2ad6897d9140fd74b26939445', class: "close mobile", onClick: this.handleClose }, h("cura-icon", { key: '9eaeaca6f4ea9d3cde5fd44e108de389c727f991', name: "close", color: "error-dark", size: "16" }), h("cura-paragraph", { key: '2476b85e5dd7d6092d3d1d1714ee4a79b73b12d0', color: "error-dark", size: "small", marginBlock: "0" }, this.mobileCloseLabel))))));
48
50
  }
49
51
  static get is() { return "cura-modal"; }
50
52
  static get encapsulation() { return "shadow"; }
@@ -167,6 +169,42 @@ export class CuraModal {
167
169
  "attribute": "right",
168
170
  "reflect": false,
169
171
  "defaultValue": "0"
172
+ },
173
+ "mobileCloseLabel": {
174
+ "type": "string",
175
+ "mutable": false,
176
+ "complexType": {
177
+ "original": "string",
178
+ "resolved": "string",
179
+ "references": {}
180
+ },
181
+ "required": false,
182
+ "optional": false,
183
+ "docs": {
184
+ "tags": [],
185
+ "text": "Defines the label for the close button when the modal is viewed on mobile.\nDefault: Fechar"
186
+ },
187
+ "attribute": "mobile-close-label",
188
+ "reflect": true,
189
+ "defaultValue": "'Fechar'"
190
+ },
191
+ "zindex": {
192
+ "type": "string",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "string",
196
+ "resolved": "string",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": "Property zindex to control the z-index value of the component.\nDefault: 100"
204
+ },
205
+ "attribute": "zindex",
206
+ "reflect": true,
207
+ "defaultValue": "'100'"
170
208
  }
171
209
  };
172
210
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cura-modal.js","sourceRoot":"","sources":["../../../src/components/cura-modal/cura-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK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,IAAI,EAAC,IAAI,GAAa;wBACjE,uEAAgB,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,aAE9C,CACV,CACL,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-modal',\n styleUrl: 'cura-modal.scss',\n shadow: true,\n})\nexport class CuraModal {\n /**\n * Property open to control modal visibility.\n * Default: false\n */\n @Prop({ mutable: true, reflect: true }) open?: boolean = false;\n /**\n * Property background to control modal backdrop color.\n * Default: light\n */\n @Prop() background?: 'dark' | 'light' = 'light';\n /**\n * Property top to control modal top position.\n * Default: 0px\n */\n @Prop() top?: number = 0;\n /**\n * Property bottom to control modal bottom position.\n * Default: 0px\n */\n @Prop() bottom?: number = 0;\n /**\n * Property left to control modal left position.\n * Default: 0px\n */\n @Prop() left?: number = 0;\n /**\n * Property right to control modal right position.\n * Default: 0px\n */\n @Prop() right?: number = 0;\n /**\n * Event close to handle modal close.\n */\n @Event({ eventName: 'modalClose' }) modalClose: EventEmitter<void>;\n\n @State() styles = {};\n\n @Watch('background')\n setColors() {\n const backgroundTheme = {\n dark: window.CuraAPI.theme.colors.getColor('neutral-black', 0.4),\n light: window.CuraAPI.theme.colors.getColor('primary-darker', 0.8),\n };\n\n this.styles = {\n ...this.styles,\n '--background-color': backgroundTheme[this.background],\n };\n }\n\n setOffset(name: string, value: number) {\n this.styles = {\n ...this.styles,\n [`--${name}-offset`]: `${value}px`,\n };\n }\n\n @Watch('top')\n setTop() {\n this.setOffset('top', this.top);\n }\n\n @Watch('bottom')\n setBottom() {\n this.setOffset('bottom', this.bottom);\n }\n\n @Watch('left')\n setLeft() {\n this.setOffset('left', this.left);\n }\n\n @Watch('right')\n setRight() {\n this.setOffset('right', this.right);\n }\n\n connectedCallback() {\n this.styles = {\n ...this.styles,\n '--neutral-white': window.CuraAPI.theme.colors.getColor('neutral-white'),\n '--neutral-light': window.CuraAPI.theme.colors.getColor('neutral-light'),\n '--base-spacing': window.CuraAPI.theme.spacing.getSpacing(),\n };\n this.setColors();\n this.setTop();\n this.setBottom();\n this.setLeft();\n this.setRight();\n }\n\n private handleClose = () => {\n this.modalClose.emit();\n this.open = false;\n };\n\n render() {\n return (\n <Host role=\"dialog\" aria-modal=\"true\">\n <div class={this.open ? 'modal container open' : 'modal container'} style={this.styles}>\n <div class={this.open ? 'modal backdrop open' : 'modal backdrop'} onClick={this.handleClose}></div>\n <div class=\"wrapper\">\n {/* Desktop button */}\n <button class=\"close desktop\" onClick={this.handleClose}>\n <cura-icon name=\"close\" color=\"error-dark\" size=\"small\"></cura-icon>\n </button>\n <slot></slot>\n {/* Mobile button */}\n <button class=\"close mobile\" onClick={this.handleClose}>\n <cura-icon name=\"close\" color=\"error-dark\" size=\"16\"></cura-icon>\n <cura-paragraph color=\"error-dark\" size=\"small\" marginBlock=\"0\">\n Fechar\n </cura-paragraph>\n </button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cura-modal.js","sourceRoot":"","sources":["../../../src/components/cura-modal/cura-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO5F,MAAM,OAAO,SAAS;;QAsGZ,gBAAW,GAAG,GAAG,EAAE;YACzB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACpB,CAAC,CAAC;oBApGuD,KAAK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AAgB,CACP,CACV,CACL,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-modal',\n styleUrl: 'cura-modal.scss',\n shadow: true,\n})\nexport class CuraModal {\n /**\n * Property open to control modal visibility.\n * Default: false\n */\n @Prop({ mutable: true, reflect: true }) open?: boolean = false;\n /**\n * Property background to control modal backdrop color.\n * Default: light\n */\n @Prop() background?: 'dark' | 'light' = 'light';\n /**\n * Property top to control modal top position.\n * Default: 0px\n */\n @Prop() top?: number = 0;\n /**\n * Property bottom to control modal bottom position.\n * Default: 0px\n */\n @Prop() bottom?: number = 0;\n /**\n * Property left to control modal left position.\n * Default: 0px\n */\n @Prop() left?: number = 0;\n /**\n * Property right to control modal right position.\n * Default: 0px\n */\n @Prop() right?: number = 0;\n /**\n * Defines the label for the close button when the modal is viewed on mobile.\n * Default: Fechar\n */\n @Prop({ reflect: true }) mobileCloseLabel: string = 'Fechar';\n /**\n * Property zindex to control the z-index value of the component.\n * Default: 100\n */\n @Prop({ reflect: true }) zindex: string = '100';\n /**\n * Event close to handle modal close.\n */\n @Event({ eventName: 'modalClose' }) modalClose: EventEmitter<void>;\n\n @State() styles = {};\n\n @Watch('background')\n setColors() {\n const backgroundTheme = {\n dark: window.CuraAPI.theme.colors.getColor('neutral-black', 0.4),\n light: window.CuraAPI.theme.colors.getColor('primary-darker', 0.8),\n };\n\n this.styles = {\n ...this.styles,\n '--background-color': backgroundTheme[this.background],\n };\n }\n\n setOffset(name: string, value: number) {\n this.styles = {\n ...this.styles,\n [`--${name}-offset`]: `${value}px`,\n };\n }\n\n @Watch('top')\n setTop() {\n this.setOffset('top', this.top);\n }\n\n @Watch('bottom')\n setBottom() {\n this.setOffset('bottom', this.bottom);\n }\n\n @Watch('left')\n setLeft() {\n this.setOffset('left', this.left);\n }\n\n @Watch('right')\n setRight() {\n this.setOffset('right', this.right);\n }\n\n connectedCallback() {\n this.styles = {\n ...this.styles,\n '--neutral-white': window.CuraAPI.theme.colors.getColor('neutral-white'),\n '--neutral-light': window.CuraAPI.theme.colors.getColor('neutral-light'),\n '--base-spacing': window.CuraAPI.theme.spacing.getSpacing(),\n };\n this.setColors();\n this.setTop();\n this.setBottom();\n this.setLeft();\n this.setRight();\n }\n\n private handleClose = () => {\n this.modalClose.emit();\n this.open = false;\n };\n\n render() {\n return (\n <Host role=\"dialog\" aria-modal=\"true\" style={{ '--zIndex': this.zindex }}>\n <div class={this.open ? 'modal container open' : 'modal container'} style={this.styles}>\n <div class={this.open ? 'modal backdrop open' : 'modal backdrop'} onClick={this.handleClose}></div>\n <div class=\"wrapper\">\n {/* Desktop button */}\n <button class=\"close desktop\" onClick={this.handleClose}>\n <cura-icon name=\"close\" color=\"error-dark\" size=\"small\"></cura-icon>\n </button>\n <slot></slot>\n {/* Mobile button */}\n <button class=\"close mobile\" onClick={this.handleClose}>\n <cura-icon name=\"close\" color=\"error-dark\" size=\"16\"></cura-icon>\n <cura-paragraph color=\"error-dark\" size=\"small\" marginBlock=\"0\">\n {this.mobileCloseLabel}\n </cura-paragraph>\n </button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -14,6 +14,8 @@ const renderCuraModal = (args) => `
14
14
  <div style="height: 500px">
15
15
  <cura-modal
16
16
  open="${args.open}"
17
+ mobile-close-label="${args.mobileCloseLabel}"
18
+ zindex="${args.zindex}"
17
19
  background="${args.background}"
18
20
  top="${args.top}"
19
21
  bottom="${args.bottom}"
@@ -56,6 +58,20 @@ export default {
56
58
  category: 'Properties',
57
59
  },
58
60
  },
61
+ mobileCloseLabel: {
62
+ control: { type: 'text' },
63
+ description: 'Label utilizada no botão de fechar no mobile.',
64
+ table: {
65
+ category: 'Properties',
66
+ },
67
+ },
68
+ zindex: {
69
+ control: { type: 'text' },
70
+ description: 'Define um valor para o z-index.',
71
+ table: {
72
+ category: 'Properties',
73
+ },
74
+ },
59
75
  top: {
60
76
  control: { type: 'number' },
61
77
  description: 'Define o deslocamento superior do modal.',
@@ -116,6 +132,8 @@ export const CuraModal = {
116
132
  bottom: 0,
117
133
  left: 0,
118
134
  right: 0,
135
+ mobileCloseLabel: 'Fechar',
136
+ zindex: '100',
119
137
  },
120
138
  };
121
139
  //# sourceMappingURL=cura-modal.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cura-modal.stories.js","sourceRoot":"","sources":["../../../src/components/cura-modal/cura-modal.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC;;;cAGzB,IAAI,CAAC,IAAI;oBACH,IAAI,CAAC,UAAU;aACtB,IAAI,CAAC,GAAG;gBACL,IAAI,CAAC,MAAM;cACb,IAAI,CAAC,IAAI;eACR,IAAI,CAAC,KAAK;;QAEjB,IAAI,CAAC,OAAO;;;CAGnB,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,EAAE,CAAC,EAAW,EAAE,EAAE;YAAV,IAAI,cAAT,EAAW,CAAF;QAChB,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,2CAA2C;YACxD,KAAK,EAAE;gBACL,QAAQ,EAAE,YAAY;gBACtB,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACjC;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE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EAAE;gBACL,QAAQ,EAAE,QAAQ;aACnB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE;QACJ,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;;;;;;;;;WASF;QACP,GAAG,EAAE,CAAC;QACN,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;KACT;CACF,CAAC","sourcesContent":["const renderCuraModal = (args: any) => `\n <div style=\"height: 500px\">\n <cura-modal\n open=\"${args.open}\"\n background=\"${args.background}\"\n top=\"${args.top}\"\n bottom=\"${args.bottom}\"\n left=\"${args.left}\"\n right=\"${args.right}\"\n >\n ${args.content}\n </cura-modal>\n </div>\n`;\n\nexport default {\n title: 'Componentes/Feedback/Modal',\n tags: ['autodocs'],\n render: ({ ...args }) => {\n return renderCuraModal(args);\n },\n argTypes: {\n open: {\n control: 'boolean',\n description: 'Define se o modal está aberto ou fechado.',\n table: {\n category: 'Properties',\n defaultValue: { summary: false },\n },\n },\n background: {\n control: { type: 'select' },\n options: ['dark', 'light'],\n description: 'Define a cor do background do modal.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'light' },\n },\n },\n content: {\n control: { type: 'text' },\n description: 'Conteúdo do modal a ser exibido.',\n table: {\n category: 'Properties',\n },\n },\n top: {\n control: { type: 'number' },\n description: 'Define o deslocamento superior do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n bottom: {\n control: { type: 'number' },\n description: 'Define o deslocamento inferior do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n left: {\n control: { type: 'number' },\n description: 'Define o deslocamento esquerdo do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n right: {\n control: { type: 'number' },\n description: 'Define o deslocamento direito do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n close: {\n action: 'close',\n description: 'Evento customizado (via listener) disparado quando o componente é fechado.',\n name: 'modalClose',\n table: {\n category: 'Events',\n },\n },\n },\n};\n\nexport const CuraModal = {\n args: {\n background: 'light',\n open: true,\n content: `<div style=\"display:flex;\n justify-content: center;\n align-items: center;\n align-self: stretch;\n background-color:rgba(187, 107, 217, 0.4);\n text-align: center;\n height: 30px;\n color: #9b51e0;\">\n content area\n </div>`,\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n },\n};\n"]}
1
+ {"version":3,"file":"cura-modal.stories.js","sourceRoot":"","sources":["../../../src/components/cura-modal/cura-modal.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC;;;cAGzB,IAAI,CAAC,IAAI;4BACK,IAAI,CAAC,gBAAgB;gBACjC,IAAI,CAAC,MAAM;oBACP,IAAI,CAAC,UAAU;aACtB,IAAI,CAAC,GAAG;gBACL,IAAI,CAAC,MAAM;cACb,IAAI,CAAC,IAAI;eACR,IAAI,CAAC,KAAK;;QAEjB,IAAI,CAAC,OAAO;;;CAGnB,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,EAAE,CAAC,EAAW,EAAE,EAAE;YAAV,IAAI,cAAT,EAAW,CAAF;QAChB,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,2CAA2C;YACxD,KAAK,EAAE;gBACL,QAAQ,EAAE,YAAY;gBACtB,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACjC;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YAC1B,WAAW,EAAE,sCAA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;YACtD,KAAK,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACjC;SACF;QACD,KAAK,EAAE;YACL,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,4EAA4E;YACzF,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE;gBACL,QAAQ,EAAE,QAAQ;aACnB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE;QACJ,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;;;;;;;;;WASF;QACP,GAAG,EAAE,CAAC;QACN,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,gBAAgB,EAAE,QAAQ;QAC1B,MAAM,EAAE,KAAK;KACd;CACF,CAAC","sourcesContent":["const renderCuraModal = (args: any) => `\n <div style=\"height: 500px\">\n <cura-modal\n open=\"${args.open}\"\n mobile-close-label=\"${args.mobileCloseLabel}\"\n zindex=\"${args.zindex}\"\n background=\"${args.background}\"\n top=\"${args.top}\"\n bottom=\"${args.bottom}\"\n left=\"${args.left}\"\n right=\"${args.right}\"\n >\n ${args.content}\n </cura-modal>\n </div>\n`;\n\nexport default {\n title: 'Componentes/Feedback/Modal',\n tags: ['autodocs'],\n render: ({ ...args }) => {\n return renderCuraModal(args);\n },\n argTypes: {\n open: {\n control: 'boolean',\n description: 'Define se o modal está aberto ou fechado.',\n table: {\n category: 'Properties',\n defaultValue: { summary: false },\n },\n },\n background: {\n control: { type: 'select' },\n options: ['dark', 'light'],\n description: 'Define a cor do background do modal.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'light' },\n },\n },\n content: {\n control: { type: 'text' },\n description: 'Conteúdo do modal a ser exibido.',\n table: {\n category: 'Properties',\n },\n },\n mobileCloseLabel: {\n control: { type: 'text' },\n description: 'Label utilizada no botão de fechar no mobile.',\n table: {\n category: 'Properties',\n },\n },\n zindex: {\n control: { type: 'text' },\n description: 'Define um valor para o z-index.',\n table: {\n category: 'Properties',\n },\n },\n top: {\n control: { type: 'number' },\n description: 'Define o deslocamento superior do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n bottom: {\n control: { type: 'number' },\n description: 'Define o deslocamento inferior do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n left: {\n control: { type: 'number' },\n description: 'Define o deslocamento esquerdo do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n right: {\n control: { type: 'number' },\n description: 'Define o deslocamento direito do modal.',\n table: {\n category: 'Offset',\n defaultValue: { summary: '0px' },\n },\n },\n close: {\n action: 'close',\n description: 'Evento customizado (via listener) disparado quando o componente é fechado.',\n name: 'modalClose',\n table: {\n category: 'Events',\n },\n },\n },\n};\n\nexport const CuraModal = {\n args: {\n background: 'light',\n open: true,\n content: `<div style=\"display:flex;\n justify-content: center;\n align-items: center;\n align-self: stretch;\n background-color:rgba(187, 107, 217, 0.4);\n text-align: center;\n height: 30px;\n color: #9b51e0;\">\n content area\n </div>`,\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n mobileCloseLabel: 'Fechar',\n zindex: '100',\n },\n};\n"]}
@@ -14,7 +14,7 @@ export class CuraPageTemplate {
14
14
  return classes;
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '1e08a43c7701b7063cb652f6e040d3d5f5eb09a4' }, h("div", { key: '8aed196bdd1e4385a5cd397d531f32d5d6a34e45', style: this.styles, class: "grid-template" }, h("div", { key: '92bb8cc24ddc2a6c7cb81cca6326e3aae62fe9fb', id: "sub-header" }, h("slot", { key: 'af2542eb9aae107bb96009e1dbf234099e3fee06', name: 'sub-header' })), h("div", { key: '11ccbfe4b8f226d5f312b9db81cb10bf7aff6058', id: "header" }, h("slot", { key: 'f4cf6ce66934479b421841c0d85341ad771f8801', name: 'header' })), h("div", { key: 'b0af61b6a26cffbae8722a265bbf695984aeb192', id: "pre-content" }, h("slot", { key: '1c6e615377935f2d8bcdc0106a7f8ef46a4096c8', name: 'pre-content' })), h("div", { key: '7c9600de42ea9338571f59c7dfa07e8d83d907f3', id: "content-container", class: this.getClasses() }, h("div", { key: '8e9c4100038b1a7add298292b039098a66936fc3', id: "sidebar-left" }, h("slot", { key: '266eface0f8eb826fce97ec1c6eb8a5f2a983256', name: 'sidebar-left' })), h("div", { key: 'da2e6b2a9d72cb80f5f340e877388ce82e285d97', id: "content" }, h("slot", { key: '8e1fb56cad2e3b693fb40c87bc8b8813ac1c5cec', name: "content" }), h("slot", { key: '7fcfa41e62fbb3eb03e6350d2242119cea4a7172' })), h("div", { key: '561cdd39b2327375fbfab17b7d9ba61d3c8641e1', id: "sidebar-right" }, h("slot", { key: 'abb1a3c4b46a4e576f9720582e41237f323baedb', name: 'sidebar-right' }))), h("div", { key: '273e8172b1084ef92d125ec3c524bd0a357e740a', id: "post-body" }, h("slot", { key: '9c0ba47959028dd86b5d83fe9050e4cbd51b09f0', name: 'post-body' })), h("div", { key: 'ec53311edaed349b82cf37be5957d9a07e1e25d3', id: "footer" }, h("slot", { key: '16d56243b257ba7b3b6919c5fcd4b482d646b925', name: 'footer' })), h("div", { key: 'ed81fc5a890b564a6b437f61122259b6ea5a94f2', id: "sub-footer" }, h("slot", { key: '88c1d8297bd16ac01f7f5e81803cee6d1b13aa41', name: 'sub-footer' })))));
17
+ return (h(Host, { key: '9f26fb8ceb8b22ed9223bd215c07b6a19f6d78f1' }, h("div", { key: '38541ca9be4feecb9911c96cc954ba7501dc9b5e', style: this.styles, class: "grid-template" }, h("div", { key: 'daf436a589d75bb270f4b16230d1db1d7365c47e', id: "sub-header" }, h("slot", { key: '547c858a5913c600c1b745f400319d207a04c7ce', name: 'sub-header' })), h("div", { key: 'ba69ae91e87af01a8001a347f6de7d8ba7088619', id: "header" }, h("slot", { key: '6f72885d42d005f234942f2cbf8eefd98f4d0241', name: 'header' })), h("div", { key: 'd21dbb37e236b1b22e886a036a37fb2e65e538f3', id: "pre-content" }, h("slot", { key: '31b14b314d1ee2672f15883ea4bcc3c542520558', name: 'pre-content' })), h("div", { key: 'a1297f482f15b4947043401b25e2c4ecbedd31fd', id: "content-container", class: this.getClasses() }, h("div", { key: '9c0c466a46c5fc81c64663dd0aff4e073cc6cb72', id: "sidebar-left" }, h("slot", { key: '10364527d218b1c05064095a5a69a411cb23322a', name: 'sidebar-left' })), h("div", { key: '23029f84833a0959f43f30b4dcc5d8bc08a0bf05', id: "content" }, h("slot", { key: '8dbcf34f4808d0983df99c77b52f927b8f1a69d7', name: "content" }), h("slot", { key: '6a235586dfb316c6449d531a566940d8de4e4a40' })), h("div", { key: 'b88f94db774c17aaa312ca55c9e67d611cabace3', id: "sidebar-right" }, h("slot", { key: '5efbbf777d7acb28e91f4dace10558926dafef60', name: 'sidebar-right' }))), h("div", { key: 'f40b983f2266e565faba96e8906cd69073b6598c', id: "post-body" }, h("slot", { key: 'd0f047c73b5b777f1eb9d61191bf172473c100cf', name: 'post-body' })), h("div", { key: 'b54482672a8017036b060203b5426bb2897c75fa', id: "footer" }, h("slot", { key: '4c65d471dcd2dfabc32e163cb9575f3d05fb2cda', name: 'footer' })), h("div", { key: '24c5d5a19e6d3fb943a1e99a7dfcfe9ad7cbb283', id: "sub-footer" }, h("slot", { key: '6f595500cac9906db6902685f172feaa7ee9e711', name: 'sub-footer' })))));
18
18
  }
19
19
  static get is() { return "cura-page-template"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,15 @@
1
+ :host {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ .progress-bar {
7
+ position: relative;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ }
12
+ .progress-bar span {
13
+ position: absolute;
14
+ display: flex;
15
+ }
@@ -0,0 +1,121 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CuraProgressBar {
3
+ constructor() {
4
+ this.progressColor = undefined;
5
+ this.progress = undefined;
6
+ this.size = 40;
7
+ this.strokeWidth = 3.25;
8
+ this.active = undefined;
9
+ }
10
+ render() {
11
+ const radius = (this.size - this.strokeWidth) / 2;
12
+ const circumference = radius * Math.PI * 2;
13
+ const dash = (this.progress * circumference) / 100;
14
+ const viewBox = `0 0 ${this.size} ${this.size}`;
15
+ return (h(Host, { key: 'e0da7ede087161c67c9dd0371d15030dd5107a19' }, h("div", { key: 'ebe68fb426b46e94b7d03ded4e8aaed852337f30', class: "progress-bar" }, h("svg", { key: 'ace46878d45bfbe51dae29c3020d74f43c2f5147', width: this.size, height: this.size, viewBox: viewBox }, h("circle", { key: 'dbbde61a95a7f13dc14a72fe538da43953852d7b', fill: "none", stroke: "#ccc", cx: this.size / 2, cy: this.size / 2, r: radius, "stroke-width": `${this.strokeWidth}px` }), this.active && (h("circle", { key: '272c197451a47c73cfa91d7f7578a50b26958732', fill: "none", stroke: this.progressColor, cx: this.size / 2, cy: this.size / 2, r: radius, "stroke-width": `${this.strokeWidth}px`, transform: `rotate(-90 ${this.size / 2} ${this.size / 2})`, "stroke-dasharray": `${dash}px ${circumference - dash}px`, "stroke-linecap": "round", style: { transition: 'all 0.5s' } }))), h("span", { key: 'a80f024e09fb54218fe97039459472855226c063' }, h("slot", { key: '5683f5edd5b54bd852fc1036b284656bfda066c4' })))));
16
+ }
17
+ static get is() { return "cura-progress-bar"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["cura-progress-bar.scss"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["cura-progress-bar.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "progressColor": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "string",
36
+ "resolved": "string",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": "Defines the color of the progress bar"
44
+ },
45
+ "attribute": "progress-color",
46
+ "reflect": true
47
+ },
48
+ "progress": {
49
+ "type": "number",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "number",
53
+ "resolved": "number",
54
+ "references": {}
55
+ },
56
+ "required": false,
57
+ "optional": false,
58
+ "docs": {
59
+ "tags": [],
60
+ "text": "Defines the percentage of progress"
61
+ },
62
+ "attribute": "progress",
63
+ "reflect": true
64
+ },
65
+ "size": {
66
+ "type": "number",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "number",
70
+ "resolved": "number",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Defines the size of the progress bar"
78
+ },
79
+ "attribute": "size",
80
+ "reflect": true,
81
+ "defaultValue": "40"
82
+ },
83
+ "strokeWidth": {
84
+ "type": "number",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "number",
88
+ "resolved": "number",
89
+ "references": {}
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": "Defines the width of the stroke (outline) of the progress circle"
96
+ },
97
+ "attribute": "stroke-width",
98
+ "reflect": true,
99
+ "defaultValue": "3.25"
100
+ },
101
+ "active": {
102
+ "type": "boolean",
103
+ "mutable": false,
104
+ "complexType": {
105
+ "original": "boolean",
106
+ "resolved": "boolean",
107
+ "references": {}
108
+ },
109
+ "required": false,
110
+ "optional": false,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": "Defines whether the progress bar is active"
114
+ },
115
+ "attribute": "active",
116
+ "reflect": true
117
+ }
118
+ };
119
+ }
120
+ }
121
+ //# sourceMappingURL=cura-progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-progress-bar.js","sourceRoot":"","sources":["../../../../src/components/cura-stepper/cura-progress-bar/cura-progress-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,E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O,EACtB,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,GACjC,CACH,CACG;gBACN;oBACE,8DAAa,CACR,CACH,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-progress-bar',\n styleUrl: 'cura-progress-bar.scss',\n shadow: true,\n})\nexport class CuraProgressBar {\n /**\n * Defines the color of the progress bar\n */\n @Prop({ reflect: true }) progressColor: string;\n\n /**\n * Defines the percentage of progress\n */\n @Prop({ reflect: true }) progress: number;\n\n /**\n * Defines the size of the progress bar\n */\n @Prop({ reflect: true }) size: number = 40;\n\n /**\n * Defines the width of the stroke (outline) of the progress circle\n */\n @Prop({ reflect: true }) strokeWidth: number = 3.25;\n\n /**\n * Defines whether the progress bar is active\n */\n @Prop({ reflect: true }) active: boolean;\n\n render() {\n const radius = (this.size - this.strokeWidth) / 2;\n const circumference = radius * Math.PI * 2;\n const dash = (this.progress * circumference) / 100;\n\n const viewBox = `0 0 ${this.size} ${this.size}`;\n\n return (\n <Host>\n <div class=\"progress-bar\">\n <svg width={this.size} height={this.size} viewBox={viewBox}>\n <circle fill=\"none\" stroke=\"#ccc\" cx={this.size / 2} cy={this.size / 2} r={radius} stroke-width={`${this.strokeWidth}px`} />\n {this.active && (\n <circle\n fill=\"none\"\n stroke={this.progressColor}\n cx={this.size / 2}\n cy={this.size / 2}\n r={radius}\n stroke-width={`${this.strokeWidth}px`}\n transform={`rotate(-90 ${this.size / 2} ${this.size / 2})`}\n stroke-dasharray={`${dash}px ${circumference - dash}px`}\n stroke-linecap=\"round\"\n style={{ transition: 'all 0.5s' }}\n />\n )}\n </svg>\n <span>\n <slot></slot>\n </span>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,10 @@
1
+ :host {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ .item-container {
7
+ display: flex;
8
+ gap: 4px;
9
+ align-items: center;
10
+ }
@@ -0,0 +1,153 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CuraStepperItem {
3
+ constructor() {
4
+ this.statusMap = {
5
+ active: {
6
+ badgeColor: 'info',
7
+ textColor: 'info-dark',
8
+ icon: '',
9
+ iconOnly: false,
10
+ },
11
+ stop: {
12
+ badgeColor: 'error',
13
+ textColor: 'error-darker',
14
+ icon: 'alertCircle',
15
+ iconOnly: true,
16
+ },
17
+ done: {
18
+ badgeColor: 'success',
19
+ textColor: 'success-darker',
20
+ icon: 'checkCircle',
21
+ iconOnly: true,
22
+ },
23
+ default: {
24
+ badgeColor: 'neutral',
25
+ textColor: 'neutral',
26
+ icon: '',
27
+ iconOnly: false,
28
+ },
29
+ };
30
+ this.displayHeading = false;
31
+ this.heading = undefined;
32
+ this.label = undefined;
33
+ this.status = 'default';
34
+ this.styles = {};
35
+ }
36
+ connectedCallback() {
37
+ this.updateStyles();
38
+ }
39
+ getStatusProperties() {
40
+ return this.statusMap[this.status] || this.statusMap.default;
41
+ }
42
+ updateStyles() {
43
+ const { fonts, colors, spacing } = window.CuraAPI.theme;
44
+ const weights = fonts.getWeights();
45
+ this.styles = {
46
+ '--base-spacing': spacing.getSpacing(),
47
+ '--neutral-purewhite': colors.getColor('neutral-purewhite'),
48
+ '--neutral-lighter': colors.getColor('neutral-lighter'),
49
+ '--neutral-base': colors.getColor('neutral-base'),
50
+ '--font-size': fonts.getSize(),
51
+ '--font-color': fonts.getColor(),
52
+ '--font-family': fonts.getFamily(),
53
+ '--font-weight-regular': weights.regular,
54
+ };
55
+ }
56
+ render() {
57
+ const { badgeColor, textColor, icon, iconOnly } = this.getStatusProperties();
58
+ 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)))));
59
+ }
60
+ static get is() { return "cura-stepper-item"; }
61
+ static get encapsulation() { return "shadow"; }
62
+ static get originalStyleUrls() {
63
+ return {
64
+ "$": ["cura-stepper-item.scss"]
65
+ };
66
+ }
67
+ static get styleUrls() {
68
+ return {
69
+ "$": ["cura-stepper-item.css"]
70
+ };
71
+ }
72
+ static get properties() {
73
+ return {
74
+ "displayHeading": {
75
+ "type": "boolean",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "boolean",
79
+ "resolved": "boolean",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "Determines if the step title is displayed (default: false)"
87
+ },
88
+ "attribute": "display-heading",
89
+ "reflect": true,
90
+ "defaultValue": "false"
91
+ },
92
+ "heading": {
93
+ "type": "string",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "string",
97
+ "resolved": "string",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "The title of the step (displayed if `displayHeading` is true)"
105
+ },
106
+ "attribute": "heading",
107
+ "reflect": true
108
+ },
109
+ "label": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "string",
114
+ "resolved": "string",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "The label displayed inside the badge"
122
+ },
123
+ "attribute": "label",
124
+ "reflect": true
125
+ },
126
+ "status": {
127
+ "type": "string",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "'done' | 'stop' | 'active' | 'default'",
131
+ "resolved": "\"active\" | \"default\" | \"done\" | \"stop\"",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": "The current status of the step\nCan 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."
139
+ },
140
+ "attribute": "status",
141
+ "reflect": true,
142
+ "defaultValue": "'default'"
143
+ }
144
+ };
145
+ }
146
+ static get states() {
147
+ return {
148
+ "styles": {}
149
+ };
150
+ }
151
+ static get elementRef() { return "hostElement"; }
152
+ }
153
+ //# sourceMappingURL=cura-stepper-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cura-stepper-item.js","sourceRoot":"","sources":["../../../../src/components/cura-stepper/cura-stepper-item/cura-stepper-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzE,MAAM,OAAO,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;sB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C,GAAG,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,SAAS,IAC3D,IAAI,CAAC,OAAO,CACE,CAClB,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}