@getflip/swirl-components-react 0.116.0 → 0.117.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/{file-manager.entry.4688ce74.js → file-manager.entry.b3d9b3fd.js} +1 -1
- package/dist/focus-trap.esm-37cd2d2b.724cca66.js +452 -0
- package/dist/{index.125cfa7b.js → index.ce01650f.js} +284 -298
- package/dist/stencil-generated/index.d.ts +1 -0
- package/dist/{swirl-accordion-item.entry.ea266528.js → swirl-accordion-item.entry.c71e99a8.js} +1 -1
- package/dist/{swirl-accordion.entry.2a81a0d7.js → swirl-accordion.entry.617c49a4.js} +1 -1
- package/dist/{swirl-action-list-section.entry.e4ba4bc7.js → swirl-action-list-section.entry.368836a7.js} +1 -1
- package/dist/{swirl-action-list_3.entry.17374b4a.js → swirl-action-list_3.entry.5451db16.js} +1 -1
- package/dist/{swirl-app-bar.entry.7399df28.js → swirl-app-bar.entry.dd3f8b8c.js} +8 -8
- package/dist/swirl-app-icon.entry.f18236de.js +23 -0
- package/dist/{swirl-app-layout_6.entry.55bb822d.js → swirl-app-layout_6.entry.334ed582.js} +7 -7
- package/dist/{swirl-autocomplete.entry.6632a3e6.js → swirl-autocomplete.entry.96ae042c.js} +1 -1
- package/dist/{swirl-avatar-group.entry.6115b2c9.js → swirl-avatar-group.entry.e695f843.js} +1 -1
- package/dist/{swirl-avatar.entry.42fd2f3a.js → swirl-avatar.entry.20be0743.js} +1 -1
- package/dist/swirl-badge.entry.f533d716.js +19 -0
- package/dist/{swirl-banner.entry.c19c4b89.js → swirl-banner.entry.103c0d27.js} +1 -1
- package/dist/{swirl-box.entry.56333ce1.js → swirl-box.entry.df3b159b.js} +1 -1
- package/dist/{swirl-button-group.entry.76abb1ad.js → swirl-button-group.entry.e8cd7707.js} +1 -1
- package/dist/{swirl-button.entry.26730b5a.js → swirl-button.entry.41d6e40e.js} +1 -1
- package/dist/{swirl-card.entry.04b4b3ee.js → swirl-card.entry.53349fbf.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.8aaaceb7.js → swirl-carousel-slide.entry.4f223981.js} +1 -1
- package/dist/{swirl-carousel.entry.ac74a9d4.js → swirl-carousel.entry.a3e2c06d.js} +1 -1
- package/dist/{swirl-checkbox.entry.74b55d47.js → swirl-checkbox.entry.669208b4.js} +1 -1
- package/dist/{swirl-chip.entry.009d2d8d.js → swirl-chip.entry.795a2695.js} +1 -1
- package/dist/{swirl-color-input.entry.bba43d2e.js → swirl-color-input.entry.d1e35209.js} +1 -1
- package/dist/{swirl-columns.entry.cc8fba8a.js → swirl-columns.entry.1d1dc24e.js} +1 -1
- package/dist/swirl-components-react.js +219 -218
- package/dist/swirl-components-react.umd.cjs +100 -89
- package/dist/{swirl-console-layout.entry.80ee45c0.js → swirl-console-layout.entry.25b5b228.js} +1 -1
- package/dist/{swirl-date-input.entry.c413405d.js → swirl-date-input.entry.771dc717.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.91f0909a.js → swirl-date-picker_2.entry.2a88c04c.js} +1 -1
- package/dist/{swirl-description-list-item.entry.bc59e27c.js → swirl-description-list-item.entry.a8eb806f.js} +1 -1
- package/dist/{swirl-description-list.entry.7aa57883.js → swirl-description-list.entry.277952d9.js} +1 -1
- package/dist/{swirl-dialog.entry.ed1f930a.js → swirl-dialog.entry.8b5495e9.js} +1 -1
- package/dist/{swirl-emoji-clap.entry.fb4cec1f.js → swirl-emoji-clap.entry.f2d79979.js} +1 -1
- package/dist/{swirl-emoji-happy.entry.0f2c0061.js → swirl-emoji-happy.entry.7eead4df.js} +1 -1
- package/dist/{swirl-emoji-idea.entry.e10d194b.js → swirl-emoji-idea.entry.e418642e.js} +1 -1
- package/dist/{swirl-emoji-love.entry.d79e2469.js → swirl-emoji-love.entry.023593e2.js} +1 -1
- package/dist/{swirl-emoji-sad.entry.6d349f1f.js → swirl-emoji-sad.entry.54657d88.js} +1 -1
- package/dist/{swirl-emoji-thumbs-up.entry.07e25519.js → swirl-emoji-thumbs-up.entry.530c2e4a.js} +1 -1
- package/dist/{swirl-emoji.entry.dd169eb6.js → swirl-emoji.entry.0ae2fb1a.js} +1 -1
- package/dist/{swirl-file-uploader.entry.260561a0.js → swirl-file-uploader.entry.e0674383.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.1ebe6e3a.js → swirl-file-viewer_7.entry.5f405efc.js} +1 -1
- package/dist/{swirl-form-control.entry.f84c3d33.js → swirl-form-control.entry.03098957.js} +1 -1
- package/dist/{swirl-form-group.entry.ac9a83d2.js → swirl-form-group.entry.1eb1c8b1.js} +1 -1
- package/dist/{swirl-heading.entry.4a12d1f9.js → swirl-heading.entry.6473f0b8.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.ca17ec3f.js → swirl-icon-add-photo.entry.4bd59519.js} +1 -1
- package/dist/{swirl-icon-add-reaction.entry.f319f269.js → swirl-icon-add-reaction.entry.ec269799.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.f853df7c.js → swirl-icon-add_6.entry.10f8a7f8.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.35652359.js → swirl-icon-admin-panel-settings.entry.3093b8ed.js} +1 -1
- package/dist/{swirl-icon-ai.entry.ec63a317.js → swirl-icon-ai.entry.1b648d94.js} +1 -1
- package/dist/{swirl-icon-apps.entry.a683e975.js → swirl-icon-apps.entry.9cb39468.js} +1 -1
- package/dist/swirl-icon-arrow-back_5.entry.f9293824.js +61 -0
- package/dist/{swirl-icon-arrow-downward_2.entry.efeb5e88.js → swirl-icon-arrow-downward_2.entry.4a41811f.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.2672a874.js → swirl-icon-arrow-left_4.entry.43b18b8d.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.1b8b6b5d.js → swirl-icon-arrow-right-small.entry.93ae585c.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.b350295b.js → swirl-icon-attachment.entry.b1ecef81.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.4e97a959.js → swirl-icon-bar-chart.entry.730ec371.js} +1 -1
- package/dist/{swirl-icon-block.entry.2d6f5edf.js → swirl-icon-block.entry.af996d46.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.be517bd7.js → swirl-icon-bookmark.entry.49e78ab1.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.2f8194aa.js → swirl-icon-cancel_4.entry.a35dfb84.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.352176b3.js → swirl-icon-chat-bubble.entry.04b13dea.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.15b003cc.js → swirl-icon-chats-filled.entry.cfa50481.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.5e2dd911.js → swirl-icon-chats-outlined.entry.6ed7e4f7.js} +1 -1
- package/dist/{swirl-icon-check-circle_2.entry.9f98424d.js → swirl-icon-check-circle_2.entry.fdd07865.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.12677319.js → swirl-icon-check-small_3.entry.7e6f2df7.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.970e3923.js → swirl-icon-check-strong.entry.ed4bd21d.js} +1 -1
- package/dist/{swirl-icon-check.entry.3e43c264.js → swirl-icon-check.entry.e4ccf646.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.2aed8b23.js → swirl-icon-chevron-left.entry.2d790776.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.24c9c8ef.js → swirl-icon-chevron-right.entry.5e0cd943.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.6841c9f1.js → swirl-icon-close-small.entry.292a796d.js} +1 -1
- package/dist/{swirl-icon-close.entry.ce919037.js → swirl-icon-close.entry.a7b2f2cc.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.fbbcc174.js → swirl-icon-cloud-upload.entry.6aecc1eb.js} +1 -1
- package/dist/{swirl-icon-column.entry.4c203fdb.js → swirl-icon-column.entry.552adde9.js} +1 -1
- package/dist/{swirl-icon-comment.entry.a5938faa.js → swirl-icon-comment.entry.0c2bb46b.js} +1 -1
- package/dist/{swirl-icon-copy.entry.b1dda374.js → swirl-icon-copy.entry.5003ae0c.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.802ffe31.js → swirl-icon-date-range.entry.4942555d.js} +1 -1
- package/dist/{swirl-icon-delete.entry.6b4a3d87.js → swirl-icon-delete.entry.781b1b87.js} +1 -1
- package/dist/{swirl-icon-description.entry.e6601e7c.js → swirl-icon-description.entry.6eb4b43d.js} +1 -1
- package/dist/{swirl-icon-discover.entry.690e02eb.js → swirl-icon-discover.entry.a989ed5a.js} +1 -1
- package/dist/swirl-icon-dock-left.entry.951b62b1.js +17 -0
- package/dist/{swirl-icon-download.entry.bfedc4b4.js → swirl-icon-download.entry.bbd0759b.js} +1 -1
- package/dist/{swirl-icon-edit.entry.4c84a3b9.js → swirl-icon-edit.entry.c65a4970.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.3756c737.js → swirl-icon-emoji-mood.entry.6355d922.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.4e5f69ca.js → swirl-icon-emoji-satisfied.entry.74d645d9.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.0fe9acd3.js → swirl-icon-error_3.entry.9d10a6c9.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.a6805d15.js → swirl-icon-expand-more.entry.da0e4cb8.js} +1 -1
- package/dist/{swirl-icon-filter.entry.7cd426cf.js → swirl-icon-filter.entry.581f223f.js} +1 -1
- package/dist/{swirl-icon-folder.entry.f06aabaf.js → swirl-icon-folder.entry.8cad2c3b.js} +1 -1
- package/dist/{swirl-icon-format-h-one.entry.5fcd4f75.js → swirl-icon-format-h-one.entry.8ec70dc8.js} +1 -1
- package/dist/{swirl-icon-gif.entry.c1b9b01b.js → swirl-icon-gif.entry.b9ff3aad.js} +1 -1
- package/dist/{swirl-icon-group-add.entry.bfc43ed3.js → swirl-icon-group-add.entry.c94e08d9.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.1362dfee.js → swirl-icon-group-assign.entry.6e98face.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.4a9dc70c.js → swirl-icon-groups-custom.entry.7be0cfaf.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.fe1ef93c.js → swirl-icon-groups-filled.entry.7867df7c.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.ebe81477.js → swirl-icon-groups-outlined.entry.3afa77a2.js} +1 -1
- package/dist/{swirl-icon-groups.entry.738f76ce.js → swirl-icon-groups.entry.dd1eb558.js} +1 -1
- package/dist/{swirl-icon-help.entry.8435b287.js → swirl-icon-help.entry.21628e20.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.b918eeb6.js → swirl-icon-highlight.entry.3a5e2528.js} +1 -1
- package/dist/{swirl-icon-home.entry.5b0edead.js → swirl-icon-home.entry.65379e49.js} +1 -1
- package/dist/{swirl-icon-image.entry.661e6177.js → swirl-icon-image.entry.d530d4cd.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.8a727890.js → swirl-icon-improve-text.entry.a173b8ff.js} +1 -1
- package/dist/{swirl-icon-info.entry.2f7e2ca4.js → swirl-icon-info.entry.da230039.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.dcd45e67.js → swirl-icon-insert-below.entry.fde71ecb.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.56bf76fc.js → swirl-icon-insert-on-top.entry.f2e9d4be.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.c73b4f37.js → swirl-icon-inventory.entry.5cfda6cf.js} +1 -1
- package/dist/{swirl-icon-like.entry.a85e2897.js → swirl-icon-like.entry.e6ee42c4.js} +1 -1
- package/dist/{swirl-icon-link.entry.aa21464e.js → swirl-icon-link.entry.510d2204.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.1aaeffa7.js → swirl-icon-lock-person.entry.008a1935.js} +1 -1
- package/dist/{swirl-icon-lock.entry.88851a43.js → swirl-icon-lock.entry.e80103d3.js} +1 -1
- package/dist/{swirl-icon-logout.entry.dc9a8a32.js → swirl-icon-logout.entry.613a5da1.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.22b7f4f9.js → swirl-icon-long-text.entry.cc9a6f0c.js} +1 -1
- package/dist/{swirl-icon-mail.entry.899fd178.js → swirl-icon-mail.entry.b80c76ca.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.20fe7a2b.js → swirl-icon-manage-accounts.entry.37083b1d.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.012add49.js → swirl-icon-mark-chat-read.entry.d7d00034.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.10c05cf0.js → swirl-icon-mark-chat-unread.entry.78d55a02.js} +1 -1
- package/dist/{swirl-icon-mention.entry.c9e92dd1.js → swirl-icon-mention.entry.71fdabc0.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.2cff5611.js → swirl-icon-menu-filled.entry.14646d20.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.9d789f57.js → swirl-icon-menu-outlined.entry.84793b26.js} +1 -1
- package/dist/{swirl-icon-message.entry.8857795a.js → swirl-icon-message.entry.2d755152.js} +1 -1
- package/dist/{swirl-icon-mic.entry.f893c2f7.js → swirl-icon-mic.entry.1d63c06c.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.5e3f4e74.js → swirl-icon-more-horizontal.entry.7332ae9a.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.d01eccf4.js → swirl-icon-news-filled.entry.dd036ebf.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.03c39238.js → swirl-icon-news-outlined.entry.393fcd76.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.719c1dc8.js → swirl-icon-notifications-active.entry.6d56eb4f.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.172b38fb.js → swirl-icon-notifications-off.entry.da0cd2b1.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.84951d8f.js → swirl-icon-notifications.entry.4be91959.js} +1 -1
- package/dist/{swirl-icon-open-in-full.entry.174d4a2a.js → swirl-icon-open-in-full.entry.11d114ee.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.b0c0bb9b.js → swirl-icon-open-in-new.entry.bedb1a60.js} +1 -1
- package/dist/{swirl-icon-pause-circle.entry.c4b2368d.js → swirl-icon-pause-circle.entry.f29747d2.js} +1 -1
- package/dist/{swirl-icon-pause.entry.1acd10ef.js → swirl-icon-pause.entry.3c1e5548.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.152b37e2.js → swirl-icon-people-alt.entry.79edb179.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.8b64e5b6.js → swirl-icon-person-off.entry.e8cb1db3.js} +1 -1
- package/dist/{swirl-icon-person.entry.f454e152.js → swirl-icon-person.entry.bb65a372.js} +1 -1
- package/dist/{swirl-icon-phone.entry.f84c8247.js → swirl-icon-phone.entry.db658213.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.d9dc9867.js → swirl-icon-play-arrow.entry.24629af5.js} +1 -1
- package/dist/{swirl-icon-poll.entry.a90853fc.js → swirl-icon-poll.entry.79377157.js} +1 -1
- package/dist/{swirl-icon-print.entry.54d78ae9.js → swirl-icon-print.entry.e9b02b2d.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.b96b38f7.js → swirl-icon-recieved.entry.293efe78.js} +1 -1
- package/dist/{swirl-icon-reply.entry.ec847f16.js → swirl-icon-reply.entry.3668181b.js} +1 -1
- package/dist/{swirl-icon-report.entry.e0e93466.js → swirl-icon-report.entry.cf495af7.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.20608b32.js → swirl-icon-roadmap.entry.bce9366f.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.551bea80.js → swirl-icon-search-strong.entry.0c726e7f.js} +1 -1
- package/dist/{swirl-icon-search.entry.eb67be31.js → swirl-icon-search.entry.ecfcaf0c.js} +1 -1
- package/dist/{swirl-icon-secure.entry.2850559b.js → swirl-icon-secure.entry.33790d8e.js} +1 -1
- package/dist/{swirl-icon-send.entry.abfa5a83.js → swirl-icon-send.entry.e6558ad2.js} +1 -1
- package/dist/{swirl-icon-settings.entry.6736ed82.js → swirl-icon-settings.entry.cc829226.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.7fb9bbab.js → swirl-icon-short-text.entry.a47a43ca.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.2b1eb8c1.js → swirl-icon-simplify.entry.c4f74821.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.a03ea7d7.js → swirl-icon-spellcheck.entry.b8cc7d49.js} +1 -1
- package/dist/{swirl-icon-stop.entry.d1071070.js → swirl-icon-stop.entry.60e1da6d.js} +1 -1
- package/dist/{swirl-icon-sync.entry.c922848c.js → swirl-icon-sync.entry.8185be19.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.73d86a6e.js → swirl-icon-tasks-filled.entry.dd4e9b8a.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.a57f01b8.js → swirl-icon-tasks-outlined.entry.2e4fbfe3.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.31f4a75a.js → swirl-icon-time-filled.entry.af2ee160.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.29c7e966.js → swirl-icon-time-outlined.entry.ec93bb57.js} +1 -1
- package/dist/{swirl-icon-translate.entry.a7ad47f3.js → swirl-icon-translate.entry.9c93aa99.js} +1 -1
- package/dist/{swirl-icon-tree-structure.entry.65da7e94.js → swirl-icon-tree-structure.entry.9223e0a0.js} +1 -1
- package/dist/{swirl-icon-undo.entry.3e757849.js → swirl-icon-undo.entry.45e4f032.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.518a1411.js → swirl-icon-unlock-person.entry.1d8b2fc0.js} +1 -1
- package/dist/{swirl-icon-user-add.entry.3311e924.js → swirl-icon-user-add.entry.a6dde3e6.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.edf35711.js → swirl-icon-user-assign.entry.0ab1395b.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.38a97dee.js → swirl-icon-video-camera.entry.1243d0b6.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.b8ceca57.js → swirl-icon-video-library.entry.ffb851df.js} +1 -1
- package/dist/{swirl-icon-voice.entry.7f23be9b.js → swirl-icon-voice.entry.8acad7e0.js} +1 -1
- package/dist/{swirl-icon.entry.817210cb.js → swirl-icon.entry.90f02159.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.86dfa7f2.js → swirl-image-grid-item.entry.d58d44e2.js} +1 -1
- package/dist/{swirl-image-grid.entry.ace9afb0.js → swirl-image-grid.entry.1bd3ec72.js} +1 -1
- package/dist/{swirl-inline-notification.entry.5bfbb6e8.js → swirl-inline-notification.entry.81ab1dd5.js} +1 -1
- package/dist/{swirl-inline-status.entry.98ef3517.js → swirl-inline-status.entry.b32d3ec9.js} +1 -1
- package/dist/{swirl-lightbox.entry.895f874f.js → swirl-lightbox.entry.6be36eb9.js} +1 -1
- package/dist/{swirl-link.entry.df7849ca.js → swirl-link.entry.c97cca88.js} +1 -1
- package/dist/{swirl-list.entry.d5cecbe9.js → swirl-list.entry.84f6012f.js} +1 -1
- package/dist/{swirl-menu-item.entry.57f562d0.js → swirl-menu-item.entry.abdbe238.js} +1 -1
- package/dist/{swirl-menu.entry.45ddb2a2.js → swirl-menu.entry.fc0dd8a3.js} +1 -1
- package/dist/swirl-modal.entry.ae814bed.js +118 -0
- package/dist/{swirl-option-list-section.entry.95aadfa3.js → swirl-option-list-section.entry.10cda9b3.js} +1 -1
- package/dist/{swirl-option-list_2.entry.45ccbce8.js → swirl-option-list_2.entry.a087cfb1.js} +1 -1
- package/dist/{swirl-pagination.entry.2478cb41.js → swirl-pagination.entry.fbc82e52.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.12ae9541.js → swirl-pdf-reader.entry.6b4ed1cf.js} +1 -1
- package/dist/{swirl-popover_2.entry.210462ad.js → swirl-popover_2.entry.65429e13.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.46927b30.js → swirl-progress-indicator.entry.98f09c9d.js} +1 -1
- package/dist/{swirl-radio-group.entry.ebee1ed2.js → swirl-radio-group.entry.ab871aa1.js} +1 -1
- package/dist/{swirl-radio.entry.96c562f5.js → swirl-radio.entry.87464f0b.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.a92b62aa.js → swirl-resource-list-file-item.entry.4a4c3a85.js} +1 -1
- package/dist/{swirl-search.entry.282db005.js → swirl-search.entry.f6bce3f0.js} +1 -1
- package/dist/{swirl-select.entry.2812215c.js → swirl-select.entry.ba96b364.js} +1 -1
- package/dist/swirl-shell-layout.entry.767dd0e1.js +85 -0
- package/dist/{swirl-shell-navigation-item.entry.d8dfe548.js → swirl-shell-navigation-item.entry.fa843a70.js} +50 -39
- package/dist/{swirl-skeleton-box.entry.49502bb6.js → swirl-skeleton-box.entry.b65f5e6b.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.7837cc36.js → swirl-skeleton-text.entry.531bf8a7.js} +1 -1
- package/dist/{swirl-stack.entry.1053abfa.js → swirl-stack.entry.3a6d9c4d.js} +1 -1
- package/dist/{swirl-status-indicator.entry.7f47210c.js → swirl-status-indicator.entry.57c1e20c.js} +1 -1
- package/dist/{swirl-switch.entry.adf7c2c2.js → swirl-switch.entry.8bcf4283.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.9c263514.js → swirl-symbol-account-circle.entry.b40541b6.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.02603c76.js → swirl-symbol-alternate-email.entry.aed18340.js} +1 -1
- package/dist/{swirl-symbol-android.entry.29bb4240.js → swirl-symbol-android.entry.d509192b.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.18e470d5.js → swirl-symbol-announcement.entry.d3fcc03c.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.147fdad0.js → swirl-symbol-backup.entry.85574fe7.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.8cc1b2b8.js → swirl-symbol-beach-access.entry.3f4a67ee.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.8bbfd50a.js → swirl-symbol-bookmark.entry.56668194.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.1783dad1.js → swirl-symbol-cloud.entry.81c629c5.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.9f6fc45e.js → swirl-symbol-coronavirus.entry.ed49b873.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.88664d4b.js → swirl-symbol-desktop-windows.entry.3af35f38.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.3e4b0337.js → swirl-symbol-directions-car-filled.entry.40cc8fe7.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.6c7ae25b.js → swirl-symbol-edit-calendar.entry.5bd4eba3.js} +1 -1
- package/dist/{swirl-symbol-email.entry.b22eb482.js → swirl-symbol-email.entry.44d6344e.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.1bbfe22a.js → swirl-symbol-emoji-food-beverage.entry.64cd39df.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.b3fa84e9.js → swirl-symbol-event-menu.entry.3b58025a.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.9e1569b1.js → swirl-symbol-facebook.entry.527133f1.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.2dd73128.js → swirl-symbol-favorite.entry.c1cff7ef.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.e3f15463.js → swirl-symbol-fitness-center.entry.50c51c79.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.c1387344.js → swirl-symbol-flag.entry.27e1d24b.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.3163a553.js → swirl-symbol-folder.entry.3d35e055.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.77b68653.js → swirl-symbol-globe.entry.54710b2e.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.05eaccae.js → swirl-symbol-groups.entry.285e8d95.js} +1 -1
- package/dist/{swirl-symbol-help.entry.fe628cc4.js → swirl-symbol-help.entry.adac081f.js} +1 -1
- package/dist/{swirl-symbol-image.entry.f915edb7.js → swirl-symbol-image.entry.02c18667.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.ebd8932d.js → swirl-symbol-info-menu.entry.aed35d71.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.32efb4d0.js → swirl-symbol-instagram.entry.c92d2320.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.81637c1d.js → swirl-symbol-ios.entry.cd1b5091.js} +1 -1
- package/dist/{swirl-symbol-language.entry.31e8b3b4.js → swirl-symbol-language.entry.9d38c098.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.56f85c1b.js → swirl-symbol-leaderboard.entry.3d0d1920.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.71d78958.js → swirl-symbol-lightbulb.entry.ddd5c585.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.0528a5ac.js → swirl-symbol-linkedin.entry.52a6b8c7.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.2a393474.js → swirl-symbol-location-on.entry.3a9e37c8.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.c4a1ccb4.js → swirl-symbol-loyalty.entry.44c3b898.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.b4ab674e.js → swirl-symbol-maps-home-work.entry.71fa6e4c.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.6ab7ebf7.js → swirl-symbol-notifications.entry.fcf164a1.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.42531df6.js → swirl-symbol-open-in-new.entry.543e0fa9.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.4cf455f3.js → swirl-symbol-pedal-bike.entry.0809b7da.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.af3b7adf.js → swirl-symbol-pinterest.entry.18eb31a2.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.7889eafb.js → swirl-symbol-policy.entry.1bb0be40.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.c8989c94.js → swirl-symbol-push-pin.entry.938b46fb.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.7527fcfc.js → swirl-symbol-redeem.entry.76bcdca9.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.657d82ae.js → swirl-symbol-report-problem.entry.691f7fb0.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.8e8e0f3f.js → swirl-symbol-restaurant.entry.0d1453cb.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.99053c42.js → swirl-symbol-roadmap.entry.f3727b06.js} +1 -1
- package/dist/{swirl-symbol-room.entry.18d8b08d.js → swirl-symbol-room.entry.a1691362.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.35ed2b3d.js → swirl-symbol-savings.entry.0a1ae903.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.2cfa9a96.js → swirl-symbol-settings-voice.entry.b872ac5b.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.c8e60fd5.js → swirl-symbol-shopping-cart.entry.3d515a2e.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.d27bf258.js → swirl-symbol-smartphone.entry.43513043.js} +1 -1
- package/dist/{swirl-symbol-star.entry.ee91f150.js → swirl-symbol-star.entry.612cb70e.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.94ba440e.js → swirl-symbol-supervisor-account.entry.5cf70f62.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.0597525f.js → swirl-symbol-thumbs-up-down.entry.76f0d3b4.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.d56076c7.js → swirl-symbol-twitter.entry.22567d76.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.9b4a2a40.js → swirl-symbol-wb-sunny.entry.d3f5571a.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.2793ef00.js → swirl-symbol-wechat.entry.edcc1bc1.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.7aec2b9c.js → swirl-symbol-weibo.entry.866d6388.js} +1 -1
- package/dist/{swirl-symbol-work.entry.6cac7b75.js → swirl-symbol-work.entry.e4275119.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.8cb89669.js → swirl-symbol-xing.entry.90c5455a.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.e06ffbac.js → swirl-symbol-youtube.entry.ed374c33.js} +1 -1
- package/dist/{swirl-symbol.entry.319bf7fb.js → swirl-symbol.entry.72bb2875.js} +1 -1
- package/dist/{swirl-tab-bar.entry.3a5fad33.js → swirl-tab-bar.entry.80aa9dc0.js} +1 -1
- package/dist/{swirl-tab.entry.eb66377d.js → swirl-tab.entry.3a4c1d7f.js} +1 -1
- package/dist/{swirl-table-cell.entry.5f467cfe.js → swirl-table-cell.entry.743d56d0.js} +1 -1
- package/dist/{swirl-table-column.entry.e4f69a0a.js → swirl-table-column.entry.f8838128.js} +1 -1
- package/dist/{swirl-table-row-group.entry.2c07a986.js → swirl-table-row-group.entry.5c85d3cf.js} +1 -1
- package/dist/{swirl-table-row.entry.f628c52b.js → swirl-table-row.entry.a60fe0a3.js} +1 -1
- package/dist/{swirl-table.entry.d0ebf8b1.js → swirl-table.entry.63b0c05d.js} +1 -1
- package/dist/{swirl-tabs.entry.9d18ff16.js → swirl-tabs.entry.f998ca12.js} +1 -1
- package/dist/{swirl-text-input.entry.9b366854.js → swirl-text-input.entry.01f8b9de.js} +1 -1
- package/dist/{swirl-text.entry.050da623.js → swirl-text.entry.ac9744fa.js} +1 -1
- package/dist/{swirl-theme-provider.entry.4d0682d5.js → swirl-theme-provider.entry.02f6518d.js} +1 -1
- package/dist/{swirl-time-input.entry.7da6c4e1.js → swirl-time-input.entry.59b4d60c.js} +1 -1
- package/dist/{swirl-toast-provider.entry.fb6fcd80.js → swirl-toast-provider.entry.99eaab21.js} +1 -1
- package/dist/{swirl-toast.entry.6b30a93e.js → swirl-toast.entry.525c8178.js} +1 -1
- package/dist/{swirl-toolbar.entry.2c34af22.js → swirl-toolbar.entry.744cdb2f.js} +1 -1
- package/dist/{swirl-tooltip.entry.e5cba7ab.js → swirl-tooltip.entry.f61b8895.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.7d38abff.js → swirl-tree-navigation-item.entry.6d808f9a.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.35468783.js → swirl-video-thumbnail.entry.aa9aa921.js} +1 -1
- package/dist/swirl-visually-hidden.entry.8d27c937.js +15 -0
- package/dist/{wc-datepicker.entry.5ab4d014.js → wc-datepicker.entry.fbef479d.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-app-icon.entry.7c207340.js +0 -25
- package/dist/swirl-badge.entry.e6402df3.js +0 -19
- package/dist/swirl-icon-arrow-back.entry.400856d7.js +0 -17
- package/dist/swirl-icon-arrow-forward.entry.78194ec9.js +0 -17
- package/dist/swirl-icon-double-arrow-left.entry.d3a37956.js +0 -17
- package/dist/swirl-icon-double-arrow-right.entry.5a56d275.js +0 -17
- package/dist/swirl-icon-menu.entry.7e9eefc0.js +0 -17
- package/dist/swirl-modal.entry.69d8c1dc.js +0 -566
- package/dist/swirl-shell-layout.entry.81c15b95.js +0 -58
- package/dist/swirl-visually-hidden.entry.e208105d.js +0 -15
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { r as h, c as d, h as o, H as p, g as u } from "./index.ce01650f.js";
|
|
2
|
+
import { d as f, e as v } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
3
|
+
import { c as b } from "./focus-trap.esm-37cd2d2b.724cca66.js";
|
|
4
|
+
import { c as _ } from "./index-d280dafb.186cdb0e.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const g = `:host{display:block}:host *{box-sizing:border-box}.modal{--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed);--swirl-resource-list-item-background-default:var(
|
|
8
|
+
--s-surface-overlay-default
|
|
9
|
+
);--swirl-resource-list-item-background-hovered:var(
|
|
10
|
+
--s-surface-overlay-hovered
|
|
11
|
+
);--swirl-resource-list-item-background-pressed:var(
|
|
12
|
+
--s-surface-overlay-pressed
|
|
13
|
+
);--swirl-modal-height:auto;--swirl-modal-max-height:90vh;position:fixed;z-index:var(--s-z-40);display:flex;justify-content:center;align-items:center;inset:0}.modal[aria-hidden="true"]{display:none}.modal--variant-default.modal--closing{animation:0.15s modal-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--variant-default.modal--closing{animation:none}}.modal--variant-default:not(.modal--closing) .modal__backdrop{animation:0.15s modal-backdrop-fade-in}@media (prefers-reduced-motion){.modal--variant-default:not(.modal--closing) .modal__backdrop{animation:none}}.modal--variant-default:not(.modal--closing) .modal__body{animation:0.15s modal-scale-in}@media (prefers-reduced-motion){.modal--variant-default:not(.modal--closing) .modal__body{animation:none}}.modal--variant-drawer{justify-content:end;align-items:stretch}.modal--variant-drawer.modal--closing{animation:0.15s modal-drawer-slide-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--variant-drawer.modal--closing{animation:none}}@media (min-width: 768px){.modal--variant-drawer.modal--hide-label .modal__header-bar{height:auto;padding-top:var(--s-space-4);padding-bottom:var(--s-space-4)}}.modal--variant-drawer .modal__backdrop{background-color:transparent;animation:none}.modal--variant-drawer .modal__body{height:100%;max-height:none;border-radius:0;animation:0.15s modal-drawer-slide-in;box-shadow:var(--s-shadow-level-3)}@media (prefers-reduced-motion){.modal--variant-drawer .modal__body{animation:none}}.modal--variant-drawer .modal__header-bar{background-color:var(--s-surface-overlay-default)}.modal--variant-drawer .modal__header-bar .modal__close-button{margin-left:calc(-1 * var(--s-space-8))}@media (min-width: 768px){.modal--variant-drawer .modal__header-bar{flex-direction:row}}.modal--variant-drawer .modal__content{min-height:100%}@media (min-width: 768px){.modal--variant-drawer.modal--padded .modal__content{padding-top:var(--s-space-8)}}.modal--padded .modal__content{padding-top:var(--s-space-24);padding-right:var(--s-space-16);padding-bottom:var(--s-space-24);padding-left:var(--s-space-16)}@media (min-width: 768px){.modal--padded .modal__content{padding-top:0;padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24)}}@media (min-width: 768px){.modal--scrollable .modal__content{padding-bottom:0}}.modal--scrollable:not(.modal--scrolled-down).modal--has-custom-footer .modal__custom-footer{border-top:var(--s-border-width-default) solid var(--s-border-default)}.modal--scrollable:not(.modal--scrolled-down):not(.modal--has-custom-footer) .modal__controls{border-top:var(--s-border-width-default) solid var(--s-border-default)}.modal--has-custom-header .modal__custom-header{display:block}.modal--has-custom-header .modal__content{padding-top:var(--s-space-16)}.modal--has-custom-footer .modal__custom-footer{padding-top:var(--s-space-16);padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24)}.modal--has-header-tools .modal__header{border-bottom-color:transparent}.modal--has-header-tools .modal__header-tools{display:block}.modal--has-secondary-content .modal__body{max-width:64rem}.modal--has-secondary-content:not(.modal--has-header-tools) .modal__header{border-bottom-color:var(--s-border-default)}.modal--has-secondary-content.modal--has-header-tools .modal__header-tools{border-bottom-color:var(--s-border-default)}.modal--has-secondary-content.modal--has-custom-footer .modal__custom-footer{border-top:var(--s-border-width-default) solid var(--s-border-default)}.modal--has-secondary-content:not(.modal--has-custom-footer) .modal__controls{border-top:var(--s-border-width-default) solid var(--s-border-default)}@media (min-width: 992px){.modal--has-secondary-content .modal__header-tools,.modal--has-secondary-content .modal__content{padding-right:0}}.modal--has-secondary-content .modal__primary-content{overflow:visible;max-height:60%;flex-basis:auto}@media (min-width: 992px){.modal--has-secondary-content .modal__primary-content{max-width:calc(100% - 24rem);max-height:none;flex-basis:calc(100% - 24rem)}}.modal--has-secondary-content .modal__secondary-content{display:block}@media (min-width: 768px){.modal--scrolled:not(.modal--has-header-tools) .modal__header{border-bottom-color:var(--s-border-default)}.modal--scrolled.modal--has-header-tools .modal__header-tools{border-bottom-color:var(--s-border-default)}}.modal__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.modal__body{--swirl-card-background-default:var(--s-surface-overlay-default);--swirl-card-background-hovered:var(--s-surface-overlay-hovered);--swirl-card-background-pressed:var(--s-surface-overlay-pressed);--swirl-accordion-item-toggle-default:var(--s-surface-overlay-default);--swirl-accordion-item-toggle-hovered:var(--s-surface-overlay-hovered);--swirl-accordion-item-toggle-pressed:var(--s-surface-overlay-pressed);position:relative;z-index:var(--s-z-40);display:flex;overflow:hidden;width:100vw;max-width:40rem;height:100vh;background-color:var(--s-surface-overlay-default);flex-direction:column}@media (min-width: 768px){.modal__body{width:90vw;max-height:var(--swirl-modal-max-height);border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-3)}}@media (min-width: 992px){.modal__body{height:var(--swirl-modal-height)}}.modal__header{border-bottom:var(--s-border-width-default) solid var(--s-border-default)}@media (min-width: 768px){.modal__header{border-bottom:var(--s-border-width-default) solid transparent}}.modal__header-bar{display:flex;height:3.5rem;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-shrink:0;align-items:center;gap:var(--s-space-8)}@media (min-width: 768px){.modal__header-bar{height:3.75rem;padding-top:var(--s-space-12);padding-right:var(--s-space-24);padding-bottom:var(--s-space-12);padding-left:var(--s-space-24);flex-direction:row-reverse;gap:var(--s-space-16)}}.modal__header-tools{display:none;padding-right:var(--s-space-16);padding-left:var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default)}@media (min-width: 768px){.modal__header-tools{padding-right:var(--s-space-24);padding-left:var(--s-space-24);border-bottom-color:transparent}}.modal__custom-header{display:none;flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.modal__heading{overflow:hidden}.modal__heading .heading{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal__content-container{display:flex;overflow:hidden;flex-grow:1;flex-direction:column;gap:var(--s-space-24)}@media (min-width: 992px){.modal__content-container{flex-direction:row}}.modal__primary-content{display:flex;overflow:hidden;flex-basis:100%;flex-direction:column}.modal__content{overflow-x:hidden;overflow-y:auto;min-height:100%}.modal__content ::slotted(*){margin:0}.modal__secondary-content{display:none;overflow:visible;overflow-x:hidden;overflow-y:auto;max-width:none;max-height:40%;padding-right:var(--s-space-16);padding-left:var(--s-space-16)}@media (min-width: 768px){.modal__secondary-content{padding-left:var(--s-space-24)}}@media (min-width: 992px){.modal__secondary-content{overflow-x:hidden;overflow-y:auto;max-width:24rem;max-height:none;padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:0;flex-basis:50%}}.modal__custom-footer{flex-shrink:0}.modal__controls{display:flex;padding-top:var(--s-space-16);padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);flex-shrink:0;justify-content:flex-end}@keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-fade-out{from{opacity:1}to{opacity:0}}@keyframes modal-drawer-slide-in{from{transform:translate3d(100%, 0, 0)}to{transform:translate3d(0, 0, 0)}}@keyframes modal-drawer-slide-out{from{transform:translate3d(0, 0, 0)}to{transform:translate3d(100%, 0, 0)}}`, w = class {
|
|
14
|
+
constructor(a) {
|
|
15
|
+
h(this, a), this.modalClose = d(this, "modalClose", 7), this.modalOpen = d(this, "modalOpen", 7), this.primaryAction = d(this, "primaryAction", 7), this.requestModalClose = d(this, "requestModalClose", 7), this.secondaryAction = d(this, "secondaryAction", 7), this.onKeyDown = (e) => {
|
|
16
|
+
e.code === "Escape" && this.close();
|
|
17
|
+
}, this.onBackdropClick = () => {
|
|
18
|
+
this.close();
|
|
19
|
+
}, this.onCloseButtonClick = () => {
|
|
20
|
+
this.close();
|
|
21
|
+
}, this.onPrimaryAction = (e) => {
|
|
22
|
+
this.primaryAction.emit(e);
|
|
23
|
+
}, this.onSecondaryAction = (e) => {
|
|
24
|
+
this.secondaryAction.emit(e);
|
|
25
|
+
}, this.determineScrollStatus = () => {
|
|
26
|
+
var r, l, i, n, c, m;
|
|
27
|
+
const e = ((r = this.scrollContainer) == null ? void 0 : r.scrollTop) > 0, t = Math.ceil(((l = this.scrollContainer) == null ? void 0 : l.scrollTop) + ((i = this.scrollContainer) == null ? void 0 : i.offsetHeight)) >= ((n = this.scrollContainer) == null ? void 0 : n.scrollHeight), s = ((c = this.scrollContainer) == null ? void 0 : c.scrollHeight) > ((m = this.scrollContainer) == null ? void 0 : m.offsetHeight);
|
|
28
|
+
e !== this.scrolled && (this.scrolled = e), t !== this.scrolledDown && (this.scrolledDown = t), s !== this.scrollable && (this.scrollable = s);
|
|
29
|
+
}, this.closable = !0, this.closeButtonLabel = "Close modal", this.height = void 0, this.hideCloseButton = void 0, this.hideLabel = void 0, this.label = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.padded = !0, this.primaryActionLabel = void 0, this.secondaryActionLabel = void 0, this.variant = "default", this.isOpen = !1, this.closing = !1, this.hasCustomHeader = void 0, this.hasCustomFooter = void 0, this.hasHeaderTools = void 0, this.hasSecondaryContent = void 0, this.scrollable = !1, this.scrolled = !1, this.scrolledDown = !1;
|
|
30
|
+
}
|
|
31
|
+
componentDidLoad() {
|
|
32
|
+
this.focusTrap = b(this.modalEl, {
|
|
33
|
+
allowOutsideClick: !0,
|
|
34
|
+
tabbableOptions: {
|
|
35
|
+
getShadowRoot: (a) => a.shadowRoot
|
|
36
|
+
}
|
|
37
|
+
}), this.determineScrollStatus(), queueMicrotask(() => {
|
|
38
|
+
this.updateCustomFooterStatus(), this.updateCustomHeaderStatus(), this.updateHeaderToolsStatus(), this.updateSecondaryContentStatus();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
componentDidRender() {
|
|
42
|
+
var a;
|
|
43
|
+
(a = this.focusTrap) == null || a.updateContainerElements(this.modalEl);
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
var a;
|
|
47
|
+
(a = this.focusTrap) == null || a.deactivate(), this.unlockBodyScroll();
|
|
48
|
+
}
|
|
49
|
+
onWindowResize() {
|
|
50
|
+
this.determineScrollStatus();
|
|
51
|
+
}
|
|
52
|
+
watchIsOpen() {
|
|
53
|
+
this.isOpen ? setTimeout(() => {
|
|
54
|
+
this.focusTrap.activate(), this.handleAutoFocus();
|
|
55
|
+
}, 200) : this.focusTrap.deactivate();
|
|
56
|
+
}
|
|
57
|
+
async open() {
|
|
58
|
+
this.isOpen = !0, this.modalOpen.emit(), this.lockBodyScroll(), this.determineScrollStatus();
|
|
59
|
+
}
|
|
60
|
+
async close(a) {
|
|
61
|
+
this.closing || (this.requestModalClose.emit(), !(!this.closable && !a) && (this.closing = !0, this.unlockBodyScroll(), setTimeout(() => {
|
|
62
|
+
this.isOpen = !1, this.modalClose.emit(), this.closing = !1;
|
|
63
|
+
}, 150)));
|
|
64
|
+
}
|
|
65
|
+
updateCustomFooterStatus() {
|
|
66
|
+
this.hasCustomFooter = Boolean(this.el.querySelector('[slot="custom-footer"]'));
|
|
67
|
+
}
|
|
68
|
+
updateCustomHeaderStatus() {
|
|
69
|
+
this.hasCustomHeader = Boolean(this.el.querySelector('[slot="custom-header"]'));
|
|
70
|
+
}
|
|
71
|
+
updateHeaderToolsStatus() {
|
|
72
|
+
this.hasHeaderTools = Boolean(this.el.querySelector('[slot="header-tools"]'));
|
|
73
|
+
}
|
|
74
|
+
updateSecondaryContentStatus() {
|
|
75
|
+
this.hasSecondaryContent = Boolean(this.el.querySelector('[slot="secondary-content"]'));
|
|
76
|
+
}
|
|
77
|
+
handleAutoFocus() {
|
|
78
|
+
var a;
|
|
79
|
+
(a = this.modalEl.querySelector("input[autofocus]")) == null || a.focus();
|
|
80
|
+
}
|
|
81
|
+
lockBodyScroll() {
|
|
82
|
+
f(this.scrollContainer);
|
|
83
|
+
}
|
|
84
|
+
unlockBodyScroll() {
|
|
85
|
+
v(this.scrollContainer);
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
const a = Boolean(this.primaryActionLabel) || Boolean(this.secondaryActionLabel), e = _("modal", `modal--variant-${this.variant}`, {
|
|
89
|
+
"modal--closing": this.closing,
|
|
90
|
+
"modal--has-custom-footer": this.hasCustomFooter,
|
|
91
|
+
"modal--has-custom-header": this.hasCustomHeader,
|
|
92
|
+
"modal--has-header-tools": this.hasHeaderTools,
|
|
93
|
+
"modal--has-secondary-content": this.hasSecondaryContent,
|
|
94
|
+
"modal--hide-label": this.hideLabel,
|
|
95
|
+
"modal--padded": this.padded,
|
|
96
|
+
"modal--scrollable": this.scrollable,
|
|
97
|
+
"modal--scrolled": this.scrolled,
|
|
98
|
+
"modal--scrolled-down": this.scrolledDown
|
|
99
|
+
});
|
|
100
|
+
return o(p, null, o("section", { "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: e, onKeyDown: this.onKeyDown, role: "dialog", ref: (t) => this.modalEl = t }, o("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), o("div", { class: "modal__body", style: {
|
|
101
|
+
"--swirl-modal-max-height": this.maxHeight,
|
|
102
|
+
"--swirl-modal-height": this.height,
|
|
103
|
+
maxWidth: this.maxWidth
|
|
104
|
+
} }, o("header", { class: "modal__custom-header" }, o("slot", { name: "custom-header" })), (!this.hideLabel || !this.hideCloseButton) && o("header", { class: "modal__header" }, o("div", { class: "modal__header-bar" }, !this.hideCloseButton && o("swirl-button", { class: "modal__close-button", hideLabel: !0, icon: this.variant === "default" ? "<swirl-icon-close></swirl-icon-close>" : "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), !this.hideLabel && o("swirl-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label }))), o("div", { class: "modal__content-container" }, o("div", { class: "modal__primary-content" }, o("div", { class: "modal__header-tools" }, o("slot", { name: "header-tools" })), o("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (t) => this.scrollContainer = t }, o("slot", null))), o("div", { class: "modal__secondary-content" }, o("slot", { name: "secondary-content" }))), o("div", { class: "modal__custom-footer" }, o("slot", { name: "custom-footer" })), a && o("footer", { class: "modal__controls" }, o("swirl-button-group", { wrap: !0 }, this.secondaryActionLabel && o("swirl-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && o("swirl-button", { intent: "primary", label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" }))))));
|
|
105
|
+
}
|
|
106
|
+
get el() {
|
|
107
|
+
return u(this);
|
|
108
|
+
}
|
|
109
|
+
static get watchers() {
|
|
110
|
+
return {
|
|
111
|
+
isOpen: ["watchIsOpen"]
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
w.style = g;
|
|
116
|
+
export {
|
|
117
|
+
w as swirl_modal
|
|
118
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as t, H as e } from "./index.
|
|
1
|
+
import { r as s, h as t, H as e } from "./index.ce01650f.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:block}:host *{box-sizing:border-box}.option-list-section{background-color:var(--s-surface-overlay-default)}.option-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-section__label{padding:var(--s-space-8) var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", l = class {
|
package/dist/{swirl-option-list_2.entry.45ccbce8.js → swirl-option-list_2.entry.a087cfb1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as a, h as o, H as c, g as d } from "./index.
|
|
1
|
+
import { r as h, c as a, h as o, H as c, g as d } from "./index.ce01650f.js";
|
|
2
2
|
import { c as l, q as n } from "./utils-9f141e25.a4ae3adc.js";
|
|
3
3
|
import { S as m } from "./sortable.esm-8c3d5856.57c4f048.js";
|
|
4
4
|
import { c as f } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, c as s, h as i, H as r } from "./index.
|
|
1
|
+
import { r as l, c as s, h as i, H as r } from "./index.ce01650f.js";
|
|
2
2
|
import { c as p } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { d as g } from "./utils-9f141e25.a4ae3adc.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as r, h as e, H as d, g as h } from "./index.
|
|
1
|
+
import { r as n, c as r, h as e, H as d, g as h } from "./index.ce01650f.js";
|
|
2
2
|
import { A as c } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as p, e as m } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as l } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as g, c as l, h as n, H as v, g as m } from "./index.
|
|
1
|
+
import { r as g, c as l, h as n, H as v, g as m } from "./index.ce01650f.js";
|
|
2
2
|
import { o as c, s as d, f as w, c as y, a as x } from "./floating-ui.dom.esm-ac7cc24e.79b318e4.js";
|
|
3
3
|
import { d as E, e as C } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as k } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, c as l, h as i, H as n, g as u } from "./index.
|
|
1
|
+
import { r as o, c as l, h as i, H as n, g as u } from "./index.ce01650f.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const d = ".sc-swirl-radio-group-h{display:block}.sc-swirl-radio-group-h *.sc-swirl-radio-group{box-sizing:border-box}.radio-group.sc-swirl-radio-group{display:flex;flex-direction:column;gap:var(--s-space-12)}", h = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as c, c as n, h as e, H as a } from "./index.
|
|
1
|
+
import { r as c, c as n, h as e, H as a } from "./index.ce01650f.js";
|
|
2
2
|
import { c as m } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { g as u } from "./utils-9f141e25.a4ae3adc.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as u, c as h, h as s, H as w, g as v } from "./index.
|
|
1
|
+
import { r as u, c as h, h as s, H as w, g as v } from "./index.ce01650f.js";
|
|
2
2
|
import { c as m } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as _ } from "./utils-9f141e25.a4ae3adc.js";
|
|
4
4
|
import "react";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { r as t, c as s, h as l, H as r } from "./index.ce01650f.js";
|
|
2
|
+
import { c as n } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { c as d } from "./focus-trap.esm-37cd2d2b.724cca66.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const h = `.sc-swirl-shell-layout-h{--swirl-shell-background:var(--s-surface-sunken-default);--swirl-shell-text-color:var(--s-text-default);--swirl-shell-header-height:3.25rem;--swirl-shell-collapsed-nav-width:3.75rem;--swirl-shell-extended-nav-width:14rem;--swirl-shell-sidebar-width:21rem;display:flex;width:100%;height:100%}.sc-swirl-shell-layout-h *.sc-swirl-shell-layout{box-sizing:border-box}.shell-layout.sc-swirl-shell-layout{display:grid;width:100%;min-height:100%;background-color:var(--swirl-shell-background);transition:grid-template-columns 0.2s;grid-template-columns:0 1fr 0;grid-template-rows:1fr;grid-template-areas:"nav main"}@media (min-width: 992px){.shell-layout.sc-swirl-shell-layout{padding-right:var(--s-space-8);padding-bottom:var(--s-space-8);gap:var(--s-space-8);grid-template-columns:var(--swirl-shell-extended-nav-width) 1fr 0;grid-template-rows:var(--swirl-shell-header-height) 1fr;grid-template-areas:"header header header"
|
|
7
|
+
"nav main sidebar"}}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout{border-bottom:none;color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout{color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:hover{background-color:var(--s-action-primary-hovered)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:active{background-color:var(--s-action-primary-pressed)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout swirl-badge.sc-swirl-shell-layout{--swirl-badge-border-color:var(--s-action-primary-default)}.shell-layout--navigation-collapsed.sc-swirl-shell-layout .shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-double-arrow-left.sc-swirl-shell-layout{display:none}.shell-layout--navigation-collapsed.sc-swirl-shell-layout .shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-double-arrow-right.sc-swirl-shell-layout{display:inline-flex}@media (min-width: 992px){.shell-layout--navigation-collapsed.sc-swirl-shell-layout{grid-template-columns:var(--swirl-shell-collapsed-nav-width) 1fr 0}}@media (min-width: 1440px){.shell-layout--sidebar-active.shell-layout--navigation-collapsed.sc-swirl-shell-layout{grid-template-columns:var(--swirl-shell-collapsed-nav-width) 1fr var(
|
|
8
|
+
--swirl-shell-sidebar-width
|
|
9
|
+
)}}@media (min-width: 1440px){.shell-layout--sidebar-active.sc-swirl-shell-layout .shell-layout__main.sc-swirl-shell-layout{width:100%}}@media (min-width: 992px){.shell-layout--sidebar-active.sc-swirl-shell-layout .shell-layout__sidebar-body.sc-swirl-shell-layout{border:0.0625rem solid var(--s-border-default);transform:translate3d(0, 0, 0)}}@media (min-width: 1440px){.shell-layout--sidebar-active.sc-swirl-shell-layout{grid-template-columns:var(--swirl-shell-extended-nav-width) 1fr var(
|
|
10
|
+
--swirl-shell-sidebar-width
|
|
11
|
+
)}}.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__nav.sc-swirl-shell-layout{transform:translate3d(0, 0, 0);box-shadow:var(--s-shadow-level-3)}@media (min-width: 992px){.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__nav.sc-swirl-shell-layout{transform:none;box-shadow:none}}.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__mobile-nav-backdrop.sc-swirl-shell-layout{display:block}@media (min-width: 992px){.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__mobile-nav-backdrop.sc-swirl-shell-layout{display:none}}.shell-layout__header.sc-swirl-shell-layout{position:relative;display:none;width:calc(100% + var(--s-space-8));padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);justify-content:space-between;align-items:center;border-bottom:0.0625rem solid var(--s-border-default);color:var(--swirl-shell-text-color);grid-area:header}@media (min-width: 992px){.shell-layout__header.sc-swirl-shell-layout{display:flex}}.shell-layout__skip-link.sc-swirl-shell-layout{position:absolute;z-index:9;top:0;left:0;padding:var(--s-space-4);border:none;color:var(--swirl-shell-text-color);background-color:var(--swirl-shell-background);font:inherit;cursor:pointer}.shell-layout__skip-link.sc-swirl-shell-layout:not(:focus):not(:active){position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%)}.shell-layout__header-left.sc-swirl-shell-layout{display:flex;flex-basis:8rem;flex-shrink:0;gap:var(--s-space-8)}.shell-layout__header-right.sc-swirl-shell-layout{display:flex;flex-basis:8rem;flex-shrink:0;justify-content:flex-end;align-items:center;gap:var(--s-space-8)}.shell-layout__logo.sc-swirl-shell-layout{display:flex;flex-grow:1;justify-content:center;align-items:center}.shell-layout__logo.sc-swirl-shell-layout-s>img{max-height:1.75rem}.shell-layout__header-tool.sc-swirl-shell-layout{position:relative;width:2.25rem;height:2.25rem;padding:var(--s-space-8);border:none;border-radius:var(--s-border-radius-sm);color:var(--swirl-shell-text-color);background-color:var(--s-surface-sunken-default);font:inherit;cursor:pointer}.shell-layout__header-tool.sc-swirl-shell-layout:hover{background-color:var(--s-surface-sunken-hovered)}.shell-layout__header-tool.sc-swirl-shell-layout:active{background-color:var(--s-surface-sunken-pressed)}.shell-layout__header-tool.sc-swirl-shell-layout:focus{outline:none}.shell-layout__header-tool.sc-swirl-shell-layout:focus-visible{box-shadow:0 0 0 0.125rem var(--s-focus-default)}.shell-layout__header-tool.sc-swirl-shell-layout swirl-badge.sc-swirl-shell-layout{--swirl-badge-border-color:var(--s-surface-sunken-default);position:absolute;right:0;bottom:0;transform:translate3d(0.1875rem, 0, 0)}.shell-layout__sidebar-toggle.sc-swirl-shell-layout{display:none}@media (min-width: 992px){.shell-layout__sidebar-toggle.sc-swirl-shell-layout{display:block}}.shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-menu.sc-swirl-shell-layout{display:none}.shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-double-arrow-left.sc-swirl-shell-layout{display:inline-flex}.shell-layout__navigation-toggle.sc-swirl-shell-layout swirl-icon-double-arrow-right.sc-swirl-shell-layout,.shell-layout__navigation-toggle.sc-swirl-shell-layout swirl-icon-double-arrow-left.sc-swirl-shell-layout{display:none}.shell-layout__nav.sc-swirl-shell-layout{position:fixed;z-index:9;top:0;bottom:0;left:0;overflow:auto;width:100%;max-width:18.75rem;color:var(--swirl-shell-text-color);background-color:var(--s-surface-overlay-default);transition:transform 0.2s, box-shadow 0.2s;transform:translate3d(-100%, 0, 0);grid-area:nav}@media (min-width: 992px){.shell-layout__nav.sc-swirl-shell-layout{position:static;max-width:none;padding-top:0;padding-right:var(--s-space-4);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);background-color:var(--swirl-shell-background);transform:none;box-shadow:none;inset:auto}}.shell-layout__mobile-header.sc-swirl-shell-layout{display:flex;min-height:3.5rem;margin-bottom:var(--s-space-8);padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);justify-content:space-between;align-items:center;border-bottom:0.0625rem solid var(--s-border-default)}.shell-layout__mobile-header.sc-swirl-shell-layout-s>img{max-height:1.75rem}.shell-layout__mobile-header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout{background-color:var(--s-surface-overlay-default)}.shell-layout__mobile-header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:hover{background-color:var(--s-surface-overlay-hovered)}.shell-layout__mobile-header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:active{background-color:var(--s-surface-overlay-pressed)}@media (min-width: 992px){.shell-layout__mobile-header.sc-swirl-shell-layout{display:none}}.shell-layout__mobile-header-tools.sc-swirl-shell-layout{display:flex;justify-content:flex-end;align-items:center;gap:var(--s-space-8)}.shell-layout__nav-body.sc-swirl-shell-layout{padding:var(--s-space-8)}.shell-layout__nav-body.sc-swirl-shell-layout-s ul{margin:0;padding:0;list-style:none}.shell-layout__nav-body.sc-swirl-shell-layout-s li{display:flex}@media (min-width: 992px){.shell-layout__nav-body.sc-swirl-shell-layout{padding:0}}.shell-layout__mobile-nav-backdrop.sc-swirl-shell-layout{position:fixed;z-index:8;display:none;background-color:rgba(0, 0, 0, 0.25);animation:shell-layout-backdrop-fade-in 0.2s;inset:0}.shell-layout__main.sc-swirl-shell-layout{overflow:hidden;grid-area:main}@media (min-width: 992px){.shell-layout__main.sc-swirl-shell-layout{width:calc(100% + var(--s-space-8));border:0.0625rem solid var(--s-border-default);border-radius:var(--s-border-radius-sm)}}.shell-layout__sidebar.sc-swirl-shell-layout{position:relative;display:none;grid-area:sidebar}@media (min-width: 992px){.shell-layout__sidebar.sc-swirl-shell-layout{display:block}}@media (min-width: 1440px){.shell-layout__sidebar.sc-swirl-shell-layout{overflow:hidden}}.shell-layout__sidebar-body.sc-swirl-shell-layout{z-index:1;display:flex;width:var(--swirl-shell-sidebar-width);height:100%;border-radius:var(--s-border-radius-sm);background-color:var(--s-background-default);flex-direction:column}@media (min-width: 992px){.shell-layout__sidebar-body.sc-swirl-shell-layout{position:absolute;top:0;right:0;bottom:0;transition:transform 0.2s;transform:translate3d(calc(100% + var(--s-space-24)), 0, 0);box-shadow:var(--s-shadow-level-3)}}@media (min-width: 1440px){.shell-layout__sidebar-body.sc-swirl-shell-layout{position:relative;transform:none;box-shadow:none;inset:auto}}.shell-layout__sidebar-app-bar.sc-swirl-shell-layout{flex-grow:0;flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.shell-layout__sidebar-content.sc-swirl-shell-layout{overflow:auto;flex-grow:1}@keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}`, i = "SWIRL_SHELL_NAVIGATION_COLLAPSE_STATE", o = "SWIRL_SHELL_SIDEBAR_STATE", c = class {
|
|
12
|
+
constructor(e) {
|
|
13
|
+
t(this, e), this.sidebarToggleClick = s(this, "sidebarToggleClick", 7), this.skipLinkClick = s(this, "skipLinkClick", 7), this.onBrowserBackClick = () => {
|
|
14
|
+
history.back();
|
|
15
|
+
}, this.onBrowserForwardClick = () => {
|
|
16
|
+
history.forward();
|
|
17
|
+
}, this.onNavigationToggleClick = () => {
|
|
18
|
+
this.navigationCollapsed = !this.navigationCollapsed;
|
|
19
|
+
}, this.onNavigationClick = () => {
|
|
20
|
+
this.hideMobileNavigation();
|
|
21
|
+
}, this.brandedHeader = void 0, this.browserBackButtonLabel = "Navigate back", this.browserForwardButtonLabel = "Navigate forward", this.hideMobileNavigationButtonLabel = "Close navigation", this.navigationLabel = "Main", this.navigationToggleLabel = "Toggle navigation", this.sidebarActive = void 0, this.sidebarToggleBadge = void 0, this.sidebarToggleBadgeAriaLabel = void 0, this.sidebarToggleIcon = "notifications", this.sidebarToggleLabel = "Toggle sidebar", this.skipLinkLabel = "Skip to main content", this.mobileNavigationActive = void 0, this.navigationCollapsed = void 0;
|
|
22
|
+
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
const e = localStorage.getItem(o) === "true";
|
|
25
|
+
this.sidebarActive = this.sidebarActive === void 0 ? e : this.sidebarActive;
|
|
26
|
+
const a = localStorage.getItem(i) === "true";
|
|
27
|
+
this.navigationCollapsed = a;
|
|
28
|
+
}
|
|
29
|
+
componentDidLoad() {
|
|
30
|
+
this.focusTrap = d(this.navElement, {
|
|
31
|
+
allowOutsideClick: !0,
|
|
32
|
+
tabbableOptions: {
|
|
33
|
+
getShadowRoot: (e) => e.shadowRoot
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
componentDidRender() {
|
|
38
|
+
var e;
|
|
39
|
+
(e = this.focusTrap) == null || e.updateContainerElements(this.navElement);
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
var e;
|
|
43
|
+
(e = this.focusTrap) == null || e.deactivate();
|
|
44
|
+
}
|
|
45
|
+
onWindowKeyDown(e) {
|
|
46
|
+
e.key === "Escape" && this.mobileNavigationActive && this.hideMobileNavigation();
|
|
47
|
+
}
|
|
48
|
+
watchMobileNavigationState() {
|
|
49
|
+
this.mobileNavigationActive ? setTimeout(() => {
|
|
50
|
+
this.focusTrap.activate();
|
|
51
|
+
}, 200) : this.focusTrap.deactivate();
|
|
52
|
+
}
|
|
53
|
+
watchNavigationCollapsed() {
|
|
54
|
+
localStorage.setItem(i, String(this.navigationCollapsed));
|
|
55
|
+
}
|
|
56
|
+
watchSidebarActive() {
|
|
57
|
+
localStorage.setItem(o, String(this.sidebarActive));
|
|
58
|
+
}
|
|
59
|
+
async showMobileNavigation() {
|
|
60
|
+
this.mobileNavigationActive = !0;
|
|
61
|
+
}
|
|
62
|
+
async hideMobileNavigation() {
|
|
63
|
+
this.mobileNavigationActive = !1;
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
const e = n("shell-layout", {
|
|
67
|
+
"shell-layout--branded-header": this.brandedHeader,
|
|
68
|
+
"shell-layout--mobile-navigation-active": this.mobileNavigationActive,
|
|
69
|
+
"shell-layout--navigation-collapsed": this.navigationCollapsed,
|
|
70
|
+
"shell-layout--sidebar-active": this.sidebarActive
|
|
71
|
+
});
|
|
72
|
+
return l(r, null, l("div", { class: e }, l("header", { class: "shell-layout__header", "data-tauri-drag-region": "true" }, l("button", { class: "shell-layout__skip-link", onClick: this.skipLinkClick.emit, type: "button" }, this.skipLinkLabel), l("div", { class: "shell-layout__header-left" }, l("button", { class: "shell-layout__header-tool shell-layout__navigation-toggle", onClick: this.onNavigationToggleClick, type: "button" }, l("swirl-icon-menu", { size: 20 }), l("swirl-icon-double-arrow-left", { size: 20 }), l("swirl-icon-double-arrow-right", { size: 20 }), l("swirl-visually-hidden", null, this.navigationToggleLabel)), l("button", { class: "shell-layout__header-tool", onClick: this.onBrowserBackClick, type: "button" }, l("swirl-icon-arrow-back", { size: 20 }), l("swirl-visually-hidden", null, this.browserBackButtonLabel)), l("button", { class: "shell-layout__header-tool", onClick: this.onBrowserForwardClick, type: "button" }, l("swirl-icon-arrow-forward", { size: 20 }), l("swirl-visually-hidden", null, this.browserForwardButtonLabel))), l("div", { class: "shell-layout__logo" }, l("slot", { name: "logo" })), l("div", { class: "shell-layout__header-right" }, l("button", { class: "shell-layout__header-tool shell-layout__sidebar-toggle", onClick: this.sidebarToggleClick.emit, type: "button" }, l("swirl-icon", { glyph: this.sidebarToggleIcon, size: 20 }), l("swirl-visually-hidden", null, this.sidebarToggleLabel), this.sidebarToggleBadge && l("swirl-badge", { "aria-label": this.sidebarToggleBadgeAriaLabel, label: this.sidebarToggleBadge, size: "xs" })), l("slot", { name: "header-tools" }))), l("div", { class: "shell-layout__mobile-nav-backdrop", onClick: this.onNavigationClick }), l("nav", { "aria-labelledby": "main-navigation-label", class: "shell-layout__nav", onClick: this.onNavigationClick, ref: (a) => this.navElement = a }, l("div", { class: "shell-layout__mobile-header" }, l("slot", { name: "mobile-logo" }), l("div", { class: "shell-layout__mobile-header-tools" }, l("slot", { name: "mobile-header-tools" }), l("button", { class: "shell-layout__header-tool", type: "button" }, l("swirl-icon-double-arrow-left", { size: 20 }), l("swirl-visually-hidden", null, this.hideMobileNavigationButtonLabel)))), l("div", { class: "shell-layout__nav-body" }, l("swirl-visually-hidden", null, l("span", { id: "main-navigation-label" }, this.navigationLabel)), l("slot", { name: "nav" }))), l("main", { class: "shell-layout__main", id: "main-content" }, l("slot", null)), l("aside", { class: "shell-layout__sidebar" }, l("div", { class: "shell-layout__sidebar-body" }, l("div", { class: "shell-layout__sidebar-app-bar" }, l("slot", { name: "sidebar-app-bar" })), l("div", { class: "shell-layout__sidebar-content" }, l("slot", { name: "sidebar" }))))));
|
|
73
|
+
}
|
|
74
|
+
static get watchers() {
|
|
75
|
+
return {
|
|
76
|
+
mobileNavigationActive: ["watchMobileNavigationState"],
|
|
77
|
+
navigationCollapsed: ["watchNavigationCollapsed"],
|
|
78
|
+
sidebarActive: ["watchSidebarActive"]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
c.style = h;
|
|
83
|
+
export {
|
|
84
|
+
c as swirl_shell_layout
|
|
85
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as a, h as n, H as s, g as t } from "./index.ce01650f.js";
|
|
2
2
|
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,83 +7,90 @@ const r = `/**
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
:host {
|
|
10
|
-
container-type: inline-size;
|
|
11
10
|
position: relative;
|
|
12
11
|
display: inline-flex;
|
|
13
12
|
width: 100%;
|
|
14
|
-
height:
|
|
15
|
-
padding
|
|
16
|
-
padding-left: var(--s-space-12);
|
|
13
|
+
height: 2.75rem;
|
|
14
|
+
padding: var(--s-space-12);
|
|
17
15
|
flex-shrink: 0;
|
|
18
16
|
justify-content: flex-start;
|
|
19
17
|
align-items: center;
|
|
20
|
-
|
|
21
|
-
background-color: var(--s-
|
|
18
|
+
border-radius: var(--s-border-radius-sm);
|
|
19
|
+
background-color: var(--s-surface-overlay-default);
|
|
22
20
|
font-size: var(--s-font-size-sm);
|
|
23
21
|
font-weight: var(--s-font-weight-medium);
|
|
24
22
|
line-height: var(--s-line-height-sm);
|
|
25
23
|
cursor: pointer;
|
|
26
|
-
|
|
24
|
+
container-type: inline-size;
|
|
25
|
+
gap: var(--s-space-16);
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
:host(:hover) {
|
|
30
|
-
background-color: var(--s-
|
|
29
|
+
background-color: var(--s-surface-sunken-hovered);
|
|
31
30
|
}
|
|
32
31
|
|
|
32
|
+
:host(:hover) .shell-navigation-item__badge {
|
|
33
|
+
--swirl-badge-border-color: var(--s-surface-sunken-hovered);
|
|
34
|
+
}
|
|
35
|
+
|
|
33
36
|
:host(:active) {
|
|
34
|
-
background-color: var(--s-
|
|
35
|
-
color: var(--s-text-highlight);
|
|
37
|
+
background-color: var(--s-surface-sunken-pressed);
|
|
36
38
|
}
|
|
37
39
|
|
|
40
|
+
:host(:active) .shell-navigation-item__badge {
|
|
41
|
+
--swirl-badge-border-color: var(--s-surface-sunken-pressed);
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
:host(:focus) {
|
|
39
45
|
outline: none;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
|
-
:host(:focus-visible)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
:host(:focus-visible) {
|
|
49
|
+
z-index: 1;
|
|
50
|
+
box-shadow: 0 0 0 0.125rem var(--s-focus-default);
|
|
51
|
+
}
|
|
46
52
|
|
|
47
53
|
:host(.shell-navigation-item--active) {
|
|
48
|
-
color: var(--s-
|
|
49
|
-
background-color: var(--s-surface-raised-default);
|
|
54
|
+
background-color: var(--s-surface-sunken-hovered);
|
|
50
55
|
}
|
|
51
56
|
|
|
57
|
+
:host(.shell-navigation-item--active) .shell-navigation-item__badge {
|
|
58
|
+
--swirl-badge-border-color: var(--s-surface-sunken-hovered);
|
|
59
|
+
}
|
|
60
|
+
|
|
52
61
|
:host(.shell-navigation-item--active:hover) {
|
|
53
|
-
background-color: var(--s-surface-
|
|
62
|
+
background-color: var(--s-surface-sunken-hovered);
|
|
54
63
|
}
|
|
55
64
|
|
|
65
|
+
:host(.shell-navigation-item--active:hover) .shell-navigation-item__badge {
|
|
66
|
+
--swirl-badge-border-color: var(--s-surface-sunken-hovered);
|
|
67
|
+
}
|
|
68
|
+
|
|
56
69
|
:host(.shell-navigation-item--active:active) {
|
|
57
|
-
background-color: var(--s-surface-
|
|
58
|
-
color: var(--s-text-highlight);
|
|
70
|
+
background-color: var(--s-surface-sunken-pressed);
|
|
59
71
|
}
|
|
60
72
|
|
|
73
|
+
:host(.shell-navigation-item--active:active) .shell-navigation-item__badge {
|
|
74
|
+
--swirl-badge-border-color: var(--s-surface-sunken-pressed);
|
|
75
|
+
}
|
|
76
|
+
|
|
61
77
|
:host * {
|
|
62
78
|
box-sizing: border-box;
|
|
63
79
|
}
|
|
64
80
|
|
|
65
|
-
:
|
|
66
|
-
content: "";
|
|
67
|
-
display: none;
|
|
68
|
-
position: absolute;
|
|
69
|
-
left: 0;
|
|
70
|
-
height: 2.5rem;
|
|
71
|
-
width: 4px;
|
|
72
|
-
background-color: var(--s-icon-highlight);
|
|
73
|
-
border-top-right-radius: 4px;
|
|
74
|
-
border-bottom-right-radius: 4px;
|
|
75
|
-
}
|
|
81
|
+
@media (min-width: 992px) {
|
|
76
82
|
|
|
77
|
-
:host
|
|
78
|
-
|
|
83
|
+
:host {
|
|
84
|
+
background-color: var(--s-surface-sunken-default)
|
|
79
85
|
}
|
|
86
|
+
}
|
|
80
87
|
|
|
81
88
|
.shell-navigation-item__icon {
|
|
82
89
|
display: inline-flex;
|
|
90
|
+
min-width: 1.25rem;
|
|
91
|
+
min-height: 1.25rem;
|
|
83
92
|
justify-content: center;
|
|
84
93
|
align-items: center;
|
|
85
|
-
min-width: 2.5rem;
|
|
86
|
-
min-height: 2.5rem;
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
.shell-navigation-item__label {
|
|
@@ -93,6 +100,10 @@ const r = `/**
|
|
|
93
100
|
text-overflow: ellipsis;
|
|
94
101
|
}
|
|
95
102
|
|
|
103
|
+
.shell-navigation-item__badge {
|
|
104
|
+
--swirl-badge-border-color: var(--swirl-shell-background);
|
|
105
|
+
}
|
|
106
|
+
|
|
96
107
|
@container (max-width: 4rem) {
|
|
97
108
|
.shell-navigation-item__label {
|
|
98
109
|
display: none;
|
|
@@ -100,8 +111,8 @@ const r = `/**
|
|
|
100
111
|
|
|
101
112
|
.shell-navigation-item__badge {
|
|
102
113
|
position: absolute;
|
|
103
|
-
bottom: 0;
|
|
104
114
|
right: var(--s-space-4);
|
|
115
|
+
bottom: 0;
|
|
105
116
|
}
|
|
106
117
|
}
|
|
107
118
|
|
|
@@ -113,7 +124,7 @@ const r = `/**
|
|
|
113
124
|
}
|
|
114
125
|
`, l = class {
|
|
115
126
|
constructor(e) {
|
|
116
|
-
|
|
127
|
+
a(this, e), this.onKeyDown = (i) => {
|
|
117
128
|
i.code === "Enter" && (i.preventDefault(), this.el.click());
|
|
118
129
|
}, this.active = void 0, this.badgeLabel = void 0, this.label = void 0;
|
|
119
130
|
}
|
|
@@ -121,10 +132,10 @@ const r = `/**
|
|
|
121
132
|
const e = o("shell-navigation-item", {
|
|
122
133
|
"shell-navigation-item--active": this.active
|
|
123
134
|
});
|
|
124
|
-
return n(
|
|
135
|
+
return n(s, { class: e, onKeyDown: this.onKeyDown, role: "link", tabIndex: 0 }, n("span", { class: "shell-navigation-item__icon" }, n("slot", { name: "icon" })), n("span", { class: "shell-navigation-item__label" }, this.label), this.badgeLabel && n("swirl-badge", { class: "shell-navigation-item__badge", size: "s", "aria-label": this.badgeLabel, label: this.badgeLabel }));
|
|
125
136
|
}
|
|
126
137
|
get el() {
|
|
127
|
-
return
|
|
138
|
+
return t(this);
|
|
128
139
|
}
|
|
129
140
|
};
|
|
130
141
|
l.style = r;
|