@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
@@ -559,6 +559,78 @@ const CuraButtonTransparent = class {
559
559
  };
560
560
  CuraButtonTransparent.style = curaButtonTransparentCss;
561
561
 
562
+ const curaCardCss = ":host{display:block;box-sizing:border-box;font-size:var(--font-size);font-family:var(--font-family)}:host ::slotted(*){display:flex;align-items:center;justify-content:center;font-size:var(--font-size);font-family:var(--font-family)}a{display:block;text-decoration:none !important;color:inherit}.solid{background-color:var(--neutral-purewhite);border:2px solid var(--neutral-base);border-radius:12px;overflow:hidden;padding:0px;box-shadow:none}.solid ::slotted(*){border-radius:0}.solid.hasPadding{padding:20px}.solid.hasPadding ::slotted(*){border-radius:4px !important}.solid.hasShadow{border:2px solid var(--neutral-base);box-shadow:0px 1px 4px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}.solid.cardLink{background-color:var(--neutral-purewhite);border:2px solid var(--primary-base);border-radius:12px;padding:0px;box-shadow:none;cursor:pointer}.solid.cardLink ::slotted(*){border-radius:0px}.solid.cardLink:hover{border:2px solid var(--primary-lighter) !important}.solid.cardLink.hasPadding{padding:20px}.solid.cardLink.hasPadding ::slotted(*){border-radius:4px !important}.solid.cardLink.hasPadding:hover{border:2px solid var(--primary-lighter) !important}.solid.cardLink.hasShadow{border:2px solid var(--primary-base);box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}.solid.cardLink:not(.hasPadding).hasShadow ::slotted(*){border-radius:12px !important}.solid.cardLink.dark{background-color:var(--neutral-purewhite);border:2px solid var(--neutral-purewhite)}.solid.cardLink.dark:hover{border:2px solid var(--primary-lighter)}.transparent{background-color:transparent;border:0;border-radius:12px;padding:0px;overflow:hidden}.transparent ::slotted(*){border-radius:12px}.transparent.hasPadding{padding:20px}.transparent.hasPadding ::slotted(*){border-radius:4px}.transparent.cardLink{background-color:transparent;border:2px solid var(--primary-base);overflow:hidden;border-radius:12px;padding:0px;box-shadow:none}.transparent.cardLink ::slotted(*){border-radius:0px !important}.transparent.cardLink:hover{border:2px solid var(--primary-lighter) !important}.transparent.cardLink.light{background-color:var(--neutral-purewhite);border:2px solid var(--primary-base)}.transparent.cardLink.light ::slotted(*){border-radius:12px !important}.transparent.cardLink.light:hover{border-color:var(--primary-lighter) !important}.transparent.cardLink.dark{background-color:transparent;border:2px solid var(--neutral-purewhite)}.transparent.cardLink.dark:hover{border:0}.transparent.cardLink.hasPadding{padding:20px}.transparent.cardLink.hasPadding ::slotted(*){border-radius:4px !important}";
563
+
564
+ const CuraCard = class {
565
+ constructor(hostRef) {
566
+ index.registerInstance(this, hostRef);
567
+ /**
568
+ * Determines whether the card should have padding.
569
+ * @type {boolean}
570
+ * @default false
571
+ */
572
+ this.hasPadding = true;
573
+ /**
574
+ * Determines whether the card should have a shadow effect.
575
+ * @type {boolean}
576
+ * @default false
577
+ */
578
+ this.hasShadow = false;
579
+ /**
580
+ * Sets the type of the card background.
581
+ * - 'solid': A solid background.
582
+ * - 'transparent': A transparent background.
583
+ * @type {'solid' | 'transparent'}
584
+ * @default 'solid'
585
+ */
586
+ this.type = 'solid';
587
+ /**
588
+ * Sets the color mode of the card.
589
+ * - 'light': Light mode for the card.
590
+ * - 'dark': Dark mode for the card.
591
+ * @type {'light' | 'dark'}
592
+ * @default 'light'
593
+ */
594
+ this.colorMode = 'light';
595
+ /**
596
+ * The target attribute for the link.
597
+ * Applicable only if `href` is set.
598
+ * @type {string}
599
+ * @default '_self'
600
+ */
601
+ this.target = '_self';
602
+ this.styles = {};
603
+ }
604
+ connectedCallback() {
605
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
606
+ this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
607
+ this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
608
+ this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
609
+ this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
610
+ this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
611
+ this.styles['--neutral-black'] = window.CuraAPI.theme.colors.getColor(`neutral-black`);
612
+ this.styles['--neutral-black-shadow'] = window.CuraAPI.theme.colors.getColor(`neutral-black`, 0.16);
613
+ this.styles['--primary-lighter'] = window.CuraAPI.theme.colors.getColor(`primary-lighter`);
614
+ this.styles['--primary-base'] = window.CuraAPI.theme.colors.getColor(`primary-base`);
615
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
616
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
617
+ this.styles['--font-weight-medium'] = this.weights.medium;
618
+ }
619
+ getClasses() {
620
+ const classes = {};
621
+ classes[this.type] = true;
622
+ classes[`cardLink`] = this.href;
623
+ classes[this.colorMode] = true;
624
+ classes[`hasPadding`] = this.hasPadding;
625
+ classes[`hasShadow`] = this.hasShadow;
626
+ return classes;
627
+ }
628
+ render() {
629
+ return (index.h(index.Host, { key: '9478ce754c108db722dbc5bcbb00a0884b6c6f38', role: this.href ? 'link' : 'div' }, this.href ? (index.h("a", { class: this.getClasses(), target: this.target, style: this.styles, href: this.href }, index.h("slot", null))) : (index.h("div", { class: this.getClasses(), style: this.styles }, index.h("slot", null)))));
630
+ }
631
+ };
632
+ CuraCard.style = curaCardCss;
633
+
562
634
  function checkMobile() {
563
635
  return (window === null || window === void 0 ? void 0 : window.innerWidth) < curaThemeModule.Static.breakpoints.medium.min;
564
636
  }
@@ -650,7 +722,7 @@ class FixedElementScrollBehavior {
650
722
  }
651
723
  }
652
724
 
653
- const curaDropdownSearchCss = ":host{display:block;box-sizing:border-box;position:relative}:host .component-controls{display:flex;align-items:center;justify-content:center;gap:calc(var(--cura-spacing-base) * 1px)}:host .component-controls #button-back{padding:0 0 0 calc(var(--cura-spacing-base) * 3px);width:max-content}:host .component-container{box-sizing:border-box;width:100%;position:relative;display:grid;grid-template-columns:1fr;grid-template-rows:min-content 1fr}:host .component-container.zoom{position:fixed;top:0;left:0;width:100vw;background:var(--purewhite);height:var(--height);z-index:9999;overscroll-behavior:contain}:host .component-container.zoom .component-controls{border-bottom:2px solid var(--primary);padding:calc(var(--cura-spacing-base) * 3px) 0}:host .component-container.zoom.error .component-controls{border-bottom:2px solid var(--error-dark);background-color:var(--error-lighter)}:host .component-container .dropdown-container{box-sizing:border-box;width:100%;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;padding:calc(var(--cura-spacing-base) * 3px);overscroll-behavior:contain}:host .component-container:not(.zoom) .dropdown-container{box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16));position:absolute;bottom:0;left:0;transform:translateY(100%);max-height:var(--max-height);background-color:var(--purewhite);border-radius:0px 0px calc(var(--cura-spacing-base) * 1px) calc(var(--cura-spacing-base) * 1px);border-bottom:2px solid var(--neutral-light);border-left:2px solid var(--neutral-light);border-right:2px solid var(--neutral-light);display:none;z-index:9997}:host .component-container:not(.zoom).dropdown-visible ::part(cura-input-field){border-radius:4px 4px 0px 0px}:host .component-container:not(.zoom).dropdown-visible ::part(cura-input-text-helper){height:0px;overflow:hidden;margin-top:0px}:host .component-container:not(.zoom).dropdown-visible .dropdown-container{display:block}";
725
+ const curaDropdownSearchCss = ":host{display:block;box-sizing:border-box;position:relative}:host .component-controls{display:flex;align-items:center;justify-content:center;gap:calc(var(--cura-spacing-base) * 1px)}:host .component-controls #button-back{padding:0 0 0 calc(var(--cura-spacing-base) * 3px);width:max-content}:host .component-container{box-sizing:border-box;width:100%;position:relative;display:grid;grid-template-columns:1fr;grid-template-rows:min-content 1fr}:host .component-container.zoom{position:fixed;top:var(--top-offset, 0);left:0;width:100vw;background:var(--purewhite);height:var(--height);z-index:9999;overscroll-behavior:contain}:host .component-container.zoom .component-controls{border-bottom:2px solid var(--primary);padding:calc(var(--cura-spacing-base) * 3px) 0}:host .component-container.zoom.error .component-controls{border-bottom:2px solid var(--error-dark);background-color:var(--error-lighter)}:host .component-container .dropdown-container{box-sizing:border-box;width:100%;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;padding:calc(var(--cura-spacing-base) * 3px);overscroll-behavior:contain}:host .component-container:not(.zoom) .dropdown-container{box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16));position:absolute;bottom:0;left:0;transform:translateY(100%);max-height:var(--max-height);background-color:var(--purewhite);border-radius:0px 0px calc(var(--cura-spacing-base) * 1px) calc(var(--cura-spacing-base) * 1px);border-bottom:2px solid var(--neutral-light);border-left:2px solid var(--neutral-light);border-right:2px solid var(--neutral-light);display:none;z-index:9997}:host .component-container:not(.zoom).dropdown-visible ::part(cura-input-field){border-radius:4px 4px 0px 0px}:host .component-container:not(.zoom).dropdown-visible ::part(cura-input-text-helper){height:0px;overflow:hidden;margin-top:0px}:host .component-container:not(.zoom).dropdown-visible .dropdown-container{display:block}";
654
726
 
655
727
  const CuraDropdownSearch = class {
656
728
  constructor(hostRef) {
@@ -726,6 +798,13 @@ const CuraDropdownSearch = class {
726
798
  this.setZoomHeight();
727
799
  }, this.resizeTimeoutMs);
728
800
  };
801
+ this.handleVisualViewportChange = () => {
802
+ if (!this.zoomState)
803
+ return;
804
+ if (this.viewportTimeout)
805
+ clearTimeout(this.viewportTimeout);
806
+ this.viewportTimeout = setTimeout(() => this.setZoomHeight(), this.resizeTimeoutMs);
807
+ };
729
808
  this.handleFocus = () => {
730
809
  if (this.focusTimeout)
731
810
  clearTimeout(this.focusTimeout);
@@ -824,6 +903,10 @@ const CuraDropdownSearch = class {
824
903
  this.styles['--font-weight-medium'] = this.weights.medium;
825
904
  window === null || window === void 0 ? void 0 : window.addEventListener('resize', this.handleWindowResize);
826
905
  window === null || window === void 0 ? void 0 : window.addEventListener('orientationchange', this.handleWindowResize);
906
+ if (window === null || window === void 0 ? void 0 : window.visualViewport) {
907
+ window.visualViewport.addEventListener('resize', this.handleVisualViewportChange);
908
+ window.visualViewport.addEventListener('scroll', this.handleVisualViewportChange);
909
+ }
827
910
  this.isMobile = checkMobile();
828
911
  }
829
912
  componentDidLoad() {
@@ -840,6 +923,10 @@ const CuraDropdownSearch = class {
840
923
  removeAllListeners() {
841
924
  window === null || window === void 0 ? void 0 : window.removeEventListener('resize', this.handleWindowResize);
842
925
  window === null || window === void 0 ? void 0 : window.removeEventListener('orientationchange', this.handleWindowResize);
926
+ if (window === null || window === void 0 ? void 0 : window.visualViewport) {
927
+ window.visualViewport.removeEventListener('resize', this.handleVisualViewportChange);
928
+ window.visualViewport.removeEventListener('scroll', this.handleVisualViewportChange);
929
+ }
843
930
  this.host.removeEventListener('actionclick', this.handleOptionActionClick);
844
931
  this.host.removeEventListener('selectoption', this.handleSelectOption);
845
932
  }
@@ -885,7 +972,9 @@ const CuraDropdownSearch = class {
885
972
  if (this.valueTimeout)
886
973
  clearTimeout(this.valueTimeout);
887
974
  this.valueTimeout = setTimeout(() => {
888
- this.termchange.emit(this.value === '' || this.value.length < this.searchminchars ? '' : this.value);
975
+ var _a;
976
+ const value = (_a = this.value) !== null && _a !== void 0 ? _a : '';
977
+ this.termchange.emit(value === '' || value.length < this.searchminchars ? '' : value);
889
978
  }, this.searchdelay || 300);
890
979
  }
891
980
  }
@@ -944,9 +1033,14 @@ const CuraDropdownSearch = class {
944
1033
  setTimeout(() => { this.zoomState = false; }, 300);
945
1034
  }
946
1035
  setZoomHeight() {
947
- var _a;
948
- const h = window ? `${((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height) || window.innerHeight}px` : '100vh';
949
- this.styles = Object.assign(Object.assign({}, this.styles), { '--height': h });
1036
+ if (window === null || window === void 0 ? void 0 : window.visualViewport) {
1037
+ const height = `${window.visualViewport.height}px`;
1038
+ const topOffset = `${window.visualViewport.offsetTop}px`;
1039
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--height': height, '--top-offset': topOffset });
1040
+ return;
1041
+ }
1042
+ const h = window ? `${window.innerHeight}px` : '100vh';
1043
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--height': h, '--top-offset': '0px' });
950
1044
  }
951
1045
  getClasses() {
952
1046
  return {
@@ -963,7 +1057,7 @@ const CuraDropdownSearch = class {
963
1057
  };
964
1058
  }
965
1059
  render() {
966
- return (index.h(index.Host, { key: '06350dc474b86ca27d1f78559fc6296fbc3aa73e', style: this.getHostCSSProperties(), role: "search", "aria-label": this.label, "aria-required": this.required, "aria-disabled": this.disabled, "aria-expanded": this.zoomState }, index.h("div", { key: 'e5cc22f978f014b4fb5bd9d33c73154d19991ef3', class: this.getClasses(), style: this.styles }, index.h("div", { key: '2f0ccd3de2ab3dd3b5b93f5225c25c6dbec517c1', class: "component-controls" }, this.isMobile && this.zoomState ? (index.h("cura-button-transparent", { fontColor: "dark", onClick: () => this.handleBackClick(), iconName: "arrowLeft", size: "large", iconOnly: true, color: "primary", id: "button-back" })) : '', index.h("cura-input-text", { key: '9c98bf9e910d5503e93addc3d34ae9739bccf9ab', disabled: this.disabled, label: this.label, part: "cura-input-field", mode: this.zoomState ? 'transparent' : 'default', required: this.required, iconName: this.icon || 'search', value: this.value, status: this.status, onValueChange: (ev) => this.handleInputValueChange(ev), onInput: (ev) => this._preventEvent(ev), onFocus: () => this.handleFocus(), onClick: (ev) => this._preventEvent(ev), onBlur: () => this.handleBlur(), onFocusout: () => this.handleFocusout(), onInputClear: (ev) => this.handleInputClear(ev), placeholder: this.placeholder, size: this.size, onKeyDown: (ev) => this.handleKeyDown(ev) }, index.h("slot", { key: 'e6c0a8578436f1fa1392defb6fc7b0126bb3ae33', name: "helperText" }))), index.h("div", { key: '06c4fb438972a42558072600bf91af9b5c94a538', class: "dropdown-container", onMouseOver: () => this.handleDropdownMouseOver() }, index.h("slot", { key: 'c0a63a14785e15a6fcb555732f47efa94efec930', onSlotchange: () => this.handleSlotChange() })))));
1060
+ return (index.h(index.Host, { key: '7a312071ecc60fe462636ad7b32bcb82b5d5c1a2', style: this.getHostCSSProperties(), role: "search", "aria-label": this.label, "aria-required": this.required, "aria-disabled": this.disabled, "aria-expanded": this.zoomState }, index.h("div", { key: 'c4b906871b300013208649f8dcf9b27cf161daae', class: this.getClasses(), style: this.styles }, index.h("div", { key: '97d3d3ae67dc79f2d04456555388cce9aec36f7d', class: "component-controls" }, this.isMobile && this.zoomState ? (index.h("cura-button-transparent", { fontColor: "dark", onClick: () => this.handleBackClick(), iconName: "arrowLeft", size: "large", iconOnly: true, color: "primary", id: "button-back" })) : '', index.h("cura-input-text", { key: '53aa07646542b9941804f7a7f0d66f8c340ce664', disabled: this.disabled, label: this.label, part: "cura-input-field", mode: this.zoomState ? 'transparent' : 'default', required: this.required, iconName: this.icon || 'search', value: this.value, status: this.status, onValueChange: (ev) => this.handleInputValueChange(ev), onInput: (ev) => this._preventEvent(ev), onFocus: () => this.handleFocus(), onClick: (ev) => this._preventEvent(ev), onBlur: () => this.handleBlur(), onFocusout: () => this.handleFocusout(), onInputClear: (ev) => this.handleInputClear(ev), placeholder: this.placeholder, size: this.size, onKeyDown: (ev) => this.handleKeyDown(ev) }, index.h("slot", { key: 'fb206e8295b0139082b79cc747bfe8e424df33fa', name: "helperText" }))), index.h("div", { key: '8ab0ad70e667c4b01b2f7a31fc5df6056b170565', class: "dropdown-container", onMouseOver: () => this.handleDropdownMouseOver() }, index.h("slot", { key: 'dc3cda02f7a70d7229457d6c225a606ee2e03f52', onSlotchange: () => this.handleSlotChange() })))));
967
1061
  }
968
1062
  get host() { return index.getElement(this); }
969
1063
  };
@@ -4944,9 +5038,10 @@ const CuraInputText = class {
4944
5038
  * Callback to restore the switch state from the form.
4945
5039
  */
4946
5040
  formStateRestoreCallback(state) {
5041
+ var _a;
4947
5042
  this.value = state.value;
4948
5043
  this.applyValueToMask();
4949
- this.internals.setFormValue(this.value);
5044
+ (_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue(this.value);
4950
5045
  }
4951
5046
  /**
4952
5047
  * Callback for form association.
@@ -4958,9 +5053,10 @@ const CuraInputText = class {
4958
5053
  * Callback to reset the switch state when the form is reset.
4959
5054
  */
4960
5055
  formResetCallback() {
5056
+ var _a, _b;
4961
5057
  this.handleClearInput();
4962
- this.internals.setValidity({});
4963
- this.internals.setFormValue('');
5058
+ (_a = this.internals) === null || _a === void 0 ? void 0 : _a.setValidity({});
5059
+ (_b = this.internals) === null || _b === void 0 ? void 0 : _b.setFormValue('');
4964
5060
  }
4965
5061
  /**
4966
5062
  * Callback to update the switch's disabled state when the form's disabled state changes.
@@ -5160,6 +5256,7 @@ const CuraInputText = class {
5160
5256
  }
5161
5257
  }
5162
5258
  handleInputChange(event) {
5259
+ var _a;
5163
5260
  const inputValue = event.target.value;
5164
5261
  this.valueChange.emit(inputValue);
5165
5262
  if (this.type === 'number') {
@@ -5168,7 +5265,7 @@ const CuraInputText = class {
5168
5265
  else {
5169
5266
  this.handleTextInputChange(inputValue);
5170
5267
  }
5171
- this.internals.setFormValue(this.value);
5268
+ (_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue(this.value);
5172
5269
  }
5173
5270
  handleNumberInputChange(inputValue) {
5174
5271
  const numericValue = parseFloat(inputValue);
@@ -5201,7 +5298,7 @@ const CuraInputText = class {
5201
5298
  e.preventDefault();
5202
5299
  }
5203
5300
  render() {
5204
- return (index.h(index.Host, { key: 'ca2aecb12b93ceb875b3009b250aaad74cdae987', role: "textbox", "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, index.h("div", { key: 'cf01002eab6f77101c36e03c5cf849d7aaeac09e', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, index.h("div", { key: '632acdd25d3b425b26c6bd10b60f92f37af834c3', class: "input-wrapper" }, this.label && (index.h("cura-label", { key: '0cc9fa6b402907f8292188ff7450945d6e31edd8', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && index.h("span", { key: 'aebf6ded909742c6d09c963172064b3035a5f141', class: "required" }, "* "))), index.h("div", { key: '8906d48f519c5053936d55d4ad9c4bc3570c70d4', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), index.h("input", { key: 'e0954c117932336172cb4bc83ccc18038341dcd3', name: this.name ? this.name : '', type: this.type, onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value !== undefined && this.value !== null ? this.value : '', inputmode: this.maskPreset ? 'tel' : this.inputMode, ref: ref => (this.inputRef = ref), autocomplete: this.autocomplete }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (index.h("cura-icon", { key: '26ea6fcc1cd8df12ee9d0c40f1d20600d696fbe9', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onMouseDown: () => this.handleClearInput() })), this.isLoading && index.h("cura-loader-circle", { key: '292a9c476520f9d03a9d7c2f4242d103dd157b90', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
5301
+ return (index.h(index.Host, { key: '7794e2a816baa0438c256ba584d14ddbeb9cc9b8', role: "textbox", "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, index.h("div", { key: '60fd4d3edebfe6aeb720dd079efb94970626d975', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, index.h("div", { key: '55db1933b3eb29807029669e5c66002556b3bd03', class: "input-wrapper" }, this.label && (index.h("cura-label", { key: '1c4119cc0b2190fbdb1ddcc3f55c41c68ec88957', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && index.h("span", { key: '779e4726201110a6daf2c474b494f6baa9db5dc0', class: "required" }, "* "))), index.h("div", { key: 'a409f41993833fea3eb3212821c26a63f62e970f', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), index.h("input", { key: '75b3de8e8ca33eb2b9e8e8a285de19d172490552', name: this.name ? this.name : '', type: this.type, onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value !== undefined && this.value !== null ? this.value : '', inputmode: this.maskPreset ? 'tel' : this.inputMode, ref: ref => (this.inputRef = ref), autocomplete: this.autocomplete }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (index.h("cura-icon", { key: '4a22b5b1608c5dc57a99b7edc93ab11ce2de4048', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onMouseDown: () => this.handleClearInput() })), this.isLoading && index.h("cura-loader-circle", { key: '65a078642ac17f1779726749b29516c018bc317d', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
5205
5302
  }
5206
5303
  static get formAssociated() { return true; }
5207
5304
  get host() { return index.getElement(this); }
@@ -5434,7 +5531,1621 @@ const CuraParagraph = class {
5434
5531
  };
5435
5532
  CuraParagraph.style = curaParagraphCss;
5436
5533
 
5437
- const curaSelectCss = ":host{display:block;position:relative;font-family:var(--font-family)}.wrapper{width:100%;user-select:none;text-align:left !important}.wrapper cura-label{margin-bottom:8px}.wrapper .helper-text{margin-top:8px;color:var(--neutral-dark)}.wrapper .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper .cura-input-field .feedback-icon{padding-left:12px}.wrapper .cura-input-field .up-down-icon{order:3;padding-right:6px;cursor:pointer;pointer-events:all}.wrapper .cura-input-field .up-down-button{background-color:transparent;border:none}.wrapper .cura-input-field input{padding:0px 12px 0px 8px;cursor:pointer}.wrapper .cura-input-field.open{border-radius:4px 4px 0 0 !important}.wrapper.transparent{background-color:transparent;padding:0px;max-height:80px}.wrapper.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent !important;border:none !important;border-radius:0;height:27px}.wrapper.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.transparent .cura-input-field .feedback-icon{padding-left:12px}.wrapper.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.wrapper.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.wrapper.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.wrapper.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.wrapper.transparent .helper-text{margin-top:0px}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.wrapper:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.wrapper:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.wrapper.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success .cura-input-field .feedback-icon{padding-left:12px}.wrapper.success .cura-input-field input{color:var(--success-darker) !important}.wrapper.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.wrapper.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.wrapper.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field input{color:var(--error-darker) !important}.wrapper.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.wrapper.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.wrapper.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.small .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.wrapper.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.small.label .menu{top:53px}.wrapper.small .menu{top:33px}.wrapper.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.medium .cura-input-field .feedback-icon{padding-left:12px}.wrapper.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.wrapper.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.medium.label .menu{top:61px}.wrapper.medium .menu{top:40px}.wrapper.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.large .cura-input-field .feedback-icon{padding-left:12px}.wrapper.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.wrapper.large.label .menu{top:69px}.wrapper.large .menu{top:47px}.wrapper.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.wrapper.disabled .cura-input-field input{color:var(--neutral-medium)}.wrapper.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.required{color:red}.menu{position:absolute;left:0;right:-1px;background:#fff;border:2px solid var(--neutral-light);border-radius:4px;z-index:1000;max-height:var(--max-height);overflow:hidden;border-top:transparent;align-items:center;scrollbar-color:var(--neutral-medium) var(--neutral-black-20);overflow-y:auto;box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}.menu.open{border-radius:0 !important;padding:12px}";
5534
+ /**
5535
+ * Custom positioning reference element.
5536
+ * @see https://floating-ui.com/docs/virtual-elements
5537
+ */
5538
+
5539
+ const min = Math.min;
5540
+ const max = Math.max;
5541
+ const round = Math.round;
5542
+ const floor = Math.floor;
5543
+ const createCoords = v => ({
5544
+ x: v,
5545
+ y: v
5546
+ });
5547
+ const oppositeSideMap = {
5548
+ left: 'right',
5549
+ right: 'left',
5550
+ bottom: 'top',
5551
+ top: 'bottom'
5552
+ };
5553
+ const oppositeAlignmentMap = {
5554
+ start: 'end',
5555
+ end: 'start'
5556
+ };
5557
+ function clamp(start, value, end) {
5558
+ return max(start, min(value, end));
5559
+ }
5560
+ function evaluate(value, param) {
5561
+ return typeof value === 'function' ? value(param) : value;
5562
+ }
5563
+ function getSide(placement) {
5564
+ return placement.split('-')[0];
5565
+ }
5566
+ function getAlignment(placement) {
5567
+ return placement.split('-')[1];
5568
+ }
5569
+ function getOppositeAxis(axis) {
5570
+ return axis === 'x' ? 'y' : 'x';
5571
+ }
5572
+ function getAxisLength(axis) {
5573
+ return axis === 'y' ? 'height' : 'width';
5574
+ }
5575
+ const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
5576
+ function getSideAxis(placement) {
5577
+ return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
5578
+ }
5579
+ function getAlignmentAxis(placement) {
5580
+ return getOppositeAxis(getSideAxis(placement));
5581
+ }
5582
+ function getAlignmentSides(placement, rects, rtl) {
5583
+ if (rtl === void 0) {
5584
+ rtl = false;
5585
+ }
5586
+ const alignment = getAlignment(placement);
5587
+ const alignmentAxis = getAlignmentAxis(placement);
5588
+ const length = getAxisLength(alignmentAxis);
5589
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
5590
+ if (rects.reference[length] > rects.floating[length]) {
5591
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
5592
+ }
5593
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
5594
+ }
5595
+ function getExpandedPlacements(placement) {
5596
+ const oppositePlacement = getOppositePlacement(placement);
5597
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
5598
+ }
5599
+ function getOppositeAlignmentPlacement(placement) {
5600
+ return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
5601
+ }
5602
+ const lrPlacement = ['left', 'right'];
5603
+ const rlPlacement = ['right', 'left'];
5604
+ const tbPlacement = ['top', 'bottom'];
5605
+ const btPlacement = ['bottom', 'top'];
5606
+ function getSideList(side, isStart, rtl) {
5607
+ switch (side) {
5608
+ case 'top':
5609
+ case 'bottom':
5610
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
5611
+ return isStart ? lrPlacement : rlPlacement;
5612
+ case 'left':
5613
+ case 'right':
5614
+ return isStart ? tbPlacement : btPlacement;
5615
+ default:
5616
+ return [];
5617
+ }
5618
+ }
5619
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
5620
+ const alignment = getAlignment(placement);
5621
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
5622
+ if (alignment) {
5623
+ list = list.map(side => side + "-" + alignment);
5624
+ if (flipAlignment) {
5625
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
5626
+ }
5627
+ }
5628
+ return list;
5629
+ }
5630
+ function getOppositePlacement(placement) {
5631
+ return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
5632
+ }
5633
+ function expandPaddingObject(padding) {
5634
+ return {
5635
+ top: 0,
5636
+ right: 0,
5637
+ bottom: 0,
5638
+ left: 0,
5639
+ ...padding
5640
+ };
5641
+ }
5642
+ function getPaddingObject(padding) {
5643
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
5644
+ top: padding,
5645
+ right: padding,
5646
+ bottom: padding,
5647
+ left: padding
5648
+ };
5649
+ }
5650
+ function rectToClientRect(rect) {
5651
+ const {
5652
+ x,
5653
+ y,
5654
+ width,
5655
+ height
5656
+ } = rect;
5657
+ return {
5658
+ width,
5659
+ height,
5660
+ top: y,
5661
+ left: x,
5662
+ right: x + width,
5663
+ bottom: y + height,
5664
+ x,
5665
+ y
5666
+ };
5667
+ }
5668
+
5669
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
5670
+ let {
5671
+ reference,
5672
+ floating
5673
+ } = _ref;
5674
+ const sideAxis = getSideAxis(placement);
5675
+ const alignmentAxis = getAlignmentAxis(placement);
5676
+ const alignLength = getAxisLength(alignmentAxis);
5677
+ const side = getSide(placement);
5678
+ const isVertical = sideAxis === 'y';
5679
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
5680
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
5681
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
5682
+ let coords;
5683
+ switch (side) {
5684
+ case 'top':
5685
+ coords = {
5686
+ x: commonX,
5687
+ y: reference.y - floating.height
5688
+ };
5689
+ break;
5690
+ case 'bottom':
5691
+ coords = {
5692
+ x: commonX,
5693
+ y: reference.y + reference.height
5694
+ };
5695
+ break;
5696
+ case 'right':
5697
+ coords = {
5698
+ x: reference.x + reference.width,
5699
+ y: commonY
5700
+ };
5701
+ break;
5702
+ case 'left':
5703
+ coords = {
5704
+ x: reference.x - floating.width,
5705
+ y: commonY
5706
+ };
5707
+ break;
5708
+ default:
5709
+ coords = {
5710
+ x: reference.x,
5711
+ y: reference.y
5712
+ };
5713
+ }
5714
+ switch (getAlignment(placement)) {
5715
+ case 'start':
5716
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
5717
+ break;
5718
+ case 'end':
5719
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
5720
+ break;
5721
+ }
5722
+ return coords;
5723
+ }
5724
+
5725
+ /**
5726
+ * Computes the `x` and `y` coordinates that will place the floating element
5727
+ * next to a given reference element.
5728
+ *
5729
+ * This export does not have any `platform` interface logic. You will need to
5730
+ * write one for the platform you are using Floating UI with.
5731
+ */
5732
+ const computePosition$1 = async (reference, floating, config) => {
5733
+ const {
5734
+ placement = 'bottom',
5735
+ strategy = 'absolute',
5736
+ middleware = [],
5737
+ platform
5738
+ } = config;
5739
+ const validMiddleware = middleware.filter(Boolean);
5740
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
5741
+ let rects = await platform.getElementRects({
5742
+ reference,
5743
+ floating,
5744
+ strategy
5745
+ });
5746
+ let {
5747
+ x,
5748
+ y
5749
+ } = computeCoordsFromPlacement(rects, placement, rtl);
5750
+ let statefulPlacement = placement;
5751
+ let middlewareData = {};
5752
+ let resetCount = 0;
5753
+ for (let i = 0; i < validMiddleware.length; i++) {
5754
+ const {
5755
+ name,
5756
+ fn
5757
+ } = validMiddleware[i];
5758
+ const {
5759
+ x: nextX,
5760
+ y: nextY,
5761
+ data,
5762
+ reset
5763
+ } = await fn({
5764
+ x,
5765
+ y,
5766
+ initialPlacement: placement,
5767
+ placement: statefulPlacement,
5768
+ strategy,
5769
+ middlewareData,
5770
+ rects,
5771
+ platform,
5772
+ elements: {
5773
+ reference,
5774
+ floating
5775
+ }
5776
+ });
5777
+ x = nextX != null ? nextX : x;
5778
+ y = nextY != null ? nextY : y;
5779
+ middlewareData = {
5780
+ ...middlewareData,
5781
+ [name]: {
5782
+ ...middlewareData[name],
5783
+ ...data
5784
+ }
5785
+ };
5786
+ if (reset && resetCount <= 50) {
5787
+ resetCount++;
5788
+ if (typeof reset === 'object') {
5789
+ if (reset.placement) {
5790
+ statefulPlacement = reset.placement;
5791
+ }
5792
+ if (reset.rects) {
5793
+ rects = reset.rects === true ? await platform.getElementRects({
5794
+ reference,
5795
+ floating,
5796
+ strategy
5797
+ }) : reset.rects;
5798
+ }
5799
+ ({
5800
+ x,
5801
+ y
5802
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
5803
+ }
5804
+ i = -1;
5805
+ }
5806
+ }
5807
+ return {
5808
+ x,
5809
+ y,
5810
+ placement: statefulPlacement,
5811
+ strategy,
5812
+ middlewareData
5813
+ };
5814
+ };
5815
+
5816
+ /**
5817
+ * Resolves with an object of overflow side offsets that determine how much the
5818
+ * element is overflowing a given clipping boundary on each side.
5819
+ * - positive = overflowing the boundary by that number of pixels
5820
+ * - negative = how many pixels left before it will overflow
5821
+ * - 0 = lies flush with the boundary
5822
+ * @see https://floating-ui.com/docs/detectOverflow
5823
+ */
5824
+ async function detectOverflow(state, options) {
5825
+ var _await$platform$isEle;
5826
+ if (options === void 0) {
5827
+ options = {};
5828
+ }
5829
+ const {
5830
+ x,
5831
+ y,
5832
+ platform,
5833
+ rects,
5834
+ elements,
5835
+ strategy
5836
+ } = state;
5837
+ const {
5838
+ boundary = 'clippingAncestors',
5839
+ rootBoundary = 'viewport',
5840
+ elementContext = 'floating',
5841
+ altBoundary = false,
5842
+ padding = 0
5843
+ } = evaluate(options, state);
5844
+ const paddingObject = getPaddingObject(padding);
5845
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
5846
+ const element = elements[altBoundary ? altContext : elementContext];
5847
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
5848
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
5849
+ boundary,
5850
+ rootBoundary,
5851
+ strategy
5852
+ }));
5853
+ const rect = elementContext === 'floating' ? {
5854
+ x,
5855
+ y,
5856
+ width: rects.floating.width,
5857
+ height: rects.floating.height
5858
+ } : rects.reference;
5859
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
5860
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
5861
+ x: 1,
5862
+ y: 1
5863
+ } : {
5864
+ x: 1,
5865
+ y: 1
5866
+ };
5867
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
5868
+ elements,
5869
+ rect,
5870
+ offsetParent,
5871
+ strategy
5872
+ }) : rect);
5873
+ return {
5874
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
5875
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
5876
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
5877
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
5878
+ };
5879
+ }
5880
+
5881
+ /**
5882
+ * Optimizes the visibility of the floating element by flipping the `placement`
5883
+ * in order to keep it in view when the preferred placement(s) will overflow the
5884
+ * clipping boundary. Alternative to `autoPlacement`.
5885
+ * @see https://floating-ui.com/docs/flip
5886
+ */
5887
+ const flip$1 = function (options) {
5888
+ if (options === void 0) {
5889
+ options = {};
5890
+ }
5891
+ return {
5892
+ name: 'flip',
5893
+ options,
5894
+ async fn(state) {
5895
+ var _middlewareData$arrow, _middlewareData$flip;
5896
+ const {
5897
+ placement,
5898
+ middlewareData,
5899
+ rects,
5900
+ initialPlacement,
5901
+ platform,
5902
+ elements
5903
+ } = state;
5904
+ const {
5905
+ mainAxis: checkMainAxis = true,
5906
+ crossAxis: checkCrossAxis = true,
5907
+ fallbackPlacements: specifiedFallbackPlacements,
5908
+ fallbackStrategy = 'bestFit',
5909
+ fallbackAxisSideDirection = 'none',
5910
+ flipAlignment = true,
5911
+ ...detectOverflowOptions
5912
+ } = evaluate(options, state);
5913
+
5914
+ // If a reset by the arrow was caused due to an alignment offset being
5915
+ // added, we should skip any logic now since `flip()` has already done its
5916
+ // work.
5917
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
5918
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
5919
+ return {};
5920
+ }
5921
+ const side = getSide(placement);
5922
+ const initialSideAxis = getSideAxis(initialPlacement);
5923
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
5924
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
5925
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
5926
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
5927
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
5928
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
5929
+ }
5930
+ const placements = [initialPlacement, ...fallbackPlacements];
5931
+ const overflow = await detectOverflow(state, detectOverflowOptions);
5932
+ const overflows = [];
5933
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
5934
+ if (checkMainAxis) {
5935
+ overflows.push(overflow[side]);
5936
+ }
5937
+ if (checkCrossAxis) {
5938
+ const sides = getAlignmentSides(placement, rects, rtl);
5939
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
5940
+ }
5941
+ overflowsData = [...overflowsData, {
5942
+ placement,
5943
+ overflows
5944
+ }];
5945
+
5946
+ // One or more sides is overflowing.
5947
+ if (!overflows.every(side => side <= 0)) {
5948
+ var _middlewareData$flip2, _overflowsData$filter;
5949
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
5950
+ const nextPlacement = placements[nextIndex];
5951
+ if (nextPlacement) {
5952
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
5953
+ if (!ignoreCrossAxisOverflow ||
5954
+ // We leave the current main axis only if every placement on that axis
5955
+ // overflows the main axis.
5956
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
5957
+ // Try next placement and re-run the lifecycle.
5958
+ return {
5959
+ data: {
5960
+ index: nextIndex,
5961
+ overflows: overflowsData
5962
+ },
5963
+ reset: {
5964
+ placement: nextPlacement
5965
+ }
5966
+ };
5967
+ }
5968
+ }
5969
+
5970
+ // First, find the candidates that fit on the mainAxis side of overflow,
5971
+ // then find the placement that fits the best on the main crossAxis side.
5972
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
5973
+
5974
+ // Otherwise fallback.
5975
+ if (!resetPlacement) {
5976
+ switch (fallbackStrategy) {
5977
+ case 'bestFit':
5978
+ {
5979
+ var _overflowsData$filter2;
5980
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
5981
+ if (hasFallbackAxisSideDirection) {
5982
+ const currentSideAxis = getSideAxis(d.placement);
5983
+ return currentSideAxis === initialSideAxis ||
5984
+ // Create a bias to the `y` side axis due to horizontal
5985
+ // reading directions favoring greater width.
5986
+ currentSideAxis === 'y';
5987
+ }
5988
+ return true;
5989
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
5990
+ if (placement) {
5991
+ resetPlacement = placement;
5992
+ }
5993
+ break;
5994
+ }
5995
+ case 'initialPlacement':
5996
+ resetPlacement = initialPlacement;
5997
+ break;
5998
+ }
5999
+ }
6000
+ if (placement !== resetPlacement) {
6001
+ return {
6002
+ reset: {
6003
+ placement: resetPlacement
6004
+ }
6005
+ };
6006
+ }
6007
+ }
6008
+ return {};
6009
+ }
6010
+ };
6011
+ };
6012
+
6013
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
6014
+
6015
+ // For type backwards-compatibility, the `OffsetOptions` type was also
6016
+ // Derivable.
6017
+
6018
+ async function convertValueToCoords(state, options) {
6019
+ const {
6020
+ placement,
6021
+ platform,
6022
+ elements
6023
+ } = state;
6024
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
6025
+ const side = getSide(placement);
6026
+ const alignment = getAlignment(placement);
6027
+ const isVertical = getSideAxis(placement) === 'y';
6028
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
6029
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
6030
+ const rawValue = evaluate(options, state);
6031
+
6032
+ // eslint-disable-next-line prefer-const
6033
+ let {
6034
+ mainAxis,
6035
+ crossAxis,
6036
+ alignmentAxis
6037
+ } = typeof rawValue === 'number' ? {
6038
+ mainAxis: rawValue,
6039
+ crossAxis: 0,
6040
+ alignmentAxis: null
6041
+ } : {
6042
+ mainAxis: rawValue.mainAxis || 0,
6043
+ crossAxis: rawValue.crossAxis || 0,
6044
+ alignmentAxis: rawValue.alignmentAxis
6045
+ };
6046
+ if (alignment && typeof alignmentAxis === 'number') {
6047
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
6048
+ }
6049
+ return isVertical ? {
6050
+ x: crossAxis * crossAxisMulti,
6051
+ y: mainAxis * mainAxisMulti
6052
+ } : {
6053
+ x: mainAxis * mainAxisMulti,
6054
+ y: crossAxis * crossAxisMulti
6055
+ };
6056
+ }
6057
+
6058
+ /**
6059
+ * Modifies the placement by translating the floating element along the
6060
+ * specified axes.
6061
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
6062
+ * object may be passed.
6063
+ * @see https://floating-ui.com/docs/offset
6064
+ */
6065
+ const offset$1 = function (options) {
6066
+ if (options === void 0) {
6067
+ options = 0;
6068
+ }
6069
+ return {
6070
+ name: 'offset',
6071
+ options,
6072
+ async fn(state) {
6073
+ var _middlewareData$offse, _middlewareData$arrow;
6074
+ const {
6075
+ x,
6076
+ y,
6077
+ placement,
6078
+ middlewareData
6079
+ } = state;
6080
+ const diffCoords = await convertValueToCoords(state, options);
6081
+
6082
+ // If the placement is the same and the arrow caused an alignment offset
6083
+ // then we don't need to change the positioning coordinates.
6084
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
6085
+ return {};
6086
+ }
6087
+ return {
6088
+ x: x + diffCoords.x,
6089
+ y: y + diffCoords.y,
6090
+ data: {
6091
+ ...diffCoords,
6092
+ placement
6093
+ }
6094
+ };
6095
+ }
6096
+ };
6097
+ };
6098
+
6099
+ /**
6100
+ * Optimizes the visibility of the floating element by shifting it in order to
6101
+ * keep it in view when it will overflow the clipping boundary.
6102
+ * @see https://floating-ui.com/docs/shift
6103
+ */
6104
+ const shift$1 = function (options) {
6105
+ if (options === void 0) {
6106
+ options = {};
6107
+ }
6108
+ return {
6109
+ name: 'shift',
6110
+ options,
6111
+ async fn(state) {
6112
+ const {
6113
+ x,
6114
+ y,
6115
+ placement
6116
+ } = state;
6117
+ const {
6118
+ mainAxis: checkMainAxis = true,
6119
+ crossAxis: checkCrossAxis = false,
6120
+ limiter = {
6121
+ fn: _ref => {
6122
+ let {
6123
+ x,
6124
+ y
6125
+ } = _ref;
6126
+ return {
6127
+ x,
6128
+ y
6129
+ };
6130
+ }
6131
+ },
6132
+ ...detectOverflowOptions
6133
+ } = evaluate(options, state);
6134
+ const coords = {
6135
+ x,
6136
+ y
6137
+ };
6138
+ const overflow = await detectOverflow(state, detectOverflowOptions);
6139
+ const crossAxis = getSideAxis(getSide(placement));
6140
+ const mainAxis = getOppositeAxis(crossAxis);
6141
+ let mainAxisCoord = coords[mainAxis];
6142
+ let crossAxisCoord = coords[crossAxis];
6143
+ if (checkMainAxis) {
6144
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
6145
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
6146
+ const min = mainAxisCoord + overflow[minSide];
6147
+ const max = mainAxisCoord - overflow[maxSide];
6148
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
6149
+ }
6150
+ if (checkCrossAxis) {
6151
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
6152
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
6153
+ const min = crossAxisCoord + overflow[minSide];
6154
+ const max = crossAxisCoord - overflow[maxSide];
6155
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
6156
+ }
6157
+ const limitedCoords = limiter.fn({
6158
+ ...state,
6159
+ [mainAxis]: mainAxisCoord,
6160
+ [crossAxis]: crossAxisCoord
6161
+ });
6162
+ return {
6163
+ ...limitedCoords,
6164
+ data: {
6165
+ x: limitedCoords.x - x,
6166
+ y: limitedCoords.y - y,
6167
+ enabled: {
6168
+ [mainAxis]: checkMainAxis,
6169
+ [crossAxis]: checkCrossAxis
6170
+ }
6171
+ }
6172
+ };
6173
+ }
6174
+ };
6175
+ };
6176
+
6177
+ /**
6178
+ * Provides data that allows you to change the size of the floating element —
6179
+ * for instance, prevent it from overflowing the clipping boundary or match the
6180
+ * width of the reference element.
6181
+ * @see https://floating-ui.com/docs/size
6182
+ */
6183
+ const size$1 = function (options) {
6184
+ if (options === void 0) {
6185
+ options = {};
6186
+ }
6187
+ return {
6188
+ name: 'size',
6189
+ options,
6190
+ async fn(state) {
6191
+ var _state$middlewareData, _state$middlewareData2;
6192
+ const {
6193
+ placement,
6194
+ rects,
6195
+ platform,
6196
+ elements
6197
+ } = state;
6198
+ const {
6199
+ apply = () => {},
6200
+ ...detectOverflowOptions
6201
+ } = evaluate(options, state);
6202
+ const overflow = await detectOverflow(state, detectOverflowOptions);
6203
+ const side = getSide(placement);
6204
+ const alignment = getAlignment(placement);
6205
+ const isYAxis = getSideAxis(placement) === 'y';
6206
+ const {
6207
+ width,
6208
+ height
6209
+ } = rects.floating;
6210
+ let heightSide;
6211
+ let widthSide;
6212
+ if (side === 'top' || side === 'bottom') {
6213
+ heightSide = side;
6214
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
6215
+ } else {
6216
+ widthSide = side;
6217
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
6218
+ }
6219
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
6220
+ const maximumClippingWidth = width - overflow.left - overflow.right;
6221
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
6222
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
6223
+ const noShift = !state.middlewareData.shift;
6224
+ let availableHeight = overflowAvailableHeight;
6225
+ let availableWidth = overflowAvailableWidth;
6226
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
6227
+ availableWidth = maximumClippingWidth;
6228
+ }
6229
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
6230
+ availableHeight = maximumClippingHeight;
6231
+ }
6232
+ if (noShift && !alignment) {
6233
+ const xMin = max(overflow.left, 0);
6234
+ const xMax = max(overflow.right, 0);
6235
+ const yMin = max(overflow.top, 0);
6236
+ const yMax = max(overflow.bottom, 0);
6237
+ if (isYAxis) {
6238
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
6239
+ } else {
6240
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
6241
+ }
6242
+ }
6243
+ await apply({
6244
+ ...state,
6245
+ availableWidth,
6246
+ availableHeight
6247
+ });
6248
+ const nextDimensions = await platform.getDimensions(elements.floating);
6249
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
6250
+ return {
6251
+ reset: {
6252
+ rects: true
6253
+ }
6254
+ };
6255
+ }
6256
+ return {};
6257
+ }
6258
+ };
6259
+ };
6260
+
6261
+ function hasWindow() {
6262
+ return typeof window !== 'undefined';
6263
+ }
6264
+ function getNodeName(node) {
6265
+ if (isNode(node)) {
6266
+ return (node.nodeName || '').toLowerCase();
6267
+ }
6268
+ // Mocked nodes in testing environments may not be instances of Node. By
6269
+ // returning `#document` an infinite loop won't occur.
6270
+ // https://github.com/floating-ui/floating-ui/issues/2317
6271
+ return '#document';
6272
+ }
6273
+ function getWindow(node) {
6274
+ var _node$ownerDocument;
6275
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
6276
+ }
6277
+ function getDocumentElement(node) {
6278
+ var _ref;
6279
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
6280
+ }
6281
+ function isNode(value) {
6282
+ if (!hasWindow()) {
6283
+ return false;
6284
+ }
6285
+ return value instanceof Node || value instanceof getWindow(value).Node;
6286
+ }
6287
+ function isElement(value) {
6288
+ if (!hasWindow()) {
6289
+ return false;
6290
+ }
6291
+ return value instanceof Element || value instanceof getWindow(value).Element;
6292
+ }
6293
+ function isHTMLElement(value) {
6294
+ if (!hasWindow()) {
6295
+ return false;
6296
+ }
6297
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
6298
+ }
6299
+ function isShadowRoot(value) {
6300
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
6301
+ return false;
6302
+ }
6303
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
6304
+ }
6305
+ const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
6306
+ function isOverflowElement(element) {
6307
+ const {
6308
+ overflow,
6309
+ overflowX,
6310
+ overflowY,
6311
+ display
6312
+ } = getComputedStyle$1(element);
6313
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
6314
+ }
6315
+ const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
6316
+ function isTableElement(element) {
6317
+ return tableElements.has(getNodeName(element));
6318
+ }
6319
+ const topLayerSelectors = [':popover-open', ':modal'];
6320
+ function isTopLayer(element) {
6321
+ return topLayerSelectors.some(selector => {
6322
+ try {
6323
+ return element.matches(selector);
6324
+ } catch (_e) {
6325
+ return false;
6326
+ }
6327
+ });
6328
+ }
6329
+ const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
6330
+ const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
6331
+ const containValues = ['paint', 'layout', 'strict', 'content'];
6332
+ function isContainingBlock(elementOrCss) {
6333
+ const webkit = isWebKit();
6334
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
6335
+
6336
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
6337
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
6338
+ return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
6339
+ }
6340
+ function getContainingBlock(element) {
6341
+ let currentNode = getParentNode(element);
6342
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
6343
+ if (isContainingBlock(currentNode)) {
6344
+ return currentNode;
6345
+ } else if (isTopLayer(currentNode)) {
6346
+ return null;
6347
+ }
6348
+ currentNode = getParentNode(currentNode);
6349
+ }
6350
+ return null;
6351
+ }
6352
+ function isWebKit() {
6353
+ if (typeof CSS === 'undefined' || !CSS.supports) return false;
6354
+ return CSS.supports('-webkit-backdrop-filter', 'none');
6355
+ }
6356
+ const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
6357
+ function isLastTraversableNode(node) {
6358
+ return lastTraversableNodeNames.has(getNodeName(node));
6359
+ }
6360
+ function getComputedStyle$1(element) {
6361
+ return getWindow(element).getComputedStyle(element);
6362
+ }
6363
+ function getNodeScroll(element) {
6364
+ if (isElement(element)) {
6365
+ return {
6366
+ scrollLeft: element.scrollLeft,
6367
+ scrollTop: element.scrollTop
6368
+ };
6369
+ }
6370
+ return {
6371
+ scrollLeft: element.scrollX,
6372
+ scrollTop: element.scrollY
6373
+ };
6374
+ }
6375
+ function getParentNode(node) {
6376
+ if (getNodeName(node) === 'html') {
6377
+ return node;
6378
+ }
6379
+ const result =
6380
+ // Step into the shadow DOM of the parent of a slotted node.
6381
+ node.assignedSlot ||
6382
+ // DOM Element detected.
6383
+ node.parentNode ||
6384
+ // ShadowRoot detected.
6385
+ isShadowRoot(node) && node.host ||
6386
+ // Fallback.
6387
+ getDocumentElement(node);
6388
+ return isShadowRoot(result) ? result.host : result;
6389
+ }
6390
+ function getNearestOverflowAncestor(node) {
6391
+ const parentNode = getParentNode(node);
6392
+ if (isLastTraversableNode(parentNode)) {
6393
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
6394
+ }
6395
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
6396
+ return parentNode;
6397
+ }
6398
+ return getNearestOverflowAncestor(parentNode);
6399
+ }
6400
+ function getOverflowAncestors(node, list, traverseIframes) {
6401
+ var _node$ownerDocument2;
6402
+ if (list === void 0) {
6403
+ list = [];
6404
+ }
6405
+ if (traverseIframes === void 0) {
6406
+ traverseIframes = true;
6407
+ }
6408
+ const scrollableAncestor = getNearestOverflowAncestor(node);
6409
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
6410
+ const win = getWindow(scrollableAncestor);
6411
+ if (isBody) {
6412
+ const frameElement = getFrameElement(win);
6413
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
6414
+ }
6415
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
6416
+ }
6417
+ function getFrameElement(win) {
6418
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
6419
+ }
6420
+
6421
+ function getCssDimensions(element) {
6422
+ const css = getComputedStyle$1(element);
6423
+ // In testing environments, the `width` and `height` properties are empty
6424
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
6425
+ let width = parseFloat(css.width) || 0;
6426
+ let height = parseFloat(css.height) || 0;
6427
+ const hasOffset = isHTMLElement(element);
6428
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
6429
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
6430
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
6431
+ if (shouldFallback) {
6432
+ width = offsetWidth;
6433
+ height = offsetHeight;
6434
+ }
6435
+ return {
6436
+ width,
6437
+ height,
6438
+ $: shouldFallback
6439
+ };
6440
+ }
6441
+
6442
+ function unwrapElement(element) {
6443
+ return !isElement(element) ? element.contextElement : element;
6444
+ }
6445
+
6446
+ function getScale(element) {
6447
+ const domElement = unwrapElement(element);
6448
+ if (!isHTMLElement(domElement)) {
6449
+ return createCoords(1);
6450
+ }
6451
+ const rect = domElement.getBoundingClientRect();
6452
+ const {
6453
+ width,
6454
+ height,
6455
+ $
6456
+ } = getCssDimensions(domElement);
6457
+ let x = ($ ? round(rect.width) : rect.width) / width;
6458
+ let y = ($ ? round(rect.height) : rect.height) / height;
6459
+
6460
+ // 0, NaN, or Infinity should always fallback to 1.
6461
+
6462
+ if (!x || !Number.isFinite(x)) {
6463
+ x = 1;
6464
+ }
6465
+ if (!y || !Number.isFinite(y)) {
6466
+ y = 1;
6467
+ }
6468
+ return {
6469
+ x,
6470
+ y
6471
+ };
6472
+ }
6473
+
6474
+ const noOffsets = /*#__PURE__*/createCoords(0);
6475
+ function getVisualOffsets(element) {
6476
+ const win = getWindow(element);
6477
+ if (!isWebKit() || !win.visualViewport) {
6478
+ return noOffsets;
6479
+ }
6480
+ return {
6481
+ x: win.visualViewport.offsetLeft,
6482
+ y: win.visualViewport.offsetTop
6483
+ };
6484
+ }
6485
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
6486
+ if (isFixed === void 0) {
6487
+ isFixed = false;
6488
+ }
6489
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
6490
+ return false;
6491
+ }
6492
+ return isFixed;
6493
+ }
6494
+
6495
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
6496
+ if (includeScale === void 0) {
6497
+ includeScale = false;
6498
+ }
6499
+ if (isFixedStrategy === void 0) {
6500
+ isFixedStrategy = false;
6501
+ }
6502
+ const clientRect = element.getBoundingClientRect();
6503
+ const domElement = unwrapElement(element);
6504
+ let scale = createCoords(1);
6505
+ if (includeScale) {
6506
+ if (offsetParent) {
6507
+ if (isElement(offsetParent)) {
6508
+ scale = getScale(offsetParent);
6509
+ }
6510
+ } else {
6511
+ scale = getScale(element);
6512
+ }
6513
+ }
6514
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
6515
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
6516
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
6517
+ let width = clientRect.width / scale.x;
6518
+ let height = clientRect.height / scale.y;
6519
+ if (domElement) {
6520
+ const win = getWindow(domElement);
6521
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
6522
+ let currentWin = win;
6523
+ let currentIFrame = getFrameElement(currentWin);
6524
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
6525
+ const iframeScale = getScale(currentIFrame);
6526
+ const iframeRect = currentIFrame.getBoundingClientRect();
6527
+ const css = getComputedStyle$1(currentIFrame);
6528
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
6529
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
6530
+ x *= iframeScale.x;
6531
+ y *= iframeScale.y;
6532
+ width *= iframeScale.x;
6533
+ height *= iframeScale.y;
6534
+ x += left;
6535
+ y += top;
6536
+ currentWin = getWindow(currentIFrame);
6537
+ currentIFrame = getFrameElement(currentWin);
6538
+ }
6539
+ }
6540
+ return rectToClientRect({
6541
+ width,
6542
+ height,
6543
+ x,
6544
+ y
6545
+ });
6546
+ }
6547
+
6548
+ // If <html> has a CSS width greater than the viewport, then this will be
6549
+ // incorrect for RTL.
6550
+ function getWindowScrollBarX(element, rect) {
6551
+ const leftScroll = getNodeScroll(element).scrollLeft;
6552
+ if (!rect) {
6553
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
6554
+ }
6555
+ return rect.left + leftScroll;
6556
+ }
6557
+
6558
+ function getHTMLOffset(documentElement, scroll) {
6559
+ const htmlRect = documentElement.getBoundingClientRect();
6560
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
6561
+ const y = htmlRect.top + scroll.scrollTop;
6562
+ return {
6563
+ x,
6564
+ y
6565
+ };
6566
+ }
6567
+
6568
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
6569
+ let {
6570
+ elements,
6571
+ rect,
6572
+ offsetParent,
6573
+ strategy
6574
+ } = _ref;
6575
+ const isFixed = strategy === 'fixed';
6576
+ const documentElement = getDocumentElement(offsetParent);
6577
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
6578
+ if (offsetParent === documentElement || topLayer && isFixed) {
6579
+ return rect;
6580
+ }
6581
+ let scroll = {
6582
+ scrollLeft: 0,
6583
+ scrollTop: 0
6584
+ };
6585
+ let scale = createCoords(1);
6586
+ const offsets = createCoords(0);
6587
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
6588
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
6589
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
6590
+ scroll = getNodeScroll(offsetParent);
6591
+ }
6592
+ if (isHTMLElement(offsetParent)) {
6593
+ const offsetRect = getBoundingClientRect(offsetParent);
6594
+ scale = getScale(offsetParent);
6595
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
6596
+ offsets.y = offsetRect.y + offsetParent.clientTop;
6597
+ }
6598
+ }
6599
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
6600
+ return {
6601
+ width: rect.width * scale.x,
6602
+ height: rect.height * scale.y,
6603
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
6604
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
6605
+ };
6606
+ }
6607
+
6608
+ function getClientRects(element) {
6609
+ return Array.from(element.getClientRects());
6610
+ }
6611
+
6612
+ // Gets the entire size of the scrollable document area, even extending outside
6613
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
6614
+ function getDocumentRect(element) {
6615
+ const html = getDocumentElement(element);
6616
+ const scroll = getNodeScroll(element);
6617
+ const body = element.ownerDocument.body;
6618
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
6619
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
6620
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
6621
+ const y = -scroll.scrollTop;
6622
+ if (getComputedStyle$1(body).direction === 'rtl') {
6623
+ x += max(html.clientWidth, body.clientWidth) - width;
6624
+ }
6625
+ return {
6626
+ width,
6627
+ height,
6628
+ x,
6629
+ y
6630
+ };
6631
+ }
6632
+
6633
+ // Safety check: ensure the scrollbar space is reasonable in case this
6634
+ // calculation is affected by unusual styles.
6635
+ // Most scrollbars leave 15-18px of space.
6636
+ const SCROLLBAR_MAX = 25;
6637
+ function getViewportRect(element, strategy) {
6638
+ const win = getWindow(element);
6639
+ const html = getDocumentElement(element);
6640
+ const visualViewport = win.visualViewport;
6641
+ let width = html.clientWidth;
6642
+ let height = html.clientHeight;
6643
+ let x = 0;
6644
+ let y = 0;
6645
+ if (visualViewport) {
6646
+ width = visualViewport.width;
6647
+ height = visualViewport.height;
6648
+ const visualViewportBased = isWebKit();
6649
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
6650
+ x = visualViewport.offsetLeft;
6651
+ y = visualViewport.offsetTop;
6652
+ }
6653
+ }
6654
+ const windowScrollbarX = getWindowScrollBarX(html);
6655
+ // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
6656
+ // visual width of the <html> but this is not considered in the size
6657
+ // of `html.clientWidth`.
6658
+ if (windowScrollbarX <= 0) {
6659
+ const doc = html.ownerDocument;
6660
+ const body = doc.body;
6661
+ const bodyStyles = getComputedStyle(body);
6662
+ const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
6663
+ const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
6664
+ if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
6665
+ width -= clippingStableScrollbarWidth;
6666
+ }
6667
+ } else if (windowScrollbarX <= SCROLLBAR_MAX) {
6668
+ // If the <body> scrollbar is on the left, the width needs to be extended
6669
+ // by the scrollbar amount so there isn't extra space on the right.
6670
+ width += windowScrollbarX;
6671
+ }
6672
+ return {
6673
+ width,
6674
+ height,
6675
+ x,
6676
+ y
6677
+ };
6678
+ }
6679
+
6680
+ const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
6681
+ // Returns the inner client rect, subtracting scrollbars if present.
6682
+ function getInnerBoundingClientRect(element, strategy) {
6683
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
6684
+ const top = clientRect.top + element.clientTop;
6685
+ const left = clientRect.left + element.clientLeft;
6686
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
6687
+ const width = element.clientWidth * scale.x;
6688
+ const height = element.clientHeight * scale.y;
6689
+ const x = left * scale.x;
6690
+ const y = top * scale.y;
6691
+ return {
6692
+ width,
6693
+ height,
6694
+ x,
6695
+ y
6696
+ };
6697
+ }
6698
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
6699
+ let rect;
6700
+ if (clippingAncestor === 'viewport') {
6701
+ rect = getViewportRect(element, strategy);
6702
+ } else if (clippingAncestor === 'document') {
6703
+ rect = getDocumentRect(getDocumentElement(element));
6704
+ } else if (isElement(clippingAncestor)) {
6705
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
6706
+ } else {
6707
+ const visualOffsets = getVisualOffsets(element);
6708
+ rect = {
6709
+ x: clippingAncestor.x - visualOffsets.x,
6710
+ y: clippingAncestor.y - visualOffsets.y,
6711
+ width: clippingAncestor.width,
6712
+ height: clippingAncestor.height
6713
+ };
6714
+ }
6715
+ return rectToClientRect(rect);
6716
+ }
6717
+ function hasFixedPositionAncestor(element, stopNode) {
6718
+ const parentNode = getParentNode(element);
6719
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
6720
+ return false;
6721
+ }
6722
+ return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
6723
+ }
6724
+
6725
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
6726
+ // clipping (or hiding) child elements. This returns all clipping ancestors
6727
+ // of the given element up the tree.
6728
+ function getClippingElementAncestors(element, cache) {
6729
+ const cachedResult = cache.get(element);
6730
+ if (cachedResult) {
6731
+ return cachedResult;
6732
+ }
6733
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
6734
+ let currentContainingBlockComputedStyle = null;
6735
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
6736
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
6737
+
6738
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
6739
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
6740
+ const computedStyle = getComputedStyle$1(currentNode);
6741
+ const currentNodeIsContaining = isContainingBlock(currentNode);
6742
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
6743
+ currentContainingBlockComputedStyle = null;
6744
+ }
6745
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
6746
+ if (shouldDropCurrentNode) {
6747
+ // Drop non-containing blocks.
6748
+ result = result.filter(ancestor => ancestor !== currentNode);
6749
+ } else {
6750
+ // Record last containing block for next iteration.
6751
+ currentContainingBlockComputedStyle = computedStyle;
6752
+ }
6753
+ currentNode = getParentNode(currentNode);
6754
+ }
6755
+ cache.set(element, result);
6756
+ return result;
6757
+ }
6758
+
6759
+ // Gets the maximum area that the element is visible in due to any number of
6760
+ // clipping ancestors.
6761
+ function getClippingRect(_ref) {
6762
+ let {
6763
+ element,
6764
+ boundary,
6765
+ rootBoundary,
6766
+ strategy
6767
+ } = _ref;
6768
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
6769
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
6770
+ const firstClippingAncestor = clippingAncestors[0];
6771
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
6772
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
6773
+ accRect.top = max(rect.top, accRect.top);
6774
+ accRect.right = min(rect.right, accRect.right);
6775
+ accRect.bottom = min(rect.bottom, accRect.bottom);
6776
+ accRect.left = max(rect.left, accRect.left);
6777
+ return accRect;
6778
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
6779
+ return {
6780
+ width: clippingRect.right - clippingRect.left,
6781
+ height: clippingRect.bottom - clippingRect.top,
6782
+ x: clippingRect.left,
6783
+ y: clippingRect.top
6784
+ };
6785
+ }
6786
+
6787
+ function getDimensions(element) {
6788
+ const {
6789
+ width,
6790
+ height
6791
+ } = getCssDimensions(element);
6792
+ return {
6793
+ width,
6794
+ height
6795
+ };
6796
+ }
6797
+
6798
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
6799
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
6800
+ const documentElement = getDocumentElement(offsetParent);
6801
+ const isFixed = strategy === 'fixed';
6802
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
6803
+ let scroll = {
6804
+ scrollLeft: 0,
6805
+ scrollTop: 0
6806
+ };
6807
+ const offsets = createCoords(0);
6808
+
6809
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
6810
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
6811
+ function setLeftRTLScrollbarOffset() {
6812
+ offsets.x = getWindowScrollBarX(documentElement);
6813
+ }
6814
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
6815
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
6816
+ scroll = getNodeScroll(offsetParent);
6817
+ }
6818
+ if (isOffsetParentAnElement) {
6819
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
6820
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
6821
+ offsets.y = offsetRect.y + offsetParent.clientTop;
6822
+ } else if (documentElement) {
6823
+ setLeftRTLScrollbarOffset();
6824
+ }
6825
+ }
6826
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
6827
+ setLeftRTLScrollbarOffset();
6828
+ }
6829
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
6830
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
6831
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
6832
+ return {
6833
+ x,
6834
+ y,
6835
+ width: rect.width,
6836
+ height: rect.height
6837
+ };
6838
+ }
6839
+
6840
+ function isStaticPositioned(element) {
6841
+ return getComputedStyle$1(element).position === 'static';
6842
+ }
6843
+
6844
+ function getTrueOffsetParent(element, polyfill) {
6845
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
6846
+ return null;
6847
+ }
6848
+ if (polyfill) {
6849
+ return polyfill(element);
6850
+ }
6851
+ let rawOffsetParent = element.offsetParent;
6852
+
6853
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
6854
+ // while Chrome and Safari return the <body> element. The <body> element must
6855
+ // be used to perform the correct calculations even if the <html> element is
6856
+ // non-static.
6857
+ if (getDocumentElement(element) === rawOffsetParent) {
6858
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
6859
+ }
6860
+ return rawOffsetParent;
6861
+ }
6862
+
6863
+ // Gets the closest ancestor positioned element. Handles some edge cases,
6864
+ // such as table ancestors and cross browser bugs.
6865
+ function getOffsetParent(element, polyfill) {
6866
+ const win = getWindow(element);
6867
+ if (isTopLayer(element)) {
6868
+ return win;
6869
+ }
6870
+ if (!isHTMLElement(element)) {
6871
+ let svgOffsetParent = getParentNode(element);
6872
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
6873
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
6874
+ return svgOffsetParent;
6875
+ }
6876
+ svgOffsetParent = getParentNode(svgOffsetParent);
6877
+ }
6878
+ return win;
6879
+ }
6880
+ let offsetParent = getTrueOffsetParent(element, polyfill);
6881
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
6882
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
6883
+ }
6884
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
6885
+ return win;
6886
+ }
6887
+ return offsetParent || getContainingBlock(element) || win;
6888
+ }
6889
+
6890
+ const getElementRects = async function (data) {
6891
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
6892
+ const getDimensionsFn = this.getDimensions;
6893
+ const floatingDimensions = await getDimensionsFn(data.floating);
6894
+ return {
6895
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
6896
+ floating: {
6897
+ x: 0,
6898
+ y: 0,
6899
+ width: floatingDimensions.width,
6900
+ height: floatingDimensions.height
6901
+ }
6902
+ };
6903
+ };
6904
+
6905
+ function isRTL(element) {
6906
+ return getComputedStyle$1(element).direction === 'rtl';
6907
+ }
6908
+
6909
+ const platform = {
6910
+ convertOffsetParentRelativeRectToViewportRelativeRect,
6911
+ getDocumentElement,
6912
+ getClippingRect,
6913
+ getOffsetParent,
6914
+ getElementRects,
6915
+ getClientRects,
6916
+ getDimensions,
6917
+ getScale,
6918
+ isElement,
6919
+ isRTL
6920
+ };
6921
+
6922
+ function rectsAreEqual(a, b) {
6923
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
6924
+ }
6925
+
6926
+ // https://samthor.au/2021/observing-dom/
6927
+ function observeMove(element, onMove) {
6928
+ let io = null;
6929
+ let timeoutId;
6930
+ const root = getDocumentElement(element);
6931
+ function cleanup() {
6932
+ var _io;
6933
+ clearTimeout(timeoutId);
6934
+ (_io = io) == null || _io.disconnect();
6935
+ io = null;
6936
+ }
6937
+ function refresh(skip, threshold) {
6938
+ if (skip === void 0) {
6939
+ skip = false;
6940
+ }
6941
+ if (threshold === void 0) {
6942
+ threshold = 1;
6943
+ }
6944
+ cleanup();
6945
+ const elementRectForRootMargin = element.getBoundingClientRect();
6946
+ const {
6947
+ left,
6948
+ top,
6949
+ width,
6950
+ height
6951
+ } = elementRectForRootMargin;
6952
+ if (!skip) {
6953
+ onMove();
6954
+ }
6955
+ if (!width || !height) {
6956
+ return;
6957
+ }
6958
+ const insetTop = floor(top);
6959
+ const insetRight = floor(root.clientWidth - (left + width));
6960
+ const insetBottom = floor(root.clientHeight - (top + height));
6961
+ const insetLeft = floor(left);
6962
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
6963
+ const options = {
6964
+ rootMargin,
6965
+ threshold: max(0, min(1, threshold)) || 1
6966
+ };
6967
+ let isFirstUpdate = true;
6968
+ function handleObserve(entries) {
6969
+ const ratio = entries[0].intersectionRatio;
6970
+ if (ratio !== threshold) {
6971
+ if (!isFirstUpdate) {
6972
+ return refresh();
6973
+ }
6974
+ if (!ratio) {
6975
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
6976
+ // to prevent an infinite loop of updates.
6977
+ timeoutId = setTimeout(() => {
6978
+ refresh(false, 1e-7);
6979
+ }, 1000);
6980
+ } else {
6981
+ refresh(false, ratio);
6982
+ }
6983
+ }
6984
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
6985
+ // It's possible that even though the ratio is reported as 1, the
6986
+ // element is not actually fully within the IntersectionObserver's root
6987
+ // area anymore. This can happen under performance constraints. This may
6988
+ // be a bug in the browser's IntersectionObserver implementation. To
6989
+ // work around this, we compare the element's bounding rect now with
6990
+ // what it was at the time we created the IntersectionObserver. If they
6991
+ // are not equal then the element moved, so we refresh.
6992
+ refresh();
6993
+ }
6994
+ isFirstUpdate = false;
6995
+ }
6996
+
6997
+ // Older browsers don't support a `document` as the root and will throw an
6998
+ // error.
6999
+ try {
7000
+ io = new IntersectionObserver(handleObserve, {
7001
+ ...options,
7002
+ // Handle <iframe>s
7003
+ root: root.ownerDocument
7004
+ });
7005
+ } catch (_e) {
7006
+ io = new IntersectionObserver(handleObserve, options);
7007
+ }
7008
+ io.observe(element);
7009
+ }
7010
+ refresh(true);
7011
+ return cleanup;
7012
+ }
7013
+
7014
+ /**
7015
+ * Automatically updates the position of the floating element when necessary.
7016
+ * Should only be called when the floating element is mounted on the DOM or
7017
+ * visible on the screen.
7018
+ * @returns cleanup function that should be invoked when the floating element is
7019
+ * removed from the DOM or hidden from the screen.
7020
+ * @see https://floating-ui.com/docs/autoUpdate
7021
+ */
7022
+ function autoUpdate(reference, floating, update, options) {
7023
+ if (options === void 0) {
7024
+ options = {};
7025
+ }
7026
+ const {
7027
+ ancestorScroll = true,
7028
+ ancestorResize = true,
7029
+ elementResize = typeof ResizeObserver === 'function',
7030
+ layoutShift = typeof IntersectionObserver === 'function',
7031
+ animationFrame = false
7032
+ } = options;
7033
+ const referenceEl = unwrapElement(reference);
7034
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
7035
+ ancestors.forEach(ancestor => {
7036
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
7037
+ passive: true
7038
+ });
7039
+ ancestorResize && ancestor.addEventListener('resize', update);
7040
+ });
7041
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
7042
+ let reobserveFrame = -1;
7043
+ let resizeObserver = null;
7044
+ if (elementResize) {
7045
+ resizeObserver = new ResizeObserver(_ref => {
7046
+ let [firstEntry] = _ref;
7047
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
7048
+ // Prevent update loops when using the `size` middleware.
7049
+ // https://github.com/floating-ui/floating-ui/issues/1740
7050
+ resizeObserver.unobserve(floating);
7051
+ cancelAnimationFrame(reobserveFrame);
7052
+ reobserveFrame = requestAnimationFrame(() => {
7053
+ var _resizeObserver;
7054
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
7055
+ });
7056
+ }
7057
+ update();
7058
+ });
7059
+ if (referenceEl && !animationFrame) {
7060
+ resizeObserver.observe(referenceEl);
7061
+ }
7062
+ resizeObserver.observe(floating);
7063
+ }
7064
+ let frameId;
7065
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
7066
+ if (animationFrame) {
7067
+ frameLoop();
7068
+ }
7069
+ function frameLoop() {
7070
+ const nextRefRect = getBoundingClientRect(reference);
7071
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
7072
+ update();
7073
+ }
7074
+ prevRefRect = nextRefRect;
7075
+ frameId = requestAnimationFrame(frameLoop);
7076
+ }
7077
+ update();
7078
+ return () => {
7079
+ var _resizeObserver2;
7080
+ ancestors.forEach(ancestor => {
7081
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
7082
+ ancestorResize && ancestor.removeEventListener('resize', update);
7083
+ });
7084
+ cleanupIo == null || cleanupIo();
7085
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
7086
+ resizeObserver = null;
7087
+ if (animationFrame) {
7088
+ cancelAnimationFrame(frameId);
7089
+ }
7090
+ };
7091
+ }
7092
+
7093
+ /**
7094
+ * Modifies the placement by translating the floating element along the
7095
+ * specified axes.
7096
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
7097
+ * object may be passed.
7098
+ * @see https://floating-ui.com/docs/offset
7099
+ */
7100
+ const offset = offset$1;
7101
+
7102
+ /**
7103
+ * Optimizes the visibility of the floating element by shifting it in order to
7104
+ * keep it in view when it will overflow the clipping boundary.
7105
+ * @see https://floating-ui.com/docs/shift
7106
+ */
7107
+ const shift = shift$1;
7108
+
7109
+ /**
7110
+ * Optimizes the visibility of the floating element by flipping the `placement`
7111
+ * in order to keep it in view when the preferred placement(s) will overflow the
7112
+ * clipping boundary. Alternative to `autoPlacement`.
7113
+ * @see https://floating-ui.com/docs/flip
7114
+ */
7115
+ const flip = flip$1;
7116
+
7117
+ /**
7118
+ * Provides data that allows you to change the size of the floating element —
7119
+ * for instance, prevent it from overflowing the clipping boundary or match the
7120
+ * width of the reference element.
7121
+ * @see https://floating-ui.com/docs/size
7122
+ */
7123
+ const size = size$1;
7124
+
7125
+ /**
7126
+ * Computes the `x` and `y` coordinates that will place the floating element
7127
+ * next to a given reference element.
7128
+ */
7129
+ const computePosition = (reference, floating, options) => {
7130
+ // This caches the expensive `getClippingElementAncestors` function so that
7131
+ // multiple lifecycle resets re-use the same result. It only lives for a
7132
+ // single call. If other functions become expensive, we can add them as well.
7133
+ const cache = new Map();
7134
+ const mergedOptions = {
7135
+ platform,
7136
+ ...options
7137
+ };
7138
+ const platformWithCache = {
7139
+ ...mergedOptions.platform,
7140
+ _c: cache
7141
+ };
7142
+ return computePosition$1(reference, floating, {
7143
+ ...mergedOptions,
7144
+ platform: platformWithCache
7145
+ });
7146
+ };
7147
+
7148
+ const curaSelectCss = ":host{display:block;position:relative;font-family:var(--font-family)}.wrapper{width:100%;user-select:none;text-align:left !important}.wrapper cura-label{margin-bottom:8px}.wrapper .helper-text{margin-top:8px;color:var(--neutral-dark)}.wrapper .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper .cura-input-field .feedback-icon{padding-left:12px}.wrapper .cura-input-field .up-down-icon{order:3;padding-right:6px;cursor:pointer;pointer-events:all}.wrapper .cura-input-field .up-down-button{background-color:transparent;border:none}.wrapper .cura-input-field input{padding:0px 12px 0px 8px;cursor:pointer}.wrapper .cura-input-field.open{border-radius:4px 4px 0 0 !important}.wrapper.transparent{background-color:transparent;padding:0px;max-height:80px}.wrapper.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent !important;border:none !important;border-radius:0;height:27px}.wrapper.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.transparent .cura-input-field .feedback-icon{padding-left:12px}.wrapper.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.wrapper.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.wrapper.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.wrapper.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.wrapper.transparent .helper-text{margin-top:0px}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.wrapper:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.wrapper:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.wrapper.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success .cura-input-field .feedback-icon{padding-left:12px}.wrapper.success .cura-input-field input{color:var(--success-darker) !important}.wrapper.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.wrapper.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.wrapper.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field input{color:var(--error-darker) !important}.wrapper.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.wrapper.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.wrapper.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.wrapper.disabled .cura-input-field input{color:var(--neutral-medium)}.wrapper.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.required{color:red}.menu{position:fixed;left:0;top:0;box-sizing:border-box;background:#fff;border:2px solid var(--neutral-light);border-radius:4px;z-index:1000;max-height:var(--max-height);overflow:hidden;border-top:transparent;align-items:center;scrollbar-color:var(--neutral-medium) var(--neutral-black-20);overflow-y:auto;box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}.menu.open{border-radius:0 !important;padding:12px}";
5438
7149
 
5439
7150
  const CuraSelect = class {
5440
7151
  constructor(hostRef) {
@@ -5519,8 +7230,17 @@ const CuraSelect = class {
5519
7230
  * Default: false
5520
7231
  */
5521
7232
  this.isOpen = false;
7233
+ this.isPositioned = false;
7234
+ this.menuStyle = {
7235
+ top: '0px',
7236
+ left: '0px',
7237
+ width: '0px',
7238
+ maxHeight: this.maxHeight,
7239
+ };
5522
7240
  this.activeIndex = -1;
7241
+ this.preferredPlacement = 'bottom';
5523
7242
  this.textInput = '';
7243
+ this.floatingPlacement = 'bottom-start';
5524
7244
  /**
5525
7245
  * Styles to be applied to the component.
5526
7246
  */
@@ -5553,7 +7273,7 @@ const CuraSelect = class {
5553
7273
  var _a;
5554
7274
  const { code: keyCode } = event;
5555
7275
  if (!this.isOpen && keyCode === 'ArrowDown') {
5556
- this.isOpen = true;
7276
+ this.openMenu();
5557
7277
  this.activeIndex = 0;
5558
7278
  return;
5559
7279
  }
@@ -5569,12 +7289,17 @@ const CuraSelect = class {
5569
7289
  (_a = this.options[this.activeIndex]) === null || _a === void 0 ? void 0 : _a.click();
5570
7290
  }
5571
7291
  if (keyCode === 'Escape') {
5572
- this.isOpen = false;
7292
+ this.closeMenu();
5573
7293
  }
5574
7294
  };
5575
7295
  this.handleInputChange = (e) => {
5576
7296
  this.textInput = e.target.value;
5577
- this.isOpen = this.textInput.length > 0;
7297
+ if (this.searchBehavior) {
7298
+ if (this.textInput.length > 0 && !this.isOpen)
7299
+ this.openMenu();
7300
+ if (this.textInput.length === 0 && this.isOpen)
7301
+ this.closeMenu();
7302
+ }
5578
7303
  this.internals.setFormValue(this.textInput);
5579
7304
  };
5580
7305
  this.handleClick = (event) => {
@@ -5583,14 +7308,20 @@ const CuraSelect = class {
5583
7308
  const target = event.target;
5584
7309
  if (target.tagName === 'CURA-SELECT-OPTION')
5585
7310
  return this.onOptiselected(event);
5586
- this.isOpen = !this.isOpen;
7311
+ this.isOpen ? this.closeMenu() : this.openMenu();
5587
7312
  };
5588
7313
  this.handleClickOutside = (event) => {
5589
- const clickedOutside = !this.host.contains(event.target);
7314
+ const path = (event.composedPath && event.composedPath()) || [];
7315
+ const clickedOutside = !path.includes(this.host) && !(this.menuElement && path.includes(this.menuElement));
5590
7316
  if (clickedOutside) {
5591
- this.isOpen = false;
7317
+ this.closeMenu();
5592
7318
  }
5593
7319
  };
7320
+ this.handleViewportChange = () => {
7321
+ if (!this.isOpen)
7322
+ return;
7323
+ this.updateMenuPosition();
7324
+ };
5594
7325
  }
5595
7326
  updateOptionHighlights(newActiveINdex) {
5596
7327
  this.options.forEach((option, index) => (option.active = index === newActiveINdex));
@@ -5662,6 +7393,7 @@ const CuraSelect = class {
5662
7393
  // this.initializeOptions();
5663
7394
  this.setupMutationObserver();
5664
7395
  this.addOutsideClickListener();
7396
+ this.addPositionListeners();
5665
7397
  }
5666
7398
  /**
5667
7399
  * Lifecycle method called when the component is connected to the DOM.
@@ -5675,9 +7407,11 @@ const CuraSelect = class {
5675
7407
  * Disconnects the MutationObserver if it exists.
5676
7408
  */
5677
7409
  disconnectedCallback() {
5678
- var _a;
7410
+ var _a, _b;
5679
7411
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
5680
7412
  this.removeOutsideClickListener();
7413
+ this.removePositionListeners();
7414
+ (_b = this.cleanupAutoUpdate) === null || _b === void 0 ? void 0 : _b.call(this);
5681
7415
  }
5682
7416
  initializeOptions() {
5683
7417
  var _a;
@@ -5746,7 +7480,7 @@ const CuraSelect = class {
5746
7480
  this.internals.setFormValue(this.value);
5747
7481
  if (this.textInput !== selectedOptionElement.textContent) {
5748
7482
  this.textInput = selectedOptionElement.textContent;
5749
- this.isOpen = false;
7483
+ this.closeMenu();
5750
7484
  this.selected.emit(selectedOptionElement.value);
5751
7485
  }
5752
7486
  }
@@ -5801,20 +7535,85 @@ const CuraSelect = class {
5801
7535
  const icon = { default: this.iconName, success: 'checkCircle', error: 'alertCircle' }[this.status];
5802
7536
  return index.h("cura-icon", { class: "feedback-icon", name: icon, iconset: "default", size: this.size === 'large' ? 20 : 16, color: this.getColor('icon'), style: this.styles });
5803
7537
  }
7538
+ openMenu() {
7539
+ this.isOpen = true;
7540
+ this.isPositioned = false;
7541
+ requestAnimationFrame(() => this.setupFloating());
7542
+ }
7543
+ closeMenu() {
7544
+ var _a;
7545
+ this.isOpen = false;
7546
+ this.isPositioned = false;
7547
+ (_a = this.cleanupAutoUpdate) === null || _a === void 0 ? void 0 : _a.call(this);
7548
+ }
5804
7549
  addOutsideClickListener() {
5805
7550
  document.addEventListener('click', this.handleClickOutside);
5806
7551
  }
5807
7552
  removeOutsideClickListener() {
5808
7553
  document.removeEventListener('click', this.handleClickOutside);
5809
7554
  }
7555
+ addPositionListeners() {
7556
+ window.addEventListener('resize', this.handleViewportChange, { passive: true });
7557
+ window.addEventListener('scroll', this.handleViewportChange, true);
7558
+ }
7559
+ removePositionListeners() {
7560
+ window.removeEventListener('resize', this.handleViewportChange);
7561
+ window.removeEventListener('scroll', this.handleViewportChange, true);
7562
+ }
7563
+ parseMaxHeight() {
7564
+ const numeric = parseFloat(this.maxHeight);
7565
+ return Number.isFinite(numeric) ? numeric : 285;
7566
+ }
7567
+ setupFloating() {
7568
+ var _a;
7569
+ if (!this.inputWrapper || !this.menuElement)
7570
+ return;
7571
+ (_a = this.cleanupAutoUpdate) === null || _a === void 0 ? void 0 : _a.call(this);
7572
+ this.cleanupAutoUpdate = autoUpdate(this.inputWrapper, this.menuElement, () => {
7573
+ this.updateMenuPosition();
7574
+ });
7575
+ this.updateMenuPosition();
7576
+ }
7577
+ updateMenuPosition() {
7578
+ if (!this.inputWrapper || !this.menuElement)
7579
+ return;
7580
+ computePosition(this.inputWrapper, this.menuElement, {
7581
+ strategy: 'fixed',
7582
+ placement: this.floatingPlacement,
7583
+ middleware: [
7584
+ offset(0),
7585
+ flip(),
7586
+ shift({ padding: 8 }),
7587
+ size({
7588
+ apply: ({ rects, availableHeight }) => {
7589
+ this.menuStyle = Object.assign(Object.assign({}, this.menuStyle), { width: `${rects.reference.width}px`, maxHeight: `${Math.min(availableHeight, this.parseMaxHeight())}px` });
7590
+ },
7591
+ }),
7592
+ ],
7593
+ }).then(({ x, y, placement }) => {
7594
+ this.preferredPlacement = placement.startsWith('top') ? 'top' : 'bottom';
7595
+ this.menuStyle = Object.assign(Object.assign({}, this.menuStyle), { top: `${y}px`, left: `${x}px` });
7596
+ this.isPositioned = true;
7597
+ });
7598
+ }
5810
7599
  render() {
5811
- return (index.h(index.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') }, index.h("div", { key: '00dd10ed04cd3bf0e848d9facc44db794e3580cf', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: 'd0c7293af9ba728293f2b531c2cc0354ba6f9fa0', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: '2d1e87303eab87280dc8668e390bd5aa696814d9', class: "required" }, "* "))), index.h("div", { key: 'd0e8464016796145e088f459532a37dfb1852f96', class: {
7600
+ return (index.h(index.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') }, index.h("div", { key: 'ab28fd73d68ccdc5ad6dd6cc7f79d879eaf25818', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: '5405aa3706b07640fdfdaa681ad22ea9c5fd9997', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: '39b37aefbf4e61572607d891eb63c737c332793c', class: "required" }, "* "))), index.h("div", { key: 'c339ab1ff49699fb0a348a169ba7f545b89bd593', class: {
5812
7601
  'cura-input-field': true,
5813
7602
  'open': this.isOpen,
5814
- } }, this.renderIcon(), index.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 }), index.h("button", { key: '7b9b18aebd379b004c08f4bcdb4c72357f29c56c', class: "up-down-button" }, index.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" }))), index.h("cura-label", { key: '8e89021a023d6ff69a2adb2fe1b9052d1d813d06', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: 'a253ffc9f1f1ee84c9dcbc81dc3a650c5105c11e' })), this.isOpen && (index.h("div", { key: '938f552bebac510a7345c8e7b46d2ef911c19e12', class: {
7603
+ }, ref: el => (this.inputWrapper = el) }, this.renderIcon(), index.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 }), index.h("button", { key: '53bddc2b1e56462a9181ce99749d98568f1c5dd9', class: "up-down-button" }, index.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" }))), index.h("cura-label", { key: '550c24779f690ebd16bec881770b200ce06f5390', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: '530f64f99df6328d3a49a449f8f924e57bb03f21' })), this.isOpen && (index.h("div", { key: '3ee7a6439c98a0837a3f39d27646ed7a55c630b3', class: {
5815
7604
  menu: true,
5816
7605
  open: this.isOpen,
5817
- }, style: { '--max-height': this.maxHeight } }, index.h("slot", { key: '2d54c15bb8df7dfe33fac77cee7778c450946cf7', name: "option" }))))));
7606
+ [this.preferredPlacement]: true,
7607
+ }, ref: el => (this.menuElement = el), style: {
7608
+ '--max-height': this.maxHeight,
7609
+ top: this.menuStyle.top,
7610
+ left: this.menuStyle.left,
7611
+ width: this.menuStyle.width,
7612
+ maxHeight: this.menuStyle.maxHeight,
7613
+ visibility: this.isPositioned ? 'visible' : 'hidden',
7614
+ opacity: this.isPositioned ? '1' : '0',
7615
+ pointerEvents: this.isPositioned ? 'auto' : 'none',
7616
+ } }, index.h("slot", { key: '84c3bb501966175635102b2ccbfa0cf43d2112f1', name: "option" }))))));
5818
7617
  }
5819
7618
  static get formAssociated() { return true; }
5820
7619
  get host() { return index.getElement(this); }
@@ -5826,7 +7625,7 @@ const CuraSelect = class {
5826
7625
  };
5827
7626
  CuraSelect.style = curaSelectCss;
5828
7627
 
5829
- const curaSelectOptionCss = ":host{display:block}.item{display:flex;padding:12px 8px;cursor:pointer;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--neutral-purewhite)}.item.selected{background-color:var(--primary-lighter-50);border-bottom:1px solid var(--primary-light)}.item:hover:not(.selected){background:var(--neutral-white);border-bottom:1px solid var(--neutral-light)}.item.active{background:var(--neutral-white) !important;border-bottom:1px solid var(--neutral-light)}.item.selected.active{background-color:var(--primary-lighter-50) !important;box-shadow:none}";
7628
+ const curaSelectOptionCss = ":host{display:block}.item{display:flex;padding:12px 8px;cursor:pointer;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--neutral-purewhite);border-bottom:1px solid transparent}.item.selected{background-color:var(--primary-lighter-50);border-bottom:1px solid var(--primary-light)}.item:hover:not(.selected){background:var(--neutral-white)}.item:hover:not(.selected){border-bottom:1px solid var(--neutral-light)}.item.active{background:var(--neutral-white) !important}.item.active{border-bottom:1px solid var(--neutral-light)}.item.selected.active{background-color:var(--primary-lighter-50) !important;box-shadow:none}:host(:last-of-type) .item{border-bottom:none}:host(:last-of-type) .item:hover,:host(:last-of-type) .item.active,:host(:last-of-type) .item.selected{border-bottom:none}";
5830
7629
 
5831
7630
  const CuraSelectOption = class {
5832
7631
  constructor(hostRef) {
@@ -6009,6 +7808,7 @@ exports.cura_avatar = CuraAvatar;
6009
7808
  exports.cura_badge_distance = CuraDistance;
6010
7809
  exports.cura_button = CuraButton;
6011
7810
  exports.cura_button_transparent = CuraButtonTransparent;
7811
+ exports.cura_card = CuraCard;
6012
7812
  exports.cura_dropdown_search = CuraDropdownSearch;
6013
7813
  exports.cura_dropdown_search_category = CuraDropdownSearchCategory;
6014
7814
  exports.cura_dropdown_search_option = CuraDropdownSearchOption;
@@ -6023,6 +7823,6 @@ exports.cura_select = CuraSelect;
6023
7823
  exports.cura_select_option = CuraSelectOption;
6024
7824
  exports.cura_tabs = CuraTabs;
6025
7825
  exports.cura_tabs_group = CuraTabsGroup;
6026
- //# sourceMappingURL=cura-accordion.cura-accordion-item.cura-avatar.cura-badge-distance.cura-button.cura-button-transparent.cura-dropdown-search.cura-dropdown-search-category.cura-dropdown-search-option.cura-heading.cura-icon.cura-input-text.cura-label.cura-loader-circle.cura-page-template.cura-paragraph.cura-select.cura-select-option.cura-tabs.cura-tabs-group.entry.cjs.js.map
7826
+ //# sourceMappingURL=cura-accordion.cura-accordion-item.cura-avatar.cura-badge-distance.cura-button.cura-button-transparent.cura-card.cura-dropdown-search.cura-dropdown-search-category.cura-dropdown-search-option.cura-heading.cura-icon.cura-input-text.cura-label.cura-loader-circle.cura-page-template.cura-paragraph.cura-select.cura-select-option.cura-tabs.cura-tabs-group.entry.cjs.js.map
6027
7827
 
6028
- //# sourceMappingURL=cura-accordion_20.cjs.entry.js.map
7828
+ //# sourceMappingURL=cura-accordion_21.cjs.entry.js.map