@getflip/swirl-components-react 0.53.2 → 0.54.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.ea9a3744.js → file-manager.entry.3524bd19.js} +1 -1
- package/dist/{index.3c21a5ce.js → index.a4b92857.js} +2 -2
- package/dist/{swirl-action-list-section.entry.3f05deb8.js → swirl-action-list-section.entry.c7f72cab.js} +1 -1
- package/dist/{swirl-action-list_3.entry.12076e65.js → swirl-action-list_3.entry.bb6f25f4.js} +1 -1
- package/dist/{swirl-app-bar.entry.cd230557.js → swirl-app-bar.entry.03c80582.js} +1 -1
- package/dist/{swirl-app-icon.entry.2fd855d6.js → swirl-app-icon.entry.2f7d52b2.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.30c281d3.js → swirl-app-layout_7.entry.47cacdc3.js} +9 -9
- package/dist/{swirl-autocomplete.entry.2e3c064e.js → swirl-autocomplete.entry.e557b4a9.js} +1 -1
- package/dist/{swirl-avatar-group.entry.7ed9642f.js → swirl-avatar-group.entry.344f9e96.js} +1 -1
- package/dist/{swirl-avatar.entry.70ebb742.js → swirl-avatar.entry.4aed2dd7.js} +1 -1
- package/dist/{swirl-badge.entry.6145f189.js → swirl-badge.entry.f0aebdd0.js} +1 -1
- package/dist/{swirl-banner.entry.0d5203fe.js → swirl-banner.entry.f522443c.js} +1 -1
- package/dist/{swirl-button-group.entry.3b45b89d.js → swirl-button-group.entry.bcf97933.js} +1 -1
- package/dist/{swirl-button.entry.ad7359ba.js → swirl-button.entry.980bf18d.js} +1 -1
- package/dist/{swirl-card.entry.ab5ccacd.js → swirl-card.entry.be6c290a.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.17cc7fc3.js → swirl-carousel-slide.entry.baa1b653.js} +1 -1
- package/dist/{swirl-carousel.entry.d221f888.js → swirl-carousel.entry.bb8ccb9a.js} +1 -1
- package/dist/{swirl-checkbox.entry.25d8a12c.js → swirl-checkbox.entry.5f6d6f3e.js} +1 -1
- package/dist/{swirl-chip.entry.6d17ca61.js → swirl-chip.entry.a93efa1e.js} +1 -1
- package/dist/{swirl-columns.entry.824f22ea.js → swirl-columns.entry.8e0d75dd.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +30 -30
- package/dist/{swirl-console-layout.entry.c63ab3d5.js → swirl-console-layout.entry.85951205.js} +1 -1
- package/dist/{swirl-date-input.entry.be0bad44.js → swirl-date-input.entry.079405fa.js} +2 -2
- package/dist/{swirl-date-picker_2.entry.d867bf7e.js → swirl-date-picker_2.entry.2cd2140d.js} +1 -1
- package/dist/{swirl-description-list-item.entry.cbe182a2.js → swirl-description-list-item.entry.4aea30e3.js} +1 -1
- package/dist/{swirl-description-list.entry.1becbbdc.js → swirl-description-list.entry.79df65c8.js} +1 -1
- package/dist/{swirl-dialog.entry.14f9cc93.js → swirl-dialog.entry.423bdbba.js} +2 -2
- package/dist/{swirl-file-uploader.entry.9082ff96.js → swirl-file-uploader.entry.52473aa5.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.2e52a977.js → swirl-file-viewer_7.entry.c0cd235b.js} +1 -1
- package/dist/swirl-form-control.entry.d0041649.js +74 -0
- package/dist/{swirl-form-group.entry.969d237e.js → swirl-form-group.entry.42cea9f8.js} +1 -1
- package/dist/{swirl-heading.entry.c407e596.js → swirl-heading.entry.f5a662da.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.01c8da42.js → swirl-icon-add-photo.entry.fdf0de97.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.1ac65bba.js → swirl-icon-add_6.entry.d0484352.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.51555355.js → swirl-icon-admin-panel-settings.entry.4b5bbf38.js} +1 -1
- package/dist/{swirl-icon-ai.entry.832a8e86.js → swirl-icon-ai.entry.a0d2cbf0.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.9efe9387.js → swirl-icon-arrow-back.entry.59f870f3.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.5cc8ec9f.js → swirl-icon-arrow-downward_2.entry.06e2b3b1.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.cece4b96.js → swirl-icon-arrow-forward.entry.6e1b0fcc.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.c849b8f9.js → swirl-icon-arrow-left_4.entry.e4f601c8.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.4f268ee0.js → swirl-icon-arrow-right-small.entry.9f4ef03a.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.6e338570.js → swirl-icon-attachment.entry.e590a2c4.js} +1 -1
- package/dist/{swirl-icon-block.entry.7c300308.js → swirl-icon-block.entry.a0c726e2.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.6c7bbfca.js → swirl-icon-bookmark.entry.b7f7c0f7.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.b7ffe647.js → swirl-icon-cancel_4.entry.d451b908.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.21f3ab49.js → swirl-icon-chat-bubble.entry.8bd19753.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.babb5277.js → swirl-icon-chats-filled.entry.7a4ed5ba.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.5c92b69d.js → swirl-icon-chats-outlined.entry.605aa2ac.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.7e53d9c0.js → swirl-icon-check-circle_3.entry.fa28b855.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.d3fb8151.js → swirl-icon-check-small_4.entry.8b5d5d68.js} +4 -4
- package/dist/{swirl-icon-check-strong.entry.59d72d97.js → swirl-icon-check-strong.entry.7576037f.js} +1 -1
- package/dist/{swirl-icon-check.entry.788e2dba.js → swirl-icon-check.entry.86c03f2c.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.67dd8240.js → swirl-icon-chevron-left.entry.59e4a266.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.1b4eb98b.js → swirl-icon-chevron-right.entry.e0f01112.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.7920eb29.js → swirl-icon-close-small.entry.bc7251bf.js} +1 -1
- package/dist/{swirl-icon-close.entry.dfd3f954.js → swirl-icon-close.entry.8d50d7d2.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.feb3c7c0.js → swirl-icon-cloud-upload.entry.e6267e3d.js} +1 -1
- package/dist/{swirl-icon-column.entry.2b1c6f03.js → swirl-icon-column.entry.1ab44142.js} +1 -1
- package/dist/{swirl-icon-comment.entry.556449ea.js → swirl-icon-comment.entry.cefa7e58.js} +1 -1
- package/dist/{swirl-icon-copy.entry.9ae0ca4d.js → swirl-icon-copy.entry.8178d62f.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.c95ae5f5.js → swirl-icon-date-range.entry.7b6873fc.js} +1 -1
- package/dist/{swirl-icon-delete.entry.ffe7fc7e.js → swirl-icon-delete.entry.aa9cd301.js} +1 -1
- package/dist/{swirl-icon-description.entry.2725064c.js → swirl-icon-description.entry.8cac5056.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.e346a21c.js → swirl-icon-double-arrow-left.entry.32c75b81.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.b5821390.js → swirl-icon-double-arrow-right.entry.43a5c993.js} +1 -1
- package/dist/{swirl-icon-download.entry.b0866554.js → swirl-icon-download.entry.149a1060.js} +1 -1
- package/dist/{swirl-icon-edit.entry.f192b68e.js → swirl-icon-edit.entry.7d36e252.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.1ad0a347.js → swirl-icon-emoji-mood.entry.18a9504d.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.88f0bd81.js → swirl-icon-emoji-satisfied.entry.6e8d1788.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.daff5357.js → swirl-icon-error_3.entry.339342e4.js} +12 -12
- package/dist/{swirl-icon-expand-more.entry.c42c276a.js → swirl-icon-expand-more.entry.486f8ce8.js} +1 -1
- package/dist/{swirl-icon-filter.entry.4b64700c.js → swirl-icon-filter.entry.ff77c374.js} +1 -1
- package/dist/{swirl-icon-folder.entry.6998e846.js → swirl-icon-folder.entry.f4c1b205.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.7a8f7657.js → swirl-icon-group-assign.entry.33256a3c.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.f9525874.js → swirl-icon-groups-custom.entry.748a456b.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.85bd0690.js → swirl-icon-groups-filled.entry.36e7f8e0.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.142ae7df.js → swirl-icon-groups-outlined.entry.210e7f22.js} +1 -1
- package/dist/{swirl-icon-groups.entry.038f71d8.js → swirl-icon-groups.entry.2694ca2c.js} +1 -1
- package/dist/{swirl-icon-help.entry.7e855935.js → swirl-icon-help.entry.f07a2281.js} +1 -1
- package/dist/{swirl-icon-image.entry.d2233dbe.js → swirl-icon-image.entry.3346c1f2.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.3e070896.js → swirl-icon-improve-text.entry.af1485eb.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.5bc85040.js → swirl-icon-insert-below.entry.85e1abd7.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.8d4c2af3.js → swirl-icon-insert-on-top.entry.09c1362e.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.03a3918e.js → swirl-icon-inventory.entry.843cc204.js} +1 -1
- package/dist/{swirl-icon-like.entry.2c47770a.js → swirl-icon-like.entry.ee0bd066.js} +1 -1
- package/dist/{swirl-icon-link.entry.67dd13f5.js → swirl-icon-link.entry.1183edd3.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.b0404b6e.js → swirl-icon-lock-person.entry.dbe12852.js} +1 -1
- package/dist/{swirl-icon-lock.entry.d3d5593a.js → swirl-icon-lock.entry.a71a6096.js} +1 -1
- package/dist/{swirl-icon-logout.entry.955b900f.js → swirl-icon-logout.entry.d70ebffa.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.2ffc10f0.js → swirl-icon-long-text.entry.aa1bf299.js} +1 -1
- package/dist/{swirl-icon-mail.entry.8cdccaac.js → swirl-icon-mail.entry.b1d2267d.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.a6514af6.js → swirl-icon-manage-accounts.entry.4590bf22.js} +1 -1
- package/dist/{swirl-icon-mention.entry.2d2ff833.js → swirl-icon-mention.entry.2ec0bc62.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.ee4cfcac.js → swirl-icon-menu-filled.entry.fd30c385.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.5cab28d1.js → swirl-icon-menu-outlined.entry.ef67c641.js} +1 -1
- package/dist/{swirl-icon-menu.entry.5b0289a1.js → swirl-icon-menu.entry.5c7945f5.js} +1 -1
- package/dist/{swirl-icon-message.entry.28a68b78.js → swirl-icon-message.entry.e9eb1825.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.5341fdd3.js → swirl-icon-more-horizontal.entry.12bc99e2.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.ea879d6d.js → swirl-icon-news-filled.entry.e8091951.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.8d693ab4.js → swirl-icon-news-outlined.entry.81dc8ef6.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.0f80ee60.js → swirl-icon-notifications-active.entry.2658d60c.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.5648639d.js → swirl-icon-notifications-off.entry.00e58d75.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.02760ba9.js → swirl-icon-notifications.entry.c3a5142d.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.0ea98665.js → swirl-icon-open-in-new.entry.8e623107.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.7033dd36.js → swirl-icon-people-alt.entry.478ad4c3.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.61394e18.js → swirl-icon-person-off.entry.19d46c23.js} +1 -1
- package/dist/{swirl-icon-person.entry.f55579d8.js → swirl-icon-person.entry.8bf878cc.js} +1 -1
- package/dist/{swirl-icon-phone.entry.3984da7a.js → swirl-icon-phone.entry.c9ea84ff.js} +1 -1
- package/dist/{swirl-icon-poll.entry.52b725ad.js → swirl-icon-poll.entry.9110a181.js} +1 -1
- package/dist/{swirl-icon-print.entry.d6e7db41.js → swirl-icon-print.entry.f2086785.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.014feef9.js → swirl-icon-recieved.entry.9db54547.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.d24ca105.js → swirl-icon-search-strong.entry.3ef5e19f.js} +1 -1
- package/dist/{swirl-icon-search.entry.d6229862.js → swirl-icon-search.entry.aea68717.js} +1 -1
- package/dist/{swirl-icon-send.entry.62a671d4.js → swirl-icon-send.entry.2fd28906.js} +1 -1
- package/dist/{swirl-icon-settings.entry.cc32e765.js → swirl-icon-settings.entry.43143d9b.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.11017546.js → swirl-icon-short-text.entry.27915c9f.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.be8d8b95.js → swirl-icon-simplify.entry.21613269.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.3e4e4553.js → swirl-icon-spellcheck.entry.7956759a.js} +1 -1
- package/dist/{swirl-icon-sync.entry.54216b43.js → swirl-icon-sync.entry.03f09d97.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.df4a2c9f.js → swirl-icon-tasks-filled.entry.3cd9a959.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.0b534ec1.js → swirl-icon-tasks-outlined.entry.307cf1f2.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.4ad7da74.js → swirl-icon-time-filled.entry.0b7f869f.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.377f0fdf.js → swirl-icon-time-outlined.entry.9c5fa0ea.js} +1 -1
- package/dist/{swirl-icon-undo.entry.995917a8.js → swirl-icon-undo.entry.dee8b0ac.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.7ea703de.js → swirl-icon-unlock-person.entry.c4a001fb.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.995750bb.js → swirl-icon-user-assign.entry.0e86a834.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.f065096e.js → swirl-icon-video-camera.entry.8ef2a783.js} +1 -1
- package/dist/{swirl-icon-voice.entry.80883ef4.js → swirl-icon-voice.entry.30eb95ab.js} +1 -1
- package/dist/{swirl-icon.entry.522807fa.js → swirl-icon.entry.38cfa4be.js} +1 -1
- package/dist/{swirl-inline-notification.entry.af7824b8.js → swirl-inline-notification.entry.f22389dc.js} +1 -1
- package/dist/{swirl-lightbox.entry.ae79e329.js → swirl-lightbox.entry.06b42028.js} +2 -2
- package/dist/{swirl-link.entry.03d71c83.js → swirl-link.entry.06815063.js} +1 -1
- package/dist/{swirl-list.entry.b4e4f98d.js → swirl-list.entry.ec8d6ed2.js} +1 -1
- package/dist/{swirl-modal.entry.a2668abd.js → swirl-modal.entry.b3130858.js} +61 -61
- package/dist/{swirl-option-list-section.entry.24e1f718.js → swirl-option-list-section.entry.6e879acd.js} +1 -1
- package/dist/{swirl-pagination.entry.53888905.js → swirl-pagination.entry.f461988c.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.46ce5bee.js → swirl-pdf-reader.entry.7e1f99b8.js} +5 -5
- package/dist/swirl-popover.entry.a710490a.js +117 -0
- package/dist/{swirl-progress-indicator.entry.ea394ef8.js → swirl-progress-indicator.entry.b5a4a72f.js} +1 -1
- package/dist/{swirl-radio-group.entry.94e48b12.js → swirl-radio-group.entry.ffc5fb39.js} +1 -1
- package/dist/{swirl-radio.entry.dfd76fe2.js → swirl-radio.entry.7daa2ed6.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.16b7f074.js → swirl-resource-list-file-item.entry.cc2338c0.js} +1 -1
- package/dist/{swirl-search.entry.a62369cd.js → swirl-search.entry.f957c6be.js} +1 -1
- package/dist/{swirl-select.entry.aaed02fc.js → swirl-select.entry.a67b7e6d.js} +1 -1
- package/dist/{swirl-shell-layout.entry.72306e4a.js → swirl-shell-layout.entry.c215ebed.js} +2 -2
- package/dist/{swirl-shell-navigation-item.entry.24d9f6b1.js → swirl-shell-navigation-item.entry.919c815c.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.8d896c71.js → swirl-skeleton-box.entry.ad743768.js} +2 -2
- package/dist/{swirl-skeleton-text.entry.dcb5c8e1.js → swirl-skeleton-text.entry.cfb0db19.js} +2 -2
- package/dist/{swirl-stack.entry.ca68b796.js → swirl-stack.entry.69e0f024.js} +1 -1
- package/dist/{swirl-switch.entry.23414e3d.js → swirl-switch.entry.9e35c419.js} +1 -1
- package/dist/{swirl-tab-bar.entry.8fb902f7.js → swirl-tab-bar.entry.b57b1b30.js} +1 -1
- package/dist/{swirl-tab.entry.0aa95d82.js → swirl-tab.entry.8fbcee5d.js} +1 -1
- package/dist/{swirl-table-cell.entry.10c5a5cc.js → swirl-table-cell.entry.6213ca7a.js} +1 -1
- package/dist/{swirl-table-column.entry.17a64701.js → swirl-table-column.entry.c23f60eb.js} +1 -1
- package/dist/{swirl-table-row-group.entry.327758a7.js → swirl-table-row-group.entry.d8c93491.js} +1 -1
- package/dist/{swirl-table-row.entry.e83c1e94.js → swirl-table-row.entry.f371fa98.js} +1 -1
- package/dist/{swirl-table.entry.c81e8549.js → swirl-table.entry.65c30666.js} +1 -1
- package/dist/{swirl-tabs.entry.8052d606.js → swirl-tabs.entry.06325123.js} +1 -1
- package/dist/{swirl-tag.entry.5008814f.js → swirl-tag.entry.d163b127.js} +1 -1
- package/dist/swirl-text-input.entry.6bb2d8bc.js +76 -0
- package/dist/{swirl-text.entry.7d9c2de3.js → swirl-text.entry.31e2be61.js} +1 -1
- package/dist/{swirl-theme-provider.entry.11e0a7f2.js → swirl-theme-provider.entry.9cca2f11.js} +1 -1
- package/dist/{swirl-toast-provider.entry.c9e9b61f.js → swirl-toast-provider.entry.3b223589.js} +1 -1
- package/dist/{swirl-toast.entry.daf33663.js → swirl-toast.entry.3304a149.js} +1 -1
- package/dist/{swirl-tooltip.entry.787beafe.js → swirl-tooltip.entry.34dc5729.js} +2 -2
- package/dist/{swirl-tree-navigation-item.entry.faefc318.js → swirl-tree-navigation-item.entry.0c5d51e8.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.3c2b644a.js → swirl-video-thumbnail.entry.e4954058.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.52e6e1d8.js → swirl-visually-hidden.entry.1a644479.js} +1 -1
- package/dist/{wc-datepicker.entry.2fdacabb.js → wc-datepicker.entry.84ac2f75.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-form-control.entry.2f358a3d.js +0 -69
- package/dist/swirl-popover.entry.fc83ef05.js +0 -117
- package/dist/swirl-text-input.entry.0a63dc86.js +0 -75
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as s, H as i } from "./index.
|
|
1
|
+
import { r as t, h as s, H as i } from "./index.a4b92857.js";
|
|
2
2
|
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -9,7 +9,7 @@ const r = `:host{display:block}:host *{box-sizing:border-box}.skeleton-box{posit
|
|
|
9
9
|
var(--s-surface-raised-default) 50%,
|
|
10
10
|
rgba(255, 255, 255, 0) 88%,
|
|
11
11
|
rgba(255, 255, 255, 0) 100%
|
|
12
|
-
);content:"";transform:translateX(-100%)
|
|
12
|
+
);content:"";transform:translateX(-100%);animation:skeleton-box-shimmer 3s infinite}@keyframes skeleton-box-shimmer{100%{transform:translateX(100%)}}.skeleton-box--static:before{display:none}.skeleton-box--border-radius-pill{border-radius:100rem}`, a = class {
|
|
13
13
|
constructor(e) {
|
|
14
14
|
t(this, e), this.animated = !0, this.aspectRatio = void 0, this.borderRadius = "base", this.height = void 0, this.width = void 0;
|
|
15
15
|
}
|
package/dist/{swirl-skeleton-text.entry.dcb5c8e1.js → swirl-skeleton-text.entry.cfb0db19.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as t, H as a } from "./index.
|
|
1
|
+
import { r as l, h as t, H as a } from "./index.a4b92857.js";
|
|
2
2
|
import { c as s } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -23,7 +23,7 @@ const o = `:host{display:block;width:100%}:host *{box-sizing:border-box}.skeleto
|
|
|
23
23
|
rgba(255, 255, 255, 0) 0,
|
|
24
24
|
var(--s-surface-raised-default) 33%,
|
|
25
25
|
rgba(255, 255, 255, 0) 66%
|
|
26
|
-
);content:"";transform:translateX(-100%)
|
|
26
|
+
);content:"";transform:translateX(-100%);animation:skeleton-text-shimmer 3s infinite}.skeleton-text__line:first-child:last-child{width:100%}.skeleton-text__line:last-child:not(:first-child){width:25%}@keyframes skeleton-text-shimmer{100%{transform:translateX(100%)}}`, r = class {
|
|
27
27
|
constructor(e) {
|
|
28
28
|
l(this, e), this.animated = !0, this.lines = 1, this.size = "base";
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as s, H as l } from "./index.
|
|
1
|
+
import { r as e, h as s, H as l } from "./index.a4b92857.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":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 *{box-sizing:border-box}", t = class {
|
package/dist/{swirl-table-row-group.entry.327758a7.js → swirl-table-row-group.entry.d8c93491.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.a4b92857.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 o, h as e, H as s, g as r } from "./index.
|
|
1
|
+
import { r as o, h as e, H as s, g as r } from "./index.a4b92857.js";
|
|
2
2
|
import { c as l } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { c as i } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, c as b, h as s, H as r, g as n } from "./index.
|
|
1
|
+
import { r as e, c as b, h as s, H as r, g as n } from "./index.a4b92857.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const c = ".sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl-tabs{box-sizing:border-box}.tabs.sc-swirl-tabs{width:100%}", h = class {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { r as h, c as n, h as i, H as d } from "./index.a4b92857.js";
|
|
2
|
+
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { a as x } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--auto-grow.sc-swirl-text-input .text-input__input.sc-swirl-text-input{max-height:none}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{top:calc(-1 * var(--s-space-8));right:calc(-1 * var(--s-space-12))}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{top:calc(-1 * var(--s-space-8));right:calc(-1 * var(--s-space-12))}}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input{width:2rem;height:1.125rem;justify-content:center;background-color:var(--s-surface-raised-default)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input:first-of-type{border-top-right-radius:var(--s-border-radius-sm)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input:last-of-type{border-bottom-right-radius:var(--s-border-radius-sm)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input:hover{background-color:var(--s-surface-raised-hovered)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input swirl-icon-expand-less.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input swirl-icon-expand-more.sc-swirl-text-input{width:1rem}.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:-0.0625rem}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:0}}.text-input--inline.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{top:calc(100% + var(--s-space-12) + var(--s-border-width-default));right:calc(-1 * var(--s-space-12));max-width:6rem}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', b = class {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.desktopMediaQuery = x(), this.desktopMediaQueryHandler = (t) => {
|
|
9
|
+
this.updateIconSize(t.matches);
|
|
10
|
+
}, this.clear = () => {
|
|
11
|
+
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
12
|
+
}, this.onChange = (t) => {
|
|
13
|
+
const s = t.target;
|
|
14
|
+
this.value = s.value, this.valueChange.emit(s.value);
|
|
15
|
+
}, this.onBlur = (t) => {
|
|
16
|
+
this.inputBlur.emit(t);
|
|
17
|
+
}, this.onFocus = (t) => {
|
|
18
|
+
this.inputFocus.emit(t), this.handleAutoSelect(t);
|
|
19
|
+
}, this.onInput = (t) => {
|
|
20
|
+
this.onChange(t);
|
|
21
|
+
}, this.onKeyPress = (t) => {
|
|
22
|
+
this.type === "number" && ["+", "-", "e"].includes(t.key) && t.preventDefault();
|
|
23
|
+
}, this.decreaseValue = () => {
|
|
24
|
+
if (this.type !== "number")
|
|
25
|
+
return;
|
|
26
|
+
const t = this.step || 1;
|
|
27
|
+
let s = this.inputEl.valueAsNumber;
|
|
28
|
+
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min + 1 : 1), this.value = String(Math.max(this.min || -1 / 0, s - t)), this.valueChange.emit(this.value);
|
|
29
|
+
}, this.increaseValue = () => {
|
|
30
|
+
if (this.type !== "number")
|
|
31
|
+
return;
|
|
32
|
+
const t = this.step || 1;
|
|
33
|
+
let s = this.inputEl.valueAsNumber;
|
|
34
|
+
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, s + t)), this.valueChange.emit(this.value);
|
|
35
|
+
}, this.togglePassword = () => {
|
|
36
|
+
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
37
|
+
}, this.autoComplete = "on", this.autoFocus = void 0, this.autoGrow = void 0, this.autoSelect = void 0, this.clearable = void 0, this.clearButtonLabel = "Clear input", this.disabled = void 0, this.disableDynamicWidth = void 0, this.swirlAriaAutocomplete = void 0, this.swirlAriaControls = void 0, this.swirlAriaDescribedby = void 0, this.swirlAriaExpanded = void 0, this.swirlRole = void 0, this.inline = void 0, this.invalid = void 0, this.maxLength = void 0, this.max = void 0, this.min = void 0, this.mode = void 0, this.placeholder = void 0, this.prefixLabel = void 0, this.required = void 0, this.rows = 1, this.showCharacterCounter = void 0, this.spellCheck = void 0, this.suffixLabel = void 0, this.step = void 0, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.value = void 0, this.iconSize = 24, this.showPassword = !1;
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
var e, t;
|
|
41
|
+
this.updateIconSize(this.desktopMediaQuery.matches), (t = (e = this.desktopMediaQuery).addEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
42
|
+
}
|
|
43
|
+
componentDidRender() {
|
|
44
|
+
this.adjustInputSize();
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
var e, t;
|
|
48
|
+
(t = (e = this.desktopMediaQuery).removeEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
49
|
+
}
|
|
50
|
+
updateIconSize(e) {
|
|
51
|
+
this.iconSize = e ? 20 : 24;
|
|
52
|
+
}
|
|
53
|
+
adjustInputSize() {
|
|
54
|
+
(this.rows > 1 || this.autoGrow) && (this.inputEl.style.width = "", this.inputEl.style.height = "", this.inputEl.style.height = this.inputEl.scrollHeight / 16 + "rem"), this.rows === 1 && !this.autoGrow && (this.inputEl.style.height = "", this.inputEl.style.width = "", this.type !== "password" && !this.disableDynamicWidth && !Boolean(this.placeholder) && (this.inputEl.style.width = this.inputEl.scrollWidth / 16 + "rem"));
|
|
55
|
+
}
|
|
56
|
+
handleAutoSelect(e) {
|
|
57
|
+
!this.autoSelect || e.target.select();
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
var e;
|
|
61
|
+
const t = this.rows === 1 && !this.autoGrow ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, r = this.type === "number" && !this.disabled, a = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !a && !r && !this.showCharacterCounter, l = this.type === "password" && this.showPassword ? "text" : this.type, o = c("text-input", `text-input--type-${this.type}`, {
|
|
62
|
+
"text-input--auto-grow": this.autoGrow,
|
|
63
|
+
"text-input--clearable": this.clearable,
|
|
64
|
+
"text-input--disabled": this.disabled,
|
|
65
|
+
"text-input--disable-dynamic-width": this.disableDynamicWidth || Boolean(this.placeholder),
|
|
66
|
+
"text-input--has-suffix": Boolean(this.suffixLabel),
|
|
67
|
+
"text-input--inline": this.inline,
|
|
68
|
+
"text-input--show-password": this.type === "password" && this.showPassword
|
|
69
|
+
});
|
|
70
|
+
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, placeholder: Boolean(this.suffixLabel) ? void 0 : this.placeholder, ref: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : 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}` : "")));
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
b.style = w;
|
|
74
|
+
export {
|
|
75
|
+
b as swirl_text_input
|
|
76
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as I, h as p, H as J, g as T } from "./index.
|
|
1
|
+
import { r as I, h as p, H as J, g as T } from "./index.a4b92857.js";
|
|
2
2
|
import { c as V } 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 a, c as n, h as i, H as r } from "./index.
|
|
1
|
+
import { r as a, c as n, h as i, H as r } from "./index.a4b92857.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as n, h as i, H as l } from "./index.
|
|
1
|
+
import { r as n, h as i, H as l } from "./index.a4b92857.js";
|
|
2
2
|
import { c as r, o as p, s as h, f as d } from "./floating-ui.dom.esm-ac7cc24e.79b318e4.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base)
|
|
5
|
+
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);animation:tooltip-fade-in 0.1s}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}", u = class {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
n(this, e), this.onKeydown = (t) => {
|
|
8
8
|
t.code === "Escape" && this.hide();
|
package/dist/{swirl-visually-hidden.entry.52e6e1d8.js → swirl-visually-hidden.entry.1a644479.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.a4b92857.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.54.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.55.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { r as l, h as o, H as n, g as a } from "./index.3c21a5ce.js";
|
|
2
|
-
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
const m = ".sc-swirl-form-control-h{display:block;width:100%}.sc-swirl-form-control-h *.sc-swirl-form-control{box-sizing:border-box}.form-control.sc-swirl-form-control{display:block;width:100%;line-height:var(--s-line-height-sm)}.form-control.form-control--has-focus.sc-swirl-form-control:not(.form-control--disabled) .form-control__label.sc-swirl-form-control{border-color:var(--s-border-highlight);box-shadow:0 0 0 var(--s-border-width-default) var(--s-border-highlight)}.form-control.sc-swirl-form-control:not(.form-control--has-value):not(.form-control--has-focus):not(.form-control--is-select) .form-control__input.sc-swirl-form-control{overflow:hidden;max-height:0}.form-control.sc-swirl-form-control:not(.form-control--has-value):not(.form-control--has-focus):not(.form-control--is-select) .form-control__label-text.sc-swirl-form-control{bottom:50%;font-size:var(--s-font-size-base);transform:translateY(50%);opacity:1}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.form-control.sc-swirl-form-control:not(.form-control--has-value):not(.form-control--has-focus):not(.form-control--is-select) .form-control__label-text.sc-swirl-form-control{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.form-control.sc-swirl-form-control:not(.form-control--has-value).form-control--is-select .select__label.sc-swirl-form-control{overflow:hidden;max-height:0;pointer-events:none}.form-control.sc-swirl-form-control:not(.form-control--has-value).form-control--is-select .form-control__label-text.sc-swirl-form-control{bottom:50%;font-size:var(--s-font-size-base);transform:translateY(50%);opacity:1}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.form-control.sc-swirl-form-control:not(.form-control--has-value).form-control--is-select .form-control__label-text.sc-swirl-form-control{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.form-control--label-position-outside.sc-swirl-form-control{padding-top:calc(var(--s-line-height-sm) + var(--s-space-4))}.form-control--label-position-outside.sc-swirl-form-control .form-control__label.sc-swirl-form-control{min-height:calc(2.375rem + 2 * var(--s-border-width-default));padding:var(--s-space-8) var(--s-space-12);gap:var(--s-space-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.form-control--label-position-outside.sc-swirl-form-control .form-control__label.sc-swirl-form-control{min-height:calc(2.25rem + 2 * var(--s-border-width-default))}}.form-control--label-position-outside.sc-swirl-form-control .form-control__label-text.sc-swirl-form-control,.form-control--label-position-outside.sc-swirl-form-control:not(.form-control--has-value):not(.form-control--has-focus):not(.form-control--is-select) .form-control__label-text.sc-swirl-form-control,.form-control--label-position-outside.sc-swirl-form-control:not(.form-control--has-value).form-control--is-select .form-control__label-text.sc-swirl-form-control{bottom:calc(100% + var(--s-space-4));left:0;color:var(--s-text-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);transform:none;opacity:1}.form-control--invalid.form-control--has-focus.sc-swirl-form-control:not(.form-control--disabled) .form-control__label.sc-swirl-form-control{border-color:var(--s-border-critical);box-shadow:0 0 0 var(--s-border-width-default) var(--s-border-critical)}.form-control--invalid.sc-swirl-form-control .form-control__label.sc-swirl-form-control{border-color:var(--s-border-critical)}.form-control--disabled.sc-swirl-form-control .form-control__label.sc-swirl-form-control{border-color:var(--s-border-disabled);color:var(--s-text-disabled)}.form-control--disabled.sc-swirl-form-control .form-control__description.sc-swirl-form-control{color:var(--s-text-disabled)}.form-control--inline.sc-swirl-form-control .form-control__label.sc-swirl-form-control{min-height:calc(2.375rem + 2 * var(--s-border-width-default));padding:var(--s-space-8) var(--s-space-12);gap:var(--s-space-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.form-control--inline.sc-swirl-form-control .form-control__label.sc-swirl-form-control{min-height:calc(2.25rem + 2 * var(--s-border-width-default))}}.form-control--inline.sc-swirl-form-control .form-control__label-text.sc-swirl-form-control{right:var(--s-space-12);left:var(--s-space-12);transition:none;opacity:0}.form-control__label.sc-swirl-form-control{position:relative;display:flex;width:100%;min-height:4.375rem;padding:calc(var(--s-space-12) + 1.25rem) var(--s-space-16) var(--s-space-12);justify-content:center;border:var(--s-border-width-default) solid var(--s-border-strong);border-radius:var(--s-border-radius-sm);color:var(--s-text-subdued);flex-direction:column;gap:var(--s-space-2)}.form-control__label-text.sc-swirl-form-control{position:absolute;right:var(--s-space-16);bottom:calc(100% - 1.25rem - var(--s-space-12));left:var(--s-space-16);overflow:hidden;font-size:var(--s-font-size-sm);white-space:nowrap;text-overflow:ellipsis;transition:font-size 0.15s, transform 0.15s, top 0.15s;transform:none}.form-control__description.sc-swirl-form-control{display:block;margin-top:var(--s-space-4);padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-sm)}.form-control__error-message.sc-swirl-form-control{display:block;margin-top:var(--s-space-4)}", f = class {
|
|
6
|
-
constructor(r) {
|
|
7
|
-
l(this, r), this.descriptionId = `form-control-description-${Math.round(Math.random() * 1e5)}`, this.listenToInputValueChanges = () => {
|
|
8
|
-
this.inputEl.addEventListener("valueChange", this.checkInputValue);
|
|
9
|
-
}, this.checkInputValue = () => {
|
|
10
|
-
var t;
|
|
11
|
-
this.inputValue = (t = this.inputEl) === null || t === void 0 ? void 0 : t.value;
|
|
12
|
-
}, this.onFocusIn = () => {
|
|
13
|
-
this.hasFocus = !0;
|
|
14
|
-
}, this.onFocusOut = () => {
|
|
15
|
-
!this.hasFocus || (this.hasFocus = !1);
|
|
16
|
-
}, this.description = void 0, this.disabled = void 0, this.errorMessage = void 0, this.inline = void 0, this.invalid = void 0, this.label = void 0, this.labelPosition = "inside", this.hasFocus = void 0, this.inputValue = void 0;
|
|
17
|
-
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
-
this.inputEl = this.el.children[0], this.associateDescriptionWithInputElement(), this.setInputElementDisabledState(), this.setInputElementInlineState(), this.setInputElementInvalidState(), this.setInputElementLabel(), this.checkInputValue(), this.listenToInputValueChanges();
|
|
20
|
-
}
|
|
21
|
-
associateDescriptionWithInputElement() {
|
|
22
|
-
!Boolean(this.description) || !Boolean(this.inputEl) || this.inputEl.setAttribute("swirl-aria-describedby", this.descriptionId);
|
|
23
|
-
}
|
|
24
|
-
setInputElementDisabledState() {
|
|
25
|
-
!Boolean(this.inputEl) || (this.disabled ? this.inputEl.setAttribute("disabled", "true") : this.inputEl.removeAttribute("disabled"));
|
|
26
|
-
}
|
|
27
|
-
setInputElementInlineState() {
|
|
28
|
-
!Boolean(this.inputEl) || (this.inline || this.labelPosition === "outside" ? this.inputEl.setAttribute("inline", "true") : this.inputEl.removeAttribute("inline"));
|
|
29
|
-
}
|
|
30
|
-
setInputElementInvalidState() {
|
|
31
|
-
!Boolean(this.inputEl) || (this.invalid ? this.inputEl.setAttribute("invalid", "true") : this.inputEl.removeAttribute("invalid"));
|
|
32
|
-
}
|
|
33
|
-
setInputElementLabel() {
|
|
34
|
-
!Boolean(this.inputEl) || this.inputEl.setAttribute("label", this.label);
|
|
35
|
-
}
|
|
36
|
-
onWindowClick(r) {
|
|
37
|
-
if (!this.hasFocus)
|
|
38
|
-
return;
|
|
39
|
-
const t = r.target;
|
|
40
|
-
this.el.contains(t) || (this.hasFocus = !1);
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
const r = Boolean(this.errorMessage), t = Boolean(this.description) && !r, s = Array.isArray(this.inputValue) ? this.inputValue.length > 0 : Boolean(this.inputValue), e = this.inputEl.tagName === "SWIRL-SELECT", i = c("form-control", `form-control--label-position-${this.labelPosition}`, {
|
|
44
|
-
"form-control--disabled": this.disabled,
|
|
45
|
-
"form-control--has-focus": this.hasFocus,
|
|
46
|
-
"form-control--has-value": s,
|
|
47
|
-
"form-control--inline": this.inline,
|
|
48
|
-
"form-control--invalid": this.invalid,
|
|
49
|
-
"form-control--is-select": e
|
|
50
|
-
});
|
|
51
|
-
return o(n, { onFocusin: this.onFocusIn, onFocusout: this.onFocusOut }, o("div", { class: i, role: "group" }, o("label", { class: "form-control__label" }, o("span", { class: "form-control__label-text" }, this.label), o("span", { class: "form-control__input" }, o("slot", null))), t && o("span", { class: "form-control__description", id: this.descriptionId }, this.description), r && o("span", { "aria-live": "polite", class: "form-control__error-message", id: this.descriptionId }, o("swirl-inline-error", { message: this.errorMessage, size: "s" }))));
|
|
52
|
-
}
|
|
53
|
-
get el() {
|
|
54
|
-
return a(this);
|
|
55
|
-
}
|
|
56
|
-
static get watchers() {
|
|
57
|
-
return {
|
|
58
|
-
description: ["associateDescriptionWithInputElement"],
|
|
59
|
-
disabled: ["setInputElementDisabledState"],
|
|
60
|
-
inline: ["setInputElementInlineState"],
|
|
61
|
-
invalid: ["setInputElementInvalidState"],
|
|
62
|
-
label: ["setInputElementLabel"]
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
f.style = m;
|
|
67
|
-
export {
|
|
68
|
-
f as swirl_form_control
|
|
69
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { r as h, c as p, h as i, H as m, g as v } from "./index.3c21a5ce.js";
|
|
2
|
-
import { o as l, s as c, f, c as u, a as g } from "./floating-ui.dom.esm-ac7cc24e.79b318e4.js";
|
|
3
|
-
import { d as b, e as _ } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
|
-
import { c as y } from "./index-d280dafb.186cdb0e.js";
|
|
5
|
-
import { i as a, g as w, q as d } from "./utils-61f188cc.4a43deab.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
const k = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:host *{box-sizing:border-box}.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:0.15s popover-fade-in;animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:none;animation:none}}.popover--active:not(.popover--closing) .popover__content{-webkit-animation:0.15s popover-slide-in;animation:0.15s popover-slide-in}@media (min-width: 768px){.popover--active:not(.popover--closing) .popover__content{transform-origin:top left;-webkit-animation:0.15s popover-fade-scale-in-xy;animation:0.15s popover-fade-scale-in-xy}}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__content{-webkit-animation:none;animation:none}}.popover--closing .popover__backdrop{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--closing .popover__backdrop{-webkit-animation:none;animation:none}}.popover--closing .popover__content{-webkit-animation:0.15s popover-slide-out;animation:0.15s popover-slide-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width: 768px){.popover--closing .popover__content{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out}}@media (prefers-reduced-motion){.popover--closing .popover__content{-webkit-animation:none;animation:none}}.popover--inactive .popover__content{display:none}@media (max-width: 767px){.popover--fullscreen-bottom-sheet.popover--active:not(.popover--closing) .popover__content{-webkit-animation:0.15s popover-fade-in;animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--fullscreen-bottom-sheet.popover--active:not(.popover--closing) .popover__content{-webkit-animation:none;animation:none}}.popover--fullscreen-bottom-sheet.popover--closing .popover__content{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--fullscreen-bottom-sheet.popover--closing .popover__content{-webkit-animation:none;animation:none}}.popover--fullscreen-bottom-sheet .popover__backdrop{display:none}.popover--fullscreen-bottom-sheet .popover__content{top:0;border-top-left-radius:0;border-top-right-radius:0}.popover--fullscreen-bottom-sheet .popover__scroll-container{height:100%;max-height:none;padding-top:0;padding-bottom:0}.popover--fullscreen-bottom-sheet .popover__handle{display:none}}@media (min-width: 768px){.popover--animation-scale-in-y.popover--active:not(.popover--closing) .popover__content{-webkit-animation:0.15s popover-fade-scale-in-y;animation:0.15s popover-fade-scale-in-y}}@media (prefers-reduced-motion){.popover--animation-scale-in-y.popover--active:not(.popover--closing) .popover__content{-webkit-animation:none;animation:none}}.popover__backdrop{position:fixed;z-index:0;background-color:rgba(0, 0, 0, 0.2);-webkit-animation:0.15s popover-backdrop-fade-in;animation:0.15s popover-backdrop-fade-in;inset:0}@media (prefers-reduced-motion){.popover__backdrop{-webkit-animation:none;animation:none}}@media (min-width: 768px){.popover__backdrop{display:none}}.popover__content{position:fixed;z-index:2;right:0;bottom:0;left:0;overflow:hidden;border-top-left-radius:var(--s-border-radius-xl);border-top-right-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default)}@media (min-width: 768px){.popover__content{right:unset;bottom:unset;left:unset;max-width:22.5rem;border-radius:var(--s-border-radius-sm);-webkit-animation:none;animation:none;box-shadow:var(--s-shadow-level-1)}}.popover__scroll-container{overflow-x:hidden;overflow-y:auto;width:100%;max-height:90vh;padding-top:var(--s-space-24);padding-bottom:var(--s-space-24);overscroll-behavior:contain}@media (min-width: 768px){.popover__scroll-container{max-height:22rem;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8)}}.popover__handle{position:absolute;top:var(--s-space-8);left:50%;width:2.5rem;height:0.375rem;border-radius:0.1875rem;background-color:var(--s-border-default);transform:translatex(-50%)}@media (min-width: 768px){.popover__handle{display:none}}@-webkit-keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes popover-fade-scale-in-xy{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes popover-fade-scale-in-xy{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@-webkit-keyframes popover-fade-scale-in-y{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}@keyframes popover-fade-scale-in-y{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}", x = class {
|
|
9
|
-
constructor(o) {
|
|
10
|
-
h(this, o), this.popoverClose = p(this, "popoverClose", 7), this.popoverOpen = p(this, "popoverOpen", 7), this.toggle = (e) => {
|
|
11
|
-
e.stopPropagation(), this.active ? this.close() : this.open();
|
|
12
|
-
}, this.onKeydown = (e) => {
|
|
13
|
-
e.code === "Escape" && this.active && (e.stopPropagation(), this.close());
|
|
14
|
-
}, this.reposition = async () => {
|
|
15
|
-
const e = a();
|
|
16
|
-
if (!Boolean(this.triggerEl) || !Boolean(this.contentContainer))
|
|
17
|
-
return;
|
|
18
|
-
if (e) {
|
|
19
|
-
this.position = void 0;
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const t = typeof this.offset == "number" ? { mainAxis: this.offset, crossAxis: 0 } : { mainAxis: this.offset[0], crossAxis: this.offset[1] }, n = this.enableFlip ? [l(t), c(), f()] : [l(t), c()];
|
|
23
|
-
this.position = await u(this.triggerEl, this.contentContainer, {
|
|
24
|
-
middleware: n,
|
|
25
|
-
placement: this.placement,
|
|
26
|
-
strategy: "fixed"
|
|
27
|
-
});
|
|
28
|
-
}, this.onCloseButtonClick = () => {
|
|
29
|
-
this.close();
|
|
30
|
-
}, this.animation = "scale-in-xy", this.disableScrollLock = void 0, this.enableFlip = !0, this.fullscreenBottomSheet = void 0, this.label = void 0, this.maxHeight = "22rem", this.offset = 8, this.placement = "bottom-start", this.popoverId = void 0, this.trigger = void 0, this.useContainerWidth = void 0, this.active = !1, this.closing = !1, this.position = void 0;
|
|
31
|
-
}
|
|
32
|
-
componentDidLoad() {
|
|
33
|
-
this.connectTrigger(), this.updateFocusableChildren(), this.updateTriggerAttributes();
|
|
34
|
-
}
|
|
35
|
-
disconnectedCallback() {
|
|
36
|
-
this.unlockBodyScroll();
|
|
37
|
-
}
|
|
38
|
-
onWindowFocusIn(o) {
|
|
39
|
-
if (!this.active)
|
|
40
|
-
return;
|
|
41
|
-
const e = o.target, t = w();
|
|
42
|
-
!this.el.contains(e) && !this.el.contains(t) && e !== this.triggerEl && this.close();
|
|
43
|
-
}
|
|
44
|
-
onWindowClick(o) {
|
|
45
|
-
if (!this.active)
|
|
46
|
-
return;
|
|
47
|
-
const e = o.target, t = this.el.contains(e), n = o.composedPath().some((s) => Boolean(s) && s instanceof Node ? this.el.contains(s) : !1), r = o.target === this.triggerEl;
|
|
48
|
-
!t && !n && !r && this.close();
|
|
49
|
-
}
|
|
50
|
-
async close() {
|
|
51
|
-
var o;
|
|
52
|
-
this.closing || !this.active || (this.popoverClose.emit(), this.disableAutoUpdate && this.disableAutoUpdate(), this.closing = !0, setTimeout(() => {
|
|
53
|
-
this.active = !1, this.closing = !1, this.updateTriggerAttributes();
|
|
54
|
-
}, 150), this.unlockBodyScroll(), (o = this.getNativeTriggerElement()) === null || o === void 0 || o.focus());
|
|
55
|
-
}
|
|
56
|
-
async open() {
|
|
57
|
-
this.active || (this.adjustWidth(), this.active = !0, this.popoverOpen.emit(), this.updateFocusableChildren(), this.updateTriggerAttributes(), requestAnimationFrame(async () => {
|
|
58
|
-
await this.reposition(), this.focusableChildren.length > 0 ? this.focusableChildren[0].focus() : this.contentContainer.focus(), this.disableAutoUpdate && this.disableAutoUpdate(), this.disableAutoUpdate = g(this.triggerEl, this.contentContainer, this.reposition), this.scrollContainer.scrollTop = 0, this.lockBodyScroll();
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
connectTrigger() {
|
|
62
|
-
this.triggerEl = d(document.body, `#${this.trigger}`)[0], Boolean(this.triggerEl) && this.triggerEl.addEventListener("click", (o) => {
|
|
63
|
-
this.toggle(o);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
getNativeTriggerElement() {
|
|
67
|
-
var o, e, t;
|
|
68
|
-
return this.triggerEl.tagName.startsWith("SWIRL-") ? ((o = this.triggerEl) === null || o === void 0 ? void 0 : o.children[0]) || ((t = (e = this.triggerEl) === null || e === void 0 ? void 0 : e.shadowRoot) === null || t === void 0 ? void 0 : t.children[0]) || this.triggerEl : this.triggerEl;
|
|
69
|
-
}
|
|
70
|
-
updateTriggerAttributes() {
|
|
71
|
-
if (!Boolean(this.triggerEl))
|
|
72
|
-
return;
|
|
73
|
-
const o = this.getNativeTriggerElement();
|
|
74
|
-
o.setAttribute("aria-controls", this.popoverId), o.setAttribute("aria-expanded", String(this.active)), o.setAttribute("aria-haspopup", "dialog");
|
|
75
|
-
}
|
|
76
|
-
updateFocusableChildren() {
|
|
77
|
-
this.focusableChildren = d(this.el, '[role="menuitem"], [role="listbox"]');
|
|
78
|
-
}
|
|
79
|
-
adjustWidth() {
|
|
80
|
-
let o = this.useContainerWidth;
|
|
81
|
-
[!0, "true"].includes(this.useContainerWidth) ? o = !0 : [!1, "false"].includes(this.useContainerWidth) && (o = !1);
|
|
82
|
-
const e = !window.matchMedia("(min-width: 768px)").matches;
|
|
83
|
-
if (Boolean(o) && !e) {
|
|
84
|
-
const t = typeof o == "string" ? this.el.closest(o) || this.el.parentElement : this.el.parentElement;
|
|
85
|
-
this.contentContainer.style.maxWidth = "none", this.contentContainer.style.width = t.getBoundingClientRect().width + "px";
|
|
86
|
-
} else
|
|
87
|
-
this.contentContainer.style.maxWidth = "", this.contentContainer.style.width = "";
|
|
88
|
-
}
|
|
89
|
-
lockBodyScroll() {
|
|
90
|
-
!a() || this.disableScrollLock || b(this.scrollContainer);
|
|
91
|
-
}
|
|
92
|
-
unlockBodyScroll() {
|
|
93
|
-
!a() || this.disableScrollLock || _(this.scrollContainer);
|
|
94
|
-
}
|
|
95
|
-
render() {
|
|
96
|
-
var o, e;
|
|
97
|
-
const t = !window.matchMedia("(min-width: 768px)").matches, n = y("popover", `popover--animation-${this.animation}`, {
|
|
98
|
-
"popover--closing": this.closing,
|
|
99
|
-
"popover--active": this.active,
|
|
100
|
-
"popover--fullscreen-bottom-sheet": this.fullscreenBottomSheet,
|
|
101
|
-
"popover--inactive": !this.active
|
|
102
|
-
});
|
|
103
|
-
return i(m, { id: this.popoverId }, i("div", { class: n, onKeyDown: this.onKeydown }, i("div", { "aria-hidden": this.active ? "false" : "true", "aria-label": this.label, class: "popover__content", role: "dialog", ref: (r) => this.contentContainer = r, style: {
|
|
104
|
-
top: Boolean(this.position) ? `${(o = this.position) === null || o === void 0 ? void 0 : o.y}px` : "",
|
|
105
|
-
left: Boolean(this.position) ? `${(e = this.position) === null || e === void 0 ? void 0 : e.x}px` : ""
|
|
106
|
-
}, tabindex: "-1" }, i("span", { class: "popover__handle" }), i("div", { class: "popover__scroll-container", ref: (r) => this.scrollContainer = r, style: {
|
|
107
|
-
maxHeight: !t && Boolean(this.maxHeight) ? this.maxHeight : void 0
|
|
108
|
-
} }, i("slot", null))), this.active && i("div", { class: "popover__backdrop", onClick: this.onCloseButtonClick })));
|
|
109
|
-
}
|
|
110
|
-
get el() {
|
|
111
|
-
return v(this);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
x.style = k;
|
|
115
|
-
export {
|
|
116
|
-
x as swirl_popover
|
|
117
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { r as h, c as n, h as i, H as d } from "./index.3c21a5ce.js";
|
|
2
|
-
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
-
import { a as x } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--auto-grow.sc-swirl-text-input .text-input__input.sc-swirl-text-input{max-height:none}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{display:none}.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:-0.0625rem}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:0}}.text-input--inline.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{top:0}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', b = class {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.desktopMediaQuery = x(), this.desktopMediaQueryHandler = (t) => {
|
|
9
|
-
this.updateIconSize(t.matches);
|
|
10
|
-
}, this.clear = () => {
|
|
11
|
-
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
12
|
-
}, this.onChange = (t) => {
|
|
13
|
-
const s = t.target;
|
|
14
|
-
this.value = s.value, this.valueChange.emit(s.value);
|
|
15
|
-
}, this.onBlur = (t) => {
|
|
16
|
-
this.inputBlur.emit(t);
|
|
17
|
-
}, this.onFocus = (t) => {
|
|
18
|
-
this.inputFocus.emit(t), this.handleAutoSelect(t);
|
|
19
|
-
}, this.onInput = (t) => {
|
|
20
|
-
this.onChange(t);
|
|
21
|
-
}, this.onKeyPress = (t) => {
|
|
22
|
-
this.type === "number" && ["+", "-", "e"].includes(t.key) && t.preventDefault();
|
|
23
|
-
}, this.decreaseValue = () => {
|
|
24
|
-
if (this.type !== "number")
|
|
25
|
-
return;
|
|
26
|
-
const t = this.step || 1;
|
|
27
|
-
let s = this.inputEl.valueAsNumber;
|
|
28
|
-
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min + 1 : 1), this.value = String(Math.max(this.min || -1 / 0, s - t)), this.valueChange.emit(this.value);
|
|
29
|
-
}, this.increaseValue = () => {
|
|
30
|
-
if (this.type !== "number")
|
|
31
|
-
return;
|
|
32
|
-
const t = this.step || 1;
|
|
33
|
-
let s = this.inputEl.valueAsNumber;
|
|
34
|
-
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, s + t)), this.valueChange.emit(this.value);
|
|
35
|
-
}, this.togglePassword = () => {
|
|
36
|
-
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
37
|
-
}, this.autoComplete = "on", this.autoFocus = void 0, this.autoGrow = void 0, this.autoSelect = void 0, this.clearable = void 0, this.clearButtonLabel = "Clear input", this.disabled = void 0, this.disableDynamicWidth = void 0, this.swirlAriaAutocomplete = void 0, this.swirlAriaControls = void 0, this.swirlAriaDescribedby = void 0, this.swirlAriaExpanded = void 0, this.swirlRole = void 0, this.inline = void 0, this.invalid = void 0, this.maxLength = void 0, this.max = void 0, this.min = void 0, this.mode = void 0, this.prefixLabel = void 0, this.required = void 0, this.rows = 1, this.showCharacterCounter = void 0, this.spellCheck = void 0, this.suffixLabel = void 0, this.step = void 0, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.value = void 0, this.iconSize = 24, this.showPassword = !1;
|
|
38
|
-
}
|
|
39
|
-
componentDidLoad() {
|
|
40
|
-
var e, t;
|
|
41
|
-
this.updateIconSize(this.desktopMediaQuery.matches), (t = (e = this.desktopMediaQuery).addEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
42
|
-
}
|
|
43
|
-
componentDidRender() {
|
|
44
|
-
this.adjustInputSize();
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
var e, t;
|
|
48
|
-
(t = (e = this.desktopMediaQuery).removeEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
49
|
-
}
|
|
50
|
-
updateIconSize(e) {
|
|
51
|
-
this.iconSize = e ? 20 : 24;
|
|
52
|
-
}
|
|
53
|
-
adjustInputSize() {
|
|
54
|
-
(this.rows > 1 || this.autoGrow) && (this.inputEl.style.width = "", this.inputEl.style.height = "", this.inputEl.style.height = this.inputEl.scrollHeight / 16 + "rem"), this.rows === 1 && !this.autoGrow && (this.inputEl.style.height = "", this.inputEl.style.width = "", this.type !== "password" && !this.disableDynamicWidth && (this.inputEl.style.width = this.inputEl.scrollWidth / 16 + "rem"));
|
|
55
|
-
}
|
|
56
|
-
handleAutoSelect(e) {
|
|
57
|
-
!this.autoSelect || e.target.select();
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
var e;
|
|
61
|
-
const t = this.rows === 1 && !this.autoGrow ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, r = this.type === "number" && !this.disabled, a = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !a && !r && !this.showCharacterCounter, o = this.type === "password" && this.showPassword ? "text" : this.type, l = c("text-input", `text-input--type-${this.type}`, {
|
|
62
|
-
"text-input--auto-grow": this.autoGrow,
|
|
63
|
-
"text-input--clearable": this.clearable,
|
|
64
|
-
"text-input--disabled": this.disabled,
|
|
65
|
-
"text-input--disable-dynamic-width": this.disableDynamicWidth,
|
|
66
|
-
"text-input--inline": this.inline,
|
|
67
|
-
"text-input--show-password": this.type === "password" && this.showPassword
|
|
68
|
-
});
|
|
69
|
-
return i(d, null, i("div", { class: l }, 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 : this.autoGrow ? 1 : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: o, 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}` : "")));
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
b.style = w;
|
|
73
|
-
export {
|
|
74
|
-
b as swirl_text_input
|
|
75
|
-
};
|