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