@getflip/swirl-components 0.365.1 → 0.366.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/components.json +46 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/swirl-accordion.cjs.entry.js +1 -1
- package/dist/cjs/swirl-action-list-section.cjs.entry.js +1 -1
- package/dist/cjs/swirl-action-list_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-app-icon.cjs.entry.js +1 -1
- package/dist/cjs/swirl-app-layout_5.cjs.entry.js +2 -2
- package/dist/cjs/swirl-avatar-group.cjs.entry.js +23 -3
- package/dist/cjs/swirl-badge.cjs.entry.js +1 -1
- package/dist/cjs/swirl-banner.cjs.entry.js +1 -1
- package/dist/cjs/swirl-box.cjs.entry.js +1 -1
- package/dist/cjs/swirl-button-group.cjs.entry.js +2 -2
- package/dist/cjs/swirl-button.cjs.entry.js +2 -2
- package/dist/cjs/swirl-card.cjs.entry.js +2 -2
- package/dist/cjs/swirl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/swirl-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/swirl-chip.cjs.entry.js +1 -1
- package/dist/cjs/swirl-columns.cjs.entry.js +2 -2
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-dialog.cjs.entry.js +1 -1
- package/dist/cjs/swirl-file-viewer_8.cjs.entry.js +2 -2
- package/dist/cjs/swirl-form-control.cjs.entry.js +1 -1
- package/dist/cjs/swirl-form-group.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-left_4.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-error_3.cjs.entry.js +2 -2
- package/dist/cjs/swirl-icon-gif_4.cjs.entry.js +2 -2
- package/dist/cjs/swirl-icon.cjs.entry.js +1 -1
- package/dist/cjs/swirl-image-grid-item.cjs.entry.js +3 -3
- package/dist/cjs/swirl-image-grid.cjs.entry.js +1 -1
- package/dist/cjs/swirl-inline-notification.cjs.entry.js +1 -1
- package/dist/cjs/swirl-inline-status.cjs.entry.js +1 -1
- package/dist/cjs/swirl-link.cjs.entry.js +1 -1
- package/dist/cjs/swirl-menu.cjs.entry.js +2 -2
- package/dist/cjs/swirl-modal.cjs.entry.js +8 -8
- package/dist/cjs/swirl-option-list_2.cjs.entry.js +2 -2
- package/dist/cjs/swirl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/swirl-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/swirl-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/swirl-radio.cjs.entry.js +1 -1
- package/dist/cjs/swirl-search.cjs.entry.js +1 -1
- package/dist/cjs/swirl-shell-layout.cjs.entry.js +7 -7
- package/dist/cjs/swirl-shell-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/swirl-skeleton-text.cjs.entry.js +1 -1
- package/dist/cjs/swirl-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/swirl-switch.cjs.entry.js +2 -2
- package/dist/cjs/swirl-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tab.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-column.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tag.cjs.entry.js +1 -1
- package/dist/cjs/swirl-text.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toast-provider.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toast.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toggle-group.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/swirl-tree-view-item.cjs.entry.js +3 -3
- package/dist/cjs/swirl-tree-view.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/swirl-accordion/swirl-accordion.js +1 -1
- package/dist/collection/components/swirl-accordion-item/swirl-accordion-item.js +1 -1
- package/dist/collection/components/swirl-action-list/swirl-action-list.js +1 -1
- package/dist/collection/components/swirl-action-list-section/swirl-action-list-section.js +1 -1
- package/dist/collection/components/swirl-app-icon/swirl-app-icon.js +1 -1
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.css +36 -7
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.js +55 -2
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.stories.js +13 -0
- package/dist/collection/components/swirl-badge/swirl-badge.js +1 -1
- package/dist/collection/components/swirl-banner/swirl-banner.js +1 -1
- package/dist/collection/components/swirl-box/swirl-box.js +1 -1
- package/dist/collection/components/swirl-button/swirl-button.js +2 -2
- package/dist/collection/components/swirl-button-group/swirl-button-group.js +2 -2
- package/dist/collection/components/swirl-card/swirl-card.js +2 -2
- package/dist/collection/components/swirl-carousel/swirl-carousel.js +1 -1
- package/dist/collection/components/swirl-checkbox/swirl-checkbox.js +1 -1
- package/dist/collection/components/swirl-chip/swirl-chip.js +1 -1
- package/dist/collection/components/swirl-columns/swirl-columns.js +2 -2
- package/dist/collection/components/swirl-dialog/swirl-dialog.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.js +2 -2
- package/dist/collection/components/swirl-form-control/swirl-form-control.js +1 -1
- package/dist/collection/components/swirl-form-group/swirl-form-group.js +1 -1
- package/dist/collection/components/swirl-icon/swirl-icon.js +1 -1
- package/dist/collection/components/swirl-image-grid/swirl-image-grid.js +1 -1
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.js +3 -3
- package/dist/collection/components/swirl-inline-error/swirl-inline-error.js +1 -1
- package/dist/collection/components/swirl-inline-notification/swirl-inline-notification.js +1 -1
- package/dist/collection/components/swirl-inline-status/swirl-inline-status.js +1 -1
- package/dist/collection/components/swirl-link/swirl-link.js +1 -1
- package/dist/collection/components/swirl-menu/swirl-menu.js +2 -2
- package/dist/collection/components/swirl-modal/swirl-modal.js +8 -8
- package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.js +2 -2
- package/dist/collection/components/swirl-pagination/swirl-pagination.js +1 -1
- package/dist/collection/components/swirl-popover/swirl-popover.js +3 -3
- package/dist/collection/components/swirl-progress-indicator/swirl-progress-indicator.js +1 -1
- package/dist/collection/components/swirl-radio/swirl-radio.js +1 -1
- package/dist/collection/components/swirl-resource-list/swirl-resource-list.js +1 -1
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +1 -1
- package/dist/collection/components/swirl-search/swirl-search.js +1 -1
- package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.js +7 -7
- package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.js +2 -2
- package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.js +2 -2
- package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.js +1 -1
- package/dist/collection/components/swirl-spinner/swirl-spinner.js +1 -1
- package/dist/collection/components/swirl-status-indicator/swirl-status-indicator.js +1 -1
- package/dist/collection/components/swirl-switch/swirl-switch.js +2 -2
- package/dist/collection/components/swirl-tab/swirl-tab.js +1 -1
- package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.js +1 -1
- package/dist/collection/components/swirl-table/swirl-table.js +1 -1
- package/dist/collection/components/swirl-table-column/swirl-table-column.js +1 -1
- package/dist/collection/components/swirl-tag/swirl-tag.js +1 -1
- package/dist/collection/components/swirl-text/swirl-text.js +1 -1
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.js +1 -1
- package/dist/collection/components/swirl-toast/swirl-toast.js +1 -1
- package/dist/collection/components/swirl-toast-provider/swirl-toast-provider.js +1 -1
- package/dist/collection/components/swirl-toggle-group/swirl-toggle-group.js +1 -1
- package/dist/collection/components/swirl-toolbar/swirl-toolbar.js +1 -1
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +2 -2
- package/dist/collection/components/swirl-tree-view/swirl-tree-view.js +1 -1
- package/dist/collection/components/swirl-tree-view-item/swirl-tree-view-item.js +3 -3
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-accordion-item.js +1 -1
- package/dist/components/swirl-accordion.js +1 -1
- package/dist/components/swirl-action-list-section.js +1 -1
- package/dist/components/swirl-action-list2.js +1 -1
- package/dist/components/swirl-app-icon.js +1 -1
- package/dist/components/swirl-avatar-group.js +26 -4
- package/dist/components/swirl-badge2.js +1 -1
- package/dist/components/swirl-banner.js +1 -1
- package/dist/components/swirl-box2.js +1 -1
- package/dist/components/swirl-button-group2.js +2 -2
- package/dist/components/swirl-button2.js +2 -2
- package/dist/components/swirl-card.js +2 -2
- package/dist/components/swirl-carousel.js +1 -1
- package/dist/components/swirl-checkbox.js +1 -1
- package/dist/components/swirl-chip.js +1 -1
- package/dist/components/swirl-columns.js +2 -2
- package/dist/components/swirl-dialog.js +1 -1
- package/dist/components/swirl-file-viewer-pdf2.js +2 -2
- package/dist/components/swirl-form-control.js +1 -1
- package/dist/components/swirl-form-group.js +1 -1
- package/dist/components/swirl-icon2.js +1 -1
- package/dist/components/swirl-image-grid-item.js +3 -3
- package/dist/components/swirl-image-grid.js +1 -1
- package/dist/components/swirl-inline-error2.js +1 -1
- package/dist/components/swirl-inline-notification.js +1 -1
- package/dist/components/swirl-inline-status.js +1 -1
- package/dist/components/swirl-link.js +1 -1
- package/dist/components/swirl-menu.js +2 -2
- package/dist/components/swirl-modal.js +8 -8
- package/dist/components/swirl-option-list-item2.js +2 -2
- package/dist/components/swirl-pagination.js +1 -1
- package/dist/components/swirl-popover2.js +3 -3
- package/dist/components/swirl-progress-indicator2.js +1 -1
- package/dist/components/swirl-radio.js +1 -1
- package/dist/components/swirl-resource-list-item2.js +1 -1
- package/dist/components/swirl-resource-list2.js +1 -1
- package/dist/components/swirl-search.js +1 -1
- package/dist/components/swirl-shell-layout.js +7 -7
- package/dist/components/swirl-shell-navigation-item.js +2 -2
- package/dist/components/swirl-skeleton-box2.js +2 -2
- package/dist/components/swirl-skeleton-text.js +1 -1
- package/dist/components/swirl-spinner2.js +1 -1
- package/dist/components/swirl-status-indicator.js +1 -1
- package/dist/components/swirl-switch.js +2 -2
- package/dist/components/swirl-tab-bar2.js +1 -1
- package/dist/components/swirl-tab.js +1 -1
- package/dist/components/swirl-table-column.js +1 -1
- package/dist/components/swirl-table.js +1 -1
- package/dist/components/swirl-tag2.js +1 -1
- package/dist/components/swirl-text2.js +1 -1
- package/dist/components/swirl-thumbnail2.js +1 -1
- package/dist/components/swirl-toast-provider.js +1 -1
- package/dist/components/swirl-toast2.js +1 -1
- package/dist/components/swirl-toggle-group.js +1 -1
- package/dist/components/swirl-toolbar.js +1 -1
- package/dist/components/swirl-tooltip2.js +2 -2
- package/dist/components/swirl-tree-view-item.js +3 -3
- package/dist/components/swirl-tree-view.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-accordion-item.entry.js +1 -1
- package/dist/esm/swirl-accordion.entry.js +1 -1
- package/dist/esm/swirl-action-list-section.entry.js +1 -1
- package/dist/esm/swirl-action-list_2.entry.js +1 -1
- package/dist/esm/swirl-app-icon.entry.js +1 -1
- package/dist/esm/swirl-app-layout_5.entry.js +2 -2
- package/dist/esm/swirl-avatar-group.entry.js +23 -3
- package/dist/esm/swirl-badge.entry.js +1 -1
- package/dist/esm/swirl-banner.entry.js +1 -1
- package/dist/esm/swirl-box.entry.js +1 -1
- package/dist/esm/swirl-button-group.entry.js +2 -2
- package/dist/esm/swirl-button.entry.js +2 -2
- package/dist/esm/swirl-card.entry.js +2 -2
- package/dist/esm/swirl-carousel.entry.js +1 -1
- package/dist/esm/swirl-checkbox.entry.js +1 -1
- package/dist/esm/swirl-chip.entry.js +1 -1
- package/dist/esm/swirl-columns.entry.js +2 -2
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-dialog.entry.js +1 -1
- package/dist/esm/swirl-file-viewer_8.entry.js +2 -2
- package/dist/esm/swirl-form-control.entry.js +1 -1
- package/dist/esm/swirl-form-group.entry.js +1 -1
- package/dist/esm/swirl-icon-arrow-left_4.entry.js +1 -1
- package/dist/esm/swirl-icon-error_3.entry.js +2 -2
- package/dist/esm/swirl-icon-gif_4.entry.js +2 -2
- package/dist/esm/swirl-icon.entry.js +1 -1
- package/dist/esm/swirl-image-grid-item.entry.js +3 -3
- package/dist/esm/swirl-image-grid.entry.js +1 -1
- package/dist/esm/swirl-inline-notification.entry.js +1 -1
- package/dist/esm/swirl-inline-status.entry.js +1 -1
- package/dist/esm/swirl-link.entry.js +1 -1
- package/dist/esm/swirl-menu.entry.js +2 -2
- package/dist/esm/swirl-modal.entry.js +8 -8
- package/dist/esm/swirl-option-list_2.entry.js +2 -2
- package/dist/esm/swirl-pagination.entry.js +1 -1
- package/dist/esm/swirl-popover_2.entry.js +3 -3
- package/dist/esm/swirl-progress-indicator.entry.js +1 -1
- package/dist/esm/swirl-radio.entry.js +1 -1
- package/dist/esm/swirl-search.entry.js +1 -1
- package/dist/esm/swirl-shell-layout.entry.js +7 -7
- package/dist/esm/swirl-shell-navigation-item.entry.js +2 -2
- package/dist/esm/swirl-skeleton-text.entry.js +1 -1
- package/dist/esm/swirl-status-indicator.entry.js +1 -1
- package/dist/esm/swirl-switch.entry.js +2 -2
- package/dist/esm/swirl-tab-bar.entry.js +1 -1
- package/dist/esm/swirl-tab.entry.js +1 -1
- package/dist/esm/swirl-table-column.entry.js +1 -1
- package/dist/esm/swirl-table.entry.js +1 -1
- package/dist/esm/swirl-tag.entry.js +1 -1
- package/dist/esm/swirl-text.entry.js +1 -1
- package/dist/esm/swirl-toast-provider.entry.js +1 -1
- package/dist/esm/swirl-toast.entry.js +1 -1
- package/dist/esm/swirl-toggle-group.entry.js +1 -1
- package/dist/esm/swirl-toolbar.entry.js +1 -1
- package/dist/esm/swirl-tooltip.entry.js +2 -2
- package/dist/esm/swirl-tree-view-item.entry.js +3 -3
- package/dist/esm/swirl-tree-view.entry.js +1 -1
- package/dist/swirl-components/{p-d737cdb8.entry.js → p-01d382ce.entry.js} +1 -1
- package/dist/swirl-components/{p-8cfb4c27.entry.js → p-05b3e8f4.entry.js} +1 -1
- package/dist/swirl-components/{p-8ae94cdf.entry.js → p-0942b645.entry.js} +1 -1
- package/dist/swirl-components/{p-e4a3107b.entry.js → p-09601aee.entry.js} +1 -1
- package/dist/swirl-components/{p-c94f245b.entry.js → p-0e45f7e7.entry.js} +1 -1
- package/dist/swirl-components/{p-8c455ed5.entry.js → p-12f3e759.entry.js} +1 -1
- package/dist/swirl-components/p-142a294d.entry.js +1 -0
- package/dist/swirl-components/{p-dc526133.entry.js → p-1535f26e.entry.js} +1 -1
- package/dist/swirl-components/{p-e3f980f4.entry.js → p-1ad21b37.entry.js} +1 -1
- package/dist/swirl-components/{p-231b51fb.entry.js → p-1fe53061.entry.js} +1 -1
- package/dist/swirl-components/{p-27d01838.entry.js → p-27c68d76.entry.js} +1 -1
- package/dist/swirl-components/p-286e9bf0.entry.js +1 -0
- package/dist/swirl-components/{p-90a325fd.entry.js → p-2f6c0ee1.entry.js} +1 -1
- package/dist/swirl-components/{p-a05ff2d2.entry.js → p-318588e3.entry.js} +1 -1
- package/dist/swirl-components/{p-c4c5132f.entry.js → p-3213a20b.entry.js} +1 -1
- package/dist/swirl-components/p-33cf8621.entry.js +1 -0
- package/dist/swirl-components/{p-ebd25bed.entry.js → p-372d17fc.entry.js} +1 -1
- package/dist/swirl-components/{p-461606eb.entry.js → p-38e65d07.entry.js} +1 -1
- package/dist/swirl-components/{p-d30cf443.entry.js → p-3cea314d.entry.js} +1 -1
- package/dist/swirl-components/p-48f115cf.entry.js +1 -0
- package/dist/swirl-components/{p-dd027257.entry.js → p-4bc65832.entry.js} +1 -1
- package/dist/swirl-components/{p-e9960b72.entry.js → p-4dd68258.entry.js} +1 -1
- package/dist/swirl-components/{p-8f10796c.entry.js → p-4e070fd9.entry.js} +1 -1
- package/dist/swirl-components/{p-9993ccc7.entry.js → p-4fe86f8d.entry.js} +1 -1
- package/dist/swirl-components/{p-3586bb5d.entry.js → p-50b266f4.entry.js} +1 -1
- package/dist/swirl-components/{p-4d26f701.entry.js → p-512fd09e.entry.js} +1 -1
- package/dist/swirl-components/{p-99c7a887.entry.js → p-568a408c.entry.js} +1 -1
- package/dist/swirl-components/{p-0195eb62.entry.js → p-589cf8e1.entry.js} +1 -1
- package/dist/swirl-components/p-5ddd8784.entry.js +1 -0
- package/dist/swirl-components/{p-0e9566ce.entry.js → p-61db9ac1.entry.js} +1 -1
- package/dist/swirl-components/{p-23de03bf.entry.js → p-6324baae.entry.js} +1 -1
- package/dist/swirl-components/{p-bcb447f6.entry.js → p-69a5b26e.entry.js} +1 -1
- package/dist/swirl-components/{p-d6a034a4.entry.js → p-77687b1b.entry.js} +1 -1
- package/dist/swirl-components/{p-d73ae256.entry.js → p-7a02f00c.entry.js} +1 -1
- package/dist/swirl-components/p-7dd15164.entry.js +1 -0
- package/dist/swirl-components/{p-64e1eae5.entry.js → p-8731153c.entry.js} +1 -1
- package/dist/swirl-components/{p-0fd91f04.entry.js → p-9c85ce12.entry.js} +1 -1
- package/dist/swirl-components/{p-66f1fe8f.entry.js → p-a1130d02.entry.js} +1 -1
- package/dist/swirl-components/{p-07a15bf5.entry.js → p-a9c611fd.entry.js} +1 -1
- package/dist/swirl-components/{p-6fc2be1a.entry.js → p-aa358eea.entry.js} +1 -1
- package/dist/swirl-components/{p-2a5bf88c.entry.js → p-b26c3e30.entry.js} +1 -1
- package/dist/swirl-components/{p-0fea2a77.entry.js → p-b693db83.entry.js} +1 -1
- package/dist/swirl-components/{p-cb91ba7b.entry.js → p-b89157d2.entry.js} +1 -1
- package/dist/swirl-components/{p-2815d571.entry.js → p-ba85be6a.entry.js} +1 -1
- package/dist/swirl-components/p-c600b2e9.entry.js +1 -0
- package/dist/swirl-components/{p-6d27d8c5.entry.js → p-c97c7469.entry.js} +1 -1
- package/dist/swirl-components/{p-7ad5e8c9.entry.js → p-d7a40a25.entry.js} +1 -1
- package/dist/swirl-components/{p-22549f63.entry.js → p-da776a4e.entry.js} +1 -1
- package/dist/swirl-components/{p-5973f367.entry.js → p-e0702af4.entry.js} +1 -1
- package/dist/swirl-components/{p-e8b776d4.entry.js → p-e1007989.entry.js} +1 -1
- package/dist/swirl-components/p-e5d66dde.entry.js +1 -0
- package/dist/swirl-components/{p-8b5ac132.entry.js → p-ee1e9028.entry.js} +1 -1
- package/dist/swirl-components/{p-c4d35951.entry.js → p-efd6668a.entry.js} +1 -1
- package/dist/swirl-components/{p-c8de8af2.entry.js → p-f0374033.entry.js} +1 -1
- package/dist/swirl-components/{p-259dc573.entry.js → p-f507bc1c.entry.js} +1 -1
- package/dist/swirl-components/{p-c36f68ed.entry.js → p-fb4cf305.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-avatar-group/swirl-avatar-group.d.ts +5 -0
- package/dist/types/components/swirl-avatar-group/swirl-avatar-group.stories.d.ts +1 -0
- package/dist/types/components.d.ts +10 -0
- package/package.json +1 -1
- package/vscode-data.json +12 -0
- package/dist/swirl-components/p-070f920f.entry.js +0 -1
- package/dist/swirl-components/p-20a82be3.entry.js +0 -1
- package/dist/swirl-components/p-3ae0724a.entry.js +0 -1
- package/dist/swirl-components/p-9916ad75.entry.js +0 -1
- package/dist/swirl-components/p-a571dcb2.entry.js +0 -1
- package/dist/swirl-components/p-b328d762.entry.js +0 -1
- package/dist/swirl-components/p-e3a2d152.entry.js +0 -1
- package/dist/swirl-components/p-e464a124.entry.js +0 -1
|
@@ -71,7 +71,7 @@ const SwirlToolbar = class {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (index.h(index.Host, { key: '
|
|
74
|
+
return (index.h(index.Host, { key: 'b4d26b328470b945d344895908b1c5c50c833d17' }, index.h("swirl-stack", { key: '2d47b3300ea9398264e18fc197e1f15d759a05a3', align: "center", "aria-label": this.label, "aria-orientation": this.orientation, role: "toolbar", onKeyDown: this.onKeyDown, orientation: this.orientation, spacing: "8", wrap: true }, index.h("slot", { key: '922353e031756d3d4b2c89f2107c4048437fe89a' }))));
|
|
75
75
|
}
|
|
76
76
|
get el() { return index.getElement(this); }
|
|
77
77
|
};
|
|
@@ -113,7 +113,7 @@ const SwirlTooltip = class {
|
|
|
113
113
|
"tooltip--active": this.active,
|
|
114
114
|
"tooltip--visible": this.visible,
|
|
115
115
|
});
|
|
116
|
-
return (index.h(index.Host, { key: '
|
|
116
|
+
return (index.h(index.Host, { key: '1ab6f241602a99b2de2cb8028b5dd8a05d37ed3f', onKeydown: this.onKeydown }, index.h("span", { key: '9529d1fca5ce68aa7d9981f1c003d4e9654c90c7', class: className }, index.h("span", { key: '07606dd0778d20d989f695356de71ab4c94550ce', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.hide, onClick: this.hide, onFocusin: this.show }, index.h("slot", { key: 'd8145e425e2ec5630accb88ee7e660a2e63269cc' })), index.h("span", { key: 'aa10860e427cba38873101a7222173e4e323d7e0', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
|
|
117
117
|
top: Boolean(this.actualPosition)
|
|
118
118
|
? `${this.actualPosition?.y}px`
|
|
119
119
|
: "",
|
|
@@ -121,7 +121,7 @@ const SwirlTooltip = class {
|
|
|
121
121
|
? `${this.actualPosition?.x}px`
|
|
122
122
|
: "",
|
|
123
123
|
position: this.positioning,
|
|
124
|
-
} }, this.visible && (index.h("span", { key: '
|
|
124
|
+
} }, this.visible && (index.h("span", { key: '79b2d4e54133935e433f28f6c00848ea36206179', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, index.h("span", { key: '53c0eb8a14932a811900e58534824f231209e672', class: "tooltip__content", innerHTML: this.content }))), index.h("span", { key: '7391938a87a02650214bafa226892261ddf4e1e0', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
|
|
125
125
|
...this.arrowStyles,
|
|
126
126
|
visibility: this.visible ? "visible" : "hidden",
|
|
127
127
|
} })))));
|
|
@@ -337,17 +337,17 @@ const SwirlTreeViewItem = class {
|
|
|
337
337
|
"tree-view-item--disable-drag": this.disableDrag,
|
|
338
338
|
"tree-view-item--has-tags": hasTags,
|
|
339
339
|
});
|
|
340
|
-
return (index.h(index.Host, { key: '
|
|
340
|
+
return (index.h(index.Host, { key: 'f571e0aa5fab77a62b4b6a63e1226011b61202ce', id: this.itemId, role: semantics === "tree" ? "none" : "listitem" }, index.h(Tag, { key: 'a13caedc50c5df33f7674c93696a141c019a0be4', class: className, role: semantics === "tree" ? "none" : undefined }, index.h("a", { key: 'e9a32fadc3d8d07e757d42f54f8e9e44976e2b4a', "aria-current": this.active ? "page" : undefined, "aria-expanded": !hasChildren || semantics !== "tree"
|
|
341
341
|
? undefined
|
|
342
342
|
: String(expanded), "aria-level": semantics === "tree" ? this.level + 1 : undefined, "aria-owns": hasChildren && semantics === "tree"
|
|
343
343
|
? `${this.itemId}-children`
|
|
344
|
-
: undefined, "aria-selected": semantics === "tree" ? String(this.selected) : undefined, class: "tree-view-item__link", href: this.href, onFocus: this.onFocus, onKeyDown: this.onKeyDown, ref: (el) => (this.link = el), role: semantics === "tree" ? "treeitem" : undefined, tabIndex: tabIndex }, !this.disableDrag && this.enableDragDrop && (index.h("span", { key: '
|
|
344
|
+
: undefined, "aria-selected": semantics === "tree" ? String(this.selected) : undefined, class: "tree-view-item__link", href: this.href, onFocus: this.onFocus, onKeyDown: this.onKeyDown, ref: (el) => (this.link = el), role: semantics === "tree" ? "treeitem" : undefined, tabIndex: tabIndex }, !this.disableDrag && this.enableDragDrop && (index.h("span", { key: '943ebb467ca02496363deccd1757eaa4878680ab', class: "tree-view-item__drag-handle" }, index.h("swirl-icon-drag-handle", { key: '00c15f06df99116176b9759abb86794a5306aa1d', size: 20 }))), this.expandable && semantics === "tree" && (index.h("span", { key: 'dbdd4b084c23f48caee3245a3a2f414cba1fcce1', class: "tree-view-item__toggle-icon" }, hasChildren && (index.h(index.Fragment, { key: '48b76c4675d392b25ad97d9e73f0911f43fc6918' }, expanded ? (index.h("swirl-icon-expand-more", { onClick: this.onClickCollapse, size: 24 })) : (index.h("swirl-icon-chevron-right", { onClick: this.onClickExpand, size: 24 })))))), Boolean(this.icon) && (index.h(index.Fragment, { key: 'd98c931c4f9db219e70fd31365304808c53808da' }, index.h("span", { key: 'c041476e9a1940dcc3c2c4edccde824e0d6f9c81', class: "tree-view-item__icon" }, iconIsEmoji ? (this.icon) : (index.h("swirl-icon", { glyph: this.icon, size: 24, color: this.iconColor }))))), index.h("span", { key: '92c600e90332b236742f47ca8ba190e2be704a00', class: "tree-view-item__label" }, this.label), index.h("span", { key: '143e4df9520c3be93508e1e63c5cdad62f26dc90', class: "tree-view-item__tags" }, index.h("slot", { key: 'e8a16506b1c9fa9bdc2a0dab23c042efee9373dc', name: "tags" }))), index.h("ul", { key: '95d6d7047fa12c5a0fc51848457db871f5ec7abe', "aria-label": this.label, class: `tree-view-item__children ${shouldShowChildrenDropZone
|
|
345
345
|
? "tree-view-item__children--drop-zone"
|
|
346
346
|
: ""}`, id: `${this.itemId}-children`, ref: (el) => (this.childList = el), role: semantics === "tree" ? "group" : undefined, style: {
|
|
347
347
|
display: (!expanded || !hasChildren) && !shouldShowChildrenDropZone
|
|
348
348
|
? "none"
|
|
349
349
|
: undefined,
|
|
350
|
-
} }, index.h("slot", { key: '
|
|
350
|
+
} }, index.h("slot", { key: '556e0b1487930406f6179a0d50d2ef0c832e2e45' })))));
|
|
351
351
|
}
|
|
352
352
|
get el() { return index.getElement(this); }
|
|
353
353
|
};
|
|
@@ -332,7 +332,7 @@ const SwirlTreeView = class {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
render() {
|
|
335
|
-
return (index.h(index.Host, { key: '
|
|
335
|
+
return (index.h(index.Host, { key: '7b4136fd912ca7990b5e55f1575421ec3672dc8f' }, this.enableDragDrop && (index.h("swirl-visually-hidden", { key: '2196f8f992789a4fda56d48e236d602db85035f7' }, index.h("span", { key: 'd49c50de8d0c0db64ee5a97c1ccdcd67f8d9ad84', "aria-live": "assertive" }, this.liveRegionText))), index.h("ul", { key: '8835b6dccdf5550788c877c9f8795c440420e540', "aria-label": this.label, class: "tree-view", onFocusin: this.onFocus, onFocusout: this.onBlur, role: this.semantics === "tree" ? "tree" : undefined, ref: (el) => (this.listElement = el), tabIndex: -1 }, index.h("slot", { key: 'ac46b0399f32189de2372e3fd7c6c108b28a46b1', onSlotchange: this.onSlotChange }))));
|
|
336
336
|
}
|
|
337
337
|
get el() { return index.getElement(this); }
|
|
338
338
|
static get watchers() { return {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"components/swirl-text-input/swirl-text-input.js",
|
|
10
10
|
"components/swirl-autocomplete/swirl-autocomplete.js",
|
|
11
11
|
"components/swirl-avatar/swirl-avatar.js",
|
|
12
|
+
"components/swirl-avatar-group/swirl-avatar-group.js",
|
|
12
13
|
"components/swirl-badge/swirl-badge.js",
|
|
13
14
|
"components/swirl-banner/swirl-banner.js",
|
|
14
15
|
"components/swirl-box/swirl-box.js",
|
|
@@ -66,7 +67,6 @@
|
|
|
66
67
|
"components/swirl-action-list/swirl-action-list.js",
|
|
67
68
|
"components/swirl-action-list-section/swirl-action-list-section.js",
|
|
68
69
|
"components/swirl-app-icon/swirl-app-icon.js",
|
|
69
|
-
"components/swirl-avatar-group/swirl-avatar-group.js",
|
|
70
70
|
"components/swirl-carousel-slide/swirl-carousel-slide.js",
|
|
71
71
|
"components/swirl-color-input/swirl-color-input.js",
|
|
72
72
|
"components/swirl-console-layout/swirl-console-layout.js",
|
|
@@ -36,7 +36,7 @@ export class SwirlAccordion {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '7f8aac6430364eac4124b89ac4fecdc73e82c8a3' }, h("slot", { key: '374b1d722218716869143060496ace17fd84b46d' })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "swirl-accordion"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,7 +54,7 @@ export class SwirlAccordionItem {
|
|
|
54
54
|
const className = classnames("accordion-item", {
|
|
55
55
|
"accordion-item--expanded": this.expanded,
|
|
56
56
|
});
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: 'abba07ec2f943c86ff88aed65ea1c10d170e3a55' }, h("div", { key: '4cd9a307c2d01266220cbd3df1b27afa401fdefa', class: className }, h(HeadingTag, { key: '2271f5ee54750532baecbbc34da135fa278461d8', class: "accordion-item__heading" }, h("button", { key: 'ab13edffd0c9bb073473d16a0e3838ee04678a15', "aria-controls": this.itemId, "aria-expanded": String(this.expanded), class: "accordion-item__toggle", disabled: this.disabled, id: this.headingId, onClick: this.onHeadingClick, type: "button" }, h("span", { key: '3fa93043d6b8c929b37ced1d779957ec40ff3e02', class: "accordion-item__toggle-text" }, this.heading, this.description && (h("swirl-text", { key: '1470c3ce33a835bb53fd8759b82c26608d018281', as: "span", color: "subdued", size: "sm" }, this.description))), h("span", { key: 'a292fa27389bf972b2b9b7d5d4f6e1d9962f4919', class: "accordion-item__icon" }, !this.expanded && (h("swirl-icon", { key: 'e9903a0728bcd15896d9586a107ea88f1197f1df', glyph: "chevron-right", size: 20 })), this.expanded && (h("swirl-icon", { key: '8cb634c1bcf0c65daaabad79394183ac040237aa', glyph: "expand-more", size: 20 }))))), h("div", { key: 'b0693a31cf7d608b542ca10a13cf6a6b36a6774b', "aria-labelledby": this.headingId, class: "accordion-item__content", id: this.itemId, role: "region" }, h("slot", { key: '95c3a5da8e122291bf06f2fa691b38a1dd53bfb6' })))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "swirl-accordion-item"; }
|
|
60
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -89,7 +89,7 @@ export class SwirlActionList {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '162314574b7f7192fcef7636bea795bcba95ae82' }, h("div", { key: '67b71217628367b29b108d8c67d3ce7186849fed', "aria-orientation": "vertical", class: "action-list", onFocusout: this.isInsidePopover ? undefined : this.onFocusOut, onFocus: this.isInsidePopover ? undefined : this.onFocus, onKeyDown: this.onKeyDown, part: "action-list", ref: (el) => (this.container = el), role: "menu" }, h("slot", { key: '9731e7c3223b90e34c83dc6b31b95ef342b51961', onSlotchange: this.setSectionSeparator }))));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "swirl-action-list"; }
|
|
95
95
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class SwirlActionListSection {
|
|
|
9
9
|
this.hasSeparator = false;
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '6e93266c1a1debf29380963f64c6f853d1e528d4' }, this.hasSeparator && (h("swirl-separator", { key: 'f264ee771b77f2c363bf2fc64c0dcda922c36649', spacing: this.separatorSpacing })), h("div", { key: '702424f77b73f0fce4510715b5a8fe70b2219926', "aria-labelledby": "label", class: "action-list-section", role: "group" }, h("span", { key: '2928fcfc41ae7e9795b757090eeaec491b7ac63c', class: "action-list-section__label", id: "label", part: "action-list-section__label" }, this.label), h("swirl-stack", { key: 'c637246f7ae9e3588d990685baccc4253ea7d15e', spacing: this.spacing, align: "stretch" }, h("slot", { key: '988b050cdb85bf8d41cca165b94f51018ceb6dc4' })))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "swirl-action-list-section"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,7 +30,7 @@ export class SwirlAppIcon {
|
|
|
30
30
|
const className = classnames("app-icon", {
|
|
31
31
|
"app-icon--has-icon": showIcon || showFallbackIcon,
|
|
32
32
|
});
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'ebf22de161e63b6a95a668c83683f1ed4ed9fb3d' }, h("span", { key: '7998c7b113f48ad715fe897f3e547790de5b8e51', class: className }, showImage && (h("img", { key: '685f743ace846d014058b6c40a8b3852f7108367', alt: "", height: "256", ref: this.onImageElementUpdate, src: this.src, width: "256" })), showIcon && (h("span", { key: '2583c7ac995dd3b239258dbc21eb4e229ff9edf0', class: "app-icon__icon", innerHTML: this.icon })))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "swirl-app-icon"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,23 +8,26 @@
|
|
|
8
8
|
|
|
9
9
|
.avatar-group {
|
|
10
10
|
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.avatar-group--diagonal-stack {
|
|
11
14
|
display: inline-grid;
|
|
12
15
|
grid-template-rows: repeat(9, 1fr);
|
|
13
16
|
grid-template-columns: repeat(9, 1fr);
|
|
14
17
|
}
|
|
15
18
|
|
|
16
|
-
.avatar-group ::slotted(*:first-of-type) {
|
|
19
|
+
.avatar-group--diagonal-stack ::slotted(*:first-of-type) {
|
|
17
20
|
z-index: 1;
|
|
18
21
|
display: inline-flex;
|
|
19
|
-
box-shadow: 0 0 0 0.25rem var(--swirl-avatar-group-border-color);
|
|
20
22
|
border-radius: 50%;
|
|
23
|
+
box-shadow: 0 0 0 0.25rem var(--swirl-avatar-group-border-color);
|
|
21
24
|
grid-column-start: 1;
|
|
22
25
|
grid-column-end: 7;
|
|
23
26
|
grid-row-start: 4;
|
|
24
27
|
grid-row-end: 10;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
.avatar-group ::slotted(*:nth-of-type(2)) {
|
|
30
|
+
.avatar-group--diagonal-stack ::slotted(*:nth-of-type(2)) {
|
|
28
31
|
z-index: 0;
|
|
29
32
|
display: inline-flex;
|
|
30
33
|
border-radius: 50%;
|
|
@@ -34,11 +37,37 @@
|
|
|
34
37
|
grid-row-end: 7;
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
.avatar-group--diagonal-stack ::slotted(*:nth-of-type(n + 3)) {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.avatar-group--diagonal-stack .avatar-group__badge {
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: calc(-1 * var(--s-space-4));
|
|
47
|
+
bottom: calc(-1 * var(--s-space-4));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.avatar-group--horizontal-stack {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.avatar-group--horizontal-stack .avatar-group__badge {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.avatar-group--horizontal-stack ::slotted(*) {
|
|
59
|
+
z-index: 1;
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
box-shadow: 0 0 0 0.125rem var(--swirl-avatar-group-border-color);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.avatar-group--horizontal-stack ::slotted(*:not(:first-of-type)) {
|
|
66
|
+
margin-left: calc(-1 * var(--s-space-4));
|
|
67
|
+
}
|
|
68
|
+
|
|
37
69
|
.avatar-group__badge {
|
|
38
|
-
|
|
39
|
-
z-index: 2;
|
|
40
|
-
right: calc(-1 * var(--s-space-4));
|
|
41
|
-
bottom: calc(-1 * var(--s-space-4));
|
|
70
|
+
z-index: 3;
|
|
42
71
|
display: inline-flex;
|
|
43
72
|
width: 1.5rem;
|
|
44
73
|
height: 1.5rem;
|
|
@@ -4,6 +4,16 @@ import classnames from "classnames";
|
|
|
4
4
|
* @slot slot - Your avatar components
|
|
5
5
|
*/
|
|
6
6
|
export class SwirlAvatarGroup {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.layout = "diagonal";
|
|
9
|
+
this.avatars = [];
|
|
10
|
+
this.onSlotChange = (event) => {
|
|
11
|
+
this.avatars = event.target
|
|
12
|
+
.assignedElements()
|
|
13
|
+
.filter((el) => el.tagName.toLowerCase() === "swirl-avatar");
|
|
14
|
+
this.layOutAvatars();
|
|
15
|
+
};
|
|
16
|
+
}
|
|
7
17
|
componentDidLoad() {
|
|
8
18
|
this.forceBadgeProps();
|
|
9
19
|
}
|
|
@@ -17,12 +27,24 @@ export class SwirlAvatarGroup {
|
|
|
17
27
|
badge?.setAttribute("size", "s");
|
|
18
28
|
}
|
|
19
29
|
}
|
|
30
|
+
layOutAvatars() {
|
|
31
|
+
if (this.avatars.length <= 2) {
|
|
32
|
+
this.avatars.forEach((avatar) => {
|
|
33
|
+
avatar.style.zIndex = "";
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.avatars.forEach((avatar, index) => {
|
|
38
|
+
avatar.style.zIndex = String(this.avatars.length - index);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
20
42
|
render() {
|
|
21
|
-
const className = classnames("avatar-group", {
|
|
43
|
+
const className = classnames("avatar-group", `avatar-group--${this.layout}-stack`, {
|
|
22
44
|
"avatar-group--has-badge": Boolean(this.badge),
|
|
23
45
|
});
|
|
24
46
|
const badgeClassName = classnames("avatar-group__badge");
|
|
25
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '7997c0302195981387db42c03d7b980e03c49ffe' }, h("div", { key: 'ca9db2d551abbe86231b346e170e0938b106805f', class: className, role: "group" }, h("slot", { key: '63d584d88c3367de3c2cbbdcd718bb4577eb7dca', onSlotchange: this.onSlotChange }), this.badge && (h("span", { key: '190a05fb70a2b0d85b1cc3382755a25255f50386', class: badgeClassName, innerHTML: this.badge, ref: (el) => (this.badgeEl = el) })))));
|
|
26
48
|
}
|
|
27
49
|
static get is() { return "swirl-avatar-group"; }
|
|
28
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +78,38 @@ export class SwirlAvatarGroup {
|
|
|
56
78
|
"getter": false,
|
|
57
79
|
"setter": false,
|
|
58
80
|
"reflect": false
|
|
81
|
+
},
|
|
82
|
+
"layout": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"attribute": "layout",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "SwirlAvatarGroupLayout",
|
|
88
|
+
"resolved": "\"diagonal\" | \"horizontal\"",
|
|
89
|
+
"references": {
|
|
90
|
+
"SwirlAvatarGroupLayout": {
|
|
91
|
+
"location": "local",
|
|
92
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-avatar-group/swirl-avatar-group.tsx",
|
|
93
|
+
"id": "src/components/swirl-avatar-group/swirl-avatar-group.tsx::SwirlAvatarGroupLayout"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": true,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
105
|
+
"reflect": false,
|
|
106
|
+
"defaultValue": "\"diagonal\""
|
|
59
107
|
}
|
|
60
108
|
};
|
|
61
109
|
}
|
|
110
|
+
static get states() {
|
|
111
|
+
return {
|
|
112
|
+
"avatars": {}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
62
115
|
}
|
|
@@ -32,3 +32,16 @@ export const SwirlAvatarGroup = Template.bind({});
|
|
|
32
32
|
SwirlAvatarGroup.args = {
|
|
33
33
|
badge: `<swirl-badge aria-label="3 new messages" label="3"></swirl-badge>`,
|
|
34
34
|
};
|
|
35
|
+
const TemplateWithHorizontalLayout = (args) => {
|
|
36
|
+
const element = generateStoryElement("swirl-avatar-group", args);
|
|
37
|
+
element.innerHTML = `
|
|
38
|
+
<swirl-avatar label="Jane Doe" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=a" size="3xs"></swirl-avatar>
|
|
39
|
+
<swirl-avatar label="John Doe" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=b" size="3xs"></swirl-avatar>
|
|
40
|
+
<swirl-avatar label="John Doe" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=c" size="3xs"></swirl-avatar>
|
|
41
|
+
`;
|
|
42
|
+
return element;
|
|
43
|
+
};
|
|
44
|
+
export const WithHorizontalLayout = TemplateWithHorizontalLayout.bind({});
|
|
45
|
+
WithHorizontalLayout.args = {
|
|
46
|
+
layout: "horizontal",
|
|
47
|
+
};
|
|
@@ -10,7 +10,7 @@ export class SwirlBadge {
|
|
|
10
10
|
const className = classnames("badge", `badge--intent-${this.intent}`, `badge--size-${this.size}`, `badge--variant-${this.variant}`, {
|
|
11
11
|
"badge--has-icon": this.icon,
|
|
12
12
|
});
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '6b83b0188fafee31f864047bc0b16f78a8b8c4f0', role: "status" }, h("span", { key: '663d7ffd7c164512488d6eef9ca198cf1309efba', class: className, part: "badge" }, this.icon && h("span", { key: 'f57ad0add763c7e402df4a071e1c33979605750c', class: "badge__icon", innerHTML: this.icon }), this.icon === undefined && this.variant !== "dot" ? (h("span", { class: "badge__label" }, this.label)) : (h(Fragment, null, this.icon === undefined && (h("span", { class: "badge__label" }, "\u00A0")), h("swirl-visually-hidden", null, this.label))))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "swirl-badge"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class SwirlBanner {
|
|
|
48
48
|
const className = classnames("banner", `banner--intent-${this.intent}`, `banner--size-${this.size}`, {
|
|
49
49
|
"banner--has-icon": showIcon,
|
|
50
50
|
});
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '11ecf5b273bb2636d5d3e779fc91df1f7b10a8e0' }, h("div", { key: 'bc5e53f04ad5e80defe407340d191d1951a10123', "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, h("div", { key: '86b3950336dca8b1d28994d1fb18113a4b4c421a', class: "banner__content", id: "content", part: "banner__content" }, showIcon && (h("span", { key: '5716e25d171cc28861459258e257c8a821ebc56d', "aria-hidden": "true", class: "banner__icon", innerHTML: icon, ref: (el) => (this.iconEl = el) })), h("span", { key: 'a5a5019667573c14dde87041e475481a7edf6d5e', class: "banner__text" }, this.content)), showControls && (h("div", { key: 'cf8632f83dc502caba7f10710a353d1a34f30493', class: "banner__controls" }, this.actionLabel && (h("button", { key: '166c562828b381640c29783ac8b275f49b088cad', class: "banner__action-button", onClick: this.onAction, part: "banner__action-button", type: "button" }, this.actionLabel)), this.dismissable && (h("button", { key: 'b1247a38ea5f7592d7c12f0919360041ea9061b8', "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, part: "banner__dismiss-button", ref: (el) => (this.dismissButtonEl = el), type: "button" }, h("swirl-icon-close", { key: '12524ce0998e451f9260924e2a5226ddee4ade43' }))))))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "swirl-banner"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -87,7 +87,7 @@ export class SwirlBox {
|
|
|
87
87
|
"box--scrolled-to-top": this.scrollState.scrolledToTop,
|
|
88
88
|
"box--scrolled-to-bottom": this.scrollState.scrolledToBottom,
|
|
89
89
|
});
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: 'e9eeaa11b7a04b59744d8cf369855874fb8eab02', class: className, onScroll: this.onScroll, style: styles }, h("slot", { key: '0d5e86f34e2efb3dd7f9bfaf24a3a18578e6f507' })));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "swirl-box"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,9 +76,9 @@ export class SwirlButton {
|
|
|
76
76
|
"button--pressed": this.pressed,
|
|
77
77
|
});
|
|
78
78
|
const Tag = isLink ? "a" : "button";
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '49d43aafbfefa72d23f1fb0bec48dcb7333d0610', style: { pointerEvents: this.disabled ? "none" : "" } }, h(Tag, { key: 'a7cf0739cf899b6736693ec45604bf06960f42be', "aria-controls": this.swirlAriaControls, "aria-current": this.swirlAriaCurrent, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled && !isLink ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, "aria-label": ariaLabel, "aria-pressed": this.pressed ? "true" : undefined, class: className, disabled: isLink ? undefined : this.disabled, download: isLink ? undefined : this.download, form: isLink ? undefined : this.form, href: this.href, name: isLink ? undefined : this.name, ref: (el) => (this.buttonEl = el), target: isLink ? this.target : undefined, type: isLink ? undefined : this.type, value: isLink ? undefined : this.value, style: this.inheritFontSize
|
|
80
80
|
? { fontSize: "inherit", lineHeight: "inherit" }
|
|
81
|
-
: {} }, Boolean(this.icon) && (h("span", { key: '
|
|
81
|
+
: {} }, Boolean(this.icon) && (h("span", { key: 'a48af7d78a53bb7efd90df4f8df886a7a8c59dc8', class: "button__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), !Boolean(this.icon) && (h("span", { key: 'c3c70eab6feabaa93cf1599e662aa37706f52757', class: "button__icon", ref: (el) => (this.iconEl = el) }, h("slot", { key: '69a451895b40ee9decfd817e9f2d015c4a76dde6', name: "icon" }))), !hideLabel && h("span", { key: 'cd1669aeccd8cc518b252a48e95b7e8c978b2548', class: "button__label" }, this.label), hasTag && (h("span", { key: '40de97546408ff28cd03b4cfd6e216044ea89088', class: "button__tag" }, h("slot", { key: 'e69c28a98e3bdc1d6c8c6d5f6fef04330b9e64f7', name: "tag" }))), hasTrailingSlot && (h("div", { key: '6306ba16fbf752aa11c34a3aa3a190c8094d79fc', class: "button__trailing-slot" }, h("slot", { key: '4d17a8b0f819b95ae7a0908bff23648280a84dce', name: "trailing" }))))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "swirl-button"; }
|
|
84
84
|
static get encapsulation() { return "scoped"; }
|
|
@@ -10,11 +10,11 @@ export class SwirlButtonGroup {
|
|
|
10
10
|
const className = classnames("button-group", {
|
|
11
11
|
"button-group--segmented": this.segmented,
|
|
12
12
|
});
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '1c5dcaf521e8ee19f572f03e428f6f6297106ae0' }, h("swirl-stack", { key: '78073a9c28c55e16c68c9f32f4573e18f08d8822', align: this.orientation === "vertical" && this.stretch
|
|
14
14
|
? "stretch"
|
|
15
15
|
: "start", class: className, justify: this.orientation === "horizontal" && this.stretch
|
|
16
16
|
? "stretch"
|
|
17
|
-
: "start", orientation: this.orientation, role: "group", spacing: spacing, wrap: this.wrap }, h("slot", { key: '
|
|
17
|
+
: "start", orientation: this.orientation, role: "group", spacing: spacing, wrap: this.wrap }, h("slot", { key: '4936fecbd49610aec18174458b1cd7ef42723eba' }))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "swirl-button-group"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,9 +70,9 @@ export class SwirlCard {
|
|
|
70
70
|
"card--interactive": this.interactive || this.href,
|
|
71
71
|
"card--is--borderless": this.isBorderless,
|
|
72
72
|
});
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: '5bfcbd19458056cb51a4c4f3ed715a14a7cd6733', styles: { height: this.height } }, h(Tag, { key: 'efb06d77947f2318c2e74d32b7e47c7d7b3110a4', "aria-label": this.swirlAriaLabel, "aria-labelledby": this.swirlAriaLabelledby, class: className, href: this.href, rel: Boolean(this.href) && this.linkTarget === "_blank"
|
|
74
74
|
? "noreferrer"
|
|
75
|
-
: undefined, style: styles, target: this.linkTarget }, h("div", { key: '
|
|
75
|
+
: undefined, style: styles, target: this.linkTarget }, h("div", { key: 'd904c27cc0be54ca742da0724082f5054f865cfe', class: "card__image", style: { aspectRatio: this.imageAspectRatio } }, h("slot", { key: 'e961923314ced9e3328fc524c5482711f4d27b74', name: "image" })), h("div", { key: '5df1afc2ea9ea939346c8de9c0175767d8f516c8', class: "card__floating-controls" }, h("slot", { key: '7edc1118e0bdd548a4f2d7299b70b48574e0b00e', name: "floating-controls" })), h("div", { key: 'f11335531fada3ae2b3a5ab215b5a1a825b314cf', class: "card__body", style: bodyStyles }, h("div", { key: '17de1d4711bef1fa8f14061e8118f6a0105cbf3d', class: "card__content" }, h("slot", { key: '4eb7af808aaaf1f762089ed98f231cea57d10b93', name: "content" }))))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "swirl-card"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -154,7 +154,7 @@ export class SwirlCarousel {
|
|
|
154
154
|
"carousel--is-at-start": this.isAtStart,
|
|
155
155
|
"carousel--is-at-end": this.isAtEnd,
|
|
156
156
|
});
|
|
157
|
-
return (h(Host, { key: '
|
|
157
|
+
return (h(Host, { key: 'c5903f0c46a1eaa6129e2a1b73abee0db5bcd9ed', "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, h("div", { key: 'a1dfb1a45c399559d25df72add7723b231b5e6b8', class: className }, this.isScrollable && !this.isAtStart && (h("swirl-button", { key: 'f9e9dd3bb8162550accfcd6b653a3737355f93d4', class: "carousel__previous-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: true, variant: "floating" })), this.isScrollable && !this.isAtEnd && (h("swirl-button", { key: 'bc30a83c74273b4b5832338422a95d91e3e67321', class: "carousel__next-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-forward></swirl-icon-arrow-forward>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: true, variant: "floating" })), h("div", { key: 'cb596e62b8517b2d6ff791032b41608c6a5b25be', "aria-live": "polite", class: "carousel__slides", style: slidesStyles, onScroll: this.onScroll, ref: (el) => (this.slidesContainer = el) }, h("slot", { key: '0fab582bd3650e63d512e934d03183b3ae9b5901', onSlotchange: this.onSlotChange })))));
|
|
158
158
|
}
|
|
159
159
|
static get is() { return "swirl-carousel"; }
|
|
160
160
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class SwirlCheckbox {
|
|
|
37
37
|
"checkbox--invalid": this.invalid,
|
|
38
38
|
"checkbox--unchecked": unchecked,
|
|
39
39
|
});
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'acf777ca7224f41f607bf84f193ecb05881f1fc1', style: { width: this.variant === "card" ? "100%" : undefined } }, h("label", { key: 'c3a3abc5f9e87d3665ad7c797d44a2acd34c8ee5', class: className, htmlFor: this.inputId }, h("span", { key: '5e49492e10519c0f2f4f6ed187b318bca8316dab', class: "checkbox__control" }, h("swirl-visually-hidden", { key: '06217d12dbc1ea25117e421d8e0e1cebd392f599' }, h("input", { key: '455840493b5e9b60aace6f4a0e2de7e5cece2e78', "aria-checked": ariaCheckedLabel, "aria-describedby": this.swirlAriaDescribedby, "aria-invalid": ariaInvalid, "aria-label": this.swirlAriaLabel, checked: checked, class: "checkbox__input", disabled: this.disabled, id: this.inputId, indeterminate: indeterminate, name: this.inputName, onChange: this.onChange, type: "checkbox", value: this.value })), h("span", { key: '8b69f9ae79e957c52066cd80cf0da11fe5613ed2', "aria-hidden": "true", class: "checkbox__box" }, h("span", { key: 'cca029718dd23f8c2e0637ce4f44c24b4fb0b289', class: "checkbox__icon" }, checked && h("swirl-icon-check-strong", { key: 'f3bab31db3d5ab5a6fdc78610abb42763f51154b' }), indeterminate && (h("span", { key: '7002b8fffbb15b73d84fae98761196bbe6af3347', class: "checkbox__indeterminate-icon" }))))), showLabelContainer && (h("span", { key: '082ac434bc4dd0c98d983650aab5208a760063e7', class: "checkbox__label-container" }, this.label && h("span", { key: '62737cd8068a70eb10e722c2ff91ae4dc9917f7d', class: "checkbox__label" }, this.label), this.description && (h("span", { key: '3e7f891b80511b9a4d811db31b594f2a0429d8b0', class: "checkbox__description" }, this.description)))))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "swirl-checkbox"; }
|
|
43
43
|
static get encapsulation() { return "scoped"; }
|
|
@@ -42,7 +42,7 @@ export class SwirlChip {
|
|
|
42
42
|
"chip--interactive": this.interactive || this.pressed !== undefined,
|
|
43
43
|
"chip--removable": this.removable,
|
|
44
44
|
});
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'b0e65c521dcde5335f3bcd7daaf7359ba5bbe3ec' }, h(Tag, { key: 'a5198b26f19750bd4c8372acdc21e26f3ed8cfe1', "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined, class: className, onClick: this.chipClick.emit, type: this.interactive ? "button" : undefined }, h("span", { key: '2ed93ce33faf8a1bdc4b07e4f866a10650ae8395', class: "chip__inner" }, showAvatar && (h("span", { key: 'ec44e6a99988aa14dcf330098de8593a1deeaed8', class: "chip__avatar" }, h("slot", { key: '880a8c96422c0f31cbf603676ffecef66c6bff21', name: "avatar" }))), showIcon && (h("span", { key: 'b5ba3f75080b5452fce8886c513eaa6abcd58009', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { key: '808fe136faee7570c2329a300fafba4e0efcbed8', class: "chip__label" }, this.label)), this.progress !== undefined && (h("span", { key: '50b4eb47a59290e9c21570e0b2d91a8aa7a97723', class: "chip__progress-indicator" }, h("swirl-progress-indicator", { key: 'e0d54da0d2c6a325f6068740bba0c72b0837fb87', label: this.progressBarLabel, value: this.progress })))), this.removable && (h("button", { key: 'ec75adbbf28bf1df36d7532d832137f795973dab', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.removeChip.emit, type: "button" }, h("swirl-icon-close", { key: '85c241bc56caaf410421b102607f902f1c4b33ef', size: 20 })))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "swirl-chip"; }
|
|
48
48
|
static get encapsulation() { return "scoped"; }
|
|
@@ -4,10 +4,10 @@ export class SwirlColumns {
|
|
|
4
4
|
this.columns = "repeat(3, minmax(0, 1fr))";
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '779371e7d28640a71aaad2d2de8d91b5b8d63e88' }, h("div", { key: 'de846647d2b436277cd2765f9814796320af071d', class: "columns", style: {
|
|
8
8
|
gridTemplateColumns: this.columns,
|
|
9
9
|
gap: `var(--s-space-${this.spacing})`,
|
|
10
|
-
} }, h("slot", { key: '
|
|
10
|
+
} }, h("slot", { key: 'ca510de4dae9c7055d2db6e02020cdfca95e58c6' }))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "swirl-columns"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,7 +62,7 @@ export class SwirlDialog {
|
|
|
62
62
|
render() {
|
|
63
63
|
const className = classnames("dialog", { "dialog--closing": this.closing });
|
|
64
64
|
const hasLeftControls = Boolean(this.el.querySelector('[slot="left-controls"]'));
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '61ba06cee740b1bf21b246aeba14996b002a5aab' }, h("div", { key: 'e195a08fdac8f9ad6f76d412cd50eef88905128f', "aria-describedby": "content", "aria-hidden": "true", "aria-labelledby": this.hideLabel ? undefined : "label", "aria-label": this.hideLabel ? this.label : undefined, "aria-modal": "true", class: className, onKeyDown: this.onKeyDown, ref: (el) => (this.dialogEl = el), role: "alertdialog" }, h("div", { key: 'a1dbf13fe86dec8256c06393c4abd6c6c59382c1', class: "dialog__backdrop", onClick: this.onBackdropClick }), h("div", { key: 'f0b9dd2f2d722bf050081b2bc7fed3552c8a457c', class: "dialog__body", part: "dialog__body", role: "document" }, !this.hideLabel && (h("h2", { key: '18eceaee59d9184ace51898fe73c603af383387d', class: "dialog__heading", part: "dialog__heading", id: "label" }, this.label)), h("div", { key: '612edee73bee789b7ec2f8fd2e16cd3c3a9370aa', class: "dialog__content", part: "dialog__content", id: "content" }, h("slot", { key: '9d482392bce3c82df30c166fc99577c036da49a8' })), h("div", { key: '3306d185ed549fc6470a2fbbaf649cdc33b98189', class: "dialog__controls", ref: (el) => (this.controlsContainerEl = el) }, hasLeftControls && (h("div", { key: '0a7eb43c0f7f3e016767a8364334bd5f9d3cdf86', class: "dialog__left_controls" }, h("slot", { key: 'eb39f26ed1ff0a7931a899c8b9f70b3f22bba2d5', name: "left-controls" }))), this.secondaryActionLabel && (h("swirl-button", { key: '70cc4de12878fdb5f123a23a42d9c6cba67ddee7', label: this.secondaryActionLabel, onClick: this.onSecondaryAction })), this.primaryActionLabel && (h("swirl-button", { key: 'f02577b4cad57daea316f66b61ee3eec6844666a', intent: this.intent, label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" })))))));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "swirl-dialog"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -325,7 +325,7 @@ export class SwirlFileViewerPdf {
|
|
|
325
325
|
const showPagination = !this.error && !this.loading && this.visiblePages.length > 0;
|
|
326
326
|
const showSpinner = this.loading;
|
|
327
327
|
const className = classnames("file-viewer-pdf", `file-viewer-pdf--view-mode-${this.viewMode}`);
|
|
328
|
-
return (h(Host, { key: '
|
|
328
|
+
return (h(Host, { key: '17dae0b8e5bf16769a356414071943dc7f8ebec1', class: className, exportparts: "file-viewer-pdf__pagination" }, this.error && (h("swirl-inline-error", { key: '472e62e48d63545fef3bddaefe8cc307139b382b', class: "file-viewer-pdf__error", message: this.errorMessage })), h("div", { key: 'ae504112d088bd4990b419e787e48c5737f6d552', "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (el) => (this.scrollContainer = el) }, this.pages.map((page) => {
|
|
329
329
|
const viewport = page.getViewport({
|
|
330
330
|
scale: this.getScale(page),
|
|
331
331
|
});
|
|
@@ -339,7 +339,7 @@ export class SwirlFileViewerPdf {
|
|
|
339
339
|
width: `${width}px`,
|
|
340
340
|
height: `${height}px`,
|
|
341
341
|
}, tabIndex: 0 }, !rendered && (h("swirl-spinner", { class: "file-viewer-pdf__page-spinner" })), h("canvas", { class: "file-viewer-pdf__canvas", style: { opacity: rendered ? "1" : "0" } }), h("div", { class: "file-viewer-pdf__text-container" })));
|
|
342
|
-
})), showPagination && (h("span", { key: '
|
|
342
|
+
})), showPagination && (h("span", { key: '0986d71eab6496cd1b588afa28c8ba5cf2a02967', class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, h("span", { key: 'b0bd18dd65703cb4d240ab66883e23b03d282265', "aria-current": "page" }, this.currentPage), " /", " ", this.doc.numPages)), showSpinner && (h("div", { key: 'cb4c58f7641b05e55132ca315e83b7254d2a1d66', class: "file-viewer-pdf__spinner" }, h("swirl-spinner", { key: '3a0dc7d43eebc9169928e07959239471d3c8b5ba' })))));
|
|
343
343
|
}
|
|
344
344
|
static get is() { return "swirl-file-viewer-pdf"; }
|
|
345
345
|
static get encapsulation() { return "shadow"; }
|
|
@@ -164,7 +164,7 @@ export class SwirlFormControl {
|
|
|
164
164
|
"form-control--is-select": isSelect,
|
|
165
165
|
});
|
|
166
166
|
const LabelTag = hasContenteditableControl ? "div" : "label";
|
|
167
|
-
return (h(Host, { key: '
|
|
167
|
+
return (h(Host, { key: '13d2a3e34d0519deb13fc0c48bdcd50e5c998afa', onFocusin: this.onFocusIn, onFocusout: this.onFocusOut, onKeyDown: this.onKeyDown }, h("div", { key: 'fa2959507fcbb63ff9b46e3a5250b24a5b8e3020', class: className, role: "group" }, h("span", { key: '5da5d74a5a29102e15bf5075b696f0cc53712830', class: "form-control__controls" }, h("span", { key: '7dd1a58fdac4a4b4ef6932d8c92068a5a77b58bb', class: "form-control__prefix" }, h("slot", { key: '78928c653468ce923e22d73f7f3db1f048a5d066', name: "prefix" })), h(LabelTag, { key: '5b632cf43b54e83db9e908d76120119696b351b8', class: "form-control__label", onClick: this.onLabelClick }, hasIcon && (h("span", { key: '9f3dd8179cd5a9ab2f373f360676002c3f375b30', class: "form-control__icon" }, h("swirl-icon", { key: '84f763010a68c9782cde47af8028ecba5ee21c0a', glyph: this.icon, size: 20 }))), h("span", { key: '8525bb87b93fd1fcec6bf9299f77b66055f664d3', class: "form-control__label-text", id: this.labelId }, this.label, this.secondaryLabel && this.labelPosition === "outside" && (h("span", { key: 'fd4ceb7d0951b4b5f6c8c1f9ccf1339789cc9d55', class: "form-control__secondary-label" }, this.secondaryLabel)), this.tooltip && (h("span", { key: '045855d7e63c2f3c63fa716f485c0248e8a08567', class: "form-control__tooltip" }, h("swirl-tooltip", { key: 'e9ff35f3bff49113de0535f62e9d80f7003fb962', content: this.tooltip, positioning: "fixed", position: "top" }, h("swirl-icon-help", { key: '61d4d4df9d518d9294a510530003df16c0215dd5', size: 16, tabindex: "0" }))))), h("span", { key: '748d81f068640f3cbff2ab1b31a87046442c6521', class: "form-control__input" }, h("slot", { key: 'c395ac72ad7d609f88e91fa38cddab6b871e66ec' })))), showDescription && (h("span", { key: '632118d7120ae262a52ca6eb3f8449c77a7288c9', class: "form-control__description", id: this.descriptionId }, this.description)), h("span", { key: 'd9dc941f07cb0df699afbba834de82546f06b361', "aria-live": "polite" }, showErrorMessage && (h("span", { key: 'c3f41f71bb570cbe08348205cbccf0170d4757e7', class: "form-control__error-message", id: this.descriptionId }, h("swirl-inline-error", { key: '3b579f6ff3941f7cafedf0991022026b6ac9e5fd', message: this.errorMessage, size: "s" })))))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "swirl-form-control"; }
|
|
170
170
|
static get encapsulation() { return "scoped"; }
|
|
@@ -6,7 +6,7 @@ export class SwirlFormGroup {
|
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
8
|
const className = classnames("form-group", `form-group--orientation-${this.orientation}`);
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '5b14e0132c0975013caced41c3d42765900b0301' }, h("div", { key: '5a3f2d09416ebaeac67e310c658445d56dfea2c8', class: className }, h("slot", { key: '56a1bda07c9042e0e81696c64b0789a54154915b' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "swirl-form-group"; }
|
|
12
12
|
static get encapsulation() { return "scoped"; }
|
|
@@ -5,7 +5,7 @@ export class SwirlIcon {
|
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
7
|
const Tag = `swirl-icon-${this.glyph}`;
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'abb8a9d727983cca95e5c9600a13f0f77d26223d' }, h(Tag, { key: 'd86673ee0436541dbf40f73d9361b3d1c5f4c414', color: this.color, size: this.size })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "swirl-icon"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class SwirlImageGrid {
|
|
|
50
50
|
? `var(--s-border-radius-${this.borderRadius})`
|
|
51
51
|
: this.borderRadius,
|
|
52
52
|
};
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '90bb7f66862a60ec727b5ebf4e7a28395e12de99' }, h("div", { key: '855f747b8ba3c678c6d4bf5c2a8dda87e51477d6', "aria-label": this.label, class: className, role: "list", style: styles }, h("slot", { key: '56a605da09875d68e2850ff528b7ddae2a121c96', onSlotchange: this.updateItems }))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "swirl-image-grid"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|