@getflip/swirl-components-react 0.22.1 → 0.23.1
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.2fe1a24f.js → file-manager.entry.973a7e09.js} +1 -1
- package/dist/{index.813b4e41.js → index.2ccacc62.js} +2 -2
- package/dist/{swirl-action-list-section.entry.91d44947.js → swirl-action-list-section.entry.47993d4b.js} +1 -1
- package/dist/{swirl-action-list_3.entry.c25d11b5.js → swirl-action-list_3.entry.16777fe8.js} +1 -1
- package/dist/{swirl-app-bar.entry.868abf06.js → swirl-app-bar.entry.ab610500.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.d668d866.js → swirl-app-layout_7.entry.1ea960d7.js} +11 -13
- package/dist/{swirl-autocomplete.entry.383b34f1.js → swirl-autocomplete.entry.16b26ac7.js} +1 -1
- package/dist/{swirl-avatar-group.entry.15274fa9.js → swirl-avatar-group.entry.ebe256fc.js} +1 -1
- package/dist/{swirl-avatar.entry.563007fd.js → swirl-avatar.entry.1e1a5f5a.js} +1 -1
- package/dist/{swirl-badge.entry.a8365ec9.js → swirl-badge.entry.b5eb9d4c.js} +1 -1
- package/dist/{swirl-banner.entry.d7a72f07.js → swirl-banner.entry.8d602390.js} +1 -1
- package/dist/{swirl-button-group.entry.773a5f4d.js → swirl-button-group.entry.82324714.js} +1 -1
- package/dist/{swirl-button.entry.c006f9c5.js → swirl-button.entry.a345922e.js} +1 -1
- package/dist/{swirl-card.entry.da2f235e.js → swirl-card.entry.9babe51a.js} +1 -1
- package/dist/{swirl-checkbox.entry.4a87a82e.js → swirl-checkbox.entry.202c116d.js} +1 -1
- package/dist/{swirl-chip.entry.c947e66b.js → swirl-chip.entry.bb554a61.js} +1 -1
- package/dist/{swirl-columns.entry.4f31da8c.js → swirl-columns.entry.2eab6755.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +8 -8
- package/dist/{swirl-console-layout.entry.58f1addc.js → swirl-console-layout.entry.52357db4.js} +1 -1
- package/dist/{swirl-date-input.entry.9a80adf9.js → swirl-date-input.entry.ec6c2623.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.2d36d5f9.js → swirl-date-picker_2.entry.75e6e607.js} +1 -1
- package/dist/{swirl-description-list-item.entry.4502426b.js → swirl-description-list-item.entry.0485376f.js} +1 -1
- package/dist/{swirl-description-list.entry.cd90ee16.js → swirl-description-list.entry.99b80701.js} +1 -1
- package/dist/{swirl-dialog.entry.4e265cb1.js → swirl-dialog.entry.8be596c6.js} +1 -1
- package/dist/{swirl-file-uploader.entry.912fc486.js → swirl-file-uploader.entry.ae0e1778.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.ab024e56.js → swirl-file-viewer_7.entry.e1ff6ec8.js} +1 -1
- package/dist/{swirl-form-control.entry.af6ef08b.js → swirl-form-control.entry.034bdb8f.js} +1 -1
- package/dist/{swirl-form-group.entry.8bd4a22d.js → swirl-form-group.entry.aa6911e7.js} +1 -1
- package/dist/{swirl-heading.entry.3d68edc3.js → swirl-heading.entry.5c1bccb3.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.ea7c4665.js → swirl-icon-add-photo.entry.8010990c.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.c16bda50.js → swirl-icon-add_6.entry.ca7cebe5.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.4092bd8c.js → swirl-icon-admin-panel-settings.entry.2de4f851.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.101af11f.js → swirl-icon-arrow-back.entry.5140ba1d.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.11b371c6.js → swirl-icon-arrow-downward_2.entry.b7fb90b8.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.694572bf.js → swirl-icon-arrow-forward.entry.fd72604a.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.b74d9a89.js → swirl-icon-arrow-left_4.entry.f31a31dd.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.f5a17a3d.js → swirl-icon-arrow-right-small.entry.90a4751f.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.5f7374c8.js → swirl-icon-attachment.entry.46ce981d.js} +1 -1
- package/dist/{swirl-icon-block.entry.b2ca58cf.js → swirl-icon-block.entry.d0385c95.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.6afb2536.js → swirl-icon-bookmark.entry.12089f7d.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.57f720bd.js → swirl-icon-cancel_4.entry.ab9bd828.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.1de8f15b.js → swirl-icon-chat-bubble.entry.39835711.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.9d30ec3a.js → swirl-icon-chats-filled.entry.89152f2e.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.79325823.js → swirl-icon-chats-outlined.entry.70e0552d.js} +1 -1
- package/dist/{swirl-icon-check-circle.entry.156c093b.js → swirl-icon-check-circle.entry.6ba34fee.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.49677612.js → swirl-icon-check-small_4.entry.768be0ac.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.6134f71d.js → swirl-icon-check-strong.entry.3efcbcea.js} +1 -1
- package/dist/{swirl-icon-check.entry.fd5aa16e.js → swirl-icon-check.entry.c763e38f.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.f7fdc3ed.js → swirl-icon-chevron-left.entry.fdb34e07.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.37d03d6d.js → swirl-icon-chevron-right.entry.36cf5704.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.e37a4341.js → swirl-icon-close-small.entry.39eb6e71.js} +1 -1
- package/dist/{swirl-icon-close.entry.379c7154.js → swirl-icon-close.entry.adedf61f.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.5d7c114e.js → swirl-icon-cloud-upload.entry.753d9c07.js} +1 -1
- package/dist/{swirl-icon-column.entry.48f3f5f6.js → swirl-icon-column.entry.e5c7269c.js} +1 -1
- package/dist/{swirl-icon-comment.entry.ef8e3dd3.js → swirl-icon-comment.entry.6bc86f56.js} +1 -1
- package/dist/{swirl-icon-copy.entry.3100056e.js → swirl-icon-copy.entry.cd43c744.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.3d99e4ea.js → swirl-icon-date-range.entry.b64a62e1.js} +1 -1
- package/dist/{swirl-icon-delete.entry.e598f604.js → swirl-icon-delete.entry.f13a79f1.js} +1 -1
- package/dist/{swirl-icon-description.entry.b3419107.js → swirl-icon-description.entry.851694d0.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.d8b12dbe.js → swirl-icon-double-arrow-left.entry.c62445a4.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.d1902760.js → swirl-icon-double-arrow-right.entry.3a7d772d.js} +1 -1
- package/dist/{swirl-icon-download.entry.ee839138.js → swirl-icon-download.entry.6c25de51.js} +1 -1
- package/dist/{swirl-icon-edit.entry.35a1d1f5.js → swirl-icon-edit.entry.09417988.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.7d7b934d.js → swirl-icon-emoji-mood.entry.b81bdef6.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.f15a2a76.js → swirl-icon-emoji-satisfied.entry.0298f030.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.8c85c0a4.js → swirl-icon-error_3.entry.4ce3f611.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.5d1ba34b.js → swirl-icon-expand-more.entry.580d159e.js} +1 -1
- package/dist/{swirl-icon-filter.entry.68f0e4f5.js → swirl-icon-filter.entry.cdfd6353.js} +1 -1
- package/dist/{swirl-icon-folder.entry.8f981555.js → swirl-icon-folder.entry.fa0c202f.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.ed6ce865.js → swirl-icon-group-assign.entry.69e16e40.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.367ae1d3.js → swirl-icon-groups-custom.entry.8baea141.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.48e06a76.js → swirl-icon-groups-filled.entry.46370285.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.9652f1bc.js → swirl-icon-groups-outlined.entry.4cb4e525.js} +1 -1
- package/dist/{swirl-icon-groups.entry.159fa87c.js → swirl-icon-groups.entry.2f0f2c85.js} +1 -1
- package/dist/{swirl-icon-help.entry.f80601ad.js → swirl-icon-help.entry.a39bfab2.js} +1 -1
- package/dist/{swirl-icon-image.entry.5d80a3b2.js → swirl-icon-image.entry.11a87bfa.js} +1 -1
- package/dist/{swirl-icon-info.entry.512b86c4.js → swirl-icon-info.entry.ad0d04c5.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.fc702230.js → swirl-icon-inventory.entry.fc3c7421.js} +1 -1
- package/dist/{swirl-icon-like.entry.c60efa28.js → swirl-icon-like.entry.715a9df4.js} +1 -1
- package/dist/{swirl-icon-link.entry.b7e2f4e8.js → swirl-icon-link.entry.4f1193bc.js} +1 -1
- package/dist/{swirl-icon-lock.entry.ac647612.js → swirl-icon-lock.entry.bede6e33.js} +1 -1
- package/dist/{swirl-icon-logout.entry.49150d20.js → swirl-icon-logout.entry.fa1a0033.js} +1 -1
- package/dist/{swirl-icon-mail.entry.1ab8b6e8.js → swirl-icon-mail.entry.0c0977e9.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.4764dd13.js → swirl-icon-manage-accounts.entry.ef0deb6a.js} +1 -1
- package/dist/{swirl-icon-mention.entry.26ccf078.js → swirl-icon-mention.entry.aa403325.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.43c15682.js → swirl-icon-menu-filled.entry.84074951.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.296d51a4.js → swirl-icon-menu-outlined.entry.cc130cf4.js} +1 -1
- package/dist/{swirl-icon-menu.entry.c4ebd2ad.js → swirl-icon-menu.entry.85c73774.js} +1 -1
- package/dist/{swirl-icon-message.entry.469e42fe.js → swirl-icon-message.entry.3eac6e3e.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.dc054819.js → swirl-icon-more-horizontal.entry.7de1e57b.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.e2288b1f.js → swirl-icon-news-filled.entry.6cd7334a.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.36bbf35a.js → swirl-icon-news-outlined.entry.e3e83bb7.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.575e411f.js → swirl-icon-notifications-active.entry.efb68bbb.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.1b9670c0.js → swirl-icon-notifications-off.entry.3babca24.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.0e41270b.js → swirl-icon-notifications.entry.591e146e.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.b3d3ccd8.js → swirl-icon-open-in-new.entry.47b7cd8e.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.f8db60d7.js → swirl-icon-people-alt.entry.2a32c778.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.04308788.js → swirl-icon-person-off.entry.dc4d3df1.js} +1 -1
- package/dist/{swirl-icon-person.entry.78b01112.js → swirl-icon-person.entry.edd7e922.js} +1 -1
- package/dist/{swirl-icon-phone.entry.b5992829.js → swirl-icon-phone.entry.1b586020.js} +1 -1
- package/dist/{swirl-icon-poll.entry.95142315.js → swirl-icon-poll.entry.63663678.js} +1 -1
- package/dist/{swirl-icon-print.entry.0caa559c.js → swirl-icon-print.entry.a7f17dcf.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.a03947c9.js → swirl-icon-recieved.entry.9d55f9db.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.32009bbe.js → swirl-icon-search-strong.entry.e594064e.js} +1 -1
- package/dist/{swirl-icon-search.entry.580e2540.js → swirl-icon-search.entry.c54f1fc4.js} +1 -1
- package/dist/{swirl-icon-send.entry.d7b3e183.js → swirl-icon-send.entry.fe68613c.js} +1 -1
- package/dist/{swirl-icon-settings.entry.e0c28731.js → swirl-icon-settings.entry.af05acc3.js} +1 -1
- package/dist/{swirl-icon-sync.entry.e5ebd102.js → swirl-icon-sync.entry.6623ef0e.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.b9ebe578.js → swirl-icon-tasks-filled.entry.45050a2c.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.2258bf91.js → swirl-icon-tasks-outlined.entry.bb625f94.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.95a3be45.js → swirl-icon-time-filled.entry.a874e2a0.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.a13e74be.js → swirl-icon-time-outlined.entry.7117e82c.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.5cba991e.js → swirl-icon-user-assign.entry.d093ec7a.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.b0343104.js → swirl-icon-video-camera.entry.a31117b2.js} +1 -1
- package/dist/{swirl-icon-warning.entry.22dc1967.js → swirl-icon-warning.entry.63a1cfec.js} +1 -1
- package/dist/{swirl-lightbox.entry.8e0a75fe.js → swirl-lightbox.entry.5c054415.js} +1 -1
- package/dist/{swirl-link.entry.71569547.js → swirl-link.entry.e47db1c6.js} +1 -1
- package/dist/{swirl-list.entry.61ec5272.js → swirl-list.entry.6afcc901.js} +1 -1
- package/dist/swirl-modal.entry.9b106c65.js +66 -0
- package/dist/{swirl-option-list-section.entry.0d3ff330.js → swirl-option-list-section.entry.064659c5.js} +1 -1
- package/dist/{swirl-pagination.entry.e950cdd6.js → swirl-pagination.entry.e1d76dd6.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.e9aa54a7.js → swirl-pdf-reader.entry.cba08c8c.js} +1 -1
- package/dist/{swirl-popover.entry.35cff662.js → swirl-popover.entry.4b5c3317.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.a1887415.js → swirl-progress-indicator.entry.59cf0237.js} +1 -1
- package/dist/{swirl-radio-group.entry.f206cb41.js → swirl-radio-group.entry.24724716.js} +1 -1
- package/dist/{swirl-radio.entry.9fcc7236.js → swirl-radio.entry.2282b739.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.c8f94910.js → swirl-resource-list-file-item.entry.300143f1.js} +1 -1
- package/dist/{swirl-search.entry.adaba423.js → swirl-search.entry.57ab8e77.js} +1 -1
- package/dist/{swirl-select.entry.1f019c1d.js → swirl-select.entry.be155204.js} +1 -1
- package/dist/{swirl-shell-layout.entry.ff14400e.js → swirl-shell-layout.entry.11eba04c.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.089f75ca.js → swirl-shell-navigation-item.entry.414deee1.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.f3d48c15.js → swirl-skeleton-box.entry.fa9ba8f5.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.a23adc70.js → swirl-skeleton-text.entry.ca57b014.js} +1 -1
- package/dist/{swirl-stack.entry.fb3197a7.js → swirl-stack.entry.fdbbf1ec.js} +1 -1
- package/dist/{swirl-switch.entry.03b7f5b5.js → swirl-switch.entry.fc471afa.js} +1 -1
- package/dist/{swirl-tab.entry.c34f2485.js → swirl-tab.entry.f6ab20a3.js} +1 -1
- package/dist/{swirl-table-cell.entry.024dfcb0.js → swirl-table-cell.entry.8a58630f.js} +1 -1
- package/dist/{swirl-table-column.entry.c0d8173c.js → swirl-table-column.entry.e1b038d1.js} +1 -1
- package/dist/{swirl-table-row-group.entry.b61ae6c4.js → swirl-table-row-group.entry.c7042bcc.js} +1 -1
- package/dist/{swirl-table-row.entry.4c22904a.js → swirl-table-row.entry.531d9111.js} +1 -1
- package/dist/{swirl-table.entry.00b717ad.js → swirl-table.entry.f93f3eff.js} +1 -1
- package/dist/{swirl-tabs.entry.6f2026d0.js → swirl-tabs.entry.a8f37034.js} +1 -1
- package/dist/{swirl-tag.entry.a70845f5.js → swirl-tag.entry.e40c3de0.js} +1 -1
- package/dist/{swirl-text-input.entry.f9f3ec3c.js → swirl-text-input.entry.eca262bf.js} +1 -1
- package/dist/{swirl-text.entry.53f38008.js → swirl-text.entry.31786c97.js} +1 -1
- package/dist/{swirl-theme-provider.entry.24c32ffb.js → swirl-theme-provider.entry.d899cbbb.js} +1 -1
- package/dist/{swirl-toast-provider.entry.644ae881.js → swirl-toast-provider.entry.923db27d.js} +1 -1
- package/dist/{swirl-toast.entry.bba0c64a.js → swirl-toast.entry.e90f877a.js} +1 -1
- package/dist/{swirl-tooltip.entry.c4071a69.js → swirl-tooltip.entry.2f8d966d.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.3012722c.js → swirl-tree-navigation-item.entry.d364b3cd.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.c4a169c7.js → swirl-video-thumbnail.entry.e011b979.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.006b6e6a.js → swirl-visually-hidden.entry.6706a92b.js} +1 -1
- package/dist/{wc-datepicker.entry.48364973.js → wc-datepicker.entry.efbc3752.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-modal.entry.88befe60.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as c, h as e, H as u, g } from "./index.
|
|
1
|
+
import { r as c, h as e, H as u, g } from "./index.2ccacc62.js";
|
|
2
2
|
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as m, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as x } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as i, H as t } from "./index.
|
|
1
|
+
import { r, h as i, H as t } from "./index.2ccacc62.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ":host{display:inline-flex}:host *{box-sizing:border-box}.link{color:var(--s-interactive-primary-default);line-height:var(--s-line-height-base);text-underline-offset:var(--s-space-4)}.link:hover{color:var(--s-interactive-primary-hovered)}.link:active{color:var(--s-interactive-primary-pressed)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.link{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as t, H as r } from "./index.
|
|
1
|
+
import { r as l, h as t, H as r } from "./index.2ccacc62.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ':host{display:block}:host *{box-sizing:border-box}.swirl-list{line-height:var(--s-line-height-base)}.swirl-list ul,.swirl-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.swirl-list ul li{padding-left:1.5rem}.swirl-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.swirl-list ol{counter-reset:item}.swirl-list ol ol{counter-reset:letter}.swirl-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.swirl-list ol li{padding-left:1.5rem}.swirl-list ol li:before{display:inline-block;min-width:1.5rem;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item;font-variant-numeric:tabular-nums}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.swirl-list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}', n = class {
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { r as h, c as s, h as o, H as p } from "./index.2ccacc62.js";
|
|
2
|
+
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
|
+
import { d as f, e as u } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
|
+
import { c as v } from "./index-d280dafb.186cdb0e.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const g = ':host{--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);display:block}:host *{box-sizing:border-box}.modal{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:not(.modal--closing) .modal__backdrop{-webkit-animation:0.15s modal-backdrop-fade-in;animation:0.15s modal-backdrop-fade-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:none;animation:none}}.modal:not(.modal--closing) .modal__body{-webkit-animation:0.15s modal-scale-in;animation:0.15s modal-scale-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__body{-webkit-animation:none;animation:none}}.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)}}.modal--has-custom-header .modal__content{padding-top:var(--s-space-16)}.modal--closing{-webkit-animation:0.15s modal-fade-out;animation:0.15s modal-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--closing{-webkit-animation:none;animation:none}}@media (min-width: 768px){.modal--scrollable .modal__content{padding-bottom:0}}.modal--scrollable:not(.modal--scrolled-down) .modal__controls{border-top:var(--s-border-width-default) solid var(--s-border-default)}@media (min-width: 768px){.modal--scrolled .modal__header{border-bottom-color:var(--s-border-default)}}.modal__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.modal__body{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;height:auto;max-height:90vh;border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-3)}}.modal__close-button{position:absolute;top:var(--s-space-8);left:var(--s-space-8)}@media (min-width: 768px){.modal__close-button{top:var(--s-space-16);right:var(--s-space-16);left:auto}}.modal__header{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:calc(var(--s-space-8) + 2.5rem + var(--s-space-8));flex-shrink:0;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-16)}@media (min-width: 768px){.modal__header{height:4.125rem;padding-top:var(--s-space-24);padding-right:calc(var(--s-space-16) + 2.5rem + var(--s-space-8));padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);border-bottom:var(--s-border-width-default) solid transparent}}.modal__custom-header{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{overflow-x:hidden;overflow-y:auto;flex-grow:1;line-height:var(--s-line-height-base)}.modal__content ::slotted(*){margin: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}@-webkit-keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{from{opacity:1}to{opacity:0}}@keyframes modal-fade-out{from{opacity:1}to{opacity:0}}', _ = class {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
h(this, t), this.modalClose = s(this, "modalClose", 7), this.modalOpen = s(this, "modalOpen", 7), this.primaryAction = s(this, "primaryAction", 7), this.secondaryAction = s(this, "secondaryAction", 7), this.onKeyDown = (a) => {
|
|
10
|
+
a.code === "Escape" && this.close();
|
|
11
|
+
}, this.onBackdropClick = () => {
|
|
12
|
+
this.close();
|
|
13
|
+
}, this.onCloseButtonClick = () => {
|
|
14
|
+
this.close();
|
|
15
|
+
}, this.onPrimaryAction = (a) => {
|
|
16
|
+
this.primaryAction.emit(a);
|
|
17
|
+
}, this.onSecondaryAction = (a) => {
|
|
18
|
+
this.secondaryAction.emit(a);
|
|
19
|
+
}, this.onCustomHeaderSlotChange = () => {
|
|
20
|
+
this.hasCustomHeader = this.customHeaderSlot.assignedElements().length > 0;
|
|
21
|
+
}, this.determineScrollStatus = () => {
|
|
22
|
+
var a, e, i, l, d, r;
|
|
23
|
+
const n = ((a = this.scrollContainer) === null || a === void 0 ? void 0 : a.scrollTop) > 0, c = Math.ceil(((e = this.scrollContainer) === null || e === void 0 ? void 0 : e.scrollTop) + ((i = this.scrollContainer) === null || i === void 0 ? void 0 : i.offsetHeight)) >= ((l = this.scrollContainer) === null || l === void 0 ? void 0 : l.scrollHeight), m = ((d = this.scrollContainer) === null || d === void 0 ? void 0 : d.scrollHeight) > ((r = this.scrollContainer) === null || r === void 0 ? void 0 : r.offsetHeight);
|
|
24
|
+
n !== this.scrolled && (this.scrolled = n), c !== this.scrolledDown && (this.scrolledDown = c), m !== this.scrollable && (this.scrollable = m);
|
|
25
|
+
}, this.closeButtonLabel = "Close modal", this.hideCloseButton = void 0, this.hideLabel = void 0, this.label = void 0, this.maxWidth = void 0, this.padded = !0, this.primaryActionLabel = void 0, this.secondaryActionLabel = void 0, this.closing = !1, this.hasCustomHeader = void 0, this.scrollable = !1, this.scrolled = !1, this.scrolledDown = !1;
|
|
26
|
+
}
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
this.modal = new b(this.modalEl), this.determineScrollStatus();
|
|
29
|
+
}
|
|
30
|
+
disconnectedCallback() {
|
|
31
|
+
var t;
|
|
32
|
+
(t = this.modal) === null || t === void 0 || t.destroy(), this.unlockBodyScroll();
|
|
33
|
+
}
|
|
34
|
+
onWindowResize() {
|
|
35
|
+
this.determineScrollStatus();
|
|
36
|
+
}
|
|
37
|
+
async open() {
|
|
38
|
+
this.modal.show(), this.modalOpen.emit(), this.lockBodyScroll(), this.determineScrollStatus();
|
|
39
|
+
}
|
|
40
|
+
async close() {
|
|
41
|
+
this.closing || (this.closing = !0, this.unlockBodyScroll(), setTimeout(() => {
|
|
42
|
+
this.modal.hide(), this.modalClose.emit(), this.closing = !1;
|
|
43
|
+
}, 150));
|
|
44
|
+
}
|
|
45
|
+
lockBodyScroll() {
|
|
46
|
+
f(this.scrollContainer);
|
|
47
|
+
}
|
|
48
|
+
unlockBodyScroll() {
|
|
49
|
+
u(this.scrollContainer);
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
const t = Boolean(this.primaryActionLabel) || Boolean(this.secondaryActionLabel), a = v("modal", {
|
|
53
|
+
"modal--closing": this.closing,
|
|
54
|
+
"modal--has-custom-header": this.hasCustomHeader,
|
|
55
|
+
"modal--padded": this.padded,
|
|
56
|
+
"modal--scrollable": this.scrollable,
|
|
57
|
+
"modal--scrolled": this.scrolled,
|
|
58
|
+
"modal--scrolled-down": this.scrolledDown
|
|
59
|
+
});
|
|
60
|
+
return o(p, null, o("section", { "aria-hidden": "true", "aria-label": this.label, class: a, id: "modal", onKeyDown: this.onKeyDown, ref: (e) => this.modalEl = e }, o("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), o("div", { class: "modal__body", role: "document", style: { maxWidth: this.maxWidth } }, !this.hideCloseButton && o("swirl-button", { class: "modal__close-button", hideLabel: !0, icon: "<swirl-icon-close></swirl-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), o("header", { class: "modal__custom-header" }, o("slot", { name: "custom-header", onSlotchange: this.onCustomHeaderSlotChange, ref: (e) => this.customHeaderSlot = e })), !this.hideLabel && o("header", { class: "modal__header" }, o("swirl-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label })), o("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (e) => this.scrollContainer = e }, o("slot", null)), t && 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" }))))));
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
_.style = g;
|
|
64
|
+
export {
|
|
65
|
+
_ as swirl_modal
|
|
66
|
+
};
|
|
@@ -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.2ccacc62.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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as n, g as d } from "./index.
|
|
1
|
+
import { r as l, h as e, H as n, g as d } from "./index.2ccacc62.js";
|
|
2
2
|
import { A as c } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as h, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as r } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as r, h as n, H as m, g as v } from "./index.
|
|
1
|
+
import { r as h, c as r, h as n, H as m, g as v } from "./index.2ccacc62.js";
|
|
2
2
|
import { o as p, s as l, f, c as u, a as g } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
|
|
3
3
|
import { d as b, e as y } 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 a, c as o, h as i, H as l, g as n } from "./index.
|
|
1
|
+
import { r as a, c as o, h as i, H as l, g as n } from "./index.2ccacc62.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const u = ".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)}", d = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as a, h as s, H as c } from "./index.
|
|
1
|
+
import { r as n, c as a, h as s, H as c } from "./index.2ccacc62.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as h } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as r, h as e, H as c, g as d } from "./index.
|
|
1
|
+
import { r as a, c as r, h as e, H as c, g as d } from "./index.2ccacc62.js";
|
|
2
2
|
import { c as h } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as p } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, h as s, H as e } from "./index.
|
|
1
|
+
import { r as a, h as s, H as e } from "./index.2ccacc62.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{display:flex;overflow:auto;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-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-background-default);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t, H as r, g as i } from "./index.
|
|
1
|
+
import { r as e, h as t, H as r, g as i } from "./index.2ccacc62.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padding-right:var(--s-space-16);padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-top:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);background-color:var(--s-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;letter-spacing:var(--s-letter-spacing-tighter);text-overflow:ellipsis;transition:box-shadow 0.15s;gap:var(--s-space-8)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host(.table-column--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-column--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}.table-column__sort-indicator{display:inline-flex;width:1.25rem;height:1.25rem;flex-grow:0;flex-shrink:0}", a = class {
|
package/dist/{swirl-table-row-group.entry.b61ae6c4.js → swirl-table-row-group.entry.c7042bcc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as r, H as s, g as t } from "./index.
|
|
1
|
+
import { r as o, h as r, H as s, g as t } from "./index.2ccacc62.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ":host{position:relative;z-index:1;display:block}:host *{box-sizing:border-box}.table-row-group__header-row{padding:var(--s-space-12) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-surface-raised-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}@media (min-width: 768px){.table-row-group__label{position:sticky;left:var(--s-space-16)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as r, g as n } from "./index.
|
|
1
|
+
import { r as l, h as e, H as r, g as n } from "./index.2ccacc62.js";
|
|
2
2
|
import { c as a } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { b as o } from "./balancetext-fa49c64f.754e913c.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, c as n, h as i, H as r } from "./index.
|
|
1
|
+
import { r as o, c as n, h as i, H as r } from "./index.2ccacc62.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as c } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
package/dist/{swirl-visually-hidden.entry.006b6e6a.js → swirl-visually-hidden.entry.6706a92b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as i, H as l } from "./index.
|
|
1
|
+
import { r as s, h as i, H as l } from "./index.2ccacc62.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}", o = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@getflip/swirl-components": "^0.
|
|
21
|
+
"@getflip/swirl-components": "^0.24.1",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { r as h, c as l, h as o, H as p } from "./index.813b4e41.js";
|
|
2
|
-
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
|
-
import { d as f, e as u } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
|
-
import { c as v } from "./index-d280dafb.186cdb0e.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const g = ':host{--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);display:block}:host *{box-sizing:border-box}.modal{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:not(.modal--closing) .modal__backdrop{-webkit-animation:0.15s modal-backdrop-fade-in;animation:0.15s modal-backdrop-fade-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:none;animation:none}}.modal:not(.modal--closing) .modal__body{-webkit-animation:0.15s modal-scale-in;animation:0.15s modal-scale-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__body{-webkit-animation:none;animation:none}}.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)}}.modal--closing{-webkit-animation:0.15s modal-fade-out;animation:0.15s modal-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--closing{-webkit-animation:none;animation:none}}@media (min-width: 768px){.modal--scrollable .modal__content{padding-bottom:0}}.modal--scrollable:not(.modal--scrolled-down) .modal__controls{border-top:var(--s-border-width-default) solid var(--s-border-default)}@media (min-width: 768px){.modal--scrolled .modal__header{border-bottom-color:var(--s-border-default)}}.modal__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.modal__body{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;height:auto;max-height:90vh;border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-3)}}.modal__close-button{position:absolute;top:var(--s-space-8);left:var(--s-space-8)}@media (min-width: 768px){.modal__close-button{top:var(--s-space-16);right:var(--s-space-16);left:auto}}.modal__header{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:calc(var(--s-space-8) + 2.5rem + var(--s-space-8));flex-shrink:0;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-16)}@media (min-width: 768px){.modal__header{height:4.125rem;padding-top:var(--s-space-24);padding-right:calc(var(--s-space-16) + 2.5rem + var(--s-space-8));padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);border-bottom:var(--s-border-width-default) solid transparent}}.modal__heading{overflow:hidden}.modal__heading .heading{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal__content{overflow-x:hidden;overflow-y:auto;flex-grow:1;line-height:var(--s-line-height-base)}.modal__content ::slotted(*){margin: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}@-webkit-keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{from{opacity:1}to{opacity:0}}@keyframes modal-fade-out{from{opacity:1}to{opacity:0}}', y = class {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
h(this, e), this.modalClose = l(this, "modalClose", 7), this.modalOpen = l(this, "modalOpen", 7), this.primaryAction = l(this, "primaryAction", 7), this.secondaryAction = l(this, "secondaryAction", 7), this.onKeyDown = (a) => {
|
|
10
|
-
a.code === "Escape" && this.close();
|
|
11
|
-
}, this.onBackdropClick = () => {
|
|
12
|
-
this.close();
|
|
13
|
-
}, this.onCloseButtonClick = () => {
|
|
14
|
-
this.close();
|
|
15
|
-
}, this.onPrimaryAction = (a) => {
|
|
16
|
-
this.primaryAction.emit(a);
|
|
17
|
-
}, this.onSecondaryAction = (a) => {
|
|
18
|
-
this.secondaryAction.emit(a);
|
|
19
|
-
}, this.determineScrollStatus = () => {
|
|
20
|
-
var a, i, t, s, d, n;
|
|
21
|
-
const r = ((a = this.scrollContainer) === null || a === void 0 ? void 0 : a.scrollTop) > 0, c = Math.ceil(((i = this.scrollContainer) === null || i === void 0 ? void 0 : i.scrollTop) + ((t = this.scrollContainer) === null || t === void 0 ? void 0 : t.offsetHeight)) >= ((s = this.scrollContainer) === null || s === void 0 ? void 0 : s.scrollHeight), m = ((d = this.scrollContainer) === null || d === void 0 ? void 0 : d.scrollHeight) > ((n = this.scrollContainer) === null || n === void 0 ? void 0 : n.offsetHeight);
|
|
22
|
-
r !== this.scrolled && (this.scrolled = r), c !== this.scrolledDown && (this.scrolledDown = c), m !== this.scrollable && (this.scrollable = m);
|
|
23
|
-
}, this.closeButtonLabel = "Close modal", this.hideCloseButton = void 0, this.hideLabel = void 0, this.label = void 0, this.maxWidth = void 0, this.padded = !0, this.primaryActionLabel = void 0, this.secondaryActionLabel = void 0, this.closing = !1, this.scrollable = !1, this.scrolled = !1, this.scrolledDown = !1;
|
|
24
|
-
}
|
|
25
|
-
componentDidLoad() {
|
|
26
|
-
this.modal = new b(this.modalEl), this.determineScrollStatus();
|
|
27
|
-
}
|
|
28
|
-
disconnectedCallback() {
|
|
29
|
-
var e;
|
|
30
|
-
(e = this.modal) === null || e === void 0 || e.destroy(), this.unlockBodyScroll();
|
|
31
|
-
}
|
|
32
|
-
onWindowResize() {
|
|
33
|
-
this.determineScrollStatus();
|
|
34
|
-
}
|
|
35
|
-
async open() {
|
|
36
|
-
this.modal.show(), this.modalOpen.emit(), this.lockBodyScroll(), this.determineScrollStatus();
|
|
37
|
-
}
|
|
38
|
-
async close() {
|
|
39
|
-
this.closing || (this.closing = !0, this.unlockBodyScroll(), setTimeout(() => {
|
|
40
|
-
this.modal.hide(), this.modalClose.emit(), this.closing = !1;
|
|
41
|
-
}, 150));
|
|
42
|
-
}
|
|
43
|
-
lockBodyScroll() {
|
|
44
|
-
f(this.scrollContainer);
|
|
45
|
-
}
|
|
46
|
-
unlockBodyScroll() {
|
|
47
|
-
u(this.scrollContainer);
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
const e = Boolean(this.primaryActionLabel) || Boolean(this.secondaryActionLabel), a = v("modal", {
|
|
51
|
-
"modal--closing": this.closing,
|
|
52
|
-
"modal--padded": this.padded,
|
|
53
|
-
"modal--scrollable": this.scrollable,
|
|
54
|
-
"modal--scrolled": this.scrolled,
|
|
55
|
-
"modal--scrolled-down": this.scrolledDown
|
|
56
|
-
});
|
|
57
|
-
return o(p, null, o("section", { "aria-hidden": "true", "aria-label": this.label, class: a, id: "modal", onKeyDown: this.onKeyDown, ref: (i) => this.modalEl = i }, o("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), o("div", { class: "modal__body", role: "document", style: { maxWidth: this.maxWidth } }, !this.hideCloseButton && o("swirl-button", { class: "modal__close-button", hideLabel: !0, icon: "<swirl-icon-close></swirl-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), !this.hideLabel && o("header", { class: "modal__header" }, o("swirl-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label })), o("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (i) => this.scrollContainer = i }, o("slot", null)), e && 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" }))))));
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
y.style = g;
|
|
61
|
-
export {
|
|
62
|
-
y as swirl_modal
|
|
63
|
-
};
|