@spw-ds/spw-stencil-library 1.18.0 → 1.19.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/cem.json +186 -10
- package/dist/cjs/{index-D3lyhQSW.js → index-CfCTfMKB.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/spw-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/spw-alert.cjs.entry.js +5 -12
- package/dist/cjs/spw-avatar.cjs.entry.js +1 -1
- package/dist/cjs/spw-block-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-box.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtags.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-card.cjs.entry.js +1 -1
- package/dist/cjs/spw-checkbox.cjs.entry.js +25 -3
- package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/spw-drawer.cjs.entry.js +5 -5
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-field-label_8.cjs.entry.js +12 -12
- package/dist/cjs/spw-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-grid-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-grid.cjs.entry.js +3 -3
- package/dist/cjs/spw-header-lang.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-header-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona.cjs.entry.js +2 -2
- package/dist/cjs/spw-header.cjs.entry.js +4 -4
- package/dist/cjs/spw-hero.cjs.entry.js +4 -4
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +2 -2
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-lightbox.cjs.entry.js +3 -3
- package/dist/cjs/spw-list-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-list.cjs.entry.js +2 -2
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +4 -4
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-mosaic.cjs.entry.js +2 -2
- package/dist/cjs/spw-pagination.cjs.entry.js +7 -7
- package/dist/cjs/spw-radio.cjs.entry.js +27 -3
- package/dist/cjs/spw-scrolltop.cjs.entry.js +2 -2
- package/dist/cjs/spw-search-field.cjs.entry.js +34 -3
- package/dist/cjs/spw-select.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +5 -5
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidenav-group.cjs.entry.js +4 -4
- package/dist/cjs/spw-sidenav-item.cjs.entry.js +5 -5
- package/dist/cjs/spw-sidenav.cjs.entry.js +3 -3
- package/dist/cjs/spw-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider.cjs.entry.js +2 -2
- package/dist/cjs/spw-socials.cjs.entry.js +3 -3
- package/dist/cjs/spw-stencil-library.cjs.js +2 -2
- package/dist/cjs/spw-table-body.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-head.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-header.cjs.entry.js +3 -3
- package/dist/cjs/spw-table-row.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-table.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs.cjs.entry.js +2 -2
- package/dist/cjs/spw-tag.cjs.entry.js +2 -2
- package/dist/cjs/spw-text-field.cjs.entry.js +2 -2
- package/dist/cjs/spw-textarea.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile.cjs.entry.js +2 -2
- package/dist/cjs/spw-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-timeline.cjs.entry.js +3 -3
- package/dist/cjs/spw-toast-controller.cjs.entry.js +3 -3
- package/dist/cjs/spw-toast.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-container.cjs.entry.js +7 -3
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc.cjs.entry.js +3 -3
- package/dist/cjs/spw-topbar.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard.cjs.entry.js +2 -2
- package/dist/collection/components/spw-alert/spw-alert.css +32 -14
- package/dist/collection/components/spw-alert/spw-alert.js +6 -14
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +1 -1
- package/dist/collection/components/spw-checkbox/spw-checkbox.css +57 -0
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +25 -3
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +1 -1
- package/dist/collection/components/spw-drawer/spw-drawer.css +3 -1
- package/dist/collection/components/spw-drawer/spw-drawer.js +3 -3
- package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.css +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
- package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.css +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer.js +1 -1
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
- package/dist/collection/components/spw-grid/spw-grid.js +2 -2
- package/dist/collection/components/spw-group/spw-group.css +48 -1
- package/dist/collection/components/spw-group/spw-group.js +5 -5
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +5 -2
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header.css +0 -6
- package/dist/collection/components/spw-header/spw-header.js +2 -2
- package/dist/collection/components/spw-hero/spw-hero.js +3 -3
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +5 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox.js +2 -2
- package/dist/collection/components/spw-link/spw-link.css +4 -2
- package/dist/collection/components/spw-link/spw-link.js +1 -1
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
- package/dist/collection/components/spw-list/spw-list.js +1 -1
- package/dist/collection/components/spw-loading/spw-loading.js +1 -1
- package/dist/collection/components/spw-modal/spw-modal.js +3 -3
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.css +58 -0
- package/dist/collection/components/spw-radio/spw-radio.js +45 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.js +52 -6
- package/dist/collection/components/spw-select/spw-select.js +20 -1
- package/dist/collection/components/spw-separator/spw-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.css +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.css +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
- package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.css +1 -1
- package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.js +2 -2
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +1 -1
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +3 -3
- package/dist/collection/components/spw-sidenav/spw-sidenav.js +2 -2
- package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider.js +1 -1
- package/dist/collection/components/spw-socials/spw-socials.css +1 -1
- package/dist/collection/components/spw-socials/spw-socials.js +1 -1
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
- package/dist/collection/components/spw-tag/spw-tag.js +1 -1
- package/dist/collection/components/spw-text-field/spw-text-field.js +20 -1
- package/dist/collection/components/spw-textarea/spw-textarea.js +20 -1
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.js +1 -1
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
- package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
- package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.js +2 -2
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.css +1 -1
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +5 -1
- package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.css +1 -1
- package/dist/collection/components/spw-toc/spw-toc.css +1 -1
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
- package/dist/collection/stories/components/spw-avatar/spw-avatar.stories.js +2 -1
- package/dist/collection/stories/components/spw-box/spw-box.stories.js +2 -1
- package/dist/collection/stories/components/spw-breadcrumb/spw-breadcrumb.stories.js +2 -1
- package/dist/collection/stories/components/spw-button/spw-button.stories.js +2 -1
- package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +60 -2
- package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +2 -1
- package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +2 -1
- package/dist/collection/stories/components/spw-field-message/spw-field-message.stories.js +2 -1
- package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js +2 -1
- package/dist/collection/stories/components/spw-icon/spw-icon.stories.js +2 -1
- package/dist/collection/stories/components/spw-input-slider/spw-input-slider.stories.js +2 -1
- package/dist/collection/stories/components/spw-link/spw-link.stories.js +2 -1
- package/dist/collection/stories/components/spw-loading/spw-loading.stories.js +2 -1
- package/dist/collection/stories/components/spw-pagination/spw-pagination.stories.js +2 -1
- package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +97 -1
- package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +2 -1
- package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +2 -1
- package/dist/collection/stories/components/spw-select/spw-select.stories.js +2 -1
- package/dist/collection/stories/components/spw-separator/spw-separator.stories.js +2 -1
- package/dist/collection/stories/components/spw-skeleton/spw-skeleton.stories.js +2 -1
- package/dist/collection/stories/components/spw-tag/spw-tag.stories.js +2 -1
- package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +2 -1
- package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +2 -1
- package/dist/collection/stories/components/spw-tooltip/spw-tooltip.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-alert/spw-alert.stories.js +30 -29
- package/dist/collection/stories/organisms/spw-drawer/spw-drawer.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +10 -5
- package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +47 -3
- package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +10 -5
- package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +10 -5
- package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +4 -2
- package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +12 -6
- package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +8 -4
- package/dist/collection/stories/organisms/spw-timeline/spw-timeline.stories.js +8 -4
- package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-wizard/spw-wizard.stories.js +10 -5
- package/dist/collection/utils/syntax.js +126 -0
- package/dist/collection/utils/utils.js +5 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DaITe5yi.js → p-B68Myli4.js} +1 -1
- package/dist/components/{p-4jNBpzmg.js → p-BCuU5Ywh.js} +1 -1
- package/dist/components/{p-C-XK7DW-.js → p-BrrQs_CF.js} +1 -1
- package/dist/components/{p-hfJhpq7W.js → p-CMrHIi6V.js} +1 -1
- package/dist/components/p-CZa7267G.js +1 -0
- package/dist/components/{p-BD9dpai3.js → p-CdYKps3q.js} +1 -1
- package/dist/components/{p-BvJ60OkW.js → p-Cjd09L60.js} +1 -1
- package/dist/components/p-CqWtzvF4.js +1 -0
- package/dist/components/{p-C5H3D_hy.js → p-DaUZrpCq.js} +1 -1
- package/dist/components/{p-10usqMv_.js → p-VmfmCYD6.js} +1 -1
- package/dist/components/p-oohA0YBK.js +1 -0
- package/dist/components/spw-accordion.js +1 -1
- package/dist/components/spw-alert.js +1 -1
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-checkbox.js +1 -1
- package/dist/components/spw-cookies.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-drawer.js +1 -1
- package/dist/components/spw-dropdown-container.js +1 -1
- package/dist/components/spw-dropdown-item.js +1 -1
- package/dist/components/spw-dropdown.js +1 -1
- package/dist/components/spw-field-label.js +1 -1
- package/dist/components/spw-field-message.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-footer-bottom.js +1 -1
- package/dist/components/spw-footer-content-col.js +1 -1
- package/dist/components/spw-footer-content.js +1 -1
- package/dist/components/spw-footer-link.js +1 -1
- package/dist/components/spw-footer.js +1 -1
- package/dist/components/spw-grid-item.js +1 -1
- package/dist/components/spw-grid.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header-persona-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-lightbox-item.js +1 -1
- package/dist/components/spw-lightbox.js +1 -1
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-description.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-list-title.js +1 -1
- package/dist/components/spw-list.js +1 -1
- package/dist/components/spw-loading.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +1 -1
- package/dist/components/spw-pagination.js +1 -1
- package/dist/components/spw-radio.js +1 -1
- package/dist/components/spw-scrolltop.js +1 -1
- package/dist/components/spw-search-field.js +1 -1
- package/dist/components/spw-select.js +1 -1
- package/dist/components/spw-separator.js +1 -1
- package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/components/spw-sidebar-navigation-item.js +1 -1
- package/dist/components/spw-sidebar-navigation-separator.js +1 -1
- package/dist/components/spw-sidebar.js +1 -1
- package/dist/components/spw-sidenav-group.js +1 -1
- package/dist/components/spw-sidenav-item.js +1 -1
- package/dist/components/spw-sidenav.js +1 -1
- package/dist/components/spw-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-toast-controller.js +1 -1
- package/dist/components/spw-toc-container.js +1 -1
- package/dist/components/spw-toc-navigation.js +1 -1
- package/dist/components/spw-toc.js +1 -1
- package/dist/components/spw-tooltip.js +1 -1
- package/dist/components/spw-topbar.js +1 -1
- package/dist/components/spw-wizard-item.js +1 -1
- package/dist/components/spw-wizard.js +1 -1
- package/dist/components_json.json +252 -12
- package/dist/components_vscode.json +5585 -0
- package/dist/esm/{index-DkNryMko.js → index-mthi2pFj.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/spw-accordion_4.entry.js +1 -1
- package/dist/esm/spw-alert.entry.js +5 -12
- package/dist/esm/spw-avatar.entry.js +1 -1
- package/dist/esm/spw-block-content.entry.js +1 -1
- package/dist/esm/spw-box.entry.js +1 -1
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-card-content.entry.js +1 -1
- package/dist/esm/spw-card-excerpt.entry.js +1 -1
- package/dist/esm/spw-card-image.entry.js +1 -1
- package/dist/esm/spw-card-subtag-item.entry.js +1 -1
- package/dist/esm/spw-card-subtags.entry.js +2 -2
- package/dist/esm/spw-card-title.entry.js +1 -1
- package/dist/esm/spw-card.entry.js +1 -1
- package/dist/esm/spw-checkbox.entry.js +25 -3
- package/dist/esm/spw-cookies.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +1 -1
- package/dist/esm/spw-date-picker.entry.js +2 -2
- package/dist/esm/spw-drawer.entry.js +5 -5
- package/dist/esm/spw-dropdown-container.entry.js +2 -2
- package/dist/esm/spw-dropdown-item.entry.js +3 -3
- package/dist/esm/spw-dropdown.entry.js +2 -2
- package/dist/esm/spw-field-label_8.entry.js +12 -12
- package/dist/esm/spw-file-upload.entry.js +3 -3
- package/dist/esm/spw-footer-bottom.entry.js +2 -2
- package/dist/esm/spw-footer-content-col.entry.js +2 -2
- package/dist/esm/spw-footer-content.entry.js +2 -2
- package/dist/esm/spw-footer-link.entry.js +2 -2
- package/dist/esm/spw-footer.entry.js +2 -2
- package/dist/esm/spw-grid-item.entry.js +3 -3
- package/dist/esm/spw-grid.entry.js +3 -3
- package/dist/esm/spw-header-lang.entry.js +2 -2
- package/dist/esm/spw-header-navigation-dropdown.entry.js +2 -2
- package/dist/esm/spw-header-navigation-item.entry.js +3 -3
- package/dist/esm/spw-header-navigation.entry.js +2 -2
- package/dist/esm/spw-header-persona-item.entry.js +2 -2
- package/dist/esm/spw-header-persona.entry.js +2 -2
- package/dist/esm/spw-header.entry.js +4 -4
- package/dist/esm/spw-hero.entry.js +4 -4
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-input-slider.entry.js +2 -2
- package/dist/esm/spw-lightbox-item.entry.js +3 -3
- package/dist/esm/spw-lightbox.entry.js +3 -3
- package/dist/esm/spw-list-description.entry.js +2 -2
- package/dist/esm/spw-list-item.entry.js +2 -2
- package/dist/esm/spw-list-title.entry.js +2 -2
- package/dist/esm/spw-list.entry.js +2 -2
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +4 -4
- package/dist/esm/spw-mosaic-item.entry.js +2 -2
- package/dist/esm/spw-mosaic.entry.js +2 -2
- package/dist/esm/spw-pagination.entry.js +7 -7
- package/dist/esm/spw-radio.entry.js +27 -3
- package/dist/esm/spw-scrolltop.entry.js +2 -2
- package/dist/esm/spw-search-field.entry.js +34 -3
- package/dist/esm/spw-select.entry.js +2 -2
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +3 -3
- package/dist/esm/spw-sidebar-navigation-item.entry.js +5 -5
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +2 -2
- package/dist/esm/spw-sidebar.entry.js +2 -2
- package/dist/esm/spw-sidenav-group.entry.js +4 -4
- package/dist/esm/spw-sidenav-item.entry.js +5 -5
- package/dist/esm/spw-sidenav.entry.js +3 -3
- package/dist/esm/spw-skeleton.entry.js +2 -2
- package/dist/esm/spw-slider-item.entry.js +2 -2
- package/dist/esm/spw-slider.entry.js +2 -2
- package/dist/esm/spw-socials.entry.js +3 -3
- package/dist/esm/spw-stencil-library.js +3 -3
- package/dist/esm/spw-table-body.entry.js +2 -2
- package/dist/esm/spw-table-cell.entry.js +2 -2
- package/dist/esm/spw-table-container.entry.js +2 -2
- package/dist/esm/spw-table-footer.entry.js +2 -2
- package/dist/esm/spw-table-head.entry.js +2 -2
- package/dist/esm/spw-table-header.entry.js +3 -3
- package/dist/esm/spw-table-row.entry.js +2 -2
- package/dist/esm/spw-table-sidebar.entry.js +2 -2
- package/dist/esm/spw-table.entry.js +1 -1
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +2 -2
- package/dist/esm/spw-tabs-navigation.entry.js +2 -2
- package/dist/esm/spw-tabs.entry.js +2 -2
- package/dist/esm/spw-tag.entry.js +2 -2
- package/dist/esm/spw-text-field.entry.js +2 -2
- package/dist/esm/spw-textarea.entry.js +2 -2
- package/dist/esm/spw-tile-description.entry.js +2 -2
- package/dist/esm/spw-tile-title.entry.js +2 -2
- package/dist/esm/spw-tile.entry.js +2 -2
- package/dist/esm/spw-timeline-item.entry.js +3 -3
- package/dist/esm/spw-timeline.entry.js +3 -3
- package/dist/esm/spw-toast-controller.entry.js +3 -3
- package/dist/esm/spw-toast.entry.js +1 -1
- package/dist/esm/spw-toc-container.entry.js +7 -3
- package/dist/esm/spw-toc-navigation.entry.js +2 -2
- package/dist/esm/spw-toc.entry.js +3 -3
- package/dist/esm/spw-topbar.entry.js +2 -2
- package/dist/esm/spw-wizard-item.entry.js +2 -2
- package/dist/esm/spw-wizard.entry.js +2 -2
- package/dist/spw-stencil-library/p-00bbd54f.entry.js +1 -0
- package/dist/spw-stencil-library/p-020b4537.entry.js +1 -0
- package/dist/spw-stencil-library/{p-8a0cf2d4.entry.js → p-0647a776.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3bcafcbf.entry.js → p-0696997f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e2f667f7.entry.js → p-0a0b5695.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bdea1755.entry.js → p-0c33cd7d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-33a767a3.entry.js → p-0e4056ba.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9c747e12.entry.js → p-10f42f45.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9a839525.entry.js → p-154a2f90.entry.js} +1 -1
- package/dist/spw-stencil-library/p-17d35cee.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b98b556b.entry.js → p-1bdf3e61.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-77a95d12.entry.js → p-1da399ed.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e27e96a2.entry.js → p-1dc8918c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1d57cc99.entry.js → p-1e4878b8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8b631b5d.entry.js → p-235a9a01.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-35c26140.entry.js → p-2417cbbb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-03c76e20.entry.js → p-243061e9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4898b89b.entry.js → p-29e1b7ba.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6a6b2237.entry.js → p-2b1e084f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6aef58f4.entry.js → p-2cbb997d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a4a4c3b3.entry.js → p-361f6350.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5c50027b.entry.js → p-3777bccc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ee69af5f.entry.js → p-39643956.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5a55e5c5.entry.js → p-39add31f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a9c3f05b.entry.js → p-3ad5c457.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9baceb97.entry.js → p-3ad6d6f0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ccbe0d67.entry.js → p-3f1f7fbb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c20c15d5.entry.js → p-3f83cca0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c6298162.entry.js → p-455036fe.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4e15e0c1.entry.js → p-4774338c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-83017509.entry.js → p-4a06e37f.entry.js} +1 -1
- package/dist/spw-stencil-library/p-4b0db9bd.entry.js +1 -0
- package/dist/spw-stencil-library/p-4fbeb3f5.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9ac3913a.entry.js → p-50588fc5.entry.js} +1 -1
- package/dist/spw-stencil-library/p-55f21ebb.entry.js +1 -0
- package/dist/spw-stencil-library/{p-70d3f435.entry.js → p-57cd2788.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5e7ca2e4.entry.js → p-5a697628.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-837ac8f1.entry.js → p-5e8a5a23.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e2592a5e.entry.js → p-61f2278c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-70b7b977.entry.js → p-655a0920.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-021fc983.entry.js → p-698c0030.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3ef82674.entry.js → p-6c9bc0df.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7a47432f.entry.js → p-6cc0b5f5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-226bf7b7.entry.js → p-6e52eb6a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c8185d55.entry.js → p-70947adf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-62442334.entry.js → p-7e704f32.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e6546573.entry.js → p-7f04e78e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-29f4d921.entry.js → p-89931481.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a13fadc5.entry.js → p-899f21ca.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-958dadb3.entry.js → p-8f1513ad.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-43ac8164.entry.js → p-90100e0c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1156e45c.entry.js → p-932bee0e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cab00494.entry.js → p-93d33de7.entry.js} +1 -1
- package/dist/spw-stencil-library/p-95062710.entry.js +1 -0
- package/dist/spw-stencil-library/{p-8ee5de40.entry.js → p-9964d952.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b2be5886.entry.js → p-9ee7a00a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-30f7cb1e.entry.js → p-9f6d4141.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6278d28f.entry.js → p-a6ffe0b7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a19386d3.entry.js → p-a7b71644.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-98f14c76.entry.js → p-a89eaabb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d302a2b5.entry.js → p-a8bd7ac4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-acd17168.entry.js +1 -0
- package/dist/spw-stencil-library/{p-a4532a5f.entry.js → p-adbcce82.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ade0b4ca.entry.js +1 -0
- package/dist/spw-stencil-library/{p-e684eb0a.entry.js → p-ae8a6054.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2a6388d4.entry.js → p-af9ea059.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-07c59244.entry.js → p-b28c7677.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e76535ee.entry.js → p-b6678091.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b73d8a54.entry.js +1 -0
- package/dist/spw-stencil-library/{p-85fd474d.entry.js → p-b835ebc5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-71ef7b30.entry.js → p-bda30c93.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-609873b3.entry.js → p-bdcd9e24.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e67a2ab2.entry.js → p-bde71818.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ec9b89b8.entry.js → p-bfde8a3a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c02151d3.entry.js → p-c369f61b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1b2219c5.entry.js → p-c36db9e3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8488c882.entry.js → p-c374d0ff.entry.js} +1 -1
- package/dist/spw-stencil-library/p-c7480955.entry.js +1 -0
- package/dist/spw-stencil-library/p-cb506a6f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-82ccac76.entry.js → p-ce07c9cd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-42c5ae2b.entry.js → p-dad0c8fa.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-53d34813.entry.js → p-ddc867bd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-15fcedc4.entry.js → p-e1926d22.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-15714574.entry.js → p-e286f138.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-efab43e2.entry.js → p-e2898a5f.entry.js} +4 -4
- package/dist/spw-stencil-library/{p-54d3bb05.entry.js → p-e7e8a60a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b6b496d2.entry.js → p-e8f6b76c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-db281173.entry.js → p-eb0c9f5d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-faa20925.entry.js → p-f1b2d02e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bdce1731.entry.js → p-f2714773.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-18563d7b.entry.js → p-f29ddbe8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2b2908f6.entry.js → p-f473aba1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-32f90343.entry.js → p-f98ff9fd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-435c6572.entry.js → p-fabba2d4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4b49ce46.entry.js → p-faf4a80a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fb4b6547.entry.js → p-fb604e35.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-646c04fa.entry.js → p-fc1e3eb6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-DkNryMko.js → p-mthi2pFj.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.css +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +1232 -900
- package/dist/types/components/spw-alert/spw-alert.d.ts +2 -5
- package/dist/types/components/spw-checkbox/spw-checkbox.d.ts +3 -1
- package/dist/types/components/spw-group/spw-group.d.ts +2 -2
- package/dist/types/components/spw-radio/spw-radio.d.ts +4 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +6 -0
- package/dist/types/components/spw-select/spw-select.d.ts +2 -0
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +2 -0
- package/dist/types/components/spw-textarea/spw-textarea.d.ts +2 -0
- package/dist/types/components/spw-toc/spw-toc-container/spw-toc-container.d.ts +1 -0
- package/dist/types/components.d.ts +59 -12
- package/dist/types/stories/components/spw-checkbox/spw-checkbox.stories.d.ts +2 -0
- package/dist/types/stories/components/spw-radio/spw-radio.stories.d.ts +4 -0
- package/dist/types/stories/organisms/spw-alert/spw-alert.stories.d.ts +1 -1
- package/dist/types/stories/organisms/spw-group/spw-group.stories.d.ts +2 -0
- package/dist/types/utils/syntax.d.ts +33 -0
- package/hydrate/index.js +219 -145
- package/hydrate/index.mjs +219 -145
- package/package.json +2 -2
- package/dist/components/p-BpHhLSNA.js +0 -1
- package/dist/components/p-jLNjkOd-.js +0 -1
- package/dist/components/p-m6pRrrVB.js +0 -1
- package/dist/spw-stencil-library/p-00e913ab.entry.js +0 -1
- package/dist/spw-stencil-library/p-264d68af.entry.js +0 -1
- package/dist/spw-stencil-library/p-58eddc91.entry.js +0 -1
- package/dist/spw-stencil-library/p-77802474.entry.js +0 -1
- package/dist/spw-stencil-library/p-836800d9.entry.js +0 -1
- package/dist/spw-stencil-library/p-a36010c0.entry.js +0 -1
- package/dist/spw-stencil-library/p-a8aef45b.entry.js +0 -1
- package/dist/spw-stencil-library/p-aecc5c7b.entry.js +0 -1
- package/dist/spw-stencil-library/p-bbd74c62.entry.js +0 -1
- package/dist/spw-stencil-library/p-c9cca975.entry.js +0 -1
- package/dist/spw-stencil-library/p-e68ac654.entry.js +0 -1
- package/dist/spw-stencil-library/p-e9262506.entry.js +0 -1
|
@@ -27,19 +27,24 @@ Le bandeau d'alerte diffuse un message important en haut de la page, là où le
|
|
|
27
27
|
|
|
28
28
|
Le bandeau d'alerte occupe toute la largeur de l'écran, en tête de page, et se distingue par un traitement visuel affirmé qui le signale comme prioritaire. Sa bande colorée s'étend sur toute la largeur disponible, tandis que son contenu s'aligne sur la grille de la page afin de rester cohérent avec le reste de l'interface.
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Compact, il dispose son contenu sur une seule ligne : le message (slot par défaut) à gauche, une action facultative (slot button) à sa suite, et le bouton de fermeture à droite, séparé par un filet vertical. Le message est tronqué au-delà de deux lignes par défaut (nombre de lignes ajustable via le token --spw-alert-text-line-clamp) afin de préserver la hauteur réduite du bandeau.
|
|
31
|
+
|
|
32
|
+
Sur les petits écrans, le message et l'action passent à la ligne si nécessaire ; le bouton de fermeture ne conserve que son icône (son label reste disponible pour les lecteurs d'écran).
|
|
31
33
|
|
|
32
34
|
## Fonctionnalités
|
|
33
35
|
|
|
34
|
-
-
|
|
36
|
+
- Message principal via le slot par défaut, tronqué à deux lignes par défaut (token --spw-alert-text-line-clamp)
|
|
37
|
+
- Action optionnelle (bouton ou lien) via le slot button, positionnée à côté du message
|
|
35
38
|
- Option de masquage via un bouton de fermeture (isDismissable)
|
|
39
|
+
- alertTitle et dismissableText servent d'aria-label (accessibilité), ils ne sont pas affichés visuellement
|
|
36
40
|
- Accessibilité avec attributs ARIA (role="alert", aria-live="polite")
|
|
37
41
|
- Support du clavier pour la fermeture (touche Entrée sur le bouton de fermeture)
|
|
38
|
-
-
|
|
42
|
+
- Couleur de fond et taille de police personnalisables via les tokens --spw-alert-background-color et --spw-alert-font-size
|
|
39
43
|
|
|
40
44
|
## Slots
|
|
41
45
|
|
|
42
|
-
- **default** :
|
|
46
|
+
- **default** : Message de l'alerte (texte). Tronqué au-delà du nombre de lignes défini par --spw-alert-text-line-clamp.
|
|
47
|
+
- **button** : Emplacement d'une action optionnelle (spw-button, lien « voir plus »…), affichée à droite du message avant le bouton de fermeture.
|
|
43
48
|
|
|
44
49
|
## Composant interactif
|
|
45
50
|
`,
|
|
@@ -61,7 +66,8 @@ const Template = args => {
|
|
|
61
66
|
}
|
|
62
67
|
else {
|
|
63
68
|
if (key !== slottedLabel) {
|
|
64
|
-
|
|
69
|
+
if (typeof val !== 'function')
|
|
70
|
+
element.setAttribute(toKebabCase(key), val);
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
});
|
|
@@ -104,9 +110,7 @@ export const Full = () => {
|
|
|
104
110
|
element.setAttribute('dismissable-text', 'Masquer');
|
|
105
111
|
element.innerHTML = /* HTML */ `
|
|
106
112
|
Contenu de l'alerte
|
|
107
|
-
<spw-
|
|
108
|
-
<spw-button is-full-width-mobile="false" size="small" surface="dark">Bouton primaire</spw-button>
|
|
109
|
-
</spw-group>
|
|
113
|
+
<spw-button slot="button" is-full-width-mobile="false" size="small" variant="secondary" surface="dark">Bouton primaire</spw-button>
|
|
110
114
|
`;
|
|
111
115
|
return element;
|
|
112
116
|
};
|
|
@@ -115,7 +119,7 @@ Full.parameters = {
|
|
|
115
119
|
docs: {
|
|
116
120
|
description: {
|
|
117
121
|
story: `
|
|
118
|
-
Alerte avec titre, contenu et un bouton d'action
|
|
122
|
+
Alerte avec titre, contenu et un bouton d'action placé dans le slot dédié button. Le slot button positionne le bouton à côté du texte, avant le bouton de fermeture, permettant d'inviter l'usager à réagir.
|
|
119
123
|
`,
|
|
120
124
|
},
|
|
121
125
|
source: {
|
|
@@ -126,38 +130,35 @@ Alerte avec titre, contenu et un bouton d'action primaire dans le slot par défa
|
|
|
126
130
|
dismissable-text="Masquer"
|
|
127
131
|
>
|
|
128
132
|
Contenu de l'alerte
|
|
129
|
-
<spw-
|
|
130
|
-
<spw-button is-full-width-mobile="false" size="small" surface="dark">Bouton primaire</spw-button>
|
|
131
|
-
</spw-group>
|
|
133
|
+
<spw-button slot="button" is-full-width-mobile="false" size="small" surface="dark">Bouton primaire</spw-button>
|
|
132
134
|
</spw-alert>`,
|
|
133
135
|
},
|
|
134
136
|
},
|
|
135
137
|
};
|
|
136
|
-
export const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
export const AvecLien = () => {
|
|
139
|
+
const element = document.createElement('spw-alert');
|
|
140
|
+
element.setAttribute('alert-id', '6');
|
|
141
|
+
element.setAttribute('alert-title', "Titre de l'alerte");
|
|
142
|
+
element.setAttribute('is-dismissable', 'true');
|
|
143
|
+
element.setAttribute('dismissable-text', 'Masquer');
|
|
144
|
+
element.innerHTML = /* HTML */ ` <div class="spw-ds-wysiwyg spw-ds-wysiwyg--surface-dark">Contenu de l'alerte avec un lien pour <a href="#">en savoir plus</a>.</div> `;
|
|
145
|
+
return element;
|
|
144
146
|
};
|
|
145
|
-
|
|
147
|
+
AvecLien.storyName = 'Alerte avec lien « Voir plus »';
|
|
148
|
+
AvecLien.parameters = {
|
|
146
149
|
docs: {
|
|
147
150
|
description: {
|
|
148
|
-
story: `
|
|
149
|
-
Alerte sans contenu dans le slot par défaut : seul le titre est affiché, sans espace superflu en dessous.
|
|
150
|
-
|
|
151
|
-
Utilisée pour des messages très courts ne nécessitant pas de description supplémentaire.
|
|
152
|
-
`,
|
|
151
|
+
story: `Alerte qui contient un lien « Voir plus » plutôt qu'un bouton, pour rediriger l'usager vers une page de détail. Le lien est encapsulé dans un div.spw-ds-wysiwyg afin d'hériter du style de lien du design system. Alternative plus légère au bouton d'action lorsque l'objectif est d'en savoir davantage.`,
|
|
153
152
|
},
|
|
154
153
|
source: {
|
|
155
154
|
code: `<spw-alert
|
|
156
|
-
alert-id="
|
|
157
|
-
alert-title="
|
|
155
|
+
alert-id="6"
|
|
156
|
+
alert-title="Titre de l'alerte"
|
|
158
157
|
is-dismissable="true"
|
|
159
158
|
dismissable-text="Masquer"
|
|
160
|
-
|
|
159
|
+
>
|
|
160
|
+
<div class="spw-ds-wysiwyg spw-ds-wysiwyg--surface-dark">Contenu de l'alerte avec un lien pour <a href="#">en savoir plus</a>.</div>
|
|
161
|
+
</spw-alert>`,
|
|
161
162
|
},
|
|
162
163
|
},
|
|
163
164
|
};
|
|
@@ -67,7 +67,8 @@ const Template = args => {
|
|
|
67
67
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
68
68
|
}
|
|
69
69
|
else if (key !== 'content' && key !== 'footer' && key !== 'triggerLabel' && key !== 'openDrawer' && key !== 'closeDrawer') {
|
|
70
|
-
|
|
70
|
+
if (typeof val !== 'function')
|
|
71
|
+
element.setAttribute(toKebabCase(key), val);
|
|
71
72
|
}
|
|
72
73
|
});
|
|
73
74
|
button.setAttribute('data-drawer-trigger', args.id);
|
|
@@ -156,7 +156,8 @@ const Template = args => {
|
|
|
156
156
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
157
157
|
Object.entries(args).forEach(([key, val]) => {
|
|
158
158
|
if (masterProps.includes(key)) {
|
|
159
|
-
|
|
159
|
+
if (typeof val !== 'function')
|
|
160
|
+
element.setAttribute(toKebabCase(key), val);
|
|
160
161
|
}
|
|
161
162
|
else if (key.startsWith('on')) {
|
|
162
163
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -371,7 +371,8 @@ const TemplateBasic = args => {
|
|
|
371
371
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
372
372
|
Object.entries(args).forEach(([key, val]) => {
|
|
373
373
|
if (masterProps.includes(key)) {
|
|
374
|
-
|
|
374
|
+
if (typeof val !== 'function')
|
|
375
|
+
element.setAttribute(toKebabCase(key), val);
|
|
375
376
|
}
|
|
376
377
|
else if (key.startsWith('on')) {
|
|
377
378
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -386,7 +387,8 @@ const TemplateWithSpans = args => {
|
|
|
386
387
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
387
388
|
Object.entries(args).forEach(([key, val]) => {
|
|
388
389
|
if (masterProps.includes(key)) {
|
|
389
|
-
|
|
390
|
+
if (typeof val !== 'function')
|
|
391
|
+
element.setAttribute(toKebabCase(key), val);
|
|
390
392
|
}
|
|
391
393
|
else if (key.startsWith('on')) {
|
|
392
394
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -401,7 +403,8 @@ const TemplateSquare = args => {
|
|
|
401
403
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
402
404
|
Object.entries(args).forEach(([key, val]) => {
|
|
403
405
|
if (masterProps.includes(key)) {
|
|
404
|
-
|
|
406
|
+
if (typeof val !== 'function')
|
|
407
|
+
element.setAttribute(toKebabCase(key), val);
|
|
405
408
|
}
|
|
406
409
|
else if (key.startsWith('on')) {
|
|
407
410
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -416,7 +419,8 @@ const TemplateMixed = args => {
|
|
|
416
419
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
417
420
|
Object.entries(args).forEach(([key, val]) => {
|
|
418
421
|
if (masterProps.includes(key)) {
|
|
419
|
-
|
|
422
|
+
if (typeof val !== 'function')
|
|
423
|
+
element.setAttribute(toKebabCase(key), val);
|
|
420
424
|
}
|
|
421
425
|
else if (key.startsWith('on')) {
|
|
422
426
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -431,7 +435,8 @@ const TemplateCards = args => {
|
|
|
431
435
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
432
436
|
Object.entries(args).forEach(([key, val]) => {
|
|
433
437
|
if (masterProps.includes(key)) {
|
|
434
|
-
|
|
438
|
+
if (typeof val !== 'function')
|
|
439
|
+
element.setAttribute(toKebabCase(key), val);
|
|
435
440
|
}
|
|
436
441
|
else if (key.startsWith('on')) {
|
|
437
442
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -25,10 +25,12 @@ Le composant Groupe permet d'organiser plusieurs éléments interactifs (boutons
|
|
|
25
25
|
|
|
26
26
|
## Types de groupes
|
|
27
27
|
|
|
28
|
-
Le composant supporte
|
|
28
|
+
Le composant supporte plusieurs types d'éléments :
|
|
29
29
|
- **Buttons** : Groupe de boutons d'action
|
|
30
30
|
- **Checkboxes** : Groupe de cases à cocher
|
|
31
31
|
- **Radios** : Groupe de boutons radio
|
|
32
|
+
- **Tags** : Groupe de checkboxes/radios en variant tag (pastilles)
|
|
33
|
+
- **Segmented** : Contrôle segmenté (segmented control) à base de radios en variant tag
|
|
32
34
|
|
|
33
35
|
## Composant interactif
|
|
34
36
|
`,
|
|
@@ -54,7 +56,8 @@ const Template = args => {
|
|
|
54
56
|
}
|
|
55
57
|
else {
|
|
56
58
|
if (key !== slottedLabel) {
|
|
57
|
-
|
|
59
|
+
if (typeof val !== 'function')
|
|
60
|
+
element.setAttribute(toKebabCase(key), val);
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
63
|
});
|
|
@@ -198,7 +201,7 @@ Groupe de radios avec un message d'erreur affiché sous le groupe via la prop er
|
|
|
198
201
|
},
|
|
199
202
|
};
|
|
200
203
|
export const CheckboxesAvecHint = Template.bind({});
|
|
201
|
-
CheckboxesAvecHint.storyName =
|
|
204
|
+
CheckboxesAvecHint.storyName = 'Groupe de cases à cocher avec aide';
|
|
202
205
|
CheckboxesAvecHint.args = {
|
|
203
206
|
type: 'checkboxes',
|
|
204
207
|
orientation: 'vertical',
|
|
@@ -262,3 +265,44 @@ Groupe de checkboxes horizontaux avec un message d'avertissement affiché sous l
|
|
|
262
265
|
},
|
|
263
266
|
},
|
|
264
267
|
};
|
|
268
|
+
export const Segmented = Template.bind({});
|
|
269
|
+
Segmented.storyName = 'Contrôle segmenté (segmented)';
|
|
270
|
+
Segmented.args = {
|
|
271
|
+
type: 'segmented',
|
|
272
|
+
content: `
|
|
273
|
+
<spw-radio variant="tag" name="segmented-filter" value="jour" checked>Jour</spw-radio>
|
|
274
|
+
<spw-radio variant="tag" name="segmented-filter" value="semaine">Semaine</spw-radio>
|
|
275
|
+
<spw-radio variant="tag" name="segmented-filter" value="mois">Mois</spw-radio>
|
|
276
|
+
<spw-radio variant="tag" name="segmented-filter" value="annee">Année</spw-radio>
|
|
277
|
+
`,
|
|
278
|
+
};
|
|
279
|
+
Segmented.parameters = {
|
|
280
|
+
docs: {
|
|
281
|
+
description: {
|
|
282
|
+
story: `
|
|
283
|
+
Contrôle segmenté (segmented control) via type="segmented", composé de spw-radio variant="tag". Les options sont accolées dans un conteneur unique avec fond gris et bordure, le choix actif étant mis en avant. Un seul choix possible à la fois.
|
|
284
|
+
|
|
285
|
+
Cas d'usage : bascule entre vues ou granularités (Jour / Semaine / Mois / Année), filtres exclusifs compacts.
|
|
286
|
+
`,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
};
|
|
290
|
+
export const SegmentedIcone = Template.bind({});
|
|
291
|
+
SegmentedIcone.storyName = 'Contrôle segmenté, icône seule';
|
|
292
|
+
SegmentedIcone.args = {
|
|
293
|
+
type: 'segmented',
|
|
294
|
+
content: `
|
|
295
|
+
<spw-radio variant="tag" name="segmented-icon-filter" value="liste" checked acc-aria-label="Vue liste"><spw-icon icon="fa-list"></spw-icon></spw-radio>
|
|
296
|
+
<spw-radio variant="tag" name="segmented-icon-filter" value="grille" acc-aria-label="Vue grille"><spw-icon icon="fa-grid-2"></spw-icon></spw-radio>
|
|
297
|
+
<spw-radio variant="tag" name="segmented-icon-filter" value="carte" acc-aria-label="Vue carte"><spw-icon icon="fa-map"></spw-icon></spw-radio>
|
|
298
|
+
`,
|
|
299
|
+
};
|
|
300
|
+
SegmentedIcone.parameters = {
|
|
301
|
+
docs: {
|
|
302
|
+
description: {
|
|
303
|
+
story: `
|
|
304
|
+
Contrôle segmenté à icônes seules, sans libellé texte. Chaque option porte un acc-aria-label pour rester accessible malgré l'absence de texte visible. Cas d'usage : sélecteur de mode d'affichage (liste / grille / carte), bascules compactes dans une barre d'outils.
|
|
305
|
+
`,
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
};
|
|
@@ -339,7 +339,8 @@ const Template = args => {
|
|
|
339
339
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
340
340
|
Object.entries(args).forEach(([key, val]) => {
|
|
341
341
|
if (masterProps.includes(key)) {
|
|
342
|
-
|
|
342
|
+
if (typeof val !== 'function')
|
|
343
|
+
element.setAttribute(toKebabCase(key), val);
|
|
343
344
|
}
|
|
344
345
|
else if (key.startsWith('on')) {
|
|
345
346
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -354,7 +355,8 @@ const TemplateVariant2 = args => {
|
|
|
354
355
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
355
356
|
Object.entries(args).forEach(([key, val]) => {
|
|
356
357
|
if (masterProps.includes(key)) {
|
|
357
|
-
|
|
358
|
+
if (typeof val !== 'function')
|
|
359
|
+
element.setAttribute(toKebabCase(key), val);
|
|
358
360
|
}
|
|
359
361
|
else if (key.startsWith('on')) {
|
|
360
362
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -369,7 +371,8 @@ const TemplateVariant3 = args => {
|
|
|
369
371
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
370
372
|
Object.entries(args).forEach(([key, val]) => {
|
|
371
373
|
if (masterProps.includes(key)) {
|
|
372
|
-
|
|
374
|
+
if (typeof val !== 'function')
|
|
375
|
+
element.setAttribute(toKebabCase(key), val);
|
|
373
376
|
}
|
|
374
377
|
else if (key.startsWith('on')) {
|
|
375
378
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -545,7 +548,8 @@ const TemplateMegamenu = args => {
|
|
|
545
548
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
546
549
|
Object.entries(args).forEach(([key, val]) => {
|
|
547
550
|
if (masterProps.includes(key)) {
|
|
548
|
-
|
|
551
|
+
if (typeof val !== 'function')
|
|
552
|
+
element.setAttribute(toKebabCase(key), val);
|
|
549
553
|
}
|
|
550
554
|
else if (key.startsWith('on')) {
|
|
551
555
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -636,7 +640,8 @@ const TemplateUserInfo = args => {
|
|
|
636
640
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
637
641
|
Object.entries(args).forEach(([key, val]) => {
|
|
638
642
|
if (masterProps.includes(key)) {
|
|
639
|
-
|
|
643
|
+
if (typeof val !== 'function')
|
|
644
|
+
element.setAttribute(toKebabCase(key), val);
|
|
640
645
|
}
|
|
641
646
|
else if (key.startsWith('on')) {
|
|
642
647
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -128,7 +128,8 @@ const Template = args => {
|
|
|
128
128
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
129
129
|
Object.entries(args).forEach(([key, val]) => {
|
|
130
130
|
if (masterProps.includes(key)) {
|
|
131
|
-
|
|
131
|
+
if (typeof val !== 'function')
|
|
132
|
+
element.setAttribute(toKebabCase(key), val);
|
|
132
133
|
}
|
|
133
134
|
else if (key.startsWith('on')) {
|
|
134
135
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -143,7 +144,8 @@ const TemplateMaxi = args => {
|
|
|
143
144
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
144
145
|
Object.entries(args).forEach(([key, val]) => {
|
|
145
146
|
if (masterProps.includes(key)) {
|
|
146
|
-
|
|
147
|
+
if (typeof val !== 'function')
|
|
148
|
+
element.setAttribute(toKebabCase(key), val);
|
|
147
149
|
}
|
|
148
150
|
else if (key.startsWith('on')) {
|
|
149
151
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -322,7 +324,8 @@ const TemplateWithPlayButton = args => {
|
|
|
322
324
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
323
325
|
Object.entries(args).forEach(([key, val]) => {
|
|
324
326
|
if (masterProps.includes(key)) {
|
|
325
|
-
|
|
327
|
+
if (typeof val !== 'function')
|
|
328
|
+
element.setAttribute(toKebabCase(key), val);
|
|
326
329
|
}
|
|
327
330
|
else if (key.startsWith('on')) {
|
|
328
331
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -383,7 +386,8 @@ const TemplateMini = args => {
|
|
|
383
386
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
384
387
|
Object.entries(args).forEach(([key, val]) => {
|
|
385
388
|
if (masterProps.includes(key)) {
|
|
386
|
-
|
|
389
|
+
if (typeof val !== 'function')
|
|
390
|
+
element.setAttribute(toKebabCase(key), val);
|
|
387
391
|
}
|
|
388
392
|
else if (key.startsWith('on')) {
|
|
389
393
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -430,7 +434,8 @@ const TemplateFeatured = args => {
|
|
|
430
434
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
431
435
|
Object.entries(args).forEach(([key, val]) => {
|
|
432
436
|
if (masterProps.includes(key)) {
|
|
433
|
-
|
|
437
|
+
if (typeof val !== 'function')
|
|
438
|
+
element.setAttribute(toKebabCase(key), val);
|
|
434
439
|
}
|
|
435
440
|
else if (key.startsWith('on')) {
|
|
436
441
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -108,7 +108,8 @@ const TemplateDefault = args => {
|
|
|
108
108
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
109
109
|
Object.entries(args).forEach(([key, val]) => {
|
|
110
110
|
if (masterProps.includes(key)) {
|
|
111
|
-
|
|
111
|
+
if (typeof val !== 'function')
|
|
112
|
+
element.setAttribute(toKebabCase(key), val);
|
|
112
113
|
}
|
|
113
114
|
else if (key.startsWith('on')) {
|
|
114
115
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -171,7 +172,8 @@ export const SansDescription = args => {
|
|
|
171
172
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
172
173
|
Object.entries(args).forEach(([key, val]) => {
|
|
173
174
|
if (masterProps.includes(key)) {
|
|
174
|
-
|
|
175
|
+
if (typeof val !== 'function')
|
|
176
|
+
element.setAttribute(toKebabCase(key), val);
|
|
175
177
|
}
|
|
176
178
|
else if (key.startsWith('on')) {
|
|
177
179
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -92,7 +92,8 @@ const Template = args => {
|
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
94
|
if (key !== 'content' && key !== 'buttons' && key !== 'closeModal' && key !== 'openModal') {
|
|
95
|
-
|
|
95
|
+
if (typeof val !== 'function')
|
|
96
|
+
element.setAttribute(toKebabCase(key), val);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
});
|
|
@@ -151,7 +151,8 @@ const TemplateDefault = args => {
|
|
|
151
151
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
152
152
|
Object.entries(args).forEach(([key, val]) => {
|
|
153
153
|
if (masterProps.includes(key)) {
|
|
154
|
-
|
|
154
|
+
if (typeof val !== 'function')
|
|
155
|
+
element.setAttribute(toKebabCase(key), val);
|
|
155
156
|
}
|
|
156
157
|
else if (key.startsWith('on')) {
|
|
157
158
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -189,7 +189,8 @@ const Template = args => {
|
|
|
189
189
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
190
190
|
Object.entries(args).forEach(([key, val]) => {
|
|
191
191
|
if (masterProps.includes(key)) {
|
|
192
|
-
|
|
192
|
+
if (typeof val !== 'function')
|
|
193
|
+
element.setAttribute(toKebabCase(key), val);
|
|
193
194
|
}
|
|
194
195
|
else if (key.startsWith('on')) {
|
|
195
196
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -237,7 +237,8 @@ const TemplateDefault = args => {
|
|
|
237
237
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
238
238
|
Object.entries(args).forEach(([key, val]) => {
|
|
239
239
|
if (masterProps.includes(key)) {
|
|
240
|
-
|
|
240
|
+
if (typeof val !== 'function')
|
|
241
|
+
element.setAttribute(toKebabCase(key), val);
|
|
241
242
|
}
|
|
242
243
|
else if (key.startsWith('on')) {
|
|
243
244
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -252,7 +253,8 @@ const TemplateBox = args => {
|
|
|
252
253
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
253
254
|
Object.entries(args).forEach(([key, val]) => {
|
|
254
255
|
if (masterProps.includes(key)) {
|
|
255
|
-
|
|
256
|
+
if (typeof val !== 'function')
|
|
257
|
+
element.setAttribute(toKebabCase(key), val);
|
|
256
258
|
}
|
|
257
259
|
else if (key.startsWith('on')) {
|
|
258
260
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -267,7 +269,8 @@ const TemplateMultiLevel = args => {
|
|
|
267
269
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
268
270
|
Object.entries(args).forEach(([key, val]) => {
|
|
269
271
|
if (masterProps.includes(key)) {
|
|
270
|
-
|
|
272
|
+
if (typeof val !== 'function')
|
|
273
|
+
element.setAttribute(toKebabCase(key), val);
|
|
271
274
|
}
|
|
272
275
|
else if (key.startsWith('on')) {
|
|
273
276
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -338,7 +341,8 @@ const TemplateWithTag = args => {
|
|
|
338
341
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
339
342
|
Object.entries(args).forEach(([key, val]) => {
|
|
340
343
|
if (masterProps.includes(key)) {
|
|
341
|
-
|
|
344
|
+
if (typeof val !== 'function')
|
|
345
|
+
element.setAttribute(toKebabCase(key), val);
|
|
342
346
|
}
|
|
343
347
|
else if (key.startsWith('on')) {
|
|
344
348
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -353,7 +357,8 @@ const TemplateWithTagAndIcon = args => {
|
|
|
353
357
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
354
358
|
Object.entries(args).forEach(([key, val]) => {
|
|
355
359
|
if (masterProps.includes(key)) {
|
|
356
|
-
|
|
360
|
+
if (typeof val !== 'function')
|
|
361
|
+
element.setAttribute(toKebabCase(key), val);
|
|
357
362
|
}
|
|
358
363
|
else if (key.startsWith('on')) {
|
|
359
364
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -419,7 +424,8 @@ const TemplateCentered = args => {
|
|
|
419
424
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
420
425
|
Object.entries(args).forEach(([key, val]) => {
|
|
421
426
|
if (masterProps.includes(key)) {
|
|
422
|
-
|
|
427
|
+
if (typeof val !== 'function')
|
|
428
|
+
element.setAttribute(toKebabCase(key), val);
|
|
423
429
|
}
|
|
424
430
|
else if (key.startsWith('on')) {
|
|
425
431
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -126,7 +126,8 @@ const TemplateIcon = args => {
|
|
|
126
126
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
127
127
|
Object.entries(args).forEach(([key, val]) => {
|
|
128
128
|
if (masterProps.includes(key)) {
|
|
129
|
-
|
|
129
|
+
if (typeof val !== 'function')
|
|
130
|
+
element.setAttribute(toKebabCase(key), val);
|
|
130
131
|
}
|
|
131
132
|
else if (key.startsWith('on')) {
|
|
132
133
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -143,7 +144,8 @@ const TemplateLight = args => {
|
|
|
143
144
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
144
145
|
Object.entries(args).forEach(([key, val]) => {
|
|
145
146
|
if (masterProps.includes(key)) {
|
|
146
|
-
|
|
147
|
+
if (typeof val !== 'function')
|
|
148
|
+
element.setAttribute(toKebabCase(key), val);
|
|
147
149
|
}
|
|
148
150
|
else if (key.startsWith('on')) {
|
|
149
151
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -161,7 +163,8 @@ const TemplateBig = args => {
|
|
|
161
163
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
162
164
|
Object.entries(args).forEach(([key, val]) => {
|
|
163
165
|
if (masterProps.includes(key)) {
|
|
164
|
-
|
|
166
|
+
if (typeof val !== 'function')
|
|
167
|
+
element.setAttribute(toKebabCase(key), val);
|
|
165
168
|
}
|
|
166
169
|
else if (key.startsWith('on')) {
|
|
167
170
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -179,7 +182,8 @@ const TemplateWithDescription = args => {
|
|
|
179
182
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
180
183
|
Object.entries(args).forEach(([key, val]) => {
|
|
181
184
|
if (masterProps.includes(key)) {
|
|
182
|
-
|
|
185
|
+
if (typeof val !== 'function')
|
|
186
|
+
element.setAttribute(toKebabCase(key), val);
|
|
183
187
|
}
|
|
184
188
|
else if (key.startsWith('on')) {
|
|
185
189
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -103,7 +103,8 @@ const TemplateDefault = args => {
|
|
|
103
103
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
104
104
|
Object.entries(args).forEach(([key, val]) => {
|
|
105
105
|
if (masterProps.includes(key)) {
|
|
106
|
-
|
|
106
|
+
if (typeof val !== 'function')
|
|
107
|
+
element.setAttribute(toKebabCase(key), val);
|
|
107
108
|
}
|
|
108
109
|
else if (key.startsWith('on')) {
|
|
109
110
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -118,7 +119,8 @@ const TemplateWithLinks = args => {
|
|
|
118
119
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
119
120
|
Object.entries(args).forEach(([key, val]) => {
|
|
120
121
|
if (masterProps.includes(key)) {
|
|
121
|
-
|
|
122
|
+
if (typeof val !== 'function')
|
|
123
|
+
element.setAttribute(toKebabCase(key), val);
|
|
122
124
|
}
|
|
123
125
|
else if (key.startsWith('on')) {
|
|
124
126
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -133,7 +135,8 @@ const TemplateWithVisibleItems = args => {
|
|
|
133
135
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
134
136
|
Object.entries(args).forEach(([key, val]) => {
|
|
135
137
|
if (masterProps.includes(key)) {
|
|
136
|
-
|
|
138
|
+
if (typeof val !== 'function')
|
|
139
|
+
element.setAttribute(toKebabCase(key), val);
|
|
137
140
|
}
|
|
138
141
|
else if (key.startsWith('on')) {
|
|
139
142
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -148,7 +151,8 @@ const TemplateWithLongText = args => {
|
|
|
148
151
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
149
152
|
Object.entries(args).forEach(([key, val]) => {
|
|
150
153
|
if (masterProps.includes(key)) {
|
|
151
|
-
|
|
154
|
+
if (typeof val !== 'function')
|
|
155
|
+
element.setAttribute(toKebabCase(key), val);
|
|
152
156
|
}
|
|
153
157
|
else if (key.startsWith('on')) {
|
|
154
158
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -107,7 +107,8 @@ function createTemplate(htmlFn) {
|
|
|
107
107
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
108
108
|
Object.entries(args).forEach(([key, val]) => {
|
|
109
109
|
if (masterProps.includes(key)) {
|
|
110
|
-
|
|
110
|
+
if (typeof val !== 'function')
|
|
111
|
+
element.setAttribute(toKebabCase(key), val);
|
|
111
112
|
}
|
|
112
113
|
else if (key.startsWith('on')) {
|
|
113
114
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -197,7 +197,8 @@ const TemplateHorizontal = args => {
|
|
|
197
197
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
198
198
|
Object.entries(args).forEach(([key, val]) => {
|
|
199
199
|
if (masterProps.includes(key)) {
|
|
200
|
-
|
|
200
|
+
if (typeof val !== 'function')
|
|
201
|
+
element.setAttribute(toKebabCase(key), val);
|
|
201
202
|
}
|
|
202
203
|
else if (key.startsWith('on')) {
|
|
203
204
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -212,7 +213,8 @@ const TemplateVertical = args => {
|
|
|
212
213
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
213
214
|
Object.entries(args).forEach(([key, val]) => {
|
|
214
215
|
if (masterProps.includes(key)) {
|
|
215
|
-
|
|
216
|
+
if (typeof val !== 'function')
|
|
217
|
+
element.setAttribute(toKebabCase(key), val);
|
|
216
218
|
}
|
|
217
219
|
else if (key.startsWith('on')) {
|
|
218
220
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -227,7 +229,8 @@ const TemplateWithIcons = args => {
|
|
|
227
229
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
228
230
|
Object.entries(args).forEach(([key, val]) => {
|
|
229
231
|
if (masterProps.includes(key)) {
|
|
230
|
-
|
|
232
|
+
if (typeof val !== 'function')
|
|
233
|
+
element.setAttribute(toKebabCase(key), val);
|
|
231
234
|
}
|
|
232
235
|
else if (key.startsWith('on')) {
|
|
233
236
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -242,7 +245,8 @@ const TemplateWithStates = args => {
|
|
|
242
245
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
243
246
|
Object.entries(args).forEach(([key, val]) => {
|
|
244
247
|
if (masterProps.includes(key)) {
|
|
245
|
-
|
|
248
|
+
if (typeof val !== 'function')
|
|
249
|
+
element.setAttribute(toKebabCase(key), val);
|
|
246
250
|
}
|
|
247
251
|
else if (key.startsWith('on')) {
|
|
248
252
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|
|
@@ -257,7 +261,8 @@ const TemplateWithWarning = args => {
|
|
|
257
261
|
const masterProps = controls.__realProps || Object.keys(controls);
|
|
258
262
|
Object.entries(args).forEach(([key, val]) => {
|
|
259
263
|
if (masterProps.includes(key)) {
|
|
260
|
-
|
|
264
|
+
if (typeof val !== 'function')
|
|
265
|
+
element.setAttribute(toKebabCase(key), val);
|
|
261
266
|
}
|
|
262
267
|
else if (key.startsWith('on')) {
|
|
263
268
|
element.addEventListener(key.substring(2).toLowerCase(), val);
|