@getflip/swirl-components-react 0.22.0 → 0.23.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.23417503.js → file-manager.entry.6aa5872a.js} +1 -1
- package/dist/{index.8496e0d6.js → index.b6bfc1ce.js} +2 -2
- package/dist/{swirl-action-list-section.entry.ae51d455.js → swirl-action-list-section.entry.dbaf16a9.js} +1 -1
- package/dist/{swirl-action-list_3.entry.5f85510d.js → swirl-action-list_3.entry.493c2107.js} +1 -1
- package/dist/{swirl-app-bar.entry.92a4b9b5.js → swirl-app-bar.entry.ded22a6e.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.acdf1a40.js → swirl-app-layout_7.entry.71976ad8.js} +22 -18
- package/dist/{swirl-autocomplete.entry.771d6cc2.js → swirl-autocomplete.entry.4989b458.js} +1 -1
- package/dist/{swirl-avatar-group.entry.e0eb6fb9.js → swirl-avatar-group.entry.0eedd5bc.js} +1 -1
- package/dist/{swirl-avatar.entry.ade50bd2.js → swirl-avatar.entry.0cc8e81e.js} +1 -1
- package/dist/{swirl-badge.entry.028abaff.js → swirl-badge.entry.64c1b714.js} +1 -1
- package/dist/{swirl-banner.entry.f2e7b8e9.js → swirl-banner.entry.01aef7c7.js} +1 -1
- package/dist/{swirl-button-group.entry.3bbf0dd4.js → swirl-button-group.entry.3dcee611.js} +1 -1
- package/dist/{swirl-button.entry.d87ba45e.js → swirl-button.entry.c539808e.js} +1 -1
- package/dist/{swirl-card.entry.90ad1152.js → swirl-card.entry.a03edf7b.js} +1 -1
- package/dist/{swirl-checkbox.entry.13749ed5.js → swirl-checkbox.entry.049be762.js} +1 -1
- package/dist/{swirl-chip.entry.52e556c3.js → swirl-chip.entry.a91f5088.js} +1 -1
- package/dist/{swirl-columns.entry.f0850919.js → swirl-columns.entry.5ffecba3.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.4c3cdaff.js → swirl-console-layout.entry.deeffbb2.js} +1 -1
- package/dist/{swirl-date-input.entry.45907f14.js → swirl-date-input.entry.9929cc34.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.5c99f6b9.js → swirl-date-picker_2.entry.c3504d4b.js} +1 -1
- package/dist/{swirl-description-list-item.entry.c34db56d.js → swirl-description-list-item.entry.efb40704.js} +1 -1
- package/dist/{swirl-description-list.entry.132fd363.js → swirl-description-list.entry.41c0a75d.js} +1 -1
- package/dist/{swirl-dialog.entry.e2b1009c.js → swirl-dialog.entry.3f2e6de0.js} +1 -1
- package/dist/{swirl-file-uploader.entry.25f56207.js → swirl-file-uploader.entry.99f965d4.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.d02252e7.js → swirl-file-viewer_7.entry.3063b949.js} +1 -1
- package/dist/{swirl-form-control.entry.32c96408.js → swirl-form-control.entry.19122132.js} +1 -1
- package/dist/{swirl-form-group.entry.1779d426.js → swirl-form-group.entry.72e159a8.js} +1 -1
- package/dist/{swirl-heading.entry.466185ac.js → swirl-heading.entry.a527132d.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.af3d9b40.js → swirl-icon-add-photo.entry.6a2ae366.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.5ddf7fa9.js → swirl-icon-add_6.entry.6994e8dc.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.09ac0abe.js → swirl-icon-admin-panel-settings.entry.fbabb9b5.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.f4ece8db.js → swirl-icon-arrow-back.entry.20a07caf.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.39e37520.js → swirl-icon-arrow-downward_2.entry.a12d4087.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.4621bd86.js → swirl-icon-arrow-forward.entry.95cb8717.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.636b15ce.js → swirl-icon-arrow-left_4.entry.1802d815.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.0edfc505.js → swirl-icon-arrow-right-small.entry.81175cc6.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.6d298684.js → swirl-icon-attachment.entry.0b7c4f58.js} +1 -1
- package/dist/{swirl-icon-block.entry.adb4abfa.js → swirl-icon-block.entry.8c42f5e9.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.b699fefa.js → swirl-icon-bookmark.entry.932cc172.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.dd30046f.js → swirl-icon-cancel_4.entry.f0a2285a.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.6adfb2b5.js → swirl-icon-chat-bubble.entry.57aa1674.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.03f4e5b9.js → swirl-icon-chats-filled.entry.8de03fae.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.7f8dd5e0.js → swirl-icon-chats-outlined.entry.a7a33e20.js} +1 -1
- package/dist/{swirl-icon-check-circle.entry.65e44896.js → swirl-icon-check-circle.entry.129f8ceb.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.2d5e59c9.js → swirl-icon-check-small_4.entry.3fa2abf2.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.f09f21ce.js → swirl-icon-check-strong.entry.e3c32134.js} +1 -1
- package/dist/{swirl-icon-check.entry.39dff22d.js → swirl-icon-check.entry.c6cc90c4.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.efb7f2ae.js → swirl-icon-chevron-left.entry.8adbc0df.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.6c8a420a.js → swirl-icon-chevron-right.entry.5db548f4.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.3a264bc8.js → swirl-icon-close-small.entry.6155e223.js} +1 -1
- package/dist/{swirl-icon-close.entry.359f5a25.js → swirl-icon-close.entry.f794e0cb.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.cccda304.js → swirl-icon-cloud-upload.entry.4ab6731b.js} +1 -1
- package/dist/{swirl-icon-column.entry.5bf5c4b2.js → swirl-icon-column.entry.b7547700.js} +1 -1
- package/dist/{swirl-icon-comment.entry.8ad60f6f.js → swirl-icon-comment.entry.d753ef44.js} +1 -1
- package/dist/{swirl-icon-copy.entry.368be54c.js → swirl-icon-copy.entry.0425d90f.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.56818be3.js → swirl-icon-date-range.entry.7d759ea8.js} +1 -1
- package/dist/{swirl-icon-delete.entry.8e05b578.js → swirl-icon-delete.entry.c2989e72.js} +1 -1
- package/dist/{swirl-icon-description.entry.d189115e.js → swirl-icon-description.entry.050d0c7b.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.86aed8e9.js → swirl-icon-double-arrow-left.entry.fd762fb6.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.1d655920.js → swirl-icon-double-arrow-right.entry.b6c18787.js} +1 -1
- package/dist/{swirl-icon-download.entry.11095c5a.js → swirl-icon-download.entry.4af3e4ec.js} +1 -1
- package/dist/{swirl-icon-edit.entry.37573407.js → swirl-icon-edit.entry.e0f5e398.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.f48d05cc.js → swirl-icon-emoji-mood.entry.c83ce2f8.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.57587d8a.js → swirl-icon-emoji-satisfied.entry.f016ad80.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.1dbb62db.js → swirl-icon-error_3.entry.b4a4bbbf.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.f5a83202.js → swirl-icon-expand-more.entry.b0f7145c.js} +1 -1
- package/dist/{swirl-icon-filter.entry.96af9d43.js → swirl-icon-filter.entry.3f345fb1.js} +1 -1
- package/dist/{swirl-icon-folder.entry.ca972f9f.js → swirl-icon-folder.entry.60ff7300.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.abacd4d2.js → swirl-icon-group-assign.entry.a787af73.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.812acce4.js → swirl-icon-groups-custom.entry.a75eda18.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.57a795f9.js → swirl-icon-groups-filled.entry.b4541428.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.174a916b.js → swirl-icon-groups-outlined.entry.6dbbf6d1.js} +1 -1
- package/dist/{swirl-icon-groups.entry.190bc146.js → swirl-icon-groups.entry.e6e45b85.js} +1 -1
- package/dist/{swirl-icon-help.entry.3bc60dd1.js → swirl-icon-help.entry.1208f323.js} +1 -1
- package/dist/{swirl-icon-image.entry.c32094be.js → swirl-icon-image.entry.5017f934.js} +1 -1
- package/dist/{swirl-icon-info.entry.83a3c5bd.js → swirl-icon-info.entry.f3c86c97.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.1a9f07e8.js → swirl-icon-inventory.entry.15a9a4f5.js} +1 -1
- package/dist/{swirl-icon-like.entry.b4c7ecbd.js → swirl-icon-like.entry.09d5b14b.js} +1 -1
- package/dist/{swirl-icon-link.entry.d2745a54.js → swirl-icon-link.entry.22025e2a.js} +1 -1
- package/dist/{swirl-icon-lock.entry.1362637d.js → swirl-icon-lock.entry.890e35b4.js} +1 -1
- package/dist/{swirl-icon-logout.entry.67a30f90.js → swirl-icon-logout.entry.3664ac3b.js} +1 -1
- package/dist/{swirl-icon-mail.entry.d2447bb9.js → swirl-icon-mail.entry.afdcb5f3.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.6ece7f81.js → swirl-icon-manage-accounts.entry.c5185a27.js} +1 -1
- package/dist/{swirl-icon-mention.entry.e121bc79.js → swirl-icon-mention.entry.3bb7578c.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.60e9bc3d.js → swirl-icon-menu-filled.entry.0b23487c.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.5624e940.js → swirl-icon-menu-outlined.entry.40386656.js} +1 -1
- package/dist/{swirl-icon-menu.entry.68dcea49.js → swirl-icon-menu.entry.e77ed7bc.js} +1 -1
- package/dist/{swirl-icon-message.entry.64b39bda.js → swirl-icon-message.entry.0572f263.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.297e18ab.js → swirl-icon-more-horizontal.entry.8d603a89.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.e7dbabc3.js → swirl-icon-news-filled.entry.32fa12c5.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.bcafa45a.js → swirl-icon-news-outlined.entry.bb83fc09.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.a00f4137.js → swirl-icon-notifications-active.entry.0ae87229.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.0a96fbe6.js → swirl-icon-notifications-off.entry.39f3c7c6.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.08f1f3e6.js → swirl-icon-notifications.entry.d8c235f5.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.e39cca4c.js → swirl-icon-open-in-new.entry.2081206a.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.911f947e.js → swirl-icon-people-alt.entry.70ca30dc.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.02632fa6.js → swirl-icon-person-off.entry.a8b020aa.js} +1 -1
- package/dist/{swirl-icon-person.entry.1e5667dd.js → swirl-icon-person.entry.97722a4d.js} +1 -1
- package/dist/{swirl-icon-phone.entry.758eafad.js → swirl-icon-phone.entry.a158c42d.js} +1 -1
- package/dist/{swirl-icon-poll.entry.9eb9c46d.js → swirl-icon-poll.entry.a829c75f.js} +1 -1
- package/dist/{swirl-icon-print.entry.f6348b2e.js → swirl-icon-print.entry.93e97f9b.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.53529b3a.js → swirl-icon-recieved.entry.cd70a628.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.10a89357.js → swirl-icon-search-strong.entry.6da1eae6.js} +1 -1
- package/dist/{swirl-icon-search.entry.c2b2bfc3.js → swirl-icon-search.entry.d8ffebdb.js} +1 -1
- package/dist/{swirl-icon-send.entry.2ce09c4e.js → swirl-icon-send.entry.9849083a.js} +1 -1
- package/dist/{swirl-icon-settings.entry.ca8bf4ce.js → swirl-icon-settings.entry.755da6da.js} +1 -1
- package/dist/{swirl-icon-sync.entry.73cda838.js → swirl-icon-sync.entry.8bc12bb0.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.42690350.js → swirl-icon-tasks-filled.entry.512f8371.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.f2f882f7.js → swirl-icon-tasks-outlined.entry.b4b22ba7.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.23f161ad.js → swirl-icon-time-filled.entry.1ee05457.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.495ff22e.js → swirl-icon-time-outlined.entry.92de1c12.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.389d24cc.js → swirl-icon-user-assign.entry.faea2a00.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.f7f73053.js → swirl-icon-video-camera.entry.3847077e.js} +1 -1
- package/dist/{swirl-icon-warning.entry.4b09deb5.js → swirl-icon-warning.entry.c02d8a0b.js} +1 -1
- package/dist/{swirl-lightbox.entry.36ce6d15.js → swirl-lightbox.entry.94d8805e.js} +1 -1
- package/dist/{swirl-link.entry.09273d00.js → swirl-link.entry.36ef8e21.js} +1 -1
- package/dist/{swirl-list.entry.137315a2.js → swirl-list.entry.20048bd1.js} +1 -1
- package/dist/swirl-modal.entry.45aef852.js +66 -0
- package/dist/{swirl-option-list-section.entry.97d01854.js → swirl-option-list-section.entry.20721814.js} +1 -1
- package/dist/{swirl-pagination.entry.cbfc5ab5.js → swirl-pagination.entry.6b29e78b.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.ade27d3c.js → swirl-pdf-reader.entry.7be74fa3.js} +1 -1
- package/dist/{swirl-popover.entry.cd472127.js → swirl-popover.entry.692ffd8b.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.32238c70.js → swirl-progress-indicator.entry.4384f00d.js} +1 -1
- package/dist/{swirl-radio-group.entry.6243b66d.js → swirl-radio-group.entry.72023b2e.js} +1 -1
- package/dist/{swirl-radio.entry.a10d0202.js → swirl-radio.entry.d8cff306.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.f50d5c59.js → swirl-resource-list-file-item.entry.ada7f2c1.js} +1 -1
- package/dist/{swirl-search.entry.2a9f659f.js → swirl-search.entry.fcf86be4.js} +1 -1
- package/dist/{swirl-select.entry.32a0bedb.js → swirl-select.entry.ee6f9a5f.js} +1 -1
- package/dist/{swirl-shell-layout.entry.46dd76fc.js → swirl-shell-layout.entry.da4b346c.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.074653e8.js → swirl-shell-navigation-item.entry.26c2234c.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.371d0deb.js → swirl-skeleton-box.entry.d2e9ed23.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.d4b2b081.js → swirl-skeleton-text.entry.5c9c95d7.js} +1 -1
- package/dist/{swirl-stack.entry.514e31eb.js → swirl-stack.entry.145ebcfc.js} +1 -1
- package/dist/{swirl-switch.entry.d6b3d07f.js → swirl-switch.entry.2c97bccd.js} +1 -1
- package/dist/{swirl-tab.entry.2f7f1ae7.js → swirl-tab.entry.e86f972d.js} +1 -1
- package/dist/{swirl-table-cell.entry.be4fcf38.js → swirl-table-cell.entry.c615942d.js} +1 -1
- package/dist/{swirl-table-column.entry.3020638f.js → swirl-table-column.entry.b5ef2bfb.js} +1 -1
- package/dist/{swirl-table-row-group.entry.7ce65730.js → swirl-table-row-group.entry.60455f19.js} +1 -1
- package/dist/{swirl-table-row.entry.fa2b1b7a.js → swirl-table-row.entry.6dc2e5a2.js} +1 -1
- package/dist/{swirl-table.entry.2e2006a3.js → swirl-table.entry.34572840.js} +1 -1
- package/dist/{swirl-tabs.entry.afb9740a.js → swirl-tabs.entry.94a9e5af.js} +1 -1
- package/dist/{swirl-tag.entry.cfcf3ef2.js → swirl-tag.entry.2eff06b0.js} +1 -1
- package/dist/{swirl-text-input.entry.d0a7537f.js → swirl-text-input.entry.ed805a83.js} +1 -1
- package/dist/{swirl-text.entry.3f581913.js → swirl-text.entry.d3e4dee6.js} +1 -1
- package/dist/{swirl-theme-provider.entry.8bf66bbc.js → swirl-theme-provider.entry.7b325239.js} +1 -1
- package/dist/{swirl-toast-provider.entry.f6ba4ca5.js → swirl-toast-provider.entry.8fbee111.js} +1 -1
- package/dist/{swirl-toast.entry.765f5deb.js → swirl-toast.entry.e498d482.js} +1 -1
- package/dist/{swirl-tooltip.entry.decbc360.js → swirl-tooltip.entry.004002b3.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.7ddacd85.js → swirl-tree-navigation-item.entry.6f91bd8c.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.4e8b50e4.js → swirl-video-thumbnail.entry.6cdac799.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.6bb59191.js → swirl-visually-hidden.entry.e0551dcb.js} +1 -1
- package/dist/{wc-datepicker.entry.c25bad38.js → wc-datepicker.entry.f2493edb.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-modal.entry.76e610b6.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.7ce65730.js → swirl-table-row-group.entry.60455f19.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.b6bfc1ce.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.b6bfc1ce.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.b6bfc1ce.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.6bb59191.js → swirl-visually-hidden.entry.e0551dcb.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.b6bfc1ce.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.0",
|
|
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.0",
|
|
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.8496e0d6.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
|
-
};
|