@rededor/cura 1.8.3-alpha.0 → 2.0.0-alpha.11

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 (674) hide show
  1. package/dist/assets/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/assets/icons/iconset-default-tmp.svg +40 -0
  3. package/dist/assets/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/app-globals-e8cmvmo1.js +69 -0
  5. package/dist/cjs/{cura-accordion_20.cjs.entry.js → cura-accordion_21.cjs.entry.js} +1957 -98
  6. package/dist/cjs/cura-alert.cjs.entry.js +11 -11
  7. package/dist/cjs/cura-badge-counter.cjs.entry.js +13 -10
  8. package/dist/cjs/cura-badge-dot.cjs.entry.js +4 -7
  9. package/dist/cjs/cura-badge-pill.cjs.entry.js +7 -8
  10. package/dist/cjs/cura-button-outline.cjs.entry.js +15 -10
  11. package/dist/cjs/cura-button-select.cjs.entry.js +10 -9
  12. package/dist/cjs/cura-button.definitions-B3SK8MaV.js +0 -3
  13. package/dist/cjs/cura-calendar.cjs.entry.js +12 -9
  14. package/dist/cjs/cura-checkbox.cjs.entry.js +18 -11
  15. package/dist/cjs/cura-display.cjs.entry.js +10 -9
  16. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +4 -7
  17. package/dist/cjs/cura-forms.definitions-DVLuO67c.js +0 -3
  18. package/dist/cjs/cura-icon.definitions-DT0wF67y.js +0 -3
  19. package/dist/cjs/cura-icons-view.cjs.entry.js +5 -8
  20. package/dist/cjs/cura-input-date.cjs.entry.js +7 -8
  21. package/dist/cjs/cura-loader-bar.cjs.entry.js +10 -9
  22. package/dist/cjs/cura-modal.cjs.entry.js +19 -12
  23. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +6 -9
  24. package/dist/cjs/cura-radio.cjs.entry.js +15 -10
  25. package/dist/cjs/cura-stepper.cjs.entry.js +4 -7
  26. package/dist/cjs/cura-switch.cjs.entry.js +13 -10
  27. package/dist/cjs/cura-tabs-button.cjs.entry.js +7 -8
  28. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +7 -8
  29. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js +0 -3
  30. package/dist/cjs/cura-theme-module-Dg1d3VUN.js +237 -0
  31. package/dist/cjs/cura-toast.cjs.entry.js +10 -9
  32. package/dist/cjs/cura-tooltip.cjs.entry.js +4 -7
  33. package/dist/cjs/cura.cjs.js +8 -8
  34. package/dist/cjs/{index-BK9MSAiE.js → index-BLhmsPd0.js} +705 -579
  35. package/dist/cjs/index-EyP6Zlkd.js +0 -3
  36. package/dist/cjs/index.cjs.js +3 -4
  37. package/dist/cjs/loader.cjs.js +7 -7
  38. package/dist/cjs/static-DHz-FA_O.js +88 -0
  39. package/dist/cjs/theme-legacy-default-COE-hjD7.js +264 -0
  40. package/dist/collection/api/cura-api.js +0 -1
  41. package/dist/collection/api/cura-api.type.js +0 -1
  42. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -1
  43. package/dist/collection/api/modules/cura-theme-colors-module.js +0 -1
  44. package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -1
  45. package/dist/collection/api/modules/cura-theme-module.js +0 -1
  46. package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -1
  47. package/dist/collection/api/theme-presets/static.js +0 -1
  48. package/dist/collection/api/theme-presets/theme-default.js +0 -1
  49. package/dist/collection/api/theme-presets/theme-legacy-default.js +0 -1
  50. package/dist/collection/api/theme-presets/theme-maternity.js +0 -1
  51. package/dist/collection/api/theme-presets/theme-oncology.js +0 -1
  52. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js +0 -1
  53. package/dist/collection/api/theme-presets/theme-presets.js +0 -1
  54. package/dist/collection/api/theme-presets/theme-richet.js +0 -1
  55. package/dist/collection/assets/icons/iconset-default-list.js +1 -2
  56. package/dist/collection/assets/icons/iconset-default-tmp.svg +40 -0
  57. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  58. package/dist/collection/assets-raw/icons/default/autism.svg +3 -0
  59. package/dist/collection/assets-raw/icons/default/biop.svg +3 -0
  60. package/dist/collection/assets-raw/icons/default/lab.svg +3 -0
  61. package/dist/collection/assets-raw/icons/default/mobileClick.svg +3 -0
  62. package/dist/collection/assets-raw/icons/default/mobileRotate1.svg +3 -0
  63. package/dist/collection/assets-raw/icons/default/mobileRotate2.svg +3 -0
  64. package/dist/collection/assets-raw/icons/default/mobileRotate3.svg +3 -0
  65. package/dist/collection/assets-raw/icons/default/star.svg +3 -0
  66. package/dist/collection/assets-raw/icons/default/stop.svg +3 -0
  67. package/dist/collection/assets-raw/icons/default/xray.svg +3 -0
  68. package/dist/collection/collection-manifest.json +3 -2
  69. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +9 -10
  70. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +0 -1
  71. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +9 -10
  72. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +5 -6
  73. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js +0 -1
  74. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +2 -3
  75. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js +0 -1
  76. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +3 -4
  77. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js +0 -1
  78. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +8 -9
  79. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +0 -1
  80. package/dist/collection/components/buttons/cura-button/cura-button.js +24 -25
  81. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +0 -1
  82. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +17 -18
  83. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +0 -1
  84. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +12 -13
  85. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +0 -1
  86. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +16 -17
  87. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +0 -1
  88. package/dist/collection/components/buttons/cura-button.definitions.js +0 -1
  89. package/dist/collection/components/cura-alert/cura-alert.js +11 -11
  90. package/dist/collection/components/cura-alert/cura-alert.stories.js +0 -1
  91. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +0 -1
  92. package/dist/collection/components/cura-avatar/cura-avatar.js +13 -14
  93. package/dist/collection/components/cura-avatar/cura-avatar.stories.js +0 -1
  94. package/dist/collection/components/cura-calendar/cura-calendar.js +21 -25
  95. package/dist/collection/components/cura-calendar/cura-calendar.stories.js +0 -1
  96. package/dist/collection/components/cura-card/cura-card.js +7 -8
  97. package/dist/collection/components/cura-card/cura-card.stories.js +0 -1
  98. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js +0 -1
  99. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js +0 -1
  100. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +0 -1
  101. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js +0 -1
  102. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +7 -8
  103. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +0 -1
  104. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.css +1 -1
  105. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +40 -19
  106. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js +0 -1
  107. package/dist/collection/components/cura-icon/cura-icon.definitions.js +0 -1
  108. package/dist/collection/components/cura-icon/cura-icon.js +6 -7
  109. package/dist/collection/components/cura-icon/cura-icon.stories.js +0 -1
  110. package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -1
  111. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +0 -1
  112. package/dist/collection/components/cura-modal/cura-modal.js +9 -10
  113. package/dist/collection/components/cura-modal/cura-modal.stories.js +0 -1
  114. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -2
  115. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +8 -9
  116. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +6 -7
  117. package/dist/collection/components/cura-stepper/cura-stepper.js +8 -8
  118. package/dist/collection/components/cura-stepper/cura-stepper.stories.js +0 -1
  119. package/dist/collection/components/cura-stepper/stepper.type.js +0 -1
  120. package/dist/collection/components/cura-toast/cura-toast.js +9 -10
  121. package/dist/collection/components/cura-toast/cura-toast.stories.js +0 -1
  122. package/dist/collection/components/cura-tooltip/cura-tooltip.js +8 -9
  123. package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js +0 -1
  124. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +19 -20
  125. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +0 -1
  126. package/dist/collection/components/forms/cura-forms.definitions.js +0 -1
  127. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +15 -16
  128. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +0 -1
  129. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +37 -35
  130. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +0 -1
  131. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +0 -1
  132. package/dist/collection/components/forms/cura-label/cura-label.js +8 -9
  133. package/dist/collection/components/forms/cura-label/cura-label.stories.js +0 -1
  134. package/dist/collection/components/forms/cura-radio/cura-radio.js +15 -16
  135. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +0 -1
  136. package/dist/collection/components/forms/cura-select/cura-select.css +3 -148
  137. package/dist/collection/components/forms/cura-select/cura-select.js +116 -25
  138. package/dist/collection/components/forms/cura-select/cura-select.stories.js +0 -1
  139. package/dist/collection/components/forms/cura-select-options/cura-select-option.css +15 -0
  140. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +5 -6
  141. package/dist/collection/components/forms/cura-switch/cura-switch.js +10 -11
  142. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +0 -1
  143. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +2 -3
  144. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js +0 -1
  145. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +2 -3
  146. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +0 -1
  147. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +9 -10
  148. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js +0 -1
  149. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +9 -10
  150. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js +0 -1
  151. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +3 -4
  152. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js +0 -1
  153. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +9 -10
  154. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js +0 -1
  155. package/dist/collection/components/tabs/cura-tabs.definitions.js +0 -1
  156. package/dist/collection/components/text/cura-display/cura-display.js +7 -8
  157. package/dist/collection/components/text/cura-display/cura-display.stories.js +0 -1
  158. package/dist/collection/components/text/cura-heading/cura-heading.js +9 -10
  159. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +0 -1
  160. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +7 -8
  161. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +0 -1
  162. package/dist/collection/index.js +0 -1
  163. package/dist/collection/rededor-cura-start.js +0 -1
  164. package/dist/collection/utils/FixedElementScrollBehavior.js +0 -1
  165. package/dist/collection/utils/utils.js +0 -1
  166. package/dist/components/cura-accordion-item.js +1 -102
  167. package/dist/components/cura-accordion.js +1 -144
  168. package/dist/components/cura-alert.js +1 -109
  169. package/dist/components/cura-avatar.js +1 -112
  170. package/dist/components/cura-badge-counter.js +1 -9
  171. package/dist/components/cura-badge-distance.js +1 -73
  172. package/dist/components/cura-badge-dot.js +1 -73
  173. package/dist/components/cura-badge-pill.js +1 -9
  174. package/dist/components/cura-button-outline.js +1 -206
  175. package/dist/components/cura-button-select.js +1 -163
  176. package/dist/components/cura-button-transparent.js +1 -9
  177. package/dist/components/cura-button.js +1 -205
  178. package/dist/components/cura-calendar.js +1 -9
  179. package/dist/components/cura-card.js +1 -104
  180. package/dist/components/cura-checkbox.js +1 -286
  181. package/dist/components/cura-display.js +1 -128
  182. package/dist/components/cura-dropdown-search-category.js +1 -49
  183. package/dist/components/cura-dropdown-search-not-found.js +1 -48
  184. package/dist/components/cura-dropdown-search-option.js +1 -93
  185. package/dist/components/cura-dropdown-search.js +1 -445
  186. package/dist/components/cura-heading.js +1 -9
  187. package/dist/components/cura-icon.js +1 -9
  188. package/dist/components/cura-icons-view.js +1 -67
  189. package/dist/components/cura-input-date.js +1 -286
  190. package/dist/components/cura-input-text.js +1 -9
  191. package/dist/components/cura-label.js +1 -9
  192. package/dist/components/cura-loader-bar.js +1 -9
  193. package/dist/components/cura-loader-circle.js +1 -9
  194. package/dist/components/cura-modal.js +1 -181
  195. package/dist/components/cura-page-template.js +1 -50
  196. package/dist/components/cura-paragraph.js +1 -9
  197. package/dist/components/cura-progress-bar.js +1 -9
  198. package/dist/components/cura-radio.js +1 -249
  199. package/dist/components/cura-select-option.js +1 -9
  200. package/dist/components/cura-select.js +1 -9
  201. package/dist/components/cura-stepper-item.js +1 -9
  202. package/dist/components/cura-stepper.js +1 -205
  203. package/dist/components/cura-switch.js +1 -201
  204. package/dist/components/cura-tabs-button.js +1 -148
  205. package/dist/components/cura-tabs-group.js +1 -64
  206. package/dist/components/cura-tabs-transparent.js +1 -141
  207. package/dist/components/cura-tabs.js +1 -146
  208. package/dist/components/cura-toast.js +1 -162
  209. package/dist/components/cura-tooltip.js +1 -291
  210. package/dist/components/index.d.ts +2 -0
  211. package/dist/components/index.js +1 -115
  212. package/dist/components/p-B2RN7oe_.js +1 -0
  213. package/dist/components/p-B8xnU6YS.js +1 -0
  214. package/dist/components/p-BSI2FkNn.js +1 -11
  215. package/dist/components/p-BSdkRryc.js +1 -0
  216. package/dist/components/p-BYA8glxD.js +1 -0
  217. package/dist/components/p-Bf21UQXV.js +1 -0
  218. package/dist/components/p-C7so9xnO.js +1 -0
  219. package/dist/components/p-CCkEqDZb.js +1 -0
  220. package/dist/components/p-CG1lz5DR.js +1 -0
  221. package/dist/components/p-CHcd-uKK.js +1 -11
  222. package/dist/components/p-CpmZ68rD.js +1 -0
  223. package/dist/components/p-D6xuYQiO.js +1 -0
  224. package/dist/components/p-D7WNwjv-.js +1 -0
  225. package/dist/components/p-DBXUEjWh.js +1 -0
  226. package/dist/components/p-DXlGQp3a.js +1 -0
  227. package/dist/components/p-Dot54hbB.js +1 -19
  228. package/dist/components/p-DxJedO3K.js +1 -0
  229. package/dist/components/p-fR02COZb.js +1 -0
  230. package/dist/components/p-fn4zJrKE.js +1 -0
  231. package/dist/cura/cura.esm.js +1 -2
  232. package/dist/cura/index.esm.js +1 -2
  233. package/dist/cura/p-1dc9c478.entry.js +1 -0
  234. package/dist/cura/p-27ba7ef5.entry.js +1 -0
  235. package/dist/cura/p-2db704a6.entry.js +1 -0
  236. package/dist/cura/p-2e2e2b4d.entry.js +1 -0
  237. package/dist/cura/p-31373db7.entry.js +1 -0
  238. package/dist/cura/p-3a3202f0.entry.js +1 -0
  239. package/dist/cura/p-42e72d12.entry.js +1 -0
  240. package/dist/cura/p-5357f7bd.entry.js +1 -0
  241. package/dist/cura/p-54624944.entry.js +1 -0
  242. package/dist/cura/p-582f8b72.entry.js +1 -0
  243. package/dist/cura/p-7965fe63.entry.js +1 -0
  244. package/dist/cura/p-964stZ3D.js +1 -2
  245. package/dist/cura/p-9de85de6.entry.js +1 -0
  246. package/dist/cura/p-BM8Akv15.js +1 -0
  247. package/dist/cura/p-BSI2FkNn.js +1 -2
  248. package/dist/cura/p-BTIDzOyO.js +1 -0
  249. package/dist/cura/p-BxFVLGIR.js +2 -0
  250. package/dist/cura/p-CHcd-uKK.js +1 -2
  251. package/dist/cura/p-DQopj-k5.js +1 -0
  252. package/dist/cura/p-DfJS7YqS.js +1 -0
  253. package/dist/cura/p-Dot54hbB.js +1 -2
  254. package/dist/cura/p-b14ae206.entry.js +1 -0
  255. package/dist/cura/p-b7369d04.entry.js +1 -0
  256. package/dist/cura/p-bf99e8bf.entry.js +1 -0
  257. package/dist/cura/p-c18d7f16.entry.js +1 -0
  258. package/dist/cura/p-c247c93b.entry.js +1 -0
  259. package/dist/cura/p-cbe8c690.entry.js +1 -0
  260. package/dist/cura/p-d2f670f6.entry.js +1 -0
  261. package/dist/cura/p-d5c6d2b4.entry.js +1 -0
  262. package/dist/cura/p-ddf4d240.entry.js +1 -0
  263. package/dist/cura/p-f534123f.entry.js +1 -0
  264. package/dist/cura/p-f911a6c5.entry.js +1 -0
  265. package/dist/cura/p-sjLA93YY.js +1 -2
  266. package/dist/esm/app-globals-B7bpkHH3.js +67 -0
  267. package/dist/esm/{cura-accordion_20.entry.js → cura-accordion_21.entry.js} +1956 -98
  268. package/dist/esm/cura-alert.entry.js +11 -11
  269. package/dist/esm/cura-badge-counter.entry.js +13 -10
  270. package/dist/esm/cura-badge-dot.entry.js +4 -7
  271. package/dist/esm/cura-badge-pill.entry.js +7 -8
  272. package/dist/esm/cura-button-outline.entry.js +15 -10
  273. package/dist/esm/cura-button-select.entry.js +10 -9
  274. package/dist/esm/cura-button.definitions-BSI2FkNn.js +0 -3
  275. package/dist/esm/cura-calendar.entry.js +12 -9
  276. package/dist/esm/cura-checkbox.entry.js +18 -11
  277. package/dist/esm/cura-display.entry.js +10 -9
  278. package/dist/esm/cura-dropdown-search-not-found.entry.js +4 -7
  279. package/dist/esm/cura-forms.definitions-Dot54hbB.js +0 -3
  280. package/dist/esm/cura-icon.definitions-sjLA93YY.js +0 -3
  281. package/dist/esm/cura-icons-view.entry.js +5 -8
  282. package/dist/esm/cura-input-date.entry.js +7 -8
  283. package/dist/esm/cura-loader-bar.entry.js +10 -9
  284. package/dist/esm/cura-modal.entry.js +19 -12
  285. package/dist/esm/cura-progress-bar_2.entry.js +6 -9
  286. package/dist/esm/cura-radio.entry.js +15 -10
  287. package/dist/esm/cura-stepper.entry.js +4 -7
  288. package/dist/esm/cura-switch.entry.js +13 -10
  289. package/dist/esm/cura-tabs-button.entry.js +7 -8
  290. package/dist/esm/cura-tabs-transparent.entry.js +7 -8
  291. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js +0 -3
  292. package/dist/esm/{cura-theme-module-BPKQjAwN.js → cura-theme-module-BrK961-w.js} +3 -339
  293. package/dist/esm/cura-toast.entry.js +10 -9
  294. package/dist/esm/cura-tooltip.entry.js +4 -7
  295. package/dist/esm/cura.js +8 -8
  296. package/dist/esm/index-964stZ3D.js +0 -3
  297. package/dist/esm/{index-OdKytJIH.js → index-Ce1Pxw3V.js} +706 -579
  298. package/dist/esm/index.js +3 -4
  299. package/dist/esm/loader.js +7 -7
  300. package/dist/esm/static-DfJS7YqS.js +86 -0
  301. package/dist/esm/theme-legacy-default-BTIDzOyO.js +257 -0
  302. package/dist/types/components/cura-dropdown-search/cura-dropdown-search.d.ts +2 -0
  303. package/dist/types/components/forms/cura-select/cura-select.d.ts +21 -0
  304. package/dist/types/components.d.ts +559 -85
  305. package/dist/types/stencil-public-runtime.d.ts +169 -11
  306. package/package.json +4 -3
  307. package/dist/cjs/cura-accordion_20.cjs.entry.js.map +0 -1
  308. package/dist/cjs/cura-alert.cjs.entry.js.map +0 -1
  309. package/dist/cjs/cura-alert.entry.cjs.js.map +0 -1
  310. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +0 -1
  311. package/dist/cjs/cura-badge-counter.entry.cjs.js.map +0 -1
  312. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +0 -1
  313. package/dist/cjs/cura-badge-dot.entry.cjs.js.map +0 -1
  314. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +0 -1
  315. package/dist/cjs/cura-badge-pill.entry.cjs.js.map +0 -1
  316. package/dist/cjs/cura-button-outline.cjs.entry.js.map +0 -1
  317. package/dist/cjs/cura-button-outline.entry.cjs.js.map +0 -1
  318. package/dist/cjs/cura-button-select.cjs.entry.js.map +0 -1
  319. package/dist/cjs/cura-button-select.entry.cjs.js.map +0 -1
  320. package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +0 -1
  321. package/dist/cjs/cura-calendar.cjs.entry.js.map +0 -1
  322. package/dist/cjs/cura-calendar.entry.cjs.js.map +0 -1
  323. package/dist/cjs/cura-card.cjs.entry.js +0 -81
  324. package/dist/cjs/cura-card.cjs.entry.js.map +0 -1
  325. package/dist/cjs/cura-card.entry.cjs.js.map +0 -1
  326. package/dist/cjs/cura-checkbox.cjs.entry.js.map +0 -1
  327. package/dist/cjs/cura-checkbox.entry.cjs.js.map +0 -1
  328. package/dist/cjs/cura-display.cjs.entry.js.map +0 -1
  329. package/dist/cjs/cura-display.entry.cjs.js.map +0 -1
  330. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +0 -1
  331. package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +0 -1
  332. package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +0 -1
  333. package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +0 -1
  334. package/dist/cjs/cura-icons-view.cjs.entry.js.map +0 -1
  335. package/dist/cjs/cura-icons-view.entry.cjs.js.map +0 -1
  336. package/dist/cjs/cura-input-date.cjs.entry.js.map +0 -1
  337. package/dist/cjs/cura-input-date.entry.cjs.js.map +0 -1
  338. package/dist/cjs/cura-loader-bar.cjs.entry.js.map +0 -1
  339. package/dist/cjs/cura-loader-bar.entry.cjs.js.map +0 -1
  340. package/dist/cjs/cura-modal.cjs.entry.js.map +0 -1
  341. package/dist/cjs/cura-modal.entry.cjs.js.map +0 -1
  342. package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +0 -1
  343. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +0 -1
  344. package/dist/cjs/cura-radio.cjs.entry.js.map +0 -1
  345. package/dist/cjs/cura-radio.entry.cjs.js.map +0 -1
  346. package/dist/cjs/cura-stepper.cjs.entry.js.map +0 -1
  347. package/dist/cjs/cura-stepper.entry.cjs.js.map +0 -1
  348. package/dist/cjs/cura-switch.cjs.entry.js.map +0 -1
  349. package/dist/cjs/cura-switch.entry.cjs.js.map +0 -1
  350. package/dist/cjs/cura-tabs-button.cjs.entry.js.map +0 -1
  351. package/dist/cjs/cura-tabs-button.entry.cjs.js.map +0 -1
  352. package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +0 -1
  353. package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +0 -1
  354. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +0 -1
  355. package/dist/cjs/cura-theme-module-CJkmAxBA.js +0 -574
  356. package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +0 -1
  357. package/dist/cjs/cura-toast.cjs.entry.js.map +0 -1
  358. package/dist/cjs/cura-toast.entry.cjs.js.map +0 -1
  359. package/dist/cjs/cura-tooltip.cjs.entry.js.map +0 -1
  360. package/dist/cjs/cura-tooltip.entry.cjs.js.map +0 -1
  361. package/dist/cjs/cura.cjs.js.map +0 -1
  362. package/dist/cjs/index-BK9MSAiE.js.map +0 -1
  363. package/dist/cjs/index-EyP6Zlkd.js.map +0 -1
  364. package/dist/cjs/index.cjs.js.map +0 -1
  365. package/dist/cjs/loader.cjs.js.map +0 -1
  366. package/dist/collection/api/cura-api.js.map +0 -1
  367. package/dist/collection/api/cura-api.type.js.map +0 -1
  368. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -1
  369. package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
  370. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
  371. package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
  372. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
  373. package/dist/collection/api/theme-presets/static.js.map +0 -1
  374. package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
  375. package/dist/collection/api/theme-presets/theme-legacy-default.js.map +0 -1
  376. package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
  377. package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
  378. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js.map +0 -1
  379. package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
  380. package/dist/collection/api/theme-presets/theme-richet.js.map +0 -1
  381. package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
  382. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +0 -1
  383. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +0 -1
  384. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +0 -1
  385. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +0 -1
  386. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js.map +0 -1
  387. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +0 -1
  388. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js.map +0 -1
  389. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +0 -1
  390. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js.map +0 -1
  391. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +0 -1
  392. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +0 -1
  393. package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
  394. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +0 -1
  395. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -1
  396. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +0 -1
  397. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +0 -1
  398. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +0 -1
  399. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -1
  400. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +0 -1
  401. package/dist/collection/components/buttons/cura-button.definitions.js.map +0 -1
  402. package/dist/collection/components/cura-alert/cura-alert.js.map +0 -1
  403. package/dist/collection/components/cura-alert/cura-alert.stories.js.map +0 -1
  404. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +0 -1
  405. package/dist/collection/components/cura-avatar/cura-avatar.js.map +0 -1
  406. package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +0 -1
  407. package/dist/collection/components/cura-calendar/cura-calendar.js.map +0 -1
  408. package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +0 -1
  409. package/dist/collection/components/cura-card/cura-card.js.map +0 -1
  410. package/dist/collection/components/cura-card/cura-card.stories.js.map +0 -1
  411. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js.map +0 -1
  412. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +0 -1
  413. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +0 -1
  414. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +0 -1
  415. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +0 -1
  416. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +0 -1
  417. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +0 -1
  418. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js.map +0 -1
  419. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +0 -1
  420. package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
  421. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +0 -1
  422. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
  423. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +0 -1
  424. package/dist/collection/components/cura-modal/cura-modal.js.map +0 -1
  425. package/dist/collection/components/cura-modal/cura-modal.stories.js.map +0 -1
  426. package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
  427. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +0 -1
  428. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +0 -1
  429. package/dist/collection/components/cura-stepper/cura-stepper.js.map +0 -1
  430. package/dist/collection/components/cura-stepper/cura-stepper.stories.js.map +0 -1
  431. package/dist/collection/components/cura-stepper/stepper.type.js.map +0 -1
  432. package/dist/collection/components/cura-toast/cura-toast.js.map +0 -1
  433. package/dist/collection/components/cura-toast/cura-toast.stories.js.map +0 -1
  434. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +0 -1
  435. package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js.map +0 -1
  436. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +0 -1
  437. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +0 -1
  438. package/dist/collection/components/forms/cura-forms.definitions.js.map +0 -1
  439. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +0 -1
  440. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +0 -1
  441. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +0 -1
  442. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +0 -1
  443. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +0 -1
  444. package/dist/collection/components/forms/cura-label/cura-label.js.map +0 -1
  445. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +0 -1
  446. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +0 -1
  447. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +0 -1
  448. package/dist/collection/components/forms/cura-select/cura-select.js.map +0 -1
  449. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +0 -1
  450. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +0 -1
  451. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +0 -1
  452. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +0 -1
  453. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +0 -1
  454. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js.map +0 -1
  455. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -1
  456. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +0 -1
  457. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +0 -1
  458. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js.map +0 -1
  459. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +0 -1
  460. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js.map +0 -1
  461. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +0 -1
  462. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js.map +0 -1
  463. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +0 -1
  464. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js.map +0 -1
  465. package/dist/collection/components/tabs/cura-tabs.definitions.js.map +0 -1
  466. package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
  467. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +0 -1
  468. package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
  469. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +0 -1
  470. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
  471. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +0 -1
  472. package/dist/collection/index.js.map +0 -1
  473. package/dist/collection/rededor-cura-start.js.map +0 -1
  474. package/dist/collection/utils/FixedElementScrollBehavior.js.map +0 -1
  475. package/dist/collection/utils/utils.js.map +0 -1
  476. package/dist/components/cura-accordion-item.js.map +0 -1
  477. package/dist/components/cura-accordion.js.map +0 -1
  478. package/dist/components/cura-alert.js.map +0 -1
  479. package/dist/components/cura-avatar.js.map +0 -1
  480. package/dist/components/cura-badge-counter.js.map +0 -1
  481. package/dist/components/cura-badge-distance.js.map +0 -1
  482. package/dist/components/cura-badge-dot.js.map +0 -1
  483. package/dist/components/cura-badge-pill.js.map +0 -1
  484. package/dist/components/cura-button-outline.js.map +0 -1
  485. package/dist/components/cura-button-select.js.map +0 -1
  486. package/dist/components/cura-button-transparent.js.map +0 -1
  487. package/dist/components/cura-button.js.map +0 -1
  488. package/dist/components/cura-calendar.js.map +0 -1
  489. package/dist/components/cura-card.js.map +0 -1
  490. package/dist/components/cura-checkbox.js.map +0 -1
  491. package/dist/components/cura-display.js.map +0 -1
  492. package/dist/components/cura-dropdown-search-category.js.map +0 -1
  493. package/dist/components/cura-dropdown-search-not-found.js.map +0 -1
  494. package/dist/components/cura-dropdown-search-option.js.map +0 -1
  495. package/dist/components/cura-dropdown-search.js.map +0 -1
  496. package/dist/components/cura-heading.js.map +0 -1
  497. package/dist/components/cura-icon.js.map +0 -1
  498. package/dist/components/cura-icons-view.js.map +0 -1
  499. package/dist/components/cura-input-date.js.map +0 -1
  500. package/dist/components/cura-input-text.js.map +0 -1
  501. package/dist/components/cura-label.js.map +0 -1
  502. package/dist/components/cura-loader-bar.js.map +0 -1
  503. package/dist/components/cura-loader-circle.js.map +0 -1
  504. package/dist/components/cura-modal.js.map +0 -1
  505. package/dist/components/cura-page-template.js.map +0 -1
  506. package/dist/components/cura-paragraph.js.map +0 -1
  507. package/dist/components/cura-progress-bar.js.map +0 -1
  508. package/dist/components/cura-radio.js.map +0 -1
  509. package/dist/components/cura-select-option.js.map +0 -1
  510. package/dist/components/cura-select.js.map +0 -1
  511. package/dist/components/cura-stepper-item.js.map +0 -1
  512. package/dist/components/cura-stepper.js.map +0 -1
  513. package/dist/components/cura-switch.js.map +0 -1
  514. package/dist/components/cura-tabs-button.js.map +0 -1
  515. package/dist/components/cura-tabs-group.js.map +0 -1
  516. package/dist/components/cura-tabs-transparent.js.map +0 -1
  517. package/dist/components/cura-tabs.js.map +0 -1
  518. package/dist/components/cura-toast.js.map +0 -1
  519. package/dist/components/cura-tooltip.js.map +0 -1
  520. package/dist/components/index.js.map +0 -1
  521. package/dist/components/p-B5aO1chh.js +0 -85
  522. package/dist/components/p-B5aO1chh.js.map +0 -1
  523. package/dist/components/p-BGnJiNyu.js +0 -7032
  524. package/dist/components/p-BGnJiNyu.js.map +0 -1
  525. package/dist/components/p-BHEafDKD.js +0 -127
  526. package/dist/components/p-BHEafDKD.js.map +0 -1
  527. package/dist/components/p-BRDqwZ4N.js +0 -187
  528. package/dist/components/p-BRDqwZ4N.js.map +0 -1
  529. package/dist/components/p-BSI2FkNn.js.map +0 -1
  530. package/dist/components/p-BTt-pVTn.js +0 -442
  531. package/dist/components/p-BTt-pVTn.js.map +0 -1
  532. package/dist/components/p-C72aF-gL.js +0 -99
  533. package/dist/components/p-C72aF-gL.js.map +0 -1
  534. package/dist/components/p-CHcd-uKK.js.map +0 -1
  535. package/dist/components/p-CgMS6FUK.js +0 -4137
  536. package/dist/components/p-CgMS6FUK.js.map +0 -1
  537. package/dist/components/p-D1cPOZpG.js +0 -2617
  538. package/dist/components/p-D1cPOZpG.js.map +0 -1
  539. package/dist/components/p-DI4g-ZH4.js +0 -101
  540. package/dist/components/p-DI4g-ZH4.js.map +0 -1
  541. package/dist/components/p-DR1RHrEX.js +0 -120
  542. package/dist/components/p-DR1RHrEX.js.map +0 -1
  543. package/dist/components/p-DaPc6Dxl.js +0 -125
  544. package/dist/components/p-DaPc6Dxl.js.map +0 -1
  545. package/dist/components/p-Dot54hbB.js.map +0 -1
  546. package/dist/components/p-DpIu_Oxz.js +0 -86
  547. package/dist/components/p-DpIu_Oxz.js.map +0 -1
  548. package/dist/components/p-Dqm2sAwv.js +0 -58
  549. package/dist/components/p-Dqm2sAwv.js.map +0 -1
  550. package/dist/components/p-FTSrgi0q.js +0 -51
  551. package/dist/components/p-FTSrgi0q.js.map +0 -1
  552. package/dist/components/p-KIQMkSRF.js +0 -64
  553. package/dist/components/p-KIQMkSRF.js.map +0 -1
  554. package/dist/components/p-cOEGtL9C.js +0 -131
  555. package/dist/components/p-cOEGtL9C.js.map +0 -1
  556. package/dist/cura/cura-alert.entry.esm.js.map +0 -1
  557. package/dist/cura/cura-badge-counter.entry.esm.js.map +0 -1
  558. package/dist/cura/cura-badge-dot.entry.esm.js.map +0 -1
  559. package/dist/cura/cura-badge-pill.entry.esm.js.map +0 -1
  560. package/dist/cura/cura-button-outline.entry.esm.js.map +0 -1
  561. package/dist/cura/cura-button-select.entry.esm.js.map +0 -1
  562. package/dist/cura/cura-calendar.entry.esm.js.map +0 -1
  563. package/dist/cura/cura-card.entry.esm.js.map +0 -1
  564. package/dist/cura/cura-checkbox.entry.esm.js.map +0 -1
  565. package/dist/cura/cura-display.entry.esm.js.map +0 -1
  566. package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +0 -1
  567. package/dist/cura/cura-icons-view.entry.esm.js.map +0 -1
  568. package/dist/cura/cura-input-date.entry.esm.js.map +0 -1
  569. package/dist/cura/cura-loader-bar.entry.esm.js.map +0 -1
  570. package/dist/cura/cura-modal.entry.esm.js.map +0 -1
  571. package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +0 -1
  572. package/dist/cura/cura-radio.entry.esm.js.map +0 -1
  573. package/dist/cura/cura-stepper.entry.esm.js.map +0 -1
  574. package/dist/cura/cura-switch.entry.esm.js.map +0 -1
  575. package/dist/cura/cura-tabs-button.entry.esm.js.map +0 -1
  576. package/dist/cura/cura-tabs-transparent.entry.esm.js.map +0 -1
  577. package/dist/cura/cura-toast.entry.esm.js.map +0 -1
  578. package/dist/cura/cura-tooltip.entry.esm.js.map +0 -1
  579. package/dist/cura/cura.esm.js.map +0 -1
  580. package/dist/cura/index.esm.js.map +0 -1
  581. package/dist/cura/loader.esm.js.map +0 -1
  582. package/dist/cura/p-077019da.entry.js +0 -2
  583. package/dist/cura/p-077019da.entry.js.map +0 -1
  584. package/dist/cura/p-07783235.entry.js +0 -2
  585. package/dist/cura/p-07783235.entry.js.map +0 -1
  586. package/dist/cura/p-090e297c.entry.js +0 -2
  587. package/dist/cura/p-090e297c.entry.js.map +0 -1
  588. package/dist/cura/p-16c0b52c.entry.js +0 -2
  589. package/dist/cura/p-16c0b52c.entry.js.map +0 -1
  590. package/dist/cura/p-2632183e.entry.js +0 -2
  591. package/dist/cura/p-2632183e.entry.js.map +0 -1
  592. package/dist/cura/p-32015dcc.entry.js +0 -2
  593. package/dist/cura/p-32015dcc.entry.js.map +0 -1
  594. package/dist/cura/p-32f94709.entry.js +0 -2
  595. package/dist/cura/p-32f94709.entry.js.map +0 -1
  596. package/dist/cura/p-3d6040e2.entry.js +0 -2
  597. package/dist/cura/p-3d6040e2.entry.js.map +0 -1
  598. package/dist/cura/p-4ac578a6.entry.js +0 -2
  599. package/dist/cura/p-4ac578a6.entry.js.map +0 -1
  600. package/dist/cura/p-4bde448e.entry.js +0 -2
  601. package/dist/cura/p-4bde448e.entry.js.map +0 -1
  602. package/dist/cura/p-5ed7ce95.entry.js +0 -2
  603. package/dist/cura/p-5ed7ce95.entry.js.map +0 -1
  604. package/dist/cura/p-6feba852.entry.js +0 -2
  605. package/dist/cura/p-6feba852.entry.js.map +0 -1
  606. package/dist/cura/p-7586fd07.entry.js +0 -2
  607. package/dist/cura/p-7586fd07.entry.js.map +0 -1
  608. package/dist/cura/p-76cbb798.entry.js +0 -2
  609. package/dist/cura/p-76cbb798.entry.js.map +0 -1
  610. package/dist/cura/p-7fd143aa.entry.js +0 -2
  611. package/dist/cura/p-7fd143aa.entry.js.map +0 -1
  612. package/dist/cura/p-8c83f259.entry.js +0 -2
  613. package/dist/cura/p-8c83f259.entry.js.map +0 -1
  614. package/dist/cura/p-95cd7918.entry.js +0 -2
  615. package/dist/cura/p-95cd7918.entry.js.map +0 -1
  616. package/dist/cura/p-964stZ3D.js.map +0 -1
  617. package/dist/cura/p-9ef5444e.entry.js +0 -2
  618. package/dist/cura/p-9ef5444e.entry.js.map +0 -1
  619. package/dist/cura/p-BPKQjAwN.js +0 -2
  620. package/dist/cura/p-BPKQjAwN.js.map +0 -1
  621. package/dist/cura/p-BSI2FkNn.js.map +0 -1
  622. package/dist/cura/p-CHcd-uKK.js.map +0 -1
  623. package/dist/cura/p-Dot54hbB.js.map +0 -1
  624. package/dist/cura/p-PPMZr_VE.js +0 -3
  625. package/dist/cura/p-PPMZr_VE.js.map +0 -1
  626. package/dist/cura/p-c6f240f0.entry.js +0 -2
  627. package/dist/cura/p-c6f240f0.entry.js.map +0 -1
  628. package/dist/cura/p-ceb646df.entry.js +0 -2
  629. package/dist/cura/p-ceb646df.entry.js.map +0 -1
  630. package/dist/cura/p-d040f8b9.entry.js +0 -2
  631. package/dist/cura/p-d040f8b9.entry.js.map +0 -1
  632. package/dist/cura/p-d8aeca82.entry.js +0 -2
  633. package/dist/cura/p-d8aeca82.entry.js.map +0 -1
  634. package/dist/cura/p-deb0b764.entry.js +0 -2
  635. package/dist/cura/p-deb0b764.entry.js.map +0 -1
  636. package/dist/cura/p-f9af3a3b.entry.js +0 -2
  637. package/dist/cura/p-f9af3a3b.entry.js.map +0 -1
  638. package/dist/cura/p-sjLA93YY.js.map +0 -1
  639. package/dist/esm/cura-accordion_20.entry.js.map +0 -1
  640. package/dist/esm/cura-alert.entry.js.map +0 -1
  641. package/dist/esm/cura-badge-counter.entry.js.map +0 -1
  642. package/dist/esm/cura-badge-dot.entry.js.map +0 -1
  643. package/dist/esm/cura-badge-pill.entry.js.map +0 -1
  644. package/dist/esm/cura-button-outline.entry.js.map +0 -1
  645. package/dist/esm/cura-button-select.entry.js.map +0 -1
  646. package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +0 -1
  647. package/dist/esm/cura-calendar.entry.js.map +0 -1
  648. package/dist/esm/cura-card.entry.js +0 -79
  649. package/dist/esm/cura-card.entry.js.map +0 -1
  650. package/dist/esm/cura-checkbox.entry.js.map +0 -1
  651. package/dist/esm/cura-display.entry.js.map +0 -1
  652. package/dist/esm/cura-dropdown-search-not-found.entry.js.map +0 -1
  653. package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +0 -1
  654. package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +0 -1
  655. package/dist/esm/cura-icons-view.entry.js.map +0 -1
  656. package/dist/esm/cura-input-date.entry.js.map +0 -1
  657. package/dist/esm/cura-loader-bar.entry.js.map +0 -1
  658. package/dist/esm/cura-modal.entry.js.map +0 -1
  659. package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +0 -1
  660. package/dist/esm/cura-progress-bar_2.entry.js.map +0 -1
  661. package/dist/esm/cura-radio.entry.js.map +0 -1
  662. package/dist/esm/cura-stepper.entry.js.map +0 -1
  663. package/dist/esm/cura-switch.entry.js.map +0 -1
  664. package/dist/esm/cura-tabs-button.entry.js.map +0 -1
  665. package/dist/esm/cura-tabs-transparent.entry.js.map +0 -1
  666. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +0 -1
  667. package/dist/esm/cura-theme-module-BPKQjAwN.js.map +0 -1
  668. package/dist/esm/cura-toast.entry.js.map +0 -1
  669. package/dist/esm/cura-tooltip.entry.js.map +0 -1
  670. package/dist/esm/cura.js.map +0 -1
  671. package/dist/esm/index-964stZ3D.js.map +0 -1
  672. package/dist/esm/index-OdKytJIH.js.map +0 -1
  673. package/dist/esm/index.js.map +0 -1
  674. package/dist/esm/loader.js.map +0 -1
@@ -1,146 +1 @@
1
- import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-D1cPOZpG.js';
2
- import { l as labelSizes } from './p-CHcd-uKK.js';
3
- import { d as defineCustomElement$3 } from './p-B5aO1chh.js';
4
- import { d as defineCustomElement$2 } from './p-DR1RHrEX.js';
5
-
6
- const curaTabsCss = ":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;min-width:120px;width:fit-content;display:flex;align-items:center;justify-content:center;border-radius:4px 4px 0 0}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.border-bottom,:host a.border-bottom{border-bottom:1px solid var(--border-bottom-color)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.light,:host a:not(.disabled,.selected):hover.light{border-bottom-color:var(--primary-dark)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-bottom-color:var(--neutral-purewhite)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:focus,:host a:focus{border:2px solid var(--primary-light)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer;background-color:var(--background-color-selected)}:host button.selected.disabled,:host a.selected.disabled{background-color:var(--background-disabled-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}";
7
-
8
- const CuraTabs$1 = /*@__PURE__*/ proxyCustomElement(class CuraTabs extends H {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.__attachShadow();
13
- this.tabSelect = createEvent(this, "tabSelect");
14
- this.selected = false;
15
- this.disabled = false;
16
- this.borderBottom = true;
17
- this.size = 'large';
18
- this.colorMode = 'light';
19
- this.hovered = false;
20
- this.styles = {};
21
- }
22
- setColors() {
23
- const colors = [
24
- { name: '--background-color-selected', theme: this.colorMode === 'light' ? 'primary-base' : 'primary-lighter' },
25
- { name: '--background-color-hover', theme: this.colorMode === 'light' ? 'primary-lighter' : null },
26
- {
27
- name: '--background-disabled-selected',
28
- theme: this.colorMode === 'light' ? 'neutral-pale' : 'neutral-black',
29
- },
30
- {
31
- name: '--border-bottom-color',
32
- theme: this.colorMode === 'light' ? 'neutral-base' : 'primary',
33
- },
34
- ];
35
- colors.forEach(c => {
36
- if (c.theme)
37
- this.styles[c.name] = window.CuraAPI.theme.colors.getColor(c.theme);
38
- });
39
- this.styles = Object.assign({}, this.styles);
40
- }
41
- computeContentColor() {
42
- if (this.disabled)
43
- return 'neutral-dark';
44
- if (this.colorMode === 'dark') {
45
- if (this.hovered && !this.selected) {
46
- return 'neutral-purewhite';
47
- }
48
- return this.selected ? 'neutral-black' : 'primary-lighter';
49
- }
50
- return this.selected ? 'neutral-purewhite' : 'primary-dark';
51
- }
52
- updateDynamicStyles() {
53
- if (this.colorMode === 'dark' && this.hovered && !this.selected) {
54
- this.styles = Object.assign(Object.assign({}, this.styles), { '--border-bottom-color': window.CuraAPI.theme.colors.getColor('neutral-purewhite') });
55
- }
56
- }
57
- getIcon() {
58
- if (!this.iconName)
59
- return '';
60
- const iconSize = this.size === 'large' ? 20 : 16;
61
- const iconColor = this.computeContentColor();
62
- return h("cura-icon", { name: this.iconName, size: iconSize, color: iconColor });
63
- }
64
- getClasses() {
65
- return {
66
- [this.size]: true,
67
- [this.colorMode]: true,
68
- 'selected': this.selected,
69
- 'disabled': this.disabled,
70
- 'border-bottom': this.borderBottom,
71
- };
72
- }
73
- connectedCallback() {
74
- this.styles = Object.assign(Object.assign({}, this.styles), { '--primary-dark': window.CuraAPI.theme.colors.getColor('primary-dark'), '--neutral-purewhite': window.CuraAPI.theme.colors.getColor('neutral-purewhite'), '--base-spacing': window.CuraAPI.theme.spacing.getSpacing() });
75
- this.setColors();
76
- }
77
- handleMouseEnter() {
78
- if (this.disabled)
79
- return;
80
- this.hovered = true;
81
- }
82
- handleMouseLeave() {
83
- this.hovered = false;
84
- }
85
- handleClick(e) {
86
- if (this.disabled) {
87
- e.preventDefault();
88
- return;
89
- }
90
- this.selected = !this.selected;
91
- this.tabSelect.emit({ name: this.name });
92
- }
93
- render() {
94
- const labelSize = labelSizes[this.size] || labelSizes['default'];
95
- const labelColor = this.computeContentColor();
96
- this.updateDynamicStyles();
97
- return (h(Host, { key: '3966968b73a9a51ec26f3206cdb09fbfcb3d3daf', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, h("button", { key: '00cc6382c635a05c52fd74b3e02e968c2d94cacb', class: this.getClasses(), style: this.styles, onClick: e => this.handleClick(e), disabled: this.disabled, onMouseEnter: this.handleMouseEnter.bind(this), onMouseLeave: this.handleMouseLeave.bind(this) }, this.getIcon(), h("cura-label", { key: 'e193500f156c10cf0442e6f504e19d552c19f849', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, h("slot", { key: '8a0ac7c4b2ff4990093d13b4110e370616cf39f4' })))));
98
- }
99
- static get watchers() { return {
100
- "colorMode": ["setColors"]
101
- }; }
102
- static get style() { return curaTabsCss; }
103
- }, [1, "cura-tabs", {
104
- "name": [513],
105
- "iconName": [513, "icon-name"],
106
- "selected": [1540],
107
- "disabled": [1540],
108
- "borderBottom": [1540, "border-bottom"],
109
- "size": [513],
110
- "colorMode": [1537, "color-mode"],
111
- "hovered": [32],
112
- "styles": [32]
113
- }, undefined, {
114
- "colorMode": ["setColors"]
115
- }]);
116
- function defineCustomElement$1() {
117
- if (typeof customElements === "undefined") {
118
- return;
119
- }
120
- const components = ["cura-tabs", "cura-icon", "cura-label"];
121
- components.forEach(tagName => { switch (tagName) {
122
- case "cura-tabs":
123
- if (!customElements.get(tagName)) {
124
- customElements.define(tagName, CuraTabs$1);
125
- }
126
- break;
127
- case "cura-icon":
128
- if (!customElements.get(tagName)) {
129
- defineCustomElement$3();
130
- }
131
- break;
132
- case "cura-label":
133
- if (!customElements.get(tagName)) {
134
- defineCustomElement$2();
135
- }
136
- break;
137
- } });
138
- }
139
-
140
- const CuraTabs = CuraTabs$1;
141
- const defineCustomElement = defineCustomElement$1;
142
-
143
- export { CuraTabs, defineCustomElement };
144
- //# sourceMappingURL=cura-tabs.js.map
145
-
146
- //# sourceMappingURL=cura-tabs.js.map
1
+ import{p as t,H as e,k as o,i as s,j as r,t as a}from"./p-DBXUEjWh.js";import{l as i}from"./p-CHcd-uKK.js";import{d as c}from"./p-fn4zJrKE.js";import{d as n}from"./p-BSdkRryc.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tabSelect=o(this,"tabSelect"),this.selected=!1,this.disabled=!1,this.borderBottom=!0,this.size="large",this.colorMode="light",this.hovered=!1,this.styles={}}setColors(){[{name:"--background-color-selected",theme:"light"===this.colorMode?"primary-base":"primary-lighter"},{name:"--background-color-hover",theme:"light"===this.colorMode?"primary-lighter":null},{name:"--background-disabled-selected",theme:"light"===this.colorMode?"neutral-pale":"neutral-black"},{name:"--border-bottom-color",theme:"light"===this.colorMode?"neutral-base":"primary"}].forEach((t=>{t.theme&&(this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.theme))})),this.styles=Object.assign({},this.styles)}computeContentColor(){return this.disabled?"neutral-dark":"dark"===this.colorMode?this.hovered&&!this.selected?"neutral-purewhite":this.selected?"neutral-black":"primary-lighter":this.selected?"neutral-purewhite":"primary-dark"}updateDynamicStyles(){"dark"===this.colorMode&&this.hovered&&!this.selected&&(this.styles=Object.assign(Object.assign({},this.styles),{"--border-bottom-color":window.CuraAPI.theme.colors.getColor("neutral-purewhite")}))}getIcon(){if(!this.iconName)return"";const t="large"===this.size?20:16,e=this.computeContentColor();return s("cura-icon",{name:this.iconName,size:t,color:e})}getClasses(){return{[this.size]:!0,[this.colorMode]:!0,selected:this.selected,disabled:this.disabled,"border-bottom":this.borderBottom}}connectedCallback(){this.styles=Object.assign(Object.assign({},this.styles),{"--primary-dark":window.CuraAPI.theme.colors.getColor("primary-dark"),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--base-spacing":window.CuraAPI.theme.spacing.getSpacing()}),this.setColors()}handleMouseEnter(){this.disabled||(this.hovered=!0)}handleMouseLeave(){this.hovered=!1}handleClick(t){this.disabled?t.preventDefault():(this.selected=!this.selected,this.tabSelect.emit({name:this.name}))}render(){const t=i[this.size]||i.default,e=this.computeContentColor();return this.updateDynamicStyles(),s(r,{key:"3966968b73a9a51ec26f3206cdb09fbfcb3d3daf",role:"button","aria-pressed":this.selected,"aria-disabled":this.disabled},s("button",{key:"00cc6382c635a05c52fd74b3e02e968c2d94cacb",class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),disabled:this.disabled,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},this.getIcon(),s("cura-label",{key:"e193500f156c10cf0442e6f504e19d552c19f849",size:t,color:e,lineHeight:"0",marginBlock:"0"},s("slot",{key:"8a0ac7c4b2ff4990093d13b4110e370616cf39f4"}))))}static get watchers(){return{colorMode:[{setColors:0}]}}static get style(){return":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;min-width:120px;width:fit-content;display:flex;align-items:center;justify-content:center;border-radius:4px 4px 0 0}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.border-bottom,:host a.border-bottom{border-bottom:1px solid var(--border-bottom-color)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.light,:host a:not(.disabled,.selected):hover.light{border-bottom-color:var(--primary-dark)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-bottom-color:var(--neutral-purewhite)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:focus,:host a:focus{border:2px solid var(--primary-light)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer;background-color:var(--background-color-selected)}:host button.selected.disabled,:host a.selected.disabled{background-color:var(--background-disabled-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}"}},[257,"cura-tabs",{name:[513],iconName:[513,"icon-name"],selected:[1540],disabled:[1540],borderBottom:[1540,"border-bottom"],size:[513],colorMode:[1537,"color-mode"],hovered:[32],styles:[32]},void 0,{colorMode:[{setColors:0}]}]),d=l,h=function(){"undefined"!=typeof customElements&&["cura-tabs","cura-icon","cura-label"].forEach((t=>{switch(t){case"cura-tabs":customElements.get(a(t))||customElements.define(a(t),l);break;case"cura-icon":customElements.get(a(t))||c();break;case"cura-label":customElements.get(a(t))||n()}}))};export{d as CuraTabs,h as defineCustomElement}
@@ -1,162 +1 @@
1
- import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-D1cPOZpG.js';
2
- import { d as defineCustomElement$5 } from './p-BHEafDKD.js';
3
- import { d as defineCustomElement$4 } from './p-B5aO1chh.js';
4
- import { d as defineCustomElement$3 } from './p-KIQMkSRF.js';
5
- import { d as defineCustomElement$2 } from './p-DI4g-ZH4.js';
6
-
7
- const curaToastCss = ":host{display:block;box-sizing:border-box}:host .container{position:fixed;z-index:99999;display:flex;box-sizing:border-box;min-width:320px;height:fit-content;padding:16px;border:1px solid var(--color-base);border-radius:12px;background-color:var(--neutral-purewhite);overflow:hidden;box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12))}:host .container.loader{padding:16px 16px 20px}:host .container.top{top:24px}:host .container.top.center{top:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, top 0.5s ease-in-out}:host .container.top.center.active{top:24px;opacity:1}:host .container.bottom{bottom:24px}:host .container.bottom.center{bottom:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, bottom 0.5s ease-in-out}:host .container.bottom.center.active{bottom:24px;opacity:1}:host .container.left{left:-100%;opacity:0;transition:opacity 0.5s ease-in-out, left 0.5s ease-in-out}@media (max-width: 768px){:host .container.left{right:unset;left:50%;transform:translateX(-50%)}}:host .container.left.active{left:24px;opacity:1}:host .container.right{right:-100%;opacity:0;transition:opacity 0.5s ease-in-out, right 0.5s ease-in-out}@media (max-width: 768px){:host .container.right{right:unset;left:50%;transform:translateX(-50%)}}:host .container.right.active{right:24px;opacity:1}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:4px}:host .container .default-icon{margin-right:12px}:host .container .close-icon{margin-left:12px;cursor:pointer}";
8
-
9
- const CuraToast$1 = /*@__PURE__*/ proxyCustomElement(class CuraToast extends H {
10
- constructor() {
11
- super();
12
- this.__registerHost();
13
- this.__attachShadow();
14
- this.toastClosed = createEvent(this, "toastClosed");
15
- this.type = 'info';
16
- this.position = 'top-right';
17
- this.closeButton = true;
18
- this.loader = true;
19
- this.autoCloseDelay = 10000;
20
- this.styles = {};
21
- this.progress = 0;
22
- this.handleClose = () => {
23
- this.closeContainer();
24
- };
25
- }
26
- /**
27
- * Method to close toast component
28
- */
29
- async close() {
30
- this.closeContainer();
31
- }
32
- handleChangeType() {
33
- this.setStyle();
34
- }
35
- connectedCallback() {
36
- this.setStyle();
37
- }
38
- render() {
39
- return (h(Host, { key: 'c65f4295ed41485cdeb992dc29a76b4aeef87a39', role: "alert", "aria-live": "polite", "aria-atomic": "true", "aria-label": this.label }, h("div", { key: '62ec0a3170f862d0634df42ac4ccf0708c80fa32', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: 'bdb68633080a0032c4fdc2f3bb53a668e5b8ab1b', class: "default-icon", name: this.getNameIcon(), size: 16, color: `${this.type}-dark` }), h("div", { key: '42516aa76455a7b2c7e96613d6e0f38d8f9fbfba', class: "content" }, h("cura-heading", { key: '07402cf186ed3626248d682239b1105378dc2ae6', level: 4, size: "xsmall", color: `${this.type}-dark`, weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: 'f8239bb5c4ca52e3ce55cc50fab46bd45440e2ee', color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: 'd0491202942530967ddb5d34ecf1333975c8dda0' })), h("slot", { key: '3024563fbc18c2b4a4954849f74014b0be6b34ee', name: "actions" })), this.closeButton && h("cura-icon", { key: '20b315655b9d8ff4ddfc6c2cec6ebc8981f64643', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.loader && !!this.autoCloseDelay && h("cura-loader-bar", { key: 'a81f9da8704799af13009fa046b58e9d6eeb453c', color: `${this.type}-base`, progress: this.progress }))));
40
- }
41
- componentDidLoad() {
42
- this.openContainer();
43
- this.startAnimation();
44
- }
45
- setStyle() {
46
- this.styles = Object.assign(Object.assign({}, this.styles), { '--neutral-purewhite': window.CuraAPI.theme.colors.getColor(`neutral-purewhite`), '--neutral-base': window.CuraAPI.theme.colors.getColor(`neutral-base`, 0.2), '--primary-base': window.CuraAPI.theme.colors.getColor(`primary-base`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.type}-base`) });
47
- }
48
- getClasses() {
49
- const [firstPosition, secondPosition] = this.position.split('-');
50
- const classes = {};
51
- classes['container'] = true;
52
- classes[firstPosition] = true;
53
- classes[secondPosition] = true;
54
- if (this.loader) {
55
- classes['loader'] = true;
56
- }
57
- return classes;
58
- }
59
- getNameIcon() {
60
- const iconMapping = {
61
- info: 'infoCircle',
62
- success: 'checkCircle',
63
- warning: 'alertCircle',
64
- error: 'alertTriangle',
65
- };
66
- return this.icon ? this.icon : iconMapping[this.type];
67
- }
68
- openContainer() {
69
- this.container = this.host.shadowRoot.querySelector('.container');
70
- this.container.classList.add('active');
71
- }
72
- closeContainer() {
73
- this.container.classList.remove('active');
74
- setTimeout(() => {
75
- this.toastClosed.emit();
76
- this.host.remove();
77
- }, 500);
78
- }
79
- startAnimation() {
80
- if (!!this.autoCloseDelay) {
81
- if (this.loader) {
82
- this.progress = 0;
83
- let intervalId = setInterval(() => {
84
- if (this.progress >= 100) {
85
- clearInterval(intervalId);
86
- this.closeContainer();
87
- }
88
- else {
89
- this.progress++;
90
- }
91
- }, this.autoCloseDelay / 100);
92
- }
93
- else {
94
- let intervalId = setInterval(() => {
95
- clearInterval(intervalId);
96
- this.closeContainer();
97
- }, this.autoCloseDelay);
98
- }
99
- }
100
- }
101
- get host() { return this; }
102
- static get watchers() { return {
103
- "type": ["handleChangeType"],
104
- "position": ["handleChangeType"]
105
- }; }
106
- static get style() { return curaToastCss; }
107
- }, [1, "cura-toast", {
108
- "type": [1],
109
- "position": [1],
110
- "icon": [513],
111
- "label": [513],
112
- "closeButton": [516, "close-button"],
113
- "loader": [516],
114
- "autoCloseDelay": [514, "auto-close-delay"],
115
- "styles": [32],
116
- "progress": [32],
117
- "close": [64]
118
- }, undefined, {
119
- "type": ["handleChangeType"],
120
- "position": ["handleChangeType"]
121
- }]);
122
- function defineCustomElement$1() {
123
- if (typeof customElements === "undefined") {
124
- return;
125
- }
126
- const components = ["cura-toast", "cura-heading", "cura-icon", "cura-loader-bar", "cura-paragraph"];
127
- components.forEach(tagName => { switch (tagName) {
128
- case "cura-toast":
129
- if (!customElements.get(tagName)) {
130
- customElements.define(tagName, CuraToast$1);
131
- }
132
- break;
133
- case "cura-heading":
134
- if (!customElements.get(tagName)) {
135
- defineCustomElement$5();
136
- }
137
- break;
138
- case "cura-icon":
139
- if (!customElements.get(tagName)) {
140
- defineCustomElement$4();
141
- }
142
- break;
143
- case "cura-loader-bar":
144
- if (!customElements.get(tagName)) {
145
- defineCustomElement$3();
146
- }
147
- break;
148
- case "cura-paragraph":
149
- if (!customElements.get(tagName)) {
150
- defineCustomElement$2();
151
- }
152
- break;
153
- } });
154
- }
155
-
156
- const CuraToast = CuraToast$1;
157
- const defineCustomElement = defineCustomElement$1;
158
-
159
- export { CuraToast, defineCustomElement };
160
- //# sourceMappingURL=cura-toast.js.map
161
-
162
- //# sourceMappingURL=cura-toast.js.map
1
+ import{p as t,H as e,k as a,i as o,j as s,t as i}from"./p-DBXUEjWh.js";import{d as r}from"./p-fR02COZb.js";import{d as n}from"./p-fn4zJrKE.js";import{d as c}from"./p-CCkEqDZb.js";import{d as l}from"./p-D7WNwjv-.js";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toastClosed=a(this,"toastClosed"),this.type="info",this.position="top-right",this.closeButton=!0,this.loader=!0,this.autoCloseDelay=1e4,this.styles={},this.progress=0,this.handleClose=()=>{this.closeContainer()}}async close(){this.closeContainer()}handleChangeType(){this.setStyle()}connectedCallback(){this.setStyle()}render(){return o(s,{key:"c65f4295ed41485cdeb992dc29a76b4aeef87a39",role:"alert","aria-live":"polite","aria-atomic":"true","aria-label":this.label},o("div",{key:"62ec0a3170f862d0634df42ac4ccf0708c80fa32",class:this.getClasses(),style:this.styles},o("cura-icon",{key:"bdb68633080a0032c4fdc2f3bb53a668e5b8ab1b",class:"default-icon",name:this.getNameIcon(),size:16,color:this.type+"-dark"}),o("div",{key:"42516aa76455a7b2c7e96613d6e0f38d8f9fbfba",class:"content"},o("cura-heading",{key:"07402cf186ed3626248d682239b1105378dc2ae6",level:4,size:"xsmall",color:this.type+"-dark",weight:"bold","margin-block":"0"},this.label),o("cura-paragraph",{key:"f8239bb5c4ca52e3ce55cc50fab46bd45440e2ee",color:this.type+"-darker",size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},o("slot",{key:"d0491202942530967ddb5d34ecf1333975c8dda0"})),o("slot",{key:"3024563fbc18c2b4a4954849f74014b0be6b34ee",name:"actions"})),this.closeButton&&o("cura-icon",{key:"20b315655b9d8ff4ddfc6c2cec6ebc8981f64643",class:"close-icon",name:"close",size:16,color:"error-dark",onClick:this.handleClose}),this.loader&&!!this.autoCloseDelay&&o("cura-loader-bar",{key:"a81f9da8704799af13009fa046b58e9d6eeb453c",color:this.type+"-base",progress:this.progress})))}componentDidLoad(){this.openContainer(),this.startAnimation()}setStyle(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--neutral-base":window.CuraAPI.theme.colors.getColor("neutral-base",.2),"--primary-base":window.CuraAPI.theme.colors.getColor("primary-base"),"--color-base":window.CuraAPI.theme.colors.getColor(this.type+"-base")})}getClasses(){const[t,e]=this.position.split("-"),a={container:!0};return a[t]=!0,a[e]=!0,this.loader&&(a.loader=!0),a}getNameIcon(){return this.icon?this.icon:{info:"infoCircle",success:"checkCircle",warning:"alertCircle",error:"alertTriangle"}[this.type]}openContainer(){this.container=this.host.shadowRoot.querySelector(".container"),this.container.classList.add("active")}closeContainer(){this.container.classList.remove("active"),setTimeout((()=>{this.toastClosed.emit(),this.host.remove()}),500)}startAnimation(){if(this.autoCloseDelay)if(this.loader){this.progress=0;let t=setInterval((()=>{this.progress>=100?(clearInterval(t),this.closeContainer()):this.progress++}),this.autoCloseDelay/100)}else{let t=setInterval((()=>{clearInterval(t),this.closeContainer()}),this.autoCloseDelay)}}get host(){return this}static get watchers(){return{type:[{handleChangeType:0}],position:[{handleChangeType:0}]}}static get style(){return":host{display:block;box-sizing:border-box}:host .container{position:fixed;z-index:99999;display:flex;box-sizing:border-box;min-width:320px;height:fit-content;padding:16px;border:1px solid var(--color-base);border-radius:12px;background-color:var(--neutral-purewhite);overflow:hidden;box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12))}:host .container.loader{padding:16px 16px 20px}:host .container.top{top:24px}:host .container.top.center{top:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, top 0.5s ease-in-out}:host .container.top.center.active{top:24px;opacity:1}:host .container.bottom{bottom:24px}:host .container.bottom.center{bottom:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, bottom 0.5s ease-in-out}:host .container.bottom.center.active{bottom:24px;opacity:1}:host .container.left{left:-100%;opacity:0;transition:opacity 0.5s ease-in-out, left 0.5s ease-in-out}@media (max-width: 768px){:host .container.left{right:unset;left:50%;transform:translateX(-50%)}}:host .container.left.active{left:24px;opacity:1}:host .container.right{right:-100%;opacity:0;transition:opacity 0.5s ease-in-out, right 0.5s ease-in-out}@media (max-width: 768px){:host .container.right{right:unset;left:50%;transform:translateX(-50%)}}:host .container.right.active{right:24px;opacity:1}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:4px}:host .container .default-icon{margin-right:12px}:host .container .close-icon{margin-left:12px;cursor:pointer}"}},[257,"cura-toast",{type:[1],position:[1],icon:[513],label:[513],closeButton:[516,"close-button"],loader:[516],autoCloseDelay:[514,"auto-close-delay"],styles:[32],progress:[32],close:[64]},void 0,{type:[{handleChangeType:0}],position:[{handleChangeType:0}]}]),p=h,d=function(){"undefined"!=typeof customElements&&["cura-toast","cura-heading","cura-icon","cura-loader-bar","cura-paragraph"].forEach((t=>{switch(t){case"cura-toast":customElements.get(i(t))||customElements.define(i(t),h);break;case"cura-heading":customElements.get(i(t))||r();break;case"cura-icon":customElements.get(i(t))||n();break;case"cura-loader-bar":customElements.get(i(t))||c();break;case"cura-paragraph":customElements.get(i(t))||l()}}))};export{p as CuraToast,d as defineCustomElement}
@@ -1,291 +1 @@
1
- import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-D1cPOZpG.js';
2
- import { d as defineCustomElement$7 } from './p-BRDqwZ4N.js';
3
- import { d as defineCustomElement$6 } from './p-BHEafDKD.js';
4
- import { d as defineCustomElement$5 } from './p-B5aO1chh.js';
5
- import { d as defineCustomElement$4 } from './p-DR1RHrEX.js';
6
- import { d as defineCustomElement$3 } from './p-Dqm2sAwv.js';
7
- import { d as defineCustomElement$2 } from './p-DI4g-ZH4.js';
8
-
9
- const curaTooltipCss = ":host{position:absolute;z-index:99998;display:block;width:fit-content;height:fit-content;box-sizing:border-box}@media (max-width: 768px){:host{width:100%}}:host .container{display:flex;box-sizing:border-box;max-width:var(--max-width);height:auto;padding:calc(var(--cura-spacing-base) * 2px);border:1px solid var(--neutral-light);border-radius:calc(var(--cura-spacing-base) * 1px);background-color:var(--neutral-purewhite);box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}@media (max-width: 768px){:host .container{max-width:90%;height:fit-content;padding:calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px) 0 calc(var(--cura-spacing-base) * 4px);margin:0 auto;border:2px solid;border-radius:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px) 0 0;border-color:var(--neutral-light) var(--neutral-light) transparent var(--neutral-light)}}:host .container::after{content:\"\";position:absolute;z-index:99999;width:calc(var(--cura-spacing-base) * 2.5px);height:calc(var(--cura-spacing-base) * 2.5px);border:1px solid;border-radius:2px;background-color:var(--neutral-purewhite);left:var(--arrow-left);top:var(--arrow-top);border-color:var(--arrow-border-color);transform:var(--arrow-translate) rotate(45deg)}@media (max-width: 768px){:host .container::after{display:none}}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:calc(var(--cura-spacing-base) * 1px)}@media (max-width: 768px){:host .container .content{padding-bottom:calc(var(--cura-spacing-base) * 4px);border-bottom:1px dashed var(--neutral-light)}}:host .container .close-icon{margin-left:calc(var(--cura-spacing-base) * 3px);cursor:pointer}:host .container .close-button{padding:calc(var(--cura-spacing-base) * 2px) 0}";
10
-
11
- const BREAKPOINT_SMALL_MAX = 768;
12
- const CuraTooltip$1 = /*@__PURE__*/ proxyCustomElement(class CuraTooltip extends H {
13
- constructor() {
14
- super();
15
- this.__registerHost();
16
- this.__attachShadow();
17
- this.tooltipClosed = createEvent(this, "tooltipClosed");
18
- this.elementId = '';
19
- this.interactive = true;
20
- this.delay = 250;
21
- this.maxWidth = '280px';
22
- this.position = 'top';
23
- this.closeButton = false;
24
- this.isMobile = false;
25
- this.styles = {};
26
- this.handleClose = () => {
27
- this.closeContainer();
28
- };
29
- }
30
- onWindowResize() {
31
- this.setPosition(this.targetElement);
32
- }
33
- onWindowScroll() {
34
- this.setPosition(this.targetElement);
35
- }
36
- connectedCallback() {
37
- this.setStyle();
38
- }
39
- render() {
40
- return (h(Host, { key: '655c6aae9efc3aad790c6a45a7192ef01baeac97', role: "tooltip", id: this.elementId }, h("div", { key: 'c552ffd20262eed5e71f4cd93c078852cc52c1ca', class: "container", style: this.styles }, h("div", { key: '110f11205496428b674431e1b2bc8c3f95f9397a', class: "content" }, h("cura-heading", { key: 'd2a0caf6a338c9c0b839ea8671c6d524b943ca86', level: 4, size: "xsmall", color: "neutral-black", weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: 'bd7addb352119fead424151294e01eae111915e2', color: "neutral-dark", "spot-color": "secondary-darker", size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: '2323f1af541803e16caa042e9969953557a28976' }))), this.closeButton && !this.isMobile && h("cura-icon", { key: '92a672d383b057c53ce1771bea1ff9374a9a50a7', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.isMobile && h("cura-button-transparent", { key: 'a31de7e78e092b4fbf6b0e0b85c0c664399081a0', class: "close-button", size: "small", type: "button", color: "error", "icon-name": "close", "icon-position": "right", onClick: this.handleClose }, "OK, entendi."))));
41
- }
42
- componentDidLoad() {
43
- var _a, _b, _c, _d, _e;
44
- this.targetElement = document.querySelector(`[aria-labelledby="${this.elementId}"]`);
45
- if (!this.interactive) {
46
- this.host.style.visibility = 'visible';
47
- }
48
- else {
49
- this.host.style.visibility = 'hidden';
50
- let openTimeoutID = null;
51
- let closeTimeoutID = null;
52
- (_a = this.targetElement) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', () => {
53
- clearTimeout(closeTimeoutID);
54
- openTimeoutID = setTimeout(() => {
55
- this.host.style.visibility = 'visible';
56
- }, typeof this.delay === 'number' && this.delay > 250 ? this.delay : 250);
57
- });
58
- (_b = this.targetElement) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', () => {
59
- clearTimeout(openTimeoutID);
60
- closeTimeoutID = setTimeout(() => {
61
- this.handleClose();
62
- }, typeof this.delay === 'number' && this.delay > 250 ? this.delay : 250);
63
- });
64
- (_c = this.host) === null || _c === void 0 ? void 0 : _c.addEventListener('mouseenter', () => {
65
- if (window.getComputedStyle(this.host).visibility === 'visible') {
66
- clearTimeout(closeTimeoutID);
67
- }
68
- });
69
- (_d = this.host) === null || _d === void 0 ? void 0 : _d.addEventListener('mouseleave', () => {
70
- clearTimeout(openTimeoutID);
71
- this.handleClose();
72
- });
73
- (_e = this.targetElement) === null || _e === void 0 ? void 0 : _e.addEventListener('click', () => {
74
- if (window.getComputedStyle(this.host).visibility === 'hidden') {
75
- openTimeoutID = setTimeout(() => {
76
- this.host.style.visibility = 'visible';
77
- }, typeof this.delay === 'number' && this.delay > 250 ? this.delay : 250);
78
- }
79
- else {
80
- clearTimeout(openTimeoutID);
81
- this.handleClose();
82
- }
83
- });
84
- document === null || document === void 0 ? void 0 : document.addEventListener('click', (event) => {
85
- if (!this.targetElement.contains(event.target) && !this.host.contains(event.target)) {
86
- clearTimeout(openTimeoutID);
87
- this.handleClose();
88
- }
89
- });
90
- }
91
- setTimeout(() => {
92
- this.setPosition(this.targetElement);
93
- }, 100);
94
- }
95
- setStyle() {
96
- this.styles = Object.assign(Object.assign({}, this.styles), { '--max-width': this.maxWidth, '--base-spacing': window.CuraAPI.theme.spacing.getSpacing(), '--neutral-purewhite': window.CuraAPI.theme.colors.getColor(`neutral-purewhite`), '--neutral-light': window.CuraAPI.theme.colors.getColor(`neutral-light`), '--neutral-black-shadow': window.CuraAPI.theme.colors.getColor(`neutral-black`, 0.16) });
97
- }
98
- getClasses() {
99
- const [firstPosition, secondPosition] = this.position.split('-');
100
- const classes = {};
101
- classes['container'] = true;
102
- if (firstPosition) {
103
- classes[firstPosition] = true;
104
- }
105
- if (secondPosition) {
106
- classes[secondPosition] = true;
107
- }
108
- return classes;
109
- }
110
- setPosition(element) {
111
- const windowWidth = window.innerWidth;
112
- const windowHeight = window.innerHeight;
113
- const container = this.host.shadowRoot.querySelector('.container');
114
- this.isMobile = windowWidth <= BREAKPOINT_SMALL_MAX;
115
- this.host.style.position = this.isMobile ? 'fixed' : 'absolute';
116
- this.host.style.bottom = this.isMobile ? '0' : 'unset';
117
- container.style.flexDirection = this.isMobile ? 'column' : 'row';
118
- if (this.isMobile) {
119
- this.host.style.left = '0';
120
- this.host.style.top = 'unset';
121
- return;
122
- }
123
- const elementRect = {
124
- top: element.offsetTop,
125
- left: element.offsetLeft,
126
- width: element.offsetWidth,
127
- height: element.offsetHeight
128
- };
129
- const tooltipRect = this.host.getBoundingClientRect();
130
- const SCREEN_LIMIT = 10;
131
- const SPACE_TO_ELEMENT = 10;
132
- const ARROW_HORIZONTAL_ADJUSTMENT = (elementRect.width * 0.5) + 18;
133
- const ARROW_VERTICAL_ADJUSTMENT = (elementRect.height * 0.5) + 18;
134
- const BORDER_COLOR = this.styles['--neutral-light'];
135
- let left = 0;
136
- let top = 0;
137
- const positions = Object.keys(this.getClasses()).filter((p) => ['top', 'left', 'bottom', 'right', 'start', 'end'].includes(p));
138
- const setArrowProperties = ({ arrowTop = '', arrowLeft = '', translate = '', borderColor = '' }) => {
139
- if (arrowLeft)
140
- this.host.style.setProperty('--arrow-left', arrowLeft);
141
- if (arrowTop)
142
- this.host.style.setProperty('--arrow-top', arrowTop);
143
- if (translate)
144
- this.host.style.setProperty('--arrow-translate', translate);
145
- if (borderColor)
146
- this.host.style.setProperty('--arrow-border-color', borderColor);
147
- };
148
- //Posicionamento vertical
149
- if (positions.includes('top') || positions.includes('bottom')) {
150
- setArrowProperties({ arrowLeft: '50%', translate: 'translateX(-50%)' });
151
- if (positions.includes('top')) {
152
- top = elementRect.top - tooltipRect.height - SPACE_TO_ELEMENT;
153
- setArrowProperties({ arrowTop: 'calc(100% - 6px)', borderColor: `transparent ${BORDER_COLOR} ${BORDER_COLOR} transparent` });
154
- if (top < SCREEN_LIMIT) {
155
- top = elementRect.top + elementRect.height + SPACE_TO_ELEMENT;
156
- setArrowProperties({ arrowTop: '-6px', borderColor: `${BORDER_COLOR} transparent transparent ${BORDER_COLOR}` });
157
- }
158
- }
159
- if (positions.includes('bottom')) {
160
- top = elementRect.top + elementRect.height + SPACE_TO_ELEMENT;
161
- setArrowProperties({ arrowTop: '-6px', borderColor: `${BORDER_COLOR} transparent transparent ${BORDER_COLOR}` });
162
- if (top + tooltipRect.height > windowHeight - SCREEN_LIMIT) {
163
- top = elementRect.top - tooltipRect.height - SPACE_TO_ELEMENT;
164
- setArrowProperties({ arrowTop: 'calc(100% - 6px)', borderColor: `transparent ${BORDER_COLOR} ${BORDER_COLOR} transparent` });
165
- }
166
- }
167
- left = elementRect.left + (elementRect.width - tooltipRect.width) / 2;
168
- if (positions.includes('start')) {
169
- left = elementRect.left - tooltipRect.width + ARROW_HORIZONTAL_ADJUSTMENT;
170
- setArrowProperties({ arrowLeft: 'calc(100% - 18px)' });
171
- if (left < SCREEN_LIMIT) {
172
- left = elementRect.left + elementRect.width - ARROW_HORIZONTAL_ADJUSTMENT;
173
- setArrowProperties({ arrowLeft: '18px' });
174
- }
175
- }
176
- if (positions.includes('end')) {
177
- left = elementRect.left + elementRect.width - ARROW_HORIZONTAL_ADJUSTMENT;
178
- setArrowProperties({ arrowLeft: '18px' });
179
- if (left + tooltipRect.width > windowWidth - SCREEN_LIMIT) {
180
- left = elementRect.left - tooltipRect.width + ARROW_HORIZONTAL_ADJUSTMENT;
181
- setArrowProperties({ arrowLeft: 'calc(100% - 18px)' });
182
- }
183
- }
184
- }
185
- //Posicionamento horizontal
186
- if (positions.includes('right') || positions.includes('left')) {
187
- setArrowProperties({ arrowTop: '50%', translate: 'translateY(-50%)' });
188
- if (positions.includes('right')) {
189
- left = elementRect.left + elementRect.width + SPACE_TO_ELEMENT;
190
- setArrowProperties({ arrowLeft: '-6px', borderColor: `transparent transparent ${BORDER_COLOR} ${BORDER_COLOR}` });
191
- if (left + tooltipRect.width > windowWidth - SCREEN_LIMIT) {
192
- left = elementRect.left - tooltipRect.width - SPACE_TO_ELEMENT;
193
- setArrowProperties({ arrowLeft: 'calc(100% - 6px)', borderColor: `${BORDER_COLOR} ${BORDER_COLOR} transparent transparent` });
194
- }
195
- }
196
- if (positions.includes('left')) {
197
- left = elementRect.left - tooltipRect.width - SPACE_TO_ELEMENT;
198
- setArrowProperties({ arrowLeft: 'calc(100% - 6px)', borderColor: `${BORDER_COLOR} ${BORDER_COLOR} transparent transparent` });
199
- if (left < SCREEN_LIMIT) {
200
- left = elementRect.left + elementRect.width + SPACE_TO_ELEMENT;
201
- setArrowProperties({ arrowLeft: '-6px', borderColor: `transparent transparent ${BORDER_COLOR} ${BORDER_COLOR}` });
202
- }
203
- }
204
- top = elementRect.top + (elementRect.height - tooltipRect.height) / 2;
205
- if (positions.includes('start')) {
206
- top = elementRect.top - tooltipRect.height + ARROW_VERTICAL_ADJUSTMENT;
207
- setArrowProperties({ arrowTop: 'calc(100% - 18px)' });
208
- if (top < SCREEN_LIMIT) {
209
- top = elementRect.top + elementRect.height - ARROW_VERTICAL_ADJUSTMENT;
210
- setArrowProperties({ arrowTop: '18px' });
211
- }
212
- }
213
- if (positions.includes('end')) {
214
- top = elementRect.top + elementRect.height - ARROW_VERTICAL_ADJUSTMENT;
215
- setArrowProperties({ arrowTop: '18px' });
216
- if (top + tooltipRect.height > windowHeight - SCREEN_LIMIT) {
217
- top = elementRect.top - tooltipRect.height + ARROW_VERTICAL_ADJUSTMENT;
218
- setArrowProperties({ arrowTop: 'calc(100% - 18px)' });
219
- }
220
- }
221
- }
222
- this.host.style.left = `${left}px`;
223
- this.host.style.top = `${top}px`;
224
- }
225
- closeContainer() {
226
- this.host.style.visibility = 'hidden';
227
- this.tooltipClosed.emit();
228
- }
229
- get host() { return this; }
230
- static get style() { return curaTooltipCss; }
231
- }, [1, "cura-tooltip", {
232
- "elementId": [1, "element-id"],
233
- "interactive": [4],
234
- "delay": [2],
235
- "maxWidth": [1, "max-width"],
236
- "position": [513],
237
- "label": [513],
238
- "closeButton": [516, "close-button"],
239
- "isMobile": [32]
240
- }, [[9, "resize", "onWindowResize"], [9, "scroll", "onWindowScroll"]]]);
241
- function defineCustomElement$1() {
242
- if (typeof customElements === "undefined") {
243
- return;
244
- }
245
- const components = ["cura-tooltip", "cura-button-transparent", "cura-heading", "cura-icon", "cura-label", "cura-loader-circle", "cura-paragraph"];
246
- components.forEach(tagName => { switch (tagName) {
247
- case "cura-tooltip":
248
- if (!customElements.get(tagName)) {
249
- customElements.define(tagName, CuraTooltip$1);
250
- }
251
- break;
252
- case "cura-button-transparent":
253
- if (!customElements.get(tagName)) {
254
- defineCustomElement$7();
255
- }
256
- break;
257
- case "cura-heading":
258
- if (!customElements.get(tagName)) {
259
- defineCustomElement$6();
260
- }
261
- break;
262
- case "cura-icon":
263
- if (!customElements.get(tagName)) {
264
- defineCustomElement$5();
265
- }
266
- break;
267
- case "cura-label":
268
- if (!customElements.get(tagName)) {
269
- defineCustomElement$4();
270
- }
271
- break;
272
- case "cura-loader-circle":
273
- if (!customElements.get(tagName)) {
274
- defineCustomElement$3();
275
- }
276
- break;
277
- case "cura-paragraph":
278
- if (!customElements.get(tagName)) {
279
- defineCustomElement$2();
280
- }
281
- break;
282
- } });
283
- }
284
-
285
- const CuraTooltip = CuraTooltip$1;
286
- const defineCustomElement = defineCustomElement$1;
287
-
288
- export { CuraTooltip, defineCustomElement };
289
- //# sourceMappingURL=cura-tooltip.js.map
290
-
291
- //# sourceMappingURL=cura-tooltip.js.map
1
+ import{p as t,H as a,k as r,i as e,j as o,t as s}from"./p-DBXUEjWh.js";import{d as i}from"./p-DXlGQp3a.js";import{d as n}from"./p-fR02COZb.js";import{d as c}from"./p-fn4zJrKE.js";import{d as l}from"./p-BSdkRryc.js";import{d as p}from"./p-Bf21UQXV.js";import{d as h}from"./p-D7WNwjv-.js";const d=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tooltipClosed=r(this,"tooltipClosed"),this.elementId="",this.interactive=!0,this.delay=250,this.maxWidth="280px",this.position="top",this.closeButton=!1,this.isMobile=!1,this.styles={},this.handleClose=()=>{this.closeContainer()}}onWindowResize(){this.setPosition(this.targetElement)}onWindowScroll(){this.setPosition(this.targetElement)}connectedCallback(){this.setStyle()}render(){return e(o,{key:"655c6aae9efc3aad790c6a45a7192ef01baeac97",role:"tooltip",id:this.elementId},e("div",{key:"c552ffd20262eed5e71f4cd93c078852cc52c1ca",class:"container",style:this.styles},e("div",{key:"110f11205496428b674431e1b2bc8c3f95f9397a",class:"content"},e("cura-heading",{key:"d2a0caf6a338c9c0b839ea8671c6d524b943ca86",level:4,size:"xsmall",color:"neutral-black",weight:"bold","margin-block":"0"},this.label),e("cura-paragraph",{key:"bd7addb352119fead424151294e01eae111915e2",color:"neutral-dark","spot-color":"secondary-darker",size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},e("slot",{key:"2323f1af541803e16caa042e9969953557a28976"}))),this.closeButton&&!this.isMobile&&e("cura-icon",{key:"92a672d383b057c53ce1771bea1ff9374a9a50a7",class:"close-icon",name:"close",size:16,color:"error-dark",onClick:this.handleClose}),this.isMobile&&e("cura-button-transparent",{key:"a31de7e78e092b4fbf6b0e0b85c0c664399081a0",class:"close-button",size:"small",type:"button",color:"error","icon-name":"close","icon-position":"right",onClick:this.handleClose},"OK, entendi.")))}componentDidLoad(){var t,a,r,e,o;if(this.targetElement=document.querySelector(`[aria-labelledby="${this.elementId}"]`),this.interactive){this.host.style.visibility="hidden";let s=null,i=null;null===(t=this.targetElement)||void 0===t||t.addEventListener("mouseenter",(()=>{clearTimeout(i),s=setTimeout((()=>{this.host.style.visibility="visible"}),"number"==typeof this.delay&&this.delay>250?this.delay:250)})),null===(a=this.targetElement)||void 0===a||a.addEventListener("mouseleave",(()=>{clearTimeout(s),i=setTimeout((()=>{this.handleClose()}),"number"==typeof this.delay&&this.delay>250?this.delay:250)})),null===(r=this.host)||void 0===r||r.addEventListener("mouseenter",(()=>{"visible"===window.getComputedStyle(this.host).visibility&&clearTimeout(i)})),null===(e=this.host)||void 0===e||e.addEventListener("mouseleave",(()=>{clearTimeout(s),this.handleClose()})),null===(o=this.targetElement)||void 0===o||o.addEventListener("click",(()=>{"hidden"===window.getComputedStyle(this.host).visibility?s=setTimeout((()=>{this.host.style.visibility="visible"}),"number"==typeof this.delay&&this.delay>250?this.delay:250):(clearTimeout(s),this.handleClose())})),null===document||void 0===document||document.addEventListener("click",(t=>{this.targetElement.contains(t.target)||this.host.contains(t.target)||(clearTimeout(s),this.handleClose())}))}else this.host.style.visibility="visible";setTimeout((()=>{this.setPosition(this.targetElement)}),100)}setStyle(){this.styles=Object.assign(Object.assign({},this.styles),{"--max-width":this.maxWidth,"--base-spacing":window.CuraAPI.theme.spacing.getSpacing(),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--neutral-light":window.CuraAPI.theme.colors.getColor("neutral-light"),"--neutral-black-shadow":window.CuraAPI.theme.colors.getColor("neutral-black",.16)})}getClasses(){const[t,a]=this.position.split("-"),r={container:!0};return t&&(r[t]=!0),a&&(r[a]=!0),r}setPosition(t){const a=window.innerWidth,r=window.innerHeight,e=this.host.shadowRoot.querySelector(".container");if(this.isMobile=a<=768,this.host.style.position=this.isMobile?"fixed":"absolute",this.host.style.bottom=this.isMobile?"0":"unset",e.style.flexDirection=this.isMobile?"column":"row",this.isMobile)return this.host.style.left="0",void(this.host.style.top="unset");const o=t.offsetTop,s=t.offsetLeft,i=t.offsetWidth,n=t.offsetHeight,c=this.host.getBoundingClientRect(),l=10,p=10,h=.5*i+18,d=.5*n+18,u=this.styles["--neutral-light"];let b=0,m=0;const w=Object.keys(this.getClasses()).filter((t=>["top","left","bottom","right","start","end"].includes(t))),x=({arrowTop:t="",arrowLeft:a="",translate:r="",borderColor:e=""})=>{a&&this.host.style.setProperty("--arrow-left",a),t&&this.host.style.setProperty("--arrow-top",t),r&&this.host.style.setProperty("--arrow-translate",r),e&&this.host.style.setProperty("--arrow-border-color",e)};(w.includes("top")||w.includes("bottom"))&&(x({arrowLeft:"50%",translate:"translateX(-50%)"}),w.includes("top")&&(m=o-c.height-p,x({arrowTop:"calc(100% - 6px)",borderColor:`transparent ${u} ${u} transparent`}),m<l&&(m=o+n+p,x({arrowTop:"-6px",borderColor:`${u} transparent transparent ${u}`}))),w.includes("bottom")&&(m=o+n+p,x({arrowTop:"-6px",borderColor:`${u} transparent transparent ${u}`}),m+c.height>r-l&&(m=o-c.height-p,x({arrowTop:"calc(100% - 6px)",borderColor:`transparent ${u} ${u} transparent`}))),b=s+(i-c.width)/2,w.includes("start")&&(b=s-c.width+h,x({arrowLeft:"calc(100% - 18px)"}),b<l&&(b=s+i-h,x({arrowLeft:"18px"}))),w.includes("end")&&(b=s+i-h,x({arrowLeft:"18px"}),b+c.width>a-l&&(b=s-c.width+h,x({arrowLeft:"calc(100% - 18px)"})))),(w.includes("right")||w.includes("left"))&&(x({arrowTop:"50%",translate:"translateY(-50%)"}),w.includes("right")&&(b=s+i+p,x({arrowLeft:"-6px",borderColor:`transparent transparent ${u} ${u}`}),b+c.width>a-l&&(b=s-c.width-p,x({arrowLeft:"calc(100% - 6px)",borderColor:`${u} ${u} transparent transparent`}))),w.includes("left")&&(b=s-c.width-p,x({arrowLeft:"calc(100% - 6px)",borderColor:`${u} ${u} transparent transparent`}),b<l&&(b=s+i+p,x({arrowLeft:"-6px",borderColor:`transparent transparent ${u} ${u}`}))),m=o+(n-c.height)/2,w.includes("start")&&(m=o-c.height+d,x({arrowTop:"calc(100% - 18px)"}),m<l&&(m=o+n-d,x({arrowTop:"18px"}))),w.includes("end")&&(m=o+n-d,x({arrowTop:"18px"}),m+c.height>r-l&&(m=o-c.height+d,x({arrowTop:"calc(100% - 18px)"})))),this.host.style.left=b+"px",this.host.style.top=m+"px"}closeContainer(){this.host.style.visibility="hidden",this.tooltipClosed.emit()}get host(){return this}static get style(){return':host{position:absolute;z-index:99998;display:block;width:fit-content;height:fit-content;box-sizing:border-box}@media (max-width: 768px){:host{width:100%}}:host .container{display:flex;box-sizing:border-box;max-width:var(--max-width);height:auto;padding:calc(var(--cura-spacing-base) * 2px);border:1px solid var(--neutral-light);border-radius:calc(var(--cura-spacing-base) * 1px);background-color:var(--neutral-purewhite);box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}@media (max-width: 768px){:host .container{max-width:90%;height:fit-content;padding:calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px) 0 calc(var(--cura-spacing-base) * 4px);margin:0 auto;border:2px solid;border-radius:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px) 0 0;border-color:var(--neutral-light) var(--neutral-light) transparent var(--neutral-light)}}:host .container::after{content:"";position:absolute;z-index:99999;width:calc(var(--cura-spacing-base) * 2.5px);height:calc(var(--cura-spacing-base) * 2.5px);border:1px solid;border-radius:2px;background-color:var(--neutral-purewhite);left:var(--arrow-left);top:var(--arrow-top);border-color:var(--arrow-border-color);transform:var(--arrow-translate) rotate(45deg)}@media (max-width: 768px){:host .container::after{display:none}}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:calc(var(--cura-spacing-base) * 1px)}@media (max-width: 768px){:host .container .content{padding-bottom:calc(var(--cura-spacing-base) * 4px);border-bottom:1px dashed var(--neutral-light)}}:host .container .close-icon{margin-left:calc(var(--cura-spacing-base) * 3px);cursor:pointer}:host .container .close-button{padding:calc(var(--cura-spacing-base) * 2px) 0}'}},[257,"cura-tooltip",{elementId:[1,"element-id"],interactive:[4],delay:[2],maxWidth:[1,"max-width"],position:[513],label:[513],closeButton:[516,"close-button"],isMobile:[32]},[[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]]]),u=d,b=function(){"undefined"!=typeof customElements&&["cura-tooltip","cura-button-transparent","cura-heading","cura-icon","cura-label","cura-loader-circle","cura-paragraph"].forEach((t=>{switch(t){case"cura-tooltip":customElements.get(s(t))||customElements.define(s(t),d);break;case"cura-button-transparent":customElements.get(s(t))||i();break;case"cura-heading":customElements.get(s(t))||n();break;case"cura-icon":customElements.get(s(t))||c();break;case"cura-label":customElements.get(s(t))||l();break;case"cura-loader-circle":customElements.get(s(t))||p();break;case"cura-paragraph":customElements.get(s(t))||h()}}))};export{u as CuraTooltip,b as defineCustomElement}