@getflip/swirl-components-react 0.37.3 → 0.38.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.e7e417e2.js → file-manager.entry.b1a5df02.js} +1 -1
- package/dist/{index.a9a3d115.js → index.df277ce6.js} +2 -2
- package/dist/{swirl-action-list-section.entry.de58cd10.js → swirl-action-list-section.entry.55591cd7.js} +1 -1
- package/dist/{swirl-action-list_3.entry.e2af81d5.js → swirl-action-list_3.entry.e6daab7f.js} +1 -1
- package/dist/{swirl-app-bar.entry.2e61597c.js → swirl-app-bar.entry.e3c438dd.js} +1 -1
- package/dist/{swirl-app-icon.entry.e0f6c4c3.js → swirl-app-icon.entry.372769dd.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.e04207cc.js → swirl-app-layout_7.entry.f3bbef45.js} +1 -1
- package/dist/{swirl-autocomplete.entry.004b95e8.js → swirl-autocomplete.entry.7312f435.js} +1 -1
- package/dist/{swirl-avatar-group.entry.2b103230.js → swirl-avatar-group.entry.9d0303c0.js} +1 -1
- package/dist/{swirl-avatar.entry.7773e2f8.js → swirl-avatar.entry.2d9f240f.js} +1 -1
- package/dist/{swirl-badge.entry.16390428.js → swirl-badge.entry.e52a9a10.js} +1 -1
- package/dist/{swirl-banner.entry.57cef23c.js → swirl-banner.entry.9a2f1d3e.js} +1 -1
- package/dist/{swirl-button-group.entry.2d15c76e.js → swirl-button-group.entry.6c5722bd.js} +1 -1
- package/dist/{swirl-button.entry.0fafc605.js → swirl-button.entry.6ee1634f.js} +1 -1
- package/dist/{swirl-card.entry.03dfd20d.js → swirl-card.entry.fc11f418.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.c1891758.js → swirl-carousel-slide.entry.11585869.js} +1 -1
- package/dist/{swirl-carousel.entry.160d4458.js → swirl-carousel.entry.923a57c4.js} +1 -1
- package/dist/{swirl-checkbox.entry.4c3c7130.js → swirl-checkbox.entry.002a2b62.js} +1 -1
- package/dist/{swirl-chip.entry.379abfd4.js → swirl-chip.entry.00b0b74e.js} +1 -1
- package/dist/{swirl-columns.entry.b66d585d.js → swirl-columns.entry.5d2c17f3.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +54 -48
- package/dist/{swirl-console-layout.entry.6c8b1b5f.js → swirl-console-layout.entry.cf362bc4.js} +1 -1
- package/dist/{swirl-date-input.entry.d8cffd58.js → swirl-date-input.entry.49004439.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.874c047b.js → swirl-date-picker_2.entry.c8587051.js} +1 -1
- package/dist/{swirl-description-list-item.entry.859f86d6.js → swirl-description-list-item.entry.3e4f263d.js} +1 -1
- package/dist/{swirl-description-list.entry.55a04eaf.js → swirl-description-list.entry.0a7fcca4.js} +1 -1
- package/dist/{swirl-dialog.entry.6ae5a5f9.js → swirl-dialog.entry.e052f417.js} +1 -1
- package/dist/{swirl-file-uploader.entry.77f13d22.js → swirl-file-uploader.entry.0fec650a.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.34840537.js → swirl-file-viewer_7.entry.daac6d15.js} +1 -1
- package/dist/{swirl-form-control.entry.b2f743b0.js → swirl-form-control.entry.34f9cf53.js} +8 -8
- package/dist/{swirl-form-group.entry.a600afd0.js → swirl-form-group.entry.b3609a44.js} +1 -1
- package/dist/{swirl-heading.entry.1301745b.js → swirl-heading.entry.93e8e09e.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.94c52764.js → swirl-icon-add-photo.entry.b8d95985.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.82157951.js → swirl-icon-add_6.entry.b105685f.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.f27b0483.js → swirl-icon-admin-panel-settings.entry.957bc2e8.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.7c8431bb.js → swirl-icon-arrow-back.entry.f12194a3.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.d01b6330.js → swirl-icon-arrow-downward_2.entry.df131acf.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.bf7e6167.js → swirl-icon-arrow-forward.entry.5f247f8e.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.71845079.js → swirl-icon-arrow-left_4.entry.52fd2eab.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.2373c60b.js → swirl-icon-arrow-right-small.entry.5f77cbae.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.dd6ed627.js → swirl-icon-attachment.entry.dd55112e.js} +1 -1
- package/dist/{swirl-icon-block.entry.5bd3c72b.js → swirl-icon-block.entry.18b3fee7.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.de875f5c.js → swirl-icon-bookmark.entry.68cee2b6.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.12c266a0.js → swirl-icon-cancel_4.entry.4cbe38c8.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.4c155c87.js → swirl-icon-chat-bubble.entry.bec529b7.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.d2d546c4.js → swirl-icon-chats-filled.entry.b401b2de.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.5c943c8c.js → swirl-icon-chats-outlined.entry.e85f7607.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.0d02b827.js → swirl-icon-check-circle_3.entry.d155e60c.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.4abe85eb.js → swirl-icon-check-small_4.entry.daced9ec.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.9d3a6e65.js → swirl-icon-check-strong.entry.d460e34e.js} +1 -1
- package/dist/{swirl-icon-check.entry.b2728cf9.js → swirl-icon-check.entry.2e023867.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.b3d21f88.js → swirl-icon-chevron-left.entry.04d01128.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.9957c5e1.js → swirl-icon-chevron-right.entry.785ec521.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.cf2d25eb.js → swirl-icon-close-small.entry.6d408844.js} +1 -1
- package/dist/{swirl-icon-close.entry.fba03249.js → swirl-icon-close.entry.1f3eed31.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.df2d1d56.js → swirl-icon-cloud-upload.entry.489b3698.js} +1 -1
- package/dist/{swirl-icon-column.entry.8558f444.js → swirl-icon-column.entry.c2c0d1f7.js} +1 -1
- package/dist/{swirl-icon-comment.entry.830cda12.js → swirl-icon-comment.entry.6571e53f.js} +1 -1
- package/dist/{swirl-icon-copy.entry.795c0f1c.js → swirl-icon-copy.entry.36619610.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.3814dffd.js → swirl-icon-date-range.entry.74684ba9.js} +1 -1
- package/dist/{swirl-icon-delete.entry.fc936a4c.js → swirl-icon-delete.entry.9c03a7b6.js} +1 -1
- package/dist/{swirl-icon-description.entry.a7fd357b.js → swirl-icon-description.entry.c174f9a5.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.dd84f9dc.js → swirl-icon-double-arrow-left.entry.706916d3.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.35bb583b.js → swirl-icon-double-arrow-right.entry.10574d1c.js} +1 -1
- package/dist/{swirl-icon-download.entry.b85ac070.js → swirl-icon-download.entry.7ee9b12b.js} +1 -1
- package/dist/{swirl-icon-edit.entry.69ca5084.js → swirl-icon-edit.entry.ddb565c0.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.86ed43ba.js → swirl-icon-emoji-mood.entry.51a4bcdb.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.c1308e53.js → swirl-icon-emoji-satisfied.entry.a499ad10.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.746868b3.js → swirl-icon-error_3.entry.8e6de7aa.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.cbc7bcbf.js → swirl-icon-expand-more.entry.363c5c62.js} +1 -1
- package/dist/{swirl-icon-filter.entry.977584ce.js → swirl-icon-filter.entry.28f7f98d.js} +1 -1
- package/dist/{swirl-icon-folder.entry.7790925a.js → swirl-icon-folder.entry.b3bb0643.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.05f06fe9.js → swirl-icon-group-assign.entry.96b0e631.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.63eb52f0.js → swirl-icon-groups-custom.entry.c23d3c3d.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.a7ce4b72.js → swirl-icon-groups-filled.entry.1c96daf4.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.0c77887e.js → swirl-icon-groups-outlined.entry.42264d5b.js} +1 -1
- package/dist/{swirl-icon-groups.entry.a7bee922.js → swirl-icon-groups.entry.b51c7a14.js} +1 -1
- package/dist/{swirl-icon-help.entry.cb864725.js → swirl-icon-help.entry.d047f6c0.js} +1 -1
- package/dist/{swirl-icon-image.entry.5ff23081.js → swirl-icon-image.entry.ae3e96d8.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.23e67c78.js → swirl-icon-inventory.entry.48757bba.js} +1 -1
- package/dist/{swirl-icon-like.entry.3ec78820.js → swirl-icon-like.entry.b045863b.js} +1 -1
- package/dist/{swirl-icon-link.entry.89c05e5e.js → swirl-icon-link.entry.8853ac8e.js} +1 -1
- package/dist/{swirl-icon-lock.entry.1093af45.js → swirl-icon-lock.entry.febfe0b6.js} +1 -1
- package/dist/{swirl-icon-logout.entry.18ce3100.js → swirl-icon-logout.entry.50d6ebff.js} +1 -1
- package/dist/{swirl-icon-mail.entry.6366e021.js → swirl-icon-mail.entry.5e33e820.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.8f20562b.js → swirl-icon-manage-accounts.entry.341d6c0e.js} +1 -1
- package/dist/{swirl-icon-mention.entry.b33bdb46.js → swirl-icon-mention.entry.0987dc6a.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.64211312.js → swirl-icon-menu-filled.entry.07de0ffd.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.9a677ed1.js → swirl-icon-menu-outlined.entry.1266ab27.js} +1 -1
- package/dist/{swirl-icon-menu.entry.aa078047.js → swirl-icon-menu.entry.f50587a5.js} +1 -1
- package/dist/{swirl-icon-message.entry.e31aa8af.js → swirl-icon-message.entry.71f07c11.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.fde8297f.js → swirl-icon-more-horizontal.entry.88d1976c.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.1490a243.js → swirl-icon-news-filled.entry.731b2e9c.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.071e311d.js → swirl-icon-news-outlined.entry.d6aed10c.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.d876c33e.js → swirl-icon-notifications-active.entry.2e2522ac.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.4376a9bc.js → swirl-icon-notifications-off.entry.7867dfb7.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.3f1df3c6.js → swirl-icon-notifications.entry.6761f385.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.47f30128.js → swirl-icon-open-in-new.entry.706ceeb1.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.f7fc84f3.js → swirl-icon-people-alt.entry.3b9a2a0e.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.0f4006ee.js → swirl-icon-person-off.entry.d9a8a150.js} +1 -1
- package/dist/{swirl-icon-person.entry.4f21b5a0.js → swirl-icon-person.entry.09d58a84.js} +1 -1
- package/dist/{swirl-icon-phone.entry.9cf942f2.js → swirl-icon-phone.entry.ef479a7d.js} +1 -1
- package/dist/{swirl-icon-poll.entry.50c5f281.js → swirl-icon-poll.entry.9a9c34c2.js} +1 -1
- package/dist/{swirl-icon-print.entry.c2211b52.js → swirl-icon-print.entry.2467ed66.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.de0c6027.js → swirl-icon-recieved.entry.88c90529.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.e584c815.js → swirl-icon-search-strong.entry.15520333.js} +1 -1
- package/dist/{swirl-icon-search.entry.551fc845.js → swirl-icon-search.entry.b86c83d5.js} +1 -1
- package/dist/{swirl-icon-send.entry.ba220717.js → swirl-icon-send.entry.5aa2371c.js} +1 -1
- package/dist/{swirl-icon-settings.entry.158f3b29.js → swirl-icon-settings.entry.3025538f.js} +1 -1
- package/dist/{swirl-icon-sync.entry.1f716fbd.js → swirl-icon-sync.entry.1fc85e61.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.fffcf7c6.js → swirl-icon-tasks-filled.entry.44abdb56.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.3d9bdf8e.js → swirl-icon-tasks-outlined.entry.1d8bec23.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.bd8f0618.js → swirl-icon-time-filled.entry.533adb6c.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.f1b2fc74.js → swirl-icon-time-outlined.entry.d4458849.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.381f3e87.js → swirl-icon-user-assign.entry.1144894b.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.8dfcde85.js → swirl-icon-video-camera.entry.6cc7978f.js} +1 -1
- package/dist/{swirl-inline-notification.entry.f1f1bb6a.js → swirl-inline-notification.entry.4849c83f.js} +1 -1
- package/dist/{swirl-lightbox.entry.9f8124fa.js → swirl-lightbox.entry.7d2f750d.js} +1 -1
- package/dist/{swirl-link.entry.e21d7bb3.js → swirl-link.entry.40426b3d.js} +1 -1
- package/dist/{swirl-list.entry.f9347dfe.js → swirl-list.entry.4a9879bb.js} +1 -1
- package/dist/swirl-modal.entry.647f1b21.js +528 -0
- package/dist/{swirl-option-list-section.entry.7dcd4e03.js → swirl-option-list-section.entry.6d346b11.js} +1 -1
- package/dist/{swirl-pagination.entry.d268f00b.js → swirl-pagination.entry.ead335ac.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.07594f69.js → swirl-pdf-reader.entry.eb167c23.js} +1 -1
- package/dist/{swirl-popover.entry.62d30087.js → swirl-popover.entry.c970a0ed.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.eae8bf16.js → swirl-progress-indicator.entry.45bd7b1d.js} +1 -1
- package/dist/{swirl-radio-group.entry.c954434d.js → swirl-radio-group.entry.8375bf4e.js} +1 -1
- package/dist/{swirl-radio.entry.4c2753ac.js → swirl-radio.entry.305fdfa5.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.829bae48.js → swirl-resource-list-file-item.entry.fd1c2dc9.js} +1 -1
- package/dist/{swirl-search.entry.b07aac78.js → swirl-search.entry.b9a829a1.js} +1 -1
- package/dist/{swirl-select.entry.a9e72b52.js → swirl-select.entry.12b1a390.js} +1 -1
- package/dist/{swirl-shell-layout.entry.bf129977.js → swirl-shell-layout.entry.f5bd70e0.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.bd881f14.js → swirl-shell-navigation-item.entry.cf0fc2b6.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.030b97c1.js → swirl-skeleton-box.entry.fc7ccd91.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.1888664d.js → swirl-skeleton-text.entry.d2acdf23.js} +1 -1
- package/dist/{swirl-stack.entry.0c61ba9e.js → swirl-stack.entry.9c6fe41b.js} +1 -1
- package/dist/{swirl-switch.entry.e9560f4f.js → swirl-switch.entry.83dc9dc5.js} +1 -1
- package/dist/{swirl-tab.entry.af09a22e.js → swirl-tab.entry.32c9f28d.js} +1 -1
- package/dist/{swirl-table-cell.entry.348ff8eb.js → swirl-table-cell.entry.eb1d801d.js} +1 -1
- package/dist/{swirl-table-column.entry.a50deb89.js → swirl-table-column.entry.bf1f321e.js} +1 -1
- package/dist/{swirl-table-row-group.entry.a53d8f8d.js → swirl-table-row-group.entry.a5cf5d28.js} +1 -1
- package/dist/{swirl-table-row.entry.b257fd6a.js → swirl-table-row.entry.64cf13f4.js} +1 -1
- package/dist/{swirl-table.entry.7e9f39c5.js → swirl-table.entry.50f25c36.js} +1 -1
- package/dist/{swirl-tabs.entry.bbbfb794.js → swirl-tabs.entry.78b5e624.js} +1 -1
- package/dist/{swirl-tag.entry.7d9734a9.js → swirl-tag.entry.8eccca4a.js} +1 -1
- package/dist/{swirl-text-input.entry.ad018c07.js → swirl-text-input.entry.58ba1137.js} +2 -2
- package/dist/{swirl-text.entry.cd914ed0.js → swirl-text.entry.67d9b448.js} +1 -1
- package/dist/{swirl-theme-provider.entry.f65e0ce9.js → swirl-theme-provider.entry.542acaf3.js} +1 -1
- package/dist/{swirl-toast-provider.entry.9aafa65c.js → swirl-toast-provider.entry.688d0944.js} +1 -1
- package/dist/{swirl-toast.entry.c9585f52.js → swirl-toast.entry.66664720.js} +1 -1
- package/dist/{swirl-tooltip.entry.83091fed.js → swirl-tooltip.entry.229b2e93.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.44784407.js → swirl-tree-navigation-item.entry.2f363cbd.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.9ffc0219.js → swirl-video-thumbnail.entry.e2a15157.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.d7df80b4.js → swirl-visually-hidden.entry.0de1d386.js} +1 -1
- package/dist/{wc-datepicker.entry.dc57ca54.js → wc-datepicker.entry.3b341b74.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-modal.entry.6c4c1edb.js +0 -66
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t, H as i, g as r } from "./index.
|
|
1
|
+
import { r as e, h as t, H as i, g as r } from "./index.df277ce6.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ":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-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(.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}", o = class {
|
package/dist/{swirl-table-row-group.entry.a53d8f8d.js → swirl-table-row-group.entry.a5cf5d28.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.df277ce6.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 h, c as n, h as i, H as d } from "./index.
|
|
1
|
+
import { r as h, c as n, h as i, H as d } from "./index.df277ce6.js";
|
|
2
2
|
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as x } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -65,7 +65,7 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
|
|
|
65
65
|
"text-input--inline": this.inline,
|
|
66
66
|
"text-input--show-password": this.type === "password" && this.showPassword
|
|
67
67
|
});
|
|
68
|
-
return i(d, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": s, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : void 0, min: this.type === "number" ? this.min : void 0, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, ref: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: l, value: this.rows === 1 ? this.value : void 0 }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), u && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, type: "button" }, i("swirl-icon-cancel", { size: this.iconSize })), a && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("swirl-icon-visibility-off", { size: this.iconSize }) : i("swirl-icon-visibility", { size: this.iconSize })), r && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { size: this.iconSize })), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { size: this.iconSize }))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((e = this.value) === null || e === void 0 ? void 0 : e.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
68
|
+
return i(d, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": s, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : void 0, min: this.type === "number" ? this.min : void 0, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, ref: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: l, value: this.rows === 1 ? this.value : void 0 }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), u && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, part: "text-input__clear-button", type: "button" }, i("swirl-icon-cancel", { size: this.iconSize })), a && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("swirl-icon-visibility-off", { size: this.iconSize }) : i("swirl-icon-visibility", { size: this.iconSize })), r && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { size: this.iconSize })), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { size: this.iconSize }))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((e = this.value) === null || e === void 0 ? void 0 : e.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
b.style = w;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as J, h as y, H as T, g as V } from "./index.
|
|
1
|
+
import { r as J, h as y, H as T, g as V } from "./index.df277ce6.js";
|
|
2
2
|
import { c as F } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { b as G } 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.df277ce6.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.d7df80b4.js → swirl-visually-hidden.entry.0de1d386.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.df277ce6.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.38.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.39.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { r as h, c as s, h as o, H as p } from "./index.a9a3d115.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
|
-
};
|