@rededor/cura 1.8.2-alpha.0 → 2.0.0-alpha.10

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 (837) 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/{cura-accordion_20.cjs.entry.js → cura-accordion_21.cjs.entry.js} +1826 -26
  5. package/dist/cjs/cura-accordion_21.cjs.entry.js.map +1 -0
  6. package/dist/cjs/cura-alert.cjs.entry.js +4 -3
  7. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/cura-alert.entry.cjs.js.map +1 -1
  9. package/dist/cjs/cura-badge-counter.cjs.entry.js +0 -0
  10. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +0 -0
  11. package/dist/cjs/cura-badge-counter.entry.cjs.js.map +0 -0
  12. package/dist/cjs/cura-badge-dot.cjs.entry.js +0 -0
  13. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +0 -0
  14. package/dist/cjs/cura-badge-dot.entry.cjs.js.map +0 -0
  15. package/dist/cjs/cura-badge-pill.cjs.entry.js +0 -0
  16. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +0 -0
  17. package/dist/cjs/cura-badge-pill.entry.cjs.js.map +0 -0
  18. package/dist/cjs/cura-button-outline.cjs.entry.js +0 -0
  19. package/dist/cjs/cura-button-outline.cjs.entry.js.map +0 -0
  20. package/dist/cjs/cura-button-outline.entry.cjs.js.map +0 -0
  21. package/dist/cjs/cura-button-select.cjs.entry.js +0 -0
  22. package/dist/cjs/cura-button-select.cjs.entry.js.map +0 -0
  23. package/dist/cjs/cura-button-select.entry.cjs.js.map +0 -0
  24. package/dist/cjs/cura-button.definitions-B3SK8MaV.js +0 -0
  25. package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +0 -0
  26. package/dist/cjs/cura-calendar.cjs.entry.js +0 -0
  27. package/dist/cjs/cura-calendar.cjs.entry.js.map +0 -0
  28. package/dist/cjs/cura-calendar.entry.cjs.js.map +0 -0
  29. package/dist/cjs/cura-checkbox.cjs.entry.js +0 -0
  30. package/dist/cjs/cura-checkbox.cjs.entry.js.map +0 -0
  31. package/dist/cjs/cura-checkbox.entry.cjs.js.map +0 -0
  32. package/dist/cjs/cura-display.cjs.entry.js +0 -0
  33. package/dist/cjs/cura-display.cjs.entry.js.map +0 -0
  34. package/dist/cjs/cura-display.entry.cjs.js.map +0 -0
  35. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +0 -0
  36. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +0 -0
  37. package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +0 -0
  38. package/dist/cjs/cura-forms.definitions-DVLuO67c.js +0 -0
  39. package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +0 -0
  40. package/dist/cjs/cura-icon.definitions-DT0wF67y.js +0 -0
  41. package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +0 -0
  42. package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
  43. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  44. package/dist/cjs/cura-icons-view.entry.cjs.js.map +1 -1
  45. package/dist/cjs/cura-input-date.cjs.entry.js +0 -0
  46. package/dist/cjs/cura-input-date.cjs.entry.js.map +0 -0
  47. package/dist/cjs/cura-input-date.entry.cjs.js.map +0 -0
  48. package/dist/cjs/cura-loader-bar.cjs.entry.js +0 -0
  49. package/dist/cjs/cura-loader-bar.cjs.entry.js.map +0 -0
  50. package/dist/cjs/cura-loader-bar.entry.cjs.js.map +0 -0
  51. package/dist/cjs/cura-modal.cjs.entry.js +10 -2
  52. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
  53. package/dist/cjs/cura-modal.entry.cjs.js.map +1 -1
  54. package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +0 -0
  55. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +0 -0
  56. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +0 -0
  57. package/dist/cjs/cura-radio.cjs.entry.js +0 -0
  58. package/dist/cjs/cura-radio.cjs.entry.js.map +0 -0
  59. package/dist/cjs/cura-radio.entry.cjs.js.map +0 -0
  60. package/dist/cjs/cura-stepper.cjs.entry.js +0 -0
  61. package/dist/cjs/cura-stepper.cjs.entry.js.map +0 -0
  62. package/dist/cjs/cura-stepper.entry.cjs.js.map +0 -0
  63. package/dist/cjs/cura-switch.cjs.entry.js +0 -0
  64. package/dist/cjs/cura-switch.cjs.entry.js.map +0 -0
  65. package/dist/cjs/cura-switch.entry.cjs.js.map +0 -0
  66. package/dist/cjs/cura-tabs-button.cjs.entry.js +0 -0
  67. package/dist/cjs/cura-tabs-button.cjs.entry.js.map +0 -0
  68. package/dist/cjs/cura-tabs-button.entry.cjs.js.map +0 -0
  69. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +0 -0
  70. package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +0 -0
  71. package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +0 -0
  72. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js +0 -0
  73. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +0 -0
  74. package/dist/cjs/cura-theme-module-CJkmAxBA.js +0 -0
  75. package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +0 -0
  76. package/dist/cjs/cura-toast.cjs.entry.js +0 -0
  77. package/dist/cjs/cura-toast.cjs.entry.js.map +0 -0
  78. package/dist/cjs/cura-toast.entry.cjs.js.map +0 -0
  79. package/dist/cjs/cura-tooltip.cjs.entry.js +0 -0
  80. package/dist/cjs/cura-tooltip.cjs.entry.js.map +0 -0
  81. package/dist/cjs/cura-tooltip.entry.cjs.js.map +0 -0
  82. package/dist/cjs/cura.cjs.js +1 -1
  83. package/dist/cjs/cura.cjs.js.map +0 -0
  84. package/dist/cjs/index-BK9MSAiE.js +0 -0
  85. package/dist/cjs/index-BK9MSAiE.js.map +0 -0
  86. package/dist/cjs/index-EyP6Zlkd.js +0 -0
  87. package/dist/cjs/index-EyP6Zlkd.js.map +0 -0
  88. package/dist/cjs/index.cjs.js +0 -0
  89. package/dist/cjs/index.cjs.js.map +0 -0
  90. package/dist/cjs/loader.cjs.js +1 -1
  91. package/dist/cjs/loader.cjs.js.map +0 -0
  92. package/dist/collection/api/cura-api.js +0 -0
  93. package/dist/collection/api/cura-api.js.map +0 -0
  94. package/dist/collection/api/cura-api.type.js +0 -0
  95. package/dist/collection/api/cura-api.type.js.map +0 -0
  96. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -0
  97. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -0
  98. package/dist/collection/api/modules/cura-theme-colors-module.js +0 -0
  99. package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -0
  100. package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -0
  101. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -0
  102. package/dist/collection/api/modules/cura-theme-module.js +0 -0
  103. package/dist/collection/api/modules/cura-theme-module.js.map +0 -0
  104. package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -0
  105. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -0
  106. package/dist/collection/api/theme-presets/static.js +0 -0
  107. package/dist/collection/api/theme-presets/static.js.map +0 -0
  108. package/dist/collection/api/theme-presets/theme-default.js +0 -0
  109. package/dist/collection/api/theme-presets/theme-default.js.map +0 -0
  110. package/dist/collection/api/theme-presets/theme-legacy-default.js +0 -0
  111. package/dist/collection/api/theme-presets/theme-legacy-default.js.map +0 -0
  112. package/dist/collection/api/theme-presets/theme-maternity.js +0 -0
  113. package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -0
  114. package/dist/collection/api/theme-presets/theme-oncology.js +0 -0
  115. package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -0
  116. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js +0 -0
  117. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js.map +0 -0
  118. package/dist/collection/api/theme-presets/theme-presets.js +0 -0
  119. package/dist/collection/api/theme-presets/theme-presets.js.map +0 -0
  120. package/dist/collection/api/theme-presets/theme-richet.js +0 -0
  121. package/dist/collection/api/theme-presets/theme-richet.js.map +0 -0
  122. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  123. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  124. package/dist/collection/assets/icons/iconset-default-tmp.svg +40 -0
  125. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  126. package/dist/collection/assets-raw/icons/default/autism.svg +3 -0
  127. package/dist/collection/assets-raw/icons/default/biop.svg +3 -0
  128. package/dist/collection/assets-raw/icons/default/lab.svg +3 -0
  129. package/dist/collection/assets-raw/icons/default/mobileClick.svg +3 -0
  130. package/dist/collection/assets-raw/icons/default/mobileRotate1.svg +3 -0
  131. package/dist/collection/assets-raw/icons/default/mobileRotate2.svg +3 -0
  132. package/dist/collection/assets-raw/icons/default/mobileRotate3.svg +3 -0
  133. package/dist/collection/assets-raw/icons/default/star.svg +3 -0
  134. package/dist/collection/assets-raw/icons/default/stop.svg +3 -0
  135. package/dist/collection/assets-raw/icons/default/xray.svg +3 -0
  136. package/dist/collection/collection-manifest.json +0 -0
  137. package/dist/collection/components/accordion/cura-accordion/cura-accordion.css +0 -0
  138. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +0 -0
  139. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +0 -0
  140. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +0 -0
  141. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +0 -0
  142. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +0 -0
  143. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +0 -0
  144. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +0 -0
  145. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.css +0 -0
  146. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +0 -0
  147. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +0 -0
  148. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js +0 -0
  149. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js.map +0 -0
  150. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.css +0 -0
  151. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +0 -0
  152. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +0 -0
  153. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js +0 -0
  154. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js.map +0 -0
  155. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.css +0 -0
  156. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +0 -0
  157. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +0 -0
  158. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js +0 -0
  159. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js.map +0 -0
  160. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.css +0 -0
  161. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +0 -0
  162. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +0 -0
  163. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +0 -0
  164. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +0 -0
  165. package/dist/collection/components/buttons/cura-button/cura-button.css +0 -0
  166. package/dist/collection/components/buttons/cura-button/cura-button.js +0 -0
  167. package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -0
  168. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +0 -0
  169. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +0 -0
  170. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +0 -0
  171. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +0 -0
  172. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -0
  173. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +0 -0
  174. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +0 -0
  175. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +0 -0
  176. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +0 -0
  177. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +0 -0
  178. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +0 -0
  179. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +0 -0
  180. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +0 -0
  181. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +0 -0
  182. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -0
  183. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +0 -0
  184. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +0 -0
  185. package/dist/collection/components/buttons/cura-button.definitions.js +0 -0
  186. package/dist/collection/components/buttons/cura-button.definitions.js.map +0 -0
  187. package/dist/collection/components/cura-alert/cura-alert.css +0 -0
  188. package/dist/collection/components/cura-alert/cura-alert.js +4 -3
  189. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
  190. package/dist/collection/components/cura-alert/cura-alert.stories.js +0 -0
  191. package/dist/collection/components/cura-alert/cura-alert.stories.js.map +0 -0
  192. package/dist/collection/components/cura-avatar/cura-avatar.css +0 -0
  193. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +0 -0
  194. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +0 -0
  195. package/dist/collection/components/cura-avatar/cura-avatar.js +0 -0
  196. package/dist/collection/components/cura-avatar/cura-avatar.js.map +0 -0
  197. package/dist/collection/components/cura-avatar/cura-avatar.stories.js +0 -0
  198. package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +0 -0
  199. package/dist/collection/components/cura-calendar/cura-calendar.css +0 -0
  200. package/dist/collection/components/cura-calendar/cura-calendar.js +0 -0
  201. package/dist/collection/components/cura-calendar/cura-calendar.js.map +0 -0
  202. package/dist/collection/components/cura-calendar/cura-calendar.stories.js +0 -0
  203. package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +0 -0
  204. package/dist/collection/components/cura-card/cura-card.css +0 -0
  205. package/dist/collection/components/cura-card/cura-card.js +0 -0
  206. package/dist/collection/components/cura-card/cura-card.js.map +0 -0
  207. package/dist/collection/components/cura-card/cura-card.stories.js +0 -0
  208. package/dist/collection/components/cura-card/cura-card.stories.js.map +0 -0
  209. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.css +0 -0
  210. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js +0 -0
  211. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js.map +0 -0
  212. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js +0 -0
  213. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +0 -0
  214. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.css +0 -0
  215. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +0 -0
  216. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +0 -0
  217. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js +0 -0
  218. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +0 -0
  219. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +0 -0
  220. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +0 -0
  221. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +0 -0
  222. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +0 -0
  223. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +0 -0
  224. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.css +1 -1
  225. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +27 -5
  226. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  227. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js +0 -0
  228. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js.map +0 -0
  229. package/dist/collection/components/cura-icon/cura-icon.css +0 -0
  230. package/dist/collection/components/cura-icon/cura-icon.definitions.js +0 -0
  231. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +0 -0
  232. package/dist/collection/components/cura-icon/cura-icon.js +0 -0
  233. package/dist/collection/components/cura-icon/cura-icon.js.map +0 -0
  234. package/dist/collection/components/cura-icon/cura-icon.stories.js +0 -0
  235. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +0 -0
  236. package/dist/collection/components/cura-icons-view/cura-icons-view.css +0 -0
  237. package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -0
  238. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -0
  239. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +0 -0
  240. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +0 -0
  241. package/dist/collection/components/cura-modal/cura-modal.css +0 -0
  242. package/dist/collection/components/cura-modal/cura-modal.js +30 -2
  243. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  244. package/dist/collection/components/cura-modal/cura-modal.stories.js +10 -0
  245. package/dist/collection/components/cura-modal/cura-modal.stories.js.map +1 -1
  246. package/dist/collection/components/cura-page-template/cura-page-template.css +0 -0
  247. package/dist/collection/components/cura-page-template/cura-page-template.js +0 -0
  248. package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -0
  249. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.css +0 -0
  250. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +0 -0
  251. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +0 -0
  252. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.css +0 -0
  253. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +0 -0
  254. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +0 -0
  255. package/dist/collection/components/cura-stepper/cura-stepper.css +0 -0
  256. package/dist/collection/components/cura-stepper/cura-stepper.js +0 -0
  257. package/dist/collection/components/cura-stepper/cura-stepper.js.map +0 -0
  258. package/dist/collection/components/cura-stepper/cura-stepper.stories.js +0 -0
  259. package/dist/collection/components/cura-stepper/cura-stepper.stories.js.map +0 -0
  260. package/dist/collection/components/cura-stepper/stepper.type.js +0 -0
  261. package/dist/collection/components/cura-stepper/stepper.type.js.map +0 -0
  262. package/dist/collection/components/cura-toast/cura-toast.css +0 -0
  263. package/dist/collection/components/cura-toast/cura-toast.js +0 -0
  264. package/dist/collection/components/cura-toast/cura-toast.js.map +0 -0
  265. package/dist/collection/components/cura-toast/cura-toast.stories.js +0 -0
  266. package/dist/collection/components/cura-toast/cura-toast.stories.js.map +0 -0
  267. package/dist/collection/components/cura-tooltip/cura-tooltip.css +0 -0
  268. package/dist/collection/components/cura-tooltip/cura-tooltip.js +0 -0
  269. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +0 -0
  270. package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js +0 -0
  271. package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js.map +0 -0
  272. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +0 -0
  273. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +0 -0
  274. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +0 -0
  275. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +0 -0
  276. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +0 -0
  277. package/dist/collection/components/forms/cura-forms.definitions.js +0 -0
  278. package/dist/collection/components/forms/cura-forms.definitions.js.map +0 -0
  279. package/dist/collection/components/forms/cura-input-date/cura-input-date.css +0 -0
  280. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +0 -0
  281. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +0 -0
  282. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +0 -0
  283. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +0 -0
  284. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +0 -0
  285. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +8 -5
  286. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  287. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +0 -0
  288. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +0 -0
  289. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +0 -0
  290. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +0 -0
  291. package/dist/collection/components/forms/cura-label/cura-label.css +0 -0
  292. package/dist/collection/components/forms/cura-label/cura-label.js +0 -0
  293. package/dist/collection/components/forms/cura-label/cura-label.js.map +0 -0
  294. package/dist/collection/components/forms/cura-label/cura-label.stories.js +0 -0
  295. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +0 -0
  296. package/dist/collection/components/forms/cura-radio/cura-radio.css +0 -0
  297. package/dist/collection/components/forms/cura-radio/cura-radio.js +0 -0
  298. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +0 -0
  299. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +0 -0
  300. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +0 -0
  301. package/dist/collection/components/forms/cura-select/cura-select.css +3 -148
  302. package/dist/collection/components/forms/cura-select/cura-select.js +103 -11
  303. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  304. package/dist/collection/components/forms/cura-select/cura-select.stories.js +0 -0
  305. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +0 -0
  306. package/dist/collection/components/forms/cura-select-options/cura-select-option.css +15 -0
  307. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +0 -0
  308. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +0 -0
  309. package/dist/collection/components/forms/cura-switch/cura-switch.css +0 -0
  310. package/dist/collection/components/forms/cura-switch/cura-switch.js +0 -0
  311. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +0 -0
  312. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +0 -0
  313. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +0 -0
  314. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.css +0 -0
  315. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +0 -0
  316. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +0 -0
  317. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js +0 -0
  318. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js.map +0 -0
  319. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +0 -0
  320. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +0 -0
  321. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -0
  322. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +0 -0
  323. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +0 -0
  324. package/dist/collection/components/tabs/cura-tabs/cura-tabs.css +0 -0
  325. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +0 -0
  326. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +0 -0
  327. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js +0 -0
  328. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js.map +0 -0
  329. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.css +0 -0
  330. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +0 -0
  331. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +0 -0
  332. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js +0 -0
  333. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js.map +0 -0
  334. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.css +0 -0
  335. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +0 -0
  336. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +0 -0
  337. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js +0 -0
  338. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js.map +0 -0
  339. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.css +0 -0
  340. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +0 -0
  341. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +0 -0
  342. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js +0 -0
  343. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js.map +0 -0
  344. package/dist/collection/components/tabs/cura-tabs.definitions.js +0 -0
  345. package/dist/collection/components/tabs/cura-tabs.definitions.js.map +0 -0
  346. package/dist/collection/components/text/cura-display/cura-display.css +0 -0
  347. package/dist/collection/components/text/cura-display/cura-display.js +0 -0
  348. package/dist/collection/components/text/cura-display/cura-display.js.map +0 -0
  349. package/dist/collection/components/text/cura-display/cura-display.stories.js +0 -0
  350. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +0 -0
  351. package/dist/collection/components/text/cura-heading/cura-heading.css +0 -0
  352. package/dist/collection/components/text/cura-heading/cura-heading.js +0 -0
  353. package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -0
  354. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +0 -0
  355. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +0 -0
  356. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +0 -0
  357. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +0 -0
  358. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -0
  359. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +0 -0
  360. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +0 -0
  361. package/dist/collection/index.js +0 -0
  362. package/dist/collection/index.js.map +0 -0
  363. package/dist/collection/rededor-cura-start.js +0 -0
  364. package/dist/collection/rededor-cura-start.js.map +0 -0
  365. package/dist/collection/utils/FixedElementScrollBehavior.js +0 -0
  366. package/dist/collection/utils/FixedElementScrollBehavior.js.map +0 -0
  367. package/dist/collection/utils/utils.js +0 -0
  368. package/dist/collection/utils/utils.js.map +0 -0
  369. package/dist/components/cura-accordion-item.d.ts +0 -0
  370. package/dist/components/cura-accordion-item.js +0 -0
  371. package/dist/components/cura-accordion-item.js.map +0 -0
  372. package/dist/components/cura-accordion.d.ts +0 -0
  373. package/dist/components/cura-accordion.js +0 -0
  374. package/dist/components/cura-accordion.js.map +0 -0
  375. package/dist/components/cura-alert.d.ts +0 -0
  376. package/dist/components/cura-alert.js +4 -3
  377. package/dist/components/cura-alert.js.map +1 -1
  378. package/dist/components/cura-avatar.d.ts +0 -0
  379. package/dist/components/cura-avatar.js +0 -0
  380. package/dist/components/cura-avatar.js.map +0 -0
  381. package/dist/components/cura-badge-counter.d.ts +0 -0
  382. package/dist/components/cura-badge-counter.js +0 -0
  383. package/dist/components/cura-badge-counter.js.map +0 -0
  384. package/dist/components/cura-badge-distance.d.ts +0 -0
  385. package/dist/components/cura-badge-distance.js +0 -0
  386. package/dist/components/cura-badge-distance.js.map +0 -0
  387. package/dist/components/cura-badge-dot.d.ts +0 -0
  388. package/dist/components/cura-badge-dot.js +0 -0
  389. package/dist/components/cura-badge-dot.js.map +0 -0
  390. package/dist/components/cura-badge-pill.d.ts +0 -0
  391. package/dist/components/cura-badge-pill.js +0 -0
  392. package/dist/components/cura-badge-pill.js.map +0 -0
  393. package/dist/components/cura-button-outline.d.ts +0 -0
  394. package/dist/components/cura-button-outline.js +0 -0
  395. package/dist/components/cura-button-outline.js.map +0 -0
  396. package/dist/components/cura-button-select.d.ts +0 -0
  397. package/dist/components/cura-button-select.js +0 -0
  398. package/dist/components/cura-button-select.js.map +0 -0
  399. package/dist/components/cura-button-transparent.d.ts +0 -0
  400. package/dist/components/cura-button-transparent.js +0 -0
  401. package/dist/components/cura-button-transparent.js.map +0 -0
  402. package/dist/components/cura-button.d.ts +0 -0
  403. package/dist/components/cura-button.js +0 -0
  404. package/dist/components/cura-button.js.map +0 -0
  405. package/dist/components/cura-calendar.d.ts +0 -0
  406. package/dist/components/cura-calendar.js +1 -1
  407. package/dist/components/cura-calendar.js.map +0 -0
  408. package/dist/components/cura-card.d.ts +0 -0
  409. package/dist/components/cura-card.js +0 -0
  410. package/dist/components/cura-card.js.map +0 -0
  411. package/dist/components/cura-checkbox.d.ts +0 -0
  412. package/dist/components/cura-checkbox.js +0 -0
  413. package/dist/components/cura-checkbox.js.map +0 -0
  414. package/dist/components/cura-display.d.ts +0 -0
  415. package/dist/components/cura-display.js +0 -0
  416. package/dist/components/cura-display.js.map +0 -0
  417. package/dist/components/cura-dropdown-search-category.d.ts +0 -0
  418. package/dist/components/cura-dropdown-search-category.js +0 -0
  419. package/dist/components/cura-dropdown-search-category.js.map +0 -0
  420. package/dist/components/cura-dropdown-search-not-found.d.ts +0 -0
  421. package/dist/components/cura-dropdown-search-not-found.js +0 -0
  422. package/dist/components/cura-dropdown-search-not-found.js.map +0 -0
  423. package/dist/components/cura-dropdown-search-option.d.ts +0 -0
  424. package/dist/components/cura-dropdown-search-option.js +0 -0
  425. package/dist/components/cura-dropdown-search-option.js.map +0 -0
  426. package/dist/components/cura-dropdown-search.d.ts +0 -0
  427. package/dist/components/cura-dropdown-search.js +29 -7
  428. package/dist/components/cura-dropdown-search.js.map +1 -1
  429. package/dist/components/cura-heading.d.ts +0 -0
  430. package/dist/components/cura-heading.js +0 -0
  431. package/dist/components/cura-heading.js.map +0 -0
  432. package/dist/components/cura-icon.d.ts +0 -0
  433. package/dist/components/cura-icon.js +0 -0
  434. package/dist/components/cura-icon.js.map +0 -0
  435. package/dist/components/cura-icons-view.d.ts +0 -0
  436. package/dist/components/cura-icons-view.js +1 -1
  437. package/dist/components/cura-icons-view.js.map +1 -1
  438. package/dist/components/cura-input-date.d.ts +0 -0
  439. package/dist/components/cura-input-date.js +4 -4
  440. package/dist/components/cura-input-date.js.map +0 -0
  441. package/dist/components/cura-input-text.d.ts +0 -0
  442. package/dist/components/cura-input-text.js +1 -1
  443. package/dist/components/cura-input-text.js.map +0 -0
  444. package/dist/components/cura-label.d.ts +0 -0
  445. package/dist/components/cura-label.js +0 -0
  446. package/dist/components/cura-label.js.map +0 -0
  447. package/dist/components/cura-loader-bar.d.ts +0 -0
  448. package/dist/components/cura-loader-bar.js +0 -0
  449. package/dist/components/cura-loader-bar.js.map +0 -0
  450. package/dist/components/cura-loader-circle.d.ts +0 -0
  451. package/dist/components/cura-loader-circle.js +0 -0
  452. package/dist/components/cura-loader-circle.js.map +0 -0
  453. package/dist/components/cura-modal.d.ts +0 -0
  454. package/dist/components/cura-modal.js +11 -2
  455. package/dist/components/cura-modal.js.map +1 -1
  456. package/dist/components/cura-page-template.d.ts +0 -0
  457. package/dist/components/cura-page-template.js +0 -0
  458. package/dist/components/cura-page-template.js.map +0 -0
  459. package/dist/components/cura-paragraph.d.ts +0 -0
  460. package/dist/components/cura-paragraph.js +0 -0
  461. package/dist/components/cura-paragraph.js.map +0 -0
  462. package/dist/components/cura-progress-bar.d.ts +0 -0
  463. package/dist/components/cura-progress-bar.js +0 -0
  464. package/dist/components/cura-progress-bar.js.map +0 -0
  465. package/dist/components/cura-radio.d.ts +0 -0
  466. package/dist/components/cura-radio.js +0 -0
  467. package/dist/components/cura-radio.js.map +0 -0
  468. package/dist/components/cura-select-option.d.ts +0 -0
  469. package/dist/components/cura-select-option.js +1 -1
  470. package/dist/components/cura-select-option.js.map +0 -0
  471. package/dist/components/cura-select.d.ts +0 -0
  472. package/dist/components/cura-select.js +1 -1
  473. package/dist/components/cura-select.js.map +0 -0
  474. package/dist/components/cura-stepper-item.d.ts +0 -0
  475. package/dist/components/cura-stepper-item.js +0 -0
  476. package/dist/components/cura-stepper-item.js.map +0 -0
  477. package/dist/components/cura-stepper.d.ts +0 -0
  478. package/dist/components/cura-stepper.js +0 -0
  479. package/dist/components/cura-stepper.js.map +0 -0
  480. package/dist/components/cura-switch.d.ts +0 -0
  481. package/dist/components/cura-switch.js +0 -0
  482. package/dist/components/cura-switch.js.map +0 -0
  483. package/dist/components/cura-tabs-button.d.ts +0 -0
  484. package/dist/components/cura-tabs-button.js +0 -0
  485. package/dist/components/cura-tabs-button.js.map +0 -0
  486. package/dist/components/cura-tabs-group.d.ts +0 -0
  487. package/dist/components/cura-tabs-group.js +0 -0
  488. package/dist/components/cura-tabs-group.js.map +0 -0
  489. package/dist/components/cura-tabs-transparent.d.ts +0 -0
  490. package/dist/components/cura-tabs-transparent.js +0 -0
  491. package/dist/components/cura-tabs-transparent.js.map +0 -0
  492. package/dist/components/cura-tabs.d.ts +0 -0
  493. package/dist/components/cura-tabs.js +0 -0
  494. package/dist/components/cura-tabs.js.map +0 -0
  495. package/dist/components/cura-toast.d.ts +0 -0
  496. package/dist/components/cura-toast.js +0 -0
  497. package/dist/components/cura-toast.js.map +0 -0
  498. package/dist/components/cura-tooltip.d.ts +0 -0
  499. package/dist/components/cura-tooltip.js +0 -0
  500. package/dist/components/cura-tooltip.js.map +0 -0
  501. package/dist/components/index.d.ts +0 -0
  502. package/dist/components/index.js +0 -0
  503. package/dist/components/index.js.map +0 -0
  504. package/dist/components/p-B5aO1chh.js +0 -0
  505. package/dist/components/p-B5aO1chh.js.map +0 -0
  506. package/dist/components/p-BHEafDKD.js +0 -0
  507. package/dist/components/p-BHEafDKD.js.map +0 -0
  508. package/dist/components/p-BRDqwZ4N.js +0 -0
  509. package/dist/components/p-BRDqwZ4N.js.map +0 -0
  510. package/dist/components/p-BSI2FkNn.js +0 -0
  511. package/dist/components/p-BSI2FkNn.js.map +0 -0
  512. package/dist/components/{p-CgMS6FUK.js → p-BrJsfk5q.js} +10 -7
  513. package/dist/components/p-BrJsfk5q.js.map +1 -0
  514. package/dist/components/p-C72aF-gL.js +0 -0
  515. package/dist/components/p-C72aF-gL.js.map +0 -0
  516. package/dist/components/p-CHcd-uKK.js +0 -0
  517. package/dist/components/p-CHcd-uKK.js.map +0 -0
  518. package/dist/components/p-CvdWbsfO.js +2147 -0
  519. package/dist/components/p-CvdWbsfO.js.map +1 -0
  520. package/dist/components/p-D1cPOZpG.js +0 -0
  521. package/dist/components/p-D1cPOZpG.js.map +0 -0
  522. package/dist/components/{p-BGnJiNyu.js → p-DETZu2ie.js} +4 -4
  523. package/dist/components/{p-BGnJiNyu.js.map → p-DETZu2ie.js.map} +1 -1
  524. package/dist/components/p-DI4g-ZH4.js +0 -0
  525. package/dist/components/p-DI4g-ZH4.js.map +0 -0
  526. package/dist/components/p-DR1RHrEX.js +0 -0
  527. package/dist/components/p-DR1RHrEX.js.map +0 -0
  528. package/dist/components/p-DaPc6Dxl.js +0 -0
  529. package/dist/components/p-DaPc6Dxl.js.map +0 -0
  530. package/dist/components/p-Dot54hbB.js +0 -0
  531. package/dist/components/p-Dot54hbB.js.map +0 -0
  532. package/dist/components/p-Dqm2sAwv.js +0 -0
  533. package/dist/components/p-Dqm2sAwv.js.map +0 -0
  534. package/dist/components/{p-DpIu_Oxz.js → p-Dt450DkQ.js} +3 -3
  535. package/dist/components/p-Dt450DkQ.js.map +1 -0
  536. package/dist/components/p-FTSrgi0q.js +0 -0
  537. package/dist/components/p-FTSrgi0q.js.map +0 -0
  538. package/dist/components/p-KIQMkSRF.js +0 -0
  539. package/dist/components/p-KIQMkSRF.js.map +0 -0
  540. package/dist/components/p-cOEGtL9C.js +0 -0
  541. package/dist/components/p-cOEGtL9C.js.map +0 -0
  542. package/dist/cura/cura-alert.entry.esm.js.map +1 -1
  543. package/dist/cura/cura-badge-counter.entry.esm.js.map +0 -0
  544. package/dist/cura/cura-badge-dot.entry.esm.js.map +0 -0
  545. package/dist/cura/cura-badge-pill.entry.esm.js.map +0 -0
  546. package/dist/cura/cura-button-outline.entry.esm.js.map +0 -0
  547. package/dist/cura/cura-button-select.entry.esm.js.map +0 -0
  548. package/dist/cura/cura-calendar.entry.esm.js.map +0 -0
  549. package/dist/cura/cura-checkbox.entry.esm.js.map +0 -0
  550. package/dist/cura/cura-display.entry.esm.js.map +0 -0
  551. package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +0 -0
  552. package/dist/cura/cura-icons-view.entry.esm.js.map +1 -1
  553. package/dist/cura/cura-input-date.entry.esm.js.map +0 -0
  554. package/dist/cura/cura-loader-bar.entry.esm.js.map +0 -0
  555. package/dist/cura/cura-modal.entry.esm.js.map +1 -1
  556. package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +0 -0
  557. package/dist/cura/cura-radio.entry.esm.js.map +0 -0
  558. package/dist/cura/cura-stepper.entry.esm.js.map +0 -0
  559. package/dist/cura/cura-switch.entry.esm.js.map +0 -0
  560. package/dist/cura/cura-tabs-button.entry.esm.js.map +0 -0
  561. package/dist/cura/cura-tabs-transparent.entry.esm.js.map +0 -0
  562. package/dist/cura/cura-toast.entry.esm.js.map +0 -0
  563. package/dist/cura/cura-tooltip.entry.esm.js.map +0 -0
  564. package/dist/cura/cura.esm.js +1 -1
  565. package/dist/cura/cura.esm.js.map +0 -0
  566. package/dist/cura/index.esm.js +0 -0
  567. package/dist/cura/index.esm.js.map +0 -0
  568. package/dist/cura/loader.esm.js.map +0 -0
  569. package/dist/cura/p-077019da.entry.js +0 -0
  570. package/dist/cura/p-077019da.entry.js.map +0 -0
  571. package/dist/cura/p-07783235.entry.js +0 -0
  572. package/dist/cura/p-07783235.entry.js.map +0 -0
  573. package/dist/cura/p-090e297c.entry.js +0 -0
  574. package/dist/cura/p-090e297c.entry.js.map +0 -0
  575. package/dist/cura/p-16c0b52c.entry.js +0 -0
  576. package/dist/cura/p-16c0b52c.entry.js.map +0 -0
  577. package/dist/cura/p-32015dcc.entry.js +0 -0
  578. package/dist/cura/p-32015dcc.entry.js.map +0 -0
  579. package/dist/cura/p-32f94709.entry.js +0 -0
  580. package/dist/cura/p-32f94709.entry.js.map +0 -0
  581. package/dist/cura/p-3d6040e2.entry.js +0 -0
  582. package/dist/cura/p-3d6040e2.entry.js.map +0 -0
  583. package/dist/cura/p-4ac578a6.entry.js +0 -0
  584. package/dist/cura/p-4ac578a6.entry.js.map +0 -0
  585. package/dist/cura/p-4bde448e.entry.js +0 -0
  586. package/dist/cura/p-4bde448e.entry.js.map +0 -0
  587. package/dist/cura/p-5ed7ce95.entry.js +2 -0
  588. package/dist/cura/p-5ed7ce95.entry.js.map +1 -0
  589. package/dist/cura/p-7586fd07.entry.js +0 -0
  590. package/dist/cura/p-7586fd07.entry.js.map +0 -0
  591. package/dist/cura/p-76603652.entry.js +2 -0
  592. package/dist/cura/p-76603652.entry.js.map +1 -0
  593. package/dist/cura/p-76cbb798.entry.js +0 -0
  594. package/dist/cura/p-76cbb798.entry.js.map +0 -0
  595. package/dist/cura/p-7fd143aa.entry.js +0 -0
  596. package/dist/cura/p-7fd143aa.entry.js.map +0 -0
  597. package/dist/cura/p-8c83f259.entry.js +0 -0
  598. package/dist/cura/p-8c83f259.entry.js.map +0 -0
  599. package/dist/cura/p-8d10a5a2.entry.js +2 -0
  600. package/dist/cura/p-8d10a5a2.entry.js.map +1 -0
  601. package/dist/cura/p-95cd7918.entry.js +0 -0
  602. package/dist/cura/p-95cd7918.entry.js.map +0 -0
  603. package/dist/cura/p-964stZ3D.js +0 -0
  604. package/dist/cura/p-964stZ3D.js.map +0 -0
  605. package/dist/cura/p-9ef5444e.entry.js +0 -0
  606. package/dist/cura/p-9ef5444e.entry.js.map +0 -0
  607. package/dist/cura/p-BPKQjAwN.js +0 -0
  608. package/dist/cura/p-BPKQjAwN.js.map +0 -0
  609. package/dist/cura/p-BSI2FkNn.js +0 -0
  610. package/dist/cura/p-BSI2FkNn.js.map +0 -0
  611. package/dist/cura/p-CHcd-uKK.js +0 -0
  612. package/dist/cura/p-CHcd-uKK.js.map +0 -0
  613. package/dist/cura/p-Dot54hbB.js +0 -0
  614. package/dist/cura/p-Dot54hbB.js.map +0 -0
  615. package/dist/cura/p-PPMZr_VE.js +0 -0
  616. package/dist/cura/p-PPMZr_VE.js.map +0 -0
  617. package/dist/cura/p-bdfe9af2.entry.js +2 -0
  618. package/dist/cura/p-bdfe9af2.entry.js.map +1 -0
  619. package/dist/cura/p-c6f240f0.entry.js +0 -0
  620. package/dist/cura/p-c6f240f0.entry.js.map +0 -0
  621. package/dist/cura/p-ceb646df.entry.js +0 -0
  622. package/dist/cura/p-ceb646df.entry.js.map +0 -0
  623. package/dist/cura/p-d040f8b9.entry.js +0 -0
  624. package/dist/cura/p-d040f8b9.entry.js.map +0 -0
  625. package/dist/cura/p-f9af3a3b.entry.js +0 -0
  626. package/dist/cura/p-f9af3a3b.entry.js.map +0 -0
  627. package/dist/cura/p-sjLA93YY.js +0 -0
  628. package/dist/cura/p-sjLA93YY.js.map +0 -0
  629. package/dist/esm/{cura-accordion_20.entry.js → cura-accordion_21.entry.js} +1826 -27
  630. package/dist/esm/cura-accordion_21.entry.js.map +1 -0
  631. package/dist/esm/cura-alert.entry.js +4 -3
  632. package/dist/esm/cura-alert.entry.js.map +1 -1
  633. package/dist/esm/cura-badge-counter.entry.js +0 -0
  634. package/dist/esm/cura-badge-counter.entry.js.map +0 -0
  635. package/dist/esm/cura-badge-dot.entry.js +0 -0
  636. package/dist/esm/cura-badge-dot.entry.js.map +0 -0
  637. package/dist/esm/cura-badge-pill.entry.js +0 -0
  638. package/dist/esm/cura-badge-pill.entry.js.map +0 -0
  639. package/dist/esm/cura-button-outline.entry.js +0 -0
  640. package/dist/esm/cura-button-outline.entry.js.map +0 -0
  641. package/dist/esm/cura-button-select.entry.js +0 -0
  642. package/dist/esm/cura-button-select.entry.js.map +0 -0
  643. package/dist/esm/cura-button.definitions-BSI2FkNn.js +0 -0
  644. package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +0 -0
  645. package/dist/esm/cura-calendar.entry.js +0 -0
  646. package/dist/esm/cura-calendar.entry.js.map +0 -0
  647. package/dist/esm/cura-checkbox.entry.js +0 -0
  648. package/dist/esm/cura-checkbox.entry.js.map +0 -0
  649. package/dist/esm/cura-display.entry.js +0 -0
  650. package/dist/esm/cura-display.entry.js.map +0 -0
  651. package/dist/esm/cura-dropdown-search-not-found.entry.js +0 -0
  652. package/dist/esm/cura-dropdown-search-not-found.entry.js.map +0 -0
  653. package/dist/esm/cura-forms.definitions-Dot54hbB.js +0 -0
  654. package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +0 -0
  655. package/dist/esm/cura-icon.definitions-sjLA93YY.js +0 -0
  656. package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +0 -0
  657. package/dist/esm/cura-icons-view.entry.js +1 -1
  658. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  659. package/dist/esm/cura-input-date.entry.js +0 -0
  660. package/dist/esm/cura-input-date.entry.js.map +0 -0
  661. package/dist/esm/cura-loader-bar.entry.js +0 -0
  662. package/dist/esm/cura-loader-bar.entry.js.map +0 -0
  663. package/dist/esm/cura-modal.entry.js +10 -2
  664. package/dist/esm/cura-modal.entry.js.map +1 -1
  665. package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +0 -0
  666. package/dist/esm/cura-progress-bar_2.entry.js +0 -0
  667. package/dist/esm/cura-progress-bar_2.entry.js.map +0 -0
  668. package/dist/esm/cura-radio.entry.js +0 -0
  669. package/dist/esm/cura-radio.entry.js.map +0 -0
  670. package/dist/esm/cura-stepper.entry.js +0 -0
  671. package/dist/esm/cura-stepper.entry.js.map +0 -0
  672. package/dist/esm/cura-switch.entry.js +0 -0
  673. package/dist/esm/cura-switch.entry.js.map +0 -0
  674. package/dist/esm/cura-tabs-button.entry.js +0 -0
  675. package/dist/esm/cura-tabs-button.entry.js.map +0 -0
  676. package/dist/esm/cura-tabs-transparent.entry.js +0 -0
  677. package/dist/esm/cura-tabs-transparent.entry.js.map +0 -0
  678. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js +0 -0
  679. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +0 -0
  680. package/dist/esm/cura-theme-module-BPKQjAwN.js +0 -0
  681. package/dist/esm/cura-theme-module-BPKQjAwN.js.map +0 -0
  682. package/dist/esm/cura-toast.entry.js +0 -0
  683. package/dist/esm/cura-toast.entry.js.map +0 -0
  684. package/dist/esm/cura-tooltip.entry.js +0 -0
  685. package/dist/esm/cura-tooltip.entry.js.map +0 -0
  686. package/dist/esm/cura.js +1 -1
  687. package/dist/esm/cura.js.map +0 -0
  688. package/dist/esm/index-964stZ3D.js +0 -0
  689. package/dist/esm/index-964stZ3D.js.map +0 -0
  690. package/dist/esm/index-OdKytJIH.js +0 -0
  691. package/dist/esm/index-OdKytJIH.js.map +0 -0
  692. package/dist/esm/index.js +0 -0
  693. package/dist/esm/index.js.map +0 -0
  694. package/dist/esm/loader.js +1 -1
  695. package/dist/esm/loader.js.map +0 -0
  696. package/dist/index.cjs.js +0 -0
  697. package/dist/index.js +0 -0
  698. package/dist/loader/cdn.js +0 -0
  699. package/dist/loader/index.cjs.js +0 -0
  700. package/dist/loader/index.d.ts +0 -0
  701. package/dist/loader/index.es2017.js +0 -0
  702. package/dist/loader/index.js +0 -0
  703. package/dist/types/api/cura-api.d.ts +0 -0
  704. package/dist/types/api/cura-api.type.d.ts +0 -0
  705. package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +0 -0
  706. package/dist/types/api/modules/cura-theme-colors-module.d.ts +0 -0
  707. package/dist/types/api/modules/cura-theme-fonts-module.d.ts +0 -0
  708. package/dist/types/api/modules/cura-theme-module.d.ts +0 -0
  709. package/dist/types/api/modules/cura-theme-spacing-module.d.ts +0 -0
  710. package/dist/types/api/theme-presets/static.d.ts +0 -0
  711. package/dist/types/api/theme-presets/theme-default.d.ts +0 -0
  712. package/dist/types/api/theme-presets/theme-legacy-default.d.ts +0 -0
  713. package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -0
  714. package/dist/types/api/theme-presets/theme-oncology.d.ts +0 -0
  715. package/dist/types/api/theme-presets/theme-perinatal-temporary.d.ts +0 -0
  716. package/dist/types/api/theme-presets/theme-presets.d.ts +0 -0
  717. package/dist/types/api/theme-presets/theme-richet.d.ts +0 -0
  718. package/dist/types/assets/icons/iconset-default-list.d.ts +0 -0
  719. package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +0 -0
  720. package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +0 -0
  721. package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +0 -0
  722. package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.d.ts +0 -0
  723. package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.stories.d.ts +0 -0
  724. package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.d.ts +0 -0
  725. package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.stories.d.ts +0 -0
  726. package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.d.ts +0 -0
  727. package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.stories.d.ts +0 -0
  728. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +0 -0
  729. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.stories.d.ts +0 -0
  730. package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -0
  731. package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +0 -0
  732. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +0 -0
  733. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +0 -0
  734. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +0 -0
  735. package/dist/types/components/buttons/cura-button-select/cura-button-select.stories.d.ts +0 -0
  736. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +0 -0
  737. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +0 -0
  738. package/dist/types/components/buttons/cura-button.definitions.d.ts +0 -0
  739. package/dist/types/components/cura-alert/cura-alert.d.ts +0 -0
  740. package/dist/types/components/cura-alert/cura-alert.stories.d.ts +0 -0
  741. package/dist/types/components/cura-avatar/cura-avatar.d.ts +0 -0
  742. package/dist/types/components/cura-avatar/cura-avatar.definitions.d.ts +0 -0
  743. package/dist/types/components/cura-avatar/cura-avatar.stories.d.ts +0 -0
  744. package/dist/types/components/cura-calendar/cura-calendar.d.ts +0 -0
  745. package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +0 -0
  746. package/dist/types/components/cura-card/cura-card.d.ts +0 -0
  747. package/dist/types/components/cura-card/cura-card.stories.d.ts +0 -0
  748. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.d.ts +0 -0
  749. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.d.ts +0 -0
  750. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.d.ts +0 -0
  751. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.d.ts +0 -0
  752. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +0 -0
  753. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +0 -0
  754. package/dist/types/components/cura-dropdown-search/cura-dropdown-search.d.ts +2 -0
  755. package/dist/types/components/cura-dropdown-search/cura-dropdown-search.stories.d.ts +0 -0
  756. package/dist/types/components/cura-icon/cura-icon.d.ts +0 -0
  757. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +0 -0
  758. package/dist/types/components/cura-icon/cura-icon.stories.d.ts +0 -0
  759. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +0 -0
  760. package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +0 -0
  761. package/dist/types/components/cura-modal/cura-modal.d.ts +5 -0
  762. package/dist/types/components/cura-modal/cura-modal.stories.d.ts +11 -0
  763. package/dist/types/components/cura-page-template/cura-page-template.d.ts +0 -0
  764. package/dist/types/components/cura-stepper/cura-progress-bar/cura-progress-bar.d.ts +0 -0
  765. package/dist/types/components/cura-stepper/cura-stepper-item/cura-stepper-item.d.ts +0 -0
  766. package/dist/types/components/cura-stepper/cura-stepper.d.ts +0 -0
  767. package/dist/types/components/cura-stepper/cura-stepper.stories.d.ts +0 -0
  768. package/dist/types/components/cura-stepper/stepper.type.d.ts +0 -0
  769. package/dist/types/components/cura-toast/cura-toast.d.ts +0 -0
  770. package/dist/types/components/cura-toast/cura-toast.stories.d.ts +0 -0
  771. package/dist/types/components/cura-tooltip/cura-tooltip.d.ts +0 -0
  772. package/dist/types/components/cura-tooltip/cura-tooltip.stories.d.ts +0 -0
  773. package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +0 -0
  774. package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +0 -0
  775. package/dist/types/components/forms/cura-forms.definitions.d.ts +0 -0
  776. package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +0 -0
  777. package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +0 -0
  778. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +0 -0
  779. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +0 -0
  780. package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +0 -0
  781. package/dist/types/components/forms/cura-label/cura-label.d.ts +0 -0
  782. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +0 -0
  783. package/dist/types/components/forms/cura-radio/cura-radio.d.ts +0 -0
  784. package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +0 -0
  785. package/dist/types/components/forms/cura-select/cura-select.d.ts +21 -0
  786. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +0 -0
  787. package/dist/types/components/forms/cura-select-options/cura-select-option.d.ts +0 -0
  788. package/dist/types/components/forms/cura-switch/cura-switch.d.ts +0 -0
  789. package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +0 -0
  790. package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.d.ts +0 -0
  791. package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.stories.d.ts +0 -0
  792. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +0 -0
  793. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +0 -0
  794. package/dist/types/components/tabs/cura-tabs/cura-tabs.d.ts +0 -0
  795. package/dist/types/components/tabs/cura-tabs/cura-tabs.stories.d.ts +0 -0
  796. package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.d.ts +0 -0
  797. package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.stories.d.ts +0 -0
  798. package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.d.ts +0 -0
  799. package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.stories.d.ts +0 -0
  800. package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.d.ts +0 -0
  801. package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.d.ts +0 -0
  802. package/dist/types/components/tabs/cura-tabs.definitions.d.ts +0 -0
  803. package/dist/types/components/text/cura-display/cura-display.d.ts +0 -0
  804. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +0 -0
  805. package/dist/types/components/text/cura-heading/cura-heading.d.ts +0 -0
  806. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +0 -0
  807. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +0 -0
  808. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +0 -0
  809. package/dist/types/components.d.ts +10 -0
  810. package/dist/types/index.d.ts +0 -0
  811. package/dist/types/rededor-cura-start.d.ts +0 -0
  812. package/dist/types/stencil-public-runtime.d.ts +0 -0
  813. package/dist/types/utils/FixedElementScrollBehavior.d.ts +0 -0
  814. package/dist/types/utils/utils.d.ts +0 -0
  815. package/package.json +3 -2
  816. package/dist/cjs/cura-accordion_20.cjs.entry.js.map +0 -1
  817. package/dist/cjs/cura-card.cjs.entry.js +0 -81
  818. package/dist/cjs/cura-card.cjs.entry.js.map +0 -1
  819. package/dist/cjs/cura-card.entry.cjs.js.map +0 -1
  820. package/dist/components/p-BTt-pVTn.js +0 -442
  821. package/dist/components/p-BTt-pVTn.js.map +0 -1
  822. package/dist/components/p-CgMS6FUK.js.map +0 -1
  823. package/dist/components/p-DpIu_Oxz.js.map +0 -1
  824. package/dist/cura/cura-card.entry.esm.js.map +0 -1
  825. package/dist/cura/p-2632183e.entry.js +0 -2
  826. package/dist/cura/p-2632183e.entry.js.map +0 -1
  827. package/dist/cura/p-6feba852.entry.js +0 -2
  828. package/dist/cura/p-6feba852.entry.js.map +0 -1
  829. package/dist/cura/p-d8aeca82.entry.js +0 -2
  830. package/dist/cura/p-d8aeca82.entry.js.map +0 -1
  831. package/dist/cura/p-deb0b764.entry.js +0 -2
  832. package/dist/cura/p-deb0b764.entry.js.map +0 -1
  833. package/dist/cura/p-df7cb250.entry.js +0 -2
  834. package/dist/cura/p-df7cb250.entry.js.map +0 -1
  835. package/dist/esm/cura-accordion_20.entry.js.map +0 -1
  836. package/dist/esm/cura-card.entry.js +0 -79
  837. package/dist/esm/cura-card.entry.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
+ import { autoUpdate, computePosition, flip, offset, shift, size } from "@floating-ui/dom";
2
3
  export class CuraSelect {
3
4
  constructor() {
4
5
  /**
@@ -72,8 +73,17 @@ export class CuraSelect {
72
73
  * Default: false
73
74
  */
74
75
  this.isOpen = false;
76
+ this.isPositioned = false;
77
+ this.menuStyle = {
78
+ top: '0px',
79
+ left: '0px',
80
+ width: '0px',
81
+ maxHeight: this.maxHeight,
82
+ };
75
83
  this.activeIndex = -1;
84
+ this.preferredPlacement = 'bottom';
76
85
  this.textInput = '';
86
+ this.floatingPlacement = 'bottom-start';
77
87
  /**
78
88
  * Styles to be applied to the component.
79
89
  */
@@ -106,7 +116,7 @@ export class CuraSelect {
106
116
  var _a;
107
117
  const { code: keyCode } = event;
108
118
  if (!this.isOpen && keyCode === 'ArrowDown') {
109
- this.isOpen = true;
119
+ this.openMenu();
110
120
  this.activeIndex = 0;
111
121
  return;
112
122
  }
@@ -122,12 +132,17 @@ export class CuraSelect {
122
132
  (_a = this.options[this.activeIndex]) === null || _a === void 0 ? void 0 : _a.click();
123
133
  }
124
134
  if (keyCode === 'Escape') {
125
- this.isOpen = false;
135
+ this.closeMenu();
126
136
  }
127
137
  };
128
138
  this.handleInputChange = (e) => {
129
139
  this.textInput = e.target.value;
130
- this.isOpen = this.textInput.length > 0;
140
+ if (this.searchBehavior) {
141
+ if (this.textInput.length > 0 && !this.isOpen)
142
+ this.openMenu();
143
+ if (this.textInput.length === 0 && this.isOpen)
144
+ this.closeMenu();
145
+ }
131
146
  this.internals.setFormValue(this.textInput);
132
147
  };
133
148
  this.handleClick = (event) => {
@@ -136,14 +151,20 @@ export class CuraSelect {
136
151
  const target = event.target;
137
152
  if (target.tagName === 'CURA-SELECT-OPTION')
138
153
  return this.onOptiselected(event);
139
- this.isOpen = !this.isOpen;
154
+ this.isOpen ? this.closeMenu() : this.openMenu();
140
155
  };
141
156
  this.handleClickOutside = (event) => {
142
- const clickedOutside = !this.host.contains(event.target);
157
+ const path = (event.composedPath && event.composedPath()) || [];
158
+ const clickedOutside = !path.includes(this.host) && !(this.menuElement && path.includes(this.menuElement));
143
159
  if (clickedOutside) {
144
- this.isOpen = false;
160
+ this.closeMenu();
145
161
  }
146
162
  };
163
+ this.handleViewportChange = () => {
164
+ if (!this.isOpen)
165
+ return;
166
+ this.updateMenuPosition();
167
+ };
147
168
  }
148
169
  updateOptionHighlights(newActiveINdex) {
149
170
  this.options.forEach((option, index) => (option.active = index === newActiveINdex));
@@ -215,6 +236,7 @@ export class CuraSelect {
215
236
  // this.initializeOptions();
216
237
  this.setupMutationObserver();
217
238
  this.addOutsideClickListener();
239
+ this.addPositionListeners();
218
240
  }
219
241
  /**
220
242
  * Lifecycle method called when the component is connected to the DOM.
@@ -228,9 +250,11 @@ export class CuraSelect {
228
250
  * Disconnects the MutationObserver if it exists.
229
251
  */
230
252
  disconnectedCallback() {
231
- var _a;
253
+ var _a, _b;
232
254
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
233
255
  this.removeOutsideClickListener();
256
+ this.removePositionListeners();
257
+ (_b = this.cleanupAutoUpdate) === null || _b === void 0 ? void 0 : _b.call(this);
234
258
  }
235
259
  initializeOptions() {
236
260
  var _a;
@@ -299,7 +323,7 @@ export class CuraSelect {
299
323
  this.internals.setFormValue(this.value);
300
324
  if (this.textInput !== selectedOptionElement.textContent) {
301
325
  this.textInput = selectedOptionElement.textContent;
302
- this.isOpen = false;
326
+ this.closeMenu();
303
327
  this.selected.emit(selectedOptionElement.value);
304
328
  }
305
329
  }
@@ -354,20 +378,85 @@ export class CuraSelect {
354
378
  const icon = { default: this.iconName, success: 'checkCircle', error: 'alertCircle' }[this.status];
355
379
  return h("cura-icon", { class: "feedback-icon", name: icon, iconset: "default", size: this.size === 'large' ? 20 : 16, color: this.getColor('icon'), style: this.styles });
356
380
  }
381
+ openMenu() {
382
+ this.isOpen = true;
383
+ this.isPositioned = false;
384
+ requestAnimationFrame(() => this.setupFloating());
385
+ }
386
+ closeMenu() {
387
+ var _a;
388
+ this.isOpen = false;
389
+ this.isPositioned = false;
390
+ (_a = this.cleanupAutoUpdate) === null || _a === void 0 ? void 0 : _a.call(this);
391
+ }
357
392
  addOutsideClickListener() {
358
393
  document.addEventListener('click', this.handleClickOutside);
359
394
  }
360
395
  removeOutsideClickListener() {
361
396
  document.removeEventListener('click', this.handleClickOutside);
362
397
  }
398
+ addPositionListeners() {
399
+ window.addEventListener('resize', this.handleViewportChange, { passive: true });
400
+ window.addEventListener('scroll', this.handleViewportChange, true);
401
+ }
402
+ removePositionListeners() {
403
+ window.removeEventListener('resize', this.handleViewportChange);
404
+ window.removeEventListener('scroll', this.handleViewportChange, true);
405
+ }
406
+ parseMaxHeight() {
407
+ const numeric = parseFloat(this.maxHeight);
408
+ return Number.isFinite(numeric) ? numeric : 285;
409
+ }
410
+ setupFloating() {
411
+ var _a;
412
+ if (!this.inputWrapper || !this.menuElement)
413
+ return;
414
+ (_a = this.cleanupAutoUpdate) === null || _a === void 0 ? void 0 : _a.call(this);
415
+ this.cleanupAutoUpdate = autoUpdate(this.inputWrapper, this.menuElement, () => {
416
+ this.updateMenuPosition();
417
+ });
418
+ this.updateMenuPosition();
419
+ }
420
+ updateMenuPosition() {
421
+ if (!this.inputWrapper || !this.menuElement)
422
+ return;
423
+ computePosition(this.inputWrapper, this.menuElement, {
424
+ strategy: 'fixed',
425
+ placement: this.floatingPlacement,
426
+ middleware: [
427
+ offset(0),
428
+ flip(),
429
+ shift({ padding: 8 }),
430
+ size({
431
+ apply: ({ rects, availableHeight }) => {
432
+ this.menuStyle = Object.assign(Object.assign({}, this.menuStyle), { width: `${rects.reference.width}px`, maxHeight: `${Math.min(availableHeight, this.parseMaxHeight())}px` });
433
+ },
434
+ }),
435
+ ],
436
+ }).then(({ x, y, placement }) => {
437
+ this.preferredPlacement = placement.startsWith('top') ? 'top' : 'bottom';
438
+ this.menuStyle = Object.assign(Object.assign({}, this.menuStyle), { top: `${y}px`, left: `${x}px` });
439
+ this.isPositioned = true;
440
+ });
441
+ }
363
442
  render() {
364
- return (h(Host, { key: '3aeecef0bff82a4b14c4dee8b222fdf6eb33b2f8', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, h("div", { key: '00dd10ed04cd3bf0e848d9facc44db794e3580cf', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: 'd0c7293af9ba728293f2b531c2cc0354ba6f9fa0', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '2d1e87303eab87280dc8668e390bd5aa696814d9', class: "required" }, "* "))), h("div", { key: 'd0e8464016796145e088f459532a37dfb1852f96', class: {
443
+ return (h(Host, { key: '8a05e5365062b5a2da4f10d7e3ca04f9d3136fba', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, h("div", { key: 'ab28fd73d68ccdc5ad6dd6cc7f79d879eaf25818', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: '5405aa3706b07640fdfdaa681ad22ea9c5fd9997', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '39b37aefbf4e61572607d891eb63c737c332793c', class: "required" }, "* "))), h("div", { key: 'c339ab1ff49699fb0a348a169ba7f545b89bd593', class: {
365
444
  'cura-input-field': true,
366
445
  'open': this.isOpen,
367
- } }, this.renderIcon(), h("input", { key: '8110997e13827855169e58bfee9695a60bf4dbfa', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("button", { key: '7b9b18aebd379b004c08f4bcdb4c72357f29c56c', class: "up-down-button" }, h("cura-icon", { key: '4e1fac2b43502e38db450e319e2283b97ed22fd7', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: '8e89021a023d6ff69a2adb2fe1b9052d1d813d06', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: 'a253ffc9f1f1ee84c9dcbc81dc3a650c5105c11e' })), this.isOpen && (h("div", { key: '938f552bebac510a7345c8e7b46d2ef911c19e12', class: {
446
+ }, ref: el => (this.inputWrapper = el) }, this.renderIcon(), h("input", { key: '5118ad409b6b9c48c856670857d3cae26d28fd46', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("button", { key: '53bddc2b1e56462a9181ce99749d98568f1c5dd9', class: "up-down-button" }, h("cura-icon", { key: '01cb20504d2e0506e7210d33e3ca75978a598eff', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: '550c24779f690ebd16bec881770b200ce06f5390', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: '530f64f99df6328d3a49a449f8f924e57bb03f21' })), this.isOpen && (h("div", { key: '3ee7a6439c98a0837a3f39d27646ed7a55c630b3', class: {
368
447
  menu: true,
369
448
  open: this.isOpen,
370
- }, style: { '--max-height': this.maxHeight } }, h("slot", { key: '2d54c15bb8df7dfe33fac77cee7778c450946cf7', name: "option" }))))));
449
+ [this.preferredPlacement]: true,
450
+ }, ref: el => (this.menuElement = el), style: {
451
+ '--max-height': this.maxHeight,
452
+ top: this.menuStyle.top,
453
+ left: this.menuStyle.left,
454
+ width: this.menuStyle.width,
455
+ maxHeight: this.menuStyle.maxHeight,
456
+ visibility: this.isPositioned ? 'visible' : 'hidden',
457
+ opacity: this.isPositioned ? '1' : '0',
458
+ pointerEvents: this.isPositioned ? 'auto' : 'none',
459
+ } }, h("slot", { key: '84c3bb501966175635102b2ccbfa0cf43d2112f1', name: "option" }))))));
371
460
  }
372
461
  static get is() { return "cura-select"; }
373
462
  static get encapsulation() { return "shadow"; }
@@ -630,8 +719,11 @@ export class CuraSelect {
630
719
  "isHovered": {},
631
720
  "isFocused": {},
632
721
  "isOpen": {},
722
+ "isPositioned": {},
723
+ "menuStyle": {},
633
724
  "options": {},
634
725
  "activeIndex": {},
726
+ "preferredPlacement": {},
635
727
  "textInput": {}
636
728
  };
637
729
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cura-select.js","sourceRoot":"","sources":["../../../../src/components/forms/cura-select/cura-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAgB,eAAe,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQtH,MAAM,OAAO,UAAU;IANvB;QAOE;;;WAGG;QACsB,UAAK,GAAW,EAA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AC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;oBAClI,8DAAa,CACF;gBACZ,IAAI,CAAC,MAAM,IAAI,CACd,4DACE,KAAK,EAAE;wBACL,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,IAAI,CAAC,MAAM;qBAClB,EACD,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,SAAS,EAAE;oBAEzC,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, State, h, Event, EventEmitter, AttachInternals, Watch } from '@stencil/core';\n\n@Component({\n tag: 'cura-select',\n styleUrl: 'cura-select.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CuraSelect {\n /**\n * The label text for the select component.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) label: string = '';\n\n /**\n * Placeholder text for the input field.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) placeholder: string = '';\n\n /**\n * Current value of the select component.\n * Reflects as an attribute in the DOM and is mutable.\n */\n @Prop({ reflect: true, mutable: true }) value: string = '';\n\n /**\n * Display mode of the select component.\n * Can be 'default' or 'transparent'.\n */\n @Prop({ reflect: true }) mode: 'default' | 'transparent' = 'default';\n\n /**\n * Size of the select component.\n * Can be 'small', 'medium', or 'large'.\n */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n @Prop() iconName?: string;\n\n /**\n * Status of the select component.\n * Can be 'success', 'error', or 'default'.\n */\n @Prop({ reflect: true, mutable: true }) status: 'success' | 'error' | 'default' = 'default';\n\n /**\n * Whether the select component is disabled.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /**\n * Whether the select component is required.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Enable / Disable search at options by term.\n * Default: false\n */\n @Prop({ reflect: true }) searchBehavior: boolean = false;\n\n /**\n * The search will be sensitive to accents.\n * Default: true\n */\n @Prop({ reflect: true }) caseSensitive: boolean = true;\n\n /**\n * CSS max-height property for dropdown item.\n * Can also be used by css property --max-height.\n * Default: 285px\n */\n @Prop({ reflect: true }) maxHeight: string = '285px';\n\n /**\n * Internal state: Whether the input is hovered.\n * Default: false\n */\n @State() isHovered: boolean = false;\n\n /**\n * Internal state: Whether the input is focused.\n * Default: false\n */\n @State() isFocused: boolean = false;\n\n /**\n * Internal state: Whether the dropdown menu is open.\n * Default: false\n */\n @State() isOpen: boolean = false;\n\n /**\n * Internal state: Collection of options for the select component.\n */\n @State() options: NodeListOf<HTMLCuraSelectOptionElement>;\n\n @State() activeIndex = -1;\n\n @Watch('activeIndex')\n updateOptionHighlights(newActiveINdex: number) {\n this.options.forEach((option, index) => ((option as any).active = index === newActiveINdex));\n }\n\n @State() textInput = '';\n\n @Watch('textInput')\n /**\n * Filters the options based on the current input value.\n */\n filterOptions(newText) {\n this.searchTermInput.emit(newText);\n\n if (!this.isOpen || !this.searchBehavior) {\n return;\n }\n\n const removeAccents = (str: string) => {\n return str.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n };\n\n let searchTerm = newText;\n if (!this.caseSensitive) {\n searchTerm = removeAccents(searchTerm).toLocaleLowerCase();\n }\n\n this.options.forEach(option => {\n let optionValue = option.textContent || '';\n if (!this.caseSensitive) {\n optionValue = removeAccents(optionValue?.toLowerCase());\n }\n const isVisible = optionValue.includes(searchTerm);\n option.style.display = isVisible ? 'block' : 'none';\n });\n }\n\n /**\n * Reference to the host element of the component.\n */\n @Element() host: HTMLElement;\n\n /**\n * Event emitted when an option is selected.\n */\n @Event() selected: EventEmitter;\n\n /**\n * Event emitted when an option is searched.\n */\n @Event() searchTermInput: EventEmitter;\n\n /**\n * MutationObserver to watch changes in the component.\n */\n mutationObserver: MutationObserver;\n\n /**\n * Styles to be applied to the component.\n */\n styles = {};\n\n /**\n * Theme object containing font and color information.\n */\n theme = window.CuraAPI.theme;\n\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Callback for form association.\n */\n formAssociatedCallback(form: { ariaLabel: string }) {\n form.ariaLabel = this.label;\n }\n\n /**\n * Callback to restore the switch state from the form.\n */\n formStateRestoreCallback(state: { value: string }) {\n this.textInput = state.value;\n this.updateSelectedOption();\n }\n\n /**\n * Callback to reset the switch state when the form is reset.\n */\n formResetCallback() {\n this.textInput = '';\n this.clearSelectedAttributes();\n this.internals.setFormValue('');\n this.internals.setValidity({});\n }\n\n /**\n * Callback to update the switch's disabled state when the form's disabled state changes.\n */\n formDisabledCallback(disabled: boolean) {\n this.disabled = disabled;\n }\n\n /**\n * Lifecycle method called before the component is rendered.\n * Initializes the options for the select component.\n */\n componentWillLoad() {\n this.initializeOptions();\n }\n /**\n * Lifecycle method called after the component is rendered.\n * Initializes select-related functionality.\n */\n componentDidLoad() {\n // this.initializeOptions();\n this.setupMutationObserver();\n this.addOutsideClickListener();\n }\n /**\n * Lifecycle method called when the component is connected to the DOM.\n * Applies styles based on the theme.\n */\n connectedCallback() {\n this.applyStyles();\n }\n /**\n * Lifecycle method called when the component is disconnected from the DOM.\n * Disconnects the MutationObserver if it exists.\n */\n disconnectedCallback() {\n this.mutationObserver?.disconnect();\n this.removeOutsideClickListener();\n }\n\n initializeOptions() {\n this.options = this.host.querySelectorAll<HTMLCuraSelectOptionElement>('cura-select-option');\n this.options.forEach(option => {\n option.setAttribute('size', this.size);\n\n const isSelected = this.value === option.value;\n option.setAttribute('selected', JSON.stringify(isSelected));\n\n if (isSelected) {\n this.value = option.value;\n this.internals.setFormValue(option.value);\n }\n });\n\n this.textInput = Array.from(this.options).find(option => option.value === this.value)?.textContent || this.textInput;\n }\n /**\n * Applies styles to the component based on the theme.\n */\n applyStyles() {\n const { fonts, colors } = this.theme;\n const fontWeights = fonts.getWeights();\n\n this.styles = {\n ...this.styles,\n '--font-weight-medium': fontWeights.medium,\n '--font-weight-bold': fontWeights.bold,\n '--font-weight-regular': fontWeights.regular,\n '--font-color': fonts.getColor(),\n '--font-family': fonts.getFamily(),\n '--font-size': fonts.getSize(),\n };\n\n const colorKeys = [\n 'primary-base',\n 'neutral-purewhite',\n 'neutral-white',\n 'neutral-black',\n 'neutral-medium',\n 'neutral-light',\n 'neutral-base',\n 'neutral-dark',\n 'success-dark',\n 'success-darker',\n 'success-lighter',\n 'error-lighter',\n 'error-dark',\n 'error-darker',\n 'error-base',\n 'info-base',\n ];\n\n colorKeys.forEach(key => {\n this.styles[`--${key}`] = colors.getColor(key);\n });\n }\n /**\n * Sets up a MutationObserver to watch for changes in the component.\n */\n setupMutationObserver() {\n this.mutationObserver = new MutationObserver(this.handleMutations);\n this.mutationObserver.observe(this.host, { attributes: true, subtree: true, attributeFilter: ['selected', 'value'] });\n }\n /**\n * Handles mutations observed by the MutationObserver.\n * Updates the selected option or filters options based on the mutation type.\n */\n handleMutations = (mutations: MutationRecord[]) => {\n mutations.forEach(mutation => {\n if (mutation.type === 'attributes') {\n if (mutation.attributeName === 'selected') this.updateSelectedOption();\n }\n });\n };\n /**\n * Handles the selection of an option.\n */\n onOptiselected = (event: Event) => {\n const selectedOption = event.target as HTMLElement;\n this.clearSelectedAttributes();\n selectedOption.setAttribute('selected', 'true');\n };\n\n @Watch('value')\n handleValueChange(newValue: string) {\n this.clearSelectedAttributes();\n\n const selectedOption = this.host.querySelector(`cura-select-option[value=\"${newValue}\"]`);\n\n if (!selectedOption) {\n return;\n }\n\n selectedOption.setAttribute('selected', 'true');\n }\n\n updateSelectedOption() {\n const selectedOptionElement = this.host.querySelector<HTMLCuraSelectOptionElement>('cura-select-option[selected]');\n\n if (!selectedOptionElement) {\n return;\n }\n\n this.value = selectedOptionElement.value;\n this.internals.setFormValue(this.value);\n\n if (this.textInput !== selectedOptionElement.textContent) {\n this.textInput = selectedOptionElement.textContent;\n this.isOpen = false;\n this.selected.emit(selectedOptionElement.value);\n }\n }\n\n /**\n * Clears the 'selected' attribute from all options.\n */\n clearSelectedAttributes() {\n this.options.forEach(option => option.removeAttribute('selected'));\n }\n\n handleKeyNavigation = (event: KeyboardEvent) => {\n const { code: keyCode } = event;\n\n if (!this.isOpen && keyCode === 'ArrowDown') {\n this.isOpen = true;\n this.activeIndex = 0;\n\n return;\n }\n\n if (keyCode === 'ArrowDown') {\n event.preventDefault();\n this.updateActiveIndex(1);\n }\n\n if (keyCode === 'ArrowUp') {\n event.preventDefault();\n this.updateActiveIndex(-1);\n }\n\n if (keyCode === 'Enter' || keyCode === 'Space') {\n this.options[this.activeIndex]?.click();\n }\n\n if (keyCode === 'Escape') {\n this.isOpen = false;\n }\n };\n\n updateActiveIndex(direction: number) {\n if (this.options.length === 0) return;\n this.activeIndex = (this.activeIndex + direction + this.options.length) % this.options.length;\n }\n\n handleInputChange = (e: Event) => {\n this.textInput = (e.target as HTMLInputElement).value;\n this.isOpen = this.textInput.length > 0;\n this.internals.setFormValue(this.textInput);\n };\n\n getClasses() {\n return {\n wrapper: true,\n label: !!this.label,\n disabled: this.disabled,\n transparent: this.mode === 'transparent',\n [this.size.toLowerCase()]: true,\n [this.status.toLowerCase()]: true,\n };\n }\n\n /**\n * Determines the color based on the item type and component state.\n */\n getColor(item: 'label' | 'text' | 'icon') {\n if (this.disabled) return 'neutral-medium';\n\n const isStatusDefault = this.status === 'default';\n const isHoveredOrFocused = this.isFocused || this.isHovered;\n\n if (item === 'label') {\n if (!isStatusDefault || isHoveredOrFocused) return 'neutral-black';\n return 'neutral-dark';\n }\n\n if (isHoveredOrFocused && isStatusDefault) return 'neutral-black';\n if (this.status === 'success') return 'success-dark';\n if (this.status === 'error') return 'error-dark';\n\n return 'neutral-dark';\n }\n\n /**\n * Renders the icon based on the component's status.\n */\n renderIcon() {\n if (this.status === 'default' && !this.iconName) return null;\n const icon = { default: this.iconName, success: 'checkCircle', error: 'alertCircle' }[this.status];\n return <cura-icon class=\"feedback-icon\" name={icon} iconset=\"default\" size={this.size === 'large' ? 20 : 16} color={this.getColor('icon')} style={this.styles} />;\n }\n\n handleClick = (event: MouseEvent) => {\n if (this.disabled) return event.preventDefault();\n const target = event.target as HTMLElement;\n\n if (target.tagName === 'CURA-SELECT-OPTION') return this.onOptiselected(event);\n this.isOpen = !this.isOpen;\n };\n\n handleClickOutside = (event: MouseEvent) => {\n const clickedOutside = !this.host.contains(event.target as Node);\n if (clickedOutside) {\n this.isOpen = false;\n }\n };\n\n private addOutsideClickListener() {\n document.addEventListener('click', this.handleClickOutside);\n }\n\n private removeOutsideClickListener() {\n document.removeEventListener('click', this.handleClickOutside);\n }\n\n render() {\n return (\n <Host style={this.styles}\n role=\"combobox\"\n aria-label={this.label}\n aria-required={String(this.required)}\n aria-disabled={String(this.disabled)}\n aria-invalid={String(this.status === 'error')}>\n <div class={this.getClasses()} onMouseEnter={() => (this.isHovered = true)} onMouseLeave={() => (this.isHovered = false)} onClick={this.handleClick}>\n {this.label && (\n <cura-label class=\"label\" weight=\"bold\" size={this.size === 'large' ? 'small' : 'xsmall'} color={this.getColor('label')}>\n {this.label} {this.required && <span class=\"required\">* </span>}\n </cura-label>\n )}\n\n <div\n class={{\n 'cura-input-field': true,\n 'open': this.isOpen,\n }}\n >\n {this.renderIcon()}\n <input\n type=\"text\"\n autocomplete=\"off\"\n onFocus={() => (this.isFocused = true)}\n onBlur={() => (this.isFocused = false)}\n onKeyDown={this.handleKeyNavigation}\n aria-required={String(this.required)}\n aria-disabled={String(this.disabled)}\n aria-invalid={String(this.status === 'error')}\n onInput={this.handleInputChange}\n style={this.styles}\n placeholder={this.placeholder}\n disabled={this.disabled}\n required={this.required}\n value={this.textInput}\n readonly={this.searchBehavior ? null : true}\n />\n <button class=\"up-down-button\">\n <cura-icon name={this.isOpen ? 'up' : 'down'} class=\"up-down-icon\" color={this.disabled ? 'neutral-dark' : 'primary-base'} size={16} iconset=\"default\" />\n </button>\n </div>\n <cura-label class=\"helper-text\" size=\"xsmall\" color={this.getColor('text')} weight={this.mode === 'transparent' ? 'bold' : 'regular'}>\n <slot></slot>\n </cura-label>\n {this.isOpen && (\n <div\n class={{\n menu: true,\n open: this.isOpen,\n }}\n style={{ '--max-height': this.maxHeight }}\n >\n <slot name=\"option\"></slot>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cura-select.js","sourceRoot":"","sources":["../../../../src/components/forms/cura-select/cura-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAgB,eAAe,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtH,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AAQrG,MAAM,OAAO,UAAU;IANvB;QAOE;;;WAGG;QACsB,UAAK,GAAW,EAAE,CAAC;QAE5C;;;WAGG;QACsB,gBAAW,GAAW,EAAE,CAAC;QAElD;;;WAGG;QACqC,UAAK,GAAW,EAAE,CAAC;QAE3D;;;WAGG;QACsB,SAAI,GAA8B,SAAS,CAAC;QAErE;;;WAGG;QACsB,SAAI,GAAiC,QAAQ,CAAC;QAIvE;;;WAGG;QAC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,IAAI,CAAC,SAAS;wBAC9B,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG;wBACvB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;wBACzB,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK;wBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;wBACnC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;wBACpD,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;wBACtC,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;qBACnD;oBAED,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, State, h, Event, EventEmitter, AttachInternals, Watch } from '@stencil/core';\nimport { autoUpdate, computePosition, flip, offset, shift, size, Placement } from '@floating-ui/dom';\n\n@Component({\n tag: 'cura-select',\n styleUrl: 'cura-select.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CuraSelect {\n /**\n * The label text for the select component.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) label: string = '';\n\n /**\n * Placeholder text for the input field.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) placeholder: string = '';\n\n /**\n * Current value of the select component.\n * Reflects as an attribute in the DOM and is mutable.\n */\n @Prop({ reflect: true, mutable: true }) value: string = '';\n\n /**\n * Display mode of the select component.\n * Can be 'default' or 'transparent'.\n */\n @Prop({ reflect: true }) mode: 'default' | 'transparent' = 'default';\n\n /**\n * Size of the select component.\n * Can be 'small', 'medium', or 'large'.\n */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n @Prop() iconName?: string;\n\n /**\n * Status of the select component.\n * Can be 'success', 'error', or 'default'.\n */\n @Prop({ reflect: true, mutable: true }) status: 'success' | 'error' | 'default' = 'default';\n\n /**\n * Whether the select component is disabled.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /**\n * Whether the select component is required.\n * Reflects as an attribute in the DOM.\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Enable / Disable search at options by term.\n * Default: false\n */\n @Prop({ reflect: true }) searchBehavior: boolean = false;\n\n /**\n * The search will be sensitive to accents.\n * Default: true\n */\n @Prop({ reflect: true }) caseSensitive: boolean = true;\n\n /**\n * CSS max-height property for dropdown item.\n * Can also be used by css property --max-height.\n * Default: 285px\n */\n @Prop({ reflect: true }) maxHeight: string = '285px';\n\n /**\n * Internal state: Whether the input is hovered.\n * Default: false\n */\n @State() isHovered: boolean = false;\n\n /**\n * Internal state: Whether the input is focused.\n * Default: false\n */\n @State() isFocused: boolean = false;\n\n /**\n * Internal state: Whether the dropdown menu is open.\n * Default: false\n */\n @State() isOpen: boolean = false;\n @State() isPositioned: boolean = false;\n @State() menuStyle: { top: string; left: string; width: string; maxHeight: string } = {\n top: '0px',\n left: '0px',\n width: '0px',\n maxHeight: this.maxHeight,\n };\n\n /**\n * Internal state: Collection of options for the select component.\n */\n @State() options: NodeListOf<HTMLCuraSelectOptionElement>;\n\n @State() activeIndex = -1;\n @State() preferredPlacement: 'top' | 'bottom' = 'bottom';\n\n @Watch('activeIndex')\n updateOptionHighlights(newActiveINdex: number) {\n this.options.forEach((option, index) => ((option as any).active = index === newActiveINdex));\n }\n\n @State() textInput = '';\n\n inputWrapper?: HTMLDivElement;\n menuElement?: HTMLDivElement;\n cleanupAutoUpdate?: () => void;\n floatingPlacement: Placement = 'bottom-start';\n\n @Watch('textInput')\n /**\n * Filters the options based on the current input value.\n */\n filterOptions(newText) {\n this.searchTermInput.emit(newText);\n\n if (!this.isOpen || !this.searchBehavior) {\n return;\n }\n\n const removeAccents = (str: string) => {\n return str.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n };\n\n let searchTerm = newText;\n if (!this.caseSensitive) {\n searchTerm = removeAccents(searchTerm).toLocaleLowerCase();\n }\n\n this.options.forEach(option => {\n let optionValue = option.textContent || '';\n if (!this.caseSensitive) {\n optionValue = removeAccents(optionValue?.toLowerCase());\n }\n const isVisible = optionValue.includes(searchTerm);\n option.style.display = isVisible ? 'block' : 'none';\n });\n }\n\n /**\n * Reference to the host element of the component.\n */\n @Element() host: HTMLElement;\n\n /**\n * Event emitted when an option is selected.\n */\n @Event() selected: EventEmitter;\n\n /**\n * Event emitted when an option is searched.\n */\n @Event() searchTermInput: EventEmitter;\n\n /**\n * MutationObserver to watch changes in the component.\n */\n mutationObserver: MutationObserver;\n\n /**\n * Styles to be applied to the component.\n */\n styles = {};\n\n /**\n * Theme object containing font and color information.\n */\n theme = window.CuraAPI.theme;\n\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Callback for form association.\n */\n formAssociatedCallback(form: { ariaLabel: string }) {\n form.ariaLabel = this.label;\n }\n\n /**\n * Callback to restore the switch state from the form.\n */\n formStateRestoreCallback(state: { value: string }) {\n this.textInput = state.value;\n this.updateSelectedOption();\n }\n\n /**\n * Callback to reset the switch state when the form is reset.\n */\n formResetCallback() {\n this.textInput = '';\n this.clearSelectedAttributes();\n this.internals.setFormValue('');\n this.internals.setValidity({});\n }\n\n /**\n * Callback to update the switch's disabled state when the form's disabled state changes.\n */\n formDisabledCallback(disabled: boolean) {\n this.disabled = disabled;\n }\n\n /**\n * Lifecycle method called before the component is rendered.\n * Initializes the options for the select component.\n */\n componentWillLoad() {\n this.initializeOptions();\n }\n /**\n * Lifecycle method called after the component is rendered.\n * Initializes select-related functionality.\n */\n componentDidLoad() {\n // this.initializeOptions();\n this.setupMutationObserver();\n this.addOutsideClickListener();\n this.addPositionListeners();\n }\n /**\n * Lifecycle method called when the component is connected to the DOM.\n * Applies styles based on the theme.\n */\n connectedCallback() {\n this.applyStyles();\n }\n /**\n * Lifecycle method called when the component is disconnected from the DOM.\n * Disconnects the MutationObserver if it exists.\n */\n disconnectedCallback() {\n this.mutationObserver?.disconnect();\n this.removeOutsideClickListener();\n this.removePositionListeners();\n this.cleanupAutoUpdate?.();\n }\n\n initializeOptions() {\n this.options = this.host.querySelectorAll<HTMLCuraSelectOptionElement>('cura-select-option');\n this.options.forEach(option => {\n option.setAttribute('size', this.size);\n\n const isSelected = this.value === option.value;\n option.setAttribute('selected', JSON.stringify(isSelected));\n\n if (isSelected) {\n this.value = option.value;\n this.internals.setFormValue(option.value);\n }\n });\n\n this.textInput = Array.from(this.options).find(option => option.value === this.value)?.textContent || this.textInput;\n }\n /**\n * Applies styles to the component based on the theme.\n */\n applyStyles() {\n const { fonts, colors } = this.theme;\n const fontWeights = fonts.getWeights();\n\n this.styles = {\n ...this.styles,\n '--font-weight-medium': fontWeights.medium,\n '--font-weight-bold': fontWeights.bold,\n '--font-weight-regular': fontWeights.regular,\n '--font-color': fonts.getColor(),\n '--font-family': fonts.getFamily(),\n '--font-size': fonts.getSize(),\n };\n\n const colorKeys = [\n 'primary-base',\n 'neutral-purewhite',\n 'neutral-white',\n 'neutral-black',\n 'neutral-medium',\n 'neutral-light',\n 'neutral-base',\n 'neutral-dark',\n 'success-dark',\n 'success-darker',\n 'success-lighter',\n 'error-lighter',\n 'error-dark',\n 'error-darker',\n 'error-base',\n 'info-base',\n ];\n\n colorKeys.forEach(key => {\n this.styles[`--${key}`] = colors.getColor(key);\n });\n }\n /**\n * Sets up a MutationObserver to watch for changes in the component.\n */\n setupMutationObserver() {\n this.mutationObserver = new MutationObserver(this.handleMutations);\n this.mutationObserver.observe(this.host, { attributes: true, subtree: true, attributeFilter: ['selected', 'value'] });\n }\n /**\n * Handles mutations observed by the MutationObserver.\n * Updates the selected option or filters options based on the mutation type.\n */\n handleMutations = (mutations: MutationRecord[]) => {\n mutations.forEach(mutation => {\n if (mutation.type === 'attributes') {\n if (mutation.attributeName === 'selected') this.updateSelectedOption();\n }\n });\n };\n /**\n * Handles the selection of an option.\n */\n onOptiselected = (event: Event) => {\n const selectedOption = event.target as HTMLElement;\n this.clearSelectedAttributes();\n selectedOption.setAttribute('selected', 'true');\n };\n\n @Watch('value')\n handleValueChange(newValue: string) {\n this.clearSelectedAttributes();\n\n const selectedOption = this.host.querySelector(`cura-select-option[value=\"${newValue}\"]`);\n\n if (!selectedOption) {\n return;\n }\n\n selectedOption.setAttribute('selected', 'true');\n }\n\n updateSelectedOption() {\n const selectedOptionElement = this.host.querySelector<HTMLCuraSelectOptionElement>('cura-select-option[selected]');\n\n if (!selectedOptionElement) {\n return;\n }\n\n this.value = selectedOptionElement.value;\n this.internals.setFormValue(this.value);\n\n if (this.textInput !== selectedOptionElement.textContent) {\n this.textInput = selectedOptionElement.textContent;\n this.closeMenu();\n this.selected.emit(selectedOptionElement.value);\n }\n }\n\n /**\n * Clears the 'selected' attribute from all options.\n */\n clearSelectedAttributes() {\n this.options.forEach(option => option.removeAttribute('selected'));\n }\n\n handleKeyNavigation = (event: KeyboardEvent) => {\n const { code: keyCode } = event;\n\n if (!this.isOpen && keyCode === 'ArrowDown') {\n this.openMenu();\n this.activeIndex = 0;\n\n return;\n }\n\n if (keyCode === 'ArrowDown') {\n event.preventDefault();\n this.updateActiveIndex(1);\n }\n\n if (keyCode === 'ArrowUp') {\n event.preventDefault();\n this.updateActiveIndex(-1);\n }\n\n if (keyCode === 'Enter' || keyCode === 'Space') {\n this.options[this.activeIndex]?.click();\n }\n\n if (keyCode === 'Escape') {\n this.closeMenu();\n }\n };\n\n updateActiveIndex(direction: number) {\n if (this.options.length === 0) return;\n this.activeIndex = (this.activeIndex + direction + this.options.length) % this.options.length;\n }\n\n handleInputChange = (e: Event) => {\n this.textInput = (e.target as HTMLInputElement).value;\n if (this.searchBehavior) {\n if (this.textInput.length > 0 && !this.isOpen) this.openMenu();\n if (this.textInput.length === 0 && this.isOpen) this.closeMenu();\n }\n this.internals.setFormValue(this.textInput);\n };\n\n getClasses() {\n return {\n wrapper: true,\n label: !!this.label,\n disabled: this.disabled,\n transparent: this.mode === 'transparent',\n [this.size.toLowerCase()]: true,\n [this.status.toLowerCase()]: true,\n };\n }\n\n /**\n * Determines the color based on the item type and component state.\n */\n getColor(item: 'label' | 'text' | 'icon') {\n if (this.disabled) return 'neutral-medium';\n\n const isStatusDefault = this.status === 'default';\n const isHoveredOrFocused = this.isFocused || this.isHovered;\n\n if (item === 'label') {\n if (!isStatusDefault || isHoveredOrFocused) return 'neutral-black';\n return 'neutral-dark';\n }\n\n if (isHoveredOrFocused && isStatusDefault) return 'neutral-black';\n if (this.status === 'success') return 'success-dark';\n if (this.status === 'error') return 'error-dark';\n\n return 'neutral-dark';\n }\n\n /**\n * Renders the icon based on the component's status.\n */\n renderIcon() {\n if (this.status === 'default' && !this.iconName) return null;\n const icon = { default: this.iconName, success: 'checkCircle', error: 'alertCircle' }[this.status];\n return <cura-icon class=\"feedback-icon\" name={icon} iconset=\"default\" size={this.size === 'large' ? 20 : 16} color={this.getColor('icon')} style={this.styles} />;\n }\n\n private openMenu() {\n this.isOpen = true;\n this.isPositioned = false;\n requestAnimationFrame(() => this.setupFloating());\n }\n\n private closeMenu() {\n this.isOpen = false;\n this.isPositioned = false;\n this.cleanupAutoUpdate?.();\n }\n\n handleClick = (event: MouseEvent) => {\n if (this.disabled) return event.preventDefault();\n const target = event.target as HTMLElement;\n\n if (target.tagName === 'CURA-SELECT-OPTION') return this.onOptiselected(event);\n this.isOpen ? this.closeMenu() : this.openMenu();\n };\n\n handleClickOutside = (event: MouseEvent) => {\n const path = (event.composedPath && event.composedPath()) || [];\n const clickedOutside = !path.includes(this.host) && !(this.menuElement && path.includes(this.menuElement));\n if (clickedOutside) {\n this.closeMenu();\n }\n };\n\n private addOutsideClickListener() {\n document.addEventListener('click', this.handleClickOutside);\n }\n\n private removeOutsideClickListener() {\n document.removeEventListener('click', this.handleClickOutside);\n }\n\n private addPositionListeners() {\n window.addEventListener('resize', this.handleViewportChange, { passive: true });\n window.addEventListener('scroll', this.handleViewportChange, true);\n }\n\n private removePositionListeners() {\n window.removeEventListener('resize', this.handleViewportChange);\n window.removeEventListener('scroll', this.handleViewportChange, true);\n }\n\n private handleViewportChange = () => {\n if (!this.isOpen) return;\n this.updateMenuPosition();\n };\n\n private parseMaxHeight(): number {\n const numeric = parseFloat(this.maxHeight);\n return Number.isFinite(numeric) ? numeric : 285;\n }\n\n private setupFloating() {\n if (!this.inputWrapper || !this.menuElement) return;\n this.cleanupAutoUpdate?.();\n\n this.cleanupAutoUpdate = autoUpdate(this.inputWrapper, this.menuElement, () => {\n this.updateMenuPosition();\n });\n\n this.updateMenuPosition();\n }\n\n private updateMenuPosition() {\n if (!this.inputWrapper || !this.menuElement) return;\n\n computePosition(this.inputWrapper, this.menuElement, {\n strategy: 'fixed',\n placement: this.floatingPlacement,\n middleware: [\n offset(0),\n flip(),\n shift({ padding: 8 }),\n size({\n apply: ({ rects, availableHeight }) => {\n this.menuStyle = {\n ...this.menuStyle,\n width: `${rects.reference.width}px`,\n maxHeight: `${Math.min(availableHeight, this.parseMaxHeight())}px`,\n };\n },\n }),\n ],\n }).then(({ x, y, placement }) => {\n this.preferredPlacement = placement.startsWith('top') ? 'top' : 'bottom';\n this.menuStyle = {\n ...this.menuStyle,\n top: `${y}px`,\n left: `${x}px`,\n };\n this.isPositioned = true;\n });\n }\n\n render() {\n return (\n <Host style={this.styles}\n role=\"combobox\"\n aria-label={this.label}\n aria-required={String(this.required)}\n aria-disabled={String(this.disabled)}\n aria-invalid={String(this.status === 'error')}>\n <div class={this.getClasses()} onMouseEnter={() => (this.isHovered = true)} onMouseLeave={() => (this.isHovered = false)} onClick={this.handleClick}>\n {this.label && (\n <cura-label class=\"label\" weight=\"bold\" size={this.size === 'large' ? 'small' : 'xsmall'} color={this.getColor('label')}>\n {this.label} {this.required && <span class=\"required\">* </span>}\n </cura-label>\n )}\n\n <div\n class={{\n 'cura-input-field': true,\n 'open': this.isOpen,\n }}\n ref={el => (this.inputWrapper = el)}\n >\n {this.renderIcon()}\n <input\n type=\"text\"\n autocomplete=\"off\"\n onFocus={() => (this.isFocused = true)}\n onBlur={() => (this.isFocused = false)}\n onKeyDown={this.handleKeyNavigation}\n aria-required={String(this.required)}\n aria-disabled={String(this.disabled)}\n aria-invalid={String(this.status === 'error')}\n onInput={this.handleInputChange}\n style={this.styles}\n placeholder={this.placeholder}\n disabled={this.disabled}\n required={this.required}\n value={this.textInput}\n readonly={this.searchBehavior ? null : true}\n />\n <button class=\"up-down-button\">\n <cura-icon name={this.isOpen ? 'up' : 'down'} class=\"up-down-icon\" color={this.disabled ? 'neutral-dark' : 'primary-base'} size={16} iconset=\"default\" />\n </button>\n </div>\n <cura-label class=\"helper-text\" size=\"xsmall\" color={this.getColor('text')} weight={this.mode === 'transparent' ? 'bold' : 'regular'}>\n <slot></slot>\n </cura-label>\n {this.isOpen && (\n <div\n class={{\n menu: true,\n open: this.isOpen,\n [this.preferredPlacement]: true,\n }}\n ref={el => (this.menuElement = el)}\n style={{\n '--max-height': this.maxHeight,\n top: this.menuStyle.top,\n left: this.menuStyle.left,\n width: this.menuStyle.width,\n maxHeight: this.menuStyle.maxHeight,\n visibility: this.isPositioned ? 'visible' : 'hidden',\n opacity: this.isPositioned ? '1' : '0',\n pointerEvents: this.isPositioned ? 'auto' : 'none',\n }}\n >\n <slot name=\"option\"></slot>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -10,6 +10,7 @@
10
10
  align-items: center;
11
11
  box-sizing: border-box;
12
12
  background: var(--neutral-purewhite);
13
+ border-bottom: 1px solid transparent;
13
14
  }
14
15
  .item.selected {
15
16
  background-color: var(--primary-lighter-50);
@@ -17,13 +18,27 @@
17
18
  }
18
19
  .item:hover:not(.selected) {
19
20
  background: var(--neutral-white);
21
+ }
22
+ .item:hover:not(.selected) {
20
23
  border-bottom: 1px solid var(--neutral-light);
21
24
  }
22
25
  .item.active {
23
26
  background: var(--neutral-white) !important;
27
+ }
28
+ .item.active {
24
29
  border-bottom: 1px solid var(--neutral-light);
25
30
  }
26
31
  .item.selected.active {
27
32
  background-color: var(--primary-lighter-50) !important;
28
33
  box-shadow: none;
34
+ }
35
+
36
+ :host(:last-of-type) .item {
37
+ border-bottom: none;
38
+ }
39
+
40
+ :host(:last-of-type) .item:hover,
41
+ :host(:last-of-type) .item.active,
42
+ :host(:last-of-type) .item.selected {
43
+ border-bottom: none;
29
44
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -27,10 +27,11 @@ const CuraAlert$1 = /*@__PURE__*/ proxyCustomElement(class CuraAlert extends H {
27
27
  { name: '--color-light', theme: `${this.type}-light` },
28
28
  { name: '--color-base', theme: `${this.type}-base` },
29
29
  ];
30
+ const updatedStyles = Object.assign({}, this.styles);
30
31
  colors.forEach(color => {
31
- this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.theme);
32
+ updatedStyles[color.name] = window.CuraAPI.theme.colors.getColor(color.theme);
32
33
  });
33
- this.styles = Object.assign({}, this.styles);
34
+ this.styles = updatedStyles;
34
35
  }
35
36
  connectedCallback() {
36
37
  this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
@@ -52,7 +53,7 @@ const CuraAlert$1 = /*@__PURE__*/ proxyCustomElement(class CuraAlert extends H {
52
53
  return this.icon ? this.icon : iconMapping[this.type];
53
54
  }
54
55
  render() {
55
- return (h(Host, { key: '2bb12a2c1f982aa328da2ba9fd80434459651735', role: "alert", "aria-live": "polite", "aria-atomic": "true", "aria-label": this.label }, h("div", { key: 'c3103080439a2d15dc530fd4d3e1945937da302a', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: '0465d437885134eefdc41cdfe74a43a83f9e5265', name: this.getNameIcon(), class: "icon-left", size: 16, color: `${this.type}-dark` }), h("div", { key: '15c7545a76db2032e6ee20b8f27b90199cc95020', class: "content" }, this.label ? (h("cura-heading", { class: "title", size: "xsmall", color: "neutral-black", weight: "bold", "margin-block": "1px 0" }, this.label)) : '', h("cura-paragraph", { key: 'af74fc113ffdca4cf4ce4f52133ab1ecfb94f002', class: "text", color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: '5979eac43e2729097ec8d47c1f1b58a5834e4b02' })), h("slot", { key: 'c74a0bf68cb024a04c36392c6c3a2303bdd8e842', name: "actions" })), this.closeable ?
56
+ return (h(Host, { key: 'f64ddb202b9436f9bebd4316979ffc1ad8d2c711', role: "alert", "aria-live": "polite", "aria-atomic": "true", "aria-label": this.label }, h("div", { key: 'c1320f2a8007169776bf1d8b59301c9e070d97f3', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: '18b352ca24b9904624e10beadc8ef2a214ef3ee4', name: this.getNameIcon(), class: "icon-left", size: 16, color: `${this.type}-dark` }), h("div", { key: '4f025525470856227ff65b36c27c8dcffc73be99', class: "content" }, this.label ? (h("cura-heading", { class: "title", size: "xsmall", color: "neutral-black", weight: "bold", "margin-block": "1px 0" }, this.label)) : '', h("cura-paragraph", { key: 'b1dcbf2fc75c387a8e30b255b94a3439d6443548', class: "text", color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: 'd4473ba49462f93fe5b4c5b2729ca018c7cc322c' })), h("slot", { key: '2d3d5e549a600424c13ae2642845af40fb3c0894', name: "actions" })), this.closeable ?
56
57
  (h("cura-icon", { name: "close", size: 16, color: "error-dark", class: "icon-right", onClick: this.handleClose }))
57
58
  : '')));
58
59
  }