@rededor/cura 2.0.0-alpha.10 → 2.0.0-alpha.12
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/cjs/app-globals-e8cmvmo1.js +69 -0
- package/dist/cjs/cura-accordion_21.cjs.entry.js +267 -208
- package/dist/cjs/cura-alert.cjs.entry.js +7 -8
- 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 +4 -7
- 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 +0 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- package/dist/collection/components/cura-alert/cura-alert.js +7 -8
- package/dist/collection/components/cura-alert/cura-alert.stories.js +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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 +0 -0
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +13 -14
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js +0 -1
- package/dist/collection/components/cura-icon/cura-icon.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +6 -7
- package/dist/collection/components/cura-stepper/cura-stepper.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +29 -30
- 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.css +0 -0
- 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.css +0 -0
- 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 +0 -0
- package/dist/collection/components/forms/cura-select/cura-select.js +13 -14
- 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 +0 -0
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +5 -6
- package/dist/collection/components/forms/cura-switch/cura-switch.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.css +0 -0
- 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.d.ts +0 -0
- package/dist/components/cura-accordion-item.js +1 -102
- package/dist/components/cura-accordion.d.ts +0 -0
- package/dist/components/cura-accordion.js +1 -144
- package/dist/components/cura-alert.d.ts +0 -0
- package/dist/components/cura-alert.js +1 -110
- package/dist/components/cura-avatar.d.ts +0 -0
- package/dist/components/cura-avatar.js +1 -112
- package/dist/components/cura-badge-counter.d.ts +0 -0
- package/dist/components/cura-badge-counter.js +1 -9
- package/dist/components/cura-badge-distance.d.ts +0 -0
- package/dist/components/cura-badge-distance.js +1 -73
- package/dist/components/cura-badge-dot.d.ts +0 -0
- package/dist/components/cura-badge-dot.js +1 -73
- package/dist/components/cura-badge-pill.d.ts +0 -0
- package/dist/components/cura-badge-pill.js +1 -9
- package/dist/components/cura-button-outline.d.ts +0 -0
- package/dist/components/cura-button-outline.js +1 -206
- package/dist/components/cura-button-select.d.ts +0 -0
- package/dist/components/cura-button-select.js +1 -163
- package/dist/components/cura-button-transparent.d.ts +0 -0
- package/dist/components/cura-button-transparent.js +1 -9
- package/dist/components/cura-button.d.ts +0 -0
- package/dist/components/cura-button.js +1 -205
- package/dist/components/cura-calendar.d.ts +0 -0
- package/dist/components/cura-calendar.js +1 -9
- package/dist/components/cura-card.d.ts +0 -0
- package/dist/components/cura-card.js +1 -104
- package/dist/components/cura-checkbox.d.ts +0 -0
- package/dist/components/cura-checkbox.js +1 -286
- package/dist/components/cura-display.d.ts +0 -0
- package/dist/components/cura-display.js +1 -128
- package/dist/components/cura-dropdown-search-category.d.ts +0 -0
- package/dist/components/cura-dropdown-search-category.js +1 -49
- package/dist/components/cura-dropdown-search-not-found.d.ts +0 -0
- package/dist/components/cura-dropdown-search-not-found.js +1 -48
- package/dist/components/cura-dropdown-search-option.d.ts +0 -0
- package/dist/components/cura-dropdown-search-option.js +1 -93
- package/dist/components/cura-dropdown-search.d.ts +0 -0
- package/dist/components/cura-dropdown-search.js +1 -467
- package/dist/components/cura-heading.d.ts +0 -0
- package/dist/components/cura-heading.js +1 -9
- package/dist/components/cura-icon.d.ts +0 -0
- package/dist/components/cura-icon.js +1 -9
- package/dist/components/cura-icons-view.d.ts +0 -0
- package/dist/components/cura-icons-view.js +1 -67
- package/dist/components/cura-input-date.d.ts +0 -0
- package/dist/components/cura-input-date.js +1 -286
- package/dist/components/cura-input-text.d.ts +0 -0
- package/dist/components/cura-input-text.js +1 -9
- package/dist/components/cura-label.d.ts +0 -0
- package/dist/components/cura-label.js +1 -9
- package/dist/components/cura-loader-bar.d.ts +0 -0
- package/dist/components/cura-loader-bar.js +1 -9
- package/dist/components/cura-loader-circle.d.ts +0 -0
- package/dist/components/cura-loader-circle.js +1 -9
- package/dist/components/cura-modal.d.ts +0 -0
- package/dist/components/cura-modal.js +1 -181
- package/dist/components/cura-page-template.d.ts +0 -0
- package/dist/components/cura-page-template.js +1 -50
- package/dist/components/cura-paragraph.d.ts +0 -0
- package/dist/components/cura-paragraph.js +1 -9
- package/dist/components/cura-progress-bar.d.ts +0 -0
- package/dist/components/cura-progress-bar.js +1 -9
- package/dist/components/cura-radio.d.ts +0 -0
- package/dist/components/cura-radio.js +1 -249
- package/dist/components/cura-select-option.d.ts +0 -0
- package/dist/components/cura-select-option.js +1 -9
- package/dist/components/cura-select.d.ts +0 -0
- package/dist/components/cura-select.js +1 -9
- package/dist/components/cura-stepper-item.d.ts +0 -0
- package/dist/components/cura-stepper-item.js +1 -9
- package/dist/components/cura-stepper.d.ts +0 -0
- package/dist/components/cura-stepper.js +1 -205
- package/dist/components/cura-switch.d.ts +0 -0
- package/dist/components/cura-switch.js +1 -201
- package/dist/components/cura-tabs-button.d.ts +0 -0
- package/dist/components/cura-tabs-button.js +1 -148
- package/dist/components/cura-tabs-group.d.ts +0 -0
- package/dist/components/cura-tabs-group.js +1 -64
- package/dist/components/cura-tabs-transparent.d.ts +0 -0
- package/dist/components/cura-tabs-transparent.js +1 -141
- package/dist/components/cura-tabs.d.ts +0 -0
- package/dist/components/cura-tabs.js +1 -146
- package/dist/components/cura-toast.d.ts +0 -0
- package/dist/components/cura-toast.js +1 -162
- package/dist/components/cura-tooltip.d.ts +0 -0
- 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_21.entry.js +266 -207
- package/dist/esm/cura-alert.entry.js +7 -8
- 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 +4 -7
- 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/index.cjs.js +0 -0
- package/dist/index.js +0 -0
- package/dist/loader/cdn.js +0 -0
- package/dist/loader/index.cjs.js +0 -0
- package/dist/loader/index.d.ts +0 -0
- package/dist/loader/index.es2017.js +0 -0
- package/dist/loader/index.js +0 -0
- package/dist/types/api/cura-api.d.ts +0 -0
- package/dist/types/api/cura-api.type.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-colors-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-fonts-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-spacing-module.d.ts +0 -0
- package/dist/types/api/theme-presets/static.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-default.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-legacy-default.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-oncology.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-perinatal-temporary.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-presets.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-richet.d.ts +0 -0
- package/dist/types/assets/icons/iconset-default-list.d.ts +0 -0
- package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +0 -0
- package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +0 -0
- package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.stories.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.stories.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.stories.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -0
- package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-select/cura-button-select.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button.definitions.d.ts +0 -0
- package/dist/types/components/cura-alert/cura-alert.d.ts +0 -0
- package/dist/types/components/cura-alert/cura-alert.stories.d.ts +0 -0
- package/dist/types/components/cura-avatar/cura-avatar.d.ts +0 -0
- package/dist/types/components/cura-avatar/cura-avatar.definitions.d.ts +0 -0
- package/dist/types/components/cura-avatar/cura-avatar.stories.d.ts +0 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +0 -0
- package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +0 -0
- package/dist/types/components/cura-card/cura-card.d.ts +0 -0
- package/dist/types/components/cura-card/cura-card.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search.stories.d.ts +0 -0
- package/dist/types/components/cura-icon/cura-icon.d.ts +0 -0
- package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +0 -0
- package/dist/types/components/cura-icon/cura-icon.stories.d.ts +0 -0
- package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +0 -0
- package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +0 -0
- package/dist/types/components/cura-modal/cura-modal.d.ts +0 -0
- package/dist/types/components/cura-modal/cura-modal.stories.d.ts +0 -0
- package/dist/types/components/cura-page-template/cura-page-template.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-progress-bar/cura-progress-bar.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-stepper-item/cura-stepper-item.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-stepper.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-stepper.stories.d.ts +0 -0
- package/dist/types/components/cura-stepper/stepper.type.d.ts +0 -0
- package/dist/types/components/cura-toast/cura-toast.d.ts +0 -0
- package/dist/types/components/cura-toast/cura-toast.stories.d.ts +0 -0
- package/dist/types/components/cura-tooltip/cura-tooltip.d.ts +0 -0
- package/dist/types/components/cura-tooltip/cura-tooltip.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +0 -0
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-forms.definitions.d.ts +0 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +0 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +0 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +0 -0
- package/dist/types/components/forms/cura-label/cura-label.d.ts +0 -0
- package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-radio/cura-radio.d.ts +0 -0
- package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-select/cura-select.d.ts +0 -0
- package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-select-options/cura-select-option.d.ts +0 -0
- package/dist/types/components/forms/cura-switch/cura-switch.d.ts +0 -0
- package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.stories.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs/cura-tabs.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs/cura-tabs.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs.definitions.d.ts +0 -0
- package/dist/types/components/text/cura-display/cura-display.d.ts +0 -0
- package/dist/types/components/text/cura-display/cura-display.stories.d.ts +0 -0
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +0 -0
- package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +0 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +0 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +0 -0
- package/dist/types/components.d.ts +559 -85
- package/dist/types/index.d.ts +0 -0
- package/dist/types/rededor-cura-start.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +169 -11
- package/dist/types/utils/FixedElementScrollBehavior.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/package.json +4 -3
- package/dist/cjs/cura-accordion_21.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-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-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-BrJsfk5q.js +0 -4140
- package/dist/components/p-BrJsfk5q.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-CvdWbsfO.js +0 -2147
- package/dist/components/p-CvdWbsfO.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-DETZu2ie.js +0 -7032
- package/dist/components/p-DETZu2ie.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-Dqm2sAwv.js +0 -58
- package/dist/components/p-Dqm2sAwv.js.map +0 -1
- package/dist/components/p-Dt450DkQ.js +0 -86
- package/dist/components/p-Dt450DkQ.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-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-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-7586fd07.entry.js +0 -2
- package/dist/cura/p-7586fd07.entry.js.map +0 -1
- package/dist/cura/p-76603652.entry.js +0 -2
- package/dist/cura/p-76603652.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-8d10a5a2.entry.js +0 -2
- package/dist/cura/p-8d10a5a2.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-bdfe9af2.entry.js +0 -2
- package/dist/cura/p-bdfe9af2.entry.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-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_21.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-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,73 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-DR1RHrEX.js';
|
|
3
|
-
|
|
4
|
-
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)}";
|
|
5
|
-
|
|
6
|
-
const CuraDistance = /*@__PURE__*/ proxyCustomElement(class CuraDistance extends H {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.distance = 0;
|
|
12
|
-
this.label = 'km';
|
|
13
|
-
this.styles = {};
|
|
14
|
-
this.displayDistance = 0;
|
|
15
|
-
this.isThousandRounded = false;
|
|
16
|
-
this.theme = window.CuraAPI.theme;
|
|
17
|
-
}
|
|
18
|
-
formatDistance() {
|
|
19
|
-
const roundedDistance = this.distance % 1 !== 0 ? parseFloat(this.distance.toFixed(1)) : this.distance;
|
|
20
|
-
this.isThousandRounded = Math.abs(roundedDistance) >= 1000;
|
|
21
|
-
this.displayDistance = this.isThousandRounded ? parseFloat((roundedDistance / 1000).toFixed(1)) : roundedDistance;
|
|
22
|
-
}
|
|
23
|
-
connectedCallback() {
|
|
24
|
-
this.setCssProperties();
|
|
25
|
-
this.formatDistance();
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return (h(Host, { key: 'cdc206deecbed2e069befda5d21ddcaf03049afc' }, h("div", { key: 'd22d2b5b97964281e8588fbc17a66f3fddcd875e', class: "container", style: this.styles }, h("cura-label", { key: '0d54ab1ad403ba23a57fb78a422ed8c577cd627e', size: 'xsmall', weight: 'bold', color: 'neutral-black' }, this.displayDistance, this.isThousandRounded ? 'K' : ''), h("cura-label", { key: 'd4929a67484bbfd6d6f3edce82414951ea4778c8', size: 'xsmall', weight: 'bold', color: 'neutral-dark' }, this.label))));
|
|
29
|
-
}
|
|
30
|
-
setCssProperties() {
|
|
31
|
-
this.styles = {
|
|
32
|
-
'--neutral-pale': this.theme.colors.getColor(`neutral-pale`),
|
|
33
|
-
'--base-spacing': this.theme.spacing.getSpacing()
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
static get watchers() { return {
|
|
37
|
-
"distance": ["formatDistance"]
|
|
38
|
-
}; }
|
|
39
|
-
static get style() { return curaBadgeDistanceCss; }
|
|
40
|
-
}, [1, "cura-badge-distance", {
|
|
41
|
-
"distance": [2],
|
|
42
|
-
"label": [513],
|
|
43
|
-
"styles": [32],
|
|
44
|
-
"displayDistance": [32]
|
|
45
|
-
}, undefined, {
|
|
46
|
-
"distance": ["formatDistance"]
|
|
47
|
-
}]);
|
|
48
|
-
function defineCustomElement$1() {
|
|
49
|
-
if (typeof customElements === "undefined") {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
const components = ["cura-badge-distance", "cura-label"];
|
|
53
|
-
components.forEach(tagName => { switch (tagName) {
|
|
54
|
-
case "cura-badge-distance":
|
|
55
|
-
if (!customElements.get(tagName)) {
|
|
56
|
-
customElements.define(tagName, CuraDistance);
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
case "cura-label":
|
|
60
|
-
if (!customElements.get(tagName)) {
|
|
61
|
-
defineCustomElement$2();
|
|
62
|
-
}
|
|
63
|
-
break;
|
|
64
|
-
} });
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const CuraBadgeDistance = CuraDistance;
|
|
68
|
-
const defineCustomElement = defineCustomElement$1;
|
|
69
|
-
|
|
70
|
-
export { CuraBadgeDistance, defineCustomElement };
|
|
71
|
-
//# sourceMappingURL=cura-badge-distance.js.map
|
|
72
|
-
|
|
73
|
-
//# sourceMappingURL=cura-badge-distance.js.map
|
|
1
|
+
import{p as e,H as a,i as t,j as s,t as c}from"./p-DBXUEjWh.js";import{d as i}from"./p-BSdkRryc.js";const r=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.distance=0,this.label="km",this.styles={},this.displayDistance=0,this.isThousandRounded=!1,this.theme=window.CuraAPI.theme}formatDistance(){const e=this.distance%1!=0?parseFloat(this.distance.toFixed(1)):this.distance;this.isThousandRounded=Math.abs(e)>=1e3,this.displayDistance=this.isThousandRounded?parseFloat((e/1e3).toFixed(1)):e}connectedCallback(){this.setCssProperties(),this.formatDistance()}render(){return t(s,{key:"cdc206deecbed2e069befda5d21ddcaf03049afc"},t("div",{key:"d22d2b5b97964281e8588fbc17a66f3fddcd875e",class:"container",style:this.styles},t("cura-label",{key:"0d54ab1ad403ba23a57fb78a422ed8c577cd627e",size:"xsmall",weight:"bold",color:"neutral-black"},this.displayDistance,this.isThousandRounded?"K":""),t("cura-label",{key:"d4929a67484bbfd6d6f3edce82414951ea4778c8",size:"xsmall",weight:"bold",color:"neutral-dark"},this.label)))}setCssProperties(){this.styles={"--neutral-pale":this.theme.colors.getColor("neutral-pale"),"--base-spacing":this.theme.spacing.getSpacing()}}static get watchers(){return{distance:[{formatDistance:0}]}}static get style(){return":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)}"}},[1,"cura-badge-distance",{distance:[2],label:[513],styles:[32],displayDistance:[32]},void 0,{distance:[{formatDistance:0}]}]),n=r,d=function(){"undefined"!=typeof customElements&&["cura-badge-distance","cura-label"].forEach((e=>{switch(e){case"cura-badge-distance":customElements.get(c(e))||customElements.define(c(e),r);break;case"cura-label":customElements.get(c(e))||i()}}))};export{n as CuraBadgeDistance,d as defineCustomElement}
|
|
File without changes
|
|
@@ -1,73 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const curaBadgeDotCss = ":host{display:block;position:relative;width:fit-content;height:fit-content}:host .container{width:calc(var(--cura-spacing-base) * 2px);height:calc(var(--cura-spacing-base) * 2px);position:relative;box-sizing:border-box}:host .container::before{width:100%;height:100%;position:absolute;left:0;top:0;content:\"\";box-sizing:border-box;border-radius:50%;border:1px solid var(--color-dark);background:var(--color)}:host .container.disabled::before{background:var(--neutral-pale);border:1px solid var(--neutral-medium)}:host .container.outline::before{background:transparent;border:2px solid var(--color)}:host .container.outline.disabled::before{border:2px solid var(--neutral-medium)}:host .container.transparent::before{background:var(--color-dark);border:none}:host .container.transparent.disabled::before{background:var(--neutral-medium);border:none}";
|
|
4
|
-
|
|
5
|
-
const CuraBadgeDot$1 = /*@__PURE__*/ proxyCustomElement(class CuraBadgeDot extends H {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
this.theme = window.CuraAPI.theme;
|
|
11
|
-
/**
|
|
12
|
-
* Cor fundamental do design system sem profundidade.
|
|
13
|
-
* Ex.: primary (padrão)
|
|
14
|
-
*/
|
|
15
|
-
this.color = 'primary';
|
|
16
|
-
/**
|
|
17
|
-
* Define o estado do badge como desabilitado ou habilitado.
|
|
18
|
-
*/
|
|
19
|
-
this.disabled = false;
|
|
20
|
-
/**
|
|
21
|
-
* Define o estilo visual entre solid (default), outline ou transparent.
|
|
22
|
-
*/
|
|
23
|
-
this.type = 'solid';
|
|
24
|
-
this.styles = {};
|
|
25
|
-
}
|
|
26
|
-
connectedCallback() {
|
|
27
|
-
this.styles['--base-spacing'] = this.theme.spacing.getSpacing();
|
|
28
|
-
this.styles['--neutral-medium'] = this.theme.colors.getColor('neutral-dark');
|
|
29
|
-
this.styles['--neutral-pale'] = this.theme.colors.getColor('neutral-pale');
|
|
30
|
-
this.setColors();
|
|
31
|
-
}
|
|
32
|
-
setColors() {
|
|
33
|
-
this.styles = Object.assign(Object.assign({}, this.styles), { '--color': this.theme.colors.getColor(`${this.color}`), '--color-dark': this.theme.colors.getColor(`${this.color}-dark`) });
|
|
34
|
-
}
|
|
35
|
-
getClasses() {
|
|
36
|
-
const classes = {
|
|
37
|
-
'container': true,
|
|
38
|
-
'disabled': this.disabled
|
|
39
|
-
};
|
|
40
|
-
classes[`${this.type}`] = true;
|
|
41
|
-
return classes;
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
return (h(Host, { key: '00e335977fbb0677db9d95bab901a012ba8a5c06' }, h("div", { key: 'e828743793731c986f37dd6a9f7abdc78b63932b', class: this.getClasses(), style: this.styles })));
|
|
45
|
-
}
|
|
46
|
-
static get style() { return curaBadgeDotCss; }
|
|
47
|
-
}, [1, "cura-badge-dot", {
|
|
48
|
-
"color": [1],
|
|
49
|
-
"disabled": [516],
|
|
50
|
-
"type": [513],
|
|
51
|
-
"styles": [32]
|
|
52
|
-
}]);
|
|
53
|
-
function defineCustomElement$1() {
|
|
54
|
-
if (typeof customElements === "undefined") {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const components = ["cura-badge-dot"];
|
|
58
|
-
components.forEach(tagName => { switch (tagName) {
|
|
59
|
-
case "cura-badge-dot":
|
|
60
|
-
if (!customElements.get(tagName)) {
|
|
61
|
-
customElements.define(tagName, CuraBadgeDot$1);
|
|
62
|
-
}
|
|
63
|
-
break;
|
|
64
|
-
} });
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const CuraBadgeDot = CuraBadgeDot$1;
|
|
68
|
-
const defineCustomElement = defineCustomElement$1;
|
|
69
|
-
|
|
70
|
-
export { CuraBadgeDot, defineCustomElement };
|
|
71
|
-
//# sourceMappingURL=cura-badge-dot.js.map
|
|
72
|
-
|
|
73
|
-
//# sourceMappingURL=cura-badge-dot.js.map
|
|
1
|
+
import{p as t,H as e,i as r,j as o,t as s}from"./p-DBXUEjWh.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.theme=window.CuraAPI.theme,this.color="primary",this.disabled=!1,this.type="solid",this.styles={}}connectedCallback(){this.styles["--base-spacing"]=this.theme.spacing.getSpacing(),this.styles["--neutral-medium"]=this.theme.colors.getColor("neutral-dark"),this.styles["--neutral-pale"]=this.theme.colors.getColor("neutral-pale"),this.setColors()}setColors(){this.styles=Object.assign(Object.assign({},this.styles),{"--color":this.theme.colors.getColor(""+this.color),"--color-dark":this.theme.colors.getColor(this.color+"-dark")})}getClasses(){const t={container:!0,disabled:this.disabled};return t[""+this.type]=!0,t}render(){return r(o,{key:"00e335977fbb0677db9d95bab901a012ba8a5c06"},r("div",{key:"e828743793731c986f37dd6a9f7abdc78b63932b",class:this.getClasses(),style:this.styles}))}static get style(){return':host{display:block;position:relative;width:fit-content;height:fit-content}:host .container{width:calc(var(--cura-spacing-base) * 2px);height:calc(var(--cura-spacing-base) * 2px);position:relative;box-sizing:border-box}:host .container::before{width:100%;height:100%;position:absolute;left:0;top:0;content:"";box-sizing:border-box;border-radius:50%;border:1px solid var(--color-dark);background:var(--color)}:host .container.disabled::before{background:var(--neutral-pale);border:1px solid var(--neutral-medium)}:host .container.outline::before{background:transparent;border:2px solid var(--color)}:host .container.outline.disabled::before{border:2px solid var(--neutral-medium)}:host .container.transparent::before{background:var(--color-dark);border:none}:host .container.transparent.disabled::before{background:var(--neutral-medium);border:none}'}},[1,"cura-badge-dot",{color:[1],disabled:[516],type:[513],styles:[32]}]),i=a,n=function(){"undefined"!=typeof customElements&&["cura-badge-dot"].forEach((t=>{"cura-badge-dot"===t&&(customElements.get(s(t))||customElements.define(s(t),a))}))};export{i as CuraBadgeDot,n as defineCustomElement}
|
|
File without changes
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const CuraBadgePill = CuraBadgePill$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { CuraBadgePill, defineCustomElement };
|
|
7
|
-
//# sourceMappingURL=cura-badge-pill.js.map
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=cura-badge-pill.js.map
|
|
1
|
+
import{C as o,d as s}from"./p-D6xuYQiO.js";const p=o,r=s;export{p as CuraBadgePill,r as defineCustomElement}
|
|
File without changes
|
|
@@ -1,206 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { l as labelSizes } from './p-BSI2FkNn.js';
|
|
3
|
-
import { d as defineCustomElement$4 } from './p-B5aO1chh.js';
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-DR1RHrEX.js';
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-Dqm2sAwv.js';
|
|
6
|
-
|
|
7
|
-
const curaButtonOutlineCss = ":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;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 var(--color-dark-neutral-purewhite);border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{background-color:var(--color-lighter-color-darker)}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{background-color:var(--color-light-color-darker)}: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.disabled::before,:host a.disabled::before{border-color:var(--neutral-dark)}: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}";
|
|
8
|
-
|
|
9
|
-
const CuraButtonOutline$1 = /*@__PURE__*/ proxyCustomElement(class CuraButtonOutline extends H {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.__registerHost();
|
|
13
|
-
this.__attachShadow();
|
|
14
|
-
this.internals = this.attachInternals();
|
|
15
|
-
/**
|
|
16
|
-
* Button type: button (default) | submit | reset
|
|
17
|
-
*/
|
|
18
|
-
this.type = 'button';
|
|
19
|
-
/**
|
|
20
|
-
* Button size: small | medium | large (default)
|
|
21
|
-
*/
|
|
22
|
-
this.size = 'large';
|
|
23
|
-
/**
|
|
24
|
-
* Disabled state. Boolean.
|
|
25
|
-
*/
|
|
26
|
-
this.disabled = false;
|
|
27
|
-
/**
|
|
28
|
-
* Loading state. Boolean.
|
|
29
|
-
*/
|
|
30
|
-
this.isLoading = false;
|
|
31
|
-
/**
|
|
32
|
-
* Custom iconset if needed.
|
|
33
|
-
*/
|
|
34
|
-
this.iconset = 'default';
|
|
35
|
-
/**
|
|
36
|
-
* Icon position: left (default) | right.
|
|
37
|
-
*/
|
|
38
|
-
this.iconPosition = 'left';
|
|
39
|
-
/**
|
|
40
|
-
* Set button to FAB/icon only.
|
|
41
|
-
*/
|
|
42
|
-
this.iconOnly = false;
|
|
43
|
-
/**
|
|
44
|
-
* Set target if link.
|
|
45
|
-
*/
|
|
46
|
-
this.target = "_self";
|
|
47
|
-
/**
|
|
48
|
-
* Color base from color scheme. Default: primary.
|
|
49
|
-
*/
|
|
50
|
-
this.color = 'primary';
|
|
51
|
-
/**
|
|
52
|
-
* Set the font background to dark or light.
|
|
53
|
-
*/
|
|
54
|
-
this.background = 'light';
|
|
55
|
-
/**
|
|
56
|
-
* Set the font color to dark or light.
|
|
57
|
-
*/
|
|
58
|
-
this.fontColor = 'dark';
|
|
59
|
-
/**
|
|
60
|
-
* Set text aligment for the button label.
|
|
61
|
-
* Vales: left (default) | center | right.
|
|
62
|
-
*/
|
|
63
|
-
this.textAlign = 'left';
|
|
64
|
-
/**
|
|
65
|
-
* Justify icons and label inside the button.
|
|
66
|
-
* Vales: false (default) | true.
|
|
67
|
-
*/
|
|
68
|
-
this.justify = false;
|
|
69
|
-
this.styles = {};
|
|
70
|
-
this.hovered = false;
|
|
71
|
-
}
|
|
72
|
-
connectedCallback() {
|
|
73
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
74
|
-
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
75
|
-
this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
|
|
76
|
-
this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
|
|
77
|
-
this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
|
|
78
|
-
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
79
|
-
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
80
|
-
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
81
|
-
this.styles['--text-align'] = this.textAlign;
|
|
82
|
-
this.setColors();
|
|
83
|
-
}
|
|
84
|
-
getClasses() {
|
|
85
|
-
var _a;
|
|
86
|
-
const classes = {};
|
|
87
|
-
classes[`${(_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`] = true;
|
|
88
|
-
classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
|
|
89
|
-
classes[`icon-only`] = this.iconOnly;
|
|
90
|
-
classes['disabled'] = this.disabled;
|
|
91
|
-
classes['isLoading'] = this.isLoading;
|
|
92
|
-
classes['justify'] = this.justify;
|
|
93
|
-
return classes;
|
|
94
|
-
}
|
|
95
|
-
setColors() {
|
|
96
|
-
const colors = [
|
|
97
|
-
{ name: '--color-dark-neutral-purewhite', thema: `${this.background === 'light' ? `${this.color}-dark` : 'neutral-purewhite'}` },
|
|
98
|
-
{ name: '--color-lighter-color-darker', thema: `${this.background === 'light' ? `${this.color}-lighter` : `${this.color}-darker`}` },
|
|
99
|
-
{ name: '--color-light-color-darker', thema: `${this.background === 'light' ? `${this.color}-light` : `${this.color}-lighter`}` },
|
|
100
|
-
{ name: '--neutral-dark', thema: 'neutral-dark' },
|
|
101
|
-
];
|
|
102
|
-
colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.thema));
|
|
103
|
-
this.styles = Object.assign({}, this.styles);
|
|
104
|
-
}
|
|
105
|
-
getIcon() {
|
|
106
|
-
if (!this.iconName)
|
|
107
|
-
return '';
|
|
108
|
-
const iconSize = this.size === 'large' ? 20 : 16;
|
|
109
|
-
return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: this.getSymbolColor() });
|
|
110
|
-
}
|
|
111
|
-
handleMouseEnter() {
|
|
112
|
-
if (this.disabled)
|
|
113
|
-
return;
|
|
114
|
-
this.hovered = true;
|
|
115
|
-
}
|
|
116
|
-
handleMouseLeave() {
|
|
117
|
-
this.hovered = false;
|
|
118
|
-
}
|
|
119
|
-
getSymbolColor() {
|
|
120
|
-
if (this.disabled)
|
|
121
|
-
return 'neutral-dark';
|
|
122
|
-
return this.fontColor === 'light' ? 'neutral-purewhite' : `${this.color}-darker`;
|
|
123
|
-
}
|
|
124
|
-
handleClick(e) {
|
|
125
|
-
if (this.disabled || this.isLoading) {
|
|
126
|
-
e.preventDefault();
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
if (!this.href) {
|
|
130
|
-
if (this.type === 'submit' && this.internals.form)
|
|
131
|
-
this.internals.form.submit();
|
|
132
|
-
if (this.type === 'reset' && this.internals.form)
|
|
133
|
-
this.internals.form.reset();
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
render() {
|
|
137
|
-
const symbolColor = this.getSymbolColor();
|
|
138
|
-
const labelSize = labelSizes[this.size] || labelSizes["default"];
|
|
139
|
-
return (h(Host, { key: 'b358245d50ce91c2340312a74ac6a711fb9f3929', 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", { 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", { size: labelSize, lineHeight: 'normal', color: symbolColor }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: symbolColor })))));
|
|
140
|
-
}
|
|
141
|
-
static get formAssociated() { return true; }
|
|
142
|
-
static get watchers() { return {
|
|
143
|
-
"background": ["setColors"],
|
|
144
|
-
"color": ["setColors", "getSymbolColor"],
|
|
145
|
-
"fontColor": ["getSymbolColor"]
|
|
146
|
-
}; }
|
|
147
|
-
static get style() { return curaButtonOutlineCss; }
|
|
148
|
-
}, [65, "cura-button-outline", {
|
|
149
|
-
"type": [513],
|
|
150
|
-
"size": [513],
|
|
151
|
-
"disabled": [516],
|
|
152
|
-
"isLoading": [516, "is-loading"],
|
|
153
|
-
"iconName": [513, "icon-name"],
|
|
154
|
-
"iconset": [513],
|
|
155
|
-
"iconPosition": [513, "icon-position"],
|
|
156
|
-
"iconOnly": [516, "icon-only"],
|
|
157
|
-
"href": [513],
|
|
158
|
-
"target": [513],
|
|
159
|
-
"color": [1],
|
|
160
|
-
"background": [1],
|
|
161
|
-
"fontColor": [1, "font-color"],
|
|
162
|
-
"textAlign": [513, "text-align"],
|
|
163
|
-
"justify": [516],
|
|
164
|
-
"styles": [32],
|
|
165
|
-
"hovered": [32]
|
|
166
|
-
}, undefined, {
|
|
167
|
-
"background": ["setColors"],
|
|
168
|
-
"color": ["setColors", "getSymbolColor"],
|
|
169
|
-
"fontColor": ["getSymbolColor"]
|
|
170
|
-
}]);
|
|
171
|
-
function defineCustomElement$1() {
|
|
172
|
-
if (typeof customElements === "undefined") {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
const components = ["cura-button-outline", "cura-icon", "cura-label", "cura-loader-circle"];
|
|
176
|
-
components.forEach(tagName => { switch (tagName) {
|
|
177
|
-
case "cura-button-outline":
|
|
178
|
-
if (!customElements.get(tagName)) {
|
|
179
|
-
customElements.define(tagName, CuraButtonOutline$1);
|
|
180
|
-
}
|
|
181
|
-
break;
|
|
182
|
-
case "cura-icon":
|
|
183
|
-
if (!customElements.get(tagName)) {
|
|
184
|
-
defineCustomElement$4();
|
|
185
|
-
}
|
|
186
|
-
break;
|
|
187
|
-
case "cura-label":
|
|
188
|
-
if (!customElements.get(tagName)) {
|
|
189
|
-
defineCustomElement$3();
|
|
190
|
-
}
|
|
191
|
-
break;
|
|
192
|
-
case "cura-loader-circle":
|
|
193
|
-
if (!customElements.get(tagName)) {
|
|
194
|
-
defineCustomElement$2();
|
|
195
|
-
}
|
|
196
|
-
break;
|
|
197
|
-
} });
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
const CuraButtonOutline = CuraButtonOutline$1;
|
|
201
|
-
const defineCustomElement = defineCustomElement$1;
|
|
202
|
-
|
|
203
|
-
export { CuraButtonOutline, defineCustomElement };
|
|
204
|
-
//# sourceMappingURL=cura-button-outline.js.map
|
|
205
|
-
|
|
206
|
-
//# sourceMappingURL=cura-button-outline.js.map
|
|
1
|
+
import{p as t,H as o,i,j as a,t as s}from"./p-DBXUEjWh.js";import{l as n}from"./p-BSI2FkNn.js";import{d as r}from"./p-fn4zJrKE.js";import{d as e}from"./p-BSdkRryc.js";import{d as c}from"./p-Bf21UQXV.js";const l=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.internals=this.attachInternals(),this.type="button",this.size="large",this.disabled=!1,this.isLoading=!1,this.iconset="default",this.iconPosition="left",this.iconOnly=!1,this.target="_self",this.color="primary",this.background="light",this.fontColor="dark",this.textAlign="left",this.justify=!1,this.styles={},this.hovered=!1}connectedCallback(){this.weights=window.CuraAPI.theme.fonts.getWeights(),this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing(),this.styles["--neutral-white"]=window.CuraAPI.theme.colors.getColor("neutral-white"),this.styles["--neutral-base"]=window.CuraAPI.theme.colors.getColor("neutral-base"),this.styles["--neutral-dark"]=window.CuraAPI.theme.colors.getColor("neutral-dark"),this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize(),this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily(),this.styles["--font-weight-medium"]=this.weights.medium,this.styles["--text-align"]=this.textAlign,this.setColors()}getClasses(){var t;const o={};return o[""+(null===(t=this.size)||void 0===t?void 0:t.toLowerCase())]=!0,o["icon-"+this.iconPosition.toLowerCase()]=!0,o["icon-only"]=this.iconOnly,o.disabled=this.disabled,o.isLoading=this.isLoading,o.justify=this.justify,o}setColors(){[{name:"--color-dark-neutral-purewhite",thema:"light"===this.background?this.color+"-dark":"neutral-purewhite"},{name:"--color-lighter-color-darker",thema:"light"===this.background?this.color+"-lighter":this.color+"-darker"},{name:"--color-light-color-darker",thema:"light"===this.background?this.color+"-light":this.color+"-lighter"},{name:"--neutral-dark",thema:"neutral-dark"}].forEach((t=>this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.thema))),this.styles=Object.assign({},this.styles)}getIcon(){return this.iconName?i("cura-icon",{name:this.iconName,iconset:this.iconset,size:"large"===this.size?20:16,color:this.getSymbolColor()}):""}handleMouseEnter(){this.disabled||(this.hovered=!0)}handleMouseLeave(){this.hovered=!1}getSymbolColor(){return this.disabled?"neutral-dark":"light"===this.fontColor?"neutral-purewhite":this.color+"-darker"}handleClick(t){this.disabled||this.isLoading?t.preventDefault():this.href||("submit"===this.type&&this.internals.form&&this.internals.form.submit(),"reset"===this.type&&this.internals.form&&this.internals.form.reset())}render(){const t=this.getSymbolColor(),o=n[this.size]||n.default;return i(a,{key:"b358245d50ce91c2340312a74ac6a711fb9f3929",role:this.href?"link":this.type,"aria-disabled":this.disabled},this.href?i("a",{href:this.disabled?"":this.href,target:this.target,class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("span",{class:"button-container"},this.getIcon(),i("cura-label",{size:o,lineHeight:"normal",color:t},i("slot",null))),i("cura-loader-circle",{size:this.size,color:t})):i("button",{class:this.getClasses(),style:this.styles,disabled:this.disabled||null,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave(),type:this.type},i("span",{class:"button-container"},this.getIcon(),i("cura-label",{size:o,lineHeight:"normal",color:t},i("slot",null))),i("cura-loader-circle",{size:this.size,color:t})))}static get formAssociated(){return!0}static get watchers(){return{background:[{setColors:0}],color:[{setColors:0},{getSymbolColor:0}],fontColor:[{getSymbolColor:0}]}}static get style(){return':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;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 var(--color-dark-neutral-purewhite);border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{background-color:var(--color-lighter-color-darker)}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{background-color:var(--color-light-color-darker)}: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.disabled::before,:host a.disabled::before{border-color:var(--neutral-dark)}: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}'}},[321,"cura-button-outline",{type:[513],size:[513],disabled:[516],isLoading:[516,"is-loading"],iconName:[513,"icon-name"],iconset:[513],iconPosition:[513,"icon-position"],iconOnly:[516,"icon-only"],href:[513],target:[513],color:[1],background:[1],fontColor:[1,"font-color"],textAlign:[513,"text-align"],justify:[516],styles:[32],hovered:[32]},void 0,{background:[{setColors:0}],color:[{setColors:0},{getSymbolColor:0}],fontColor:[{getSymbolColor:0}]}]),h=l,u=function(){"undefined"!=typeof customElements&&["cura-button-outline","cura-icon","cura-label","cura-loader-circle"].forEach((t=>{switch(t){case"cura-button-outline":customElements.get(s(t))||customElements.define(s(t),l);break;case"cura-icon":customElements.get(s(t))||r();break;case"cura-label":customElements.get(s(t))||e();break;case"cura-loader-circle":customElements.get(s(t))||c()}}))};export{h as CuraButtonOutline,u as defineCustomElement}
|
|
File without changes
|
|
@@ -1,163 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { l as labelSizes } from './p-BSI2FkNn.js';
|
|
3
|
-
import { d as defineCustomElement$4 } from './p-C72aF-gL.js';
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-B5aO1chh.js';
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-DR1RHrEX.js';
|
|
6
|
-
|
|
7
|
-
const curaButtonSelectCss = ":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(--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 var(--color-border);border-radius:var(--border-radius)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{background-color:var(--color-background-hover);border-color:var(--color-border-hover-pressed)}:host button:focus,:host a:focus{border-color:var(--color-border) !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 cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative;flex-direction:row !important}:host button .button-container .badge-number,:host a .button-container .badge-number{margin-left:10px}: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.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.selected,:host a.selected{cursor:pointer;background-color:var(--color-select);border-color:var(--color-select)}:host button.selected:not(.disabled):hover,:host a.selected:not(.disabled):hover{background-color:var(--color-border-hover-pressed);border-color:var(--color-border-hover-pressed)}:host button.selected:focus,:host a.selected:focus{border-color:var(--color-select-focus) !important}:host button.selected.disabled,:host a.selected.disabled{background-color:var(--color-disable-select);border-color:var(--color-disable-select)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-white-primary-darker);border-color:var(--color-border-disable-unselect)}";
|
|
8
|
-
|
|
9
|
-
const CuraButtonSelect$1 = /*@__PURE__*/ proxyCustomElement(class CuraButtonSelect extends H {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.__registerHost();
|
|
13
|
-
this.__attachShadow();
|
|
14
|
-
this.onclick = createEvent(this, "onclick");
|
|
15
|
-
this.selected = false;
|
|
16
|
-
this.size = 'medium';
|
|
17
|
-
this.background = 'light';
|
|
18
|
-
this.color = 'primary';
|
|
19
|
-
this.hovered = false;
|
|
20
|
-
this.styles = {};
|
|
21
|
-
this.theme = window.CuraAPI.theme;
|
|
22
|
-
}
|
|
23
|
-
setColors() {
|
|
24
|
-
const colors = [
|
|
25
|
-
{ name: '--color-border', thema: this.background === 'light' ? `${this.color}-darker` : 'neutral-white' },
|
|
26
|
-
{ name: '--color-border-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-light` },
|
|
27
|
-
{ name: '--color-background-hover', thema: this.background === 'light' ? `${this.color}-light` : `${this.color}-dark` },
|
|
28
|
-
{ name: '--color-select', thema: this.background === 'light' ? `${this.color}-base` : 'neutral-white' },
|
|
29
|
-
{ name: '--color-select-hover-pressed', thema: this.background === 'light' ? `${this.color}-dark` : `${this.color}-lighter` },
|
|
30
|
-
{ name: '--color-select-focus', thema: this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter` },
|
|
31
|
-
{ name: '--color-disable-select', thema: this.background === 'light' ? 'neutral-white' : 'neutral-black' },
|
|
32
|
-
{ name: '--color-border-disable-unselect', thema: 'neutral-dark' },
|
|
33
|
-
{ name: '--color-counter-disabled', thema: this.background === 'light' ? 'neutral-pale' : 'neutral-black' },
|
|
34
|
-
{ name: '--color-counter', thema: !this.disabled && 'primary-lighter' },
|
|
35
|
-
];
|
|
36
|
-
colors.forEach(color => (this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.thema)));
|
|
37
|
-
this.styles = Object.assign({}, this.styles);
|
|
38
|
-
}
|
|
39
|
-
getClasses() {
|
|
40
|
-
var _a;
|
|
41
|
-
const classes = {};
|
|
42
|
-
classes[`${(_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`] = true;
|
|
43
|
-
classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
|
|
44
|
-
classes['disabled'] = this.disabled;
|
|
45
|
-
classes['selected'] = this.selected;
|
|
46
|
-
return classes;
|
|
47
|
-
}
|
|
48
|
-
connectedCallback() {
|
|
49
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
50
|
-
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
51
|
-
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
52
|
-
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
53
|
-
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
54
|
-
this.setColors();
|
|
55
|
-
}
|
|
56
|
-
getLabelFontColor() {
|
|
57
|
-
if (this.disabled)
|
|
58
|
-
return 'neutral-dark';
|
|
59
|
-
if (this.background === 'dark') {
|
|
60
|
-
return this.selected ? 'neutral-black' : 'neutral-white';
|
|
61
|
-
}
|
|
62
|
-
if (this.background === 'light') {
|
|
63
|
-
return this.selected ? 'neutral-white' : 'neutral-black';
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
getColorBagdeNumber() {
|
|
67
|
-
if (this.background === 'dark' && this.disabled) {
|
|
68
|
-
return this.selected ? 'neutral-black' : 'neutral-dark';
|
|
69
|
-
}
|
|
70
|
-
if (this.background === 'light' && this.disabled) {
|
|
71
|
-
return 'neutral-medium';
|
|
72
|
-
}
|
|
73
|
-
return `${this.color}-darker`;
|
|
74
|
-
}
|
|
75
|
-
getIcon() {
|
|
76
|
-
const iconSize = this.size === 'large' ? 20 : 16;
|
|
77
|
-
if (this.iconPosition === 'right') {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
return h("cura-icon", { name: this.iconName, size: iconSize, color: this.getLabelFontColor() });
|
|
81
|
-
}
|
|
82
|
-
getCounter() {
|
|
83
|
-
return (h("cura-badge-counter", { number: this.counter, color: this.color, disabled: this.disabled || null, class: "badge-number" }));
|
|
84
|
-
}
|
|
85
|
-
getCheckIconRight() {
|
|
86
|
-
const iconSize = this.size === 'large' ? 20 : 16;
|
|
87
|
-
return h("cura-icon", { name: "check", size: iconSize, color: this.getLabelFontColor() });
|
|
88
|
-
}
|
|
89
|
-
handleMouseEnter() {
|
|
90
|
-
if (this.disabled)
|
|
91
|
-
return;
|
|
92
|
-
this.hovered = true;
|
|
93
|
-
}
|
|
94
|
-
handleMouseLeave() {
|
|
95
|
-
this.hovered = false;
|
|
96
|
-
}
|
|
97
|
-
handleClick(e) {
|
|
98
|
-
if (this.disabled)
|
|
99
|
-
e.preventDefault();
|
|
100
|
-
this.selected = !this.selected;
|
|
101
|
-
this.onclick.emit({ selected: this.selected });
|
|
102
|
-
}
|
|
103
|
-
render() {
|
|
104
|
-
const labelSize = labelSizes[this.size] || labelSizes['default'];
|
|
105
|
-
return (h(Host, { key: 'c691cdc5f2a9ac4bc32a1fb3c21a1f30ad73caa1', role: "button", "aria-disabled": this.disabled, "aria-pressed": this.selected }, h("button", { key: '85a81fc19a8e280771d56bd41df83e3ab551a831', class: this.getClasses(), style: this.styles, disabled: this.disabled, onClick: e => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("div", { key: '4d206c48d71efca483375a7d2e765f91aff78e5f', class: "button-container" }, this.iconName ? this.getIcon() : null, h("cura-label", { key: '2a9ad257ffa77f906c7db83e76f50fb7a5c9ded7', class: "label", size: labelSize, lineHeight: "0%", color: this.getLabelFontColor(), weight: "regular" }, h("slot", { key: '2153d1444550a56292b137d32c6835514111c7a1' })), this.counter ? this.getCounter() : null, this.iconPosition === 'right' && this.selected ? this.getCheckIconRight() : null))));
|
|
106
|
-
}
|
|
107
|
-
get host() { return this; }
|
|
108
|
-
static get watchers() { return {
|
|
109
|
-
"background": ["setColors"],
|
|
110
|
-
"color": ["setColors"]
|
|
111
|
-
}; }
|
|
112
|
-
static get style() { return curaButtonSelectCss; }
|
|
113
|
-
}, [1, "cura-button-select", {
|
|
114
|
-
"selected": [1540],
|
|
115
|
-
"iconName": [1537, "icon-name"],
|
|
116
|
-
"size": [513],
|
|
117
|
-
"counter": [1538],
|
|
118
|
-
"disabled": [516],
|
|
119
|
-
"background": [1],
|
|
120
|
-
"color": [1],
|
|
121
|
-
"iconPosition": [513, "icon-position"],
|
|
122
|
-
"hovered": [32],
|
|
123
|
-
"styles": [32]
|
|
124
|
-
}, undefined, {
|
|
125
|
-
"background": ["setColors"],
|
|
126
|
-
"color": ["setColors"]
|
|
127
|
-
}]);
|
|
128
|
-
function defineCustomElement$1() {
|
|
129
|
-
if (typeof customElements === "undefined") {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
const components = ["cura-button-select", "cura-badge-counter", "cura-icon", "cura-label"];
|
|
133
|
-
components.forEach(tagName => { switch (tagName) {
|
|
134
|
-
case "cura-button-select":
|
|
135
|
-
if (!customElements.get(tagName)) {
|
|
136
|
-
customElements.define(tagName, CuraButtonSelect$1);
|
|
137
|
-
}
|
|
138
|
-
break;
|
|
139
|
-
case "cura-badge-counter":
|
|
140
|
-
if (!customElements.get(tagName)) {
|
|
141
|
-
defineCustomElement$4();
|
|
142
|
-
}
|
|
143
|
-
break;
|
|
144
|
-
case "cura-icon":
|
|
145
|
-
if (!customElements.get(tagName)) {
|
|
146
|
-
defineCustomElement$3();
|
|
147
|
-
}
|
|
148
|
-
break;
|
|
149
|
-
case "cura-label":
|
|
150
|
-
if (!customElements.get(tagName)) {
|
|
151
|
-
defineCustomElement$2();
|
|
152
|
-
}
|
|
153
|
-
break;
|
|
154
|
-
} });
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
const CuraButtonSelect = CuraButtonSelect$1;
|
|
158
|
-
const defineCustomElement = defineCustomElement$1;
|
|
159
|
-
|
|
160
|
-
export { CuraButtonSelect, defineCustomElement };
|
|
161
|
-
//# sourceMappingURL=cura-button-select.js.map
|
|
162
|
-
|
|
163
|
-
//# sourceMappingURL=cura-button-select.js.map
|
|
1
|
+
import{p as t,H as o,k as e,i as r,j as a,t as s}from"./p-DBXUEjWh.js";import{l as i}from"./p-BSI2FkNn.js";import{d as c}from"./p-B2RN7oe_.js";import{d as n}from"./p-fn4zJrKE.js";import{d as l}from"./p-BSdkRryc.js";const h=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onclick=e(this,"onclick"),this.selected=!1,this.size="medium",this.background="light",this.color="primary",this.hovered=!1,this.styles={},this.theme=window.CuraAPI.theme}setColors(){[{name:"--color-border",thema:"light"===this.background?this.color+"-darker":"neutral-white"},{name:"--color-border-hover-pressed",thema:"light"===this.background?this.color+"-dark":this.color+"-light"},{name:"--color-background-hover",thema:"light"===this.background?this.color+"-light":this.color+"-dark"},{name:"--color-select",thema:"light"===this.background?this.color+"-base":"neutral-white"},{name:"--color-select-hover-pressed",thema:"light"===this.background?this.color+"-dark":this.color+"-lighter"},{name:"--color-select-focus",thema:"light"===this.background?this.color+"-base":this.color+"-lighter"},{name:"--color-disable-select",thema:"light"===this.background?"neutral-white":"neutral-black"},{name:"--color-border-disable-unselect",thema:"neutral-dark"},{name:"--color-counter-disabled",thema:"light"===this.background?"neutral-pale":"neutral-black"},{name:"--color-counter",thema:!this.disabled&&"primary-lighter"}].forEach((t=>this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.thema))),this.styles=Object.assign({},this.styles)}getClasses(){var t;const o={};return o[""+(null===(t=this.size)||void 0===t?void 0:t.toLowerCase())]=!0,o["icon-"+this.iconPosition.toLowerCase()]=!0,o.disabled=this.disabled,o.selected=this.selected,o}connectedCallback(){this.weights=window.CuraAPI.theme.fonts.getWeights(),this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing(),this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize(),this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily(),this.styles["--font-weight-medium"]=this.weights.medium,this.setColors()}getLabelFontColor(){return this.disabled?"neutral-dark":"dark"===this.background?this.selected?"neutral-black":"neutral-white":"light"===this.background?this.selected?"neutral-white":"neutral-black":void 0}getColorBagdeNumber(){return"dark"===this.background&&this.disabled?this.selected?"neutral-black":"neutral-dark":"light"===this.background&&this.disabled?"neutral-medium":this.color+"-darker"}getIcon(){if("right"!==this.iconPosition)return r("cura-icon",{name:this.iconName,size:"large"===this.size?20:16,color:this.getLabelFontColor()})}getCounter(){return r("cura-badge-counter",{number:this.counter,color:this.color,disabled:this.disabled||null,class:"badge-number"})}getCheckIconRight(){return r("cura-icon",{name:"check",size:"large"===this.size?20:16,color:this.getLabelFontColor()})}handleMouseEnter(){this.disabled||(this.hovered=!0)}handleMouseLeave(){this.hovered=!1}handleClick(t){this.disabled&&t.preventDefault(),this.selected=!this.selected,this.onclick.emit({selected:this.selected})}render(){const t=i[this.size]||i.default;return r(a,{key:"c691cdc5f2a9ac4bc32a1fb3c21a1f30ad73caa1",role:"button","aria-disabled":this.disabled,"aria-pressed":this.selected},r("button",{key:"85a81fc19a8e280771d56bd41df83e3ab551a831",class:this.getClasses(),style:this.styles,disabled:this.disabled,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},r("div",{key:"4d206c48d71efca483375a7d2e765f91aff78e5f",class:"button-container"},this.iconName?this.getIcon():null,r("cura-label",{key:"2a9ad257ffa77f906c7db83e76f50fb7a5c9ded7",class:"label",size:t,lineHeight:"0%",color:this.getLabelFontColor(),weight:"regular"},r("slot",{key:"2153d1444550a56292b137d32c6835514111c7a1"})),this.counter?this.getCounter():null,"right"===this.iconPosition&&this.selected?this.getCheckIconRight():null)))}get host(){return this}static get watchers(){return{background:[{setColors:0}],color:[{setColors:0}]}}static get style(){return':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(--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 var(--color-border);border-radius:var(--border-radius)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{background-color:var(--color-background-hover);border-color:var(--color-border-hover-pressed)}:host button:focus,:host a:focus{border-color:var(--color-border) !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 cura-label,:host a cura-label{flex:1;text-align:var(--text-align, "left")}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative;flex-direction:row !important}:host button .button-container .badge-number,:host a .button-container .badge-number{margin-left:10px}: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.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.selected,:host a.selected{cursor:pointer;background-color:var(--color-select);border-color:var(--color-select)}:host button.selected:not(.disabled):hover,:host a.selected:not(.disabled):hover{background-color:var(--color-border-hover-pressed);border-color:var(--color-border-hover-pressed)}:host button.selected:focus,:host a.selected:focus{border-color:var(--color-select-focus) !important}:host button.selected.disabled,:host a.selected.disabled{background-color:var(--color-disable-select);border-color:var(--color-disable-select)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-white-primary-darker);border-color:var(--color-border-disable-unselect)}'}},[257,"cura-button-select",{selected:[1540],iconName:[1537,"icon-name"],size:[513],counter:[1538],disabled:[516],background:[1],color:[1],iconPosition:[513,"icon-position"],hovered:[32],styles:[32]},void 0,{background:[{setColors:0}],color:[{setColors:0}]}]),u=h,d=function(){"undefined"!=typeof customElements&&["cura-button-select","cura-badge-counter","cura-icon","cura-label"].forEach((t=>{switch(t){case"cura-button-select":customElements.get(s(t))||customElements.define(s(t),h);break;case"cura-badge-counter":customElements.get(s(t))||c();break;case"cura-icon":customElements.get(s(t))||n();break;case"cura-label":customElements.get(s(t))||l()}}))};export{u as CuraButtonSelect,d as defineCustomElement}
|
|
File without changes
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const CuraButtonTransparent = CuraButtonTransparent$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { CuraButtonTransparent, defineCustomElement };
|
|
7
|
-
//# sourceMappingURL=cura-button-transparent.js.map
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=cura-button-transparent.js.map
|
|
1
|
+
import{C as o,d as p}from"./p-DXlGQp3a.js";const s=o,a=p;export{s as CuraButtonTransparent,a as defineCustomElement}
|
|
File without changes
|