@getflip/swirl-components-react 0.77.1 → 0.78.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.44e62adf.js → file-manager.entry.28a16d7e.js} +4 -4
- package/dist/{index.51adadce.js → index.d4f681a9.js} +250 -249
- package/dist/stencil-generated/index.d.ts +1 -0
- package/dist/{swirl-action-list-section.entry.f454ad40.js → swirl-action-list-section.entry.5b1683c9.js} +1 -1
- package/dist/{swirl-action-list_3.entry.5f8b168b.js → swirl-action-list_3.entry.62b0ce9e.js} +1 -1
- package/dist/{swirl-app-bar.entry.ca129de3.js → swirl-app-bar.entry.784bf7f2.js} +1 -1
- package/dist/{swirl-app-icon.entry.2ca8cbfc.js → swirl-app-icon.entry.d033bc6c.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.c50049d7.js → swirl-app-layout_7.entry.712a1693.js} +5 -5
- package/dist/{swirl-autocomplete.entry.80568694.js → swirl-autocomplete.entry.86fe08e0.js} +1 -1
- package/dist/{swirl-avatar-group.entry.e11c2b3d.js → swirl-avatar-group.entry.8803820f.js} +1 -1
- package/dist/{swirl-avatar.entry.be09b101.js → swirl-avatar.entry.228ce860.js} +1 -1
- package/dist/{swirl-badge.entry.4a0137fb.js → swirl-badge.entry.a6cb9e34.js} +1 -1
- package/dist/{swirl-banner.entry.850f44ab.js → swirl-banner.entry.f2ba7d02.js} +1 -1
- package/dist/{swirl-button-group.entry.da999e13.js → swirl-button-group.entry.aed4a778.js} +1 -1
- package/dist/{swirl-button.entry.25062f89.js → swirl-button.entry.49885dcd.js} +4 -4
- package/dist/{swirl-card.entry.7b328b47.js → swirl-card.entry.1ae5edf7.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.36b7e66d.js → swirl-carousel-slide.entry.df5dc8f1.js} +1 -1
- package/dist/{swirl-carousel.entry.a73e6911.js → swirl-carousel.entry.61c61d24.js} +1 -1
- package/dist/{swirl-checkbox.entry.1eb667d4.js → swirl-checkbox.entry.65629e91.js} +1 -1
- package/dist/{swirl-chip.entry.a8c2b898.js → swirl-chip.entry.dd477f1d.js} +1 -1
- package/dist/{swirl-columns.entry.cf31fa97.js → swirl-columns.entry.533cceed.js} +1 -1
- package/dist/swirl-components-react.js +181 -180
- package/dist/swirl-components-react.umd.cjs +50 -50
- package/dist/{swirl-console-layout.entry.d1834b42.js → swirl-console-layout.entry.3a831b36.js} +1 -1
- package/dist/{swirl-date-input.entry.eaca736d.js → swirl-date-input.entry.83f9033d.js} +11 -11
- package/dist/{swirl-date-picker_2.entry.9527705a.js → swirl-date-picker_2.entry.001b5909.js} +1 -1
- package/dist/{swirl-description-list-item.entry.73997381.js → swirl-description-list-item.entry.eaa3a8ed.js} +1 -1
- package/dist/{swirl-description-list.entry.01c15128.js → swirl-description-list.entry.a7909f75.js} +1 -1
- package/dist/{swirl-dialog.entry.9567e12a.js → swirl-dialog.entry.5f4055ae.js} +1 -1
- package/dist/{swirl-file-uploader.entry.c7b6f4fe.js → swirl-file-uploader.entry.577384c5.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.b1e4282b.js → swirl-file-viewer_7.entry.9237b96a.js} +1 -1
- package/dist/{swirl-form-control.entry.0341afe3.js → swirl-form-control.entry.90389620.js} +1 -1
- package/dist/{swirl-form-group.entry.12e4aac6.js → swirl-form-group.entry.d9d069e4.js} +1 -1
- package/dist/{swirl-heading.entry.7681dda9.js → swirl-heading.entry.bbd702bc.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.ef5352d7.js → swirl-icon-add-photo.entry.11f8010d.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.6c73f039.js → swirl-icon-add_6.entry.f52f79a2.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.b0b3d019.js → swirl-icon-admin-panel-settings.entry.59c43ff4.js} +1 -1
- package/dist/{swirl-icon-ai.entry.e2ffad8c.js → swirl-icon-ai.entry.7f9aaca7.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.e3d9c439.js → swirl-icon-arrow-back.entry.79aceb0d.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.402f29de.js → swirl-icon-arrow-downward_2.entry.1bc1be07.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.2138cb29.js → swirl-icon-arrow-forward.entry.e9db1de9.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.4c84bc76.js → swirl-icon-arrow-left_4.entry.9979937e.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.398cfe13.js → swirl-icon-arrow-right-small.entry.aaf0dfdd.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.5cd6ee4c.js → swirl-icon-attachment.entry.2672cee1.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.5e1eb121.js → swirl-icon-bar-chart.entry.cf122a12.js} +1 -1
- package/dist/{swirl-icon-block.entry.2f59c5f6.js → swirl-icon-block.entry.b8d84022.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.cd5ab102.js → swirl-icon-bookmark.entry.c4798652.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.1afdd6f5.js → swirl-icon-cancel_4.entry.53cc3c95.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.91d70139.js → swirl-icon-chat-bubble.entry.55b70cb7.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.30acd4cf.js → swirl-icon-chats-filled.entry.968888f1.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.13aedf65.js → swirl-icon-chats-outlined.entry.2d72482f.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.dba10c6c.js → swirl-icon-check-circle_3.entry.54163513.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.5b48214c.js → swirl-icon-check-small_3.entry.7c5d0b65.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.1cd14f93.js → swirl-icon-check-strong.entry.3fd93764.js} +1 -1
- package/dist/{swirl-icon-check.entry.23d8b882.js → swirl-icon-check.entry.5a6c0cf8.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.90aaa23a.js → swirl-icon-chevron-left.entry.7fd51eba.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.4f1bc15e.js → swirl-icon-chevron-right.entry.879810a5.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.f11fdcb3.js → swirl-icon-close-small.entry.49cdeb68.js} +1 -1
- package/dist/{swirl-icon-close.entry.17e97e63.js → swirl-icon-close.entry.abf64fd3.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.153a945a.js → swirl-icon-cloud-upload.entry.5491d3e8.js} +1 -1
- package/dist/{swirl-icon-column.entry.0e91f6c7.js → swirl-icon-column.entry.d7e54799.js} +1 -1
- package/dist/{swirl-icon-comment.entry.1d89666e.js → swirl-icon-comment.entry.13ed0fc6.js} +1 -1
- package/dist/{swirl-icon-copy.entry.9639a698.js → swirl-icon-copy.entry.aef977f8.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.2abce0c3.js → swirl-icon-date-range.entry.4f0f9033.js} +1 -1
- package/dist/{swirl-icon-delete.entry.a7d6cefd.js → swirl-icon-delete.entry.6d03a3d5.js} +1 -1
- package/dist/{swirl-icon-description.entry.45a8e76d.js → swirl-icon-description.entry.803d131c.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.a46a873b.js → swirl-icon-double-arrow-left.entry.aa02365b.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.50197f37.js → swirl-icon-double-arrow-right.entry.2ed91631.js} +1 -1
- package/dist/{swirl-icon-download.entry.0d721fcf.js → swirl-icon-download.entry.d0412f18.js} +1 -1
- package/dist/{swirl-icon-edit.entry.db76901a.js → swirl-icon-edit.entry.c377d0ac.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.343c1f18.js → swirl-icon-emoji-mood.entry.ac7b3323.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.be0f1293.js → swirl-icon-emoji-satisfied.entry.e6a9354f.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.0eacef64.js → swirl-icon-error_3.entry.ea48bd7e.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.eaa4e1d6.js → swirl-icon-expand-more.entry.324f5555.js} +1 -1
- package/dist/{swirl-icon-filter.entry.eeecf76f.js → swirl-icon-filter.entry.4bf9e43f.js} +1 -1
- package/dist/{swirl-icon-folder.entry.fa2506a1.js → swirl-icon-folder.entry.f4bfc08a.js} +1 -1
- package/dist/{swirl-icon-gif.entry.c57af2a3.js → swirl-icon-gif.entry.1ed5621d.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.df8848e2.js → swirl-icon-group-assign.entry.693dd5d6.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.e06098a1.js → swirl-icon-groups-custom.entry.6781dcbe.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.d511b8bc.js → swirl-icon-groups-filled.entry.41177d3c.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.d00d877c.js → swirl-icon-groups-outlined.entry.cfdeb98e.js} +1 -1
- package/dist/{swirl-icon-groups.entry.da14c5f4.js → swirl-icon-groups.entry.c15cf66e.js} +1 -1
- package/dist/{swirl-icon-help.entry.dbb4ec8c.js → swirl-icon-help.entry.25128ac1.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.19d11dd7.js → swirl-icon-highlight.entry.7fcf9a8a.js} +1 -1
- package/dist/{swirl-icon-home.entry.500d31a5.js → swirl-icon-home.entry.e3256f07.js} +1 -1
- package/dist/{swirl-icon-image.entry.483b19ee.js → swirl-icon-image.entry.2062f77f.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.81f08246.js → swirl-icon-improve-text.entry.65b64378.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.7d1681bb.js → swirl-icon-insert-below.entry.577f5666.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.ee95ae0e.js → swirl-icon-insert-on-top.entry.4e2a5e58.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.1607c85e.js → swirl-icon-inventory.entry.644227ed.js} +1 -1
- package/dist/{swirl-icon-like.entry.31885eae.js → swirl-icon-like.entry.0b18d5fc.js} +1 -1
- package/dist/{swirl-icon-link.entry.0476ef27.js → swirl-icon-link.entry.9546ae99.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.9f6c2159.js → swirl-icon-lock-person.entry.693d54b7.js} +1 -1
- package/dist/{swirl-icon-lock.entry.36b99d3b.js → swirl-icon-lock.entry.ff40d0d0.js} +1 -1
- package/dist/{swirl-icon-logout.entry.7b5f6e02.js → swirl-icon-logout.entry.9a842ac4.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.ebbacc69.js → swirl-icon-long-text.entry.da1d4e2c.js} +1 -1
- package/dist/{swirl-icon-mail.entry.8f1f7d8b.js → swirl-icon-mail.entry.4cbc6445.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.ca0b3a64.js → swirl-icon-manage-accounts.entry.1ffde364.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.743ec0e6.js → swirl-icon-mark-chat-read.entry.c24425a6.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.f2584725.js → swirl-icon-mark-chat-unread.entry.65c13523.js} +1 -1
- package/dist/{swirl-icon-mention.entry.5d837b01.js → swirl-icon-mention.entry.3156d46f.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.adb97300.js → swirl-icon-menu-filled.entry.c5c766b9.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.b1419e8a.js → swirl-icon-menu-outlined.entry.e1154b8d.js} +1 -1
- package/dist/{swirl-icon-menu.entry.08216c87.js → swirl-icon-menu.entry.d8025394.js} +1 -1
- package/dist/{swirl-icon-message.entry.edaef37c.js → swirl-icon-message.entry.51cec3c6.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.9ef3cbb7.js → swirl-icon-more-horizontal.entry.effec5b1.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.e6769e71.js → swirl-icon-news-filled.entry.b6b9941d.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.288dad3a.js → swirl-icon-news-outlined.entry.b2790651.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.51899c91.js → swirl-icon-notifications-active.entry.82ef8499.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.48590f61.js → swirl-icon-notifications-off.entry.fde2b7c7.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.3497823f.js → swirl-icon-notifications.entry.1ff8f8ac.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.12ba495b.js → swirl-icon-open-in-new.entry.a2619794.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.62af5ae7.js → swirl-icon-people-alt.entry.0c2672e4.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.5b7d29cd.js → swirl-icon-person-off.entry.f1b2c56f.js} +1 -1
- package/dist/{swirl-icon-person.entry.22dc5337.js → swirl-icon-person.entry.ba5dcd9c.js} +1 -1
- package/dist/{swirl-icon-phone.entry.6c724a6c.js → swirl-icon-phone.entry.ebc67537.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.48dba4d9.js → swirl-icon-play-arrow.entry.0638e766.js} +1 -1
- package/dist/{swirl-icon-poll.entry.614260e2.js → swirl-icon-poll.entry.86b335aa.js} +1 -1
- package/dist/{swirl-icon-print.entry.91c13ca0.js → swirl-icon-print.entry.d5469c70.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.9e554f75.js → swirl-icon-recieved.entry.79f96548.js} +1 -1
- package/dist/{swirl-icon-reply.entry.d8a85eaa.js → swirl-icon-reply.entry.d45d7129.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.b6e10602.js → swirl-icon-roadmap.entry.f847bccf.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.40f9158e.js → swirl-icon-search-strong.entry.0c17b813.js} +1 -1
- package/dist/{swirl-icon-search.entry.6dc14572.js → swirl-icon-search.entry.89afc102.js} +1 -1
- package/dist/{swirl-icon-send.entry.96d14673.js → swirl-icon-send.entry.dc1d19bd.js} +1 -1
- package/dist/{swirl-icon-settings.entry.6aeb0369.js → swirl-icon-settings.entry.25b1e18c.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.55a479c7.js → swirl-icon-short-text.entry.54227caf.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.a88aa2e8.js → swirl-icon-simplify.entry.1eefcccf.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.ab61ba3f.js → swirl-icon-spellcheck.entry.ff9040cf.js} +1 -1
- package/dist/{swirl-icon-sync.entry.bcd37cb3.js → swirl-icon-sync.entry.edba3c6e.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.6978e062.js → swirl-icon-tasks-filled.entry.a971c5bc.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.615088c4.js → swirl-icon-tasks-outlined.entry.7c4f38a9.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.7fe4a402.js → swirl-icon-time-filled.entry.074f1a92.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.c8bdd13a.js → swirl-icon-time-outlined.entry.f1c2e410.js} +1 -1
- package/dist/{swirl-icon-undo.entry.d9400759.js → swirl-icon-undo.entry.c7a24ef1.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.919df3a3.js → swirl-icon-unlock-person.entry.eacc45d4.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.64598c7a.js → swirl-icon-user-assign.entry.1d1f97a3.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.d0d5d5c5.js → swirl-icon-video-camera.entry.47547570.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.31c8ebcc.js → swirl-icon-video-library.entry.44eaefe1.js} +1 -1
- package/dist/{swirl-icon-voice.entry.8a6949ae.js → swirl-icon-voice.entry.339c1813.js} +1 -1
- package/dist/{swirl-icon.entry.cc801b8c.js → swirl-icon.entry.4b3222ce.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.7b7b54da.js → swirl-image-grid-item.entry.caaf1c02.js} +1 -1
- package/dist/{swirl-image-grid.entry.593df0e0.js → swirl-image-grid.entry.a197134d.js} +1 -1
- package/dist/{swirl-inline-notification.entry.fd64f12b.js → swirl-inline-notification.entry.a42ce0ce.js} +1 -1
- package/dist/{swirl-inline-status.entry.d6a67c96.js → swirl-inline-status.entry.f7187eab.js} +1 -1
- package/dist/{swirl-lightbox.entry.48f65973.js → swirl-lightbox.entry.0484f41e.js} +2 -2
- package/dist/{swirl-link.entry.dca0cf30.js → swirl-link.entry.91fc93cd.js} +1 -1
- package/dist/{swirl-list.entry.0b2edd13.js → swirl-list.entry.5dcf1444.js} +1 -1
- package/dist/{swirl-menu-item.entry.a2b2f615.js → swirl-menu-item.entry.eaa709be.js} +1 -1
- package/dist/{swirl-menu.entry.5e4efacb.js → swirl-menu.entry.bf9b6671.js} +1 -1
- package/dist/{swirl-modal.entry.df576651.js → swirl-modal.entry.e95c87e0.js} +1 -1
- package/dist/{swirl-option-list-section.entry.63b3432d.js → swirl-option-list-section.entry.68798771.js} +1 -1
- package/dist/{swirl-option-list.entry.bd592523.js → swirl-option-list.entry.6c101b52.js} +1 -1
- package/dist/{swirl-pagination.entry.b9e14370.js → swirl-pagination.entry.132c370b.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.8434238c.js → swirl-pdf-reader.entry.a567224e.js} +7 -7
- package/dist/swirl-popover_2.entry.56e3a82e.js +177 -0
- package/dist/{swirl-progress-indicator.entry.3ab28fc3.js → swirl-progress-indicator.entry.605c5764.js} +1 -1
- package/dist/{swirl-radio-group.entry.50683f8e.js → swirl-radio-group.entry.3aaf070b.js} +1 -1
- package/dist/{swirl-radio.entry.08007e2f.js → swirl-radio.entry.8bb391e4.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.c2ea3edc.js → swirl-resource-list-file-item.entry.b10125b9.js} +1 -1
- package/dist/{swirl-search.entry.02cdd220.js → swirl-search.entry.1373a594.js} +1 -1
- package/dist/{swirl-select.entry.86002ee4.js → swirl-select.entry.6531e660.js} +9 -9
- package/dist/{swirl-shell-layout.entry.d02bb615.js → swirl-shell-layout.entry.bc39689c.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.f5c3894c.js → swirl-shell-navigation-item.entry.9c599fcf.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.532731af.js → swirl-skeleton-box.entry.5622d795.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.3d691b6e.js → swirl-skeleton-text.entry.55d4b5f2.js} +1 -1
- package/dist/{swirl-stack.entry.ca550e3b.js → swirl-stack.entry.1abd547e.js} +1 -1
- package/dist/{swirl-status-indicator.entry.204296ad.js → swirl-status-indicator.entry.4dcfcf48.js} +1 -1
- package/dist/{swirl-switch.entry.0dcc4142.js → swirl-switch.entry.2f97be69.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.3ce37c28.js → swirl-symbol-account-circle.entry.570df05c.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.8556d1dc.js → swirl-symbol-alternate-email.entry.ae1c2c0e.js} +1 -1
- package/dist/{swirl-symbol-android.entry.80aab0f1.js → swirl-symbol-android.entry.fde794bf.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.96981499.js → swirl-symbol-announcement.entry.727e8425.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.167e360d.js → swirl-symbol-backup.entry.0246ca44.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.3ac748cb.js → swirl-symbol-beach-access.entry.66387584.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.547e1a90.js → swirl-symbol-bookmark.entry.27310c1e.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.06e70805.js → swirl-symbol-cloud.entry.f0b47e78.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.59523ea1.js → swirl-symbol-coronavirus.entry.d57f6692.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.e4ae8095.js → swirl-symbol-desktop-windows.entry.ccc71ad5.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.82858d08.js → swirl-symbol-directions-car-filled.entry.993fe9f4.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.f33544c2.js → swirl-symbol-edit-calendar.entry.065d85a8.js} +1 -1
- package/dist/{swirl-symbol-email.entry.5969ecdf.js → swirl-symbol-email.entry.3536229a.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.eb9aa1ab.js → swirl-symbol-emoji-food-beverage.entry.409f7621.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.3e227223.js → swirl-symbol-event-menu.entry.75f48fab.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.fadda2cf.js → swirl-symbol-facebook.entry.2c9cbce1.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.606972ed.js → swirl-symbol-favorite.entry.c53b1dd5.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.b39ac8b4.js → swirl-symbol-fitness-center.entry.e0ce3dda.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.17fc5779.js → swirl-symbol-flag.entry.3c402944.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.89cff6d7.js → swirl-symbol-folder.entry.b3117c21.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.dff9718c.js → swirl-symbol-globe.entry.53991e09.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.e6a185b7.js → swirl-symbol-groups.entry.e9d4e78e.js} +1 -1
- package/dist/{swirl-symbol-help.entry.ec9e313d.js → swirl-symbol-help.entry.96a60397.js} +1 -1
- package/dist/{swirl-symbol-image.entry.6998ff30.js → swirl-symbol-image.entry.3ad31642.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.3ee3e7ad.js → swirl-symbol-info-menu.entry.4e12cfcd.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.c0c82bd3.js → swirl-symbol-instagram.entry.53b29e77.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.6d3b39e8.js → swirl-symbol-ios.entry.9861f756.js} +1 -1
- package/dist/{swirl-symbol-language.entry.ffc39b62.js → swirl-symbol-language.entry.8db9d850.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.724bd276.js → swirl-symbol-leaderboard.entry.51bd3705.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.9e1d0775.js → swirl-symbol-lightbulb.entry.184aa43c.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.75cba43b.js → swirl-symbol-linkedin.entry.b018ed4d.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.dcead164.js → swirl-symbol-location-on.entry.6aa82671.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.da03fc32.js → swirl-symbol-loyalty.entry.db8b34fe.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.801eb2e7.js → swirl-symbol-maps-home-work.entry.7a7e9288.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.63e10c2c.js → swirl-symbol-notifications.entry.6d897742.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.09790b52.js → swirl-symbol-open-in-new.entry.77e81768.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.6f579205.js → swirl-symbol-pedal-bike.entry.ae91b3e4.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.2aa8c8a3.js → swirl-symbol-pinterest.entry.427fd48b.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.1e954f36.js → swirl-symbol-policy.entry.5e39e81f.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.cb9bfc94.js → swirl-symbol-push-pin.entry.115526fe.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.3f249258.js → swirl-symbol-redeem.entry.2d2f006a.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.168d803a.js → swirl-symbol-report-problem.entry.7bb6779b.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.3039b2cf.js → swirl-symbol-restaurant.entry.5425edd4.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.ef8f928c.js → swirl-symbol-roadmap.entry.7ae754b1.js} +1 -1
- package/dist/{swirl-symbol-room.entry.f4753ea8.js → swirl-symbol-room.entry.2edfaeea.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.60e43c80.js → swirl-symbol-savings.entry.5c32383d.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.29c6f393.js → swirl-symbol-settings-voice.entry.826c79c4.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.6e8b3d81.js → swirl-symbol-shopping-cart.entry.30d16f82.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.db631fd4.js → swirl-symbol-smartphone.entry.d60c47ff.js} +1 -1
- package/dist/{swirl-symbol-star.entry.7aa7a2f1.js → swirl-symbol-star.entry.2da41147.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.28b6eaf4.js → swirl-symbol-supervisor-account.entry.dca80ad6.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.d933aec9.js → swirl-symbol-thumbs-up-down.entry.68faa920.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.0b499f53.js → swirl-symbol-twitter.entry.501aedb5.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.d68f58ff.js → swirl-symbol-wb-sunny.entry.c8755be7.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.b3410ec3.js → swirl-symbol-wechat.entry.5e5e5bd0.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.d1d23609.js → swirl-symbol-weibo.entry.331ec1aa.js} +1 -1
- package/dist/{swirl-symbol-work.entry.8b1801f1.js → swirl-symbol-work.entry.2ae56927.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.482defb8.js → swirl-symbol-xing.entry.4fc15c28.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.f88e0e33.js → swirl-symbol-youtube.entry.6a1a47d5.js} +1 -1
- package/dist/{swirl-symbol.entry.d6465429.js → swirl-symbol.entry.2f44740c.js} +1 -1
- package/dist/{swirl-tab-bar.entry.6e3a0372.js → swirl-tab-bar.entry.c997202d.js} +1 -1
- package/dist/{swirl-tab.entry.f5853f16.js → swirl-tab.entry.d2a8e13a.js} +1 -1
- package/dist/{swirl-table-cell.entry.761c02e7.js → swirl-table-cell.entry.d145bab2.js} +1 -1
- package/dist/{swirl-table-column.entry.a03041ce.js → swirl-table-column.entry.0566e766.js} +1 -1
- package/dist/{swirl-table-row-group.entry.87f98cc8.js → swirl-table-row-group.entry.e25ca968.js} +1 -1
- package/dist/{swirl-table-row.entry.51c531d4.js → swirl-table-row.entry.edbba5a6.js} +1 -1
- package/dist/{swirl-table.entry.0b9d24b5.js → swirl-table.entry.e2e4ae5e.js} +1 -1
- package/dist/{swirl-tabs.entry.bff22811.js → swirl-tabs.entry.4dc5b21e.js} +1 -1
- package/dist/{swirl-tag.entry.fdeef241.js → swirl-tag.entry.1b7f739b.js} +1 -1
- package/dist/{swirl-text-input.entry.bcd2c41d.js → swirl-text-input.entry.28267cd0.js} +1 -1
- package/dist/{swirl-text.entry.e611e04d.js → swirl-text.entry.ada4dad5.js} +1 -1
- package/dist/{swirl-theme-provider.entry.f15326d8.js → swirl-theme-provider.entry.b8c46a9b.js} +1 -1
- package/dist/{swirl-time-input.entry.81a3354a.js → swirl-time-input.entry.dcd366d2.js} +1 -1
- package/dist/{swirl-toast-provider.entry.36926ad7.js → swirl-toast-provider.entry.d59fb1fc.js} +1 -1
- package/dist/{swirl-toast.entry.cd9a94b5.js → swirl-toast.entry.732e1d55.js} +1 -1
- package/dist/{swirl-tooltip.entry.1f7b7890.js → swirl-tooltip.entry.d8016de3.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.c98d9c3b.js → swirl-tree-navigation-item.entry.ea510b43.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.2af8eec5.js → swirl-video-thumbnail.entry.929bffb3.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.89d24917.js → swirl-visually-hidden.entry.2d86b6ff.js} +1 -1
- package/dist/{wc-datepicker.entry.d4be20a2.js → wc-datepicker.entry.0486006c.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-popover.entry.062f979d.js +0 -117
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { r as h, c as p, h as n, H as v, g } from "./index.d4f681a9.js";
|
|
2
|
+
import { o as l, s as c, f as m, c as u, a as f } from "./floating-ui.dom.esm-ac7cc24e.79b318e4.js";
|
|
3
|
+
import { d as b, e as _ } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
|
+
import { c as y } from "./index-d280dafb.186cdb0e.js";
|
|
5
|
+
import { i as a, a as w, q as d } from "./utils-bc84f36e.1fee9865.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
const x = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:host *{box-sizing:border-box}.popover--active:not(.popover--closing) .popover__backdrop{animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__backdrop{animation:none}}.popover--active:not(.popover--closing) .popover__content{animation:0.15s popover-slide-in}@media (min-width: 768px){.popover--active:not(.popover--closing) .popover__content{transform-origin:top left;animation:0.15s popover-fade-scale-in-xy}}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__content{animation:none}}.popover--closing .popover__backdrop{animation:0.15s popover-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--closing .popover__backdrop{animation:none}}.popover--closing .popover__content{animation:0.15s popover-slide-out;animation-fill-mode:forwards}@media (min-width: 768px){.popover--closing .popover__content{animation:0.15s popover-fade-out}}@media (prefers-reduced-motion){.popover--closing .popover__content{animation:none}}.popover--inactive .popover__content{display:none}@media (max-width: 767px){.popover--fullscreen-bottom-sheet.popover--active:not(.popover--closing) .popover__content{animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--fullscreen-bottom-sheet.popover--active:not(.popover--closing) .popover__content{animation:none}}.popover--fullscreen-bottom-sheet.popover--closing .popover__content{animation:0.15s popover-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--fullscreen-bottom-sheet.popover--closing .popover__content{animation:none}}.popover--fullscreen-bottom-sheet .popover__backdrop{display:none}.popover--fullscreen-bottom-sheet .popover__content{top:0;border-top-left-radius:0;border-top-right-radius:0}.popover--fullscreen-bottom-sheet .popover__scroll-container{height:100%;max-height:none;padding-top:0;padding-bottom:0}.popover--fullscreen-bottom-sheet .popover__handle{display:none}}@media (min-width: 768px){.popover--animation-scale-in-y.popover--active:not(.popover--closing) .popover__content{animation:0.15s popover-fade-scale-in-y}}@media (prefers-reduced-motion){.popover--animation-scale-in-y.popover--active:not(.popover--closing) .popover__content{animation:none}}.popover__backdrop{position:fixed;z-index:0;background-color:rgba(0, 0, 0, 0.2);animation:0.15s popover-backdrop-fade-in;inset:0}@media (prefers-reduced-motion){.popover__backdrop{animation:none}}@media (min-width: 768px){.popover__backdrop{display:none}}.popover__content{position:fixed;z-index:2;right:0;bottom:0;left:0;overflow:hidden;border-top-left-radius:var(--s-border-radius-xl);border-top-right-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default)}@media (min-width: 768px){.popover__content{right:unset;bottom:unset;left:unset;max-width:22.5rem;border-radius:var(--s-border-radius-sm);animation:none;box-shadow:var(--s-shadow-level-1)}}.popover__scroll-container{overflow-x:hidden;overflow-y:auto;width:100%;max-height:90vh;padding-top:var(--s-space-24);padding-bottom:var(--s-space-24);overscroll-behavior:contain}@media (min-width: 768px){.popover__scroll-container{max-height:22rem;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8)}}.popover__handle{position:absolute;top:var(--s-space-8);left:50%;width:2.5rem;height:0.375rem;border-radius:0.1875rem;background-color:var(--s-border-default);transform:translatex(-50%)}@media (min-width: 768px){.popover__handle{display:none}}@keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@keyframes popover-fade-scale-in-xy{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes popover-fade-scale-in-y{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}", E = class {
|
|
9
|
+
constructor(e) {
|
|
10
|
+
h(this, e), this.popoverClose = p(this, "popoverClose", 7), this.popoverOpen = p(this, "popoverOpen", 7), this.toggle = (t) => {
|
|
11
|
+
t.stopPropagation(), this.active ? this.close() : this.open();
|
|
12
|
+
}, this.onKeydown = (t) => {
|
|
13
|
+
t.code === "Escape" && this.active && (t.stopPropagation(), this.close());
|
|
14
|
+
}, this.reposition = async () => {
|
|
15
|
+
const t = a();
|
|
16
|
+
if (!Boolean(this.triggerEl) || !Boolean(this.contentContainer))
|
|
17
|
+
return;
|
|
18
|
+
if (t) {
|
|
19
|
+
this.position = void 0;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const o = typeof this.offset == "number" ? { mainAxis: this.offset, crossAxis: 0 } : { mainAxis: this.offset[0], crossAxis: this.offset[1] }, i = this.enableFlip ? [l(o), c(), m()] : [l(o), c()];
|
|
23
|
+
this.position = await u(this.triggerEl, this.contentContainer, {
|
|
24
|
+
middleware: i,
|
|
25
|
+
placement: this.placement,
|
|
26
|
+
strategy: "fixed"
|
|
27
|
+
});
|
|
28
|
+
}, this.onCloseButtonClick = () => {
|
|
29
|
+
this.close();
|
|
30
|
+
}, this.animation = "scale-in-xy", this.disableScrollLock = void 0, this.enableFlip = !0, this.fullscreenBottomSheet = void 0, this.label = void 0, this.maxHeight = "22rem", this.offset = 8, this.placement = "bottom-start", this.trigger = void 0, this.triggerContainer = void 0, this.useContainerWidth = void 0, this.active = !1, this.closing = !1, this.position = void 0;
|
|
31
|
+
}
|
|
32
|
+
componentDidLoad() {
|
|
33
|
+
this.connectTrigger(), this.updateTriggerAttributes(), Boolean(this.trigger) && console.warn('[Swirl] The "trigger" prop of swirl-popover is deprecated and will be removed with the next major release. Please use the swirl-popover-trigger component instead. https://swirl-storybook.flip-app.dev/?path=/docs/components-swirlpopovertrigger--docs');
|
|
34
|
+
}
|
|
35
|
+
disconnectedCallback() {
|
|
36
|
+
this.unlockBodyScroll();
|
|
37
|
+
}
|
|
38
|
+
onWindowFocusIn(e) {
|
|
39
|
+
var t;
|
|
40
|
+
if (!this.active)
|
|
41
|
+
return;
|
|
42
|
+
const o = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), i = e.target, r = e.relatedTarget, s = w();
|
|
43
|
+
!this.el.contains(i) && !this.el.contains(s) && i !== this.triggerEl && !(!((t = this.triggerEl) === null || t === void 0) && t.contains(i)) && (!o || o && !this.el.contains(r || i) && r !== this.el) && this.close();
|
|
44
|
+
}
|
|
45
|
+
onWindowClick(e) {
|
|
46
|
+
if (!this.active)
|
|
47
|
+
return;
|
|
48
|
+
const t = e.target, o = this.el.contains(t), i = e.composedPath().some((s) => Boolean(s) && s instanceof Node ? this.el.contains(s) : !1), r = t === this.triggerEl;
|
|
49
|
+
!o && !i && !r && this.close();
|
|
50
|
+
}
|
|
51
|
+
async close() {
|
|
52
|
+
var e;
|
|
53
|
+
this.closing || !this.active || (this.popoverClose.emit(), this.disableAutoUpdate && this.disableAutoUpdate(), this.closing = !0, setTimeout(() => {
|
|
54
|
+
this.active = !1, this.closing = !1, this.updateTriggerAttributes();
|
|
55
|
+
}, 150), this.unlockBodyScroll(), (e = this.getNativeTriggerElement()) === null || e === void 0 || e.focus());
|
|
56
|
+
}
|
|
57
|
+
async open(e) {
|
|
58
|
+
if (this.triggerEl = e || this.triggerEl, this.active || !Boolean(this.triggerEl))
|
|
59
|
+
return;
|
|
60
|
+
this.adjustWidth(), this.active = !0, this.updateTriggerAttributes();
|
|
61
|
+
const t = this.getFocusableChildren();
|
|
62
|
+
requestAnimationFrame(async () => {
|
|
63
|
+
await this.reposition(), this.popoverOpen.emit({ position: this.position }), t.length > 0 ? t[0].focus() : this.contentContainer.focus(), this.disableAutoUpdate && this.disableAutoUpdate(), this.disableAutoUpdate = f(this.triggerEl, this.contentContainer, () => this.reposition()), this.scrollContainer.scrollTop = 0, this.lockBodyScroll();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
connectTrigger() {
|
|
67
|
+
if (!Boolean(this.trigger)) {
|
|
68
|
+
this.triggerEl = void 0;
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.triggerEl = typeof this.trigger == "string" ? d(this.triggerContainer || document.body, `#${this.trigger}`)[0] : this.trigger, Boolean(this.triggerEl) && this.triggerEl.addEventListener("click", (e) => {
|
|
72
|
+
this.toggle(e);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
getNativeTriggerElement() {
|
|
76
|
+
var e, t, o, i;
|
|
77
|
+
return !((e = this.triggerEl) === null || e === void 0) && e.tagName.startsWith("SWIRL-") ? ((t = this.triggerEl) === null || t === void 0 ? void 0 : t.children[0]) || ((i = (o = this.triggerEl) === null || o === void 0 ? void 0 : o.shadowRoot) === null || i === void 0 ? void 0 : i.children[0]) || this.triggerEl : this.triggerEl;
|
|
78
|
+
}
|
|
79
|
+
updateTriggerAttributes() {
|
|
80
|
+
if (!Boolean(this.triggerEl))
|
|
81
|
+
return;
|
|
82
|
+
const e = this.getNativeTriggerElement();
|
|
83
|
+
e.setAttribute("aria-controls", this.el.id), e.setAttribute("aria-expanded", String(this.active)), e.setAttribute("aria-haspopup", "dialog");
|
|
84
|
+
}
|
|
85
|
+
getFocusableChildren() {
|
|
86
|
+
return d(this.el, '[role="menuitem"], [role="listbox"]');
|
|
87
|
+
}
|
|
88
|
+
adjustWidth() {
|
|
89
|
+
let e = this.useContainerWidth;
|
|
90
|
+
[!0, "true"].includes(this.useContainerWidth) ? e = !0 : [!1, "false"].includes(this.useContainerWidth) && (e = !1);
|
|
91
|
+
const t = !window.matchMedia("(min-width: 768px)").matches;
|
|
92
|
+
if (Boolean(e) && !t) {
|
|
93
|
+
const o = typeof e == "string" ? this.el.closest(e) || this.el.parentElement : this.el.parentElement;
|
|
94
|
+
this.contentContainer.style.maxWidth = "none", this.contentContainer.style.width = o.getBoundingClientRect().width + "px";
|
|
95
|
+
} else
|
|
96
|
+
this.contentContainer.style.maxWidth = "", this.contentContainer.style.width = "";
|
|
97
|
+
}
|
|
98
|
+
lockBodyScroll() {
|
|
99
|
+
!a() || this.disableScrollLock || b(this.scrollContainer);
|
|
100
|
+
}
|
|
101
|
+
unlockBodyScroll() {
|
|
102
|
+
!a() || this.disableScrollLock || _(this.scrollContainer);
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
var e, t, o;
|
|
106
|
+
const i = !window.matchMedia("(min-width: 768px)").matches, r = y("popover", `popover--animation-${this.animation}`, `popover--placement-${(e = this.position) === null || e === void 0 ? void 0 : e.placement}`, {
|
|
107
|
+
"popover--closing": this.closing,
|
|
108
|
+
"popover--active": this.active,
|
|
109
|
+
"popover--fullscreen-bottom-sheet": this.fullscreenBottomSheet,
|
|
110
|
+
"popover--inactive": !this.active
|
|
111
|
+
});
|
|
112
|
+
return n(v, null, n("div", { class: r, onKeyDown: this.onKeydown }, n("div", { "aria-hidden": this.active ? "false" : "true", "aria-label": this.label, class: "popover__content", part: "popover__content", role: "dialog", ref: (s) => this.contentContainer = s, style: {
|
|
113
|
+
top: Boolean(this.position) ? `${(t = this.position) === null || t === void 0 ? void 0 : t.y}px` : "",
|
|
114
|
+
left: Boolean(this.position) ? `${(o = this.position) === null || o === void 0 ? void 0 : o.x}px` : ""
|
|
115
|
+
}, tabindex: "-1" }, n("span", { class: "popover__handle" }), n("div", { class: "popover__scroll-container", ref: (s) => this.scrollContainer = s, style: {
|
|
116
|
+
maxHeight: !i && Boolean(this.maxHeight) ? this.maxHeight : void 0
|
|
117
|
+
} }, n("slot", null))), this.active && n("div", { class: "popover__backdrop", onClick: this.onCloseButtonClick })));
|
|
118
|
+
}
|
|
119
|
+
get el() {
|
|
120
|
+
return g(this);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
E.style = x;
|
|
124
|
+
const C = ".sc-swirl-popover-trigger-h{display:contents}", k = class {
|
|
125
|
+
constructor(e) {
|
|
126
|
+
h(this, e), this.popoverOpen = !1, this.onClick = (t) => {
|
|
127
|
+
t.stopPropagation();
|
|
128
|
+
const o = this.getPopoverEl();
|
|
129
|
+
if (!Boolean(o))
|
|
130
|
+
return;
|
|
131
|
+
if (this.popoverOpen) {
|
|
132
|
+
o.close();
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const i = this.getTriggerEl();
|
|
136
|
+
!Boolean(i) || (o.open(i), o.addEventListener("popoverOpen", () => {
|
|
137
|
+
this.popoverOpen = !0, this.updateTriggerElAriaAttributes(!0);
|
|
138
|
+
}, { once: !0 }), o.addEventListener("popoverClose", () => {
|
|
139
|
+
this.popoverOpen = !1, this.updateTriggerElAriaAttributes(!1);
|
|
140
|
+
}, { once: !0 }));
|
|
141
|
+
}, this.updateTriggerElAriaAttributes = (t) => {
|
|
142
|
+
var o;
|
|
143
|
+
if (!this.setAriaAttributes)
|
|
144
|
+
return;
|
|
145
|
+
const i = this.getTriggerEl(), r = typeof this.popover == "string" ? this.popover : (o = this.popover) === null || o === void 0 ? void 0 : o.id;
|
|
146
|
+
i.tagName.startsWith("SWIRL-") ? (i.setAttribute("swirl-aria-controls", r), i.setAttribute("swirl-aria-expanded", String(t || "false")), i.setAttribute("swirl-aria-haspopup", "dialog")) : (i.setAttribute("aria-controls", r), i.setAttribute("aria-expanded", String(t || "false")), i.setAttribute("aria-haspopup", "dialog"));
|
|
147
|
+
}, this.popover = void 0, this.setAriaAttributes = !0;
|
|
148
|
+
}
|
|
149
|
+
componentDidLoad() {
|
|
150
|
+
this.updateTriggerElAriaAttributes();
|
|
151
|
+
}
|
|
152
|
+
watchPopover() {
|
|
153
|
+
this.updateTriggerElAriaAttributes();
|
|
154
|
+
}
|
|
155
|
+
getPopoverEl() {
|
|
156
|
+
return typeof this.popover == "string" ? document.querySelector(`#${this.popover}`) : this.popover;
|
|
157
|
+
}
|
|
158
|
+
getTriggerEl() {
|
|
159
|
+
return this.el.children.length !== 1 && console.warn('[Swirl] The "swirl-popover-trigger" component expects exactly one child element.'), this.el.children[0];
|
|
160
|
+
}
|
|
161
|
+
render() {
|
|
162
|
+
return n(v, { onClick: this.onClick }, n("slot", null));
|
|
163
|
+
}
|
|
164
|
+
get el() {
|
|
165
|
+
return g(this);
|
|
166
|
+
}
|
|
167
|
+
static get watchers() {
|
|
168
|
+
return {
|
|
169
|
+
popover: ["watchPopover"]
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
k.style = C;
|
|
174
|
+
export {
|
|
175
|
+
E as swirl_popover,
|
|
176
|
+
k as swirl_popover_trigger
|
|
177
|
+
};
|
|
@@ -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.d4f681a9.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.d4f681a9.js";
|
|
2
2
|
import { c as m } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { g as u } from "./utils-bc84f36e.1fee9865.js";
|
|
4
4
|
import "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as p, c as u, h as i, H as v, g as m } from "./index.
|
|
1
|
+
import { r as p, c as u, h as i, H as v, g as m } from "./index.d4f681a9.js";
|
|
2
2
|
import { c as w } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as f } from "./utils-bc84f36e.1fee9865.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const b = ".sc-swirl-select-h{display:block;width:100%}.sc-swirl-select-h *.sc-swirl-select{box-sizing:border-box}.select.sc-swirl-select{position:relative;display:flex;width:100%}.select.sc-swirl-select .sc-swirl-select::part(popover__content){margin-top:var(--s-space-16)}.select--placement-top-start.sc-swirl-select .sc-swirl-select::part(popover__content){margin-top:-2.25rem}.select--multi.sc-swirl-select .select__input.sc-swirl-select{position:absolute;visibility:hidden;width:100%;height:100%}.select--multi.sc-swirl-select .select__multi-select-values.sc-swirl-select{display:flex}.select--disabled.sc-swirl-select .select__input.sc-swirl-select{color:var(--s-text-disabled)}.select--disabled.sc-swirl-select .select__indicator.sc-swirl-select{color:var(--s-icon-disabled)}.select--inline.sc-swirl-select .select__indicator.sc-swirl-select{transform:translateY(-50%)}.select__input.sc-swirl-select{display:block;overflow:hidden;width:100%;height:1.375rem;margin:0;padding:0;padding-right:calc(1.5rem + var(--s-space-8));border:none;background-color:transparent;font:inherit;line-height:var(--s-line-height-base);text-align:left;white-space:nowrap;text-overflow:ellipsis;cursor:default}.select__input.sc-swirl-select:focus{outline:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.select__input.sc-swirl-select{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.select__multi-select-values.sc-swirl-select{display:none;overflow:hidden;width:100%;min-height:1.375rem;padding-right:calc(1.5rem + var(--s-space-8));flex-wrap:wrap;gap:var(--s-space-8)}.select__indicator.sc-swirl-select{position:absolute;top:50%;right:0;display:inline-flex;color:var(--s-icon-default);transform:translateY(calc(-50% - var(--s-space-8)))}", g = class {
|
|
7
7
|
constructor(l) {
|
|
8
8
|
p(this, l), this.valueChange = u(this, "valueChange", 7), this.select = (e) => {
|
|
9
9
|
this.value = e.detail, this.valueChange.emit(this.value), this.multiSelect || this.popover.close();
|
|
@@ -33,26 +33,26 @@ const g = ".sc-swirl-select-h{display:block;width:100%}.sc-swirl-select-h *.sc-s
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
var l, e, t;
|
|
36
|
-
const
|
|
37
|
-
var
|
|
38
|
-
return (
|
|
36
|
+
const a = Boolean(this.value) ? (l = this.value) === null || l === void 0 ? void 0 : l.map((s) => {
|
|
37
|
+
var o;
|
|
38
|
+
return (o = this.options.find((h) => h.value === s)) === null || o === void 0 ? void 0 : o.label;
|
|
39
39
|
}).join(", ") : "", r = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, n = this.el.closest("swirl-form-control"), c = (n == null ? void 0 : n.inline) || (n == null ? void 0 : n.labelPosition) === "outside" ? -12 : -16, d = w("select", `select--placement-${this.placement}`, {
|
|
40
40
|
"select--disabled": this.disabled,
|
|
41
41
|
"select--inline": this.inline,
|
|
42
42
|
"select--multi": this.multiSelect
|
|
43
43
|
});
|
|
44
|
-
return i(v, { onKeyDown: this.onKeyDown }, i("div", { class: d }, i("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-invalid": r, class: "select__input", disabled: this.disabled,
|
|
44
|
+
return i(v, { onKeyDown: this.onKeyDown }, i("div", { class: d }, i("swirl-popover-trigger", { popover: this.popover, setAriaAttributes: !1 }, i("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-invalid": r, class: "select__input", disabled: this.disabled, readOnly: !0, type: "text", value: a })), i("span", { class: "select__multi-select-values" }, (t = (e = this.value) === null || e === void 0 ? void 0 : e.map((s) => this.options.find((o) => o.value === s))) === null || t === void 0 ? void 0 : t.map((s) => i("swirl-tag", {
|
|
45
45
|
"aria-hidden": "true",
|
|
46
46
|
label: s == null ? void 0 : s.label,
|
|
47
47
|
onRemove: () => this.unselectOption(s == null ? void 0 : s.value),
|
|
48
48
|
removable: !this.disabled && this.allowDeselect
|
|
49
|
-
}))), i("span", { class: "select__indicator" }, this.open ? i("swirl-icon-expand-less", null) : i("swirl-icon-expand-more", null)), i("swirl-popover", { animation: "scale-in-y", class: "select__popover", label: this.label, offset: [0, c], onPopoverClose: this.onClose, onPopoverOpen: this.onOpen,
|
|
49
|
+
}))), i("span", { class: "select__indicator" }, this.open ? i("swirl-icon-expand-less", null) : i("swirl-icon-expand-more", null)), i("swirl-popover", { animation: "scale-in-y", class: "select__popover", id: `select-options-${this.selectId}`, label: this.label, offset: [0, c], onPopoverClose: this.onClose, onPopoverOpen: this.onOpen, ref: (s) => this.popover = s, useContainerWidth: "swirl-form-control" }, i("swirl-option-list", { allowDeselect: this.allowDeselect, onValueChange: this.select, multiSelect: this.multiSelect, value: this.value }, i("slot", { onSlotchange: this.onSlotChange })))));
|
|
50
50
|
}
|
|
51
51
|
get el() {
|
|
52
52
|
return m(this);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
g.style = b;
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
g as swirl_select
|
|
58
58
|
};
|