@getflip/swirl-components-react 0.10.0 → 0.12.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/{_commonjsHelpers-44457d8d.ba94af77.js → _commonjsHelpers-10467d11.b7d83301.js} +0 -0
- package/dist/balancetext-31f1ec68.bd1c1b2d.js +189 -0
- package/dist/file-manager.entry.7a321755.js +58 -0
- package/dist/{floating-ui.dom.esm-1a4e8b8a.87557233.js → floating-ui.dom.esm-b9f28f6d.15013ef7.js} +0 -0
- package/dist/{index-6d2e18c6.289636d4.js → index-47862d62.75c2fcf1.js} +1 -1
- package/dist/index.149af511.js +1394 -0
- package/dist/stencil-generated/index.d.ts +169 -157
- package/dist/swirl-action-list-item.entry.6548a6f0.js +34 -0
- package/dist/swirl-action-list-section.entry.e12fe159.js +15 -0
- package/dist/{flip-action-list.entry.7bdcff2f.js → swirl-action-list.entry.21644ba6.js} +3 -3
- package/dist/{flip-app-layout_5.entry.6e395cd4.js → swirl-app-layout_5.entry.9703e919.js} +28 -24
- package/dist/swirl-autocomplete.entry.4bad6cbf.js +70 -0
- package/dist/swirl-avatar-group.entry.d41bfa97.js +29 -0
- package/dist/{flip-avatar.entry.f5cb1fd9.js → swirl-avatar.entry.c81909ad.js} +8 -8
- package/dist/swirl-badge.entry.7bd8bbda.js +20 -0
- package/dist/swirl-banner.entry.ef0143b1.js +49 -0
- package/dist/swirl-button-group.entry.60578a80.js +20 -0
- package/dist/swirl-button.entry.167120c6.js +52 -0
- package/dist/{flip-card.entry.66635d0b.js → swirl-card.entry.47b41ce9.js} +4 -4
- package/dist/swirl-checkbox.entry.37c16abe.js +30 -0
- package/dist/{flip-chip.entry.2d504566.js → swirl-chip.entry.89c2c730.js} +23 -15
- package/dist/swirl-components-react.js +171 -159
- package/dist/swirl-components-react.umd.cjs +76 -46
- package/dist/{flip-console-layout.entry.0b474308.js → swirl-console-layout.entry.61b9ad81.js} +22 -22
- package/dist/{flip-date-input.entry.462f9e2d.js → swirl-date-input.entry.f0f6d6ee.js} +633 -623
- package/dist/swirl-date-picker_2.entry.91531b84.js +37 -0
- package/dist/{flip-description-list-item.entry.2ea98099.js → swirl-description-list-item.entry.99c83045.js} +18 -3
- package/dist/{flip-description-list.entry.c08605e6.js → swirl-description-list.entry.724f88d9.js} +5 -5
- package/dist/swirl-dialog.entry.b50cfdb2.js +45 -0
- package/dist/swirl-file-uploader.entry.f8afd2d4.js +32 -0
- package/dist/{flip-file-viewer_7.entry.8d39ace2.js → swirl-file-viewer_7.entry.8973a210.js} +20 -20
- package/dist/swirl-form-control.entry.bc87b691.js +70 -0
- package/dist/swirl-form-group.entry.674e8b3f.js +18 -0
- package/dist/swirl-heading.entry.8e9ded19.js +28 -0
- package/dist/swirl-icon-add-photo.entry.5a20015c.js +18 -0
- package/dist/swirl-icon-add_4.entry.0844d9ca.js +51 -0
- package/dist/swirl-icon-admin-panel-settings.entry.8f932fe7.js +18 -0
- package/dist/swirl-icon-arrow-back.entry.c9c0cd69.js +18 -0
- package/dist/swirl-icon-arrow-downward_2.entry.03e4f1bc.js +29 -0
- package/dist/swirl-icon-arrow-forward.entry.965aa3ee.js +18 -0
- package/dist/swirl-icon-arrow-left_3.entry.5cddfb42.js +40 -0
- package/dist/swirl-icon-arrow-right-small.entry.53b648b8.js +18 -0
- package/dist/swirl-icon-attachment.entry.302569e9.js +18 -0
- package/dist/swirl-icon-block.entry.79c5f2b2.js +18 -0
- package/dist/swirl-icon-cancel_4.entry.31c7f7d7.js +51 -0
- package/dist/swirl-icon-chat-bubble.entry.ac1cbfcd.js +18 -0
- package/dist/swirl-icon-chats-filled.entry.18c0e11a.js +18 -0
- package/dist/swirl-icon-chats-outlined.entry.af240396.js +18 -0
- package/dist/swirl-icon-check-circle.entry.4c0304e9.js +18 -0
- package/dist/swirl-icon-check-small_4.entry.c7292189.js +1468 -0
- package/dist/swirl-icon-check-strong.entry.0e1ebe49.js +18 -0
- package/dist/swirl-icon-check.entry.bb609d4c.js +18 -0
- package/dist/swirl-icon-chevron-left.entry.0faf5ceb.js +18 -0
- package/dist/swirl-icon-chevron-right.entry.9b9edbac.js +18 -0
- package/dist/swirl-icon-close-small.entry.47516cb5.js +18 -0
- package/dist/swirl-icon-close.entry.f20dd2d1.js +18 -0
- package/dist/swirl-icon-cloud-upload.entry.5307cd46.js +18 -0
- package/dist/swirl-icon-column.entry.fb461b40.js +18 -0
- package/dist/swirl-icon-comment.entry.7bfbd903.js +18 -0
- package/dist/swirl-icon-copy.entry.4c17082a.js +18 -0
- package/dist/swirl-icon-date-range.entry.c8ce6402.js +18 -0
- package/dist/swirl-icon-delete.entry.6d3a6a54.js +18 -0
- package/dist/swirl-icon-description.entry.060d019c.js +18 -0
- package/dist/swirl-icon-edit.entry.329a25ea.js +18 -0
- package/dist/swirl-icon-emoji-mood.entry.3fbee1e1.js +18 -0
- package/dist/swirl-icon-emoji-satisfied.entry.9fc1863d.js +18 -0
- package/dist/swirl-icon-error_3.entry.8209c557.js +58 -0
- package/dist/swirl-icon-expand-more.entry.b2e0a30c.js +18 -0
- package/dist/swirl-icon-file.entry.c0e82b43.js +18 -0
- package/dist/swirl-icon-filter.entry.e26fa57c.js +18 -0
- package/dist/swirl-icon-folder-shared.entry.0169b375.js +18 -0
- package/dist/swirl-icon-group-assign.entry.70e80a6e.js +18 -0
- package/dist/swirl-icon-groups-custom.entry.d16f5fb9.js +18 -0
- package/dist/swirl-icon-groups-filled.entry.6cccc3d3.js +18 -0
- package/dist/swirl-icon-groups-outlined.entry.2bf03f93.js +18 -0
- package/dist/swirl-icon-groups.entry.cbc420c1.js +18 -0
- package/dist/swirl-icon-help.entry.bca2c9e9.js +18 -0
- package/dist/swirl-icon-image.entry.67457d50.js +18 -0
- package/dist/swirl-icon-info.entry.0ee58aeb.js +18 -0
- package/dist/swirl-icon-inventory.entry.1548c8b5.js +18 -0
- package/dist/swirl-icon-like.entry.e9d549b8.js +18 -0
- package/dist/swirl-icon-link.entry.c442143c.js +18 -0
- package/dist/swirl-icon-lock.entry.d84f882b.js +18 -0
- package/dist/swirl-icon-logout.entry.7a6a96d3.js +18 -0
- package/dist/swirl-icon-mail.entry.a7b7df7b.js +18 -0
- package/dist/swirl-icon-manage-accounts.entry.fe2691fc.js +18 -0
- package/dist/swirl-icon-mention.entry.c0368650.js +18 -0
- package/dist/swirl-icon-menu-filled.entry.06cced02.js +18 -0
- package/dist/swirl-icon-menu-outlined.entry.89dca403.js +18 -0
- package/dist/swirl-icon-menu.entry.ff253f8f.js +18 -0
- package/dist/swirl-icon-message.entry.b7d9f581.js +18 -0
- package/dist/swirl-icon-more-horizontal.entry.407e51c1.js +18 -0
- package/dist/swirl-icon-more-vertikal.entry.718f85e0.js +18 -0
- package/dist/swirl-icon-news-filled.entry.5134e640.js +18 -0
- package/dist/swirl-icon-news-outlined.entry.9c0931c4.js +18 -0
- package/dist/swirl-icon-notifications-active.entry.c47bbb94.js +18 -0
- package/dist/swirl-icon-notifications-off.entry.d5933059.js +18 -0
- package/dist/swirl-icon-notifications.entry.b945b795.js +18 -0
- package/dist/swirl-icon-open-in-new.entry.98a7ed82.js +18 -0
- package/dist/swirl-icon-people-alt.entry.646cfc3d.js +18 -0
- package/dist/swirl-icon-person-off.entry.f5db1b83.js +18 -0
- package/dist/swirl-icon-person.entry.4b5b54cb.js +18 -0
- package/dist/swirl-icon-phone.entry.f6c4012a.js +18 -0
- package/dist/swirl-icon-poll.entry.9ee6b1d2.js +18 -0
- package/dist/swirl-icon-print.entry.37f08abb.js +18 -0
- package/dist/swirl-icon-recieved.entry.f79a1343.js +18 -0
- package/dist/swirl-icon-search-strong.entry.6752b238.js +18 -0
- package/dist/swirl-icon-search.entry.d152e72f.js +18 -0
- package/dist/swirl-icon-send.entry.cafcc526.js +18 -0
- package/dist/swirl-icon-settings.entry.cdd23f77.js +18 -0
- package/dist/swirl-icon-sync.entry.37eed48f.js +18 -0
- package/dist/swirl-icon-tasks-filled.entry.629446b0.js +18 -0
- package/dist/swirl-icon-tasks-outlined.entry.21e25bc3.js +18 -0
- package/dist/swirl-icon-time-filled.entry.67ee5a24.js +18 -0
- package/dist/swirl-icon-time-outlined.entry.d0eb5d19.js +18 -0
- package/dist/swirl-icon-user-assign.entry.8a6b68ea.js +18 -0
- package/dist/swirl-icon-video-camera.entry.85101910.js +18 -0
- package/dist/swirl-icon-warning.entry.330bf12a.js +18 -0
- package/dist/{flip-lightbox.entry.e6ea2310.js → swirl-lightbox.entry.7a2191eb.js} +13 -13
- package/dist/swirl-link.entry.81bd6e0f.js +15 -0
- package/dist/swirl-list.entry.ca7b2daf.js +18 -0
- package/dist/swirl-modal.entry.97df470f.js +63 -0
- package/dist/swirl-option-list-section.entry.b3b30b8f.js +15 -0
- package/dist/swirl-pagination.entry.0bbbf034.js +27 -0
- package/dist/{flip-pdf-reader.entry.4cdb28da.js → swirl-pdf-reader.entry.064e66a5.js} +8 -8
- package/dist/{flip-popover.entry.4a45218b.js → swirl-popover.entry.1e51f870.js} +10 -10
- package/dist/{flip-progress-indicator.entry.fc0e5979.js → swirl-progress-indicator.entry.46470fa4.js} +4 -4
- package/dist/swirl-radio-group.entry.f931de9f.js +35 -0
- package/dist/swirl-radio.entry.5ccbc5fa.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.66329d69.js +37 -0
- package/dist/swirl-search.entry.364d373f.js +48 -0
- package/dist/swirl-select.entry.95b1f5bc.js +49 -0
- package/dist/swirl-separator.entry.7c230cd1.js +15 -0
- package/dist/{flip-stack.entry.a5b14f3a.js → swirl-stack.entry.cb1d54ae.js} +4 -4
- package/dist/swirl-switch.entry.895cfbbd.js +56 -0
- package/dist/swirl-tab.entry.b870a20f.js +18 -0
- package/dist/swirl-table-cell.entry.0d4a9b8f.js +15 -0
- package/dist/swirl-table-column.entry.b1f05cb5.js +23 -0
- package/dist/swirl-table-row-group.entry.85368b7a.js +19 -0
- package/dist/swirl-table-row.entry.39f31a4b.js +20 -0
- package/dist/swirl-table.entry.cd3a7dde.js +141 -0
- package/dist/{flip-tabs.entry.d3d9f791.js → swirl-tabs.entry.6dbf6d57.js} +8 -8
- package/dist/swirl-tag.entry.b0d8059b.js +21 -0
- package/dist/swirl-text-input.entry.86bbfa05.js +75 -0
- package/dist/swirl-text.entry.53142b33.js +31 -0
- package/dist/{flip-theme-provider.entry.2b2c55b9.js → swirl-theme-provider.entry.9cc36512.js} +18 -18
- package/dist/swirl-thumbnail.entry.bd0a5c89.js +18 -0
- package/dist/{flip-toast-provider.entry.729fe2a2.js → swirl-toast-provider.entry.7747ba81.js} +3 -3
- package/dist/swirl-toast.entry.ea517c98.js +52 -0
- package/dist/{flip-tooltip.entry.8392ec7f.js → swirl-tooltip.entry.71acfc7d.js} +8 -8
- package/dist/{flip-tree-navigation-item.entry.62f7ab3c.js → swirl-tree-navigation-item.entry.59540e7e.js} +4 -4
- package/dist/{flip-video-thumbnail.entry.edc7cce0.js → swirl-video-thumbnail.entry.4546c208.js} +3 -3
- package/dist/{flip-visually-hidden.entry.69776f72.js → swirl-visually-hidden.entry.bbc8b32d.js} +4 -4
- package/dist/utils-33d31b58.1488fcfe.js +46 -0
- package/dist/wc-datepicker.entry.d105e9ee.js +269 -0
- package/package.json +2 -2
- package/dist/file-manager.entry.8bb8e04c.js +0 -58
- package/dist/flip-action-list-item.entry.56f1f1ef.js +0 -18
- package/dist/flip-action-list-section.entry.a99c7d3e.js +0 -15
- package/dist/flip-autocomplete.entry.309d4ae7.js +0 -70
- package/dist/flip-avatar-group.entry.4192d45c.js +0 -29
- package/dist/flip-badge.entry.9de15857.js +0 -20
- package/dist/flip-banner.entry.703f5f14.js +0 -33
- package/dist/flip-button-group.entry.19eb382b.js +0 -20
- package/dist/flip-button.entry.a046c9ec.js +0 -41
- package/dist/flip-checkbox.entry.f73ba3b1.js +0 -30
- package/dist/flip-date-picker_2.entry.cbbcb306.js +0 -1186
- package/dist/flip-dialog.entry.97e79b3a.js +0 -45
- package/dist/flip-file-uploader.entry.2b504539.js +0 -32
- package/dist/flip-form-control.entry.1b840330.js +0 -65
- package/dist/flip-form-group.entry.8b6006f5.js +0 -18
- package/dist/flip-heading_2.entry.603511e8.js +0 -29
- package/dist/flip-icon-add-photo.entry.f336c2f0.js +0 -15
- package/dist/flip-icon-add_4.entry.99b75edc.js +0 -45
- package/dist/flip-icon-admin-panel-settings.entry.de10ebf5.js +0 -15
- package/dist/flip-icon-arrow-back.entry.b8865555.js +0 -15
- package/dist/flip-icon-arrow-forward.entry.b2ef6fc1.js +0 -15
- package/dist/flip-icon-arrow-left_3.entry.7a79a065.js +0 -35
- package/dist/flip-icon-arrow-right-small.entry.ae64706f.js +0 -15
- package/dist/flip-icon-attachment.entry.081189f0.js +0 -15
- package/dist/flip-icon-block.entry.6d9c5dfc.js +0 -15
- package/dist/flip-icon-cancel_4.entry.d2cb75c3.js +0 -45
- package/dist/flip-icon-chat-bubble.entry.67f98ff5.js +0 -15
- package/dist/flip-icon-chats-filled.entry.06584eb3.js +0 -15
- package/dist/flip-icon-chats-outlined.entry.dc6dbf4b.js +0 -15
- package/dist/flip-icon-check-circle.entry.29fe9a35.js +0 -15
- package/dist/flip-icon-check-small_3.entry.8070cb06.js +0 -143
- package/dist/flip-icon-check-strong.entry.fba6e55f.js +0 -15
- package/dist/flip-icon-check.entry.86260e1c.js +0 -15
- package/dist/flip-icon-chevron-left.entry.e4c7857a.js +0 -15
- package/dist/flip-icon-chevron-right.entry.1db14308.js +0 -15
- package/dist/flip-icon-close-small.entry.cbd4fc49.js +0 -15
- package/dist/flip-icon-close.entry.48763036.js +0 -15
- package/dist/flip-icon-cloud-upload.entry.98e40ba8.js +0 -15
- package/dist/flip-icon-comment.entry.6a6d8fbc.js +0 -15
- package/dist/flip-icon-copy.entry.53b11b1a.js +0 -15
- package/dist/flip-icon-date-range.entry.84d14dff.js +0 -15
- package/dist/flip-icon-delete.entry.a9b6ab40.js +0 -15
- package/dist/flip-icon-description.entry.6aefa229.js +0 -15
- package/dist/flip-icon-edit.entry.81a6837c.js +0 -15
- package/dist/flip-icon-emoji-mood.entry.b1766a9a.js +0 -15
- package/dist/flip-icon-emoji-satisfied.entry.89712163.js +0 -15
- package/dist/flip-icon-error_3.entry.d6a422a6.js +0 -39
- package/dist/flip-icon-expand-more.entry.63f210f6.js +0 -15
- package/dist/flip-icon-file.entry.625b53c4.js +0 -15
- package/dist/flip-icon-folder-shared.entry.2128dab9.js +0 -15
- package/dist/flip-icon-group-assign.entry.4860e5f5.js +0 -15
- package/dist/flip-icon-groups-custom.entry.ae87389c.js +0 -15
- package/dist/flip-icon-groups-filled.entry.251c942d.js +0 -15
- package/dist/flip-icon-groups-outlined.entry.43844b1d.js +0 -15
- package/dist/flip-icon-groups.entry.b4f9a7f7.js +0 -15
- package/dist/flip-icon-help.entry.1146bb20.js +0 -15
- package/dist/flip-icon-image.entry.0e41e08d.js +0 -15
- package/dist/flip-icon-info.entry.605cfdf6.js +0 -15
- package/dist/flip-icon-inventory.entry.166bc115.js +0 -15
- package/dist/flip-icon-like.entry.cae24842.js +0 -15
- package/dist/flip-icon-link.entry.22976afa.js +0 -15
- package/dist/flip-icon-lock.entry.566db977.js +0 -15
- package/dist/flip-icon-logout.entry.79ae2f2c.js +0 -15
- package/dist/flip-icon-mail.entry.3846875a.js +0 -15
- package/dist/flip-icon-manage-accounts.entry.b7dff46e.js +0 -15
- package/dist/flip-icon-mention.entry.8cae7e24.js +0 -15
- package/dist/flip-icon-menu-filled.entry.de447ac4.js +0 -15
- package/dist/flip-icon-menu-outlined.entry.3fb10f79.js +0 -15
- package/dist/flip-icon-menu.entry.cd1f33c3.js +0 -15
- package/dist/flip-icon-message.entry.b6422ee9.js +0 -15
- package/dist/flip-icon-more-horizontal.entry.57fdb45f.js +0 -15
- package/dist/flip-icon-more-vertikal.entry.60e8e3db.js +0 -15
- package/dist/flip-icon-news-filled.entry.9e2ae1ac.js +0 -15
- package/dist/flip-icon-news-outlined.entry.27fe1a80.js +0 -15
- package/dist/flip-icon-notifications-active.entry.ad17e8e4.js +0 -15
- package/dist/flip-icon-notifications-off.entry.669ff414.js +0 -15
- package/dist/flip-icon-notifications.entry.c533a876.js +0 -15
- package/dist/flip-icon-open-in-new.entry.f020da7b.js +0 -15
- package/dist/flip-icon-people-alt.entry.23a07d8d.js +0 -15
- package/dist/flip-icon-person-off.entry.b9487422.js +0 -15
- package/dist/flip-icon-person.entry.2b1ece6a.js +0 -15
- package/dist/flip-icon-phone.entry.d878e225.js +0 -15
- package/dist/flip-icon-poll.entry.9f9d3097.js +0 -15
- package/dist/flip-icon-print.entry.3c6ba219.js +0 -15
- package/dist/flip-icon-recieved.entry.0e863e26.js +0 -15
- package/dist/flip-icon-search-strong.entry.9e14089f.js +0 -15
- package/dist/flip-icon-search.entry.8e785c5b.js +0 -15
- package/dist/flip-icon-send.entry.2b9ec517.js +0 -15
- package/dist/flip-icon-settings.entry.1c1c82ba.js +0 -15
- package/dist/flip-icon-tasks-filled.entry.6b345bdf.js +0 -15
- package/dist/flip-icon-tasks-outlined.entry.75282f32.js +0 -15
- package/dist/flip-icon-time-filled.entry.4b2e3be8.js +0 -15
- package/dist/flip-icon-time-outlined.entry.1ce39655.js +0 -15
- package/dist/flip-icon-user-assign.entry.8fd4da9a.js +0 -15
- package/dist/flip-icon-video-camera.entry.7f1b8790.js +0 -15
- package/dist/flip-icon-warning.entry.a73148c4.js +0 -15
- package/dist/flip-link.entry.5daf5ffe.js +0 -15
- package/dist/flip-list.entry.25e0a5e8.js +0 -18
- package/dist/flip-modal.entry.f14cc170.js +0 -63
- package/dist/flip-option-list-section.entry.d1b4d66a.js +0 -15
- package/dist/flip-pagination.entry.e6de7b67.js +0 -27
- package/dist/flip-radio-group.entry.081a6b27.js +0 -35
- package/dist/flip-radio.entry.fd8faaa3.js +0 -29
- package/dist/flip-resource-list-file-item.entry.d15b84be.js +0 -20
- package/dist/flip-search.entry.638f3769.js +0 -31
- package/dist/flip-select.entry.5c709269.js +0 -48
- package/dist/flip-switch.entry.f812357e.js +0 -56
- package/dist/flip-tab.entry.83bf882c.js +0 -18
- package/dist/flip-tag.entry.8b80d408.js +0 -21
- package/dist/flip-text-input.entry.d1b0bb71.js +0 -60
- package/dist/flip-thumbnail.entry.4148adbc.js +0 -18
- package/dist/flip-toast.entry.7c89a88e.js +0 -39
- package/dist/index.6f8c9509.js +0 -1382
- package/dist/utils-39b2afe8.37b54ba4.js +0 -40
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { r as a, c as n, h as s, H as c } from "./index.149af511.js";
|
|
2
|
+
import { c as h } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { g as d } from "./utils-33d31b58.1488fcfe.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
|
+
const m = ':host{display:block;width:100%}:host *{box-sizing:border-box}.resource-list-file-item{position:relative;display:flex;width:100%;padding:var(--s-space-12) var(--s-space-16);align-items:center;background-color:var(--s-background-default);line-height:var(--s-line-height-base);gap:var(--s-space-12)}.resource-list-file-item:focus{outline:none}.resource-list-file-item:focus-visible{background-color:var(--s-background-hovered)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.resource-list-file-item{padding:var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.resource-list-file-item--has-control .resource-list-file-item__label-container{padding-right:calc(var(--s-space-12) + 2.5rem)}.resource-list-file-item__icon{color:var(--s-icon-highlight)}.resource-list-file-item__label-container{position:relative;display:flex;min-width:0;min-height:2.875rem;flex-grow:1;justify-content:center;flex-direction:column}.resource-list-file-item__label-container:after{position:absolute;right:0;bottom:calc(-1 * var(--s-space-12));left:0;height:0.0625rem;background-color:var(--s-border-default);content:""}.resource-list-file-item__label{overflow:hidden;font-weight:var(--s-font-weight-medium);white-space:nowrap;text-overflow:ellipsis}.resource-list-file-item__description{overflow:hidden;margin-top:var(--s-space-2);color:var(--s-text-subdued);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);white-space:nowrap;text-overflow:ellipsis}.resource-list-file-item__error-message{margin-top:var(--s-space-2)}.resource-list-file-item__remove-button{position:absolute;top:50%;right:var(--s-space-16);display:inline-flex;transform:translateY(-50%)}.resource-list-file-item__spinner{position:absolute;top:50%;right:var(--s-space-24);display:inline-flex;transform:translateY(-50%)}', p = class {
|
|
8
|
+
constructor(i) {
|
|
9
|
+
a(this, i), this.remove = n(this, "remove", 7), this.icon = "<swirl-icon-file></swirl-icon-file>", this.removeButtonLabel = "Remove file", this.desktopMediaQuery = d(), this.desktopMediaQueryHandler = (e) => {
|
|
10
|
+
this.forceIconProps(e.matches);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
componentDidLoad() {
|
|
14
|
+
var i, e;
|
|
15
|
+
this.forceIconProps(this.desktopMediaQuery.matches), (e = (i = this.desktopMediaQuery).addEventListener) === null || e === void 0 || e.call(i, "change", this.desktopMediaQueryHandler);
|
|
16
|
+
}
|
|
17
|
+
disconnectedCallback() {
|
|
18
|
+
var i, e;
|
|
19
|
+
(e = (i = this.desktopMediaQuery).removeEventListener) === null || e === void 0 || e.call(i, "change", this.desktopMediaQueryHandler);
|
|
20
|
+
}
|
|
21
|
+
forceIconProps(i) {
|
|
22
|
+
if (!Boolean(this.iconEl))
|
|
23
|
+
return;
|
|
24
|
+
const e = this.iconEl.children[0];
|
|
25
|
+
e == null || e.setAttribute("size", i ? "20" : "24");
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const i = Boolean(this.errorMessage), e = !i && Boolean(this.description), t = !i && this.loading, r = this.removable && !t, o = h("resource-list-file-item", {
|
|
29
|
+
"resource-list-file-item--has-control": t || r
|
|
30
|
+
});
|
|
31
|
+
return s(c, { role: "row" }, s("div", { class: o, part: "resource-list-file-item", role: "gridcell" }, s("span", { class: "resource-list-file-item__icon", innerHTML: this.icon, ref: (l) => this.iconEl = l }), s("span", { class: "resource-list-file-item__label-container" }, s("span", { class: "resource-list-file-item__label", id: "label" }, this.label), e && s("span", { class: "resource-list-file-item__description" }, this.description), i && s("span", { "aria-live": "polite", class: "resource-list-file-item__error-message" }, s("swirl-inline-error", { message: this.errorMessage, size: "s" }))), t && s("span", { class: "resource-list-file-item__spinner" }, s("swirl-spinner", { size: "s" })), r && s("span", { class: "resource-list-file-item__remove-button" }, s("swirl-button", { hideLabel: !0, icon: "<swirl-icon-close></swirl-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
p.style = m;
|
|
35
|
+
export {
|
|
36
|
+
p as swirl_resource_list_file_item
|
|
37
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { r as i, c as r, h as a, H as t } from "./index.149af511.js";
|
|
2
|
+
import { c } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { g as o } from "./utils-33d31b58.1488fcfe.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
|
+
const l = ".sc-swirl-search-h{display:flex;width:100%}.sc-swirl-search-h *.sc-swirl-search{box-sizing:border-box}.search.sc-swirl-search{position:relative;display:flex;width:100%}.search--disabled.sc-swirl-search .search__icon.sc-swirl-search{color:var(--s-icon-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search{color:var(--s-text-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search::-moz-placeholder{color:var(--s-text-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search::placeholder{color:var(--s-text-disabled)}.search__icon.sc-swirl-search{position:absolute;top:50%;left:var(--s-space-12);display:inline-flex;color:var(--s-icon-default);transform:translateY(-50%)}.search__input.sc-swirl-search{width:100%;height:2.5rem;padding-top:var(--s-space-8);padding-right:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));border:none;border-radius:var(--s-border-radius-base);color:var(--s-text-default);background-color:var(--s-surface-raised-default);font:inherit;line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.search__input.sc-swirl-search:focus:not(:focus-visible){outline:none}.search__input.sc-swirl-search:focus-visible{outline-color:var(--s-focus-default)}.search__input.sc-swirl-search::-moz-placeholder{color:var(--s-text-subdued)}.search__input.sc-swirl-search::placeholder{color:var(--s-text-subdued)}.search__input.sc-swirl-search::-webkit-search-decoration,.search__input.sc-swirl-search::-webkit-search-cancel-button,.search__input.sc-swirl-search::-webkit-search-results-button,.search__input.sc-swirl-search::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.search__input.sc-swirl-search:not(:-moz-placeholder-shown)+.search__clear-button.sc-swirl-search{display:inline-flex}.search__input.sc-swirl-search:not(:placeholder-shown)+.search__clear-button.sc-swirl-search{display:inline-flex}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.search__input.sc-swirl-search{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);padding-left:calc(var(--s-space-8) + 1.5rem + var(--s-space-8))}}.search__clear-button.sc-swirl-search{position:absolute;top:50%;right:var(--s-space-12);display:none;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer;transform:translateY(-50%)}", n = class {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
i(this, e), this.inputBlur = r(this, "inputBlur", 7), this.inputFocus = r(this, "inputFocus", 7), this.valueChange = r(this, "valueChange", 7), this.clearButtonLabel = "Clear search term", this.placeholder = "Search \u2026", this.desktopMediaQuery = o(), this.desktopMediaQueryHandler = (s) => {
|
|
10
|
+
this.forceIconProps(s.matches);
|
|
11
|
+
}, this.clear = () => {
|
|
12
|
+
this.input.value = "", this.input.focus();
|
|
13
|
+
}, this.onBlur = (s) => {
|
|
14
|
+
this.inputBlur.emit(s);
|
|
15
|
+
}, this.onChange = (s) => {
|
|
16
|
+
this.valueChange.emit(s.target.value);
|
|
17
|
+
}, this.onFocus = (s) => {
|
|
18
|
+
this.inputFocus.emit(s);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
componentDidLoad() {
|
|
22
|
+
var e, s;
|
|
23
|
+
this.forceIconProps(this.desktopMediaQuery.matches), (s = (e = this.desktopMediaQuery).addEventListener) === null || s === void 0 || s.call(e, "change", this.desktopMediaQueryHandler);
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
var e, s;
|
|
27
|
+
(s = (e = this.desktopMediaQuery).removeEventListener) === null || s === void 0 || s.call(e, "change", this.desktopMediaQueryHandler);
|
|
28
|
+
}
|
|
29
|
+
forceIconProps(e) {
|
|
30
|
+
if (!Boolean(this.iconEl))
|
|
31
|
+
return;
|
|
32
|
+
const s = this.iconEl.children[0];
|
|
33
|
+
s == null || s.setAttribute("size", e ? "20" : "24");
|
|
34
|
+
}
|
|
35
|
+
onKeyDown(e) {
|
|
36
|
+
(e.code === "KeyK" || e.code === "Slash") && (e.ctrlKey || e.metaKey) && this.input.focus();
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
const e = c("search", {
|
|
40
|
+
"search--disabled": this.disabled
|
|
41
|
+
});
|
|
42
|
+
return a(t, null, a("span", { class: e, ref: (s) => this.iconEl = s }, a("swirl-icon-search", { class: "search__icon" }), a("input", { "aria-disabled": this.disabled ? "true" : void 0, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, placeholder: this.placeholder, ref: (s) => this.input = s, type: "search", value: this.value }), !this.disabled && a("button", { "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, a("swirl-icon-cancel", null))));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
n.style = l;
|
|
46
|
+
export {
|
|
47
|
+
n as swirl_search
|
|
48
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { r as n, c as r, h as e, H as c, g as d } from "./index.149af511.js";
|
|
2
|
+
import { c as h } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { q as p } from "./utils-33d31b58.1488fcfe.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
|
+
const u = ".sc-swirl-select-h{display:block;width:100%}.sc-swirl-select-h *.sc-swirl-select{box-sizing:border-box}.select.sc-swirl-select{position:relative;display:flex;width:100%}.select--disabled.sc-swirl-select .select__label.sc-swirl-select{color:var(--s-text-disabled)}.select--disabled.sc-swirl-select .select__indicator.sc-swirl-select{color:var(--s-icon-disabled)}.select--inline.sc-swirl-select .select__indicator.sc-swirl-select{top:0}.select__label.sc-swirl-select{display:block;overflow:hidden;width:100%;height:1.375rem;margin:0;padding:0;padding-right:calc(1.5rem + var(--s-space-8));border:none;background-color:transparent;font:inherit;line-height:var(--s-line-height-base);text-align:left;white-space:nowrap;text-overflow:ellipsis;cursor:default}.select__label.sc-swirl-select:focus{outline:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.select__label.sc-swirl-select{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.select__indicator.sc-swirl-select{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;color:var(--s-icon-default)}", v = class {
|
|
8
|
+
constructor(i) {
|
|
9
|
+
n(this, i), this.valueChange = r(this, "valueChange", 7), this.options = [], this.select = (s) => {
|
|
10
|
+
this.value = s.detail, this.valueChange.emit(this.value), this.multiSelect || this.popover.close();
|
|
11
|
+
}, this.onSlotChange = () => {
|
|
12
|
+
this.updateOptions();
|
|
13
|
+
}, this.onOpen = () => {
|
|
14
|
+
this.open = !0;
|
|
15
|
+
}, this.onClose = () => {
|
|
16
|
+
this.open = !1;
|
|
17
|
+
}, this.onKeyDown = (s) => {
|
|
18
|
+
(s.code === "Space" || s.code === "Enter") && (s.preventDefault(), this.popover.open());
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
queueMicrotask(() => {
|
|
23
|
+
this.updateOptions();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
onWindowFocusIn(i) {
|
|
27
|
+
i.target === this.el.querySelector("input") && i.stopImmediatePropagation();
|
|
28
|
+
}
|
|
29
|
+
updateOptions() {
|
|
30
|
+
this.options = p(this.el, "swirl-option-list-item");
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const i = Boolean(this.value) ? this.value.map((t) => {
|
|
34
|
+
var l;
|
|
35
|
+
return (l = this.options.find((a) => a.value === t)) === null || l === void 0 ? void 0 : l.label;
|
|
36
|
+
}).join(", ") : "", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, o = h("select", {
|
|
37
|
+
"select--disabled": this.disabled,
|
|
38
|
+
"select--inline": this.inline
|
|
39
|
+
});
|
|
40
|
+
return e(c, { onKeyDown: this.onKeyDown }, e("div", { class: o }, e("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-invalid": s, class: "select__label", disabled: this.disabled, id: "trigger", readOnly: !0, type: "text", value: i }), e("span", { class: "select__indicator" }, this.open ? e("swirl-icon-expand-less", null) : e("swirl-icon-expand-more", null)), e("swirl-popover", { animation: "scale-in-y", class: "select__popover", enableFlip: !1, label: this.label, offset: [16, -16], onPopoverClose: this.onClose, onPopoverOpen: this.onOpen, popoverId: "select-options", ref: (t) => this.popover = t, trigger: "trigger", useContainerWidth: "swirl-form-control" }, e("swirl-option-list", { onValueChange: this.select, multiSelect: this.multiSelect, value: this.value }, e("slot", { onSlotchange: this.onSlotChange })))));
|
|
41
|
+
}
|
|
42
|
+
get el() {
|
|
43
|
+
return d(this);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
v.style = u;
|
|
47
|
+
export {
|
|
48
|
+
v as swirl_select
|
|
49
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as a, h as r, H as t } from "./index.149af511.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const o = ":host{display:flex;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8);align-items:center}:host *{box-sizing:border-box}.separator__line{display:block;width:100%;height:var(--s-border-width-default);background-color:var(--s-border-default)}", e = class {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
a(this, s);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return r(t, { class: "separator", role: "separator" }, r("span", { class: "separator__line" }));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
e.style = o;
|
|
13
|
+
export {
|
|
14
|
+
e as swirl_separator
|
|
15
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as i, h as s, H as e } from "./index.
|
|
2
|
-
import { c as n } from "./index-
|
|
1
|
+
import { r as i, h as s, H as e } from "./index.149af511.js";
|
|
2
|
+
import { c as n } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
6
|
const c = ":host{display:block;width:100%}:host *{box-sizing:border-box}.stack{display:flex;width:100%;max-width:100%}.stack ::slotted(*){min-width:0;max-width:100%;flex-basis:auto;flex-grow:0;flex-shrink:1}.stack--align-start{align-items:flex-start}.stack--align-center{align-items:center}.stack--align-end{align-items:flex-end}.stack--align-stretch{align-items:stretch}.stack--justify-start{justify-content:flex-start}.stack--justify-center{justify-content:center}.stack--justify-end{justify-content:flex-end}.stack--justify-space-between{justify-content:space-between}.stack--justify-space-around{justify-content:space-around}.stack--justify-space-evenly{justify-content:space-evenly}.stack--justify-stretch{justify-content:stretch}.stack--justify-stretch ::slotted(*){flex-grow:1}.stack--orientation-vertical{flex-direction:column}.stack--orientation-horizontal{flex-direction:row}.stack--wrap{flex-wrap:wrap}", r = class {
|
|
7
7
|
constructor(t) {
|
|
8
8
|
i(this, t), this.align = "start", this.as = "div", this.justify = "start", this.orientation = "vertical", this.spacing = "0", this.wrap = !1;
|
|
@@ -14,5 +14,5 @@ const c = ":host{display:block;width:100%}:host *{box-sizing:border-box}.stack{d
|
|
|
14
14
|
};
|
|
15
15
|
r.style = c;
|
|
16
16
|
export {
|
|
17
|
-
r as
|
|
17
|
+
r as swirl_stack
|
|
18
18
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r as h, c as n, h as e, H as a, g as o } from "./index.149af511.js";
|
|
2
|
+
import { c as l } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const d = `.sc-swirl-switch-h{display:inline-flex}.sc-swirl-switch-h *.sc-swirl-switch{box-sizing:border-box}.switch.sc-swirl-switch{display:inline-flex;align-items:center;touch-action:none}.switch.sc-swirl-switch:focus-within .switch__control.sc-swirl-switch{box-shadow:0 0 0 0.0625rem var(--s-background-default),
|
|
7
|
+
0 0 0 0.1875rem var(--s-focus-default)}.switch--size-m.sc-swirl-switch .switch__control.sc-swirl-switch{width:2.75rem;height:1.5rem;border-radius:calc(1.5rem / 2)}.switch--size-m.sc-swirl-switch .switch__thumb.sc-swirl-switch{width:1.25rem;height:1.25rem}.switch--on.switch--size-m.sc-swirl-switch .switch__thumb.sc-swirl-switch{left:calc(100% - 1.25rem - var(--s-space-2))}.switch--on.sc-swirl-switch .switch__control.sc-swirl-switch{background-color:var(--s-interactive-primary-default)}.switch--on.sc-swirl-switch .switch__thumb.sc-swirl-switch{left:calc(100% - 0.875rem - var(--s-space-2))}.switch--disabled.sc-swirl-switch .switch__control.sc-swirl-switch{background-color:var(--s-interactive-primary-disabled);cursor:default}.switch--disabled.sc-swirl-switch .switch__thumb.sc-swirl-switch{background-color:var(--s-interactive-neutral-default)}.switch--disabled.sc-swirl-switch .switch__label.sc-swirl-switch{color:var(--s-text-disabled)}.switch__control.sc-swirl-switch{position:relative;width:1.875rem;height:1.125rem;flex-shrink:0;border-radius:calc(1.125rem / 2);background-color:var(--s-interactive-primary-disabled);cursor:pointer;transition:background-color 0.2s}@media (prefers-reduced-motion){.switch__control.sc-swirl-switch{transition:none}}.switch__thumb.sc-swirl-switch{position:absolute;top:var(--s-space-2);left:var(--s-space-2);width:0.875rem;height:0.875rem;border-radius:50%;background-color:var(--s-surface-default);transition:left 0.2s;pointer-events:none}@media (prefers-reduced-motion){.switch__thumb.sc-swirl-switch{transition:none}}.switch__label.sc-swirl-switch{position:relative;z-index:1;margin-left:var(--s-space-12);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base)}`, w = class {
|
|
8
|
+
constructor(c) {
|
|
9
|
+
h(this, c), this.valueChange = n(this, "valueChange", 7), this.checked = !1, this.disabled = !1, this.size = "m", this.dragging = !1, this.recentlyDragged = !1, this.onChange = () => {
|
|
10
|
+
if (!this.dragging) {
|
|
11
|
+
if (this.recentlyDragged) {
|
|
12
|
+
this.recentlyDragged = !1;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.checked = !this.checked, this.valueChange.emit(this.checked);
|
|
16
|
+
}
|
|
17
|
+
}, this.onStartDrag = () => {
|
|
18
|
+
this.disabled || (this.dragging = !0, this.thumb.style.transition = "none");
|
|
19
|
+
}, this.onEndDrag = () => {
|
|
20
|
+
if (!this.disabled) {
|
|
21
|
+
if (this.recentlyDragged) {
|
|
22
|
+
const i = this.control.getBoundingClientRect(), r = this.thumb.getBoundingClientRect(), s = this.thumb.offsetLeft + r.width / 2 > i.width / 2;
|
|
23
|
+
this.checked !== s && (this.checked = s, this.valueChange.emit(s));
|
|
24
|
+
}
|
|
25
|
+
this.thumb.style.left = "", this.thumb.style.transition = "", this.dragging = !1, setTimeout(() => {
|
|
26
|
+
this.recentlyDragged = !1;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}, this.onDrag = (i) => {
|
|
30
|
+
if (!this.dragging)
|
|
31
|
+
return;
|
|
32
|
+
this.recentlyDragged = !0;
|
|
33
|
+
const r = this.control.getBoundingClientRect(), s = this.thumb.getBoundingClientRect();
|
|
34
|
+
let t = Math.round(i.offsetX - s.width / 2);
|
|
35
|
+
t < 0 && (t = 0), t > Math.round(r.width - s.width) && (t = Math.round(r.width - s.width)), this.thumb.style.left = `${t}px`;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
onWindowPointerUp() {
|
|
39
|
+
this.onEndDrag();
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const c = !this.checked, i = this.checked, r = i ? "true" : "false", s = l("switch", `switch--size-${this.size}`, {
|
|
43
|
+
"switch--off": c,
|
|
44
|
+
"switch--on": i,
|
|
45
|
+
"switch--disabled": this.disabled
|
|
46
|
+
});
|
|
47
|
+
return e(a, null, e("label", { class: s, htmlFor: this.inputId }, e("span", { class: "switch__control", onPointerDown: this.onStartDrag, onPointerMove: this.onDrag, onPointerUp: this.onEndDrag, ref: (t) => this.control = t }, e("swirl-visually-hidden", null, e("input", { "aria-checked": r, checked: i, class: "switch__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, role: "switch", type: "checkbox", value: this.value })), e("span", { "aria-hidden": "true", class: "switch__thumb", ref: (t) => this.thumb = t })), this.label && e("span", { class: "switch__label" }, this.label)));
|
|
48
|
+
}
|
|
49
|
+
get el() {
|
|
50
|
+
return o(this);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
w.style = d;
|
|
54
|
+
export {
|
|
55
|
+
w as swirl_switch
|
|
56
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as a, h as s, H as i } from "./index.149af511.js";
|
|
2
|
+
import { c as r } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const o = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{display:none;width:100%;padding:var(--s-space-8)}.tab--active{display:block}", e = class {
|
|
7
|
+
constructor(t) {
|
|
8
|
+
a(this, t);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
const t = r("tab", { "tab--active": this.active });
|
|
12
|
+
return s(i, { "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 }, s("div", { class: t }, s("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
e.style = o;
|
|
16
|
+
export {
|
|
17
|
+
e as swirl_tab
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as a, h as s, H as e } from "./index.149af511.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const t = ":host{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-background-default);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", l = class {
|
|
5
|
+
constructor(r) {
|
|
6
|
+
a(this, r);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return s(e, { class: "table-cell", role: "cell" }, s("slot", null));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
l.style = t;
|
|
13
|
+
export {
|
|
14
|
+
l as swirl_table_cell
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { r, h as t, H as e, g as i } from "./index.149af511.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const o = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padding-right:var(--s-space-16);padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-top:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);background-color:var(--s-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;letter-spacing:var(--s-letter-spacing-tighter);text-overflow:ellipsis;transition:box-shadow 0.15s;gap:var(--s-space-8)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host(.table-column--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-column--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}.table-column__sort-indicator{display:inline-flex;width:1.25rem;height:1.25rem;flex-grow:0;flex-shrink:0}", a = class {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
r(this, s), this.minWidth = "fit-content";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const s = {
|
|
10
|
+
flex: Boolean(this.width) ? `0 0 ${this.width}` : "",
|
|
11
|
+
maxWidth: this.maxWidth || "",
|
|
12
|
+
minWidth: this.minWidth || ""
|
|
13
|
+
};
|
|
14
|
+
return t(e, { "aria-sort": this.sort, class: "table-column", role: "columnheader", style: s }, t("span", null, t("slot", null)), this.sortable && t("span", { class: "table-column__sort-indicator" }, this.sort === "ascending" && t("swirl-icon-arrow-upward", { "aria-hidden": "true", size: 20 }), this.sort === "descending" && t("swirl-icon-arrow-downward", { "aria-hidden": "true", size: 20 }), !Boolean(this.sort) && " "));
|
|
15
|
+
}
|
|
16
|
+
get el() {
|
|
17
|
+
return i(this);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
a.style = o;
|
|
21
|
+
export {
|
|
22
|
+
a as swirl_table_column
|
|
23
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as o, h as r, H as s, g as t } from "./index.149af511.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
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 {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
o(this, e);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.el.querySelectorAll("swirl-table-row").length;
|
|
10
|
+
return r(s, { class: "table-row-group", role: "rowgroup" }, r("div", { class: "table-row-group__header-row", role: "row" }, r("span", { "aria-rowspan": e, class: "table-row-group__label", role: "rowheader" }, this.label)), r("slot", null));
|
|
11
|
+
}
|
|
12
|
+
get el() {
|
|
13
|
+
return t(this);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
l.style = a;
|
|
17
|
+
export {
|
|
18
|
+
l as swirl_table_row_group
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r, h as o, H as s } from "./index.149af511.js";
|
|
2
|
+
import { c as e } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const l = ":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}", a = class {
|
|
7
|
+
constructor(t) {
|
|
8
|
+
r(this, t);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
const t = e("table-row", {
|
|
12
|
+
"table-row--highlighted": this.highlighted
|
|
13
|
+
});
|
|
14
|
+
return o(s, { "aria-rowindex": this.index, class: t, role: "row" }, o("slot", null));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
a.style = l;
|
|
18
|
+
export {
|
|
19
|
+
a as swirl_table_row
|
|
20
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { r as g, h as i, H as _, g as S } from "./index.149af511.js";
|
|
2
|
+
import { i as v } from "./utils-33d31b58.1488fcfe.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
var C = function(e) {
|
|
6
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = void 0, r = void 0, c = void 0, o = [];
|
|
7
|
+
return function() {
|
|
8
|
+
var w = x(a), h = new Date().getTime(), y = !n || h - n > w;
|
|
9
|
+
n = h;
|
|
10
|
+
for (var l = arguments.length, u = Array(l), b = 0; b < l; b++)
|
|
11
|
+
u[b] = arguments[b];
|
|
12
|
+
if (y && s.leading)
|
|
13
|
+
return s.accumulate ? Promise.resolve(e.call(this, [u])).then(function(f) {
|
|
14
|
+
return f[0];
|
|
15
|
+
}) : Promise.resolve(e.call.apply(e, [this].concat(u)));
|
|
16
|
+
if (r ? clearTimeout(c) : r = L(), o.push(u), c = setTimeout(m.bind(this), w), s.accumulate) {
|
|
17
|
+
var p = o.length - 1;
|
|
18
|
+
return r.promise.then(function(f) {
|
|
19
|
+
return f[p];
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return r.promise;
|
|
23
|
+
};
|
|
24
|
+
function m() {
|
|
25
|
+
var d = r;
|
|
26
|
+
clearTimeout(c), Promise.resolve(s.accumulate ? e.call(this, o) : e.apply(this, o[o.length - 1])).then(d.resolve, d.reject), o = [], r = null;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function x(t) {
|
|
30
|
+
return typeof t == "function" ? t() : t;
|
|
31
|
+
}
|
|
32
|
+
function L() {
|
|
33
|
+
var t = {};
|
|
34
|
+
return t.promise = new Promise(function(e, a) {
|
|
35
|
+
t.resolve = e, t.reject = a;
|
|
36
|
+
}), t;
|
|
37
|
+
}
|
|
38
|
+
const R = `: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),
|
|
39
|
+
-0.0625rem 0 0 0 var(--s-border-default),
|
|
40
|
+
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
41
|
+
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__container--scrollable:not(.table__container--scrolled-to-end){--swirl-table-sticky-left-shadow:0.0625rem 0 0 0 var(--s-border-default),
|
|
42
|
+
-0.0625rem 0 0 0 var(--s-border-default),
|
|
43
|
+
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
44
|
+
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header ::slotted(*){display:flex}.table__empty-row{display:flex}.table__empty-row-cell{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;border-right:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);border-left:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.table__empty-row-cell>*{flex-grow:1}`, T = class {
|
|
45
|
+
constructor(t) {
|
|
46
|
+
g(this, t), this.emptyStateLabel = "No results found.", this.updateLayout = C(async () => {
|
|
47
|
+
await this.resetEmptyRowStyles(), await this.resetRowGroupStyles(), await this.resetCellStyles(), await this.resetColumnStyles(), await this.layoutEmptyRow(), await this.layoutRowGroups(), await this.layOutColumns(), this.layOutCells();
|
|
48
|
+
}, 100), this.onScroll = () => {
|
|
49
|
+
this.updateScrolledState();
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
async componentDidRender() {
|
|
53
|
+
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
54
|
+
}
|
|
55
|
+
async onWindowResize() {
|
|
56
|
+
await this.updateLayout(), this.updateScrolledState();
|
|
57
|
+
}
|
|
58
|
+
updateScrolledState() {
|
|
59
|
+
const t = v(), e = this.container.scrollWidth > this.container.clientWidth, a = this.container.scrollLeft > 0, s = Math.ceil(this.container.clientWidth + this.container.scrollLeft) >= Math.floor(this.container.scrollWidth);
|
|
60
|
+
e !== this.scrollable && (e && !t ? this.container.classList.add("table__container--scrollable") : this.container.classList.remove("table__container--scrollable")), a !== this.scrolled && (a && !t ? this.container.classList.add("table__container--scrolled") : this.container.classList.remove("table__container--scrolled")), s !== this.scrolledToEnd && (s && !t ? this.container.classList.add("table__container--scrolled-to-end") : this.container.classList.remove("table__container--scrolled-to-end"));
|
|
61
|
+
}
|
|
62
|
+
getColumns() {
|
|
63
|
+
return Array.from(this.el.querySelectorAll("swirl-table-column"));
|
|
64
|
+
}
|
|
65
|
+
getCells() {
|
|
66
|
+
return Array.from(this.el.querySelectorAll("swirl-table-cell"));
|
|
67
|
+
}
|
|
68
|
+
async resetEmptyRowStyles() {
|
|
69
|
+
const t = this.el.shadowRoot.querySelector(".table__empty-row");
|
|
70
|
+
!Boolean(t) || (t.style.width = "", await new Promise((e) => setTimeout(e)));
|
|
71
|
+
}
|
|
72
|
+
async resetRowGroupStyles() {
|
|
73
|
+
Array.from(this.el.querySelectorAll("swirl-table-row-group")).forEach((e) => {
|
|
74
|
+
e.shadowRoot.querySelector(".table-row-group__header-row").style.width = "";
|
|
75
|
+
}), await new Promise((e) => setTimeout(e));
|
|
76
|
+
}
|
|
77
|
+
async resetColumnStyles() {
|
|
78
|
+
this.getColumns().forEach((e) => {
|
|
79
|
+
e.classList.remove("table-column--has-shadow"), e.style.right = "", e.style.left = "", e.style.position = "", e.style.zIndex = "";
|
|
80
|
+
}), await new Promise((e) => setTimeout(e));
|
|
81
|
+
}
|
|
82
|
+
async resetCellStyles() {
|
|
83
|
+
this.getCells().forEach((e) => {
|
|
84
|
+
e.classList.remove("table-cell--has-shadow"), e.style.flex = "", e.style.left = "", e.style.right = "", e.style.position = "", e.style.zIndex = "";
|
|
85
|
+
}), await new Promise((e) => setTimeout(e));
|
|
86
|
+
}
|
|
87
|
+
async layoutEmptyRow() {
|
|
88
|
+
const t = this.el.shadowRoot.querySelector(".table__empty-row");
|
|
89
|
+
if (!Boolean(t))
|
|
90
|
+
return;
|
|
91
|
+
const e = `${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;
|
|
92
|
+
t.style.width = e;
|
|
93
|
+
}
|
|
94
|
+
async layoutRowGroups() {
|
|
95
|
+
const t = Array.from(this.el.querySelectorAll("swirl-table-row-group")), e = `${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;
|
|
96
|
+
t.forEach((a) => {
|
|
97
|
+
a.shadowRoot.querySelector(".table-row-group__header-row").style.width = e;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
async layOutColumns() {
|
|
101
|
+
const t = this.getColumns(), a = this.container.clientWidth;
|
|
102
|
+
t.forEach((s, n) => {
|
|
103
|
+
var r, c;
|
|
104
|
+
if (!s.sticky || v())
|
|
105
|
+
return;
|
|
106
|
+
const o = n <= Math.floor(t.length / 2), m = (r = t[n + 1]) === null || r === void 0 ? void 0 : r.sticky, d = (c = t[n - 1]) === null || c === void 0 ? void 0 : c.sticky, w = o && m;
|
|
107
|
+
s.style.zIndex = w ? "1" : "", o && !m || !o && !d ? s.classList.add(o ? "table-column--has-shadow-right" : "table-column--has-shadow-left") : (s.classList.remove("table-column--has-shadow-right"), s.classList.remove("table-column--has-shadow-left"));
|
|
108
|
+
const y = o ? s.offsetLeft : Math.max(0, a - (s.offsetLeft + s.getBoundingClientRect().width));
|
|
109
|
+
s.style.position = "sticky", o ? s.style.left = `${y}px` : s.style.right = `${y}px`;
|
|
110
|
+
}), await new Promise((s) => setTimeout(s));
|
|
111
|
+
}
|
|
112
|
+
layOutCells() {
|
|
113
|
+
const t = this.getColumns(), e = this.getCells();
|
|
114
|
+
t.forEach((a, s) => {
|
|
115
|
+
var n, r;
|
|
116
|
+
const c = e.filter((l, u) => (s - u) % t.length === 0), o = s <= Math.floor(t.length / 2), m = o ? window.getComputedStyle(a).left : window.getComputedStyle(a).right, d = (n = t[s + 1]) === null || n === void 0 ? void 0 : n.sticky, w = (r = t[s - 1]) === null || r === void 0 ? void 0 : r.sticky, h = a.sticky, y = a.width || `${a.getBoundingClientRect().width}px`;
|
|
117
|
+
c.forEach((l) => {
|
|
118
|
+
const u = h && o, b = h && !o, p = o && d;
|
|
119
|
+
if (l.style.flex = Boolean(y) ? `0 0 ${y}` : "", v()) {
|
|
120
|
+
l.classList.remove("table-cell--has-shadow"), l.style.left = "", l.style.right = "", l.style.position = "", l.style.zIndex = "";
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
l.style.left = u ? m : "", l.style.right = b ? m : "", l.style.position = h ? "sticky" : "", l.style.zIndex = p ? "1" : "", h && (o && !d || !o && !w) ? l.classList.add(o ? "table-cell--has-shadow-right" : "table-cell--has-shadow-left") : (l.classList.remove("table-cell--has-shadow-right"), l.classList.remove("table-cell--has-shadow-left"));
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
updateEmptyState() {
|
|
128
|
+
const t = this.el.querySelector('[slot="rows"]');
|
|
129
|
+
this.empty = !Boolean(t) || t.children.length === 0;
|
|
130
|
+
}
|
|
131
|
+
render() {
|
|
132
|
+
return i(_, null, i("div", { class: "table" }, i("div", { class: "table__container", onScroll: this.onScroll, ref: (t) => this.container = t }, i("div", { "aria-describedby": Boolean(this.caption) ? "caption" : void 0, "aria-label": this.label, role: "table", class: "table__table" }, this.caption && i("swirl-visually-hidden", null, i("div", { id: "caption" }, this.caption)), i("div", { role: "rowgroup" }, i("div", { class: "table__header", role: "row" }, i("slot", { name: "columns" }))), i("div", { class: "table__body" }, i("slot", { name: "rows" }), this.empty && i("div", { class: "table__empty-row", role: "row" }, i("div", { "aria-colspan": this.getColumns().length, class: "table__empty-row-cell", role: "cell" }, i("swirl-text", { align: "center", size: "sm" }, this.emptyStateLabel))))))));
|
|
133
|
+
}
|
|
134
|
+
get el() {
|
|
135
|
+
return S(this);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
T.style = R;
|
|
139
|
+
export {
|
|
140
|
+
T as swirl_table
|
|
141
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as i, c as r, h as e, H as o, g as b } from "./index.
|
|
2
|
-
import { c as
|
|
1
|
+
import { r as i, c as r, h as e, H as o, g as b } from "./index.149af511.js";
|
|
2
|
+
import { c as n } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-
|
|
6
|
-
const
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const l = '.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%}.tabs__tab-bar.sc-swirl-tabs{position:relative;display:flex;width:100%;justify-content:flex-start;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.tabs__tab.sc-swirl-tabs{position:relative;display:block;min-width:0;margin:0;padding:var(--s-space-4) var(--s-space-8);border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);cursor:pointer}.tabs__tab.sc-swirl-tabs:focus{outline:none}.tabs__tab.sc-swirl-tabs:focus-visible .tabs__tab-label.sc-swirl-tabs{border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.125rem var(--s-focus-default)}.tabs__tab.sc-swirl-tabs:not(.tabs__tab--active):hover:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-default);content:"";transform:translateX(-50%);pointer-events:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tabs__tab.sc-swirl-tabs{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tabs__tab-label.sc-swirl-tabs{display:block;overflow:hidden;width:100%;padding:var(--s-space-8) var(--s-space-8);text-align:center;white-space:nowrap;text-overflow:ellipsis}.tabs__tab--active.sc-swirl-tabs{color:var(--s-text-highlight)}.tabs__tab--active.sc-swirl-tabs:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-highlight);content:"";transform:translateX(-50%);pointer-events:none}', c = class {
|
|
7
7
|
constructor(t) {
|
|
8
8
|
i(this, t), this.tabActivated = r(this, "tabActivated", 7), this.tabs = [], this.onKeyDown = (a) => {
|
|
9
9
|
a.code === "ArrowLeft" ? (a.preventDefault(), this.activatePreviousTab()) : a.code === "ArrowRight" && (a.preventDefault(), this.activateNextTab());
|
|
@@ -34,14 +34,14 @@ const n = '.sc-flip-tabs-h{display:block;width:100%}.sc-flip-tabs-h *.sc-flip-ta
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
collectTabs() {
|
|
37
|
-
if (this.tabs = Array.from(this.el.querySelectorAll("
|
|
37
|
+
if (this.tabs = Array.from(this.el.querySelectorAll("swirl-tab")), this.tabs.length === 0)
|
|
38
38
|
return;
|
|
39
39
|
const t = this.tabs.find((a) => a.tabId === this.initialTab);
|
|
40
40
|
this.activateTab(Boolean(t) ? t.tabId : this.tabs[0].tabId);
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
return e(o, null, e("div", { class: "tabs" }, e("div", { "aria-label": this.label, class: "tabs__tab-bar", onKeyDown: this.onKeyDown, role: "tablist" }, this.tabs.map((t) => {
|
|
44
|
-
const a = t.tabId === this.activeTab, s =
|
|
44
|
+
const a = t.tabId === this.activeTab, s = n("tabs__tab", {
|
|
45
45
|
"tabs__tab--active": a
|
|
46
46
|
});
|
|
47
47
|
return e("button", {
|
|
@@ -61,7 +61,7 @@ const n = '.sc-flip-tabs-h{display:block;width:100%}.sc-flip-tabs-h *.sc-flip-ta
|
|
|
61
61
|
return b(this);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
c.style =
|
|
64
|
+
c.style = l;
|
|
65
65
|
export {
|
|
66
|
-
c as
|
|
66
|
+
c as swirl_tabs
|
|
67
67
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as s, c as e, h as t, H as n } from "./index.149af511.js";
|
|
2
|
+
import { c as i } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tag{display:inline-flex;padding:var(--s-space-2) var(--s-space-8);align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--s-surface-neutral-subdued);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;gap:var(--s-space-4)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--icon-info)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--icon-critical)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--icon-warning)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--icon-success)}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer}.tag__removal-button:focus:not(:focus-visible){outline:none}.tag__removal-button:focus-visible{outline-color:var(--s-focus-default)}", l = class {
|
|
7
|
+
constructor(o) {
|
|
8
|
+
s(this, o), this.remove = e(this, "remove", 7), this.intent = "default", this.removalButtonLabel = "Remove", this.onRemove = (r) => {
|
|
9
|
+
var a;
|
|
10
|
+
(a = this.remove) === null || a === void 0 || a.emit(r);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const o = i("tag", `tag--intent-${this.intent}`);
|
|
15
|
+
return t(n, null, t("span", { class: o }, this.label, this.removable && t("button", { "aria-label": this.removalButtonLabel, class: "tag__removal-button", onClick: this.onRemove, type: "button" }, t("swirl-icon-close", { size: 16 }))));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
l.style = c;
|
|
19
|
+
export {
|
|
20
|
+
l as swirl_tag
|
|
21
|
+
};
|