@rededor/cura 1.8.3-alpha.0 → 2.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/app-globals-e8cmvmo1.js +69 -0
- package/dist/cjs/{cura-accordion_20.cjs.entry.js → cura-accordion_21.cjs.entry.js} +1957 -98
- package/dist/cjs/cura-alert.cjs.entry.js +11 -11
- package/dist/cjs/cura-badge-counter.cjs.entry.js +13 -10
- package/dist/cjs/cura-badge-dot.cjs.entry.js +4 -7
- package/dist/cjs/cura-badge-pill.cjs.entry.js +7 -8
- package/dist/cjs/cura-button-outline.cjs.entry.js +15 -10
- package/dist/cjs/cura-button-select.cjs.entry.js +10 -9
- package/dist/cjs/cura-button.definitions-B3SK8MaV.js +0 -3
- package/dist/cjs/cura-calendar.cjs.entry.js +12 -9
- package/dist/cjs/cura-checkbox.cjs.entry.js +18 -11
- package/dist/cjs/cura-display.cjs.entry.js +10 -9
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +4 -7
- package/dist/cjs/cura-forms.definitions-DVLuO67c.js +0 -3
- package/dist/cjs/cura-icon.definitions-DT0wF67y.js +0 -3
- package/dist/cjs/cura-icons-view.cjs.entry.js +5 -8
- package/dist/cjs/cura-input-date.cjs.entry.js +7 -8
- package/dist/cjs/cura-loader-bar.cjs.entry.js +10 -9
- package/dist/cjs/cura-modal.cjs.entry.js +19 -12
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +6 -9
- package/dist/cjs/cura-radio.cjs.entry.js +15 -10
- package/dist/cjs/cura-stepper.cjs.entry.js +4 -7
- package/dist/cjs/cura-switch.cjs.entry.js +13 -10
- package/dist/cjs/cura-tabs-button.cjs.entry.js +7 -8
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +7 -8
- package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js +0 -3
- package/dist/cjs/cura-theme-module-Dg1d3VUN.js +237 -0
- package/dist/cjs/cura-toast.cjs.entry.js +10 -9
- package/dist/cjs/cura-tooltip.cjs.entry.js +4 -7
- package/dist/cjs/cura.cjs.js +8 -8
- package/dist/cjs/{index-BK9MSAiE.js → index-BLhmsPd0.js} +705 -579
- package/dist/cjs/index-EyP6Zlkd.js +0 -3
- package/dist/cjs/index.cjs.js +3 -4
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/static-DHz-FA_O.js +88 -0
- package/dist/cjs/theme-legacy-default-COE-hjD7.js +264 -0
- package/dist/collection/api/cura-api.js +0 -1
- package/dist/collection/api/cura-api.type.js +0 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -1
- package/dist/collection/api/theme-presets/static.js +0 -1
- package/dist/collection/api/theme-presets/theme-default.js +0 -1
- package/dist/collection/api/theme-presets/theme-legacy-default.js +0 -1
- package/dist/collection/api/theme-presets/theme-maternity.js +0 -1
- package/dist/collection/api/theme-presets/theme-oncology.js +0 -1
- package/dist/collection/api/theme-presets/theme-perinatal-temporary.js +0 -1
- package/dist/collection/api/theme-presets/theme-presets.js +0 -1
- package/dist/collection/api/theme-presets/theme-richet.js +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js +1 -2
- 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 +3 -2
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +9 -10
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +0 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +9 -10
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +5 -6
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js +0 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +2 -3
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js +0 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +3 -4
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js +0 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +8 -9
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.js +24 -25
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +17 -18
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +12 -13
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +16 -17
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button.definitions.js +0 -1
- package/dist/collection/components/cura-alert/cura-alert.js +11 -11
- package/dist/collection/components/cura-alert/cura-alert.stories.js +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js +13 -14
- package/dist/collection/components/cura-avatar/cura-avatar.stories.js +0 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js +21 -25
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js +0 -1
- package/dist/collection/components/cura-card/cura-card.js +7 -8
- package/dist/collection/components/cura-card/cura-card.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +7 -8
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.css +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +40 -19
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js +0 -1
- package/dist/collection/components/cura-icon/cura-icon.definitions.js +0 -1
- package/dist/collection/components/cura-icon/cura-icon.js +6 -7
- package/dist/collection/components/cura-icon/cura-icon.stories.js +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +0 -1
- package/dist/collection/components/cura-modal/cura-modal.js +9 -10
- package/dist/collection/components/cura-modal/cura-modal.stories.js +0 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -2
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +8 -9
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +6 -7
- package/dist/collection/components/cura-stepper/cura-stepper.js +8 -8
- package/dist/collection/components/cura-stepper/cura-stepper.stories.js +0 -1
- package/dist/collection/components/cura-stepper/stepper.type.js +0 -1
- package/dist/collection/components/cura-toast/cura-toast.js +9 -10
- package/dist/collection/components/cura-toast/cura-toast.stories.js +0 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +8 -9
- package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js +0 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +19 -20
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +0 -1
- package/dist/collection/components/forms/cura-forms.definitions.js +0 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +15 -16
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +0 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +37 -35
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +0 -1
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +0 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +8 -9
- package/dist/collection/components/forms/cura-label/cura-label.stories.js +0 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +15 -16
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +0 -1
- package/dist/collection/components/forms/cura-select/cura-select.css +3 -148
- package/dist/collection/components/forms/cura-select/cura-select.js +116 -25
- package/dist/collection/components/forms/cura-select/cura-select.stories.js +0 -1
- 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 +5 -6
- package/dist/collection/components/forms/cura-switch/cura-switch.js +10 -11
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +0 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +2 -3
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +2 -3
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +9 -10
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +9 -10
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +3 -4
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +9 -10
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs.definitions.js +0 -1
- package/dist/collection/components/text/cura-display/cura-display.js +7 -8
- package/dist/collection/components/text/cura-display/cura-display.stories.js +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +9 -10
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +7 -8
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/rededor-cura-start.js +0 -1
- package/dist/collection/utils/FixedElementScrollBehavior.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/cura-accordion-item.js +1 -102
- package/dist/components/cura-accordion.js +1 -144
- package/dist/components/cura-alert.js +1 -109
- package/dist/components/cura-avatar.js +1 -112
- package/dist/components/cura-badge-counter.js +1 -9
- package/dist/components/cura-badge-distance.js +1 -73
- package/dist/components/cura-badge-dot.js +1 -73
- package/dist/components/cura-badge-pill.js +1 -9
- package/dist/components/cura-button-outline.js +1 -206
- package/dist/components/cura-button-select.js +1 -163
- package/dist/components/cura-button-transparent.js +1 -9
- package/dist/components/cura-button.js +1 -205
- package/dist/components/cura-calendar.js +1 -9
- package/dist/components/cura-card.js +1 -104
- package/dist/components/cura-checkbox.js +1 -286
- package/dist/components/cura-display.js +1 -128
- package/dist/components/cura-dropdown-search-category.js +1 -49
- package/dist/components/cura-dropdown-search-not-found.js +1 -48
- package/dist/components/cura-dropdown-search-option.js +1 -93
- package/dist/components/cura-dropdown-search.js +1 -445
- package/dist/components/cura-heading.js +1 -9
- package/dist/components/cura-icon.js +1 -9
- package/dist/components/cura-icons-view.js +1 -67
- package/dist/components/cura-input-date.js +1 -286
- package/dist/components/cura-input-text.js +1 -9
- package/dist/components/cura-label.js +1 -9
- package/dist/components/cura-loader-bar.js +1 -9
- package/dist/components/cura-loader-circle.js +1 -9
- package/dist/components/cura-modal.js +1 -181
- package/dist/components/cura-page-template.js +1 -50
- package/dist/components/cura-paragraph.js +1 -9
- package/dist/components/cura-progress-bar.js +1 -9
- package/dist/components/cura-radio.js +1 -249
- package/dist/components/cura-select-option.js +1 -9
- package/dist/components/cura-select.js +1 -9
- package/dist/components/cura-stepper-item.js +1 -9
- package/dist/components/cura-stepper.js +1 -205
- package/dist/components/cura-switch.js +1 -201
- package/dist/components/cura-tabs-button.js +1 -148
- package/dist/components/cura-tabs-group.js +1 -64
- package/dist/components/cura-tabs-transparent.js +1 -141
- package/dist/components/cura-tabs.js +1 -146
- package/dist/components/cura-toast.js +1 -162
- package/dist/components/cura-tooltip.js +1 -291
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -115
- package/dist/components/p-B2RN7oe_.js +1 -0
- package/dist/components/p-B8xnU6YS.js +1 -0
- package/dist/components/p-BSI2FkNn.js +1 -11
- package/dist/components/p-BSdkRryc.js +1 -0
- package/dist/components/p-BYA8glxD.js +1 -0
- package/dist/components/p-Bf21UQXV.js +1 -0
- package/dist/components/p-C7so9xnO.js +1 -0
- package/dist/components/p-CCkEqDZb.js +1 -0
- package/dist/components/p-CG1lz5DR.js +1 -0
- package/dist/components/p-CHcd-uKK.js +1 -11
- package/dist/components/p-CpmZ68rD.js +1 -0
- package/dist/components/p-D6xuYQiO.js +1 -0
- package/dist/components/p-D7WNwjv-.js +1 -0
- package/dist/components/p-DBXUEjWh.js +1 -0
- package/dist/components/p-DXlGQp3a.js +1 -0
- package/dist/components/p-Dot54hbB.js +1 -19
- package/dist/components/p-DxJedO3K.js +1 -0
- package/dist/components/p-fR02COZb.js +1 -0
- package/dist/components/p-fn4zJrKE.js +1 -0
- package/dist/cura/cura.esm.js +1 -2
- package/dist/cura/index.esm.js +1 -2
- package/dist/cura/p-1dc9c478.entry.js +1 -0
- package/dist/cura/p-27ba7ef5.entry.js +1 -0
- package/dist/cura/p-2db704a6.entry.js +1 -0
- package/dist/cura/p-2e2e2b4d.entry.js +1 -0
- package/dist/cura/p-31373db7.entry.js +1 -0
- package/dist/cura/p-3a3202f0.entry.js +1 -0
- package/dist/cura/p-42e72d12.entry.js +1 -0
- package/dist/cura/p-5357f7bd.entry.js +1 -0
- package/dist/cura/p-54624944.entry.js +1 -0
- package/dist/cura/p-582f8b72.entry.js +1 -0
- package/dist/cura/p-7965fe63.entry.js +1 -0
- package/dist/cura/p-964stZ3D.js +1 -2
- package/dist/cura/p-9de85de6.entry.js +1 -0
- package/dist/cura/p-BM8Akv15.js +1 -0
- package/dist/cura/p-BSI2FkNn.js +1 -2
- package/dist/cura/p-BTIDzOyO.js +1 -0
- package/dist/cura/p-BxFVLGIR.js +2 -0
- package/dist/cura/p-CHcd-uKK.js +1 -2
- package/dist/cura/p-DQopj-k5.js +1 -0
- package/dist/cura/p-DfJS7YqS.js +1 -0
- package/dist/cura/p-Dot54hbB.js +1 -2
- package/dist/cura/p-b14ae206.entry.js +1 -0
- package/dist/cura/p-b7369d04.entry.js +1 -0
- package/dist/cura/p-bf99e8bf.entry.js +1 -0
- package/dist/cura/p-c18d7f16.entry.js +1 -0
- package/dist/cura/p-c247c93b.entry.js +1 -0
- package/dist/cura/p-cbe8c690.entry.js +1 -0
- package/dist/cura/p-d2f670f6.entry.js +1 -0
- package/dist/cura/p-d5c6d2b4.entry.js +1 -0
- package/dist/cura/p-ddf4d240.entry.js +1 -0
- package/dist/cura/p-f534123f.entry.js +1 -0
- package/dist/cura/p-f911a6c5.entry.js +1 -0
- package/dist/cura/p-sjLA93YY.js +1 -2
- package/dist/esm/app-globals-B7bpkHH3.js +67 -0
- package/dist/esm/{cura-accordion_20.entry.js → cura-accordion_21.entry.js} +1956 -98
- package/dist/esm/cura-alert.entry.js +11 -11
- package/dist/esm/cura-badge-counter.entry.js +13 -10
- package/dist/esm/cura-badge-dot.entry.js +4 -7
- package/dist/esm/cura-badge-pill.entry.js +7 -8
- package/dist/esm/cura-button-outline.entry.js +15 -10
- package/dist/esm/cura-button-select.entry.js +10 -9
- package/dist/esm/cura-button.definitions-BSI2FkNn.js +0 -3
- package/dist/esm/cura-calendar.entry.js +12 -9
- package/dist/esm/cura-checkbox.entry.js +18 -11
- package/dist/esm/cura-display.entry.js +10 -9
- package/dist/esm/cura-dropdown-search-not-found.entry.js +4 -7
- package/dist/esm/cura-forms.definitions-Dot54hbB.js +0 -3
- package/dist/esm/cura-icon.definitions-sjLA93YY.js +0 -3
- package/dist/esm/cura-icons-view.entry.js +5 -8
- package/dist/esm/cura-input-date.entry.js +7 -8
- package/dist/esm/cura-loader-bar.entry.js +10 -9
- package/dist/esm/cura-modal.entry.js +19 -12
- package/dist/esm/cura-progress-bar_2.entry.js +6 -9
- package/dist/esm/cura-radio.entry.js +15 -10
- package/dist/esm/cura-stepper.entry.js +4 -7
- package/dist/esm/cura-switch.entry.js +13 -10
- package/dist/esm/cura-tabs-button.entry.js +7 -8
- package/dist/esm/cura-tabs-transparent.entry.js +7 -8
- package/dist/esm/cura-tabs.definitions-CHcd-uKK.js +0 -3
- package/dist/esm/{cura-theme-module-BPKQjAwN.js → cura-theme-module-BrK961-w.js} +3 -339
- package/dist/esm/cura-toast.entry.js +10 -9
- package/dist/esm/cura-tooltip.entry.js +4 -7
- package/dist/esm/cura.js +8 -8
- package/dist/esm/index-964stZ3D.js +0 -3
- package/dist/esm/{index-OdKytJIH.js → index-Ce1Pxw3V.js} +706 -579
- package/dist/esm/index.js +3 -4
- package/dist/esm/loader.js +7 -7
- package/dist/esm/static-DfJS7YqS.js +86 -0
- package/dist/esm/theme-legacy-default-BTIDzOyO.js +257 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search.d.ts +2 -0
- package/dist/types/components/forms/cura-select/cura-select.d.ts +21 -0
- package/dist/types/components.d.ts +559 -85
- package/dist/types/stencil-public-runtime.d.ts +169 -11
- package/package.json +4 -3
- package/dist/cjs/cura-accordion_20.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-badge-counter.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-badge-counter.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-badge-dot.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-badge-dot.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-badge-pill.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-badge-pill.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-button-outline.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-button-select.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-button-select.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +0 -1
- package/dist/cjs/cura-calendar.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-calendar.entry.cjs.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/cjs/cura-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-display.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-display.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +0 -1
- package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +0 -1
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-icons-view.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-input-date.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-input-date.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-loader-bar.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-stepper.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tabs-button.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-tabs-button.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +0 -1
- package/dist/cjs/cura-theme-module-CJkmAxBA.js +0 -574
- package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +0 -1
- package/dist/cjs/cura-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/cura.cjs.js.map +0 -1
- package/dist/cjs/index-BK9MSAiE.js.map +0 -1
- package/dist/cjs/index-EyP6Zlkd.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/collection/api/cura-api.js.map +0 -1
- package/dist/collection/api/cura-api.type.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
- package/dist/collection/api/theme-presets/static.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-legacy-default.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-perinatal-temporary.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-richet.js.map +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +0 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +0 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button.definitions.js.map +0 -1
- package/dist/collection/components/cura-alert/cura-alert.js.map +0 -1
- package/dist/collection/components/cura-alert/cura-alert.stories.js.map +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js.map +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +0 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js.map +0 -1
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +0 -1
- package/dist/collection/components/cura-card/cura-card.js.map +0 -1
- package/dist/collection/components/cura-card/cura-card.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.stories.js.map +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +0 -1
- package/dist/collection/components/cura-modal/cura-modal.js.map +0 -1
- package/dist/collection/components/cura-modal/cura-modal.stories.js.map +0 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-stepper.stories.js.map +0 -1
- package/dist/collection/components/cura-stepper/stepper.type.js.map +0 -1
- package/dist/collection/components/cura-toast/cura-toast.js.map +0 -1
- package/dist/collection/components/cura-toast/cura-toast.stories.js.map +0 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +0 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +0 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-forms.definitions.js.map +0 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +0 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +0 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +0 -1
- package/dist/collection/components/forms/cura-label/cura-label.js.map +0 -1
- package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js.map +0 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-select/cura-select.js.map +0 -1
- package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +0 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js.map +0 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs.definitions.js.map +0 -1
- package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
- package/dist/collection/components/text/cura-display/cura-display.stories.js.map +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/rededor-cura-start.js.map +0 -1
- package/dist/collection/utils/FixedElementScrollBehavior.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/cura-accordion-item.js.map +0 -1
- package/dist/components/cura-accordion.js.map +0 -1
- package/dist/components/cura-alert.js.map +0 -1
- package/dist/components/cura-avatar.js.map +0 -1
- package/dist/components/cura-badge-counter.js.map +0 -1
- package/dist/components/cura-badge-distance.js.map +0 -1
- package/dist/components/cura-badge-dot.js.map +0 -1
- package/dist/components/cura-badge-pill.js.map +0 -1
- package/dist/components/cura-button-outline.js.map +0 -1
- package/dist/components/cura-button-select.js.map +0 -1
- package/dist/components/cura-button-transparent.js.map +0 -1
- package/dist/components/cura-button.js.map +0 -1
- package/dist/components/cura-calendar.js.map +0 -1
- package/dist/components/cura-card.js.map +0 -1
- package/dist/components/cura-checkbox.js.map +0 -1
- package/dist/components/cura-display.js.map +0 -1
- package/dist/components/cura-dropdown-search-category.js.map +0 -1
- package/dist/components/cura-dropdown-search-not-found.js.map +0 -1
- package/dist/components/cura-dropdown-search-option.js.map +0 -1
- package/dist/components/cura-dropdown-search.js.map +0 -1
- package/dist/components/cura-heading.js.map +0 -1
- package/dist/components/cura-icon.js.map +0 -1
- package/dist/components/cura-icons-view.js.map +0 -1
- package/dist/components/cura-input-date.js.map +0 -1
- package/dist/components/cura-input-text.js.map +0 -1
- package/dist/components/cura-label.js.map +0 -1
- package/dist/components/cura-loader-bar.js.map +0 -1
- package/dist/components/cura-loader-circle.js.map +0 -1
- package/dist/components/cura-modal.js.map +0 -1
- package/dist/components/cura-page-template.js.map +0 -1
- package/dist/components/cura-paragraph.js.map +0 -1
- package/dist/components/cura-progress-bar.js.map +0 -1
- package/dist/components/cura-radio.js.map +0 -1
- package/dist/components/cura-select-option.js.map +0 -1
- package/dist/components/cura-select.js.map +0 -1
- package/dist/components/cura-stepper-item.js.map +0 -1
- package/dist/components/cura-stepper.js.map +0 -1
- package/dist/components/cura-switch.js.map +0 -1
- package/dist/components/cura-tabs-button.js.map +0 -1
- package/dist/components/cura-tabs-group.js.map +0 -1
- package/dist/components/cura-tabs-transparent.js.map +0 -1
- package/dist/components/cura-tabs.js.map +0 -1
- package/dist/components/cura-toast.js.map +0 -1
- package/dist/components/cura-tooltip.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-B5aO1chh.js +0 -85
- package/dist/components/p-B5aO1chh.js.map +0 -1
- package/dist/components/p-BGnJiNyu.js +0 -7032
- package/dist/components/p-BGnJiNyu.js.map +0 -1
- package/dist/components/p-BHEafDKD.js +0 -127
- package/dist/components/p-BHEafDKD.js.map +0 -1
- package/dist/components/p-BRDqwZ4N.js +0 -187
- package/dist/components/p-BRDqwZ4N.js.map +0 -1
- package/dist/components/p-BSI2FkNn.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-C72aF-gL.js +0 -99
- package/dist/components/p-C72aF-gL.js.map +0 -1
- package/dist/components/p-CHcd-uKK.js.map +0 -1
- package/dist/components/p-CgMS6FUK.js +0 -4137
- package/dist/components/p-CgMS6FUK.js.map +0 -1
- package/dist/components/p-D1cPOZpG.js +0 -2617
- package/dist/components/p-D1cPOZpG.js.map +0 -1
- package/dist/components/p-DI4g-ZH4.js +0 -101
- package/dist/components/p-DI4g-ZH4.js.map +0 -1
- package/dist/components/p-DR1RHrEX.js +0 -120
- package/dist/components/p-DR1RHrEX.js.map +0 -1
- package/dist/components/p-DaPc6Dxl.js +0 -125
- package/dist/components/p-DaPc6Dxl.js.map +0 -1
- package/dist/components/p-Dot54hbB.js.map +0 -1
- package/dist/components/p-DpIu_Oxz.js +0 -86
- package/dist/components/p-DpIu_Oxz.js.map +0 -1
- package/dist/components/p-Dqm2sAwv.js +0 -58
- package/dist/components/p-Dqm2sAwv.js.map +0 -1
- package/dist/components/p-FTSrgi0q.js +0 -51
- package/dist/components/p-FTSrgi0q.js.map +0 -1
- package/dist/components/p-KIQMkSRF.js +0 -64
- package/dist/components/p-KIQMkSRF.js.map +0 -1
- package/dist/components/p-cOEGtL9C.js +0 -131
- package/dist/components/p-cOEGtL9C.js.map +0 -1
- package/dist/cura/cura-alert.entry.esm.js.map +0 -1
- package/dist/cura/cura-badge-counter.entry.esm.js.map +0 -1
- package/dist/cura/cura-badge-dot.entry.esm.js.map +0 -1
- package/dist/cura/cura-badge-pill.entry.esm.js.map +0 -1
- package/dist/cura/cura-button-outline.entry.esm.js.map +0 -1
- package/dist/cura/cura-button-select.entry.esm.js.map +0 -1
- package/dist/cura/cura-calendar.entry.esm.js.map +0 -1
- package/dist/cura/cura-card.entry.esm.js.map +0 -1
- package/dist/cura/cura-checkbox.entry.esm.js.map +0 -1
- package/dist/cura/cura-display.entry.esm.js.map +0 -1
- package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +0 -1
- package/dist/cura/cura-icons-view.entry.esm.js.map +0 -1
- package/dist/cura/cura-input-date.entry.esm.js.map +0 -1
- package/dist/cura/cura-loader-bar.entry.esm.js.map +0 -1
- package/dist/cura/cura-modal.entry.esm.js.map +0 -1
- package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +0 -1
- package/dist/cura/cura-radio.entry.esm.js.map +0 -1
- package/dist/cura/cura-stepper.entry.esm.js.map +0 -1
- package/dist/cura/cura-switch.entry.esm.js.map +0 -1
- package/dist/cura/cura-tabs-button.entry.esm.js.map +0 -1
- package/dist/cura/cura-tabs-transparent.entry.esm.js.map +0 -1
- package/dist/cura/cura-toast.entry.esm.js.map +0 -1
- package/dist/cura/cura-tooltip.entry.esm.js.map +0 -1
- package/dist/cura/cura.esm.js.map +0 -1
- package/dist/cura/index.esm.js.map +0 -1
- package/dist/cura/loader.esm.js.map +0 -1
- package/dist/cura/p-077019da.entry.js +0 -2
- package/dist/cura/p-077019da.entry.js.map +0 -1
- package/dist/cura/p-07783235.entry.js +0 -2
- package/dist/cura/p-07783235.entry.js.map +0 -1
- package/dist/cura/p-090e297c.entry.js +0 -2
- package/dist/cura/p-090e297c.entry.js.map +0 -1
- package/dist/cura/p-16c0b52c.entry.js +0 -2
- package/dist/cura/p-16c0b52c.entry.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-32015dcc.entry.js +0 -2
- package/dist/cura/p-32015dcc.entry.js.map +0 -1
- package/dist/cura/p-32f94709.entry.js +0 -2
- package/dist/cura/p-32f94709.entry.js.map +0 -1
- package/dist/cura/p-3d6040e2.entry.js +0 -2
- package/dist/cura/p-3d6040e2.entry.js.map +0 -1
- package/dist/cura/p-4ac578a6.entry.js +0 -2
- package/dist/cura/p-4ac578a6.entry.js.map +0 -1
- package/dist/cura/p-4bde448e.entry.js +0 -2
- package/dist/cura/p-4bde448e.entry.js.map +0 -1
- package/dist/cura/p-5ed7ce95.entry.js +0 -2
- package/dist/cura/p-5ed7ce95.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-7586fd07.entry.js +0 -2
- package/dist/cura/p-7586fd07.entry.js.map +0 -1
- package/dist/cura/p-76cbb798.entry.js +0 -2
- package/dist/cura/p-76cbb798.entry.js.map +0 -1
- package/dist/cura/p-7fd143aa.entry.js +0 -2
- package/dist/cura/p-7fd143aa.entry.js.map +0 -1
- package/dist/cura/p-8c83f259.entry.js +0 -2
- package/dist/cura/p-8c83f259.entry.js.map +0 -1
- package/dist/cura/p-95cd7918.entry.js +0 -2
- package/dist/cura/p-95cd7918.entry.js.map +0 -1
- package/dist/cura/p-964stZ3D.js.map +0 -1
- package/dist/cura/p-9ef5444e.entry.js +0 -2
- package/dist/cura/p-9ef5444e.entry.js.map +0 -1
- package/dist/cura/p-BPKQjAwN.js +0 -2
- package/dist/cura/p-BPKQjAwN.js.map +0 -1
- package/dist/cura/p-BSI2FkNn.js.map +0 -1
- package/dist/cura/p-CHcd-uKK.js.map +0 -1
- package/dist/cura/p-Dot54hbB.js.map +0 -1
- package/dist/cura/p-PPMZr_VE.js +0 -3
- package/dist/cura/p-PPMZr_VE.js.map +0 -1
- package/dist/cura/p-c6f240f0.entry.js +0 -2
- package/dist/cura/p-c6f240f0.entry.js.map +0 -1
- package/dist/cura/p-ceb646df.entry.js +0 -2
- package/dist/cura/p-ceb646df.entry.js.map +0 -1
- package/dist/cura/p-d040f8b9.entry.js +0 -2
- package/dist/cura/p-d040f8b9.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-f9af3a3b.entry.js +0 -2
- package/dist/cura/p-f9af3a3b.entry.js.map +0 -1
- package/dist/cura/p-sjLA93YY.js.map +0 -1
- package/dist/esm/cura-accordion_20.entry.js.map +0 -1
- package/dist/esm/cura-alert.entry.js.map +0 -1
- package/dist/esm/cura-badge-counter.entry.js.map +0 -1
- package/dist/esm/cura-badge-dot.entry.js.map +0 -1
- package/dist/esm/cura-badge-pill.entry.js.map +0 -1
- package/dist/esm/cura-button-outline.entry.js.map +0 -1
- package/dist/esm/cura-button-select.entry.js.map +0 -1
- package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +0 -1
- package/dist/esm/cura-calendar.entry.js.map +0 -1
- package/dist/esm/cura-card.entry.js +0 -79
- package/dist/esm/cura-card.entry.js.map +0 -1
- package/dist/esm/cura-checkbox.entry.js.map +0 -1
- package/dist/esm/cura-display.entry.js.map +0 -1
- package/dist/esm/cura-dropdown-search-not-found.entry.js.map +0 -1
- package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +0 -1
- package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +0 -1
- package/dist/esm/cura-icons-view.entry.js.map +0 -1
- package/dist/esm/cura-input-date.entry.js.map +0 -1
- package/dist/esm/cura-loader-bar.entry.js.map +0 -1
- package/dist/esm/cura-modal.entry.js.map +0 -1
- package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +0 -1
- package/dist/esm/cura-progress-bar_2.entry.js.map +0 -1
- package/dist/esm/cura-radio.entry.js.map +0 -1
- package/dist/esm/cura-stepper.entry.js.map +0 -1
- package/dist/esm/cura-switch.entry.js.map +0 -1
- package/dist/esm/cura-tabs-button.entry.js.map +0 -1
- package/dist/esm/cura-tabs-transparent.entry.js.map +0 -1
- package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +0 -1
- package/dist/esm/cura-theme-module-BPKQjAwN.js.map +0 -1
- package/dist/esm/cura-toast.entry.js.map +0 -1
- package/dist/esm/cura-tooltip.entry.js.map +0 -1
- package/dist/esm/cura.js.map +0 -1
- package/dist/esm/index-964stZ3D.js.map +0 -1
- package/dist/esm/index-OdKytJIH.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host,
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-Ce1Pxw3V.js';
|
|
2
2
|
import { l as labelSizes } from './cura-button.definitions-BSI2FkNn.js';
|
|
3
|
-
import { S as Static } from './
|
|
3
|
+
import { S as Static } from './static-DfJS7YqS.js';
|
|
4
4
|
import { i as iconSizes } from './cura-icon.definitions-sjLA93YY.js';
|
|
5
5
|
import { l as labelSizes$1 } from './cura-tabs.definitions-CHcd-uKK.js';
|
|
6
|
+
import './theme-legacy-default-BTIDzOyO.js';
|
|
6
7
|
|
|
7
|
-
const curaAccordionCss =
|
|
8
|
+
const curaAccordionCss = () => `:host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}`;
|
|
8
9
|
|
|
9
10
|
const CuraAccordion = class {
|
|
10
11
|
constructor(hostRef) {
|
|
@@ -106,12 +107,14 @@ const CuraAccordion = class {
|
|
|
106
107
|
}
|
|
107
108
|
get host() { return getElement(this); }
|
|
108
109
|
static get watchers() { return {
|
|
109
|
-
"color": [
|
|
110
|
+
"color": [{
|
|
111
|
+
"handleChangeColor": 0
|
|
112
|
+
}]
|
|
110
113
|
}; }
|
|
111
114
|
};
|
|
112
|
-
CuraAccordion.style = curaAccordionCss;
|
|
115
|
+
CuraAccordion.style = curaAccordionCss();
|
|
113
116
|
|
|
114
|
-
const curaAccordionItemCss =
|
|
117
|
+
const curaAccordionItemCss = () => `:host{display:block}:host .accordion-item{width:100%}:host .accordion-item::after{content:"";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item:hover:not(.active)::after{content:"";display:block;border-top:solid 1px var(--acc-color-icon-hover);width:100%}:host .accordion-item .label{display:flex;flex-direction:column}:host .accordion-item .label .label-container{display:flex;flex-grow:1;justify-content:space-between;align-items:center;gap:calc(var(--cura-spacing-base) * 3px);padding:calc(var(--cura-spacing-base) * 3px);word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular)}:host .accordion-item .label .label-container .label-content{display:flex;justify-content:center;align-items:center;gap:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item .label .label-container .label-content cura-icon{--color:var(--acc-color) !important}:host .accordion-item .label .label-container .label-content cura-heading{--color-body:var(--acc-color) !important}:host .accordion-item .label .label-container cura-icon{--color:var(--acc-color-icon) !important;margin-right:4px}:host .accordion-item .label .label-container:hover cura-heading{--color-body:var(--acc-color-hover) !important}:host .accordion-item .label .label-container:hover cura-icon{--color:var(--acc-color-icon-hover) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;transition:max-height 0.25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item.inverted:hover:not(.active)::after{content:"";display:block;border-top:solid 1px var(--acc-color-icon-hover-inverted);width:100%}:host .accordion-item.inverted .label .label-container cura-heading{--color-body:var(--acc-color-inverted) !important}:host .accordion-item.inverted .label .label-container cura-icon{--color:var(--acc-color-icon-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-heading{--color-body:var(--acc-color-hover-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color:var(--acc-color-icon-hover-inverted) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;transition:max-height 0.5s ease 0.14s}@media (min-width: 769px) and (max-width: 992px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 993px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}`;
|
|
115
118
|
|
|
116
119
|
const CuraAccordionItem = class {
|
|
117
120
|
constructor(hostRef) {
|
|
@@ -164,7 +167,7 @@ const CuraAccordionItem = class {
|
|
|
164
167
|
return (h(Host, { key: '3dd53ab4a597b1726045ec4d3ed066c6c30050d0', slot: "accordion-item" }, h("div", { key: '209291c7c9b587ac546e8b9e40b7d94a11a2489e', class: this.getClasses(), style: this.styles }, h("div", { key: '9c2de1103c7f30bc9d2cb0a86fc660c98b94be84', class: "label", onClick: e => this.accordionItemClick(e) }, h("div", { key: '052a8be2c00edf3907e49970120d9b65937ab031', class: "label-container" }, h("div", { key: 'da543cdbcb0c0d5f691c3d2fcabfbfc9ec46f506', class: "label-content" }, this.renderIcon(), h("cura-heading", { key: 'f587de080f2c1779ffacf0b557827c24edf5e1ee', size: "small", level: this.level, weight: 'bold', "margin-block": "0", color: "neutral-black" }, this.label)), h("cura-icon", { key: '611b48e32dfd7056a563aab56401feb3c8febee2', name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: "neutral-black" }))), h("div", { key: 'e1d5e606f3e9415570a2a5c2ba3d96264d430bd0', class: 'content' }, h("div", { key: '62b76ef21093a4d051120e2502936049a186c36a', class: "content-wrapper" }, h("slot", { key: '646b3d0163edf473c1a2e824f251f4db85b2fc18' }))))));
|
|
165
168
|
}
|
|
166
169
|
};
|
|
167
|
-
CuraAccordionItem.style = curaAccordionItemCss;
|
|
170
|
+
CuraAccordionItem.style = curaAccordionItemCss();
|
|
168
171
|
|
|
169
172
|
const avatarSizes = {
|
|
170
173
|
'80': { border: 2.5 },
|
|
@@ -173,7 +176,7 @@ const avatarSizes = {
|
|
|
173
176
|
'24': { border: 1.75 },
|
|
174
177
|
};
|
|
175
178
|
|
|
176
|
-
const curaAvatarCss =
|
|
179
|
+
const curaAvatarCss = () => `:host{display:inline-flex}:host .conteiner{display:flex;box-sizing:border-box;justify-content:center;align-items:center;width:var(--size);height:var(--size);border:var(--border) solid var(--border-color);border-radius:var(--border-radius);background:var(--background-color);overflow:hidden}:host .conteiner.floating{box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host .conteiner img{outline:none;object-fit:contain;width:100%;height:100%}`;
|
|
177
180
|
|
|
178
181
|
const CuraAvatar = class {
|
|
179
182
|
constructor(hostRef) {
|
|
@@ -236,12 +239,14 @@ const CuraAvatar = class {
|
|
|
236
239
|
}
|
|
237
240
|
get host() { return getElement(this); }
|
|
238
241
|
static get watchers() { return {
|
|
239
|
-
"size": [
|
|
242
|
+
"size": [{
|
|
243
|
+
"sizeHandler": 0
|
|
244
|
+
}]
|
|
240
245
|
}; }
|
|
241
246
|
};
|
|
242
|
-
CuraAvatar.style = curaAvatarCss;
|
|
247
|
+
CuraAvatar.style = curaAvatarCss();
|
|
243
248
|
|
|
244
|
-
const curaBadgeDistanceCss =
|
|
249
|
+
const curaBadgeDistanceCss = () => `:host .container{display:flex;flex-direction:column;justify-content:center;align-items:center;width:calc(var(--cura-spacing-base) * 10px);height:calc(var(--cura-spacing-base) * 10px);border-radius:calc(var(--cura-spacing-base) * 1px);background:var(--neutral-pale)}`;
|
|
245
250
|
|
|
246
251
|
const CuraDistance = class {
|
|
247
252
|
constructor(hostRef) {
|
|
@@ -272,12 +277,14 @@ const CuraDistance = class {
|
|
|
272
277
|
};
|
|
273
278
|
}
|
|
274
279
|
static get watchers() { return {
|
|
275
|
-
"distance": [
|
|
280
|
+
"distance": [{
|
|
281
|
+
"formatDistance": 0
|
|
282
|
+
}]
|
|
276
283
|
}; }
|
|
277
284
|
};
|
|
278
|
-
CuraDistance.style = curaBadgeDistanceCss;
|
|
285
|
+
CuraDistance.style = curaBadgeDistanceCss();
|
|
279
286
|
|
|
280
|
-
const curaButtonCss =
|
|
287
|
+
const curaButtonCss = () => `:host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:var(--color-base-neutral-purewhite);box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button::before,:host a::before{content:"";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:2px solid transparent;border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading)::before,:host a:not(.disabled):not(.isLoading)::before{border:2px solid var(--color-base-color-light)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{background:var(--color-base-color-light);box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host button:not(.disabled):not(.isLoading):hover::before,:host a:not(.disabled):not(.isLoading):hover::before{border-color:var(--color-dark-color-base)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark-color-light)}:host button:not(.isLoading):not(.disabled):active::before,:host a:not(.isLoading):not(.disabled):active::before{border-color:var(--color-dark-color-light)}:host button:hover,:host a:hover{box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16)}:host button.medium:hover,:host a.medium:hover{box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16)}:host button.small:hover,:host a.small:hover{box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16)}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{box-shadow:none !important}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, "left")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-pale-neutral-black)}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}`;
|
|
281
288
|
|
|
282
289
|
const CuraButton = class {
|
|
283
290
|
constructor(hostRef) {
|
|
@@ -392,12 +399,12 @@ const CuraButton = class {
|
|
|
392
399
|
return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: this.getSymbolColor() });
|
|
393
400
|
}
|
|
394
401
|
getSymbolColor() {
|
|
395
|
-
if (this.isLoading && this.fontColor === 'light' ? 'neutral-white' : 'neutral-black')
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
402
|
+
// if (this.isLoading && this.fontColor === 'light' ? 'neutral-white' : 'neutral-black')
|
|
403
|
+
return this.disabled
|
|
404
|
+
? 'neutral-dark'
|
|
405
|
+
: this.fontColor === 'light'
|
|
406
|
+
? 'neutral-white'
|
|
407
|
+
: 'neutral-black';
|
|
401
408
|
}
|
|
402
409
|
handleClick(e) {
|
|
403
410
|
if (this.disabled || this.isLoading) {
|
|
@@ -414,17 +421,21 @@ const CuraButton = class {
|
|
|
414
421
|
render() {
|
|
415
422
|
const symbolColor = this.getSymbolColor();
|
|
416
423
|
const labelSize = labelSizes[this.size] || labelSizes["default"];
|
|
417
|
-
return (h(Host, { key: '
|
|
424
|
+
return (h(Host, { key: '7f9528e42c3c38a3aed09ac8bbe669aabde4c0d9', role: this.href ? 'link' : this.type, "aria-disabled": this.disabled }, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { class: "label", size: labelSize, lineHeight: 'normal', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { class: "label", size: labelSize, lineHeight: 'normal', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor })))));
|
|
418
425
|
}
|
|
419
426
|
static get formAssociated() { return true; }
|
|
420
427
|
static get watchers() { return {
|
|
421
|
-
"background": [
|
|
422
|
-
|
|
428
|
+
"background": [{
|
|
429
|
+
"setColors": 0
|
|
430
|
+
}],
|
|
431
|
+
"color": [{
|
|
432
|
+
"setColors": 0
|
|
433
|
+
}]
|
|
423
434
|
}; }
|
|
424
435
|
};
|
|
425
|
-
CuraButton.style = curaButtonCss;
|
|
436
|
+
CuraButton.style = curaButtonCss();
|
|
426
437
|
|
|
427
|
-
const curaButtonTransparentCss =
|
|
438
|
+
const curaButtonTransparentCss = () => `:host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, "left")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}`;
|
|
428
439
|
|
|
429
440
|
const CuraButtonTransparent = class {
|
|
430
441
|
constructor(hostRef) {
|
|
@@ -551,11 +562,87 @@ const CuraButtonTransparent = class {
|
|
|
551
562
|
}
|
|
552
563
|
static get formAssociated() { return true; }
|
|
553
564
|
static get watchers() { return {
|
|
554
|
-
"fontColor": [
|
|
555
|
-
|
|
565
|
+
"fontColor": [{
|
|
566
|
+
"getSymbolColor": 0
|
|
567
|
+
}],
|
|
568
|
+
"color": [{
|
|
569
|
+
"getSymbolColor": 0
|
|
570
|
+
}]
|
|
556
571
|
}; }
|
|
557
572
|
};
|
|
558
|
-
CuraButtonTransparent.style = curaButtonTransparentCss;
|
|
573
|
+
CuraButtonTransparent.style = curaButtonTransparentCss();
|
|
574
|
+
|
|
575
|
+
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}`;
|
|
576
|
+
|
|
577
|
+
const CuraCard = class {
|
|
578
|
+
constructor(hostRef) {
|
|
579
|
+
registerInstance(this, hostRef);
|
|
580
|
+
/**
|
|
581
|
+
* Determines whether the card should have padding.
|
|
582
|
+
* @type {boolean}
|
|
583
|
+
* @default false
|
|
584
|
+
*/
|
|
585
|
+
this.hasPadding = true;
|
|
586
|
+
/**
|
|
587
|
+
* Determines whether the card should have a shadow effect.
|
|
588
|
+
* @type {boolean}
|
|
589
|
+
* @default false
|
|
590
|
+
*/
|
|
591
|
+
this.hasShadow = false;
|
|
592
|
+
/**
|
|
593
|
+
* Sets the type of the card background.
|
|
594
|
+
* - 'solid': A solid background.
|
|
595
|
+
* - 'transparent': A transparent background.
|
|
596
|
+
* @type {'solid' | 'transparent'}
|
|
597
|
+
* @default 'solid'
|
|
598
|
+
*/
|
|
599
|
+
this.type = 'solid';
|
|
600
|
+
/**
|
|
601
|
+
* Sets the color mode of the card.
|
|
602
|
+
* - 'light': Light mode for the card.
|
|
603
|
+
* - 'dark': Dark mode for the card.
|
|
604
|
+
* @type {'light' | 'dark'}
|
|
605
|
+
* @default 'light'
|
|
606
|
+
*/
|
|
607
|
+
this.colorMode = 'light';
|
|
608
|
+
/**
|
|
609
|
+
* The target attribute for the link.
|
|
610
|
+
* Applicable only if `href` is set.
|
|
611
|
+
* @type {string}
|
|
612
|
+
* @default '_self'
|
|
613
|
+
*/
|
|
614
|
+
this.target = '_self';
|
|
615
|
+
this.styles = {};
|
|
616
|
+
}
|
|
617
|
+
connectedCallback() {
|
|
618
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
619
|
+
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
620
|
+
this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
|
|
621
|
+
this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
|
|
622
|
+
this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
|
|
623
|
+
this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
|
|
624
|
+
this.styles['--neutral-black'] = window.CuraAPI.theme.colors.getColor(`neutral-black`);
|
|
625
|
+
this.styles['--neutral-black-shadow'] = window.CuraAPI.theme.colors.getColor(`neutral-black`, 0.16);
|
|
626
|
+
this.styles['--primary-lighter'] = window.CuraAPI.theme.colors.getColor(`primary-lighter`);
|
|
627
|
+
this.styles['--primary-base'] = window.CuraAPI.theme.colors.getColor(`primary-base`);
|
|
628
|
+
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
629
|
+
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
630
|
+
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
631
|
+
}
|
|
632
|
+
getClasses() {
|
|
633
|
+
const classes = {};
|
|
634
|
+
classes[this.type] = true;
|
|
635
|
+
classes[`cardLink`] = this.href;
|
|
636
|
+
classes[this.colorMode] = true;
|
|
637
|
+
classes[`hasPadding`] = this.hasPadding;
|
|
638
|
+
classes[`hasShadow`] = this.hasShadow;
|
|
639
|
+
return classes;
|
|
640
|
+
}
|
|
641
|
+
render() {
|
|
642
|
+
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)))));
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
CuraCard.style = curaCardCss();
|
|
559
646
|
|
|
560
647
|
function checkMobile() {
|
|
561
648
|
return (window === null || window === void 0 ? void 0 : window.innerWidth) < Static.breakpoints.medium.min;
|
|
@@ -648,7 +735,7 @@ class FixedElementScrollBehavior {
|
|
|
648
735
|
}
|
|
649
736
|
}
|
|
650
737
|
|
|
651
|
-
const curaDropdownSearchCss =
|
|
738
|
+
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
739
|
|
|
653
740
|
const CuraDropdownSearch = class {
|
|
654
741
|
constructor(hostRef) {
|
|
@@ -724,6 +811,13 @@ const CuraDropdownSearch = class {
|
|
|
724
811
|
this.setZoomHeight();
|
|
725
812
|
}, this.resizeTimeoutMs);
|
|
726
813
|
};
|
|
814
|
+
this.handleVisualViewportChange = () => {
|
|
815
|
+
if (!this.zoomState)
|
|
816
|
+
return;
|
|
817
|
+
if (this.viewportTimeout)
|
|
818
|
+
clearTimeout(this.viewportTimeout);
|
|
819
|
+
this.viewportTimeout = setTimeout(() => this.setZoomHeight(), this.resizeTimeoutMs);
|
|
820
|
+
};
|
|
727
821
|
this.handleFocus = () => {
|
|
728
822
|
if (this.focusTimeout)
|
|
729
823
|
clearTimeout(this.focusTimeout);
|
|
@@ -822,6 +916,10 @@ const CuraDropdownSearch = class {
|
|
|
822
916
|
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
823
917
|
window === null || window === void 0 ? void 0 : window.addEventListener('resize', this.handleWindowResize);
|
|
824
918
|
window === null || window === void 0 ? void 0 : window.addEventListener('orientationchange', this.handleWindowResize);
|
|
919
|
+
if (window === null || window === void 0 ? void 0 : window.visualViewport) {
|
|
920
|
+
window.visualViewport.addEventListener('resize', this.handleVisualViewportChange);
|
|
921
|
+
window.visualViewport.addEventListener('scroll', this.handleVisualViewportChange);
|
|
922
|
+
}
|
|
825
923
|
this.isMobile = checkMobile();
|
|
826
924
|
}
|
|
827
925
|
componentDidLoad() {
|
|
@@ -838,6 +936,10 @@ const CuraDropdownSearch = class {
|
|
|
838
936
|
removeAllListeners() {
|
|
839
937
|
window === null || window === void 0 ? void 0 : window.removeEventListener('resize', this.handleWindowResize);
|
|
840
938
|
window === null || window === void 0 ? void 0 : window.removeEventListener('orientationchange', this.handleWindowResize);
|
|
939
|
+
if (window === null || window === void 0 ? void 0 : window.visualViewport) {
|
|
940
|
+
window.visualViewport.removeEventListener('resize', this.handleVisualViewportChange);
|
|
941
|
+
window.visualViewport.removeEventListener('scroll', this.handleVisualViewportChange);
|
|
942
|
+
}
|
|
841
943
|
this.host.removeEventListener('actionclick', this.handleOptionActionClick);
|
|
842
944
|
this.host.removeEventListener('selectoption', this.handleSelectOption);
|
|
843
945
|
}
|
|
@@ -883,7 +985,9 @@ const CuraDropdownSearch = class {
|
|
|
883
985
|
if (this.valueTimeout)
|
|
884
986
|
clearTimeout(this.valueTimeout);
|
|
885
987
|
this.valueTimeout = setTimeout(() => {
|
|
886
|
-
|
|
988
|
+
var _a;
|
|
989
|
+
const value = (_a = this.value) !== null && _a !== void 0 ? _a : '';
|
|
990
|
+
this.termchange.emit(value === '' || value.length < this.searchminchars ? '' : value);
|
|
887
991
|
}, this.searchdelay || 300);
|
|
888
992
|
}
|
|
889
993
|
}
|
|
@@ -942,9 +1046,14 @@ const CuraDropdownSearch = class {
|
|
|
942
1046
|
setTimeout(() => { this.zoomState = false; }, 300);
|
|
943
1047
|
}
|
|
944
1048
|
setZoomHeight() {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
1049
|
+
if (window === null || window === void 0 ? void 0 : window.visualViewport) {
|
|
1050
|
+
const height = `${window.visualViewport.height}px`;
|
|
1051
|
+
const topOffset = `${window.visualViewport.offsetTop}px`;
|
|
1052
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--height': height, '--top-offset': topOffset });
|
|
1053
|
+
return;
|
|
1054
|
+
}
|
|
1055
|
+
const h = window ? `${window.innerHeight}px` : '100vh';
|
|
1056
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--height': h, '--top-offset': '0px' });
|
|
948
1057
|
}
|
|
949
1058
|
getClasses() {
|
|
950
1059
|
return {
|
|
@@ -961,13 +1070,13 @@ const CuraDropdownSearch = class {
|
|
|
961
1070
|
};
|
|
962
1071
|
}
|
|
963
1072
|
render() {
|
|
964
|
-
return (h(Host, { key: '
|
|
1073
|
+
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
1074
|
}
|
|
966
1075
|
get host() { return getElement(this); }
|
|
967
1076
|
};
|
|
968
|
-
CuraDropdownSearch.style = curaDropdownSearchCss;
|
|
1077
|
+
CuraDropdownSearch.style = curaDropdownSearchCss();
|
|
969
1078
|
|
|
970
|
-
const curaDropdownSearchCategoryCss =
|
|
1079
|
+
const curaDropdownSearchCategoryCss = () => `:host{display:block;box-sizing:border-box}:host .component-container{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;min-height:calc(var(--cura-spacing-base) * 10px);padding:0 calc(var(--cura-spacing-base) * 1px);border-bottom:1px solid var(--neutral-light);padding:calc(var(--cura-spacing-base) * 3px) 0}:host(:last-child) .component-container{border-bottom:none !important}`;
|
|
971
1080
|
|
|
972
1081
|
const CuraDropdownSearchCategory = class {
|
|
973
1082
|
constructor(hostRef) {
|
|
@@ -984,9 +1093,9 @@ const CuraDropdownSearchCategory = class {
|
|
|
984
1093
|
return (h(Host, { key: '511391a8c6c1c998b04e3093838173ae76549715' }, h("div", { key: '63da720bb3d2cc354ef5f1e9ceaf0f2f9c396f4e', class: "component-container", style: this.styles }, h("cura-heading", { key: 'ba003607e581d4abaf2e6d617f94e3174d04a4b3', size: 'xsmall', weight: 'bold', color: 'neutral-dark', marginBlock: '0', lineHeight: '1em' }, h("slot", { key: '80b14ff99b42a64082895db81b4dbe78cd7545a3' })))));
|
|
985
1094
|
}
|
|
986
1095
|
};
|
|
987
|
-
CuraDropdownSearchCategory.style = curaDropdownSearchCategoryCss;
|
|
1096
|
+
CuraDropdownSearchCategory.style = curaDropdownSearchCategoryCss();
|
|
988
1097
|
|
|
989
|
-
const curaDropdownSearchOptionCss =
|
|
1098
|
+
const curaDropdownSearchOptionCss = () => `:host{display:block;box-sizing:border-box}:host .component-container{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;min-height:calc(var(--cura-spacing-base) * 10px);padding:0 calc(var(--cura-spacing-base) * 1px);border-bottom:1px solid var(--neutral-light);transition:background-color 0.15s linear}:host .component-container:not(.selected):not(.not-selectable):has(.selectable-container:hover),:host .component-container:not(.selected):not(.not-selectable).highlighted{background-color:var(--neutral-white)}:host .selectable-container{flex:1;display:flex;align-items:center;justify-content:flex-start;padding:calc(var(--cura-spacing-base) * 3px) 0;min-height:calc(var(--cura-spacing-base) * 10px);min-width:0;gap:calc(var(--cura-spacing-base) * 1px);cursor:pointer}:host .selectable-container .content{flex:1;align-items:center;justify-content:flex-end;padding-right:calc(var(--cura-spacing-base) * 1px);min-width:0}:host .selectable-container ::slotted(cura-icon){--color:var(--neutral-dark) !important;margin:0 10px}:host .selectable-container ::slotted(cura-avatar){margin:0 calc(var(--cura-spacing-base) * 1px)}:host .selectable-container ::slotted(cura-heading),:host .selectable-container ::slotted(cura-paragraph){--margin-block:0 !important;--color-spot:var(--primary) !important}:host .selectable-container ::slotted(cura-heading){--color-body:var(--neutral-black) !important}:host .selectable-container ::slotted(cura-paragraph){--color-body:var(--neutral-dark) !important}:host .selected{background-color:var(--primary-lighter-50);border-bottom-color:var(--primary-light)}:host .selected .selectable-container{cursor:default}:host .selected .selectable-container ::slotted(cura-icon){--color:var(--primary) !important}:host .selected .selectable-container ::slotted(cura-heading){--color-body:var(--primary) !important}:host .actions-container{display:flex}:host .actions-container ::slotted(*){padding-left:calc(var(--cura-spacing-base) * 1px)}:host .not-selectable .selectable-container{cursor:default}:host(:last-child) .component-container{border-bottom:none !important}`;
|
|
990
1099
|
|
|
991
1100
|
const CuraDropdownSearchOption = class {
|
|
992
1101
|
constructor(hostRef) {
|
|
@@ -1047,9 +1156,9 @@ const CuraDropdownSearchOption = class {
|
|
|
1047
1156
|
return (h(Host, { key: '6168a95a628d07878f472c310390bf9c45bd5057' }, h("div", { key: '29763282f101a9fbe205c91e7b3c70fa51878e63', class: this.getClasses(), style: this.styles }, h("div", { key: '46bd7a250ad866b984e6f4184aa4800e89b741c9', class: "selectable-container", onClick: () => this.handleSelect() }, h("slot", { key: '77088405f3cc4f077e49a4266fb926348774d9e9', name: 'image' }), h("div", { key: '96baef2af4ffe7c5ec809a5adbd0512120b6c71c', class: "content" }, h("slot", { key: 'e41794e8eaff6bfe1516e88e8591ca915eb7ad3f' }))), h("div", { key: '991bca3b0956519b531d576a1738bc3f200cc73f', class: "actions-container", onClick: () => this.handleActionsClick() }, h("slot", { key: '098e8c29ab48ef8e0cfff2a48a31860eafb62487', name: 'actions' })))));
|
|
1048
1157
|
}
|
|
1049
1158
|
};
|
|
1050
|
-
CuraDropdownSearchOption.style = curaDropdownSearchOptionCss;
|
|
1159
|
+
CuraDropdownSearchOption.style = curaDropdownSearchOptionCss();
|
|
1051
1160
|
|
|
1052
|
-
const curaHeadingCss =
|
|
1161
|
+
const curaHeadingCss = () => `:host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.714em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.071em;letter-spacing:-0.58px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:calc(var(--line-height) + 20%)}:host h1.small.bold-weight,:host h1.small ::slotted(b),:host h1.small ::slotted(strong),:host h2.small.bold-weight,:host h2.small ::slotted(b),:host h2.small ::slotted(strong),:host h3.small.bold-weight,:host h3.small ::slotted(b),:host h3.small ::slotted(strong),:host h4.small.bold-weight,:host h4.small ::slotted(b),:host h4.small ::slotted(strong),:host h5.small.bold-weight,:host h5.small ::slotted(b),:host h5.small ::slotted(strong),:host h6.small.bold-weight,:host h6.small ::slotted(b),:host h6.small ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;font-weight:var(--font-weight-medium);letter-spacing:0.6px}:host h1.xsmall.bold-weight,:host h1.xsmall ::slotted(b),:host h1.xsmall ::slotted(strong),:host h2.xsmall.bold-weight,:host h2.xsmall ::slotted(b),:host h2.xsmall ::slotted(strong),:host h3.xsmall.bold-weight,:host h3.xsmall ::slotted(b),:host h3.xsmall ::slotted(strong),:host h4.xsmall.bold-weight,:host h4.xsmall ::slotted(b),:host h4.xsmall ::slotted(strong),:host h5.xsmall.bold-weight,:host h5.xsmall ::slotted(b),:host h5.xsmall ::slotted(strong),:host h6.xsmall.bold-weight,:host h6.xsmall ::slotted(b),:host h6.xsmall ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.textoverflow-single,:host h2.textoverflow-single,:host h3.textoverflow-single,:host h4.textoverflow-single,:host h5.textoverflow-single,:host h6.textoverflow-single{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}:host h1 ::slotted(b),:host h1 ::slotted(strong),:host h2 ::slotted(b),:host h2 ::slotted(strong),:host h3 ::slotted(b),:host h3 ::slotted(strong),:host h4 ::slotted(b),:host h4 ::slotted(strong),:host h5 ::slotted(b),:host h5 ::slotted(strong),:host h6 ::slotted(b),:host h6 ::slotted(strong){font-weight:var(--font-weight-medium)}:host h1 ::slotted(a),:host h2 ::slotted(a),:host h3 ::slotted(a),:host h4 ::slotted(a),:host h5 ::slotted(a),:host h6 ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-spot);text-underline-offset:10%;cursor:pointer}:host h1 ::slotted(u),:host h2 ::slotted(u),:host h3 ::slotted(u),:host h4 ::slotted(u),:host h5 ::slotted(u),:host h6 ::slotted(u){text-underline-offset:10%}:host h1 ::slotted(abbr),:host h2 ::slotted(abbr),:host h3 ::slotted(abbr),:host h4 ::slotted(abbr),:host h5 ::slotted(abbr),:host h6 ::slotted(abbr){color:var(--color-spot);text-decoration:underline dashed 1px var(--color-spot);text-underline-offset:10%;cursor:default}:host h1 ::slotted(i),:host h2 ::slotted(i),:host h3 ::slotted(i),:host h4 ::slotted(i),:host h5 ::slotted(i),:host h6 ::slotted(i){font-weight:var(--font-weight-medium)}:host h1 ::slotted(em),:host h2 ::slotted(em),:host h3 ::slotted(em),:host h4 ::slotted(em),:host h5 ::slotted(em),:host h6 ::slotted(em){color:var(--color-spot);font-weight:var(--font-weight-bold);font-style:normal}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em;letter-spacing:-0.66px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) + 3%);letter-spacing:0.72px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:calc(var(--line-height) + 5%);letter-spacing:-0.82px}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.929em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.714em;line-height:calc(var(--line-height) + 30%);letter-spacing:0%}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:1em;line-height:calc(var(--line-height) + 12.857%);letter-spacing:0.28px}}`;
|
|
1053
1162
|
|
|
1054
1163
|
const CuraHeading = class {
|
|
1055
1164
|
constructor(hostRef) {
|
|
@@ -1143,9 +1252,9 @@ const CuraHeading = class {
|
|
|
1143
1252
|
}
|
|
1144
1253
|
get host() { return getElement(this); }
|
|
1145
1254
|
};
|
|
1146
|
-
CuraHeading.style = curaHeadingCss;
|
|
1255
|
+
CuraHeading.style = curaHeadingCss();
|
|
1147
1256
|
|
|
1148
|
-
const curaIconCss =
|
|
1257
|
+
const curaIconCss = () => `:host{width:var(--size);height:var(--size);display:inline-block}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}`;
|
|
1149
1258
|
|
|
1150
1259
|
const CuraIcon = class {
|
|
1151
1260
|
constructor(hostRef) {
|
|
@@ -1178,12 +1287,18 @@ const CuraIcon = class {
|
|
|
1178
1287
|
}
|
|
1179
1288
|
get host() { return getElement(this); }
|
|
1180
1289
|
static get watchers() { return {
|
|
1181
|
-
"size": [
|
|
1182
|
-
|
|
1183
|
-
|
|
1290
|
+
"size": [{
|
|
1291
|
+
"sizeHandler": 0
|
|
1292
|
+
}],
|
|
1293
|
+
"color": [{
|
|
1294
|
+
"colorHandler": 0
|
|
1295
|
+
}],
|
|
1296
|
+
"disabled": [{
|
|
1297
|
+
"colorHandler": 0
|
|
1298
|
+
}]
|
|
1184
1299
|
}; }
|
|
1185
1300
|
};
|
|
1186
|
-
CuraIcon.style = curaIconCss;
|
|
1301
|
+
CuraIcon.style = curaIconCss();
|
|
1187
1302
|
|
|
1188
1303
|
/** Checks if value is string */
|
|
1189
1304
|
function isString(str) {
|
|
@@ -4828,7 +4943,7 @@ const maskOptions = {
|
|
|
4828
4943
|
},
|
|
4829
4944
|
};
|
|
4830
4945
|
|
|
4831
|
-
const curaInputTextCss = ":host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-input-group{width:100%;font-family:var(--font-family);text-align:left !important}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group cura-label{margin-bottom:8px}.cura-input-group .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}.cura-input-group .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}.cura-input-group .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group .cura-input-field cura-loader-circle{margin:0px 12px}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px;padding-top:6px}.cura-input-group .cura-input-field .clear-button{padding-right:12px;cursor:pointer}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group.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}.cura-input-group.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}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker) !important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.cura-input-group.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}.cura-input-group.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}.cura-input-group.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.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}.cura-input-group.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}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker) !important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.cura-input-group.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}.cura-input-group.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}.cura-input-group.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.cura-input-group:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.cura-input-group:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.cura-input-group.isLoading{cursor:wait}.cura-input-group.isLoading .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:var(--neutral-white) !important;border:2px solid var(--primary-base) !important}.cura-input-group.isLoading .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}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.isLoading .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.isLoading .cura-input-field input{cursor:wait;color:var(--primary-base) !important}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--primary-base) !important}.cura-input-group.readOnly[read-only] .cura-input-field{cursor:default}.cura-input-group.readOnly[read-only] .cura-input-field input{cursor:default}.cura-input-group.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}.cura-input-group.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}.cura-input-group.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.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}.cura-input-group.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}.cura-input-group.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.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}.cura-input-group.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}.cura-input-group.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-input-group.disabled .cura-input-field input{color:var(--neutral-medium)}.cura-input-group.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.cura-input-group.transparent{background-color:transparent;padding:0px;max-height:80px}.cura-input-group.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}.cura-input-group.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}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.cura-input-group.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.cura-input-group.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.cura-input-group.transparent .helper-text{margin-top:0px}.cura-input-group.transparent.transparent{display:flex;background-color:transparent;padding:0px;justify-content:start;align-items:center;max-height:80px;gap:4px}.cura-input-group.transparent.transparent .input-wrapper{display:flex;width:100%;flex-direction:column;justify-content:start}.cura-input-group.transparent.transparent cura-label{margin-bottom:4px;--color-body:var(--neutral-dark) !important}.cura-input-group.transparent.transparent.error cura-label{--color-body:var(--neutral-black) !important}.cura-input-group.transparent.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;overflow:hidden}.cura-input-group.transparent.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}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent.transparent .cura-input-field input{order:1;color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent.transparent .cura-input-field .clear-button{order:2;cursor:pointer;margin:0 20px 0 0;padding:0}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding:6px 0 0 0}.cura-input-group.transparent.transparent .cura-input-field cura-loader-circle{order:2;margin:0 20px 0 0}.cura-input-group.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}.cura-input-group.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}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker) !important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.cura-input-group.error.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}.cura-input-group.error.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}.cura-input-group.error.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.error.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.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}.cura-input-group.error.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}.cura-input-group.error.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.error.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.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}.cura-input-group.error.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}.cura-input-group.error.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.error:not(.transparent).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;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.cura-input-group.error:not(.transparent).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}.cura-input-group.error:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.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}.cura-input-group.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}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker) !important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.cura-input-group.success.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}.cura-input-group.success.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}.cura-input-group.success.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.success.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.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}.cura-input-group.success.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}.cura-input-group.success.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.success.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.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}.cura-input-group.success.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}.cura-input-group.success.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.success:not(.transparent).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;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.cura-input-group.success:not(.transparent).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}.cura-input-group.success:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}";
|
|
4946
|
+
const curaInputTextCss = () => `:host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-input-group{width:100%;font-family:var(--font-family);text-align:left !important}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group cura-label{margin-bottom:8px}.cura-input-group .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}.cura-input-group .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}.cura-input-group .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group .cura-input-field cura-loader-circle{margin:0px 12px}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px;padding-top:6px}.cura-input-group .cura-input-field .clear-button{padding-right:12px;cursor:pointer}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group.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}.cura-input-group.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}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker) !important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.cura-input-group.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}.cura-input-group.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}.cura-input-group.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.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}.cura-input-group.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}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker) !important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.cura-input-group.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}.cura-input-group.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}.cura-input-group.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.cura-input-group:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.cura-input-group:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.cura-input-group.isLoading{cursor:wait}.cura-input-group.isLoading .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:var(--neutral-white) !important;border:2px solid var(--primary-base) !important}.cura-input-group.isLoading .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}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.isLoading .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.isLoading .cura-input-field input{cursor:wait;color:var(--primary-base) !important}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--primary-base) !important}.cura-input-group.readOnly[read-only] .cura-input-field{cursor:default}.cura-input-group.readOnly[read-only] .cura-input-field input{cursor:default}.cura-input-group.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}.cura-input-group.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}.cura-input-group.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.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}.cura-input-group.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}.cura-input-group.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.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}.cura-input-group.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}.cura-input-group.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-input-group.disabled .cura-input-field input{color:var(--neutral-medium)}.cura-input-group.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.cura-input-group.transparent{background-color:transparent;padding:0px;max-height:80px}.cura-input-group.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}.cura-input-group.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}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.cura-input-group.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.cura-input-group.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.cura-input-group.transparent .helper-text{margin-top:0px}.cura-input-group.transparent.transparent{display:flex;background-color:transparent;padding:0px;justify-content:start;align-items:center;max-height:80px;gap:4px}.cura-input-group.transparent.transparent .input-wrapper{display:flex;width:100%;flex-direction:column;justify-content:start}.cura-input-group.transparent.transparent cura-label{margin-bottom:4px;--color-body:var(--neutral-dark) !important}.cura-input-group.transparent.transparent.error cura-label{--color-body:var(--neutral-black) !important}.cura-input-group.transparent.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;overflow:hidden}.cura-input-group.transparent.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}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent.transparent .cura-input-field input{order:1;color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent.transparent .cura-input-field .clear-button{order:2;cursor:pointer;margin:0 20px 0 0;padding:0}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding:6px 0 0 0}.cura-input-group.transparent.transparent .cura-input-field cura-loader-circle{order:2;margin:0 20px 0 0}.cura-input-group.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}.cura-input-group.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}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker) !important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.cura-input-group.error.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}.cura-input-group.error.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}.cura-input-group.error.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.error.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.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}.cura-input-group.error.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}.cura-input-group.error.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.error.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.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}.cura-input-group.error.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}.cura-input-group.error.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.error:not(.transparent).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;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.cura-input-group.error:not(.transparent).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}.cura-input-group.error:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.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}.cura-input-group.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}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker) !important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.cura-input-group.success.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}.cura-input-group.success.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}.cura-input-group.success.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.success.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.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}.cura-input-group.success.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}.cura-input-group.success.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.success.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.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}.cura-input-group.success.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}.cura-input-group.success.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.success:not(.transparent).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;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.cura-input-group.success:not(.transparent).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}.cura-input-group.success:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}`;
|
|
4832
4947
|
|
|
4833
4948
|
const CuraInputText = class {
|
|
4834
4949
|
constructor(hostRef) {
|
|
@@ -4942,9 +5057,10 @@ const CuraInputText = class {
|
|
|
4942
5057
|
* Callback to restore the switch state from the form.
|
|
4943
5058
|
*/
|
|
4944
5059
|
formStateRestoreCallback(state) {
|
|
5060
|
+
var _a;
|
|
4945
5061
|
this.value = state.value;
|
|
4946
5062
|
this.applyValueToMask();
|
|
4947
|
-
this.internals.setFormValue(this.value);
|
|
5063
|
+
(_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue(this.value);
|
|
4948
5064
|
}
|
|
4949
5065
|
/**
|
|
4950
5066
|
* Callback for form association.
|
|
@@ -4956,9 +5072,10 @@ const CuraInputText = class {
|
|
|
4956
5072
|
* Callback to reset the switch state when the form is reset.
|
|
4957
5073
|
*/
|
|
4958
5074
|
formResetCallback() {
|
|
5075
|
+
var _a, _b;
|
|
4959
5076
|
this.handleClearInput();
|
|
4960
|
-
this.internals.setValidity({});
|
|
4961
|
-
this.internals.setFormValue('');
|
|
5077
|
+
(_a = this.internals) === null || _a === void 0 ? void 0 : _a.setValidity({});
|
|
5078
|
+
(_b = this.internals) === null || _b === void 0 ? void 0 : _b.setFormValue('');
|
|
4962
5079
|
}
|
|
4963
5080
|
/**
|
|
4964
5081
|
* Callback to update the switch's disabled state when the form's disabled state changes.
|
|
@@ -5158,6 +5275,7 @@ const CuraInputText = class {
|
|
|
5158
5275
|
}
|
|
5159
5276
|
}
|
|
5160
5277
|
handleInputChange(event) {
|
|
5278
|
+
var _a;
|
|
5161
5279
|
const inputValue = event.target.value;
|
|
5162
5280
|
this.valueChange.emit(inputValue);
|
|
5163
5281
|
if (this.type === 'number') {
|
|
@@ -5166,7 +5284,7 @@ const CuraInputText = class {
|
|
|
5166
5284
|
else {
|
|
5167
5285
|
this.handleTextInputChange(inputValue);
|
|
5168
5286
|
}
|
|
5169
|
-
this.internals.setFormValue(this.value);
|
|
5287
|
+
(_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue(this.value);
|
|
5170
5288
|
}
|
|
5171
5289
|
handleNumberInputChange(inputValue) {
|
|
5172
5290
|
const numericValue = parseFloat(inputValue);
|
|
@@ -5199,23 +5317,37 @@ const CuraInputText = class {
|
|
|
5199
5317
|
e.preventDefault();
|
|
5200
5318
|
}
|
|
5201
5319
|
render() {
|
|
5202
|
-
return (h(Host, { key: '
|
|
5320
|
+
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
5321
|
}
|
|
5204
5322
|
static get formAssociated() { return true; }
|
|
5205
5323
|
get host() { return getElement(this); }
|
|
5206
5324
|
static get watchers() { return {
|
|
5207
|
-
"styles": [
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
"
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
"
|
|
5325
|
+
"styles": [{
|
|
5326
|
+
"connectedCallback": 0
|
|
5327
|
+
}],
|
|
5328
|
+
"size": [{
|
|
5329
|
+
"getClasses": 0
|
|
5330
|
+
}],
|
|
5331
|
+
"status": [{
|
|
5332
|
+
"renderIcon": 0
|
|
5333
|
+
}],
|
|
5334
|
+
"mode": [{
|
|
5335
|
+
"renderIcon": 0
|
|
5336
|
+
}],
|
|
5337
|
+
"maskPreset": [{
|
|
5338
|
+
"initializeMask": 0
|
|
5339
|
+
}],
|
|
5340
|
+
"maskRegex": [{
|
|
5341
|
+
"initializeMask": 0
|
|
5342
|
+
}],
|
|
5343
|
+
"maskAdvanced": [{
|
|
5344
|
+
"initializeMask": 0
|
|
5345
|
+
}]
|
|
5214
5346
|
}; }
|
|
5215
5347
|
};
|
|
5216
|
-
CuraInputText.style = curaInputTextCss;
|
|
5348
|
+
CuraInputText.style = curaInputTextCss();
|
|
5217
5349
|
|
|
5218
|
-
const curaLabelCss =
|
|
5350
|
+
const curaLabelCss = () => `:host{display:block;font-size:var(--font-size-base)}:host p{font-family:var(--font-family);font-size:1.143em;font-weight:var(--font-weight-medium);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.32px}:host p.bold-weight,:host p ::slotted(b),:host p ::slotted(strong),:host p ::slotted(u){font-weight:var(--font-weight-bold)}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) - 4%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 4%);letter-spacing:0.56px}:host p.xsmall{font-size:0.857em;line-height:calc(var(--line-height) - 17%);letter-spacing:0.72px}:host p.textoverflow-single{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}:host p ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%}:host p ::slotted(u){text-underline-offset:10%}:host p ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}`;
|
|
5219
5351
|
|
|
5220
5352
|
const CuraLabel = class {
|
|
5221
5353
|
constructor(hostRef) {
|
|
@@ -5296,13 +5428,17 @@ const CuraLabel = class {
|
|
|
5296
5428
|
}
|
|
5297
5429
|
get host() { return getElement(this); }
|
|
5298
5430
|
static get watchers() { return {
|
|
5299
|
-
"color": [
|
|
5300
|
-
|
|
5431
|
+
"color": [{
|
|
5432
|
+
"handleChangeColor": 0
|
|
5433
|
+
}],
|
|
5434
|
+
"spotColor": [{
|
|
5435
|
+
"handleChangeColor": 0
|
|
5436
|
+
}]
|
|
5301
5437
|
}; }
|
|
5302
5438
|
};
|
|
5303
|
-
CuraLabel.style = curaLabelCss;
|
|
5439
|
+
CuraLabel.style = curaLabelCss();
|
|
5304
5440
|
|
|
5305
|
-
const curaLoaderCircleCss =
|
|
5441
|
+
const curaLoaderCircleCss = () => `:host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);animation:rotate 0.7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:0.14}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}`;
|
|
5306
5442
|
|
|
5307
5443
|
const CuraLoaderCircle = class {
|
|
5308
5444
|
constructor(hostRef) {
|
|
@@ -5334,9 +5470,9 @@ const CuraLoaderCircle = class {
|
|
|
5334
5470
|
return (h(Host, { key: '09f72e4ec206571c1bfb4333a76da3113f2b386d', style: this.getStyles(), role: "progressbar" }, h("svg", { key: 'd446c093c9ae6c1ebca50e023f2eba592f37eb07', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '8d8bf0fefcb924af391977d672f777face8bf24f' }, h("circle", { key: 'd77eaba65fc61c265b7c495e95dae22d9732732b', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), h("path", { key: 'ab82247a03c327a6eac8f5c0770932e3520aa32c', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), h("defs", { key: '6291d976f90dd54aecaead32f8314e977dad4c3f' }, h("linearGradient", { key: '8f213ed3cb1e55f9aae79f18d43f414b48f45a19', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, h("stop", { key: 'c723178770cb0d49746a72fff6c9c8dc7fbb07b4' }), h("stop", { key: '07bb208a3ca3f3b7a317b1e2386dc9cf683fd155', offset: "1" }))))));
|
|
5335
5471
|
}
|
|
5336
5472
|
};
|
|
5337
|
-
CuraLoaderCircle.style = curaLoaderCircleCss;
|
|
5473
|
+
CuraLoaderCircle.style = curaLoaderCircleCss();
|
|
5338
5474
|
|
|
5339
|
-
const curaPageTemplateCss =
|
|
5475
|
+
const curaPageTemplateCss = () => `:host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:"sub-header" "header" "pre-content" "content-container" "post-body" "footer" "sub-footer"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 768px){:host .grid-template{padding:0px}}@media (min-width: 769px) and (max-width: 992px){:host .grid-template{padding:0px}}@media (min-width: 993px) and (max-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1921px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1921px;justify-self:center}}`;
|
|
5340
5476
|
|
|
5341
5477
|
const CuraPageTemplate = class {
|
|
5342
5478
|
constructor(hostRef) {
|
|
@@ -5358,9 +5494,9 @@ const CuraPageTemplate = class {
|
|
|
5358
5494
|
}
|
|
5359
5495
|
get host() { return getElement(this); }
|
|
5360
5496
|
};
|
|
5361
|
-
CuraPageTemplate.style = curaPageTemplateCss;
|
|
5497
|
+
CuraPageTemplate.style = curaPageTemplateCss();
|
|
5362
5498
|
|
|
5363
|
-
const curaParagraphCss =
|
|
5499
|
+
const curaParagraphCss = () => `:host{display:block;font-size:var(--font-size-base);min-width:0}:host p{font-family:var(--font-family);font-size:var(--font-size-base);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.28px;width:100%}:host p.large{font-size:1.214em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.48px}:host p.caption,:host p.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.6px}:host p.textoverflow-single{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}:host p ::slotted(b),:host p ::slotted(strong){font-weight:var(--font-weight-bold)}:host p ::slotted(a),:host p ::slotted(a:-webkit-any-link){font-weight:var(--font-weight-medium);color:var(--color-spot);text-underline-offset:10%}:host p ::slotted(u){font-weight:var(--font-weight-medium);text-underline-offset:10%}:host p ::slotted(i){font-style:italic}:host p ::slotted(em){font-weight:var(--font-weight-bold);color:var(--color-spot);font-style:normal}:host p ::slotted(abbr){color:var(--color-spot);text-decoration:underline dashed 1px var(--color-spot);text-underline-offset:10%;cursor:default}@media (min-width: 769px) and (max-width: 1920px){:host p{font-size:1.143em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.32px}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.56px}:host p.caption,:host p.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.72px}}@media (min-width: 1921px){:host p{font-size:1.429em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.large{font-size:1.714em;line-height:calc(var(--line-height) + 20%)}:host p.small{font-size:1.21em;line-height:calc(var(--line-height) + 5%);letter-spacing:0px}:host p.caption,:host p.xsmall{font-size:1em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.28px}}`;
|
|
5364
5500
|
|
|
5365
5501
|
const CuraParagraph = class {
|
|
5366
5502
|
constructor(hostRef) {
|
|
@@ -5430,9 +5566,1636 @@ const CuraParagraph = class {
|
|
|
5430
5566
|
}
|
|
5431
5567
|
get host() { return getElement(this); }
|
|
5432
5568
|
};
|
|
5433
|
-
CuraParagraph.style = curaParagraphCss;
|
|
5569
|
+
CuraParagraph.style = curaParagraphCss();
|
|
5570
|
+
|
|
5571
|
+
/**
|
|
5572
|
+
* Custom positioning reference element.
|
|
5573
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
5574
|
+
*/
|
|
5575
|
+
|
|
5576
|
+
const min = Math.min;
|
|
5577
|
+
const max = Math.max;
|
|
5578
|
+
const round = Math.round;
|
|
5579
|
+
const floor = Math.floor;
|
|
5580
|
+
const createCoords = v => ({
|
|
5581
|
+
x: v,
|
|
5582
|
+
y: v
|
|
5583
|
+
});
|
|
5584
|
+
const oppositeSideMap = {
|
|
5585
|
+
left: 'right',
|
|
5586
|
+
right: 'left',
|
|
5587
|
+
bottom: 'top',
|
|
5588
|
+
top: 'bottom'
|
|
5589
|
+
};
|
|
5590
|
+
function clamp(start, value, end) {
|
|
5591
|
+
return max(start, min(value, end));
|
|
5592
|
+
}
|
|
5593
|
+
function evaluate(value, param) {
|
|
5594
|
+
return typeof value === 'function' ? value(param) : value;
|
|
5595
|
+
}
|
|
5596
|
+
function getSide(placement) {
|
|
5597
|
+
return placement.split('-')[0];
|
|
5598
|
+
}
|
|
5599
|
+
function getAlignment(placement) {
|
|
5600
|
+
return placement.split('-')[1];
|
|
5601
|
+
}
|
|
5602
|
+
function getOppositeAxis(axis) {
|
|
5603
|
+
return axis === 'x' ? 'y' : 'x';
|
|
5604
|
+
}
|
|
5605
|
+
function getAxisLength(axis) {
|
|
5606
|
+
return axis === 'y' ? 'height' : 'width';
|
|
5607
|
+
}
|
|
5608
|
+
function getSideAxis(placement) {
|
|
5609
|
+
const firstChar = placement[0];
|
|
5610
|
+
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
5611
|
+
}
|
|
5612
|
+
function getAlignmentAxis(placement) {
|
|
5613
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
5614
|
+
}
|
|
5615
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
5616
|
+
if (rtl === void 0) {
|
|
5617
|
+
rtl = false;
|
|
5618
|
+
}
|
|
5619
|
+
const alignment = getAlignment(placement);
|
|
5620
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
5621
|
+
const length = getAxisLength(alignmentAxis);
|
|
5622
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
5623
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
5624
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
5625
|
+
}
|
|
5626
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
5627
|
+
}
|
|
5628
|
+
function getExpandedPlacements(placement) {
|
|
5629
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
5630
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
5631
|
+
}
|
|
5632
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
5633
|
+
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
5634
|
+
}
|
|
5635
|
+
const lrPlacement = ['left', 'right'];
|
|
5636
|
+
const rlPlacement = ['right', 'left'];
|
|
5637
|
+
const tbPlacement = ['top', 'bottom'];
|
|
5638
|
+
const btPlacement = ['bottom', 'top'];
|
|
5639
|
+
function getSideList(side, isStart, rtl) {
|
|
5640
|
+
switch (side) {
|
|
5641
|
+
case 'top':
|
|
5642
|
+
case 'bottom':
|
|
5643
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
5644
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
5645
|
+
case 'left':
|
|
5646
|
+
case 'right':
|
|
5647
|
+
return isStart ? tbPlacement : btPlacement;
|
|
5648
|
+
default:
|
|
5649
|
+
return [];
|
|
5650
|
+
}
|
|
5651
|
+
}
|
|
5652
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
5653
|
+
const alignment = getAlignment(placement);
|
|
5654
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
5655
|
+
if (alignment) {
|
|
5656
|
+
list = list.map(side => side + "-" + alignment);
|
|
5657
|
+
if (flipAlignment) {
|
|
5658
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
5659
|
+
}
|
|
5660
|
+
}
|
|
5661
|
+
return list;
|
|
5662
|
+
}
|
|
5663
|
+
function getOppositePlacement(placement) {
|
|
5664
|
+
const side = getSide(placement);
|
|
5665
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
5666
|
+
}
|
|
5667
|
+
function expandPaddingObject(padding) {
|
|
5668
|
+
return {
|
|
5669
|
+
top: 0,
|
|
5670
|
+
right: 0,
|
|
5671
|
+
bottom: 0,
|
|
5672
|
+
left: 0,
|
|
5673
|
+
...padding
|
|
5674
|
+
};
|
|
5675
|
+
}
|
|
5676
|
+
function getPaddingObject(padding) {
|
|
5677
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
5678
|
+
top: padding,
|
|
5679
|
+
right: padding,
|
|
5680
|
+
bottom: padding,
|
|
5681
|
+
left: padding
|
|
5682
|
+
};
|
|
5683
|
+
}
|
|
5684
|
+
function rectToClientRect(rect) {
|
|
5685
|
+
const {
|
|
5686
|
+
x,
|
|
5687
|
+
y,
|
|
5688
|
+
width,
|
|
5689
|
+
height
|
|
5690
|
+
} = rect;
|
|
5691
|
+
return {
|
|
5692
|
+
width,
|
|
5693
|
+
height,
|
|
5694
|
+
top: y,
|
|
5695
|
+
left: x,
|
|
5696
|
+
right: x + width,
|
|
5697
|
+
bottom: y + height,
|
|
5698
|
+
x,
|
|
5699
|
+
y
|
|
5700
|
+
};
|
|
5701
|
+
}
|
|
5702
|
+
|
|
5703
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
5704
|
+
let {
|
|
5705
|
+
reference,
|
|
5706
|
+
floating
|
|
5707
|
+
} = _ref;
|
|
5708
|
+
const sideAxis = getSideAxis(placement);
|
|
5709
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
5710
|
+
const alignLength = getAxisLength(alignmentAxis);
|
|
5711
|
+
const side = getSide(placement);
|
|
5712
|
+
const isVertical = sideAxis === 'y';
|
|
5713
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
5714
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
5715
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
5716
|
+
let coords;
|
|
5717
|
+
switch (side) {
|
|
5718
|
+
case 'top':
|
|
5719
|
+
coords = {
|
|
5720
|
+
x: commonX,
|
|
5721
|
+
y: reference.y - floating.height
|
|
5722
|
+
};
|
|
5723
|
+
break;
|
|
5724
|
+
case 'bottom':
|
|
5725
|
+
coords = {
|
|
5726
|
+
x: commonX,
|
|
5727
|
+
y: reference.y + reference.height
|
|
5728
|
+
};
|
|
5729
|
+
break;
|
|
5730
|
+
case 'right':
|
|
5731
|
+
coords = {
|
|
5732
|
+
x: reference.x + reference.width,
|
|
5733
|
+
y: commonY
|
|
5734
|
+
};
|
|
5735
|
+
break;
|
|
5736
|
+
case 'left':
|
|
5737
|
+
coords = {
|
|
5738
|
+
x: reference.x - floating.width,
|
|
5739
|
+
y: commonY
|
|
5740
|
+
};
|
|
5741
|
+
break;
|
|
5742
|
+
default:
|
|
5743
|
+
coords = {
|
|
5744
|
+
x: reference.x,
|
|
5745
|
+
y: reference.y
|
|
5746
|
+
};
|
|
5747
|
+
}
|
|
5748
|
+
switch (getAlignment(placement)) {
|
|
5749
|
+
case 'start':
|
|
5750
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
5751
|
+
break;
|
|
5752
|
+
case 'end':
|
|
5753
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
5754
|
+
break;
|
|
5755
|
+
}
|
|
5756
|
+
return coords;
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5759
|
+
/**
|
|
5760
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
5761
|
+
* element is overflowing a given clipping boundary on each side.
|
|
5762
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
5763
|
+
* - negative = how many pixels left before it will overflow
|
|
5764
|
+
* - 0 = lies flush with the boundary
|
|
5765
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
5766
|
+
*/
|
|
5767
|
+
async function detectOverflow(state, options) {
|
|
5768
|
+
var _await$platform$isEle;
|
|
5769
|
+
if (options === void 0) {
|
|
5770
|
+
options = {};
|
|
5771
|
+
}
|
|
5772
|
+
const {
|
|
5773
|
+
x,
|
|
5774
|
+
y,
|
|
5775
|
+
platform,
|
|
5776
|
+
rects,
|
|
5777
|
+
elements,
|
|
5778
|
+
strategy
|
|
5779
|
+
} = state;
|
|
5780
|
+
const {
|
|
5781
|
+
boundary = 'clippingAncestors',
|
|
5782
|
+
rootBoundary = 'viewport',
|
|
5783
|
+
elementContext = 'floating',
|
|
5784
|
+
altBoundary = false,
|
|
5785
|
+
padding = 0
|
|
5786
|
+
} = evaluate(options, state);
|
|
5787
|
+
const paddingObject = getPaddingObject(padding);
|
|
5788
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
5789
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
5790
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
5791
|
+
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))),
|
|
5792
|
+
boundary,
|
|
5793
|
+
rootBoundary,
|
|
5794
|
+
strategy
|
|
5795
|
+
}));
|
|
5796
|
+
const rect = elementContext === 'floating' ? {
|
|
5797
|
+
x,
|
|
5798
|
+
y,
|
|
5799
|
+
width: rects.floating.width,
|
|
5800
|
+
height: rects.floating.height
|
|
5801
|
+
} : rects.reference;
|
|
5802
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
5803
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
5804
|
+
x: 1,
|
|
5805
|
+
y: 1
|
|
5806
|
+
} : {
|
|
5807
|
+
x: 1,
|
|
5808
|
+
y: 1
|
|
5809
|
+
};
|
|
5810
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5811
|
+
elements,
|
|
5812
|
+
rect,
|
|
5813
|
+
offsetParent,
|
|
5814
|
+
strategy
|
|
5815
|
+
}) : rect);
|
|
5816
|
+
return {
|
|
5817
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5818
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5819
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5820
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5821
|
+
};
|
|
5822
|
+
}
|
|
5823
|
+
|
|
5824
|
+
// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
|
|
5825
|
+
const MAX_RESET_COUNT = 50;
|
|
5826
|
+
|
|
5827
|
+
/**
|
|
5828
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
5829
|
+
* next to a given reference element.
|
|
5830
|
+
*
|
|
5831
|
+
* This export does not have any `platform` interface logic. You will need to
|
|
5832
|
+
* write one for the platform you are using Floating UI with.
|
|
5833
|
+
*/
|
|
5834
|
+
const computePosition$1 = async (reference, floating, config) => {
|
|
5835
|
+
const {
|
|
5836
|
+
placement = 'bottom',
|
|
5837
|
+
strategy = 'absolute',
|
|
5838
|
+
middleware = [],
|
|
5839
|
+
platform
|
|
5840
|
+
} = config;
|
|
5841
|
+
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
5842
|
+
...platform,
|
|
5843
|
+
detectOverflow
|
|
5844
|
+
};
|
|
5845
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
5846
|
+
let rects = await platform.getElementRects({
|
|
5847
|
+
reference,
|
|
5848
|
+
floating,
|
|
5849
|
+
strategy
|
|
5850
|
+
});
|
|
5851
|
+
let {
|
|
5852
|
+
x,
|
|
5853
|
+
y
|
|
5854
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
5855
|
+
let statefulPlacement = placement;
|
|
5856
|
+
let resetCount = 0;
|
|
5857
|
+
const middlewareData = {};
|
|
5858
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
5859
|
+
const currentMiddleware = middleware[i];
|
|
5860
|
+
if (!currentMiddleware) {
|
|
5861
|
+
continue;
|
|
5862
|
+
}
|
|
5863
|
+
const {
|
|
5864
|
+
name,
|
|
5865
|
+
fn
|
|
5866
|
+
} = currentMiddleware;
|
|
5867
|
+
const {
|
|
5868
|
+
x: nextX,
|
|
5869
|
+
y: nextY,
|
|
5870
|
+
data,
|
|
5871
|
+
reset
|
|
5872
|
+
} = await fn({
|
|
5873
|
+
x,
|
|
5874
|
+
y,
|
|
5875
|
+
initialPlacement: placement,
|
|
5876
|
+
placement: statefulPlacement,
|
|
5877
|
+
strategy,
|
|
5878
|
+
middlewareData,
|
|
5879
|
+
rects,
|
|
5880
|
+
platform: platformWithDetectOverflow,
|
|
5881
|
+
elements: {
|
|
5882
|
+
reference,
|
|
5883
|
+
floating
|
|
5884
|
+
}
|
|
5885
|
+
});
|
|
5886
|
+
x = nextX != null ? nextX : x;
|
|
5887
|
+
y = nextY != null ? nextY : y;
|
|
5888
|
+
middlewareData[name] = {
|
|
5889
|
+
...middlewareData[name],
|
|
5890
|
+
...data
|
|
5891
|
+
};
|
|
5892
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
5893
|
+
resetCount++;
|
|
5894
|
+
if (typeof reset === 'object') {
|
|
5895
|
+
if (reset.placement) {
|
|
5896
|
+
statefulPlacement = reset.placement;
|
|
5897
|
+
}
|
|
5898
|
+
if (reset.rects) {
|
|
5899
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
|
5900
|
+
reference,
|
|
5901
|
+
floating,
|
|
5902
|
+
strategy
|
|
5903
|
+
}) : reset.rects;
|
|
5904
|
+
}
|
|
5905
|
+
({
|
|
5906
|
+
x,
|
|
5907
|
+
y
|
|
5908
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
5909
|
+
}
|
|
5910
|
+
i = -1;
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5913
|
+
return {
|
|
5914
|
+
x,
|
|
5915
|
+
y,
|
|
5916
|
+
placement: statefulPlacement,
|
|
5917
|
+
strategy,
|
|
5918
|
+
middlewareData
|
|
5919
|
+
};
|
|
5920
|
+
};
|
|
5921
|
+
|
|
5922
|
+
/**
|
|
5923
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
5924
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
5925
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
5926
|
+
* @see https://floating-ui.com/docs/flip
|
|
5927
|
+
*/
|
|
5928
|
+
const flip$1 = function (options) {
|
|
5929
|
+
if (options === void 0) {
|
|
5930
|
+
options = {};
|
|
5931
|
+
}
|
|
5932
|
+
return {
|
|
5933
|
+
name: 'flip',
|
|
5934
|
+
options,
|
|
5935
|
+
async fn(state) {
|
|
5936
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
5937
|
+
const {
|
|
5938
|
+
placement,
|
|
5939
|
+
middlewareData,
|
|
5940
|
+
rects,
|
|
5941
|
+
initialPlacement,
|
|
5942
|
+
platform,
|
|
5943
|
+
elements
|
|
5944
|
+
} = state;
|
|
5945
|
+
const {
|
|
5946
|
+
mainAxis: checkMainAxis = true,
|
|
5947
|
+
crossAxis: checkCrossAxis = true,
|
|
5948
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
5949
|
+
fallbackStrategy = 'bestFit',
|
|
5950
|
+
fallbackAxisSideDirection = 'none',
|
|
5951
|
+
flipAlignment = true,
|
|
5952
|
+
...detectOverflowOptions
|
|
5953
|
+
} = evaluate(options, state);
|
|
5954
|
+
|
|
5955
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
|
5956
|
+
// added, we should skip any logic now since `flip()` has already done its
|
|
5957
|
+
// work.
|
|
5958
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
5959
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
5960
|
+
return {};
|
|
5961
|
+
}
|
|
5962
|
+
const side = getSide(placement);
|
|
5963
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
5964
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
5965
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
5966
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
5967
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
5968
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
5969
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
5970
|
+
}
|
|
5971
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
5972
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5973
|
+
const overflows = [];
|
|
5974
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
5975
|
+
if (checkMainAxis) {
|
|
5976
|
+
overflows.push(overflow[side]);
|
|
5977
|
+
}
|
|
5978
|
+
if (checkCrossAxis) {
|
|
5979
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
5980
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
5981
|
+
}
|
|
5982
|
+
overflowsData = [...overflowsData, {
|
|
5983
|
+
placement,
|
|
5984
|
+
overflows
|
|
5985
|
+
}];
|
|
5986
|
+
|
|
5987
|
+
// One or more sides is overflowing.
|
|
5988
|
+
if (!overflows.every(side => side <= 0)) {
|
|
5989
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
5990
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
5991
|
+
const nextPlacement = placements[nextIndex];
|
|
5992
|
+
if (nextPlacement) {
|
|
5993
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
5994
|
+
if (!ignoreCrossAxisOverflow ||
|
|
5995
|
+
// We leave the current main axis only if every placement on that axis
|
|
5996
|
+
// overflows the main axis.
|
|
5997
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
5998
|
+
// Try next placement and re-run the lifecycle.
|
|
5999
|
+
return {
|
|
6000
|
+
data: {
|
|
6001
|
+
index: nextIndex,
|
|
6002
|
+
overflows: overflowsData
|
|
6003
|
+
},
|
|
6004
|
+
reset: {
|
|
6005
|
+
placement: nextPlacement
|
|
6006
|
+
}
|
|
6007
|
+
};
|
|
6008
|
+
}
|
|
6009
|
+
}
|
|
6010
|
+
|
|
6011
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
6012
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
6013
|
+
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;
|
|
6014
|
+
|
|
6015
|
+
// Otherwise fallback.
|
|
6016
|
+
if (!resetPlacement) {
|
|
6017
|
+
switch (fallbackStrategy) {
|
|
6018
|
+
case 'bestFit':
|
|
6019
|
+
{
|
|
6020
|
+
var _overflowsData$filter2;
|
|
6021
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
6022
|
+
if (hasFallbackAxisSideDirection) {
|
|
6023
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
6024
|
+
return currentSideAxis === initialSideAxis ||
|
|
6025
|
+
// Create a bias to the `y` side axis due to horizontal
|
|
6026
|
+
// reading directions favoring greater width.
|
|
6027
|
+
currentSideAxis === 'y';
|
|
6028
|
+
}
|
|
6029
|
+
return true;
|
|
6030
|
+
}).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];
|
|
6031
|
+
if (placement) {
|
|
6032
|
+
resetPlacement = placement;
|
|
6033
|
+
}
|
|
6034
|
+
break;
|
|
6035
|
+
}
|
|
6036
|
+
case 'initialPlacement':
|
|
6037
|
+
resetPlacement = initialPlacement;
|
|
6038
|
+
break;
|
|
6039
|
+
}
|
|
6040
|
+
}
|
|
6041
|
+
if (placement !== resetPlacement) {
|
|
6042
|
+
return {
|
|
6043
|
+
reset: {
|
|
6044
|
+
placement: resetPlacement
|
|
6045
|
+
}
|
|
6046
|
+
};
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
return {};
|
|
6050
|
+
}
|
|
6051
|
+
};
|
|
6052
|
+
};
|
|
6053
|
+
|
|
6054
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
6055
|
+
|
|
6056
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
6057
|
+
// Derivable.
|
|
6058
|
+
|
|
6059
|
+
async function convertValueToCoords(state, options) {
|
|
6060
|
+
const {
|
|
6061
|
+
placement,
|
|
6062
|
+
platform,
|
|
6063
|
+
elements
|
|
6064
|
+
} = state;
|
|
6065
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
6066
|
+
const side = getSide(placement);
|
|
6067
|
+
const alignment = getAlignment(placement);
|
|
6068
|
+
const isVertical = getSideAxis(placement) === 'y';
|
|
6069
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
6070
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
6071
|
+
const rawValue = evaluate(options, state);
|
|
6072
|
+
|
|
6073
|
+
// eslint-disable-next-line prefer-const
|
|
6074
|
+
let {
|
|
6075
|
+
mainAxis,
|
|
6076
|
+
crossAxis,
|
|
6077
|
+
alignmentAxis
|
|
6078
|
+
} = typeof rawValue === 'number' ? {
|
|
6079
|
+
mainAxis: rawValue,
|
|
6080
|
+
crossAxis: 0,
|
|
6081
|
+
alignmentAxis: null
|
|
6082
|
+
} : {
|
|
6083
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
6084
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
6085
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
6086
|
+
};
|
|
6087
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
|
6088
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
6089
|
+
}
|
|
6090
|
+
return isVertical ? {
|
|
6091
|
+
x: crossAxis * crossAxisMulti,
|
|
6092
|
+
y: mainAxis * mainAxisMulti
|
|
6093
|
+
} : {
|
|
6094
|
+
x: mainAxis * mainAxisMulti,
|
|
6095
|
+
y: crossAxis * crossAxisMulti
|
|
6096
|
+
};
|
|
6097
|
+
}
|
|
6098
|
+
|
|
6099
|
+
/**
|
|
6100
|
+
* Modifies the placement by translating the floating element along the
|
|
6101
|
+
* specified axes.
|
|
6102
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
6103
|
+
* object may be passed.
|
|
6104
|
+
* @see https://floating-ui.com/docs/offset
|
|
6105
|
+
*/
|
|
6106
|
+
const offset$1 = function (options) {
|
|
6107
|
+
if (options === void 0) {
|
|
6108
|
+
options = 0;
|
|
6109
|
+
}
|
|
6110
|
+
return {
|
|
6111
|
+
name: 'offset',
|
|
6112
|
+
options,
|
|
6113
|
+
async fn(state) {
|
|
6114
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
6115
|
+
const {
|
|
6116
|
+
x,
|
|
6117
|
+
y,
|
|
6118
|
+
placement,
|
|
6119
|
+
middlewareData
|
|
6120
|
+
} = state;
|
|
6121
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
6122
|
+
|
|
6123
|
+
// If the placement is the same and the arrow caused an alignment offset
|
|
6124
|
+
// then we don't need to change the positioning coordinates.
|
|
6125
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
6126
|
+
return {};
|
|
6127
|
+
}
|
|
6128
|
+
return {
|
|
6129
|
+
x: x + diffCoords.x,
|
|
6130
|
+
y: y + diffCoords.y,
|
|
6131
|
+
data: {
|
|
6132
|
+
...diffCoords,
|
|
6133
|
+
placement
|
|
6134
|
+
}
|
|
6135
|
+
};
|
|
6136
|
+
}
|
|
6137
|
+
};
|
|
6138
|
+
};
|
|
6139
|
+
|
|
6140
|
+
/**
|
|
6141
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
6142
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
6143
|
+
* @see https://floating-ui.com/docs/shift
|
|
6144
|
+
*/
|
|
6145
|
+
const shift$1 = function (options) {
|
|
6146
|
+
if (options === void 0) {
|
|
6147
|
+
options = {};
|
|
6148
|
+
}
|
|
6149
|
+
return {
|
|
6150
|
+
name: 'shift',
|
|
6151
|
+
options,
|
|
6152
|
+
async fn(state) {
|
|
6153
|
+
const {
|
|
6154
|
+
x,
|
|
6155
|
+
y,
|
|
6156
|
+
placement,
|
|
6157
|
+
platform
|
|
6158
|
+
} = state;
|
|
6159
|
+
const {
|
|
6160
|
+
mainAxis: checkMainAxis = true,
|
|
6161
|
+
crossAxis: checkCrossAxis = false,
|
|
6162
|
+
limiter = {
|
|
6163
|
+
fn: _ref => {
|
|
6164
|
+
let {
|
|
6165
|
+
x,
|
|
6166
|
+
y
|
|
6167
|
+
} = _ref;
|
|
6168
|
+
return {
|
|
6169
|
+
x,
|
|
6170
|
+
y
|
|
6171
|
+
};
|
|
6172
|
+
}
|
|
6173
|
+
},
|
|
6174
|
+
...detectOverflowOptions
|
|
6175
|
+
} = evaluate(options, state);
|
|
6176
|
+
const coords = {
|
|
6177
|
+
x,
|
|
6178
|
+
y
|
|
6179
|
+
};
|
|
6180
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
6181
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
6182
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
6183
|
+
let mainAxisCoord = coords[mainAxis];
|
|
6184
|
+
let crossAxisCoord = coords[crossAxis];
|
|
6185
|
+
if (checkMainAxis) {
|
|
6186
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
6187
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
6188
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
6189
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
6190
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
6191
|
+
}
|
|
6192
|
+
if (checkCrossAxis) {
|
|
6193
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
6194
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
6195
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
6196
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
6197
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
6198
|
+
}
|
|
6199
|
+
const limitedCoords = limiter.fn({
|
|
6200
|
+
...state,
|
|
6201
|
+
[mainAxis]: mainAxisCoord,
|
|
6202
|
+
[crossAxis]: crossAxisCoord
|
|
6203
|
+
});
|
|
6204
|
+
return {
|
|
6205
|
+
...limitedCoords,
|
|
6206
|
+
data: {
|
|
6207
|
+
x: limitedCoords.x - x,
|
|
6208
|
+
y: limitedCoords.y - y,
|
|
6209
|
+
enabled: {
|
|
6210
|
+
[mainAxis]: checkMainAxis,
|
|
6211
|
+
[crossAxis]: checkCrossAxis
|
|
6212
|
+
}
|
|
6213
|
+
}
|
|
6214
|
+
};
|
|
6215
|
+
}
|
|
6216
|
+
};
|
|
6217
|
+
};
|
|
5434
6218
|
|
|
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}";
|
|
6219
|
+
/**
|
|
6220
|
+
* Provides data that allows you to change the size of the floating element —
|
|
6221
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
6222
|
+
* width of the reference element.
|
|
6223
|
+
* @see https://floating-ui.com/docs/size
|
|
6224
|
+
*/
|
|
6225
|
+
const size$1 = function (options) {
|
|
6226
|
+
if (options === void 0) {
|
|
6227
|
+
options = {};
|
|
6228
|
+
}
|
|
6229
|
+
return {
|
|
6230
|
+
name: 'size',
|
|
6231
|
+
options,
|
|
6232
|
+
async fn(state) {
|
|
6233
|
+
var _state$middlewareData, _state$middlewareData2;
|
|
6234
|
+
const {
|
|
6235
|
+
placement,
|
|
6236
|
+
rects,
|
|
6237
|
+
platform,
|
|
6238
|
+
elements
|
|
6239
|
+
} = state;
|
|
6240
|
+
const {
|
|
6241
|
+
apply = () => {},
|
|
6242
|
+
...detectOverflowOptions
|
|
6243
|
+
} = evaluate(options, state);
|
|
6244
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
6245
|
+
const side = getSide(placement);
|
|
6246
|
+
const alignment = getAlignment(placement);
|
|
6247
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
6248
|
+
const {
|
|
6249
|
+
width,
|
|
6250
|
+
height
|
|
6251
|
+
} = rects.floating;
|
|
6252
|
+
let heightSide;
|
|
6253
|
+
let widthSide;
|
|
6254
|
+
if (side === 'top' || side === 'bottom') {
|
|
6255
|
+
heightSide = side;
|
|
6256
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
6257
|
+
} else {
|
|
6258
|
+
widthSide = side;
|
|
6259
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
6260
|
+
}
|
|
6261
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
6262
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
6263
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
6264
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
6265
|
+
const noShift = !state.middlewareData.shift;
|
|
6266
|
+
let availableHeight = overflowAvailableHeight;
|
|
6267
|
+
let availableWidth = overflowAvailableWidth;
|
|
6268
|
+
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
6269
|
+
availableWidth = maximumClippingWidth;
|
|
6270
|
+
}
|
|
6271
|
+
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
6272
|
+
availableHeight = maximumClippingHeight;
|
|
6273
|
+
}
|
|
6274
|
+
if (noShift && !alignment) {
|
|
6275
|
+
const xMin = max(overflow.left, 0);
|
|
6276
|
+
const xMax = max(overflow.right, 0);
|
|
6277
|
+
const yMin = max(overflow.top, 0);
|
|
6278
|
+
const yMax = max(overflow.bottom, 0);
|
|
6279
|
+
if (isYAxis) {
|
|
6280
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
6281
|
+
} else {
|
|
6282
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
6283
|
+
}
|
|
6284
|
+
}
|
|
6285
|
+
await apply({
|
|
6286
|
+
...state,
|
|
6287
|
+
availableWidth,
|
|
6288
|
+
availableHeight
|
|
6289
|
+
});
|
|
6290
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
6291
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
6292
|
+
return {
|
|
6293
|
+
reset: {
|
|
6294
|
+
rects: true
|
|
6295
|
+
}
|
|
6296
|
+
};
|
|
6297
|
+
}
|
|
6298
|
+
return {};
|
|
6299
|
+
}
|
|
6300
|
+
};
|
|
6301
|
+
};
|
|
6302
|
+
|
|
6303
|
+
function hasWindow() {
|
|
6304
|
+
return typeof window !== 'undefined';
|
|
6305
|
+
}
|
|
6306
|
+
function getNodeName(node) {
|
|
6307
|
+
if (isNode(node)) {
|
|
6308
|
+
return (node.nodeName || '').toLowerCase();
|
|
6309
|
+
}
|
|
6310
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
6311
|
+
// returning `#document` an infinite loop won't occur.
|
|
6312
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
6313
|
+
return '#document';
|
|
6314
|
+
}
|
|
6315
|
+
function getWindow(node) {
|
|
6316
|
+
var _node$ownerDocument;
|
|
6317
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
6318
|
+
}
|
|
6319
|
+
function getDocumentElement(node) {
|
|
6320
|
+
var _ref;
|
|
6321
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
6322
|
+
}
|
|
6323
|
+
function isNode(value) {
|
|
6324
|
+
if (!hasWindow()) {
|
|
6325
|
+
return false;
|
|
6326
|
+
}
|
|
6327
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
6328
|
+
}
|
|
6329
|
+
function isElement(value) {
|
|
6330
|
+
if (!hasWindow()) {
|
|
6331
|
+
return false;
|
|
6332
|
+
}
|
|
6333
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
6334
|
+
}
|
|
6335
|
+
function isHTMLElement(value) {
|
|
6336
|
+
if (!hasWindow()) {
|
|
6337
|
+
return false;
|
|
6338
|
+
}
|
|
6339
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
6340
|
+
}
|
|
6341
|
+
function isShadowRoot(value) {
|
|
6342
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
6343
|
+
return false;
|
|
6344
|
+
}
|
|
6345
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
6346
|
+
}
|
|
6347
|
+
function isOverflowElement(element) {
|
|
6348
|
+
const {
|
|
6349
|
+
overflow,
|
|
6350
|
+
overflowX,
|
|
6351
|
+
overflowY,
|
|
6352
|
+
display
|
|
6353
|
+
} = getComputedStyle$1(element);
|
|
6354
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
6355
|
+
}
|
|
6356
|
+
function isTableElement(element) {
|
|
6357
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
6358
|
+
}
|
|
6359
|
+
function isTopLayer(element) {
|
|
6360
|
+
try {
|
|
6361
|
+
if (element.matches(':popover-open')) {
|
|
6362
|
+
return true;
|
|
6363
|
+
}
|
|
6364
|
+
} catch (_e) {
|
|
6365
|
+
// no-op
|
|
6366
|
+
}
|
|
6367
|
+
try {
|
|
6368
|
+
return element.matches(':modal');
|
|
6369
|
+
} catch (_e) {
|
|
6370
|
+
return false;
|
|
6371
|
+
}
|
|
6372
|
+
}
|
|
6373
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
6374
|
+
const containRe = /paint|layout|strict|content/;
|
|
6375
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
6376
|
+
let isWebKitValue;
|
|
6377
|
+
function isContainingBlock(elementOrCss) {
|
|
6378
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
6379
|
+
|
|
6380
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
6381
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
6382
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
6383
|
+
}
|
|
6384
|
+
function getContainingBlock(element) {
|
|
6385
|
+
let currentNode = getParentNode(element);
|
|
6386
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
6387
|
+
if (isContainingBlock(currentNode)) {
|
|
6388
|
+
return currentNode;
|
|
6389
|
+
} else if (isTopLayer(currentNode)) {
|
|
6390
|
+
return null;
|
|
6391
|
+
}
|
|
6392
|
+
currentNode = getParentNode(currentNode);
|
|
6393
|
+
}
|
|
6394
|
+
return null;
|
|
6395
|
+
}
|
|
6396
|
+
function isWebKit() {
|
|
6397
|
+
if (isWebKitValue == null) {
|
|
6398
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
6399
|
+
}
|
|
6400
|
+
return isWebKitValue;
|
|
6401
|
+
}
|
|
6402
|
+
function isLastTraversableNode(node) {
|
|
6403
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
6404
|
+
}
|
|
6405
|
+
function getComputedStyle$1(element) {
|
|
6406
|
+
return getWindow(element).getComputedStyle(element);
|
|
6407
|
+
}
|
|
6408
|
+
function getNodeScroll(element) {
|
|
6409
|
+
if (isElement(element)) {
|
|
6410
|
+
return {
|
|
6411
|
+
scrollLeft: element.scrollLeft,
|
|
6412
|
+
scrollTop: element.scrollTop
|
|
6413
|
+
};
|
|
6414
|
+
}
|
|
6415
|
+
return {
|
|
6416
|
+
scrollLeft: element.scrollX,
|
|
6417
|
+
scrollTop: element.scrollY
|
|
6418
|
+
};
|
|
6419
|
+
}
|
|
6420
|
+
function getParentNode(node) {
|
|
6421
|
+
if (getNodeName(node) === 'html') {
|
|
6422
|
+
return node;
|
|
6423
|
+
}
|
|
6424
|
+
const result =
|
|
6425
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
6426
|
+
node.assignedSlot ||
|
|
6427
|
+
// DOM Element detected.
|
|
6428
|
+
node.parentNode ||
|
|
6429
|
+
// ShadowRoot detected.
|
|
6430
|
+
isShadowRoot(node) && node.host ||
|
|
6431
|
+
// Fallback.
|
|
6432
|
+
getDocumentElement(node);
|
|
6433
|
+
return isShadowRoot(result) ? result.host : result;
|
|
6434
|
+
}
|
|
6435
|
+
function getNearestOverflowAncestor(node) {
|
|
6436
|
+
const parentNode = getParentNode(node);
|
|
6437
|
+
if (isLastTraversableNode(parentNode)) {
|
|
6438
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
6439
|
+
}
|
|
6440
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
6441
|
+
return parentNode;
|
|
6442
|
+
}
|
|
6443
|
+
return getNearestOverflowAncestor(parentNode);
|
|
6444
|
+
}
|
|
6445
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
6446
|
+
var _node$ownerDocument2;
|
|
6447
|
+
if (list === void 0) {
|
|
6448
|
+
list = [];
|
|
6449
|
+
}
|
|
6450
|
+
if (traverseIframes === void 0) {
|
|
6451
|
+
traverseIframes = true;
|
|
6452
|
+
}
|
|
6453
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
6454
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
6455
|
+
const win = getWindow(scrollableAncestor);
|
|
6456
|
+
if (isBody) {
|
|
6457
|
+
const frameElement = getFrameElement(win);
|
|
6458
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
6459
|
+
} else {
|
|
6460
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
6461
|
+
}
|
|
6462
|
+
}
|
|
6463
|
+
function getFrameElement(win) {
|
|
6464
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
6465
|
+
}
|
|
6466
|
+
|
|
6467
|
+
function getCssDimensions(element) {
|
|
6468
|
+
const css = getComputedStyle$1(element);
|
|
6469
|
+
// In testing environments, the `width` and `height` properties are empty
|
|
6470
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
6471
|
+
let width = parseFloat(css.width) || 0;
|
|
6472
|
+
let height = parseFloat(css.height) || 0;
|
|
6473
|
+
const hasOffset = isHTMLElement(element);
|
|
6474
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
6475
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
6476
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
6477
|
+
if (shouldFallback) {
|
|
6478
|
+
width = offsetWidth;
|
|
6479
|
+
height = offsetHeight;
|
|
6480
|
+
}
|
|
6481
|
+
return {
|
|
6482
|
+
width,
|
|
6483
|
+
height,
|
|
6484
|
+
$: shouldFallback
|
|
6485
|
+
};
|
|
6486
|
+
}
|
|
6487
|
+
|
|
6488
|
+
function unwrapElement(element) {
|
|
6489
|
+
return !isElement(element) ? element.contextElement : element;
|
|
6490
|
+
}
|
|
6491
|
+
|
|
6492
|
+
function getScale(element) {
|
|
6493
|
+
const domElement = unwrapElement(element);
|
|
6494
|
+
if (!isHTMLElement(domElement)) {
|
|
6495
|
+
return createCoords(1);
|
|
6496
|
+
}
|
|
6497
|
+
const rect = domElement.getBoundingClientRect();
|
|
6498
|
+
const {
|
|
6499
|
+
width,
|
|
6500
|
+
height,
|
|
6501
|
+
$
|
|
6502
|
+
} = getCssDimensions(domElement);
|
|
6503
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
6504
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
6505
|
+
|
|
6506
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
6507
|
+
|
|
6508
|
+
if (!x || !Number.isFinite(x)) {
|
|
6509
|
+
x = 1;
|
|
6510
|
+
}
|
|
6511
|
+
if (!y || !Number.isFinite(y)) {
|
|
6512
|
+
y = 1;
|
|
6513
|
+
}
|
|
6514
|
+
return {
|
|
6515
|
+
x,
|
|
6516
|
+
y
|
|
6517
|
+
};
|
|
6518
|
+
}
|
|
6519
|
+
|
|
6520
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
6521
|
+
function getVisualOffsets(element) {
|
|
6522
|
+
const win = getWindow(element);
|
|
6523
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
6524
|
+
return noOffsets;
|
|
6525
|
+
}
|
|
6526
|
+
return {
|
|
6527
|
+
x: win.visualViewport.offsetLeft,
|
|
6528
|
+
y: win.visualViewport.offsetTop
|
|
6529
|
+
};
|
|
6530
|
+
}
|
|
6531
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
6532
|
+
if (isFixed === void 0) {
|
|
6533
|
+
isFixed = false;
|
|
6534
|
+
}
|
|
6535
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
6536
|
+
return false;
|
|
6537
|
+
}
|
|
6538
|
+
return isFixed;
|
|
6539
|
+
}
|
|
6540
|
+
|
|
6541
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
6542
|
+
if (includeScale === void 0) {
|
|
6543
|
+
includeScale = false;
|
|
6544
|
+
}
|
|
6545
|
+
if (isFixedStrategy === void 0) {
|
|
6546
|
+
isFixedStrategy = false;
|
|
6547
|
+
}
|
|
6548
|
+
const clientRect = element.getBoundingClientRect();
|
|
6549
|
+
const domElement = unwrapElement(element);
|
|
6550
|
+
let scale = createCoords(1);
|
|
6551
|
+
if (includeScale) {
|
|
6552
|
+
if (offsetParent) {
|
|
6553
|
+
if (isElement(offsetParent)) {
|
|
6554
|
+
scale = getScale(offsetParent);
|
|
6555
|
+
}
|
|
6556
|
+
} else {
|
|
6557
|
+
scale = getScale(element);
|
|
6558
|
+
}
|
|
6559
|
+
}
|
|
6560
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
6561
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
6562
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
6563
|
+
let width = clientRect.width / scale.x;
|
|
6564
|
+
let height = clientRect.height / scale.y;
|
|
6565
|
+
if (domElement) {
|
|
6566
|
+
const win = getWindow(domElement);
|
|
6567
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
6568
|
+
let currentWin = win;
|
|
6569
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
6570
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
6571
|
+
const iframeScale = getScale(currentIFrame);
|
|
6572
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
6573
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
6574
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
6575
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
6576
|
+
x *= iframeScale.x;
|
|
6577
|
+
y *= iframeScale.y;
|
|
6578
|
+
width *= iframeScale.x;
|
|
6579
|
+
height *= iframeScale.y;
|
|
6580
|
+
x += left;
|
|
6581
|
+
y += top;
|
|
6582
|
+
currentWin = getWindow(currentIFrame);
|
|
6583
|
+
currentIFrame = getFrameElement(currentWin);
|
|
6584
|
+
}
|
|
6585
|
+
}
|
|
6586
|
+
return rectToClientRect({
|
|
6587
|
+
width,
|
|
6588
|
+
height,
|
|
6589
|
+
x,
|
|
6590
|
+
y
|
|
6591
|
+
});
|
|
6592
|
+
}
|
|
6593
|
+
|
|
6594
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
6595
|
+
// incorrect for RTL.
|
|
6596
|
+
function getWindowScrollBarX(element, rect) {
|
|
6597
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
6598
|
+
if (!rect) {
|
|
6599
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
6600
|
+
}
|
|
6601
|
+
return rect.left + leftScroll;
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6604
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
6605
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
6606
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
6607
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
6608
|
+
return {
|
|
6609
|
+
x,
|
|
6610
|
+
y
|
|
6611
|
+
};
|
|
6612
|
+
}
|
|
6613
|
+
|
|
6614
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
6615
|
+
let {
|
|
6616
|
+
elements,
|
|
6617
|
+
rect,
|
|
6618
|
+
offsetParent,
|
|
6619
|
+
strategy
|
|
6620
|
+
} = _ref;
|
|
6621
|
+
const isFixed = strategy === 'fixed';
|
|
6622
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
6623
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
6624
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
6625
|
+
return rect;
|
|
6626
|
+
}
|
|
6627
|
+
let scroll = {
|
|
6628
|
+
scrollLeft: 0,
|
|
6629
|
+
scrollTop: 0
|
|
6630
|
+
};
|
|
6631
|
+
let scale = createCoords(1);
|
|
6632
|
+
const offsets = createCoords(0);
|
|
6633
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
6634
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
6635
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
6636
|
+
scroll = getNodeScroll(offsetParent);
|
|
6637
|
+
}
|
|
6638
|
+
if (isOffsetParentAnElement) {
|
|
6639
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
6640
|
+
scale = getScale(offsetParent);
|
|
6641
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
6642
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
6643
|
+
}
|
|
6644
|
+
}
|
|
6645
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
6646
|
+
return {
|
|
6647
|
+
width: rect.width * scale.x,
|
|
6648
|
+
height: rect.height * scale.y,
|
|
6649
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
6650
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
6651
|
+
};
|
|
6652
|
+
}
|
|
6653
|
+
|
|
6654
|
+
function getClientRects(element) {
|
|
6655
|
+
return Array.from(element.getClientRects());
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6658
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
6659
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
6660
|
+
function getDocumentRect(element) {
|
|
6661
|
+
const html = getDocumentElement(element);
|
|
6662
|
+
const scroll = getNodeScroll(element);
|
|
6663
|
+
const body = element.ownerDocument.body;
|
|
6664
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
6665
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
6666
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
6667
|
+
const y = -scroll.scrollTop;
|
|
6668
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
6669
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
6670
|
+
}
|
|
6671
|
+
return {
|
|
6672
|
+
width,
|
|
6673
|
+
height,
|
|
6674
|
+
x,
|
|
6675
|
+
y
|
|
6676
|
+
};
|
|
6677
|
+
}
|
|
6678
|
+
|
|
6679
|
+
// Safety check: ensure the scrollbar space is reasonable in case this
|
|
6680
|
+
// calculation is affected by unusual styles.
|
|
6681
|
+
// Most scrollbars leave 15-18px of space.
|
|
6682
|
+
const SCROLLBAR_MAX = 25;
|
|
6683
|
+
function getViewportRect(element, strategy) {
|
|
6684
|
+
const win = getWindow(element);
|
|
6685
|
+
const html = getDocumentElement(element);
|
|
6686
|
+
const visualViewport = win.visualViewport;
|
|
6687
|
+
let width = html.clientWidth;
|
|
6688
|
+
let height = html.clientHeight;
|
|
6689
|
+
let x = 0;
|
|
6690
|
+
let y = 0;
|
|
6691
|
+
if (visualViewport) {
|
|
6692
|
+
width = visualViewport.width;
|
|
6693
|
+
height = visualViewport.height;
|
|
6694
|
+
const visualViewportBased = isWebKit();
|
|
6695
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
6696
|
+
x = visualViewport.offsetLeft;
|
|
6697
|
+
y = visualViewport.offsetTop;
|
|
6698
|
+
}
|
|
6699
|
+
}
|
|
6700
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
6701
|
+
// <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
|
|
6702
|
+
// visual width of the <html> but this is not considered in the size
|
|
6703
|
+
// of `html.clientWidth`.
|
|
6704
|
+
if (windowScrollbarX <= 0) {
|
|
6705
|
+
const doc = html.ownerDocument;
|
|
6706
|
+
const body = doc.body;
|
|
6707
|
+
const bodyStyles = getComputedStyle(body);
|
|
6708
|
+
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
6709
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
6710
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
6711
|
+
width -= clippingStableScrollbarWidth;
|
|
6712
|
+
}
|
|
6713
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
6714
|
+
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
6715
|
+
// by the scrollbar amount so there isn't extra space on the right.
|
|
6716
|
+
width += windowScrollbarX;
|
|
6717
|
+
}
|
|
6718
|
+
return {
|
|
6719
|
+
width,
|
|
6720
|
+
height,
|
|
6721
|
+
x,
|
|
6722
|
+
y
|
|
6723
|
+
};
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
6727
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
6728
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
6729
|
+
const top = clientRect.top + element.clientTop;
|
|
6730
|
+
const left = clientRect.left + element.clientLeft;
|
|
6731
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
6732
|
+
const width = element.clientWidth * scale.x;
|
|
6733
|
+
const height = element.clientHeight * scale.y;
|
|
6734
|
+
const x = left * scale.x;
|
|
6735
|
+
const y = top * scale.y;
|
|
6736
|
+
return {
|
|
6737
|
+
width,
|
|
6738
|
+
height,
|
|
6739
|
+
x,
|
|
6740
|
+
y
|
|
6741
|
+
};
|
|
6742
|
+
}
|
|
6743
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
6744
|
+
let rect;
|
|
6745
|
+
if (clippingAncestor === 'viewport') {
|
|
6746
|
+
rect = getViewportRect(element, strategy);
|
|
6747
|
+
} else if (clippingAncestor === 'document') {
|
|
6748
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
6749
|
+
} else if (isElement(clippingAncestor)) {
|
|
6750
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
6751
|
+
} else {
|
|
6752
|
+
const visualOffsets = getVisualOffsets(element);
|
|
6753
|
+
rect = {
|
|
6754
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
6755
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
6756
|
+
width: clippingAncestor.width,
|
|
6757
|
+
height: clippingAncestor.height
|
|
6758
|
+
};
|
|
6759
|
+
}
|
|
6760
|
+
return rectToClientRect(rect);
|
|
6761
|
+
}
|
|
6762
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
6763
|
+
const parentNode = getParentNode(element);
|
|
6764
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
6765
|
+
return false;
|
|
6766
|
+
}
|
|
6767
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
6768
|
+
}
|
|
6769
|
+
|
|
6770
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
6771
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
6772
|
+
// of the given element up the tree.
|
|
6773
|
+
function getClippingElementAncestors(element, cache) {
|
|
6774
|
+
const cachedResult = cache.get(element);
|
|
6775
|
+
if (cachedResult) {
|
|
6776
|
+
return cachedResult;
|
|
6777
|
+
}
|
|
6778
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
6779
|
+
let currentContainingBlockComputedStyle = null;
|
|
6780
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
6781
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
6782
|
+
|
|
6783
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
6784
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
6785
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
6786
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
6787
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
6788
|
+
currentContainingBlockComputedStyle = null;
|
|
6789
|
+
}
|
|
6790
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
6791
|
+
if (shouldDropCurrentNode) {
|
|
6792
|
+
// Drop non-containing blocks.
|
|
6793
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
6794
|
+
} else {
|
|
6795
|
+
// Record last containing block for next iteration.
|
|
6796
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
6797
|
+
}
|
|
6798
|
+
currentNode = getParentNode(currentNode);
|
|
6799
|
+
}
|
|
6800
|
+
cache.set(element, result);
|
|
6801
|
+
return result;
|
|
6802
|
+
}
|
|
6803
|
+
|
|
6804
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
6805
|
+
// clipping ancestors.
|
|
6806
|
+
function getClippingRect(_ref) {
|
|
6807
|
+
let {
|
|
6808
|
+
element,
|
|
6809
|
+
boundary,
|
|
6810
|
+
rootBoundary,
|
|
6811
|
+
strategy
|
|
6812
|
+
} = _ref;
|
|
6813
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
6814
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
6815
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
6816
|
+
let top = firstRect.top;
|
|
6817
|
+
let right = firstRect.right;
|
|
6818
|
+
let bottom = firstRect.bottom;
|
|
6819
|
+
let left = firstRect.left;
|
|
6820
|
+
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
6821
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
6822
|
+
top = max(rect.top, top);
|
|
6823
|
+
right = min(rect.right, right);
|
|
6824
|
+
bottom = min(rect.bottom, bottom);
|
|
6825
|
+
left = max(rect.left, left);
|
|
6826
|
+
}
|
|
6827
|
+
return {
|
|
6828
|
+
width: right - left,
|
|
6829
|
+
height: bottom - top,
|
|
6830
|
+
x: left,
|
|
6831
|
+
y: top
|
|
6832
|
+
};
|
|
6833
|
+
}
|
|
6834
|
+
|
|
6835
|
+
function getDimensions(element) {
|
|
6836
|
+
const {
|
|
6837
|
+
width,
|
|
6838
|
+
height
|
|
6839
|
+
} = getCssDimensions(element);
|
|
6840
|
+
return {
|
|
6841
|
+
width,
|
|
6842
|
+
height
|
|
6843
|
+
};
|
|
6844
|
+
}
|
|
6845
|
+
|
|
6846
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
6847
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
6848
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
6849
|
+
const isFixed = strategy === 'fixed';
|
|
6850
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
6851
|
+
let scroll = {
|
|
6852
|
+
scrollLeft: 0,
|
|
6853
|
+
scrollTop: 0
|
|
6854
|
+
};
|
|
6855
|
+
const offsets = createCoords(0);
|
|
6856
|
+
|
|
6857
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
6858
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
6859
|
+
function setLeftRTLScrollbarOffset() {
|
|
6860
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
6861
|
+
}
|
|
6862
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
6863
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
6864
|
+
scroll = getNodeScroll(offsetParent);
|
|
6865
|
+
}
|
|
6866
|
+
if (isOffsetParentAnElement) {
|
|
6867
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
6868
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
6869
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
6870
|
+
} else if (documentElement) {
|
|
6871
|
+
setLeftRTLScrollbarOffset();
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
6875
|
+
setLeftRTLScrollbarOffset();
|
|
6876
|
+
}
|
|
6877
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
6878
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
6879
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
6880
|
+
return {
|
|
6881
|
+
x,
|
|
6882
|
+
y,
|
|
6883
|
+
width: rect.width,
|
|
6884
|
+
height: rect.height
|
|
6885
|
+
};
|
|
6886
|
+
}
|
|
6887
|
+
|
|
6888
|
+
function isStaticPositioned(element) {
|
|
6889
|
+
return getComputedStyle$1(element).position === 'static';
|
|
6890
|
+
}
|
|
6891
|
+
|
|
6892
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
6893
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
6894
|
+
return null;
|
|
6895
|
+
}
|
|
6896
|
+
if (polyfill) {
|
|
6897
|
+
return polyfill(element);
|
|
6898
|
+
}
|
|
6899
|
+
let rawOffsetParent = element.offsetParent;
|
|
6900
|
+
|
|
6901
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
6902
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
|
6903
|
+
// be used to perform the correct calculations even if the <html> element is
|
|
6904
|
+
// non-static.
|
|
6905
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
6906
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
6907
|
+
}
|
|
6908
|
+
return rawOffsetParent;
|
|
6909
|
+
}
|
|
6910
|
+
|
|
6911
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
6912
|
+
// such as table ancestors and cross browser bugs.
|
|
6913
|
+
function getOffsetParent(element, polyfill) {
|
|
6914
|
+
const win = getWindow(element);
|
|
6915
|
+
if (isTopLayer(element)) {
|
|
6916
|
+
return win;
|
|
6917
|
+
}
|
|
6918
|
+
if (!isHTMLElement(element)) {
|
|
6919
|
+
let svgOffsetParent = getParentNode(element);
|
|
6920
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
6921
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
6922
|
+
return svgOffsetParent;
|
|
6923
|
+
}
|
|
6924
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
6925
|
+
}
|
|
6926
|
+
return win;
|
|
6927
|
+
}
|
|
6928
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
6929
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
6930
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
6931
|
+
}
|
|
6932
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
6933
|
+
return win;
|
|
6934
|
+
}
|
|
6935
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
6936
|
+
}
|
|
6937
|
+
|
|
6938
|
+
const getElementRects = async function (data) {
|
|
6939
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
6940
|
+
const getDimensionsFn = this.getDimensions;
|
|
6941
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
6942
|
+
return {
|
|
6943
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
6944
|
+
floating: {
|
|
6945
|
+
x: 0,
|
|
6946
|
+
y: 0,
|
|
6947
|
+
width: floatingDimensions.width,
|
|
6948
|
+
height: floatingDimensions.height
|
|
6949
|
+
}
|
|
6950
|
+
};
|
|
6951
|
+
};
|
|
6952
|
+
|
|
6953
|
+
function isRTL(element) {
|
|
6954
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
|
6955
|
+
}
|
|
6956
|
+
|
|
6957
|
+
const platform = {
|
|
6958
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
6959
|
+
getDocumentElement,
|
|
6960
|
+
getClippingRect,
|
|
6961
|
+
getOffsetParent,
|
|
6962
|
+
getElementRects,
|
|
6963
|
+
getClientRects,
|
|
6964
|
+
getDimensions,
|
|
6965
|
+
getScale,
|
|
6966
|
+
isElement,
|
|
6967
|
+
isRTL
|
|
6968
|
+
};
|
|
6969
|
+
|
|
6970
|
+
function rectsAreEqual(a, b) {
|
|
6971
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
6972
|
+
}
|
|
6973
|
+
|
|
6974
|
+
// https://samthor.au/2021/observing-dom/
|
|
6975
|
+
function observeMove(element, onMove) {
|
|
6976
|
+
let io = null;
|
|
6977
|
+
let timeoutId;
|
|
6978
|
+
const root = getDocumentElement(element);
|
|
6979
|
+
function cleanup() {
|
|
6980
|
+
var _io;
|
|
6981
|
+
clearTimeout(timeoutId);
|
|
6982
|
+
(_io = io) == null || _io.disconnect();
|
|
6983
|
+
io = null;
|
|
6984
|
+
}
|
|
6985
|
+
function refresh(skip, threshold) {
|
|
6986
|
+
if (skip === void 0) {
|
|
6987
|
+
skip = false;
|
|
6988
|
+
}
|
|
6989
|
+
if (threshold === void 0) {
|
|
6990
|
+
threshold = 1;
|
|
6991
|
+
}
|
|
6992
|
+
cleanup();
|
|
6993
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
6994
|
+
const {
|
|
6995
|
+
left,
|
|
6996
|
+
top,
|
|
6997
|
+
width,
|
|
6998
|
+
height
|
|
6999
|
+
} = elementRectForRootMargin;
|
|
7000
|
+
if (!skip) {
|
|
7001
|
+
onMove();
|
|
7002
|
+
}
|
|
7003
|
+
if (!width || !height) {
|
|
7004
|
+
return;
|
|
7005
|
+
}
|
|
7006
|
+
const insetTop = floor(top);
|
|
7007
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
7008
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
7009
|
+
const insetLeft = floor(left);
|
|
7010
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
7011
|
+
const options = {
|
|
7012
|
+
rootMargin,
|
|
7013
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
7014
|
+
};
|
|
7015
|
+
let isFirstUpdate = true;
|
|
7016
|
+
function handleObserve(entries) {
|
|
7017
|
+
const ratio = entries[0].intersectionRatio;
|
|
7018
|
+
if (ratio !== threshold) {
|
|
7019
|
+
if (!isFirstUpdate) {
|
|
7020
|
+
return refresh();
|
|
7021
|
+
}
|
|
7022
|
+
if (!ratio) {
|
|
7023
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
7024
|
+
// to prevent an infinite loop of updates.
|
|
7025
|
+
timeoutId = setTimeout(() => {
|
|
7026
|
+
refresh(false, 1e-7);
|
|
7027
|
+
}, 1000);
|
|
7028
|
+
} else {
|
|
7029
|
+
refresh(false, ratio);
|
|
7030
|
+
}
|
|
7031
|
+
}
|
|
7032
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
7033
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
7034
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
7035
|
+
// area anymore. This can happen under performance constraints. This may
|
|
7036
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
7037
|
+
// work around this, we compare the element's bounding rect now with
|
|
7038
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
7039
|
+
// are not equal then the element moved, so we refresh.
|
|
7040
|
+
refresh();
|
|
7041
|
+
}
|
|
7042
|
+
isFirstUpdate = false;
|
|
7043
|
+
}
|
|
7044
|
+
|
|
7045
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
7046
|
+
// error.
|
|
7047
|
+
try {
|
|
7048
|
+
io = new IntersectionObserver(handleObserve, {
|
|
7049
|
+
...options,
|
|
7050
|
+
// Handle <iframe>s
|
|
7051
|
+
root: root.ownerDocument
|
|
7052
|
+
});
|
|
7053
|
+
} catch (_e) {
|
|
7054
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
7055
|
+
}
|
|
7056
|
+
io.observe(element);
|
|
7057
|
+
}
|
|
7058
|
+
refresh(true);
|
|
7059
|
+
return cleanup;
|
|
7060
|
+
}
|
|
7061
|
+
|
|
7062
|
+
/**
|
|
7063
|
+
* Automatically updates the position of the floating element when necessary.
|
|
7064
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
7065
|
+
* visible on the screen.
|
|
7066
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
7067
|
+
* removed from the DOM or hidden from the screen.
|
|
7068
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
7069
|
+
*/
|
|
7070
|
+
function autoUpdate(reference, floating, update, options) {
|
|
7071
|
+
if (options === void 0) {
|
|
7072
|
+
options = {};
|
|
7073
|
+
}
|
|
7074
|
+
const {
|
|
7075
|
+
ancestorScroll = true,
|
|
7076
|
+
ancestorResize = true,
|
|
7077
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
7078
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
7079
|
+
animationFrame = false
|
|
7080
|
+
} = options;
|
|
7081
|
+
const referenceEl = unwrapElement(reference);
|
|
7082
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
7083
|
+
ancestors.forEach(ancestor => {
|
|
7084
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
7085
|
+
passive: true
|
|
7086
|
+
});
|
|
7087
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
|
7088
|
+
});
|
|
7089
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
7090
|
+
let reobserveFrame = -1;
|
|
7091
|
+
let resizeObserver = null;
|
|
7092
|
+
if (elementResize) {
|
|
7093
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
7094
|
+
let [firstEntry] = _ref;
|
|
7095
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
7096
|
+
// Prevent update loops when using the `size` middleware.
|
|
7097
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
7098
|
+
resizeObserver.unobserve(floating);
|
|
7099
|
+
cancelAnimationFrame(reobserveFrame);
|
|
7100
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
7101
|
+
var _resizeObserver;
|
|
7102
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
7103
|
+
});
|
|
7104
|
+
}
|
|
7105
|
+
update();
|
|
7106
|
+
});
|
|
7107
|
+
if (referenceEl && !animationFrame) {
|
|
7108
|
+
resizeObserver.observe(referenceEl);
|
|
7109
|
+
}
|
|
7110
|
+
if (floating) {
|
|
7111
|
+
resizeObserver.observe(floating);
|
|
7112
|
+
}
|
|
7113
|
+
}
|
|
7114
|
+
let frameId;
|
|
7115
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
7116
|
+
if (animationFrame) {
|
|
7117
|
+
frameLoop();
|
|
7118
|
+
}
|
|
7119
|
+
function frameLoop() {
|
|
7120
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
7121
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
7122
|
+
update();
|
|
7123
|
+
}
|
|
7124
|
+
prevRefRect = nextRefRect;
|
|
7125
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
7126
|
+
}
|
|
7127
|
+
update();
|
|
7128
|
+
return () => {
|
|
7129
|
+
var _resizeObserver2;
|
|
7130
|
+
ancestors.forEach(ancestor => {
|
|
7131
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
7132
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
7133
|
+
});
|
|
7134
|
+
cleanupIo == null || cleanupIo();
|
|
7135
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
7136
|
+
resizeObserver = null;
|
|
7137
|
+
if (animationFrame) {
|
|
7138
|
+
cancelAnimationFrame(frameId);
|
|
7139
|
+
}
|
|
7140
|
+
};
|
|
7141
|
+
}
|
|
7142
|
+
|
|
7143
|
+
/**
|
|
7144
|
+
* Modifies the placement by translating the floating element along the
|
|
7145
|
+
* specified axes.
|
|
7146
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
7147
|
+
* object may be passed.
|
|
7148
|
+
* @see https://floating-ui.com/docs/offset
|
|
7149
|
+
*/
|
|
7150
|
+
const offset = offset$1;
|
|
7151
|
+
|
|
7152
|
+
/**
|
|
7153
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
7154
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
7155
|
+
* @see https://floating-ui.com/docs/shift
|
|
7156
|
+
*/
|
|
7157
|
+
const shift = shift$1;
|
|
7158
|
+
|
|
7159
|
+
/**
|
|
7160
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
7161
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
7162
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
7163
|
+
* @see https://floating-ui.com/docs/flip
|
|
7164
|
+
*/
|
|
7165
|
+
const flip = flip$1;
|
|
7166
|
+
|
|
7167
|
+
/**
|
|
7168
|
+
* Provides data that allows you to change the size of the floating element —
|
|
7169
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
7170
|
+
* width of the reference element.
|
|
7171
|
+
* @see https://floating-ui.com/docs/size
|
|
7172
|
+
*/
|
|
7173
|
+
const size = size$1;
|
|
7174
|
+
|
|
7175
|
+
/**
|
|
7176
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
7177
|
+
* next to a given reference element.
|
|
7178
|
+
*/
|
|
7179
|
+
const computePosition = (reference, floating, options) => {
|
|
7180
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
|
7181
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
7182
|
+
// single call. If other functions become expensive, we can add them as well.
|
|
7183
|
+
const cache = new Map();
|
|
7184
|
+
const mergedOptions = {
|
|
7185
|
+
platform,
|
|
7186
|
+
...options
|
|
7187
|
+
};
|
|
7188
|
+
const platformWithCache = {
|
|
7189
|
+
...mergedOptions.platform,
|
|
7190
|
+
_c: cache
|
|
7191
|
+
};
|
|
7192
|
+
return computePosition$1(reference, floating, {
|
|
7193
|
+
...mergedOptions,
|
|
7194
|
+
platform: platformWithCache
|
|
7195
|
+
});
|
|
7196
|
+
};
|
|
7197
|
+
|
|
7198
|
+
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
7199
|
|
|
5437
7200
|
const CuraSelect = class {
|
|
5438
7201
|
constructor(hostRef) {
|
|
@@ -5517,8 +7280,17 @@ const CuraSelect = class {
|
|
|
5517
7280
|
* Default: false
|
|
5518
7281
|
*/
|
|
5519
7282
|
this.isOpen = false;
|
|
7283
|
+
this.isPositioned = false;
|
|
7284
|
+
this.menuStyle = {
|
|
7285
|
+
top: '0px',
|
|
7286
|
+
left: '0px',
|
|
7287
|
+
width: '0px',
|
|
7288
|
+
maxHeight: this.maxHeight,
|
|
7289
|
+
};
|
|
5520
7290
|
this.activeIndex = -1;
|
|
7291
|
+
this.preferredPlacement = 'bottom';
|
|
5521
7292
|
this.textInput = '';
|
|
7293
|
+
this.floatingPlacement = 'bottom-start';
|
|
5522
7294
|
/**
|
|
5523
7295
|
* Styles to be applied to the component.
|
|
5524
7296
|
*/
|
|
@@ -5551,7 +7323,7 @@ const CuraSelect = class {
|
|
|
5551
7323
|
var _a;
|
|
5552
7324
|
const { code: keyCode } = event;
|
|
5553
7325
|
if (!this.isOpen && keyCode === 'ArrowDown') {
|
|
5554
|
-
this.
|
|
7326
|
+
this.openMenu();
|
|
5555
7327
|
this.activeIndex = 0;
|
|
5556
7328
|
return;
|
|
5557
7329
|
}
|
|
@@ -5567,12 +7339,17 @@ const CuraSelect = class {
|
|
|
5567
7339
|
(_a = this.options[this.activeIndex]) === null || _a === void 0 ? void 0 : _a.click();
|
|
5568
7340
|
}
|
|
5569
7341
|
if (keyCode === 'Escape') {
|
|
5570
|
-
this.
|
|
7342
|
+
this.closeMenu();
|
|
5571
7343
|
}
|
|
5572
7344
|
};
|
|
5573
7345
|
this.handleInputChange = (e) => {
|
|
5574
7346
|
this.textInput = e.target.value;
|
|
5575
|
-
|
|
7347
|
+
if (this.searchBehavior) {
|
|
7348
|
+
if (this.textInput.length > 0 && !this.isOpen)
|
|
7349
|
+
this.openMenu();
|
|
7350
|
+
if (this.textInput.length === 0 && this.isOpen)
|
|
7351
|
+
this.closeMenu();
|
|
7352
|
+
}
|
|
5576
7353
|
this.internals.setFormValue(this.textInput);
|
|
5577
7354
|
};
|
|
5578
7355
|
this.handleClick = (event) => {
|
|
@@ -5581,14 +7358,20 @@ const CuraSelect = class {
|
|
|
5581
7358
|
const target = event.target;
|
|
5582
7359
|
if (target.tagName === 'CURA-SELECT-OPTION')
|
|
5583
7360
|
return this.onOptiselected(event);
|
|
5584
|
-
this.isOpen
|
|
7361
|
+
this.isOpen ? this.closeMenu() : this.openMenu();
|
|
5585
7362
|
};
|
|
5586
7363
|
this.handleClickOutside = (event) => {
|
|
5587
|
-
const
|
|
7364
|
+
const path = (event.composedPath && event.composedPath()) || [];
|
|
7365
|
+
const clickedOutside = !path.includes(this.host) && !(this.menuElement && path.includes(this.menuElement));
|
|
5588
7366
|
if (clickedOutside) {
|
|
5589
|
-
this.
|
|
7367
|
+
this.closeMenu();
|
|
5590
7368
|
}
|
|
5591
7369
|
};
|
|
7370
|
+
this.handleViewportChange = () => {
|
|
7371
|
+
if (!this.isOpen)
|
|
7372
|
+
return;
|
|
7373
|
+
this.updateMenuPosition();
|
|
7374
|
+
};
|
|
5592
7375
|
}
|
|
5593
7376
|
updateOptionHighlights(newActiveINdex) {
|
|
5594
7377
|
this.options.forEach((option, index) => (option.active = index === newActiveINdex));
|
|
@@ -5660,6 +7443,7 @@ const CuraSelect = class {
|
|
|
5660
7443
|
// this.initializeOptions();
|
|
5661
7444
|
this.setupMutationObserver();
|
|
5662
7445
|
this.addOutsideClickListener();
|
|
7446
|
+
this.addPositionListeners();
|
|
5663
7447
|
}
|
|
5664
7448
|
/**
|
|
5665
7449
|
* Lifecycle method called when the component is connected to the DOM.
|
|
@@ -5673,9 +7457,11 @@ const CuraSelect = class {
|
|
|
5673
7457
|
* Disconnects the MutationObserver if it exists.
|
|
5674
7458
|
*/
|
|
5675
7459
|
disconnectedCallback() {
|
|
5676
|
-
var _a;
|
|
7460
|
+
var _a, _b;
|
|
5677
7461
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
5678
7462
|
this.removeOutsideClickListener();
|
|
7463
|
+
this.removePositionListeners();
|
|
7464
|
+
(_b = this.cleanupAutoUpdate) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
5679
7465
|
}
|
|
5680
7466
|
initializeOptions() {
|
|
5681
7467
|
var _a;
|
|
@@ -5744,7 +7530,7 @@ const CuraSelect = class {
|
|
|
5744
7530
|
this.internals.setFormValue(this.value);
|
|
5745
7531
|
if (this.textInput !== selectedOptionElement.textContent) {
|
|
5746
7532
|
this.textInput = selectedOptionElement.textContent;
|
|
5747
|
-
this.
|
|
7533
|
+
this.closeMenu();
|
|
5748
7534
|
this.selected.emit(selectedOptionElement.value);
|
|
5749
7535
|
}
|
|
5750
7536
|
}
|
|
@@ -5799,32 +7585,103 @@ const CuraSelect = class {
|
|
|
5799
7585
|
const icon = { default: this.iconName, success: 'checkCircle', error: 'alertCircle' }[this.status];
|
|
5800
7586
|
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
7587
|
}
|
|
7588
|
+
openMenu() {
|
|
7589
|
+
this.isOpen = true;
|
|
7590
|
+
this.isPositioned = false;
|
|
7591
|
+
requestAnimationFrame(() => this.setupFloating());
|
|
7592
|
+
}
|
|
7593
|
+
closeMenu() {
|
|
7594
|
+
var _a;
|
|
7595
|
+
this.isOpen = false;
|
|
7596
|
+
this.isPositioned = false;
|
|
7597
|
+
(_a = this.cleanupAutoUpdate) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
7598
|
+
}
|
|
5802
7599
|
addOutsideClickListener() {
|
|
5803
7600
|
document.addEventListener('click', this.handleClickOutside);
|
|
5804
7601
|
}
|
|
5805
7602
|
removeOutsideClickListener() {
|
|
5806
7603
|
document.removeEventListener('click', this.handleClickOutside);
|
|
5807
7604
|
}
|
|
7605
|
+
addPositionListeners() {
|
|
7606
|
+
window.addEventListener('resize', this.handleViewportChange, { passive: true });
|
|
7607
|
+
window.addEventListener('scroll', this.handleViewportChange, true);
|
|
7608
|
+
}
|
|
7609
|
+
removePositionListeners() {
|
|
7610
|
+
window.removeEventListener('resize', this.handleViewportChange);
|
|
7611
|
+
window.removeEventListener('scroll', this.handleViewportChange, true);
|
|
7612
|
+
}
|
|
7613
|
+
parseMaxHeight() {
|
|
7614
|
+
const numeric = parseFloat(this.maxHeight);
|
|
7615
|
+
return Number.isFinite(numeric) ? numeric : 285;
|
|
7616
|
+
}
|
|
7617
|
+
setupFloating() {
|
|
7618
|
+
var _a;
|
|
7619
|
+
if (!this.inputWrapper || !this.menuElement)
|
|
7620
|
+
return;
|
|
7621
|
+
(_a = this.cleanupAutoUpdate) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
7622
|
+
this.cleanupAutoUpdate = autoUpdate(this.inputWrapper, this.menuElement, () => {
|
|
7623
|
+
this.updateMenuPosition();
|
|
7624
|
+
});
|
|
7625
|
+
this.updateMenuPosition();
|
|
7626
|
+
}
|
|
7627
|
+
updateMenuPosition() {
|
|
7628
|
+
if (!this.inputWrapper || !this.menuElement)
|
|
7629
|
+
return;
|
|
7630
|
+
computePosition(this.inputWrapper, this.menuElement, {
|
|
7631
|
+
strategy: 'fixed',
|
|
7632
|
+
placement: this.floatingPlacement,
|
|
7633
|
+
middleware: [
|
|
7634
|
+
offset(0),
|
|
7635
|
+
flip(),
|
|
7636
|
+
shift({ padding: 8 }),
|
|
7637
|
+
size({
|
|
7638
|
+
apply: ({ rects, availableHeight }) => {
|
|
7639
|
+
this.menuStyle = Object.assign(Object.assign({}, this.menuStyle), { width: `${rects.reference.width}px`, maxHeight: `${Math.min(availableHeight, this.parseMaxHeight())}px` });
|
|
7640
|
+
},
|
|
7641
|
+
}),
|
|
7642
|
+
],
|
|
7643
|
+
}).then(({ x, y, placement }) => {
|
|
7644
|
+
this.preferredPlacement = placement.startsWith('top') ? 'top' : 'bottom';
|
|
7645
|
+
this.menuStyle = Object.assign(Object.assign({}, this.menuStyle), { top: `${y}px`, left: `${x}px` });
|
|
7646
|
+
this.isPositioned = true;
|
|
7647
|
+
});
|
|
7648
|
+
}
|
|
5808
7649
|
render() {
|
|
5809
|
-
return (h(Host, { key: '
|
|
7650
|
+
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
7651
|
'cura-input-field': true,
|
|
5811
7652
|
'open': this.isOpen,
|
|
5812
|
-
} }, this.renderIcon(), h("input", { key: '
|
|
7653
|
+
}, 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
7654
|
menu: true,
|
|
5814
7655
|
open: this.isOpen,
|
|
5815
|
-
|
|
7656
|
+
[this.preferredPlacement]: true,
|
|
7657
|
+
}, ref: el => (this.menuElement = el), style: {
|
|
7658
|
+
'--max-height': this.maxHeight,
|
|
7659
|
+
top: this.menuStyle.top,
|
|
7660
|
+
left: this.menuStyle.left,
|
|
7661
|
+
width: this.menuStyle.width,
|
|
7662
|
+
maxHeight: this.menuStyle.maxHeight,
|
|
7663
|
+
visibility: this.isPositioned ? 'visible' : 'hidden',
|
|
7664
|
+
opacity: this.isPositioned ? '1' : '0',
|
|
7665
|
+
pointerEvents: this.isPositioned ? 'auto' : 'none',
|
|
7666
|
+
} }, h("slot", { key: '84c3bb501966175635102b2ccbfa0cf43d2112f1', name: "option" }))))));
|
|
5816
7667
|
}
|
|
5817
7668
|
static get formAssociated() { return true; }
|
|
5818
7669
|
get host() { return getElement(this); }
|
|
5819
7670
|
static get watchers() { return {
|
|
5820
|
-
"activeIndex": [
|
|
5821
|
-
|
|
5822
|
-
|
|
7671
|
+
"activeIndex": [{
|
|
7672
|
+
"updateOptionHighlights": 0
|
|
7673
|
+
}],
|
|
7674
|
+
"textInput": [{
|
|
7675
|
+
"filterOptions": 0
|
|
7676
|
+
}],
|
|
7677
|
+
"value": [{
|
|
7678
|
+
"handleValueChange": 0
|
|
7679
|
+
}]
|
|
5823
7680
|
}; }
|
|
5824
7681
|
};
|
|
5825
|
-
CuraSelect.style = curaSelectCss;
|
|
7682
|
+
CuraSelect.style = curaSelectCss();
|
|
5826
7683
|
|
|
5827
|
-
const curaSelectOptionCss =
|
|
7684
|
+
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
7685
|
|
|
5829
7686
|
const CuraSelectOption = class {
|
|
5830
7687
|
constructor(hostRef) {
|
|
@@ -5864,12 +7721,14 @@ const CuraSelectOption = class {
|
|
|
5864
7721
|
}
|
|
5865
7722
|
get host() { return getElement(this); }
|
|
5866
7723
|
static get watchers() { return {
|
|
5867
|
-
"size": [
|
|
7724
|
+
"size": [{
|
|
7725
|
+
"getSize": 0
|
|
7726
|
+
}]
|
|
5868
7727
|
}; }
|
|
5869
7728
|
};
|
|
5870
|
-
CuraSelectOption.style = curaSelectOptionCss;
|
|
7729
|
+
CuraSelectOption.style = curaSelectOptionCss();
|
|
5871
7730
|
|
|
5872
|
-
const curaTabsCss =
|
|
7731
|
+
const curaTabsCss = () => `:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;min-width:120px;width:fit-content;display:flex;align-items:center;justify-content:center;border-radius:4px 4px 0 0}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.border-bottom,:host a.border-bottom{border-bottom:1px solid var(--border-bottom-color)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.light,:host a:not(.disabled,.selected):hover.light{border-bottom-color:var(--primary-dark)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-bottom-color:var(--neutral-purewhite)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:focus,:host a:focus{border:2px solid var(--primary-light)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer;background-color:var(--background-color-selected)}:host button.selected.disabled,:host a.selected.disabled{background-color:var(--background-disabled-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}`;
|
|
5873
7732
|
|
|
5874
7733
|
const CuraTabs = class {
|
|
5875
7734
|
constructor(hostRef) {
|
|
@@ -5961,12 +7820,14 @@ const CuraTabs = class {
|
|
|
5961
7820
|
return (h(Host, { key: '3966968b73a9a51ec26f3206cdb09fbfcb3d3daf', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, h("button", { key: '00cc6382c635a05c52fd74b3e02e968c2d94cacb', class: this.getClasses(), style: this.styles, onClick: e => this.handleClick(e), disabled: this.disabled, onMouseEnter: this.handleMouseEnter.bind(this), onMouseLeave: this.handleMouseLeave.bind(this) }, this.getIcon(), h("cura-label", { key: 'e193500f156c10cf0442e6f504e19d552c19f849', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, h("slot", { key: '8a0ac7c4b2ff4990093d13b4110e370616cf39f4' })))));
|
|
5962
7821
|
}
|
|
5963
7822
|
static get watchers() { return {
|
|
5964
|
-
"colorMode": [
|
|
7823
|
+
"colorMode": [{
|
|
7824
|
+
"setColors": 0
|
|
7825
|
+
}]
|
|
5965
7826
|
}; }
|
|
5966
7827
|
};
|
|
5967
|
-
CuraTabs.style = curaTabsCss;
|
|
7828
|
+
CuraTabs.style = curaTabsCss();
|
|
5968
7829
|
|
|
5969
|
-
const curaTabsGroupCss =
|
|
7830
|
+
const curaTabsGroupCss = () => `:host{display:flex;gap:var(--gap)}:host(.border-bottom){position:relative}:host(.border-bottom)::after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background:var(--border-color);z-index:0}::slotted(cura-tabs),::slotted(cura-tabs-transparent){position:relative;z-index:1}`;
|
|
5970
7831
|
|
|
5971
7832
|
const CuraTabsGroup = class {
|
|
5972
7833
|
constructor(hostRef) {
|
|
@@ -5999,9 +7860,6 @@ const CuraTabsGroup = class {
|
|
|
5999
7860
|
}
|
|
6000
7861
|
get host() { return getElement(this); }
|
|
6001
7862
|
};
|
|
6002
|
-
CuraTabsGroup.style = curaTabsGroupCss;
|
|
6003
|
-
|
|
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
|
|
7863
|
+
CuraTabsGroup.style = curaTabsGroupCss();
|
|
6006
7864
|
|
|
6007
|
-
|
|
7865
|
+
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 };
|