@getflip/swirl-components-react 0.16.0 → 0.17.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.20ffe74a.js → file-manager.entry.1c3ef48d.js} +1 -1
- package/dist/{index.771fb0bd.js → index.332a8127.js} +2 -2
- package/dist/{swirl-action-list-section.entry.5552aa20.js → swirl-action-list-section.entry.35003473.js} +1 -1
- package/dist/{swirl-action-list_3.entry.4f943f70.js → swirl-action-list_3.entry.1157367a.js} +1 -1
- package/dist/{swirl-app-layout_5.entry.05c5b705.js → swirl-app-layout_5.entry.d2ec5635.js} +2 -2
- package/dist/{swirl-autocomplete.entry.97b5c640.js → swirl-autocomplete.entry.13426556.js} +1 -1
- package/dist/{swirl-avatar-group.entry.3a2a9e5a.js → swirl-avatar-group.entry.d873376f.js} +1 -1
- package/dist/{swirl-avatar.entry.c43f4681.js → swirl-avatar.entry.b7b4836f.js} +1 -1
- package/dist/{swirl-badge.entry.7be0934d.js → swirl-badge.entry.d2fbeffa.js} +1 -1
- package/dist/{swirl-banner.entry.1597d14a.js → swirl-banner.entry.e10d40e9.js} +1 -1
- package/dist/{swirl-button-group.entry.dafcab95.js → swirl-button-group.entry.c9df9009.js} +1 -1
- package/dist/{swirl-button.entry.199c6a8a.js → swirl-button.entry.35a701ab.js} +9 -7
- package/dist/{swirl-card.entry.e5ed3c77.js → swirl-card.entry.ab72e842.js} +1 -1
- package/dist/{swirl-checkbox.entry.0600cd6f.js → swirl-checkbox.entry.e03fbc98.js} +1 -1
- package/dist/{swirl-chip.entry.4f576f76.js → swirl-chip.entry.924a0587.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +6 -4
- package/dist/{swirl-console-layout.entry.ff15c1d4.js → swirl-console-layout.entry.3de2ac6f.js} +1 -1
- package/dist/{swirl-date-input.entry.e5eb360e.js → swirl-date-input.entry.823ea869.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.5f9e31e4.js → swirl-date-picker_2.entry.b401e4c3.js} +1 -1
- package/dist/{swirl-description-list-item.entry.f0c4e608.js → swirl-description-list-item.entry.09a297df.js} +1 -1
- package/dist/{swirl-description-list.entry.0340fc1d.js → swirl-description-list.entry.f5ec5fc1.js} +1 -1
- package/dist/{swirl-dialog.entry.fab32668.js → swirl-dialog.entry.33d2ed55.js} +1 -1
- package/dist/{swirl-file-uploader.entry.ff6a732f.js → swirl-file-uploader.entry.0814319c.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.47672c19.js → swirl-file-viewer_7.entry.82126dd4.js} +1 -1
- package/dist/{swirl-form-control.entry.67eebaa3.js → swirl-form-control.entry.b59ade44.js} +1 -1
- package/dist/{swirl-form-group.entry.695465dd.js → swirl-form-group.entry.04bb5ecd.js} +1 -1
- package/dist/{swirl-heading.entry.5a244e67.js → swirl-heading.entry.5be42646.js} +2 -2
- package/dist/{swirl-icon-add-photo.entry.d7a58326.js → swirl-icon-add-photo.entry.9825a289.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.03d1eaf1.js → swirl-icon-add_6.entry.5b057eda.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.cdce67c5.js → swirl-icon-admin-panel-settings.entry.62e58680.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.64d10729.js → swirl-icon-arrow-back.entry.9be70369.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.b7a7d6cf.js → swirl-icon-arrow-downward_2.entry.acd1734a.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.1b3d6314.js → swirl-icon-arrow-forward.entry.43dbb71d.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.9e3544d8.js → swirl-icon-arrow-left_4.entry.8dfb839c.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.3b9ae0a5.js → swirl-icon-arrow-right-small.entry.74c3d4ba.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.f49c7730.js → swirl-icon-attachment.entry.02c71814.js} +1 -1
- package/dist/{swirl-icon-block.entry.fa877db4.js → swirl-icon-block.entry.66d7cfd3.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.54962d28.js → swirl-icon-bookmark.entry.8808c6fe.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.50b58fee.js → swirl-icon-cancel_4.entry.b4cc84d0.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.c2a076f7.js → swirl-icon-chat-bubble.entry.b8df2fb0.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.cd642800.js → swirl-icon-chats-filled.entry.d8f2b6e6.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.bd1131ca.js → swirl-icon-chats-outlined.entry.de025fbe.js} +1 -1
- package/dist/{swirl-icon-check-circle.entry.c190d70f.js → swirl-icon-check-circle.entry.82e3eaa1.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.02540bd9.js → swirl-icon-check-small_4.entry.23c52acd.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.3591ce92.js → swirl-icon-check-strong.entry.a6391d7c.js} +1 -1
- package/dist/{swirl-icon-check.entry.bba18e6f.js → swirl-icon-check.entry.75bba879.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.fa824265.js → swirl-icon-chevron-left.entry.c9e21be1.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.57bc9371.js → swirl-icon-chevron-right.entry.854a5e72.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.8fff42b6.js → swirl-icon-close-small.entry.d752d265.js} +1 -1
- package/dist/{swirl-icon-close.entry.b9322bbe.js → swirl-icon-close.entry.2a686870.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.0aab63e7.js → swirl-icon-cloud-upload.entry.1e0868a1.js} +1 -1
- package/dist/{swirl-icon-column.entry.2f445faa.js → swirl-icon-column.entry.6701c0ef.js} +1 -1
- package/dist/{swirl-icon-comment.entry.aac07110.js → swirl-icon-comment.entry.fb9119b9.js} +1 -1
- package/dist/{swirl-icon-copy.entry.de91c57e.js → swirl-icon-copy.entry.d3209b15.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.a806737d.js → swirl-icon-date-range.entry.e86575f3.js} +1 -1
- package/dist/{swirl-icon-delete.entry.fe6cc703.js → swirl-icon-delete.entry.9acb6844.js} +1 -1
- package/dist/{swirl-icon-description.entry.f049a0cd.js → swirl-icon-description.entry.a4bb21d1.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.4a2f4dda.js → swirl-icon-double-arrow-left.entry.07055fb6.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.6a34eb2b.js → swirl-icon-double-arrow-right.entry.b85ed28c.js} +1 -1
- package/dist/{swirl-icon-download.entry.c41e4266.js → swirl-icon-download.entry.005671ef.js} +1 -1
- package/dist/{swirl-icon-edit.entry.e9a07a85.js → swirl-icon-edit.entry.58d237be.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.b74812b6.js → swirl-icon-emoji-mood.entry.65a2a805.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.2e784849.js → swirl-icon-emoji-satisfied.entry.99f5b6cb.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.86558ef6.js → swirl-icon-error_3.entry.378eefb9.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.857ce700.js → swirl-icon-expand-more.entry.ec6612f1.js} +1 -1
- package/dist/{swirl-icon-file.entry.41af312e.js → swirl-icon-file.entry.e991b4b1.js} +1 -1
- package/dist/{swirl-icon-filter.entry.40c17edf.js → swirl-icon-filter.entry.4a82e7bc.js} +1 -1
- package/dist/{swirl-icon-folder-shared.entry.f57cd35d.js → swirl-icon-folder-shared.entry.f621d5a0.js} +1 -1
- package/dist/{swirl-icon-folder.entry.7304ddef.js → swirl-icon-folder.entry.e3f5c70e.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.8fed9b9c.js → swirl-icon-group-assign.entry.ab2a1429.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.edb72334.js → swirl-icon-groups-custom.entry.577729bb.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.28994fb5.js → swirl-icon-groups-filled.entry.3e4de24a.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.a0514ed1.js → swirl-icon-groups-outlined.entry.71ee4e38.js} +1 -1
- package/dist/{swirl-icon-groups.entry.79f63ae8.js → swirl-icon-groups.entry.faaafc56.js} +1 -1
- package/dist/{swirl-icon-help.entry.36866dc4.js → swirl-icon-help.entry.0604849b.js} +1 -1
- package/dist/{swirl-icon-image.entry.b4d50f81.js → swirl-icon-image.entry.de2fa7b0.js} +1 -1
- package/dist/{swirl-icon-info.entry.895b53ab.js → swirl-icon-info.entry.74d9bee0.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.52b6a01e.js → swirl-icon-inventory.entry.7cd79782.js} +1 -1
- package/dist/{swirl-icon-like.entry.8595b4ab.js → swirl-icon-like.entry.b5fa49ed.js} +1 -1
- package/dist/{swirl-icon-link.entry.19691045.js → swirl-icon-link.entry.8115cdae.js} +1 -1
- package/dist/{swirl-icon-lock.entry.c5baddde.js → swirl-icon-lock.entry.483f3c58.js} +1 -1
- package/dist/{swirl-icon-logout.entry.589c9f3e.js → swirl-icon-logout.entry.af2792ac.js} +1 -1
- package/dist/{swirl-icon-mail.entry.aa3a8071.js → swirl-icon-mail.entry.f094ef07.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.5a3ac2bc.js → swirl-icon-manage-accounts.entry.8c4dfa4e.js} +1 -1
- package/dist/{swirl-icon-mention.entry.b3828dbe.js → swirl-icon-mention.entry.5d8a6646.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.15601920.js → swirl-icon-menu-filled.entry.2845cb53.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.0ff1bcda.js → swirl-icon-menu-outlined.entry.81a6cbaa.js} +1 -1
- package/dist/{swirl-icon-menu.entry.6b73dde5.js → swirl-icon-menu.entry.f286e86b.js} +1 -1
- package/dist/{swirl-icon-message.entry.6fb71047.js → swirl-icon-message.entry.ac92d707.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.1546f87d.js → swirl-icon-more-horizontal.entry.6e289d2c.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.693bbe99.js → swirl-icon-news-filled.entry.c0e5b307.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.c604bace.js → swirl-icon-news-outlined.entry.abb5118e.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.d4f603a6.js → swirl-icon-notifications-active.entry.d727f6d7.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.dc93820a.js → swirl-icon-notifications-off.entry.cd737f62.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.b8238ff0.js → swirl-icon-notifications.entry.2f084fcb.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.03ae2b7f.js → swirl-icon-open-in-new.entry.354f1414.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.125b2063.js → swirl-icon-people-alt.entry.26ba792f.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.c43cbf3f.js → swirl-icon-person-off.entry.1acfce05.js} +1 -1
- package/dist/{swirl-icon-person.entry.08fda345.js → swirl-icon-person.entry.3cf987fd.js} +1 -1
- package/dist/{swirl-icon-phone.entry.50dcf41d.js → swirl-icon-phone.entry.49cd2cbb.js} +1 -1
- package/dist/{swirl-icon-poll.entry.26d3ba7d.js → swirl-icon-poll.entry.b71cc625.js} +1 -1
- package/dist/{swirl-icon-print.entry.7fb7220a.js → swirl-icon-print.entry.a2bf48d8.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.16b6593b.js → swirl-icon-recieved.entry.3011c690.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.9520c399.js → swirl-icon-search-strong.entry.1100c429.js} +1 -1
- package/dist/{swirl-icon-search.entry.41f267f4.js → swirl-icon-search.entry.89dcfedd.js} +1 -1
- package/dist/{swirl-icon-send.entry.33278242.js → swirl-icon-send.entry.204b0f32.js} +1 -1
- package/dist/{swirl-icon-settings.entry.e6005ffc.js → swirl-icon-settings.entry.1061e46e.js} +1 -1
- package/dist/{swirl-icon-sync.entry.df437327.js → swirl-icon-sync.entry.09345e9e.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.83c10995.js → swirl-icon-tasks-filled.entry.93ff607b.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.087d7d78.js → swirl-icon-tasks-outlined.entry.d3293a2a.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.03f26736.js → swirl-icon-time-filled.entry.a64aa825.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.d543c31e.js → swirl-icon-time-outlined.entry.b58d6dfb.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.2c92778c.js → swirl-icon-user-assign.entry.0ce556c4.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.8ede1b5a.js → swirl-icon-video-camera.entry.893601fb.js} +1 -1
- package/dist/{swirl-icon-warning.entry.c20f10f2.js → swirl-icon-warning.entry.5acf61f1.js} +1 -1
- package/dist/{swirl-lightbox.entry.38465d54.js → swirl-lightbox.entry.9169f180.js} +1 -1
- package/dist/{swirl-link.entry.0fa816a4.js → swirl-link.entry.c1a53326.js} +1 -1
- package/dist/{swirl-list.entry.d0ba2cd0.js → swirl-list.entry.f81defcc.js} +1 -1
- package/dist/swirl-modal.entry.e1e7c191.js +63 -0
- package/dist/{swirl-option-list-section.entry.04a3275e.js → swirl-option-list-section.entry.10143ed9.js} +1 -1
- package/dist/{swirl-pagination.entry.89c76bc8.js → swirl-pagination.entry.f93c40e9.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.afa81425.js → swirl-pdf-reader.entry.e930b358.js} +1 -1
- package/dist/{swirl-popover.entry.06394ecc.js → swirl-popover.entry.31c7c575.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.3e6a995f.js → swirl-progress-indicator.entry.b9d7bbc6.js} +1 -1
- package/dist/{swirl-radio-group.entry.87584edf.js → swirl-radio-group.entry.74bb1439.js} +1 -1
- package/dist/{swirl-radio.entry.217a708e.js → swirl-radio.entry.54377c18.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.366c3ba6.js → swirl-resource-list-file-item.entry.bb72393e.js} +1 -1
- package/dist/{swirl-search.entry.54eb832f.js → swirl-search.entry.efdafd14.js} +1 -1
- package/dist/{swirl-select.entry.cfed617a.js → swirl-select.entry.9ba470ca.js} +1 -1
- package/dist/{swirl-shell-layout.entry.5235baf4.js → swirl-shell-layout.entry.9521218e.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.18d99f7e.js → swirl-shell-navigation-item.entry.acb148ce.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.f4774a3d.js → swirl-skeleton-box.entry.891d5cd8.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.9f12dd3d.js → swirl-skeleton-text.entry.ce500235.js} +1 -1
- package/dist/{swirl-stack.entry.84603ec1.js → swirl-stack.entry.0d5cea3c.js} +1 -1
- package/dist/{swirl-switch.entry.c8a6a7af.js → swirl-switch.entry.fea25aad.js} +1 -1
- package/dist/{swirl-tab.entry.c69b60b9.js → swirl-tab.entry.64855f4f.js} +1 -1
- package/dist/{swirl-table-cell.entry.8ca65c35.js → swirl-table-cell.entry.a392a49d.js} +1 -1
- package/dist/{swirl-table-column.entry.3caaa152.js → swirl-table-column.entry.4eb4dd95.js} +1 -1
- package/dist/{swirl-table-row-group.entry.bd156d99.js → swirl-table-row-group.entry.96f0a162.js} +1 -1
- package/dist/{swirl-table-row.entry.104fd930.js → swirl-table-row.entry.419fdcfb.js} +1 -1
- package/dist/{swirl-table.entry.14249ab1.js → swirl-table.entry.9a1663e8.js} +1 -1
- package/dist/{swirl-tabs.entry.f76be575.js → swirl-tabs.entry.61ac48c0.js} +1 -1
- package/dist/{swirl-tag.entry.5f83ab8e.js → swirl-tag.entry.68e7520c.js} +1 -1
- package/dist/{swirl-text-input.entry.7a89bf47.js → swirl-text-input.entry.21054cb3.js} +1 -1
- package/dist/{swirl-text.entry.4a39f34f.js → swirl-text.entry.8bdc313a.js} +1 -1
- package/dist/{swirl-theme-provider.entry.ce1908b8.js → swirl-theme-provider.entry.ba4ab374.js} +1 -1
- package/dist/{swirl-toast-provider.entry.0083a6ab.js → swirl-toast-provider.entry.475a24e7.js} +1 -1
- package/dist/{swirl-toast.entry.6880e619.js → swirl-toast.entry.fa6dced5.js} +1 -1
- package/dist/{swirl-tooltip.entry.bc886575.js → swirl-tooltip.entry.63f2c997.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.69bb84fc.js → swirl-tree-navigation-item.entry.ab054328.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.70cf2d94.js → swirl-video-thumbnail.entry.57bf93ed.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.fa652e44.js → swirl-visually-hidden.entry.d4035fe6.js} +1 -1
- package/dist/{wc-datepicker.entry.d8406594.js → wc-datepicker.entry.609a698a.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-modal.entry.ceaae69a.js +0 -62
|
@@ -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.332a8127.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.332a8127.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.332a8127.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,63 @@
|
|
|
1
|
+
import { r as h, c as l, h as o, H as p } from "./index.332a8127.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;width:100vw;height:100vh;background-color:var(--s-surface-overlay-default);flex-direction:column}@media (min-width: 768px){.modal__body{width:90vw;max-width:33.75rem;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, s, t, d, r;
|
|
21
|
+
const n = ((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) + ((s = this.scrollContainer) === null || s === void 0 ? void 0 : s.offsetHeight)) >= ((t = this.scrollContainer) === null || t === void 0 ? void 0 : t.scrollHeight), m = ((d = this.scrollContainer) === null || d === void 0 ? void 0 : d.scrollHeight) > ((r = this.scrollContainer) === null || r === void 0 ? void 0 : r.offsetHeight);
|
|
22
|
+
n !== this.scrolled && (this.scrolled = n), 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.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" }, !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
|
+
};
|
|
@@ -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.332a8127.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.332a8127.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.332a8127.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.332a8127.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.332a8127.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.332a8127.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.332a8127.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.332a8127.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.bd156d99.js → swirl-table-row-group.entry.96f0a162.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.332a8127.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.332a8127.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.332a8127.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.fa652e44.js → swirl-visually-hidden.entry.d4035fe6.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.332a8127.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.17.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.18.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { r as h, c as i, h as a, H as p } from "./index.771fb0bd.js";
|
|
2
|
-
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
|
-
import { d as f, e as v } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
|
-
import { c as u } 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--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;width:100vw;height:100vh;background-color:var(--s-surface-overlay-default);flex-direction:column}@media (min-width: 768px){.modal__body{width:90vw;max-width:33.75rem;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;padding-top:var(--s-space-24);padding-right:var(--s-space-16);padding-bottom:var(--s-space-24);padding-left:var(--s-space-16);flex-grow:1;line-height:var(--s-line-height-base)}.modal__content ::slotted(*){margin:0}@media (min-width: 768px){.modal__content{padding-top:0;padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24)}}.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 = i(this, "modalClose", 7), this.modalOpen = i(this, "modalOpen", 7), this.primaryAction = i(this, "primaryAction", 7), this.secondaryAction = i(this, "secondaryAction", 7), this.onKeyDown = (o) => {
|
|
10
|
-
o.code === "Escape" && this.close();
|
|
11
|
-
}, this.onBackdropClick = () => {
|
|
12
|
-
this.close();
|
|
13
|
-
}, this.onCloseButtonClick = () => {
|
|
14
|
-
this.close();
|
|
15
|
-
}, this.onPrimaryAction = (o) => {
|
|
16
|
-
this.primaryAction.emit(o);
|
|
17
|
-
}, this.onSecondaryAction = (o) => {
|
|
18
|
-
this.secondaryAction.emit(o);
|
|
19
|
-
}, this.determineScrollStatus = () => {
|
|
20
|
-
var o, l, s, t, d, r;
|
|
21
|
-
const n = ((o = this.scrollContainer) === null || o === void 0 ? void 0 : o.scrollTop) > 0, c = Math.ceil(((l = this.scrollContainer) === null || l === void 0 ? void 0 : l.scrollTop) + ((s = this.scrollContainer) === null || s === void 0 ? void 0 : s.offsetHeight)) >= ((t = this.scrollContainer) === null || t === void 0 ? void 0 : t.scrollHeight), m = ((d = this.scrollContainer) === null || d === void 0 ? void 0 : d.scrollHeight) > ((r = this.scrollContainer) === null || r === void 0 ? void 0 : r.offsetHeight);
|
|
22
|
-
n !== this.scrolled && (this.scrolled = n), c !== this.scrolledDown && (this.scrolledDown = c), m !== this.scrollable && (this.scrollable = m);
|
|
23
|
-
}, this.closeButtonLabel = "Close modal", this.label = void 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
|
-
v(this.scrollContainer);
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
const e = u("modal", {
|
|
51
|
-
"modal--closing": this.closing,
|
|
52
|
-
"modal--scrollable": this.scrollable,
|
|
53
|
-
"modal--scrolled": this.scrolled,
|
|
54
|
-
"modal--scrolled-down": this.scrolledDown
|
|
55
|
-
});
|
|
56
|
-
return a(p, null, a("section", { "aria-hidden": "true", "aria-label": this.label, class: e, id: "modal", onKeyDown: this.onKeyDown, ref: (o) => this.modalEl = o }, a("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), a("div", { class: "modal__body", role: "document" }, a("swirl-button", { class: "modal__close-button", hideLabel: !0, icon: "<swirl-icon-close></swirl-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), a("header", { class: "modal__header" }, a("swirl-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label })), a("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (o) => this.scrollContainer = o }, a("slot", null)), a("footer", { class: "modal__controls" }, a("swirl-button-group", { wrap: !0 }, this.secondaryActionLabel && a("swirl-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && a("swirl-button", { intent: "primary", label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" }))))));
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
y.style = g;
|
|
60
|
-
export {
|
|
61
|
-
y as swirl_modal
|
|
62
|
-
};
|