@rededor/cura 1.5.0 → 1.6.0-alpha.0
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-57c5b283.js → app-globals-5a7ddb39.js} +21 -2
- package/dist/cjs/app-globals-5a7ddb39.js.map +1 -0
- package/dist/cjs/{cura-accordion_12.cjs.entry.js → cura-accordion_18.cjs.entry.js} +689 -50
- package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-alert.cjs.entry.js +2 -2
- package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-counter.cjs.entry.js +2 -2
- package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-dot.cjs.entry.js +2 -2
- package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-pill.cjs.entry.js +2 -2
- package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-outline.cjs.entry.js +2 -2
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-select.cjs.entry.js +2 -2
- package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-calendar.cjs.entry.js +1 -1
- package/dist/cjs/cura-card.cjs.entry.js +1 -1
- package/dist/cjs/cura-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/cura-display.cjs.entry.js +2 -2
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +28 -0
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +2 -2
- package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +4 -4
- package/dist/cjs/cura-dropdown-search-option.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-dropdown-search.cjs.entry.js +3 -3
- package/dist/cjs/cura-icons-view.cjs.entry.js +2 -2
- package/dist/cjs/cura-input-date.cjs.entry.js +3 -3
- package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js +2 -2
- package/dist/cjs/cura-modal.cjs.entry.js +3 -3
- package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +3 -3
- package/dist/cjs/cura-radio.cjs.entry.js +2 -2
- package/dist/cjs/cura-stepper.cjs.entry.js +2 -2
- package/dist/cjs/cura-switch.cjs.entry.js +2 -2
- package/dist/cjs/{cura-theme-module-14544f5f.js → cura-theme-module-a100c643.js} +9 -78
- package/dist/cjs/cura-theme-module-a100c643.js.map +1 -0
- package/dist/cjs/cura-toast.cjs.entry.js +2 -2
- package/dist/cjs/cura-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/cura.cjs.js +5 -4
- package/dist/cjs/cura.cjs.js.map +1 -1
- package/dist/cjs/{index-e6d728ec.js → index-12d54921.js} +19 -2
- package/dist/cjs/index-12d54921.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/static-4e83652c.js +76 -0
- package/dist/cjs/static-4e83652c.js.map +1 -0
- package/dist/collection/api/cura-api.js +19 -0
- package/dist/collection/api/cura-api.js.map +1 -1
- package/dist/collection/api/cura-api.type.js.map +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +2 -2
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +6 -6
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.css +8 -8
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.css +5 -5
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.css +4 -4
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.css +6 -6
- package/dist/collection/components/buttons/cura-button/cura-button.css +15 -15
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +15 -15
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +12 -12
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +15 -15
- package/dist/collection/components/cura-alert/cura-alert.css +5 -5
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.css +61 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.js +28 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.js.map +1 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.stories.js +37 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +1 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.css +138 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.js +592 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.js.map +1 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.stories.js +278 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.stories.js.map +1 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.css +62 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +44 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +1 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js +38 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +1 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.css +121 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.js +183 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.js.map +1 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.stories.js +85 -0
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.stories.js.map +1 -0
- package/dist/collection/components/cura-icon/cura-icon.js +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
- package/dist/collection/components/cura-modal/cura-modal.css +11 -11
- package/dist/collection/components/cura-modal/cura-modal.js +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js +1 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.css +12 -12
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +5 -5
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +2 -2
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +1 -1
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +2 -2
- package/dist/collection/components/forms/cura-input-date/cura-input-date.css +3 -3
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.css +4 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +65 -11
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +6 -5
- package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.css +7 -6
- package/dist/collection/components/text/cura-heading/cura-heading.js +4 -19
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +7 -7
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +6 -20
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
- package/dist/collection/utils/FixedElementScrollBehavior.js +54 -0
- package/dist/collection/utils/FixedElementScrollBehavior.js.map +1 -0
- package/dist/collection/utils/utils.js +38 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/cura-accordion-item.js +1 -1
- package/dist/components/cura-accordion-item.js.map +1 -1
- package/dist/components/cura-accordion.js +2 -2
- package/dist/components/cura-accordion.js.map +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-alert.js.map +1 -1
- package/dist/components/cura-badge-counter2.js +1 -1
- package/dist/components/cura-badge-counter2.js.map +1 -1
- package/dist/components/cura-badge-distance.js +1 -1
- package/dist/components/cura-badge-distance.js.map +1 -1
- package/dist/components/cura-badge-dot.js +1 -1
- package/dist/components/cura-badge-dot.js.map +1 -1
- package/dist/components/cura-badge-pill2.js +1 -1
- package/dist/components/cura-badge-pill2.js.map +1 -1
- package/dist/components/cura-button-outline.js +1 -1
- package/dist/components/cura-button-outline.js.map +1 -1
- package/dist/components/cura-button-select.js +1 -1
- package/dist/components/cura-button-select.js.map +1 -1
- package/dist/components/cura-button-transparent2.js +1 -1
- package/dist/components/cura-button-transparent2.js.map +1 -1
- package/dist/components/cura-button.js +1 -1
- package/dist/components/cura-button.js.map +1 -1
- package/dist/components/cura-checkbox.js +1 -1
- package/dist/components/cura-display.js +1 -1
- package/dist/components/cura-dropdown-search-category.d.ts +11 -0
- package/dist/components/cura-dropdown-search-category.js +49 -0
- package/dist/components/cura-dropdown-search-category.js.map +1 -0
- package/dist/components/cura-dropdown-search-new.d.ts +11 -0
- package/dist/components/cura-dropdown-search-new.js +406 -0
- package/dist/components/cura-dropdown-search-new.js.map +1 -0
- package/dist/components/cura-dropdown-search-not-found.d.ts +11 -0
- package/dist/components/cura-dropdown-search-not-found.js +48 -0
- package/dist/components/cura-dropdown-search-not-found.js.map +1 -0
- package/dist/components/cura-dropdown-search-option-new.d.ts +11 -0
- package/dist/components/cura-dropdown-search-option-new.js +81 -0
- package/dist/components/cura-dropdown-search-option-new.js.map +1 -0
- package/dist/components/cura-dropdown-search-option-title.js +1 -1
- package/dist/components/cura-dropdown-search-option.js +3 -3
- package/dist/components/cura-dropdown-search-option.js.map +1 -1
- package/dist/components/cura-dropdown-search.js +2 -2
- package/dist/components/cura-heading2.js +4 -17
- package/dist/components/cura-heading2.js.map +1 -1
- package/dist/components/cura-icon2.js +1 -1
- package/dist/components/cura-icons-view.js +1 -1
- package/dist/components/cura-input-date.js +2 -2
- package/dist/components/cura-input-date.js.map +1 -1
- package/dist/components/cura-input-text2.js +132 -7
- package/dist/components/cura-input-text2.js.map +1 -1
- package/dist/components/cura-label2.js +6 -5
- package/dist/components/cura-label2.js.map +1 -1
- package/dist/components/cura-loader-bar2.js +1 -1
- package/dist/components/cura-loader-circle2.js +1 -1
- package/dist/components/cura-modal.js +2 -2
- package/dist/components/cura-modal.js.map +1 -1
- package/dist/components/cura-page-template.js +1 -1
- package/dist/components/cura-paragraph2.js +7 -19
- package/dist/components/cura-paragraph2.js.map +1 -1
- package/dist/components/cura-progress-bar2.js +1 -1
- package/dist/components/cura-radio.js +1 -1
- package/dist/components/cura-select-option2.js +1 -1
- package/dist/components/cura-select2.js +3 -3
- package/dist/components/cura-stepper-item2.js +1 -1
- package/dist/components/cura-stepper.js +1 -1
- package/dist/components/cura-switch.js +1 -1
- package/dist/components/cura-toast.js +1 -1
- package/dist/components/cura-tooltip.js +2 -2
- package/dist/components/cura-tooltip.js.map +1 -1
- package/dist/components/index.js +28 -71
- package/dist/components/index.js.map +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/index.esm.js +1 -1
- package/dist/cura/index.esm.js.map +1 -1
- package/dist/cura/p-02717e7d.entry.js +2 -0
- package/dist/cura/{p-629c34fe.entry.js.map → p-02717e7d.entry.js.map} +1 -1
- package/dist/cura/p-0a391c03.entry.js +2 -0
- package/dist/cura/{p-dbab7864.entry.js.map → p-0a391c03.entry.js.map} +1 -1
- package/dist/cura/p-18af52e4.entry.js +2 -0
- package/dist/cura/{p-4aefe237.entry.js.map → p-18af52e4.entry.js.map} +1 -1
- package/dist/cura/p-1b201271.js +2 -0
- package/dist/cura/p-1b201271.js.map +1 -0
- package/dist/cura/{p-3030774e.entry.js → p-24cd591e.entry.js} +2 -2
- package/dist/cura/p-24d9f1f4.entry.js +2 -0
- package/dist/cura/p-24d9f1f4.entry.js.map +1 -0
- package/dist/cura/{p-ec7876d3.entry.js → p-2afb14e9.entry.js} +2 -2
- package/dist/cura/{p-3c0931d3.entry.js → p-3576b633.entry.js} +2 -2
- package/dist/cura/p-46994182.entry.js +2 -0
- package/dist/cura/p-500f1256.entry.js +2 -0
- package/dist/cura/{p-545e8e55.entry.js.map → p-500f1256.entry.js.map} +1 -1
- package/dist/cura/{p-7f25f4dc.entry.js → p-5afb630e.entry.js} +2 -2
- package/dist/cura/{p-bd99ef4c.entry.js → p-6243742a.entry.js} +2 -2
- package/dist/cura/p-635c0f4d.entry.js +2 -0
- package/dist/cura/p-86d317f3.entry.js +2 -0
- package/dist/cura/p-86d317f3.entry.js.map +1 -0
- package/dist/cura/{p-ee8db3dc.entry.js → p-9214ee88.entry.js} +2 -2
- package/dist/cura/{p-70adcf7b.entry.js → p-9dd47ec6.entry.js} +2 -2
- package/dist/cura/p-af3ac476.js +3 -0
- package/dist/cura/p-af3ac476.js.map +1 -0
- package/dist/cura/{p-f30270f0.entry.js → p-b1d6ee8d.entry.js} +2 -2
- package/dist/cura/{p-bce10f9b.entry.js → p-bfaf9964.entry.js} +2 -2
- package/dist/cura/p-c0f445b5.entry.js +2 -0
- package/dist/cura/{p-8622c492.entry.js.map → p-c0f445b5.entry.js.map} +1 -1
- package/dist/cura/{p-d13e3295.entry.js → p-d227469a.entry.js} +2 -2
- package/dist/cura/p-d25142cd.entry.js +2 -0
- package/dist/cura/{p-529332d3.entry.js.map → p-d25142cd.entry.js.map} +1 -1
- package/dist/cura/p-d2da92d9.entry.js +2 -0
- package/dist/cura/{p-6b627841.entry.js.map → p-d2da92d9.entry.js.map} +1 -1
- package/dist/cura/p-daf9feac.js +2 -0
- package/dist/cura/p-daf9feac.js.map +1 -0
- package/dist/cura/p-e98a1ad2.entry.js +2 -0
- package/dist/cura/{p-b3e93e74.entry.js.map → p-e98a1ad2.entry.js.map} +1 -1
- package/dist/cura/p-ec4996c2.js +2 -0
- package/dist/cura/p-ec4996c2.js.map +1 -0
- package/dist/cura/p-ee7328a5.entry.js +2 -0
- package/dist/cura/{p-235ac0b4.entry.js.map → p-ee7328a5.entry.js.map} +1 -1
- package/dist/cura/{p-f96b0923.entry.js → p-f1098b41.entry.js} +2 -2
- package/dist/cura/p-fc9584dd.entry.js +2 -0
- package/dist/cura/{p-a4a1f6c6.entry.js.map → p-fc9584dd.entry.js.map} +1 -1
- package/dist/esm/{app-globals-036c3b80.js → app-globals-83a601d0.js} +21 -2
- package/dist/esm/app-globals-83a601d0.js.map +1 -0
- package/dist/esm/{cura-accordion_12.entry.js → cura-accordion_18.entry.js} +684 -51
- package/dist/esm/cura-accordion_18.entry.js.map +1 -0
- package/dist/esm/cura-alert.entry.js +2 -2
- package/dist/esm/cura-alert.entry.js.map +1 -1
- package/dist/esm/cura-badge-counter.entry.js +2 -2
- package/dist/esm/cura-badge-counter.entry.js.map +1 -1
- package/dist/esm/cura-badge-dot.entry.js +2 -2
- package/dist/esm/cura-badge-dot.entry.js.map +1 -1
- package/dist/esm/cura-badge-pill.entry.js +2 -2
- package/dist/esm/cura-badge-pill.entry.js.map +1 -1
- package/dist/esm/cura-button-outline.entry.js +2 -2
- package/dist/esm/cura-button-outline.entry.js.map +1 -1
- package/dist/esm/cura-button-select.entry.js +2 -2
- package/dist/esm/cura-button-select.entry.js.map +1 -1
- package/dist/esm/cura-calendar.entry.js +1 -1
- package/dist/esm/cura-card.entry.js +1 -1
- package/dist/esm/cura-checkbox.entry.js +2 -2
- package/dist/esm/cura-display.entry.js +2 -2
- package/dist/esm/cura-dropdown-search-not-found.entry.js +24 -0
- package/dist/esm/cura-dropdown-search-not-found.entry.js.map +1 -0
- package/dist/esm/cura-dropdown-search-option-title.entry.js +2 -2
- package/dist/esm/cura-dropdown-search-option.entry.js +4 -4
- package/dist/esm/cura-dropdown-search-option.entry.js.map +1 -1
- package/dist/esm/cura-dropdown-search.entry.js +3 -3
- package/dist/esm/cura-icons-view.entry.js +2 -2
- package/dist/esm/cura-input-date.entry.js +3 -3
- package/dist/esm/cura-input-date.entry.js.map +1 -1
- package/dist/esm/cura-loader-bar.entry.js +2 -2
- package/dist/esm/cura-modal.entry.js +3 -3
- package/dist/esm/cura-modal.entry.js.map +1 -1
- package/dist/esm/cura-progress-bar_2.entry.js +3 -3
- package/dist/esm/cura-radio.entry.js +2 -2
- package/dist/esm/cura-stepper.entry.js +2 -2
- package/dist/esm/cura-switch.entry.js +2 -2
- package/dist/esm/{cura-theme-module-b23f8ac8.js → cura-theme-module-59e8e460.js} +3 -72
- package/dist/esm/cura-theme-module-59e8e460.js.map +1 -0
- package/dist/esm/cura-toast.entry.js +2 -2
- package/dist/esm/cura-tooltip.entry.js +3 -3
- package/dist/esm/cura-tooltip.entry.js.map +1 -1
- package/dist/esm/cura.js +6 -5
- package/dist/esm/cura.js.map +1 -1
- package/dist/esm/{index-747aad85.js → index-717b36df.js} +19 -2
- package/dist/esm/index-717b36df.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +6 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/static-061aa850.js +74 -0
- package/dist/esm/static-061aa850.js.map +1 -0
- package/dist/types/api/cura-api.d.ts +1 -0
- package/dist/types/api/cura-api.type.d.ts +1 -1
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.d.ts +6 -0
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.stories.d.ts +27 -0
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-new.d.ts +127 -0
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-new.stories.d.ts +186 -0
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.d.ts +6 -0
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.d.ts +27 -0
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.d.ts +44 -0
- package/dist/types/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.stories.d.ts +72 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +12 -4
- package/dist/types/components/forms/cura-label/cura-label.d.ts +1 -0
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +2 -3
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +2 -2
- package/dist/types/components.d.ts +264 -9
- package/dist/types/utils/FixedElementScrollBehavior.d.ts +12 -0
- package/dist/types/utils/utils.d.ts +5 -0
- package/package.json +2 -2
- package/dist/cjs/app-globals-57c5b283.js.map +0 -1
- package/dist/cjs/cura-accordion_12.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-avatar.cjs.entry.js +0 -68
- package/dist/cjs/cura-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-badge-distance.cjs.entry.js +0 -46
- package/dist/cjs/cura-badge-distance.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-button-transparent.cjs.entry.js +0 -107
- package/dist/cjs/cura-button-transparent.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-theme-module-14544f5f.js.map +0 -1
- package/dist/cjs/index-e6d728ec.js.map +0 -1
- package/dist/cura/p-1051a947.js +0 -2
- package/dist/cura/p-1051a947.js.map +0 -1
- package/dist/cura/p-164ddb46.entry.js +0 -2
- package/dist/cura/p-164ddb46.entry.js.map +0 -1
- package/dist/cura/p-235ac0b4.entry.js +0 -2
- package/dist/cura/p-4aefe237.entry.js +0 -2
- package/dist/cura/p-529332d3.entry.js +0 -2
- package/dist/cura/p-545e8e55.entry.js +0 -2
- package/dist/cura/p-557b90c4.entry.js +0 -2
- package/dist/cura/p-57ad7c56.entry.js +0 -2
- package/dist/cura/p-57ad7c56.entry.js.map +0 -1
- package/dist/cura/p-629c34fe.entry.js +0 -2
- package/dist/cura/p-62a3056f.entry.js +0 -2
- package/dist/cura/p-62a3056f.entry.js.map +0 -1
- package/dist/cura/p-6624108e.entry.js +0 -2
- package/dist/cura/p-6b627841.entry.js +0 -2
- package/dist/cura/p-8622c492.entry.js +0 -2
- package/dist/cura/p-935eeb7b.entry.js +0 -2
- package/dist/cura/p-935eeb7b.entry.js.map +0 -1
- package/dist/cura/p-a4a1f6c6.entry.js +0 -2
- package/dist/cura/p-b3e93e74.entry.js +0 -2
- package/dist/cura/p-d21364b2.js +0 -2
- package/dist/cura/p-d21364b2.js.map +0 -1
- package/dist/cura/p-dbab7864.entry.js +0 -2
- package/dist/cura/p-fd5ed6b0.js +0 -3
- package/dist/cura/p-fd5ed6b0.js.map +0 -1
- package/dist/esm/app-globals-036c3b80.js.map +0 -1
- package/dist/esm/cura-accordion_12.entry.js.map +0 -1
- package/dist/esm/cura-avatar.entry.js +0 -64
- package/dist/esm/cura-avatar.entry.js.map +0 -1
- package/dist/esm/cura-badge-distance.entry.js +0 -42
- package/dist/esm/cura-badge-distance.entry.js.map +0 -1
- package/dist/esm/cura-button-transparent.entry.js +0 -103
- package/dist/esm/cura-button-transparent.entry.js.map +0 -1
- package/dist/esm/cura-theme-module-b23f8ac8.js.map +0 -1
- package/dist/esm/index-747aad85.js.map +0 -1
- /package/dist/cura/{p-3030774e.entry.js.map → p-24cd591e.entry.js.map} +0 -0
- /package/dist/cura/{p-ec7876d3.entry.js.map → p-2afb14e9.entry.js.map} +0 -0
- /package/dist/cura/{p-3c0931d3.entry.js.map → p-3576b633.entry.js.map} +0 -0
- /package/dist/cura/{p-6624108e.entry.js.map → p-46994182.entry.js.map} +0 -0
- /package/dist/cura/{p-7f25f4dc.entry.js.map → p-5afb630e.entry.js.map} +0 -0
- /package/dist/cura/{p-bd99ef4c.entry.js.map → p-6243742a.entry.js.map} +0 -0
- /package/dist/cura/{p-557b90c4.entry.js.map → p-635c0f4d.entry.js.map} +0 -0
- /package/dist/cura/{p-ee8db3dc.entry.js.map → p-9214ee88.entry.js.map} +0 -0
- /package/dist/cura/{p-70adcf7b.entry.js.map → p-9dd47ec6.entry.js.map} +0 -0
- /package/dist/cura/{p-f30270f0.entry.js.map → p-b1d6ee8d.entry.js.map} +0 -0
- /package/dist/cura/{p-bce10f9b.entry.js.map → p-bfaf9964.entry.js.map} +0 -0
- /package/dist/cura/{p-d13e3295.entry.js.map → p-d227469a.entry.js.map} +0 -0
- /package/dist/cura/{p-f96b0923.entry.js.map → p-f1098b41.entry.js.map} +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class CuraDropdownSearchOptionNew {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.styles = {};
|
|
5
|
+
this.theme = window.CuraAPI.theme;
|
|
6
|
+
this.value = undefined;
|
|
7
|
+
this.optionid = undefined;
|
|
8
|
+
this.selectable = true;
|
|
9
|
+
this.selected = false;
|
|
10
|
+
this.highlighted = false;
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
this.styles = {
|
|
14
|
+
'--neutral-light': this.theme.colors.getColor('neutral-light'),
|
|
15
|
+
'--neutral-white': this.theme.colors.getColor('neutral-white'),
|
|
16
|
+
'--neutral-dark': this.theme.colors.getColor('neutral-dark'),
|
|
17
|
+
'--neutral-black': this.theme.colors.getColor('neutral-black'),
|
|
18
|
+
'--primary-lighter-50': this.theme.colors.getColor('primary-lighter', .5),
|
|
19
|
+
'--primary-light': this.theme.colors.getColor('primary-light'),
|
|
20
|
+
'--primary': this.theme.colors.getColor('primary-base')
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
handleSelect() {
|
|
24
|
+
if (this.selectable) {
|
|
25
|
+
this.selectoption.emit(this.optionid);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.actionclick.emit();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
handleActionsClick() {
|
|
32
|
+
this.actionclick.emit();
|
|
33
|
+
}
|
|
34
|
+
getClasses() {
|
|
35
|
+
return {
|
|
36
|
+
'component-container': true,
|
|
37
|
+
'selected': this.selected,
|
|
38
|
+
'highlighted': this.highlighted,
|
|
39
|
+
'not-selectable': !this.selectable
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return (h(Host, { key: '270721328007e38163582a288da503001dfd28f7' }, h("div", { key: 'bbcfeca78e0cfb86d3bdcf5d23a25c27ba2bd0ed', class: this.getClasses(), style: this.styles }, h("div", { key: '86774ca830346536a6591310c42c3806abed7273', class: "selectable-container", onClick: () => this.handleSelect() }, h("slot", { key: '2fe370d3a1cd2df9226634cc0a6812b4131de60e', name: 'image' }), h("div", { key: 'ebafc4dcffdc7bf44414605424b4e86400f87602', class: "content" }, h("slot", { key: '2666ee970d53d21dd04c58fea2725163e936d96d' }))), h("div", { key: '55f0cdbd76d03921722796e1b261500dce39ada5', class: "actions-container", onClick: () => this.handleActionsClick() }, h("slot", { key: '34528c19855eca4ecd151310959d8a496deb152b', name: 'actions' })))));
|
|
44
|
+
}
|
|
45
|
+
static get is() { return "cura-dropdown-search-option-new"; }
|
|
46
|
+
static get encapsulation() { return "shadow"; }
|
|
47
|
+
static get originalStyleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["cura-dropdown-search-option-new.scss"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get styleUrls() {
|
|
53
|
+
return {
|
|
54
|
+
"$": ["cura-dropdown-search-option-new.css"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
"value": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": true,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "Required. The value for item term reference.\nThis will set the value of the seaarch field when the option is selected."
|
|
72
|
+
},
|
|
73
|
+
"attribute": "value",
|
|
74
|
+
"reflect": false
|
|
75
|
+
},
|
|
76
|
+
"optionid": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "string",
|
|
81
|
+
"resolved": "string",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": true,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": "Required. The unique identifier for the option.\nThis will reference the option element for the parent."
|
|
89
|
+
},
|
|
90
|
+
"attribute": "optionid",
|
|
91
|
+
"reflect": false
|
|
92
|
+
},
|
|
93
|
+
"selectable": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "boolean",
|
|
98
|
+
"resolved": "boolean",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Enable selection for this option.\nDefault is true."
|
|
106
|
+
},
|
|
107
|
+
"attribute": "selectable",
|
|
108
|
+
"reflect": true,
|
|
109
|
+
"defaultValue": "true"
|
|
110
|
+
},
|
|
111
|
+
"selected": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "boolean",
|
|
116
|
+
"resolved": "boolean",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": "Selected state.\nThis will be managed by the parent component.\nDefault is false."
|
|
124
|
+
},
|
|
125
|
+
"attribute": "selected",
|
|
126
|
+
"reflect": true,
|
|
127
|
+
"defaultValue": "false"
|
|
128
|
+
},
|
|
129
|
+
"highlighted": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"mutable": false,
|
|
132
|
+
"complexType": {
|
|
133
|
+
"original": "boolean",
|
|
134
|
+
"resolved": "boolean",
|
|
135
|
+
"references": {}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": false,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": "Highlighted state.\nThis will be managed by the parent component.\nDefault is false."
|
|
142
|
+
},
|
|
143
|
+
"attribute": "highlighted",
|
|
144
|
+
"reflect": true,
|
|
145
|
+
"defaultValue": "false"
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static get events() {
|
|
150
|
+
return [{
|
|
151
|
+
"method": "actionclick",
|
|
152
|
+
"name": "actionclick",
|
|
153
|
+
"bubbles": true,
|
|
154
|
+
"cancelable": true,
|
|
155
|
+
"composed": true,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": ""
|
|
159
|
+
},
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "any",
|
|
162
|
+
"resolved": "any",
|
|
163
|
+
"references": {}
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
166
|
+
"method": "selectoption",
|
|
167
|
+
"name": "selectoption",
|
|
168
|
+
"bubbles": true,
|
|
169
|
+
"cancelable": true,
|
|
170
|
+
"composed": true,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": ""
|
|
174
|
+
},
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string",
|
|
177
|
+
"resolved": "string",
|
|
178
|
+
"references": {}
|
|
179
|
+
}
|
|
180
|
+
}];
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=cura-dropdown-search-option-new.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cura-dropdown-search-option-new.js","sourceRoot":"","sources":["../../../../src/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAO9E,MAAM,OAAO,2BAA2B;;QAiCtC,WAAM,GAAG,EAAE,CAAC;QACZ,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;;;0BAlBgB,IAAI;wBAMN,KAAK;2BAMF,KAAK;;IAQnD,iBAAiB;QACf,IAAI,CAAC,MAAM,GAAG;YACZ,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;YAC9D,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;YAC9D,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;YAC5D,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;YAC9D,sBAAsB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,EAAE,EAAE,CAAC;YACzE,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;YAC9D,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;SACxD,CAAC;IACJ,CAAC;IAED,YAAY;QACV,IAAI,IAAI,CAAC,UAAU,EAAG,CAAC;YACrB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,UAAU;QACR,OAAO;YACL,qBAAqB,EAAE,IAAI;YAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;YACzB,aAAa,EAAE,IAAI,CAAC,WAAW;YAC/B,gBAAgB,EAAE,CAAC,IAAI,CAAC,UAAU;SACnC,CAAA;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM;gBAC/C,4DAAK,KAAK,EAAC,sBAAsB,EAAC,OAAO,EAAG,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE;oBACnE,6DAAM,IAAI,EAAC,OAAO,GAAQ;oBAC1B,4DAAK,KAAK,EAAC,SAAS;wBAClB,8DAAa,CACT,CACF;gBACN,4DAAK,KAAK,EAAC,mBAAmB,EAAC,OAAO,EAAG,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,EAAE;oBACtE,6DAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'cura-dropdown-search-option-new',\n styleUrl: 'cura-dropdown-search-option-new.scss',\n shadow: true,\n})\nexport class CuraDropdownSearchOptionNew {\n\n /**\n * Required. The value for item term reference.\n * This will set the value of the seaarch field when the option is selected.\n */\n @Prop() value!: string;\n /**\n * Required. The unique identifier for the option.\n * This will reference the option element for the parent.\n */\n @Prop() optionid!: string;\n /**\n * Enable selection for this option.\n * Default is true.\n */\n @Prop({reflect: true}) selectable: boolean = true;\n /**\n * Selected state.\n * This will be managed by the parent component.\n * Default is false.\n */\n @Prop({reflect: true}) selected: boolean = false;\n /**\n * Highlighted state.\n * This will be managed by the parent component.\n * Default is false.\n */\n @Prop({reflect: true}) highlighted: boolean = false;\n\n @Event() actionclick: EventEmitter<any>;\n @Event() selectoption: EventEmitter<string>;\n\n styles = {};\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\n this.styles = {\n '--neutral-light': this.theme.colors.getColor('neutral-light'),\n '--neutral-white': this.theme.colors.getColor('neutral-white'),\n '--neutral-dark': this.theme.colors.getColor('neutral-dark'),\n '--neutral-black': this.theme.colors.getColor('neutral-black'),\n '--primary-lighter-50': this.theme.colors.getColor('primary-lighter', .5),\n '--primary-light': this.theme.colors.getColor('primary-light'),\n '--primary': this.theme.colors.getColor('primary-base')\n };\n }\n\n handleSelect() {\n if( this.selectable ) {\n this.selectoption.emit(this.optionid);\n } else {\n this.actionclick.emit();\n }\n }\n\n handleActionsClick() {\n this.actionclick.emit();\n }\n\n getClasses() {\n return {\n 'component-container': true,\n 'selected': this.selected,\n 'highlighted': this.highlighted,\n 'not-selectable': !this.selectable\n }\n }\n\n render() {\n return (\n <Host>\n <div class={this.getClasses()} style={this.styles}>\n <div class=\"selectable-container\" onClick={ () => this.handleSelect() }>\n <slot name='image'></slot>\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n <div class=\"actions-container\" onClick={ () => this.handleActionsClick() }>\n <slot name='actions'></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const renderCuraDropdownSearchOption = (args) => {
|
|
2
|
+
return `<cura-dropdown-search-option-new${args.value ? `
|
|
3
|
+
value="${args.value}"` : ''}${args.optionid ? `
|
|
4
|
+
optionid="${args.optionid}"` : ''}${args.selectable === false ? `
|
|
5
|
+
selectable="false"` : ''}>${args.image ? `
|
|
6
|
+
${args.image}` : ''}${args.default ? `
|
|
7
|
+
${args.default}` : ''}${args.actions ? `
|
|
8
|
+
${args.actions}` : ''}
|
|
9
|
+
</cura-dropdown-search-option-new>`;
|
|
10
|
+
};
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Componentes/DropdownSearchNew/Options/Option',
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
parameters: {
|
|
15
|
+
docs: {
|
|
16
|
+
description: {
|
|
17
|
+
component: `<cura-paragraph size="small">
|
|
18
|
+
Representa uma opção de seleção para o componente dropdown-search.
|
|
19
|
+
</cura-paragraph>`,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
render: args => {
|
|
24
|
+
return renderCuraDropdownSearchOption(args);
|
|
25
|
+
},
|
|
26
|
+
argTypes: {
|
|
27
|
+
value: {
|
|
28
|
+
control: 'text',
|
|
29
|
+
description: 'Representa o texto a ser aplicado no campo quando a opção é selecionada.<br/><b>É uma propriedade obrigatória.</b>',
|
|
30
|
+
required: true,
|
|
31
|
+
table: {
|
|
32
|
+
category: 'Properties',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
optionid: {
|
|
36
|
+
control: 'text',
|
|
37
|
+
description: 'Identificador único para a opção.<br/><b>É uma propriedade obrigatória.</b>',
|
|
38
|
+
required: true,
|
|
39
|
+
table: {
|
|
40
|
+
category: 'Properties',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
selectable: {
|
|
44
|
+
control: 'boolean',
|
|
45
|
+
description: 'Habilita ou desabilita seleção da opção.',
|
|
46
|
+
table: {
|
|
47
|
+
category: 'Properties',
|
|
48
|
+
defaultValue: { summary: true },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
image: {
|
|
52
|
+
control: 'text',
|
|
53
|
+
description: 'Slot para aplicação de ícones, indicadores, avatares e demais imagens.',
|
|
54
|
+
table: {
|
|
55
|
+
category: 'Slots'
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
default: {
|
|
59
|
+
control: 'text',
|
|
60
|
+
description: 'Slot padrão para o conteúdo da opção.<br/>Não é necessário nomear o slot.<br/>Recebe, geralmente, elementos como títulos e parágrafos, os quais formata automaticamente.',
|
|
61
|
+
table: {
|
|
62
|
+
category: 'Slots'
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
actions: {
|
|
66
|
+
control: 'text',
|
|
67
|
+
description: 'Slot para componentes de ação secundária da opção, como botões e links.',
|
|
68
|
+
table: {
|
|
69
|
+
category: 'Slots'
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
export const DropdownSearchOptionNew = {
|
|
75
|
+
args: {
|
|
76
|
+
value: 'Opção 1',
|
|
77
|
+
optionid: 'opt1',
|
|
78
|
+
selectable: true,
|
|
79
|
+
default: `<cura-heading size="xsmall" weight="bold">Título da <em>Opção</em>.</cura-heading>
|
|
80
|
+
<cura-paragraph size="xsmall">Descrição da <em>opção</em>.</cura-paragraph>`,
|
|
81
|
+
image: '<cura-icon slot="image" name="unity" size="20"></cura-icon>',
|
|
82
|
+
actions: '<cura-button-transparent slot="actions" icon-only="true" icon-name="delete"></cura-button-transparent>'
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=cura-dropdown-search-option-new.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cura-dropdown-search-option-new.stories.js","sourceRoot":"","sources":["../../../../src/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.stories.ts"],"names":[],"mappings":"AAAA,MAAM,8BAA8B,GAAG,CAAC,IAAI,EAAE,EAAE;IAC9C,OAAO,mCAAoC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;WAC/C,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,GAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;cACnC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,GAAI,IAAI,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC;qBAC9C,CAAC,CAAC,CAAC,EAAE,IAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvC,IAAI,CAAC,KAAM,EAAE,CAAC,CAAC,CAAC,EAAE,GAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACrC,IAAI,CAAC,OAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,IAAI,CAAC,OAAQ,EAAE,CAAC,CAAC,CAAC,EAAE;mCACU,CAAA;AACnC,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,8CAA8C;IACrD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EAAE;;wBAEK;aACjB;SACF;KACF;IACD,MAAM,EAAE,IAAI,CAAC,EAAE;QACb,OAAO,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,oHAAoH;YACjI,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE;gBACL,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,6EAA6E;YAC1F,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE;gBACL,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE;gBACL,QAAQ,EAAE,YAAY;gBACtB,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAChC;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,wEAAwE;YACrF,KAAK,EAAE;gBACL,QAAQ,EAAE,OAAO;aAClB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,0KAA0K;YACvL,KAAK,EAAE;gBACL,QAAQ,EAAE,OAAO;aAClB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,yEAAyE;YACtF,KAAK,EAAE;gBACL,QAAQ,EAAE,OAAO;aAClB;SACF;KACF;CACF,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE;QACJ,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE;8EACiE;QAC1E,KAAK,EAAE,6DAA6D;QACpE,OAAO,EAAE,wGAAwG;KAClH;CACF,CAAA","sourcesContent":["const renderCuraDropdownSearchOption = (args) => {\n return `<cura-dropdown-search-option-new${ args.value ? `\n value=\"${args.value}\"` : ''}${ args.optionid ? `\n optionid=\"${args.optionid}\"` : ''}${ args.selectable === false ? `\n selectable=\"false\"` : ''}>${ args.image ? `\n ${ args.image }` : ''}${ args.default ? `\n ${ args.default }` : ''}${ args.actions ? `\n ${ args.actions }` : ''}\n</cura-dropdown-search-option-new>`\n}\n\nexport default {\n title: 'Componentes/DropdownSearchNew/Options/Option',\n tags: ['autodocs'],\n parameters: {\n docs: {\n description: {\n component: `<cura-paragraph size=\"small\">\n Representa uma opção de seleção para o componente dropdown-search.\n </cura-paragraph>`,\n },\n },\n },\n render: args => {\n return renderCuraDropdownSearchOption(args);\n },\n argTypes: {\n value: {\n control: 'text',\n description: 'Representa o texto a ser aplicado no campo quando a opção é selecionada.<br/><b>É uma propriedade obrigatória.</b>',\n required: true,\n table: {\n category: 'Properties',\n },\n },\n optionid: {\n control: 'text',\n description: 'Identificador único para a opção.<br/><b>É uma propriedade obrigatória.</b>',\n required: true,\n table: {\n category: 'Properties',\n },\n },\n selectable: {\n control: 'boolean',\n description: 'Habilita ou desabilita seleção da opção.',\n table: {\n category: 'Properties',\n defaultValue: { summary: true },\n },\n },\n image: {\n control: 'text',\n description: 'Slot para aplicação de ícones, indicadores, avatares e demais imagens.',\n table: {\n category: 'Slots'\n },\n },\n default: {\n control: 'text',\n description: 'Slot padrão para o conteúdo da opção.<br/>Não é necessário nomear o slot.<br/>Recebe, geralmente, elementos como títulos e parágrafos, os quais formata automaticamente.',\n table: {\n category: 'Slots'\n },\n },\n actions: {\n control: 'text',\n description: 'Slot para componentes de ação secundária da opção, como botões e links.',\n table: {\n category: 'Slots'\n },\n },\n }\n}\n\nexport const DropdownSearchOptionNew = {\n args: {\n value: 'Opção 1',\n optionid: 'opt1',\n selectable: true,\n default: `<cura-heading size=\"xsmall\" weight=\"bold\">Título da <em>Opção</em>.</cura-heading>\n <cura-paragraph size=\"xsmall\">Descrição da <em>opção</em>.</cura-paragraph>`,\n image: '<cura-icon slot=\"image\" name=\"unity\" size=\"20\"></cura-icon>',\n actions: '<cura-button-transparent slot=\"actions\" icon-only=\"true\" icon-name=\"delete\"></cura-button-transparent>'\n }\n}\n"]}
|
|
@@ -27,7 +27,7 @@ export class CuraIcon {
|
|
|
27
27
|
this.host.style.setProperty(prop, value);
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: 'd2c7487f9fadebc1da94bc4b8cd661a75e0d93ef' }, h("svg", { key: 'd8d0a70bf11cce073da95cce58c2fca4705b4b9f', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { key: '10f2f6c34ce7cc782de70d9e9cdd22f54e08acc9', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "cura-icon"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class CuraIconsView {
|
|
|
14
14
|
this.sizes.unshift(this.sizes.pop());
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '08ac6235b9218c2202cd4957bb78100216b5b680' }, h("div", { key: '71856330d5f050d46b83c06125d29a235532bf98', class: "iconDetail" }, h("cura-heading", { key: '2520247cde8d71b1a31ce028c4525b04e6302bf1', size: "small", "margin-block": "0 24px" }, "Icon: ", h("b", { key: '5cf48d96ed36dd5514357c65b0ec8c9f137bb1e4' }, this.selected)), h("div", { key: '7eda1e7db5efc89abb583631a5e959e31397684f', class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { key: 'f443dab7e85fe89a207da8fbefb024b0c22fa084', class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), h("span", null, size))))), h("div", { key: '5ea3b71259ae5454297a94aef4ce1e154c968512', class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: { icon: true, selected: icon === this.selected }, onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon, size: "32", color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }), h("cura-label", { size: "xsmall", weight: icon === this.selected ? 'bold' : 'regular', color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }, icon))))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "cura-icons-view"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Global Spacing Definitions.
|
|
3
|
-
* Required CSS Properties:
|
|
4
|
-
* --
|
|
3
|
+
* Required CSS Properties from Cura:
|
|
4
|
+
* --cura-spacing-base
|
|
5
5
|
*/
|
|
6
6
|
/* None: 0px */
|
|
7
7
|
/* Tiny default: 4px */
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
position: fixed;
|
|
133
133
|
background-color: var(--neutral-white);
|
|
134
134
|
border: 2px solid var(--neutral-light);
|
|
135
|
-
border-radius: calc(var(--
|
|
135
|
+
border-radius: calc(var(--cura-spacing-base) * 3px);
|
|
136
136
|
max-width: 600px;
|
|
137
137
|
min-width: 200px;
|
|
138
|
-
padding: 0px calc(var(--
|
|
138
|
+
padding: 0px calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px);
|
|
139
139
|
z-index: var(--zIndex);
|
|
140
140
|
box-shadow: 0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12));
|
|
141
141
|
transform: scale(0.95);
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
.wrapper ::slotted(*) {
|
|
145
145
|
max-height: 80vh;
|
|
146
146
|
overflow: auto;
|
|
147
|
-
padding-right: calc(var(--
|
|
147
|
+
padding-right: calc(var(--cura-spacing-base) * 5px);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.modal.open .wrapper {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
|
|
156
156
|
.close {
|
|
157
157
|
justify-self: flex-end;
|
|
158
|
-
padding-top: calc(var(--
|
|
158
|
+
padding-top: calc(var(--cura-spacing-base) * 4px);
|
|
159
159
|
background: none;
|
|
160
160
|
border: none;
|
|
161
161
|
cursor: pointer;
|
|
@@ -172,23 +172,23 @@
|
|
|
172
172
|
position: fixed;
|
|
173
173
|
bottom: 0px;
|
|
174
174
|
width: 80%;
|
|
175
|
-
padding-top: calc(var(--
|
|
175
|
+
padding-top: calc(var(--cura-spacing-base) * 4px);
|
|
176
176
|
padding-bottom: 0px;
|
|
177
|
-
border-radius: calc(var(--
|
|
177
|
+
border-radius: calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px) 0px 0px;
|
|
178
178
|
border-bottom: none;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
.close {
|
|
182
182
|
align-items: center;
|
|
183
183
|
border-top: 1px dashed var(--neutral-light);
|
|
184
|
-
margin-top: calc(var(--
|
|
185
|
-
padding: calc(var(--
|
|
184
|
+
margin-top: calc(var(--cura-spacing-base) * 4px);
|
|
185
|
+
padding: calc(var(--cura-spacing-base) * 4px) 0px;
|
|
186
186
|
justify-content: center;
|
|
187
187
|
width: 100%;
|
|
188
188
|
}
|
|
189
189
|
.close.mobile {
|
|
190
190
|
display: flex;
|
|
191
|
-
gap: calc(var(--
|
|
191
|
+
gap: calc(var(--cura-spacing-base) * 2px);
|
|
192
192
|
}
|
|
193
193
|
.close.desktop {
|
|
194
194
|
display: none;
|
|
@@ -46,7 +46,7 @@ export class CuraModal {
|
|
|
46
46
|
this.setRight();
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'cec1266a4daaac89f69e4f08c94574db9cd970f8', role: "dialog", "aria-modal": "true", style: { '--zIndex': this.zindex } }, h("div", { key: '5b330fb69c2360e9c6053d2650c43cbf643eb751', class: this.open ? 'modal container open' : 'modal container', style: this.styles }, h("div", { key: '8187dd2df05750a19f85e156059b66d8d56c8b00', class: this.open ? 'modal backdrop open' : 'modal backdrop', onClick: this.handleClose }), h("div", { key: '6a34bc7d67fa48c86d2ada7c167a834c09713ad7', class: "wrapper" }, h("button", { key: '6e268d5260404b51dd8779007725c19635066881', class: "close desktop", onClick: this.handleClose }, h("cura-icon", { key: '7b5644d466b0b9282b6b9d484ea1c0f4384e2aef', name: "close", color: "error-dark", size: "small" })), h("slot", { key: '890dc7befdbd96fc8d5cc62a4ad856631b6a7f1e' }), h("button", { key: '5f7610ea323e3cad1e12acac7cb66345c8eacf98', class: "close mobile", onClick: this.handleClose }, h("cura-icon", { key: 'e9e82d2d4fe0b181131bd0bd7fae8feebaabfd9c', name: "close", color: "error-dark", size: "16" }), h("cura-paragraph", { key: 'b9930dd44ca205ec4747c62c005beb36e974698b', color: "error-dark", size: "small", marginBlock: "0" }, this.mobileCloseLabel))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "cura-modal"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class CuraPageTemplate {
|
|
|
14
14
|
return classes;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '23b61f04dccd33e0abd6ac08f6521f5a9ec8bbd4' }, h("div", { key: 'd1e86808dab1b1c46b2d6b6b8093420dae7e27fb', style: this.styles, class: "grid-template" }, h("div", { key: 'e84d57b008abe440e59aa3734568b530a7440bdd', id: "sub-header" }, h("slot", { key: '0e9942affc593384ec18a47b93a7aaba703ce62a', name: 'sub-header' })), h("div", { key: 'a5ebc56a9ac49acdfebc7f83560c8a51b63619b0', id: "header" }, h("slot", { key: '5957130f5f0df86ca0b3e915d48ac1b6973be2d5', name: 'header' })), h("div", { key: '54c62c8f7bb9e774d1e9b2213db30da5cdd630a7', id: "pre-content" }, h("slot", { key: '160871f4ceede7169d77e2d2bcba5b415ac33c44', name: 'pre-content' })), h("div", { key: '1c69ecfcd2c605bc1024714b00854f072b3c3d2d', id: "content-container", class: this.getClasses() }, h("div", { key: '6d3102743e3e602edb04d461e4604e0a60df350f', id: "sidebar-left" }, h("slot", { key: '07f0c274f6fe9ec703ea5a11833bb5ae02a2db73', name: 'sidebar-left' })), h("div", { key: '3d4a8dff0a572edc9bbeef15bed2f7de45b8e1c1', id: "content" }, h("slot", { key: '5ca4395665823640d9c94dd71c3f746d413e0fb9', name: "content" }), h("slot", { key: '49e69afad551228a6b9602457f7811a625b943ec' })), h("div", { key: '43455d2bae0ffde066b6c31b3ff6ee4c3fe96723', id: "sidebar-right" }, h("slot", { key: '6b047fcc8249614710886954f082910b14e91608', name: 'sidebar-right' }))), h("div", { key: '49001b8066d664a180e9211cff345037f39a726d', id: "post-body" }, h("slot", { key: '8dde2d8f83c93e8b7b2a74086678ba98e54cb9f6', name: 'post-body' })), h("div", { key: '1091ad3443a6897ae879b31fead876ab891bb2d6', id: "footer" }, h("slot", { key: '49d1a5efdf5c0ffd29b7469bef9a36db8fe9d3f0', name: 'footer' })), h("div", { key: '8d20703614c90d4f2aabd0cef201a4850239b6e8', id: "sub-footer" }, h("slot", { key: 'b9c393c804a563b34a1c55f33789b047c1bff095', name: 'sub-footer' })))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "cura-page-template"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class CuraProgressBar {
|
|
|
12
12
|
const circumference = radius * Math.PI * 2;
|
|
13
13
|
const dash = (this.progress * circumference) / 100;
|
|
14
14
|
const viewBox = `0 0 ${this.size} ${this.size}`;
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '9453ea7e8d763048b3a789ca720ed1fea987cd71' }, h("div", { key: 'cf9624ef2a367e6d246a488af50e7a5534864dce', class: "progress-bar" }, h("svg", { key: '54f0788b7d9cd26baebd3fa07a573f3cca9071c7', width: this.size, height: this.size, viewBox: viewBox }, h("circle", { key: '3eb559fbde401961eb14e38113d38a32dd947165', fill: "none", stroke: "#ccc", cx: this.size / 2, cy: this.size / 2, r: radius, "stroke-width": `${this.strokeWidth}px` }), this.active && (h("circle", { key: '838fcf3567ff35a23a361ba1999e5c83f751179a', fill: "none", stroke: this.progressColor, cx: this.size / 2, cy: this.size / 2, r: radius, "stroke-width": `${this.strokeWidth}px`, transform: `rotate(-90 ${this.size / 2} ${this.size / 2})`, "stroke-dasharray": `${dash}px ${circumference - dash}px`, "stroke-linecap": "round", style: { transition: 'all 0.5s' } }))), h("span", { key: '1cc5c38639225399117c7ad34095a44dfe5093f4' }, h("slot", { key: 'be0129c555a7e6a2901857e70a5540b087c04a81' })))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "cura-progress-bar"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,7 +55,7 @@ export class CuraStepperItem {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const { badgeColor, textColor, icon, iconOnly } = this.getStatusProperties();
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '779f6c1eb875477b8ceb8ed223e8432081f67bc9' }, h("div", { key: '14f773ffa6d576f2894fa0515f878eddf48205fb', class: "item-container", style: this.styles }, h("cura-badge-pill", { key: '492f9988b7f7f6f4fc0838a99a015da3411017fe', type: "solid", color: badgeColor, "icon-name": icon, "icon-only": iconOnly, "border-radius": "50%" }, this.label), this.displayHeading && this.heading && (h("cura-paragraph", { key: 'b0d3cafa0bfddd990ee745b3b82b44df9daaca71', marginBlock: "0", size: "xsmall", color: textColor }, this.heading)))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "cura-stepper-item"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -103,7 +103,7 @@ export class CuraStepper {
|
|
|
103
103
|
return (h("div", { class: "container", style: this.styles }, h("div", { class: "stepper-list" }, this.stepList.map((step, stepIndex) => this.renderStep(step, stepIndex)))));
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
|
-
return h(Host, { key: '
|
|
106
|
+
return h(Host, { key: '55bff7769007721f0c0366d1a6a9b197bbaebfbd' }, this.variant === 'default' ? this.renderStepper() : this.renderCompactStepper());
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "cura-stepper"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class CuraToast {
|
|
|
21
21
|
this.setStyle();
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'cccef02cf7786461ab403fecd52476a42bb98374' }, h("div", { key: '64385fa4aab3d08e0815276e0bde817b1f3c09f4', class: this.getClasses(), style: this.styles }, h("cura-icon", { key: '0d759de0780902eec4276adfa3f758c1f2b0b53c', class: "default-icon", name: this.getNameIcon(), size: 16, color: `${this.type}-dark` }), h("div", { key: '2c4baf72eb99c8d400eb704879febe1a57167373', class: "content" }, h("cura-heading", { key: '771e4762bb36bf47064ed90a98f7786973093e8c', level: 4, size: "xsmall", color: `${this.type}-dark`, weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: 'a8ef8dca7e4ddfac612bd48f19688fae8c0a015e', color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: '86408523353f831f6ede1acaf0214a00f5fac8a5' })), h("slot", { key: 'c69f99edb9577df1a6ce9b6667c719df740daa49', name: "actions" })), this.closeButton && h("cura-icon", { key: 'cacd29615f1dbff708ed10811c4e94c0b120c325', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.loader && !!this.autoCloseDelay && h("cura-loader-bar", { key: '65a88d82da0ad2a9c987e26c2ffba983ff1c60b6', color: `${this.type}-base`, progress: this.progress }))));
|
|
25
25
|
}
|
|
26
26
|
componentDidLoad() {
|
|
27
27
|
this.openContainer();
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
*/
|
|
69
69
|
/**
|
|
70
70
|
* Global Spacing Definitions.
|
|
71
|
-
* Required CSS Properties:
|
|
72
|
-
* --
|
|
71
|
+
* Required CSS Properties from Cura:
|
|
72
|
+
* --cura-spacing-base
|
|
73
73
|
*/
|
|
74
74
|
/* None: 0px */
|
|
75
75
|
/* Tiny default: 4px */
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
box-sizing: border-box;
|
|
103
103
|
max-width: var(--max-width);
|
|
104
104
|
height: auto;
|
|
105
|
-
padding: calc(var(--
|
|
105
|
+
padding: calc(var(--cura-spacing-base) * 2px);
|
|
106
106
|
border: 1px solid var(--neutral-light);
|
|
107
|
-
border-radius: calc(var(--
|
|
107
|
+
border-radius: calc(var(--cura-spacing-base) * 1px);
|
|
108
108
|
background-color: var(--neutral-purewhite);
|
|
109
109
|
box-shadow: 0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16));
|
|
110
110
|
}
|
|
@@ -112,10 +112,10 @@
|
|
|
112
112
|
:host .container {
|
|
113
113
|
max-width: 90%;
|
|
114
114
|
height: fit-content;
|
|
115
|
-
padding: calc(var(--
|
|
115
|
+
padding: calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px) 0 calc(var(--cura-spacing-base) * 4px);
|
|
116
116
|
margin: 0 auto;
|
|
117
117
|
border: 2px solid;
|
|
118
|
-
border-radius: calc(var(--
|
|
118
|
+
border-radius: calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px) 0 0;
|
|
119
119
|
border-color: var(--neutral-light) var(--neutral-light) transparent var(--neutral-light);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
content: "";
|
|
124
124
|
position: absolute;
|
|
125
125
|
z-index: 99999;
|
|
126
|
-
width: calc(var(--
|
|
127
|
-
height: calc(var(--
|
|
126
|
+
width: calc(var(--cura-spacing-base) * 2.5px);
|
|
127
|
+
height: calc(var(--cura-spacing-base) * 2.5px);
|
|
128
128
|
border: 1px solid;
|
|
129
129
|
border-radius: 2px;
|
|
130
130
|
background-color: var(--neutral-purewhite);
|
|
@@ -142,18 +142,18 @@
|
|
|
142
142
|
flex: 1 1 0;
|
|
143
143
|
display: flex;
|
|
144
144
|
flex-direction: column;
|
|
145
|
-
gap: calc(var(--
|
|
145
|
+
gap: calc(var(--cura-spacing-base) * 1px);
|
|
146
146
|
}
|
|
147
147
|
@media (max-width: 768px) {
|
|
148
148
|
:host .container .content {
|
|
149
|
-
padding-bottom: calc(var(--
|
|
149
|
+
padding-bottom: calc(var(--cura-spacing-base) * 4px);
|
|
150
150
|
border-bottom: 1px dashed var(--neutral-light);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
:host .container .close-icon {
|
|
154
|
-
margin-left: calc(var(--
|
|
154
|
+
margin-left: calc(var(--cura-spacing-base) * 3px);
|
|
155
155
|
cursor: pointer;
|
|
156
156
|
}
|
|
157
157
|
:host .container .close-button {
|
|
158
|
-
padding: calc(var(--
|
|
158
|
+
padding: calc(var(--cura-spacing-base) * 2px) 0;
|
|
159
159
|
}
|
|
@@ -25,7 +25,7 @@ export class CuraTooltip {
|
|
|
25
25
|
this.setStyle();
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '8d60e1300b236087fdb740e018c1c0537cae8d14', role: "tooltip", id: this.elementId }, h("div", { key: '1ee4abd823d291a62a0890f15e6dcf7de93d27ce', class: "container", style: this.styles }, h("div", { key: '5b77522f5bfa31f0c57d1461c4fe74bb28056853', class: "content" }, h("cura-heading", { key: '1829def9107ea1a6d4c26a7529f6342b9d1c3a4e', level: 4, size: "xsmall", color: "neutral-black", weight: "bold", "margin-block": "0" }, this.label), h("cura-paragraph", { key: 'd7ef9857d141ef5aea60b1d9d1d79f47ebe1f6f8', color: "neutral-dark", "spot-color": "secondary-darker", size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, h("slot", { key: 'f2dc8c8e8142205d0553af200875131a0cc09111' }))), this.closeButton && !this.isMobile && h("cura-icon", { key: 'e7666bb54a3366f8c2ab3b0429237f7b5307b36a', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.isMobile && h("cura-button-transparent", { key: 'cc64d822bf10b1d7788fd2df85a6b97287b7f7ee', class: "close-button", size: "small", type: "button", color: "error", "icon-name": "close", "icon-position": "right", onClick: this.handleClose }, "OK, entendi."))));
|
|
29
29
|
}
|
|
30
30
|
componentDidLoad() {
|
|
31
31
|
var _a, _b, _c, _d, _e;
|
|
@@ -147,7 +147,7 @@ export class CuraCheckbox {
|
|
|
147
147
|
return h("cura-icon", { class: "icon", name: iconName, size: iconSize, color: iconColor });
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return (h(Host, { key: '
|
|
150
|
+
return (h(Host, { key: '8c4fdab5276ff9eb200299a5584ac8e96ef11974' }, h("div", { key: '3074370b481f50e7c3b8183e1aa643a37992f05b', class: this.getClasses(), style: this.styles, onClick: this.handleClick }, h("div", { key: 'adb656d2d5dc3212735c427e08c7d03d8c94f83e', class: "info" }, h("div", { key: '55747701dd4ed57a6ed3132d996639219ba950e1', class: "label-wrapper" }, h("cura-label", { key: 'b5224ec0a274789c03f6b8e0a5c5ed7fda911c58', class: "label", weight: 'bold', size: this.size === 'large' ? 'medium' : 'xsmall', color: this.assignColor('label') }, this.label), this.required && h("cura-paragraph", { key: '188a2ed6c915cec53d495edd77ec2dd88fafe714', lineHeight: '0%', marginBlock: '0', color: "error-base" }, "* ")), h("cura-label", { key: '6b63e628f4aeb066dc73feaca720edb12dc207f1', color: this.assignColor('message'), size: "xsmall", class: "message" }, h("slot", { key: '880c28c63878169f84a14c96d12c925edc3611bb' }))), h("div", { key: '01dd5e638a5043c4349193c97dd7acfe57dc4498', class: 'checkbox', tabIndex: this.ontabindex }, h("input", { key: '5ff82da2b58e7bd88f2866a2677151fb49814b3c', type: "checkbox", name: this.name, value: this.value, disabled: this.disabled, required: this.required, checked: this.checked, indeterminate: this.indeterminate }), this.getIcon()))));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "cura-checkbox"; }
|
|
153
153
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Global Spacing Definitions.
|
|
3
|
-
* Required CSS Properties:
|
|
4
|
-
* --
|
|
3
|
+
* Required CSS Properties from Cura:
|
|
4
|
+
* --cura-spacing-base
|
|
5
5
|
*/
|
|
6
6
|
/* None: 0px */
|
|
7
7
|
/* Tiny default: 4px */
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
display: flex;
|
|
45
45
|
width: 100%;
|
|
46
46
|
box-sizing: border-box;
|
|
47
|
-
padding: calc(var(--
|
|
47
|
+
padding: calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 1px);
|
|
48
48
|
background-color: var(--neutral-purewhite);
|
|
49
49
|
border-bottom: 1px solid var(--neutral-light);
|
|
50
50
|
}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
align-items: center;
|
|
60
60
|
align-content: center;
|
|
61
61
|
justify-content: center;
|
|
62
|
-
gap: calc(var(--
|
|
62
|
+
gap: calc(var(--cura-spacing-base) * 2px);
|
|
63
63
|
flex-direction: row;
|
|
64
64
|
box-sizing: border-box;
|
|
65
65
|
cursor: pointer;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
margin-block: 0px;
|
|
70
70
|
}
|
|
71
71
|
.option-info ::slotted(div[slot=image]) {
|
|
72
|
-
min-width: calc(var(--
|
|
72
|
+
min-width: calc(var(--cura-spacing-base) * 8px);
|
|
73
73
|
display: flex;
|
|
74
74
|
justify-content: center;
|
|
75
75
|
align-items: center;
|