@getflip/swirl-components-react 0.80.3 → 0.81.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.b9851df5.js → file-manager.entry.b3791826.js} +4 -4
- package/dist/{index.5e647dd4.js → index.e636c5f9.js} +255 -255
- package/dist/{swirl-action-list-section.entry.d28ae1f1.js → swirl-action-list-section.entry.7a3e0165.js} +1 -1
- package/dist/{swirl-action-list_3.entry.186c04f5.js → swirl-action-list_3.entry.dc064cc9.js} +21 -21
- package/dist/{swirl-app-bar.entry.c657a292.js → swirl-app-bar.entry.33eb8f2e.js} +2 -2
- package/dist/{swirl-app-icon.entry.e4f3c8f4.js → swirl-app-icon.entry.ae3fb019.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.b4058612.js → swirl-app-layout_7.entry.651d9586.js} +8 -8
- package/dist/{swirl-autocomplete.entry.466a5a72.js → swirl-autocomplete.entry.5e2b3422.js} +21 -21
- package/dist/{swirl-avatar-group.entry.fb672c8f.js → swirl-avatar-group.entry.78097e6c.js} +1 -1
- package/dist/{swirl-avatar.entry.fddcf0c4.js → swirl-avatar.entry.e9382b92.js} +1 -1
- package/dist/{swirl-badge.entry.21b2cf2e.js → swirl-badge.entry.cc7ed1a9.js} +1 -1
- package/dist/{swirl-banner.entry.3e9a1497.js → swirl-banner.entry.4c73c5d4.js} +8 -8
- package/dist/{swirl-button-group.entry.f147a047.js → swirl-button-group.entry.77f938d6.js} +1 -1
- package/dist/{swirl-button.entry.1a3aad3c.js → swirl-button.entry.d89c91e3.js} +2 -2
- package/dist/{swirl-card.entry.dac11b4c.js → swirl-card.entry.39e12b1d.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.4b15cd1a.js → swirl-carousel-slide.entry.589b97d1.js} +1 -1
- package/dist/{swirl-carousel.entry.63882653.js → swirl-carousel.entry.cf905a6a.js} +2 -2
- package/dist/{swirl-checkbox.entry.1b23520f.js → swirl-checkbox.entry.9897935c.js} +1 -1
- package/dist/{swirl-chip.entry.d2d4dc0f.js → swirl-chip.entry.f5196b00.js} +4 -4
- package/dist/{swirl-columns.entry.b4ec1c95.js → swirl-columns.entry.d2a32467.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +47 -47
- package/dist/{swirl-console-layout.entry.b2d0a947.js → swirl-console-layout.entry.89add690.js} +19 -19
- package/dist/{swirl-date-input.entry.9edd3cbd.js → swirl-date-input.entry.fce5a544.js} +16 -14
- package/dist/{swirl-date-picker_2.entry.0e85edda.js → swirl-date-picker_2.entry.8e8dcf90.js} +1 -1
- package/dist/{swirl-description-list-item.entry.380c7304.js → swirl-description-list-item.entry.a8f5af0c.js} +1 -1
- package/dist/{swirl-description-list.entry.1d91f38c.js → swirl-description-list.entry.07a3a754.js} +1 -1
- package/dist/{swirl-dialog.entry.bde4536b.js → swirl-dialog.entry.102c937d.js} +11 -11
- package/dist/{swirl-file-uploader.entry.0f33989f.js → swirl-file-uploader.entry.d9351a1e.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.a5a4de69.js → swirl-file-viewer_7.entry.5faefd6f.js} +316 -316
- package/dist/{swirl-form-control.entry.08554a90.js → swirl-form-control.entry.e871fd01.js} +13 -13
- package/dist/{swirl-form-group.entry.0b2dd0bf.js → swirl-form-group.entry.20ebe0d5.js} +1 -1
- package/dist/{swirl-heading.entry.6f2a13a0.js → swirl-heading.entry.00b9abb2.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.7f873b1c.js → swirl-icon-add-photo.entry.51a8f644.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.494134fe.js → swirl-icon-add_6.entry.1e3f407b.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.8a3d8e2a.js → swirl-icon-admin-panel-settings.entry.19cdbe6d.js} +1 -1
- package/dist/{swirl-icon-ai.entry.edb3e042.js → swirl-icon-ai.entry.236313f3.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.2e29cb10.js → swirl-icon-arrow-back.entry.262aea95.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.d17a1891.js → swirl-icon-arrow-downward_2.entry.d63dd34c.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.b902b7d3.js → swirl-icon-arrow-forward.entry.73fb825e.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.3213de78.js → swirl-icon-arrow-left_4.entry.3b54f63d.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.3992b20f.js → swirl-icon-arrow-right-small.entry.3631c0e1.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.6c44cb44.js → swirl-icon-attachment.entry.8e3de451.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.aaa2c29a.js → swirl-icon-bar-chart.entry.04381fb7.js} +1 -1
- package/dist/{swirl-icon-block.entry.914ddf1d.js → swirl-icon-block.entry.56a413fd.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.17475e31.js → swirl-icon-bookmark.entry.23f8f970.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.2227adc5.js → swirl-icon-cancel_4.entry.4f419de1.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.3d41bc1a.js → swirl-icon-chat-bubble.entry.28770125.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.20b5367d.js → swirl-icon-chats-filled.entry.aa201e59.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.5e76e493.js → swirl-icon-chats-outlined.entry.837d65ee.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.4fe044b7.js → swirl-icon-check-circle_3.entry.9b0706d0.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.fb033b24.js → swirl-icon-check-small_3.entry.c059fd85.js} +28 -28
- package/dist/{swirl-icon-check-strong.entry.3201d721.js → swirl-icon-check-strong.entry.e607fc4a.js} +1 -1
- package/dist/{swirl-icon-check.entry.d39ea356.js → swirl-icon-check.entry.1580dc19.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.3b35a2d2.js → swirl-icon-chevron-left.entry.07a065ca.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.502bbe12.js → swirl-icon-chevron-right.entry.60eab9ee.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.df1886df.js → swirl-icon-close-small.entry.063676b2.js} +1 -1
- package/dist/{swirl-icon-close.entry.bbe775a7.js → swirl-icon-close.entry.960816b9.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.cd57769a.js → swirl-icon-cloud-upload.entry.c284ecdd.js} +1 -1
- package/dist/{swirl-icon-column.entry.3fca2705.js → swirl-icon-column.entry.3f736961.js} +1 -1
- package/dist/{swirl-icon-comment.entry.65fb55dc.js → swirl-icon-comment.entry.764e8900.js} +1 -1
- package/dist/{swirl-icon-copy.entry.77c534bc.js → swirl-icon-copy.entry.fd290297.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.92758172.js → swirl-icon-date-range.entry.79537b28.js} +1 -1
- package/dist/{swirl-icon-delete.entry.5b5a980b.js → swirl-icon-delete.entry.4e8fe7ea.js} +1 -1
- package/dist/{swirl-icon-description.entry.f347a321.js → swirl-icon-description.entry.35d4309e.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.46e279ed.js → swirl-icon-double-arrow-left.entry.b0b441b8.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.2aaedd44.js → swirl-icon-double-arrow-right.entry.e2e761ca.js} +1 -1
- package/dist/{swirl-icon-download.entry.eb3374bc.js → swirl-icon-download.entry.197b999c.js} +1 -1
- package/dist/{swirl-icon-edit.entry.5770f772.js → swirl-icon-edit.entry.0b9e23e6.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.2397ee50.js → swirl-icon-emoji-mood.entry.d31c57dd.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.0df361e8.js → swirl-icon-emoji-satisfied.entry.34f7e28a.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.243182b2.js → swirl-icon-error_3.entry.007ef916.js} +2 -2
- package/dist/{swirl-icon-expand-more.entry.13e01d24.js → swirl-icon-expand-more.entry.9b27954b.js} +1 -1
- package/dist/{swirl-icon-filter.entry.57a8bd1e.js → swirl-icon-filter.entry.36444189.js} +1 -1
- package/dist/{swirl-icon-folder.entry.fb8b43c0.js → swirl-icon-folder.entry.346cb7b9.js} +1 -1
- package/dist/{swirl-icon-format-h-one.entry.63cf7da1.js → swirl-icon-format-h-one.entry.1e5bf43e.js} +1 -1
- package/dist/{swirl-icon-gif.entry.4f2be4a5.js → swirl-icon-gif.entry.7476dd66.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.acad92f1.js → swirl-icon-group-assign.entry.ce09e62d.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.49ce757a.js → swirl-icon-groups-custom.entry.8cd01bbc.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.2e974c8e.js → swirl-icon-groups-filled.entry.774a85f0.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.1d178821.js → swirl-icon-groups-outlined.entry.2d116130.js} +1 -1
- package/dist/{swirl-icon-groups.entry.1d0ec86a.js → swirl-icon-groups.entry.e2224964.js} +1 -1
- package/dist/{swirl-icon-help.entry.a0545c23.js → swirl-icon-help.entry.63de46ec.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.af49e91e.js → swirl-icon-highlight.entry.ef2106f9.js} +1 -1
- package/dist/{swirl-icon-home.entry.96d4cb1f.js → swirl-icon-home.entry.c1ff9712.js} +1 -1
- package/dist/{swirl-icon-image.entry.8d7c6abe.js → swirl-icon-image.entry.0c4e9685.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.fb16ef29.js → swirl-icon-improve-text.entry.ae19bc62.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.84809345.js → swirl-icon-insert-below.entry.c48a1e04.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.a37204b8.js → swirl-icon-insert-on-top.entry.90ca518d.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.90317eef.js → swirl-icon-inventory.entry.73bd60d3.js} +1 -1
- package/dist/{swirl-icon-like.entry.f789daec.js → swirl-icon-like.entry.551068de.js} +1 -1
- package/dist/{swirl-icon-link.entry.4efab4e2.js → swirl-icon-link.entry.668ae305.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.674f85d6.js → swirl-icon-lock-person.entry.1c0569e3.js} +1 -1
- package/dist/{swirl-icon-lock.entry.7b2d87a0.js → swirl-icon-lock.entry.c30a9b6f.js} +1 -1
- package/dist/{swirl-icon-logout.entry.26bc6037.js → swirl-icon-logout.entry.6e10fe89.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.c58f972b.js → swirl-icon-long-text.entry.289f5aed.js} +1 -1
- package/dist/{swirl-icon-mail.entry.8a65460a.js → swirl-icon-mail.entry.0338b6ab.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.9e1ceb60.js → swirl-icon-manage-accounts.entry.b9b2373a.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.40a29c0e.js → swirl-icon-mark-chat-read.entry.042147bd.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.aa9a49a9.js → swirl-icon-mark-chat-unread.entry.e545fb9d.js} +1 -1
- package/dist/{swirl-icon-mention.entry.22454a33.js → swirl-icon-mention.entry.32a92db5.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.5d1a09da.js → swirl-icon-menu-filled.entry.fb2c2888.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.3ee457c7.js → swirl-icon-menu-outlined.entry.a962d730.js} +1 -1
- package/dist/{swirl-icon-menu.entry.73568421.js → swirl-icon-menu.entry.9a1ce0ec.js} +1 -1
- package/dist/{swirl-icon-message.entry.c1622c0d.js → swirl-icon-message.entry.e7a89d18.js} +1 -1
- package/dist/{swirl-icon-mic.entry.37da83ca.js → swirl-icon-mic.entry.4ef9fb4d.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.66974243.js → swirl-icon-more-horizontal.entry.1bbf1ea1.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.8e21795d.js → swirl-icon-news-filled.entry.7804dbea.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.a1f8e33a.js → swirl-icon-news-outlined.entry.011fd823.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.4b2bb4a5.js → swirl-icon-notifications-active.entry.50117738.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.d537fa04.js → swirl-icon-notifications-off.entry.c110676e.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.0b3ced26.js → swirl-icon-notifications.entry.6230eefb.js} +1 -1
- package/dist/{swirl-icon-open-in-full.entry.4a2d5b54.js → swirl-icon-open-in-full.entry.2aec37e4.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.14416f58.js → swirl-icon-open-in-new.entry.50d95a3e.js} +1 -1
- package/dist/{swirl-icon-pause-circle.entry.1fbc1d2b.js → swirl-icon-pause-circle.entry.7cc6abcf.js} +1 -1
- package/dist/{swirl-icon-pause.entry.37bcdb7b.js → swirl-icon-pause.entry.ddc1361c.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.3186021f.js → swirl-icon-people-alt.entry.9a7bdff3.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.911a2f09.js → swirl-icon-person-off.entry.e69676b0.js} +1 -1
- package/dist/{swirl-icon-person.entry.0f59e8f4.js → swirl-icon-person.entry.f4ea1f0b.js} +1 -1
- package/dist/{swirl-icon-phone.entry.58581a41.js → swirl-icon-phone.entry.351a77a6.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.43b50f38.js → swirl-icon-play-arrow.entry.2e224af4.js} +1 -1
- package/dist/{swirl-icon-poll.entry.b9eb92ab.js → swirl-icon-poll.entry.f59cee62.js} +1 -1
- package/dist/{swirl-icon-print.entry.3ce7d59c.js → swirl-icon-print.entry.41b4d9a5.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.0e10191c.js → swirl-icon-recieved.entry.643ea760.js} +1 -1
- package/dist/{swirl-icon-reply.entry.75a21e71.js → swirl-icon-reply.entry.e108f007.js} +1 -1
- package/dist/{swirl-icon-report.entry.fa88c30f.js → swirl-icon-report.entry.67803c07.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.433bab61.js → swirl-icon-roadmap.entry.473fcce2.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.dc3eb362.js → swirl-icon-search-strong.entry.dde9e172.js} +1 -1
- package/dist/{swirl-icon-search.entry.0e097cc7.js → swirl-icon-search.entry.89399725.js} +1 -1
- package/dist/{swirl-icon-send.entry.b41f63db.js → swirl-icon-send.entry.474ec225.js} +1 -1
- package/dist/{swirl-icon-settings.entry.e6825071.js → swirl-icon-settings.entry.32fa9252.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.5cf268ed.js → swirl-icon-short-text.entry.b731d142.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.ca8effd5.js → swirl-icon-simplify.entry.4a2786cd.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.951e0626.js → swirl-icon-spellcheck.entry.b17312ca.js} +1 -1
- package/dist/{swirl-icon-stop.entry.89029529.js → swirl-icon-stop.entry.5488a28f.js} +1 -1
- package/dist/{swirl-icon-sync.entry.babf4aa4.js → swirl-icon-sync.entry.26e9c6d1.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.2542cb11.js → swirl-icon-tasks-filled.entry.fc277955.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.3bd8baa1.js → swirl-icon-tasks-outlined.entry.b8cefb96.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.4464af74.js → swirl-icon-time-filled.entry.f80d4284.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.4bbc612b.js → swirl-icon-time-outlined.entry.f34b56b4.js} +1 -1
- package/dist/{swirl-icon-translate.entry.1c10a4f1.js → swirl-icon-translate.entry.08944f90.js} +1 -1
- package/dist/{swirl-icon-undo.entry.ec02f929.js → swirl-icon-undo.entry.84c45bfc.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.8856d62e.js → swirl-icon-unlock-person.entry.f1b5d8f9.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.3e97e3ae.js → swirl-icon-user-assign.entry.37189459.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.7f167b73.js → swirl-icon-video-camera.entry.37ed0cdc.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.cfc5e1ef.js → swirl-icon-video-library.entry.de0bb66a.js} +1 -1
- package/dist/{swirl-icon-voice.entry.eaa90e1d.js → swirl-icon-voice.entry.5bb70c5c.js} +1 -1
- package/dist/{swirl-icon.entry.82a9c8cf.js → swirl-icon.entry.38896300.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.82982e6f.js → swirl-image-grid-item.entry.71ff7988.js} +1 -1
- package/dist/{swirl-image-grid.entry.07593005.js → swirl-image-grid.entry.2f52e4e9.js} +1 -1
- package/dist/{swirl-inline-notification.entry.34972ac6.js → swirl-inline-notification.entry.77a0445e.js} +1 -1
- package/dist/{swirl-inline-status.entry.b8ad3fc5.js → swirl-inline-status.entry.206c370c.js} +2 -2
- package/dist/{swirl-lightbox.entry.8b2e307b.js → swirl-lightbox.entry.f0c03b0b.js} +31 -31
- package/dist/{swirl-link.entry.b64f03b5.js → swirl-link.entry.feed9415.js} +1 -1
- package/dist/{swirl-list.entry.1350eade.js → swirl-list.entry.1251ccfb.js} +1 -1
- package/dist/{swirl-menu-item.entry.58b7b0cc.js → swirl-menu-item.entry.86369605.js} +11 -11
- package/dist/{swirl-menu.entry.28fff537.js → swirl-menu.entry.66eec06a.js} +51 -51
- package/dist/{swirl-modal.entry.d0f6c3c3.js → swirl-modal.entry.32c6b7b1.js} +218 -214
- package/dist/{swirl-option-list-section.entry.0f7ec0f5.js → swirl-option-list-section.entry.9d925024.js} +1 -1
- package/dist/{swirl-option-list.entry.8a777415.js → swirl-option-list.entry.ded36730.js} +22 -22
- package/dist/{swirl-pagination.entry.71a815fc.js → swirl-pagination.entry.c06fc83e.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.1bfcd52e.js → swirl-pdf-reader.entry.b61cdb34.js} +9 -9
- package/dist/{swirl-popover_2.entry.11c726bf.js → swirl-popover_2.entry.70a32904.js} +40 -40
- package/dist/{swirl-progress-indicator.entry.13f33972.js → swirl-progress-indicator.entry.91e07d09.js} +1 -1
- package/dist/{swirl-radio-group.entry.9b114523.js → swirl-radio-group.entry.8af0efcb.js} +1 -1
- package/dist/{swirl-radio.entry.11bd9ce4.js → swirl-radio.entry.900b5022.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.50497699.js → swirl-resource-list-file-item.entry.96c1d597.js} +14 -14
- package/dist/{swirl-search.entry.0eb6548b.js → swirl-search.entry.df4c6f34.js} +8 -6
- package/dist/{swirl-select.entry.8dfd26e0.js → swirl-select.entry.f2f64ee2.js} +20 -20
- package/dist/{swirl-shell-layout.entry.cd1c28f0.js → swirl-shell-layout.entry.aceed146.js} +2 -2
- package/dist/{swirl-shell-navigation-item.entry.71e0369b.js → swirl-shell-navigation-item.entry.39786f9c.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.9b87df33.js → swirl-skeleton-box.entry.cbe5257e.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.228b649d.js → swirl-skeleton-text.entry.3e9540d7.js} +1 -1
- package/dist/{swirl-stack.entry.99d24876.js → swirl-stack.entry.d58b3e5d.js} +1 -1
- package/dist/{swirl-status-indicator.entry.0886c5fb.js → swirl-status-indicator.entry.ca8e2279.js} +1 -1
- package/dist/{swirl-switch.entry.9be3c75d.js → swirl-switch.entry.438729e0.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.e0073a7f.js → swirl-symbol-account-circle.entry.f793dce1.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.f7b19168.js → swirl-symbol-alternate-email.entry.0fcd64a7.js} +1 -1
- package/dist/{swirl-symbol-android.entry.49e54cd1.js → swirl-symbol-android.entry.3ec80e43.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.378fc25f.js → swirl-symbol-announcement.entry.86222c62.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.53bcaf0d.js → swirl-symbol-backup.entry.d88ee08a.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.92881ee4.js → swirl-symbol-beach-access.entry.2946b2f1.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.df67cc4f.js → swirl-symbol-bookmark.entry.dc7ef37f.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.bac796cf.js → swirl-symbol-cloud.entry.fc39318c.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.db4cea0a.js → swirl-symbol-coronavirus.entry.6e1834d9.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.d9841f0f.js → swirl-symbol-desktop-windows.entry.1a049626.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.323506fa.js → swirl-symbol-directions-car-filled.entry.efc77590.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.89d9fc46.js → swirl-symbol-edit-calendar.entry.8eedb042.js} +1 -1
- package/dist/{swirl-symbol-email.entry.39a87b42.js → swirl-symbol-email.entry.3abbe2bb.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.b1eeffd4.js → swirl-symbol-emoji-food-beverage.entry.dd3929c8.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.d15050c4.js → swirl-symbol-event-menu.entry.7199f5eb.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.98d246d3.js → swirl-symbol-facebook.entry.0df1bb53.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.ccb85054.js → swirl-symbol-favorite.entry.532fac2e.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.658e1d60.js → swirl-symbol-fitness-center.entry.25cdd9eb.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.00a24bcb.js → swirl-symbol-flag.entry.394768ef.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.b43c1dcb.js → swirl-symbol-folder.entry.20b1981c.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.ea8d2274.js → swirl-symbol-globe.entry.dc84c360.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.ca9d1a0f.js → swirl-symbol-groups.entry.ffca31e4.js} +1 -1
- package/dist/{swirl-symbol-help.entry.c02b3f79.js → swirl-symbol-help.entry.d4a0c7ae.js} +1 -1
- package/dist/{swirl-symbol-image.entry.454cf93c.js → swirl-symbol-image.entry.1268ed29.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.d3ba324d.js → swirl-symbol-info-menu.entry.c1c84d60.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.f0382e67.js → swirl-symbol-instagram.entry.02af7c36.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.eb4a0ad2.js → swirl-symbol-ios.entry.71ce1f97.js} +1 -1
- package/dist/{swirl-symbol-language.entry.366c1fee.js → swirl-symbol-language.entry.93e49d8b.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.a93fee25.js → swirl-symbol-leaderboard.entry.8159627c.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.f09d3ace.js → swirl-symbol-lightbulb.entry.a448f50a.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.b726dc11.js → swirl-symbol-linkedin.entry.2b087adf.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.86b295cb.js → swirl-symbol-location-on.entry.15f3e620.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.086834d3.js → swirl-symbol-loyalty.entry.3fcf0631.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.ae3472b4.js → swirl-symbol-maps-home-work.entry.ae3325d5.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.73162180.js → swirl-symbol-notifications.entry.24d5c3bf.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.05a7ad60.js → swirl-symbol-open-in-new.entry.b616c807.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.a491ddbb.js → swirl-symbol-pedal-bike.entry.27959d69.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.ccfb3c33.js → swirl-symbol-pinterest.entry.4f792137.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.478b5349.js → swirl-symbol-policy.entry.87da3679.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.f30feab5.js → swirl-symbol-push-pin.entry.4a027788.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.8072d95c.js → swirl-symbol-redeem.entry.83f4796d.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.56ede5d9.js → swirl-symbol-report-problem.entry.8b0ac67e.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.e598109c.js → swirl-symbol-restaurant.entry.b07164d3.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.b5b6b59f.js → swirl-symbol-roadmap.entry.c26367de.js} +1 -1
- package/dist/{swirl-symbol-room.entry.318d0e7d.js → swirl-symbol-room.entry.0cea80a2.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.051d68a7.js → swirl-symbol-savings.entry.f779d16f.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.191d634c.js → swirl-symbol-settings-voice.entry.7e675b6a.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.e2ff7405.js → swirl-symbol-shopping-cart.entry.cb804592.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.fe88e35a.js → swirl-symbol-smartphone.entry.ae07209d.js} +1 -1
- package/dist/{swirl-symbol-star.entry.8ee54da6.js → swirl-symbol-star.entry.716aae27.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.7af9ca10.js → swirl-symbol-supervisor-account.entry.9bfddfb1.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.fa8aedee.js → swirl-symbol-thumbs-up-down.entry.393305ee.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.b4b6e5ff.js → swirl-symbol-twitter.entry.a8fef8cd.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.f55fd7db.js → swirl-symbol-wb-sunny.entry.7097357c.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.ed3a81bb.js → swirl-symbol-wechat.entry.0dd08fd2.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.5db713cb.js → swirl-symbol-weibo.entry.5111da86.js} +1 -1
- package/dist/{swirl-symbol-work.entry.f022cff4.js → swirl-symbol-work.entry.8cdbe640.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.220ba17b.js → swirl-symbol-xing.entry.32bad642.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.2c513504.js → swirl-symbol-youtube.entry.b1a26c3b.js} +1 -1
- package/dist/{swirl-symbol.entry.7848da1e.js → swirl-symbol.entry.321b7561.js} +1 -1
- package/dist/{swirl-tab-bar.entry.80cc5bc4.js → swirl-tab-bar.entry.99ea19ca.js} +1 -1
- package/dist/{swirl-tab.entry.6ed06db6.js → swirl-tab.entry.efd5aa1b.js} +1 -1
- package/dist/{swirl-table-cell.entry.61b9a0b1.js → swirl-table-cell.entry.a4d79fde.js} +1 -1
- package/dist/{swirl-table-column.entry.4e312508.js → swirl-table-column.entry.72f25118.js} +1 -1
- package/dist/{swirl-table-row-group.entry.7af69faf.js → swirl-table-row-group.entry.4461a288.js} +1 -1
- package/dist/{swirl-table-row.entry.aa107ef9.js → swirl-table-row.entry.5658b371.js} +3 -3
- package/dist/{swirl-table.entry.f9a50763.js → swirl-table.entry.6d8a99ee.js} +16 -16
- package/dist/{swirl-tabs.entry.e5cf7916.js → swirl-tabs.entry.870e4b68.js} +7 -7
- package/dist/{swirl-tag.entry.8501812d.js → swirl-tag.entry.bb3dc64b.js} +2 -2
- package/dist/{swirl-text-input.entry.08949cd3.js → swirl-text-input.entry.24628066.js} +21 -19
- package/dist/{swirl-text.entry.c57661bc.js → swirl-text.entry.ec8c7688.js} +1 -1
- package/dist/{swirl-theme-provider.entry.835a3b54.js → swirl-theme-provider.entry.a0de950c.js} +78 -66
- package/dist/{swirl-time-input.entry.fda4f54e.js → swirl-time-input.entry.dcf164da.js} +40 -38
- package/dist/{swirl-toast-provider.entry.a1d6c3c8.js → swirl-toast-provider.entry.a45bf498.js} +14 -9
- package/dist/{swirl-toast.entry.b6adb276.js → swirl-toast.entry.168b2471.js} +9 -9
- package/dist/{swirl-tooltip.entry.43b622b1.js → swirl-tooltip.entry.16cf40ce.js} +14 -14
- package/dist/{swirl-tree-navigation-item.entry.b41012b1.js → swirl-tree-navigation-item.entry.fb55295c.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.115fcbc5.js → swirl-video-thumbnail.entry.ef584013.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.5c6d4226.js → swirl-visually-hidden.entry.22de9ea0.js} +1 -1
- package/dist/{wc-datepicker.entry.1fa3ba12.js → wc-datepicker.entry.f8f6861f.js} +1 -1
- package/package.json +2 -2
|
@@ -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.e636c5f9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-surface-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}", o = class {
|
package/dist/{swirl-table-row-group.entry.7af69faf.js → swirl-table-row-group.entry.4461a288.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.e636c5f9.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,11 +1,11 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as s, h as e, H as o, g as r } from "./index.e636c5f9.js";
|
|
2
2
|
import { c as l } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { c as i } from "./utils-bc84f36e.1fee9865.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const a = ":host{display:flex}:host(.table-row--highlighted){--swirl-ghost-button-background-default:transparent}:host(.table-row--highlighted) ::slotted(.table-cell){background-color:rgba(240, 242, 255, 1);}:host ::slotted(.table-cell){border-bottom:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", d = class {
|
|
7
7
|
constructor(t) {
|
|
8
|
-
|
|
8
|
+
s(this, t), this.highlighted = void 0, this.index = void 0;
|
|
9
9
|
}
|
|
10
10
|
componentDidLoad() {
|
|
11
11
|
const t = i(this.el, "swirl-table");
|
|
@@ -15,7 +15,7 @@ const a = ":host{display:flex}:host(.table-row--highlighted){--swirl-ghost-butto
|
|
|
15
15
|
const t = l("table-row", {
|
|
16
16
|
"table-row--highlighted": this.highlighted
|
|
17
17
|
});
|
|
18
|
-
return e(
|
|
18
|
+
return e(o, { "aria-rowindex": this.index, class: t, role: "row" }, e("slot", null));
|
|
19
19
|
}
|
|
20
20
|
get el() {
|
|
21
21
|
return r(this);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as g, h as
|
|
1
|
+
import { r as g, h as r, H as _, g as v } from "./index.e636c5f9.js";
|
|
2
2
|
import { d as S, i as R } from "./utils-bc84f36e.1fee9865.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
var x = function(t) {
|
|
6
|
-
var
|
|
6
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = void 0, s = void 0, n = void 0, a = [];
|
|
7
7
|
return function() {
|
|
8
|
-
var m = C(
|
|
8
|
+
var m = C(l), p = new Date().getTime(), b = !i || p - i > m;
|
|
9
9
|
i = p;
|
|
10
10
|
for (var y = arguments.length, c = Array(y), d = 0; d < y; d++)
|
|
11
11
|
c[d] = arguments[d];
|
|
@@ -31,8 +31,8 @@ function C(e) {
|
|
|
31
31
|
}
|
|
32
32
|
function E() {
|
|
33
33
|
var e = {};
|
|
34
|
-
return e.promise = new Promise(function(t,
|
|
35
|
-
e.resolve = t, e.reject =
|
|
34
|
+
return e.promise = new Promise(function(t, l) {
|
|
35
|
+
e.resolve = t, e.reject = l;
|
|
36
36
|
}), e;
|
|
37
37
|
}
|
|
38
38
|
const L = `:host{position:relative;display:block}:host *{box-sizing:border-box}.table__container{position:relative;overflow:auto;width:100%}.table__container--scrolled{--swirl-table-sticky-right-shadow:0.0625rem 0 0 0 var(--s-border-default),
|
|
@@ -68,8 +68,8 @@ const L = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
68
68
|
}
|
|
69
69
|
resetRowGroupStyles() {
|
|
70
70
|
Array.from(this.el.querySelectorAll("swirl-table-row-group")).forEach((t) => {
|
|
71
|
-
const
|
|
72
|
-
!Boolean(
|
|
71
|
+
const l = t.shadowRoot.querySelector(".table-row-group__header-row");
|
|
72
|
+
!Boolean(l) || (t.shadowRoot.querySelector(".table-row-group__header-row").style.width = "");
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
resetColumnStyles() {
|
|
@@ -83,8 +83,8 @@ const L = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
updateScrolledState() {
|
|
86
|
-
const e = R(), t = this.container.scrollWidth > this.container.clientWidth,
|
|
87
|
-
t !== this.scrollable && (t && !e ? this.container.classList.add("table__container--scrollable") : this.container.classList.remove("table__container--scrollable")),
|
|
86
|
+
const e = R(), t = this.container.scrollWidth > this.container.clientWidth, l = this.container.scrollLeft > 0, o = Math.ceil(this.container.clientWidth + this.container.scrollLeft) >= Math.floor(this.container.scrollWidth);
|
|
87
|
+
t !== this.scrollable && (t && !e ? this.container.classList.add("table__container--scrollable") : this.container.classList.remove("table__container--scrollable")), l !== this.scrolled && (l && !e ? this.container.classList.add("table__container--scrolled") : this.container.classList.remove("table__container--scrolled")), o !== this.scrolledToEnd && (o && !e ? this.container.classList.add("table__container--scrolled-to-end") : this.container.classList.remove("table__container--scrolled-to-end"));
|
|
88
88
|
}
|
|
89
89
|
getColumns() {
|
|
90
90
|
return Array.from(this.el.querySelectorAll("swirl-table-column"));
|
|
@@ -100,17 +100,17 @@ const L = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
100
100
|
e.style.width = t;
|
|
101
101
|
}
|
|
102
102
|
layoutRowGroups() {
|
|
103
|
-
var
|
|
104
|
-
const
|
|
105
|
-
|
|
103
|
+
var l;
|
|
104
|
+
const e = Array.from(this.el.querySelectorAll("swirl-table-row-group")), t = `${(l = this.el.shadowRoot.querySelector(".table__container")) == null ? void 0 : l.scrollWidth}px`;
|
|
105
|
+
e.forEach((o) => {
|
|
106
106
|
const i = o.shadowRoot.querySelector(".table-row-group__header-row");
|
|
107
|
-
!Boolean(i) || (o.shadowRoot.querySelector(".table-row-group__header-row").style.width =
|
|
107
|
+
!Boolean(i) || (o.shadowRoot.querySelector(".table-row-group__header-row").style.width = t);
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
layOutCells() {
|
|
111
111
|
const e = this.getColumns(), t = this.getCells();
|
|
112
|
-
e.forEach((
|
|
113
|
-
const i = t.filter((n, a) => (o - a) % e.length === 0), s =
|
|
112
|
+
e.forEach((l, o) => {
|
|
113
|
+
const i = t.filter((n, a) => (o - a) % e.length === 0), s = l.width || `${l.getBoundingClientRect().width}px`;
|
|
114
114
|
i.forEach((n) => {
|
|
115
115
|
n.style.flex = Boolean(s) ? `0 0 ${s}` : "";
|
|
116
116
|
});
|
|
@@ -121,7 +121,7 @@ const L = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
121
121
|
this.empty = !Boolean(e) || e.children.length === 0;
|
|
122
122
|
}
|
|
123
123
|
render() {
|
|
124
|
-
return
|
|
124
|
+
return r(_, null, r("div", { class: "table" }, r("div", { class: "table__container", onScroll: this.onScroll, ref: (e) => this.container = e }, r("div", { "aria-describedby": Boolean(this.caption) ? "caption" : void 0, "aria-label": this.label, role: "table", class: "table__table" }, this.caption && r("swirl-visually-hidden", null, r("div", { id: "caption" }, this.caption)), r("div", { role: "rowgroup" }, r("div", { class: "table__header", role: "row" }, r("slot", { name: "columns", onSlotchange: this.onSlotChange }))), r("div", { class: "table__body" }, r("slot", { name: "rows", onSlotchange: this.onSlotChange }), this.empty && r("div", { class: "table__empty-row", role: "row" }, r("div", { "aria-colspan": this.getColumns().length, class: "table__empty-row-cell", role: "cell" }, r("swirl-text", { align: "center", size: "sm" }, this.emptyStateLabel))))))));
|
|
125
125
|
}
|
|
126
126
|
get el() {
|
|
127
127
|
return v(this);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as e, c as b, h as s, H as
|
|
1
|
+
import { r as e, c as b, h as s, H as c, g as r } from "./index.e636c5f9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const n = ".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 {
|
|
5
5
|
constructor(t) {
|
|
6
6
|
e(this, t), this.tabActivated = b(this, "tabActivated", 7), this.tabs = [], this.onActivateNextTab = () => {
|
|
7
7
|
this.activateNextTab();
|
|
@@ -25,14 +25,14 @@ const c = ".sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl
|
|
|
25
25
|
const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = Math.min(this.tabs.length - 1, t + 1);
|
|
26
26
|
this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
|
|
27
27
|
var a;
|
|
28
|
-
(a = this.el.querySelector(".tabs__tab--active"))
|
|
28
|
+
(a = this.el.querySelector(".tabs__tab--active")) == null || a.focus();
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
activatePreviousTab() {
|
|
32
32
|
const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = Math.max(0, t - 1);
|
|
33
33
|
this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
|
|
34
34
|
var a;
|
|
35
|
-
(a = this.el.querySelector(".tabs__tab--active"))
|
|
35
|
+
(a = this.el.querySelector(".tabs__tab--active")) == null || a.focus();
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
collectTabs() {
|
|
@@ -49,13 +49,13 @@ const c = ".sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return s(
|
|
52
|
+
return s(c, null, s("div", { class: "tabs" }, s("swirl-tab-bar", { label: this.label, onActivateNextTab: this.onActivateNextTab, onActivatePreviousTab: this.onActivatePreviousTab, onActivateTab: this.onActivateTab, tabs: this.tabBarTabs })), s("slot", null));
|
|
53
53
|
}
|
|
54
54
|
get el() {
|
|
55
|
-
return
|
|
55
|
+
return r(this);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
h.style =
|
|
58
|
+
h.style = n;
|
|
59
59
|
export {
|
|
60
60
|
h as swirl_tabs
|
|
61
61
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, c as s, h as t, H as n, g as i } from "./index.
|
|
1
|
+
import { r as o, c as s, h as t, H as n, g as i } from "./index.e636c5f9.js";
|
|
2
2
|
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -6,7 +6,7 @@ const l = ":host{display:inline-flex}:host *{box-sizing:border-box}.tag{display:
|
|
|
6
6
|
constructor(e) {
|
|
7
7
|
o(this, e), this.remove = s(this, "remove", 7), this.onRemove = (r) => {
|
|
8
8
|
var a;
|
|
9
|
-
(a = this.remove)
|
|
9
|
+
(a = this.remove) == null || a.emit(r);
|
|
10
10
|
}, this.intent = "default", this.label = void 0, this.removable = void 0, this.removalButtonLabel = "Remove";
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
@@ -1,17 +1,17 @@
|
|
|
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.e636c5f9.js";
|
|
2
2
|
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { g as x } from "./utils-bc84f36e.1fee9865.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
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);cursor:text}.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(
|
|
8
|
-
h(this,
|
|
7
|
+
constructor(s) {
|
|
8
|
+
h(this, s), 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
9
|
this.updateIconSize(t.matches);
|
|
10
10
|
}, this.clear = () => {
|
|
11
11
|
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
12
12
|
}, this.onChange = (t) => {
|
|
13
|
-
const
|
|
14
|
-
this.value =
|
|
13
|
+
const e = t.target;
|
|
14
|
+
this.value = e.value, this.valueChange.emit(e.value);
|
|
15
15
|
}, this.onBlur = (t) => {
|
|
16
16
|
this.inputBlur.emit(t);
|
|
17
17
|
}, this.onFocus = (t) => {
|
|
@@ -24,40 +24,42 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
|
|
|
24
24
|
if (this.type !== "number")
|
|
25
25
|
return;
|
|
26
26
|
const t = this.step || 1;
|
|
27
|
-
let
|
|
28
|
-
isNaN(this.inputEl.valueAsNumber) && (
|
|
27
|
+
let e = this.inputEl.valueAsNumber;
|
|
28
|
+
isNaN(this.inputEl.valueAsNumber) && (e = this.min !== void 0 ? this.min + 1 : 1), this.value = String(Math.max(this.min || -1 / 0, e - t)), this.valueChange.emit(this.value);
|
|
29
29
|
}, this.increaseValue = () => {
|
|
30
30
|
if (this.type !== "number")
|
|
31
31
|
return;
|
|
32
32
|
const t = this.step || 1;
|
|
33
|
-
let
|
|
34
|
-
isNaN(this.inputEl.valueAsNumber) && (
|
|
33
|
+
let e = this.inputEl.valueAsNumber;
|
|
34
|
+
isNaN(this.inputEl.valueAsNumber) && (e = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, e + t)), this.valueChange.emit(this.value);
|
|
35
35
|
}, this.togglePassword = () => {
|
|
36
36
|
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
37
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
38
|
}
|
|
39
39
|
componentDidLoad() {
|
|
40
|
-
this.updateIconSize(this.desktopMediaQuery.matches), this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler
|
|
40
|
+
this.updateIconSize(this.desktopMediaQuery.matches), this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler, this.autoFocus && setTimeout(() => {
|
|
41
|
+
this.inputEl.focus();
|
|
42
|
+
});
|
|
41
43
|
}
|
|
42
44
|
componentDidRender() {
|
|
43
45
|
this.adjustInputSize();
|
|
44
46
|
}
|
|
45
47
|
disconnectedCallback() {
|
|
46
|
-
var
|
|
47
|
-
(t = (
|
|
48
|
+
var s, t;
|
|
49
|
+
(t = (s = this.desktopMediaQuery).removeEventListener) == null || t.call(s, "change", this.desktopMediaQueryHandler);
|
|
48
50
|
}
|
|
49
|
-
updateIconSize(
|
|
50
|
-
this.iconSize =
|
|
51
|
+
updateIconSize(s) {
|
|
52
|
+
this.iconSize = s ? 20 : 24;
|
|
51
53
|
}
|
|
52
54
|
adjustInputSize() {
|
|
53
55
|
(this.rows > 1 || this.autoGrow) && (this.inputEl.style.width = "", this.inputEl.style.height = "", this.inputEl.style.height = Boolean(this.inputEl.scrollHeight) ? 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"));
|
|
54
56
|
}
|
|
55
|
-
handleAutoSelect(
|
|
56
|
-
!this.autoSelect ||
|
|
57
|
+
handleAutoSelect(s) {
|
|
58
|
+
!this.autoSelect || s.target.select();
|
|
57
59
|
}
|
|
58
60
|
render() {
|
|
59
|
-
var
|
|
60
|
-
const
|
|
61
|
+
var u;
|
|
62
|
+
const s = this.rows === 1 && !this.autoGrow ? "input" : "textarea", t = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, e = this.type === "number" && !this.disabled, r = this.type === "password" && !this.disabled, a = this.clearable && !this.disabled && Boolean(this.value) && !r && !e && !this.showCharacterCounter, o = this.type === "password" && this.showPassword ? "text" : this.type, l = c("text-input", `text-input--type-${this.type}`, {
|
|
61
63
|
"text-input--auto-grow": this.autoGrow,
|
|
62
64
|
"text-input--clearable": this.clearable,
|
|
63
65
|
"text-input--disabled": this.disabled,
|
|
@@ -66,7 +68,7 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
|
|
|
66
68
|
"text-input--inline": this.inline,
|
|
67
69
|
"text-input--show-password": this.type === "password" && this.showPassword
|
|
68
70
|
});
|
|
69
|
-
return i(d, null, i("div", { class:
|
|
71
|
+
return i(d, null, i("div", { class: l }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(s, { "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": t, 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: o, value: this.value }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), a && 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 })), r && 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 })), e && 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" }, ((u = this.value) == null ? void 0 : u.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
70
72
|
}
|
|
71
73
|
};
|
|
72
74
|
b.style = w;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as I, h as b, H as J, g as T } from "./index.
|
|
1
|
+
import { r as I, h as b, H as J, g as T } from "./index.e636c5f9.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";
|
package/dist/{swirl-theme-provider.entry.835a3b54.js → swirl-theme-provider.entry.a0de950c.js}
RENAMED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { r as j, c as E, h as w, H } from "./index.
|
|
1
|
+
import { r as j, c as E, h as w, H } from "./index.e636c5f9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
function d(e, t,
|
|
5
|
-
return Math.min(Math.max(e,
|
|
4
|
+
function d(e, t, r) {
|
|
5
|
+
return Math.min(Math.max(e, r), t);
|
|
6
6
|
}
|
|
7
7
|
class P extends Error {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super(`Failed to parse color: "${t}"`);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _ = P;
|
|
13
13
|
function C(e) {
|
|
14
14
|
if (typeof e != "string")
|
|
15
|
-
throw new
|
|
15
|
+
throw new _(e);
|
|
16
16
|
if (e.trim().toLowerCase() === "transparent")
|
|
17
17
|
return [0, 0, 0, 0];
|
|
18
18
|
let t = e.trim();
|
|
19
|
-
t =
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
const
|
|
23
|
-
return [...
|
|
19
|
+
t = L.test(e) ? M(e) : e;
|
|
20
|
+
const r = A.exec(t);
|
|
21
|
+
if (r) {
|
|
22
|
+
const o = Array.from(r).slice(1);
|
|
23
|
+
return [...o.slice(0, 3).map((i) => parseInt(u(i, 2), 16)), parseInt(u(o[3] || "f", 2), 16) / 255];
|
|
24
24
|
}
|
|
25
25
|
const n = F.exec(t);
|
|
26
26
|
if (n) {
|
|
27
|
-
const
|
|
28
|
-
return [...
|
|
29
|
-
}
|
|
30
|
-
const r = R.exec(t);
|
|
31
|
-
if (r) {
|
|
32
|
-
const a = Array.from(r).slice(1);
|
|
33
|
-
return [...a.slice(0, 3).map((i) => parseInt(i, 10)), parseFloat(a[3] || "1")];
|
|
27
|
+
const o = Array.from(n).slice(1);
|
|
28
|
+
return [...o.slice(0, 3).map((i) => parseInt(i, 16)), parseInt(o[3] || "ff", 16) / 255];
|
|
34
29
|
}
|
|
35
|
-
const s =
|
|
30
|
+
const s = R.exec(t);
|
|
36
31
|
if (s) {
|
|
37
|
-
const
|
|
32
|
+
const o = Array.from(s).slice(1);
|
|
33
|
+
return [...o.slice(0, 3).map((i) => parseInt(i, 10)), parseFloat(o[3] || "1")];
|
|
34
|
+
}
|
|
35
|
+
const a = I.exec(t);
|
|
36
|
+
if (a) {
|
|
37
|
+
const [o, i, h, c] = Array.from(a).slice(1).map(parseFloat);
|
|
38
38
|
if (d(0, 100, i) !== i)
|
|
39
|
-
throw new
|
|
39
|
+
throw new _(e);
|
|
40
40
|
if (d(0, 100, h) !== h)
|
|
41
|
-
throw new
|
|
42
|
-
return [...
|
|
41
|
+
throw new _(e);
|
|
42
|
+
return [...S(o, i, h), c || 1];
|
|
43
43
|
}
|
|
44
|
-
throw new
|
|
44
|
+
throw new _(e);
|
|
45
45
|
}
|
|
46
46
|
function $(e) {
|
|
47
|
-
let t = 5381,
|
|
48
|
-
for (;
|
|
49
|
-
t = t * 33 ^ e.charCodeAt(--
|
|
47
|
+
let t = 5381, r = e.length;
|
|
48
|
+
for (; r; )
|
|
49
|
+
t = t * 33 ^ e.charCodeAt(--r);
|
|
50
50
|
return (t >>> 0) % 2341;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
let
|
|
55
|
-
for (let
|
|
56
|
-
|
|
57
|
-
return e[
|
|
52
|
+
const z = (e) => parseInt(e.replace(/_/g, ""), 36), q = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e, t) => {
|
|
53
|
+
const r = z(t.substring(0, 3)), n = z(t.substring(3)).toString(16);
|
|
54
|
+
let s = "";
|
|
55
|
+
for (let a = 0; a < 6 - n.length; a++)
|
|
56
|
+
s += "0";
|
|
57
|
+
return e[r] = `${s}${n}`, e;
|
|
58
58
|
}, {});
|
|
59
59
|
function M(e) {
|
|
60
|
-
const t = e.toLowerCase().trim(),
|
|
61
|
-
if (!
|
|
62
|
-
throw new
|
|
63
|
-
return `#${
|
|
60
|
+
const t = e.toLowerCase().trim(), r = q[$(t)];
|
|
61
|
+
if (!r)
|
|
62
|
+
throw new _(e);
|
|
63
|
+
return `#${r}`;
|
|
64
64
|
}
|
|
65
|
-
const u = (e, t) => Array.from(Array(t)).map(() => e).join(""), A = new RegExp(`^#${u("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), F = new RegExp(`^#${u("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), R = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${u(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), I = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,
|
|
66
|
-
let n =
|
|
65
|
+
const u = (e, t) => Array.from(Array(t)).map(() => e).join(""), A = new RegExp(`^#${u("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), F = new RegExp(`^#${u("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), R = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${u(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), I = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, L = /^[a-z]+$/i, T = (e) => Math.round(e * 255), S = (e, t, r) => {
|
|
66
|
+
let n = r / 100;
|
|
67
67
|
if (t === 0)
|
|
68
|
-
return [n, n, n].map(
|
|
69
|
-
const
|
|
68
|
+
return [n, n, n].map(T);
|
|
69
|
+
const s = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * (t / 100), o = a * (1 - Math.abs(s % 2 - 1));
|
|
70
70
|
let i = 0, h = 0, c = 0;
|
|
71
|
-
|
|
72
|
-
const l = n -
|
|
73
|
-
return [m,
|
|
71
|
+
s >= 0 && s < 1 ? (i = a, h = o) : s >= 1 && s < 2 ? (i = o, h = a) : s >= 2 && s < 3 ? (h = a, c = o) : s >= 3 && s < 4 ? (h = o, c = a) : s >= 4 && s < 5 ? (i = o, c = a) : s >= 5 && s < 6 && (i = a, c = o);
|
|
72
|
+
const l = n - a / 2, m = i + l, g = h + l, y = c + l;
|
|
73
|
+
return [m, g, y].map(T);
|
|
74
74
|
};
|
|
75
|
-
function
|
|
76
|
-
const [t,
|
|
77
|
-
if (
|
|
78
|
-
return [0, 0, i,
|
|
79
|
-
const h =
|
|
80
|
-
return [60 * (t ===
|
|
75
|
+
function v(e) {
|
|
76
|
+
const [t, r, n, s] = C(e).map((m, g) => g === 3 ? m : m / 255), a = Math.max(t, r, n), o = Math.min(t, r, n), i = (a + o) / 2;
|
|
77
|
+
if (a === o)
|
|
78
|
+
return [0, 0, i, s];
|
|
79
|
+
const h = a - o, c = i > 0.5 ? h / (2 - a - o) : h / (a + o);
|
|
80
|
+
return [60 * (t === a ? (r - n) / h + (r < n ? 6 : 0) : r === a ? (n - t) / h + 2 : (t - r) / h + 4), c, i, s];
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return `hsla(${(e % 360).toFixed()}, ${d(0, 100, t * 100).toFixed()}%, ${d(0, 100,
|
|
82
|
+
function f(e, t, r, n) {
|
|
83
|
+
return `hsla(${(e % 360).toFixed()}, ${d(0, 100, t * 100).toFixed()}%, ${d(0, 100, r * 100).toFixed()}%, ${parseFloat(d(0, 1, n).toFixed(3))})`;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return `rgba(${d(0, 255, e).toFixed()}, ${d(0, 255, t).toFixed()}, ${d(0, 255,
|
|
85
|
+
function B(e, t, r, n) {
|
|
86
|
+
return `rgba(${d(0, 255, e).toFixed()}, ${d(0, 255, t).toFixed()}, ${d(0, 255, r).toFixed()}, ${parseFloat(d(0, 1, n).toFixed(3))})`;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function p(e) {
|
|
89
|
+
return B(...C(e));
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const D = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-theme", b = {
|
|
92
92
|
"--s-action-primary-default": "primary",
|
|
93
93
|
"--s-action-primary-hovered": "primaryHovered",
|
|
94
94
|
"--s-action-primary-pressed": "primaryPressed",
|
|
@@ -104,7 +104,7 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
104
104
|
"--s-interactive-primary-default": "text",
|
|
105
105
|
"--s-interactive-primary-hovered": "textHovered",
|
|
106
106
|
"--s-interactive-primary-pressed": "textPressed"
|
|
107
|
-
},
|
|
107
|
+
}, O = class {
|
|
108
108
|
constructor(e) {
|
|
109
109
|
j(this, e), this.themeChange = E(this, "themeChange", 7), this.config = void 0;
|
|
110
110
|
}
|
|
@@ -129,7 +129,11 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
129
129
|
}
|
|
130
130
|
resolveConfig() {
|
|
131
131
|
var e, t;
|
|
132
|
-
this.resolvedConfig =
|
|
132
|
+
this.resolvedConfig = {
|
|
133
|
+
...this.config || {},
|
|
134
|
+
rootElement: ((e = this.config) == null ? void 0 : e.rootElement) || document.documentElement,
|
|
135
|
+
storage: ((t = this.config) == null ? void 0 : t.storage) || (window == null ? void 0 : window.localStorage)
|
|
136
|
+
};
|
|
133
137
|
}
|
|
134
138
|
determineOSTheme() {
|
|
135
139
|
if (!Boolean(window.matchMedia)) {
|
|
@@ -150,19 +154,27 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
150
154
|
(!Boolean(this.recentThemeChangeEventData) || e.activeTheme !== this.recentThemeChangeEventData.activeTheme || e.preferredTheme !== this.recentThemeChangeEventData.preferredTheme) && (this.recentThemeChangeEventData = e, this.themeChange.emit(this.recentThemeChangeEventData));
|
|
151
155
|
}
|
|
152
156
|
updateTenantVariables() {
|
|
153
|
-
var
|
|
154
|
-
const
|
|
155
|
-
if (!Boolean(
|
|
157
|
+
var g;
|
|
158
|
+
const e = (g = this.resolvedConfig) == null ? void 0 : g.tenantColors;
|
|
159
|
+
if (!Boolean(e)) {
|
|
156
160
|
this.resetTenantVariables();
|
|
157
161
|
return;
|
|
158
162
|
}
|
|
159
|
-
const
|
|
160
|
-
|
|
163
|
+
const t = this.resolvedConfig.rootElement, r = v(e.primary), n = v(e.secondary), s = v(e.text), a = p(f(r[0], r[1] - 0.21, r[2] + 0.09, 1)), o = p(f(r[0], r[1] - 0.2, r[2] + 0.17, 1)), i = p(f(n[0], n[1], n[2] + 0.07, 1)), h = p(f(n[0], n[1], n[2] + 0.15, 1)), c = p(f(s[0], s[1] - 0.34, s[2] + 0.1, 1)), l = p(f(s[0], s[1] - 0.48, s[2] + 0.2, 1)), m = {
|
|
164
|
+
...e,
|
|
165
|
+
primaryHovered: a,
|
|
166
|
+
primaryPressed: o,
|
|
167
|
+
secondaryHovered: i,
|
|
168
|
+
secondaryPressed: h,
|
|
169
|
+
textHovered: c,
|
|
170
|
+
textPressed: l
|
|
171
|
+
};
|
|
172
|
+
Object.entries(b).forEach(([y, k]) => t.style.setProperty(y, m[k]));
|
|
161
173
|
}
|
|
162
174
|
resetTenantVariables() {
|
|
163
175
|
const e = this.resolvedConfig.rootElement;
|
|
164
176
|
[
|
|
165
|
-
...Object.keys(
|
|
177
|
+
...Object.keys(b),
|
|
166
178
|
"primaryHovered",
|
|
167
179
|
"primaryPressed",
|
|
168
180
|
"secondaryHovered",
|
|
@@ -180,7 +192,7 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
180
192
|
};
|
|
181
193
|
}
|
|
182
194
|
};
|
|
183
|
-
|
|
195
|
+
O.style = D;
|
|
184
196
|
export {
|
|
185
|
-
|
|
197
|
+
O as swirl_theme_provider
|
|
186
198
|
};
|