@getflip/swirl-components-react 0.10.0 → 0.11.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.7f94c2d2.js +58 -0
- package/dist/{index-6d2e18c6.289636d4.js → index-c3028f7d.557956d2.js} +0 -0
- package/dist/index.9489626d.js +1393 -0
- package/dist/stencil-generated/index.d.ts +168 -157
- package/dist/swirl-action-list-item.entry.447b2688.js +34 -0
- package/dist/swirl-action-list-section.entry.e84808c9.js +15 -0
- package/dist/{flip-action-list.entry.7bdcff2f.js → swirl-action-list.entry.2fb802dc.js} +3 -3
- package/dist/{flip-app-layout_5.entry.6e395cd4.js → swirl-app-layout_5.entry.875542b9.js} +27 -23
- package/dist/swirl-autocomplete.entry.7be53f33.js +70 -0
- package/dist/{flip-avatar-group.entry.4192d45c.js → swirl-avatar-group.entry.38bafbf0.js} +7 -7
- package/dist/{flip-avatar.entry.f5cb1fd9.js → swirl-avatar.entry.6107d926.js} +7 -7
- package/dist/swirl-badge.entry.1f4d89cf.js +20 -0
- package/dist/swirl-banner.entry.2d29edfc.js +49 -0
- package/dist/swirl-button-group.entry.8ce93c3c.js +20 -0
- package/dist/swirl-button.entry.42b57f80.js +52 -0
- package/dist/{flip-card.entry.66635d0b.js → swirl-card.entry.a09d5cdf.js} +3 -3
- package/dist/swirl-checkbox.entry.58064458.js +30 -0
- package/dist/{flip-chip.entry.2d504566.js → swirl-chip.entry.b6b676d6.js} +22 -14
- package/dist/swirl-components-react.js +170 -159
- package/dist/swirl-components-react.umd.cjs +69 -46
- package/dist/{flip-console-layout.entry.0b474308.js → swirl-console-layout.entry.88cca8db.js} +21 -21
- package/dist/{flip-date-input.entry.462f9e2d.js → swirl-date-input.entry.1ff3f34d.js} +680 -673
- package/dist/{flip-date-picker_2.entry.cbbcb306.js → swirl-date-picker_2.entry.e9905308.js} +79 -77
- package/dist/{flip-description-list-item.entry.2ea98099.js → swirl-description-list-item.entry.e5e7327a.js} +18 -3
- package/dist/{flip-description-list.entry.c08605e6.js → swirl-description-list.entry.b451e1b2.js} +5 -5
- package/dist/swirl-dialog.entry.27d08ab3.js +45 -0
- package/dist/swirl-file-uploader.entry.6c075751.js +32 -0
- package/dist/{flip-file-viewer_7.entry.8d39ace2.js → swirl-file-viewer_7.entry.2d664fd5.js} +19 -19
- package/dist/swirl-form-control.entry.89293c5d.js +65 -0
- package/dist/swirl-form-group.entry.f58b5fda.js +18 -0
- package/dist/swirl-heading.entry.1761ccaf.js +18 -0
- package/dist/swirl-icon-add-photo.entry.2be32855.js +18 -0
- package/dist/swirl-icon-add_4.entry.54bb7e89.js +51 -0
- package/dist/swirl-icon-admin-panel-settings.entry.a43bcc7d.js +18 -0
- package/dist/swirl-icon-arrow-back.entry.ee4ddf1e.js +18 -0
- package/dist/swirl-icon-arrow-downward_2.entry.74231d7a.js +29 -0
- package/dist/swirl-icon-arrow-forward.entry.a895e898.js +18 -0
- package/dist/swirl-icon-arrow-left_3.entry.6ea8dad5.js +40 -0
- package/dist/swirl-icon-arrow-right-small.entry.daf39424.js +18 -0
- package/dist/swirl-icon-attachment.entry.2cb8c35f.js +18 -0
- package/dist/swirl-icon-block.entry.0d7f0e2b.js +18 -0
- package/dist/swirl-icon-cancel_4.entry.2943f0c0.js +51 -0
- package/dist/swirl-icon-chat-bubble.entry.66624624.js +18 -0
- package/dist/swirl-icon-chats-filled.entry.83e0eeb7.js +18 -0
- package/dist/swirl-icon-chats-outlined.entry.f768aca8.js +18 -0
- package/dist/swirl-icon-check-circle.entry.03a596c7.js +18 -0
- package/dist/swirl-icon-check-small_3.entry.b2362b00.js +153 -0
- package/dist/swirl-icon-check-strong.entry.88cfb7b3.js +18 -0
- package/dist/swirl-icon-check.entry.360c5b8c.js +18 -0
- package/dist/swirl-icon-chevron-left.entry.d6f5077d.js +18 -0
- package/dist/swirl-icon-chevron-right.entry.4cbdaed5.js +18 -0
- package/dist/swirl-icon-close-small.entry.d223e192.js +18 -0
- package/dist/swirl-icon-close.entry.eee59783.js +18 -0
- package/dist/swirl-icon-cloud-upload.entry.b50d30c3.js +18 -0
- package/dist/swirl-icon-column.entry.07e869e3.js +18 -0
- package/dist/swirl-icon-comment.entry.221fe61a.js +18 -0
- package/dist/swirl-icon-copy.entry.d113e5bb.js +18 -0
- package/dist/swirl-icon-date-range.entry.a1eb0554.js +18 -0
- package/dist/swirl-icon-delete.entry.ebcf7073.js +18 -0
- package/dist/swirl-icon-description.entry.fb0d88a1.js +18 -0
- package/dist/swirl-icon-edit.entry.c6cf867f.js +18 -0
- package/dist/swirl-icon-emoji-mood.entry.bf9ee6c2.js +18 -0
- package/dist/swirl-icon-emoji-satisfied.entry.df8c1d60.js +18 -0
- package/dist/swirl-icon-error_3.entry.c21fbb54.js +58 -0
- package/dist/swirl-icon-expand-more.entry.bbde4949.js +18 -0
- package/dist/swirl-icon-file.entry.7ab04321.js +18 -0
- package/dist/swirl-icon-filter.entry.95211f5f.js +18 -0
- package/dist/swirl-icon-folder-shared.entry.052229e9.js +18 -0
- package/dist/swirl-icon-group-assign.entry.bb3ba16d.js +18 -0
- package/dist/swirl-icon-groups-custom.entry.89cb31bf.js +18 -0
- package/dist/swirl-icon-groups-filled.entry.8e4dd776.js +18 -0
- package/dist/swirl-icon-groups-outlined.entry.d257fa35.js +18 -0
- package/dist/swirl-icon-groups.entry.eb164fa2.js +18 -0
- package/dist/swirl-icon-help.entry.95af80fe.js +18 -0
- package/dist/swirl-icon-image.entry.ac7fce8a.js +18 -0
- package/dist/swirl-icon-info.entry.7bea6932.js +18 -0
- package/dist/swirl-icon-inventory.entry.7bb8c552.js +18 -0
- package/dist/swirl-icon-like.entry.ec92b9fd.js +18 -0
- package/dist/swirl-icon-link.entry.f3d5937c.js +18 -0
- package/dist/swirl-icon-lock.entry.807d8a95.js +18 -0
- package/dist/swirl-icon-logout.entry.4f31d257.js +18 -0
- package/dist/swirl-icon-mail.entry.54c49af9.js +18 -0
- package/dist/swirl-icon-manage-accounts.entry.8bc3721c.js +18 -0
- package/dist/swirl-icon-mention.entry.5cf61986.js +18 -0
- package/dist/swirl-icon-menu-filled.entry.1597fcdc.js +18 -0
- package/dist/swirl-icon-menu-outlined.entry.05c230c7.js +18 -0
- package/dist/swirl-icon-menu.entry.eb38317a.js +18 -0
- package/dist/swirl-icon-message.entry.3f3b0ee6.js +18 -0
- package/dist/swirl-icon-more-horizontal.entry.746bde39.js +18 -0
- package/dist/swirl-icon-more-vertikal.entry.bf9342ef.js +18 -0
- package/dist/swirl-icon-news-filled.entry.1c1d78f8.js +18 -0
- package/dist/swirl-icon-news-outlined.entry.76c94ea9.js +18 -0
- package/dist/swirl-icon-notifications-active.entry.d8c49de6.js +18 -0
- package/dist/swirl-icon-notifications-off.entry.2c8866a8.js +18 -0
- package/dist/swirl-icon-notifications.entry.a5c7b275.js +18 -0
- package/dist/swirl-icon-open-in-new.entry.128350f5.js +18 -0
- package/dist/swirl-icon-people-alt.entry.7ac6d23a.js +18 -0
- package/dist/swirl-icon-person-off.entry.fda1c4d4.js +18 -0
- package/dist/swirl-icon-person.entry.19fc5367.js +18 -0
- package/dist/swirl-icon-phone.entry.73cfee35.js +18 -0
- package/dist/swirl-icon-poll.entry.4ab05380.js +18 -0
- package/dist/swirl-icon-print.entry.cd89ebc5.js +18 -0
- package/dist/swirl-icon-recieved.entry.56d93432.js +18 -0
- package/dist/swirl-icon-search-strong.entry.904a6694.js +18 -0
- package/dist/swirl-icon-search.entry.cf65f83f.js +18 -0
- package/dist/swirl-icon-send.entry.56297757.js +18 -0
- package/dist/swirl-icon-settings.entry.1c988cf1.js +18 -0
- package/dist/swirl-icon-sync.entry.b88dd7b8.js +18 -0
- package/dist/swirl-icon-tasks-filled.entry.b2bf1c6e.js +18 -0
- package/dist/swirl-icon-tasks-outlined.entry.09551261.js +18 -0
- package/dist/swirl-icon-time-filled.entry.4954d002.js +18 -0
- package/dist/swirl-icon-time-outlined.entry.697e9656.js +18 -0
- package/dist/swirl-icon-user-assign.entry.fe5b582b.js +18 -0
- package/dist/swirl-icon-video-camera.entry.d4707dde.js +18 -0
- package/dist/swirl-icon-warning.entry.69762f5b.js +18 -0
- package/dist/{flip-lightbox.entry.e6ea2310.js → swirl-lightbox.entry.bae60d38.js} +12 -12
- package/dist/swirl-link.entry.3d52e8ef.js +15 -0
- package/dist/swirl-list.entry.53688da6.js +18 -0
- package/dist/swirl-modal.entry.4bf5e6c3.js +63 -0
- package/dist/swirl-option-list-section.entry.898ea907.js +15 -0
- package/dist/swirl-pagination.entry.b892dbdb.js +27 -0
- package/dist/{flip-pdf-reader.entry.4cdb28da.js → swirl-pdf-reader.entry.28aa5b27.js} +7 -7
- package/dist/{flip-popover.entry.4a45218b.js → swirl-popover.entry.3e96f1d7.js} +8 -8
- package/dist/{flip-progress-indicator.entry.fc0e5979.js → swirl-progress-indicator.entry.30f3d224.js} +3 -3
- package/dist/swirl-radio-group.entry.9cbdf732.js +35 -0
- package/dist/swirl-radio.entry.7a24ed80.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.c7c3d567.js +37 -0
- package/dist/swirl-search.entry.19702179.js +48 -0
- package/dist/swirl-select.entry.3ff36072.js +48 -0
- package/dist/swirl-separator.entry.6dfbb1a4.js +15 -0
- package/dist/{flip-stack.entry.a5b14f3a.js → swirl-stack.entry.43f00bc0.js} +3 -3
- package/dist/swirl-switch.entry.eaba1cc3.js +56 -0
- package/dist/swirl-tab.entry.982c6bc3.js +18 -0
- package/dist/swirl-table-cell.entry.5cacafda.js +15 -0
- package/dist/swirl-table-column.entry.d66cfcf5.js +23 -0
- package/dist/swirl-table-row-group.entry.4273e651.js +19 -0
- package/dist/swirl-table-row.entry.1f98e36b.js +20 -0
- package/dist/swirl-table.entry.5a37f233.js +141 -0
- package/dist/{flip-tabs.entry.d3d9f791.js → swirl-tabs.entry.a932c6b9.js} +7 -7
- package/dist/swirl-tag.entry.2fd7c670.js +21 -0
- package/dist/swirl-text-input.entry.c1eb2d9c.js +74 -0
- package/dist/swirl-text.entry.ec8c8813.js +18 -0
- package/dist/{flip-theme-provider.entry.2b2c55b9.js → swirl-theme-provider.entry.5bf11693.js} +18 -18
- package/dist/swirl-thumbnail.entry.3b230d52.js +18 -0
- package/dist/{flip-toast-provider.entry.729fe2a2.js → swirl-toast-provider.entry.da18eaab.js} +3 -3
- package/dist/swirl-toast.entry.d0f32449.js +52 -0
- package/dist/{flip-tooltip.entry.8392ec7f.js → swirl-tooltip.entry.e444ef8c.js} +7 -7
- package/dist/{flip-tree-navigation-item.entry.62f7ab3c.js → swirl-tree-navigation-item.entry.49118257.js} +3 -3
- package/dist/{flip-video-thumbnail.entry.edc7cce0.js → swirl-video-thumbnail.entry.786a3d11.js} +3 -3
- package/dist/{flip-visually-hidden.entry.69776f72.js → swirl-visually-hidden.entry.1da622ab.js} +4 -4
- package/dist/utils-7efaa1c6.4a9c3721.js +42 -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-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-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
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as e, h as l, H as n } from "./index.6f8c9509.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const r = ':host{display:block}:host *{box-sizing:border-box}.flip-list{line-height:var(--s-line-height-base)}.flip-list ul,.flip-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.flip-list ul li{padding-left:1.5rem}.flip-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.flip-list ol{counter-reset:item}.flip-list ol ol{counter-reset:letter}.flip-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.flip-list ol li{padding-left:1.5rem}.flip-list ol li:before{display:inline-block;min-width:1.5rem;font-variant-numeric:tabular-nums;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item}', s = class {
|
|
5
|
-
constructor(i) {
|
|
6
|
-
e(this, i);
|
|
7
|
-
}
|
|
8
|
-
componentDidRender() {
|
|
9
|
-
Array.from(this.containerEl.children).some((t) => !["UL", "OL"].includes(t.tagName)) && console.warn("[FlipList] Only ul and ol elements are allowed as direct children of <flip-list />.");
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return l(n, null, l("div", { class: "flip-list", ref: (i) => this.containerEl = i }, l("slot", null)));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
s.style = r;
|
|
16
|
-
export {
|
|
17
|
-
s as flip_list
|
|
18
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { r as h, c as e, h as a, H as p } from "./index.6f8c9509.js";
|
|
2
|
-
import { A as f } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
|
-
import { d as b, e as v } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
|
-
import { c as u } from "./index-6d2e18c6.289636d4.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
8
|
-
const g = ':host{--flip-ghost-button-background-default:var(--s-surface-overlay-default);--flip-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--flip-ghost-button-background-pressed:var(--s-surface-overlay-pressed);display:block}:host *{box-sizing:border-box}.modal{position:fixed;z-index:var(--s-z-40);display:flex;justify-content:center;align-items:center;inset:0}.modal[aria-hidden="true"]{display:none}.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:0.15s modal-backdrop-fade-in;animation:0.15s modal-backdrop-fade-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:none;animation:none}}.modal:not(.modal--closing) .modal__body{-webkit-animation:0.15s modal-scale-in;animation:0.15s modal-scale-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__body{-webkit-animation:none;animation:none}}.modal--closing{-webkit-animation:0.15s modal-fade-out;animation:0.15s modal-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--closing{-webkit-animation:none;animation:none}}@media (min-width: 768px){.modal--scrollable .modal__content{padding-bottom:0}}.modal--scrollable:not(.modal--scrolled-down) .modal__controls{border-top:var(--s-border-width-default) solid var(--s-border-default)}@media (min-width: 768px){.modal--scrolled .modal__header{border-bottom-color:var(--s-border-default)}}.modal__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.modal__body{position:relative;z-index:var(--s-z-40);display:flex;width:100vw;height:100vh;background-color:var(--s-surface-overlay-default);flex-direction:column}@media (min-width: 768px){.modal__body{width:90vw;max-width:33.75rem;height:auto;max-height:90vh;border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-3)}}.modal__close-button{position:absolute;top:var(--s-space-8);left:var(--s-space-8)}@media (min-width: 768px){.modal__close-button{top:var(--s-space-16);right:var(--s-space-16);left:auto}}.modal__header{display:flex;height:3.5rem;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-8) + 2.5rem + var(--s-space-8));flex-shrink:0;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-16)}@media (min-width: 768px){.modal__header{height:4.125rem;padding-top:var(--s-space-24);padding-right:calc(var(--s-space-16) + 2.5rem + var(--s-space-8));padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);border-bottom:var(--s-border-width-default) solid transparent}}.modal__heading{overflow:hidden}.modal__heading .heading{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal__content{overflow-x:hidden;overflow-y:auto;padding-top:var(--s-space-24);padding-right:var(--s-space-16);padding-bottom:var(--s-space-24);padding-left:var(--s-space-16);flex-grow:1;line-height:var(--s-line-height-base)}.modal__content ::slotted(*){margin:0}@media (min-width: 768px){.modal__content{padding-top:0;padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24)}}.modal__controls{display:flex;padding-top:var(--s-space-16);padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);flex-shrink:0;justify-content:flex-end}@-webkit-keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{from{opacity:1}to{opacity:0}}@keyframes modal-fade-out{from{opacity:1}to{opacity:0}}', y = class {
|
|
9
|
-
constructor(l) {
|
|
10
|
-
h(this, l), this.modalClose = e(this, "modalClose", 7), this.modalOpen = e(this, "modalOpen", 7), this.primaryAction = e(this, "primaryAction", 7), this.secondaryAction = e(this, "secondaryAction", 7), this.closeButtonLabel = "Close modal", this.closing = !1, this.scrollable = !1, this.scrolled = !1, this.scrolledDown = !1, this.onKeyDown = (o) => {
|
|
11
|
-
o.code === "Escape" && this.close();
|
|
12
|
-
}, this.onBackdropClick = () => {
|
|
13
|
-
this.close();
|
|
14
|
-
}, this.onCloseButtonClick = () => {
|
|
15
|
-
this.close();
|
|
16
|
-
}, this.onPrimaryAction = (o) => {
|
|
17
|
-
this.primaryAction.emit(o);
|
|
18
|
-
}, this.onSecondaryAction = (o) => {
|
|
19
|
-
this.secondaryAction.emit(o);
|
|
20
|
-
}, this.determineScrollStatus = () => {
|
|
21
|
-
var o, i, t, s, d, r;
|
|
22
|
-
const n = ((o = this.scrollContainer) === null || o === void 0 ? void 0 : o.scrollTop) > 0, c = Math.ceil(((i = this.scrollContainer) === null || i === void 0 ? void 0 : i.scrollTop) + ((t = this.scrollContainer) === null || t === void 0 ? void 0 : t.offsetHeight)) >= ((s = this.scrollContainer) === null || s === void 0 ? void 0 : s.scrollHeight), m = ((d = this.scrollContainer) === null || d === void 0 ? void 0 : d.scrollHeight) > ((r = this.scrollContainer) === null || r === void 0 ? void 0 : r.offsetHeight);
|
|
23
|
-
n !== this.scrolled && (this.scrolled = n), c !== this.scrolledDown && (this.scrolledDown = c), m !== this.scrollable && (this.scrollable = m);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
componentDidLoad() {
|
|
27
|
-
this.modal = new f(this.modalEl), this.determineScrollStatus();
|
|
28
|
-
}
|
|
29
|
-
disconnectedCallback() {
|
|
30
|
-
var l;
|
|
31
|
-
(l = this.modal) === null || l === void 0 || l.destroy(), this.unlockBodyScroll();
|
|
32
|
-
}
|
|
33
|
-
onWindowResize() {
|
|
34
|
-
this.determineScrollStatus();
|
|
35
|
-
}
|
|
36
|
-
async open() {
|
|
37
|
-
this.modal.show(), this.modalOpen.emit(), this.lockBodyScroll(), this.determineScrollStatus();
|
|
38
|
-
}
|
|
39
|
-
async close() {
|
|
40
|
-
this.closing || (this.closing = !0, this.unlockBodyScroll(), setTimeout(() => {
|
|
41
|
-
this.modal.hide(), this.modalClose.emit(), this.closing = !1;
|
|
42
|
-
}, 150));
|
|
43
|
-
}
|
|
44
|
-
lockBodyScroll() {
|
|
45
|
-
b(this.scrollContainer);
|
|
46
|
-
}
|
|
47
|
-
unlockBodyScroll() {
|
|
48
|
-
v(this.scrollContainer);
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
const l = u("modal", {
|
|
52
|
-
"modal--closing": this.closing,
|
|
53
|
-
"modal--scrollable": this.scrollable,
|
|
54
|
-
"modal--scrolled": this.scrolled,
|
|
55
|
-
"modal--scrolled-down": this.scrolledDown
|
|
56
|
-
});
|
|
57
|
-
return a(p, null, a("section", { "aria-hidden": "true", "aria-label": this.label, class: l, id: "modal", onKeyDown: this.onKeyDown, ref: (o) => this.modalEl = o }, a("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), a("div", { class: "modal__body", role: "document" }, a("flip-button", { class: "modal__close-button", hideLabel: !0, icon: "<flip-icon-close></flip-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), a("header", { class: "modal__header" }, a("flip-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label })), a("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (o) => this.scrollContainer = o }, a("slot", null)), a("footer", { class: "modal__controls" }, a("flip-button-group", { wrap: !0 }, this.secondaryActionLabel && a("flip-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && a("flip-button", { intent: "primary", label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" }))))));
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
y.style = g;
|
|
61
|
-
export {
|
|
62
|
-
y as flip_modal
|
|
63
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as o, h as t, H as i } from "./index.6f8c9509.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const e = ":host{display:block}:host *{box-sizing:border-box}.option-list-section{background-color:var(--s-surface-overlay-default)}.option-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}", l = class {
|
|
5
|
-
constructor(s) {
|
|
6
|
-
o(this, s);
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return t(i, null, t("div", { "aria-labelledby": "label", class: "option-list-section", role: "group" }, t("span", { class: "option-list-section__label", id: "label" }, this.label), t("div", { class: "option-list-section__items" }, t("slot", null))));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
l.style = e;
|
|
13
|
-
export {
|
|
14
|
-
l as flip_option_list_section
|
|
15
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { r as p, c as r, h as a, H as c } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as g } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const h = ":host{display:block;width:100%}:host *{box-sizing:border-box}.pagination{display:block;width:100%}.pagination--variant-simple .pagination__list{gap:var(--s-space-4)}.pagination__list{display:flex;margin:0;padding:0;justify-content:flex-start;align-items:center;line-height:var(--s-line-height-base);list-style:none;gap:var(--s-space-8)}@media (--from-tablet){.pagination__list{gap:var(--s-space-16)}}.pagination__advanced-label{display:flex;align-items:center;white-space:nowrap;gap:var(--s-space-8)}.pagination__page-select-container{position:relative}.pagination__page-select{display:inline-flex;padding-right:var(--s-space-16);border:none;background-color:transparent;font:inherit;line-height:var(--s-line-height-base);text-align:center;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.pagination__page-select:focus:not(:focus-visible){outline:none}.pagination__page-select:focus-visible{outline-color:var(--s-focus-default)}.pagination__page-select-icon{position:absolute;top:50%;right:0;transform:translateY(-50%);pointer-events:none}", b = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
p(this, t), this.setPage = r(this, "setPage", 7), this.accessibleNextButtonLabel = "Next page", this.accessiblePrevButtonLabel = "Previous page", this.nextButtonLabel = "Next", this.pageLabel = "out of", this.prevButtonLabel = "Prev", this.pageSelectLabel = "Select a page", this.variant = "default", this.onPrevButtonClick = () => {
|
|
9
|
-
const e = Math.max(this.page - 1, 1);
|
|
10
|
-
this.page !== e && this.setPage.emit(e);
|
|
11
|
-
}, this.onNextButtonClick = () => {
|
|
12
|
-
const e = Math.min(this.page + 1, this.pages);
|
|
13
|
-
this.page !== e && this.setPage.emit(e);
|
|
14
|
-
}, this.onSelect = (e) => {
|
|
15
|
-
const i = +e.target.value;
|
|
16
|
-
this.page !== i && this.setPage.emit(i);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
const t = this.variant !== "advanced", e = this.variant !== "simple", i = this.variant === "advanced", s = `${this.page} ${this.pageLabel} ${this.pages}`, l = g("pagination", `pagination--variant-${this.variant}`);
|
|
21
|
-
return a(c, null, a("nav", { "aria-label": this.label, class: l }, a("ul", { class: "pagination__list" }, a("li", { class: "pagination__list-item" }, a("flip-button", { class: "pagination__prev-button", disabled: this.page <= 1, flipAriaLabel: this.accessiblePrevButtonLabel, hideLabel: t, icon: "<flip-icon-chevron-left></flip-icon-chevron-left>", intent: "primary", label: this.prevButtonLabel, onClick: this.onPrevButtonClick })), e ? a("li", { class: "pagination__list-item" }, a("span", null, i ? a("span", { "aria-current": "page", class: "pagination__advanced-label" }, a("span", { class: "pagination__page-select-container" }, a("select", { "aria-label": this.pageSelectLabel, class: "pagination__page-select", onChange: this.onSelect }, new Array(this.pages).fill(void 0).map((n, o) => o + 1).map((n) => a("option", { selected: this.page === n, value: String(n) }, n))), a("flip-icon-expand-more", { "aria-hidden": "true", class: "pagination__page-select-icon", size: 16 })), a("span", { "aria-hidden": "true" }, this.pageLabel, " ", this.pages)) : a("span", { "aria-current": "page" }, s))) : a("li", { class: "pagination__list-item" }, a("flip-visually-hidden", null, a("span", { "aria-current": "page" }, s))), a("li", { class: "pagination__list-item" }, a("flip-button", { class: "pagination__next-button", disabled: this.page >= this.pages, flipAriaLabel: this.accessibleNextButtonLabel, hideLabel: t, icon: "<flip-icon-chevron-right></flip-icon-chevron-right>", iconPosition: "end", intent: "primary", label: this.nextButtonLabel, onClick: this.onNextButtonClick })))));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
b.style = h;
|
|
25
|
-
export {
|
|
26
|
-
b as flip_pagination
|
|
27
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { r as o, c as s, h as r, H as l, g as n } from "./index.6f8c9509.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const u = ".sc-flip-radio-group-h{display:block}.sc-flip-radio-group-h *.sc-flip-radio-group{box-sizing:border-box}.radio-group.sc-flip-radio-group{display:flex;flex-direction:column;gap:var(--s-space-12)}", d = class {
|
|
5
|
-
constructor(i) {
|
|
6
|
-
o(this, i), this.valueChange = s(this, "valueChange", 7);
|
|
7
|
-
}
|
|
8
|
-
componentDidLoad() {
|
|
9
|
-
this.radioButtons = Array.from(this.el.querySelectorAll("flip-radio")), this.initValue(), this.handleValueChanges();
|
|
10
|
-
}
|
|
11
|
-
initValue() {
|
|
12
|
-
if (this.value === void 0)
|
|
13
|
-
return;
|
|
14
|
-
const i = this.radioButtons.find((e) => e.value === this.value);
|
|
15
|
-
!Boolean(i) || (i.checked = !0);
|
|
16
|
-
}
|
|
17
|
-
handleValueChanges() {
|
|
18
|
-
for (const [i, e] of Object.entries(this.radioButtons))
|
|
19
|
-
e.addEventListener("valueChange", () => {
|
|
20
|
-
(e.checked === !0 || e.checked === "true") && (this.valueChange.emit(e.value), this.value = e.value, this.radioButtons.forEach((t, a) => {
|
|
21
|
-
String(a) !== i && (t.checked = !1);
|
|
22
|
-
}));
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
return r(l, { "aria-describedby": this.flipAriaDescribedby, role: "radiogroup" }, r("div", { class: "radio-group" }, r("slot", null)));
|
|
27
|
-
}
|
|
28
|
-
get el() {
|
|
29
|
-
return n(this);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
d.style = u;
|
|
33
|
-
export {
|
|
34
|
-
d as flip_radio_group
|
|
35
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { r as s, c as l, h as i, H as c } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as t } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const n = `.sc-flip-radio-h{display:inline-flex}.sc-flip-radio-h *.sc-flip-radio{box-sizing:border-box}.radio.sc-flip-radio{display:inline-flex;cursor:pointer;line-height:var(--s-line-height-base)}.radio.sc-flip-radio:focus-within .radio__box.sc-flip-radio{box-shadow:0 0 0 0.0625rem var(--s-background-default),
|
|
7
|
-
0 0 0 0.1875rem var(--s-focus-default)}.radio--checked.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{border-color:var(--s-interactive-primary-hovered);background-color:var(--s-interactive-primary-hovered)}.radio--checked.sc-flip-radio .radio__box.sc-flip-radio{position:relative;border-color:var(--s-icon-highlight);background-color:var(--s-icon-highlight)}.radio--checked.sc-flip-radio .radio__box.sc-flip-radio:after{position:absolute;top:50%;left:50%;width:0.5rem;height:0.5rem;border-radius:50%;background-color:var(--s-background-default);content:"";transform:translate3d(-50%, -50%, 0)}.radio--invalid.radio--checked.sc-flip-radio .radio__box.sc-flip-radio,.radio--invalid.radio--indeterminate.sc-flip-radio .radio__box.sc-flip-radio{background-color:var(--s-icon-critical)}.radio--invalid.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-critical)}.radio--disabled.sc-flip-radio{cursor:default}.radio--disabled.radio--checked.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);background-color:transparent}.radio--disabled.radio--checked.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);background-color:var(--s-background-default)}.radio--disabled.radio--checked.sc-flip-radio .radio__box.sc-flip-radio:after{background-color:var(--s-icon-disabled)}.radio--disabled.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{background-color:transparent}.radio--disabled.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled)}.radio--disabled.sc-flip-radio .radio__description.sc-flip-radio,.radio--disabled.sc-flip-radio .radio__label.sc-flip-radio{color:var(--s-text-disabled)}.radio__control.sc-flip-radio{position:relative;display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2);flex-shrink:0}.radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{background-color:var(--s-action-neutral-hovered)}.radio__box.sc-flip-radio{position:relative;display:flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:50%}.radio__label-container.sc-flip-radio{display:inline-flex;margin-left:var(--s-space-8);padding-top:var(--s-space-2);flex-direction:column}.radio__label.sc-flip-radio{font-weight:var(--s-font-weight-medium)}.radio__description.sc-flip-radio{color:var(--s-text-subdued)}`, h = class {
|
|
8
|
-
constructor(a) {
|
|
9
|
-
s(this, a), this.valueChange = l(this, "valueChange", 7), this.checked = !1, this.disabled = !1, this.onChange = () => {
|
|
10
|
-
this.checked = !0, this.valueChange.emit(this.value);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
getAriaCheckedLabel(a, r) {
|
|
14
|
-
return a ? "true" : r ? "false" : "mixed";
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
const a = this.checked === !1 || this.checked === "false", r = this.checked === !0 || this.checked === "true", o = this.getAriaCheckedLabel(r, a), d = this.invalid, e = t("radio", {
|
|
18
|
-
"radio--checked": r,
|
|
19
|
-
"radio--disabled": this.disabled,
|
|
20
|
-
"radio--invalid": this.invalid,
|
|
21
|
-
"radio--unchecked": a
|
|
22
|
-
});
|
|
23
|
-
return i(c, null, i("label", { class: e, htmlFor: this.inputId }, i("span", { class: "radio__control" }, i("flip-visually-hidden", null, i("input", { "aria-checked": o, "aria-invalid": d, checked: r, class: "radio__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, type: "radio", value: this.value })), i("span", { "aria-hidden": "true", class: "radio__box" })), i("span", { class: "radio__label-container" }, this.label && i("span", { class: "radio__label" }, this.label), this.description && i("span", { class: "radio__description" }, this.description))));
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
h.style = n;
|
|
27
|
-
export {
|
|
28
|
-
h as flip_radio
|
|
29
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { r as l, c as a, h as e, H as n } from "./index.6f8c9509.js";
|
|
2
|
-
import { c } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const p = ':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)}.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%)}', m = class {
|
|
7
|
-
constructor(i) {
|
|
8
|
-
l(this, i), this.remove = a(this, "remove", 7), this.icon = "<flip-icon-file></flip-icon-file>", this.removeButtonLabel = "Remove file";
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const i = Boolean(this.errorMessage), r = !i && Boolean(this.description), s = !i && this.loading, t = this.removable && !s, o = c("resource-list-file-item", {
|
|
12
|
-
"resource-list-file-item--has-control": s || t
|
|
13
|
-
});
|
|
14
|
-
return e(n, { role: "row" }, e("div", { class: o, role: "gridcell" }, e("span", { class: "resource-list-file-item__icon", innerHTML: this.icon }), e("span", { class: "resource-list-file-item__label-container" }, e("span", { class: "resource-list-file-item__label", id: "label" }, this.label), r && e("span", { class: "resource-list-file-item__description" }, this.description), i && e("span", { "aria-live": "polite", class: "resource-list-file-item__error-message" }, e("flip-inline-error", { message: this.errorMessage, size: "s" }))), s && e("span", { class: "resource-list-file-item__spinner" }, e("flip-spinner", { size: "s" })), t && e("span", { class: "resource-list-file-item__remove-button" }, e("flip-button", { hideLabel: !0, icon: "<flip-icon-close></flip-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
m.style = p;
|
|
18
|
-
export {
|
|
19
|
-
m as flip_resource_list_file_item
|
|
20
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { r as c, c as r, h as a, H as i } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as t } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const l = ".sc-flip-search-h{display:flex;width:100%}.sc-flip-search-h *.sc-flip-search{box-sizing:border-box}.search.sc-flip-search{position:relative;display:flex;width:100%}.search--disabled.sc-flip-search .search__icon.sc-flip-search{color:var(--s-icon-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::placeholder{color:var(--s-text-disabled)}.search__icon.sc-flip-search{position:absolute;top:50%;left:var(--s-space-12);display:inline-flex;color:var(--s-icon-default);transform:translateY(-50%)}.search__input.sc-flip-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-flip-search:focus:not(:focus-visible){outline:none}.search__input.sc-flip-search:focus-visible{outline-color:var(--s-focus-default)}.search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::-webkit-search-decoration,.search__input.sc-flip-search::-webkit-search-cancel-button,.search__input.sc-flip-search::-webkit-search-results-button,.search__input.sc-flip-search::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.search__input.sc-flip-search:not(:-moz-placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__input.sc-flip-search:not(:placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__clear-button.sc-flip-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%)}", o = class {
|
|
7
|
-
constructor(s) {
|
|
8
|
-
c(this, s), 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.clear = () => {
|
|
9
|
-
this.input.value = "", this.input.focus();
|
|
10
|
-
}, this.onBlur = (e) => {
|
|
11
|
-
this.inputBlur.emit(e);
|
|
12
|
-
}, this.onChange = (e) => {
|
|
13
|
-
this.valueChange.emit(e.target.value);
|
|
14
|
-
}, this.onFocus = (e) => {
|
|
15
|
-
this.inputFocus.emit(e);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
onKeyDown(s) {
|
|
19
|
-
(s.code === "KeyK" || s.code === "Slash") && (s.ctrlKey || s.metaKey) && this.input.focus();
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const s = t("search", {
|
|
23
|
-
"search--disabled": this.disabled
|
|
24
|
-
});
|
|
25
|
-
return a(i, null, a("span", { class: s }, a("flip-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: (e) => this.input = e, type: "search", value: this.value }), !this.disabled && a("button", { "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, a("flip-icon-cancel", null))));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
o.style = l;
|
|
29
|
-
export {
|
|
30
|
-
o as flip_search
|
|
31
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { r as n, c, h as e, H as r, g as p } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as d } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import { q as h } from "./utils-39b2afe8.37b54ba4.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
7
|
-
const u = ".sc-flip-select-h{display:block;width:100%}.sc-flip-select-h *.sc-flip-select{box-sizing:border-box}.select.sc-flip-select{position:relative;display:flex;width:100%}.select--disabled.sc-flip-select .select__label.sc-flip-select{color:var(--s-text-disabled)}.select--disabled.sc-flip-select .select__indicator.sc-flip-select{color:var(--s-icon-disabled)}.select__label.sc-flip-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-flip-select:focus{outline:none}.select__indicator.sc-flip-select{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;color:var(--s-icon-default)}", f = class {
|
|
8
|
-
constructor(t) {
|
|
9
|
-
n(this, t), this.valueChange = c(this, "valueChange", 7), this.options = [], this.select = (i) => {
|
|
10
|
-
this.value = i.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 = (i) => {
|
|
18
|
-
(i.code === "Space" || i.code === "Enter") && (i.preventDefault(), this.popover.open());
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
queueMicrotask(() => {
|
|
23
|
-
this.updateOptions();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
onWindowFocusIn(t) {
|
|
27
|
-
t.target === this.el.querySelector("input") && t.stopImmediatePropagation();
|
|
28
|
-
}
|
|
29
|
-
updateOptions() {
|
|
30
|
-
this.options = h(this.el, "flip-option-list-item");
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const t = Boolean(this.value) ? this.value.map((s) => {
|
|
34
|
-
var l;
|
|
35
|
-
return (l = this.options.find((a) => a.value === s)) === null || l === void 0 ? void 0 : l.label;
|
|
36
|
-
}).join(", ") : "", i = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, o = d("select", {
|
|
37
|
-
"select--disabled": this.disabled
|
|
38
|
-
});
|
|
39
|
-
return e(r, { onKeyDown: this.onKeyDown }, e("div", { class: o }, e("input", { "aria-describedby": this.flipAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-invalid": i, class: "select__label", disabled: this.disabled, id: "trigger", readOnly: !0, type: "text", value: t }), e("span", { class: "select__indicator" }, this.open ? e("flip-icon-expand-less", null) : e("flip-icon-expand-more", null)), e("flip-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: (s) => this.popover = s, trigger: "trigger", useContainerWidth: "flip-form-control" }, e("flip-option-list", { onValueChange: this.select, multiSelect: this.multiSelect, value: this.value }, e("slot", { onSlotchange: this.onSlotChange })))));
|
|
40
|
-
}
|
|
41
|
-
get el() {
|
|
42
|
-
return p(this);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
f.style = u;
|
|
46
|
-
export {
|
|
47
|
-
f as flip_select
|
|
48
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { r as n, c as r, h as e, H as a, g as o } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as l } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const d = `.sc-flip-switch-h{display:inline-flex}.sc-flip-switch-h *.sc-flip-switch{box-sizing:border-box}.switch.sc-flip-switch{display:inline-flex;align-items:center;touch-action:none}.switch.sc-flip-switch:focus-within .switch__control.sc-flip-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-flip-switch .switch__control.sc-flip-switch{width:2.75rem;height:1.5rem;border-radius:calc(1.5rem / 2)}.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{width:1.25rem;height:1.25rem}.switch--on.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 1.25rem - var(--s-space-2))}.switch--on.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-default)}.switch--on.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 0.875rem - var(--s-space-2))}.switch--disabled.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-disabled);cursor:default}.switch--disabled.sc-flip-switch .switch__thumb.sc-flip-switch{background-color:var(--s-interactive-neutral-default)}.switch--disabled.sc-flip-switch .switch__label.sc-flip-switch{color:var(--s-text-disabled)}.switch__control.sc-flip-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-flip-switch{transition:none}}.switch__thumb.sc-flip-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-flip-switch{transition:none}}.switch__label.sc-flip-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)}`, f = class {
|
|
8
|
-
constructor(h) {
|
|
9
|
-
n(this, h), this.valueChange = r(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 s = this.control.getBoundingClientRect(), c = this.thumb.getBoundingClientRect(), t = this.thumb.offsetLeft + c.width / 2 > s.width / 2;
|
|
23
|
-
this.checked !== t && (this.checked = t, this.valueChange.emit(t));
|
|
24
|
-
}
|
|
25
|
-
this.thumb.style.left = "", this.thumb.style.transition = "", this.dragging = !1, setTimeout(() => {
|
|
26
|
-
this.recentlyDragged = !1;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}, this.onDrag = (s) => {
|
|
30
|
-
if (!this.dragging)
|
|
31
|
-
return;
|
|
32
|
-
this.recentlyDragged = !0;
|
|
33
|
-
const c = this.control.getBoundingClientRect(), t = this.thumb.getBoundingClientRect();
|
|
34
|
-
let i = Math.round(s.offsetX - t.width / 2);
|
|
35
|
-
i < 0 && (i = 0), i > Math.round(c.width - t.width) && (i = Math.round(c.width - t.width)), this.thumb.style.left = `${i}px`;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
onWindowPointerUp() {
|
|
39
|
-
this.onEndDrag();
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
const h = !this.checked, s = this.checked, c = s ? "true" : "false", t = l("switch", `switch--size-${this.size}`, {
|
|
43
|
-
"switch--off": h,
|
|
44
|
-
"switch--on": s,
|
|
45
|
-
"switch--disabled": this.disabled
|
|
46
|
-
});
|
|
47
|
-
return e(a, null, e("label", { class: t, htmlFor: this.inputId }, e("span", { class: "switch__control", onPointerDown: this.onStartDrag, onPointerMove: this.onDrag, onPointerUp: this.onEndDrag, ref: (i) => this.control = i }, e("flip-visually-hidden", null, e("input", { "aria-checked": c, checked: s, 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: (i) => this.thumb = i })), this.label && e("span", { class: "switch__label" }, this.label)));
|
|
48
|
-
}
|
|
49
|
-
get el() {
|
|
50
|
-
return o(this);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
f.style = d;
|
|
54
|
-
export {
|
|
55
|
-
f as flip_switch
|
|
56
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as s, h as a, H as i } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as o } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const e = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{display:none;width:100%;padding:var(--s-space-8)}.tab--active{display:block}", r = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
s(this, t);
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const t = o("tab", { "tab--active": this.active });
|
|
12
|
-
return a(i, { "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 }, a("div", { class: t }, a("slot", null)));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
r.style = e;
|
|
16
|
-
export {
|
|
17
|
-
r as flip_tab
|
|
18
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { r as e, c as s, h as t, H as n } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as i } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.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);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
|
-
e(this, o), this.remove = s(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("flip-icon-close", { size: 16 }))));
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
l.style = c;
|
|
19
|
-
export {
|
|
20
|
-
l as flip_tag
|
|
21
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { r as h, c as n, h as i, H as c } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as d } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const x = '.sc-flip-text-input-h{display:block;width:100%}.sc-flip-text-input-h *.sc-flip-text-input{box-sizing:border-box}.text-input.sc-flip-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--clearable.sc-flip-text-input,.text-input--type-number.sc-flip-text-input,.text-input--type-password.sc-flip-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-flip-text-input .text-input__input.sc-flip-text-input{width:100%}.text-input--disabled.sc-flip-text-input .text-input__character-counter.sc-flip-text-input{color:var(--s-text-disabled)}.text-input__input.sc-flip-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-flip-text-input:focus{outline:none}.text-input__input.sc-flip-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-flip-text-input::-webkit-outer-spin-button,.text-input__input.sc-flip-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-flip-text-input{-moz-appearance:textfield}input.text-input__input.sc-flip-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-flip-text-input input.text-input__input.sc-flip-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-flip-text-input,.text-input__password-toggle.sc-flip-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-flip-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-flip-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-flip-text-input:focus-visible,.text-input__password-toggle.sc-flip-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__stepper.sc-flip-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}.text-input__step-button.sc-flip-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-flip-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-flip-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-flip-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}.text-input__prefix.sc-flip-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-flip-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', f = class {
|
|
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.autoComplete = "on", this.clearButtonLabel = "Clear input", this.rows = 1, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.showPassword = !1, this.clear = () => {
|
|
9
|
-
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
10
|
-
}, this.onChange = (t) => {
|
|
11
|
-
const e = t.target;
|
|
12
|
-
this.value = e.value, this.valueChange.emit(e.value);
|
|
13
|
-
}, this.onBlur = (t) => {
|
|
14
|
-
this.inputBlur.emit(t);
|
|
15
|
-
}, this.onFocus = (t) => {
|
|
16
|
-
this.inputFocus.emit(t), this.handleAutoSelect(t);
|
|
17
|
-
}, this.onInput = (t) => {
|
|
18
|
-
this.onChange(t);
|
|
19
|
-
}, this.onKeyPress = (t) => {
|
|
20
|
-
this.type === "number" && ["+", "-", "e"].includes(t.key) && t.preventDefault();
|
|
21
|
-
}, this.decreaseValue = () => {
|
|
22
|
-
if (this.type !== "number")
|
|
23
|
-
return;
|
|
24
|
-
const t = this.step || 1;
|
|
25
|
-
let e = this.inputEl.valueAsNumber;
|
|
26
|
-
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);
|
|
27
|
-
}, this.increaseValue = () => {
|
|
28
|
-
if (this.type !== "number")
|
|
29
|
-
return;
|
|
30
|
-
const t = this.step || 1;
|
|
31
|
-
let e = this.inputEl.valueAsNumber;
|
|
32
|
-
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);
|
|
33
|
-
}, this.togglePassword = () => {
|
|
34
|
-
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
componentDidRender() {
|
|
38
|
-
this.adjustInputSize();
|
|
39
|
-
}
|
|
40
|
-
adjustInputSize() {
|
|
41
|
-
this.rows > 1 && (this.inputEl.style.width = "", this.inputEl.style.height = "", this.inputEl.style.height = this.inputEl.scrollHeight / 16 + "rem"), this.rows === 1 && (this.inputEl.style.height = "", this.inputEl.style.width = "", this.type !== "password" && !this.disableDynamicWidth && (this.inputEl.style.width = this.inputEl.scrollWidth / 16 + "rem"));
|
|
42
|
-
}
|
|
43
|
-
handleAutoSelect(s) {
|
|
44
|
-
!this.autoSelect || s.target.select();
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
var s;
|
|
48
|
-
const t = this.rows === 1 ? "input" : "textarea", e = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, a = this.type === "number" && !this.disabled, l = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !l && !a && !this.showCharacterCounter, p = this.type === "password" && this.showPassword ? "text" : this.type, o = d("text-input", `text-input--type-${this.type}`, {
|
|
49
|
-
"text-input--clearable": this.clearable,
|
|
50
|
-
"text-input--disabled": this.disabled,
|
|
51
|
-
"text-input--disable-dynamic-width": this.disableDynamicWidth,
|
|
52
|
-
"text-input--show-password": this.type === "password" && this.showPassword
|
|
53
|
-
});
|
|
54
|
-
return i(c, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.flipAriaAutocomplete, "aria-controls": this.flipAriaControls, "aria-describedby": this.flipAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.flipAriaExpanded, "aria-invalid": e, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : void 0, min: this.type === "number" ? this.min : void 0, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, ref: (r) => this.inputEl = r, required: this.required, role: this.flipRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: p, value: this.rows === 1 ? this.value : void 0 }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), u && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, type: "button" }, i("flip-icon-cancel", null)), l && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("flip-icon-visibility-off", null) : i("flip-icon-visibility", null)), a && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("flip-icon-expand-less", null)), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("flip-icon-expand-more", null))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((s = this.value) === null || s === void 0 ? void 0 : s.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
f.style = x;
|
|
58
|
-
export {
|
|
59
|
-
f as flip_text_input
|
|
60
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as t, h as a, H as s } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as l } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const m = ":host{display:inline-flex}:host *{box-sizing:border-box}.thumbnail{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.03125rem rgba(0, 0, 0, 0.1)}.thumbnail--size-s{--flip-thumbnail-size:2.5rem}.thumbnail--size-m{--flip-thumbnail-size:3rem}.thumbnail--size-l{--flip-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--flip-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--flip-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--flip-thumbnail-size);height:var(--flip-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", r = class {
|
|
7
|
-
constructor(i) {
|
|
8
|
-
t(this, i), this.format = "landscape", this.size = "m";
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const i = l("thumbnail", `thumbnail--format-${this.format}`, `thumbnail--size-${this.size}`);
|
|
12
|
-
return a(s, null, a("span", { class: i }, a("img", { alt: this.alt, class: "thumbnail__image", loading: "lazy", src: this.src })));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
r.style = m;
|
|
16
|
-
export {
|
|
17
|
-
r as flip_thumbnail
|
|
18
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { r as i, c as a, h as t, H as e } from "./index.6f8c9509.js";
|
|
2
|
-
import { c as o } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const r = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);box-shadow:var(--s-shadow-level-2)}.toast--intent-critical{background-color:var(--s-surface-critical-default)}.toast--intent-success{background-color:var(--s-surface-success-default)}.toast__icon{display:inline-flex;margin-top:calc(-1 * var(--s-space-2));margin-right:0.625rem;flex-shrink:0}.toast__icon ::part(icon){color:var(--s-icon-on-status)}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left}.toast__dismiss-button{display:inline-flex;min-width:1.5rem;height:1.5rem;margin-top:calc(-1 * var(--s-space-2));margin-left:var(--s-space-16);padding:0;flex-shrink:0;justify-content:center;align-items:center;border:none;color:var(--s-text-on-status);background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);cursor:pointer}.toast__dismiss-button ::part(icon){color:var(--s-icon-on-status)}", n = class {
|
|
7
|
-
constructor(s) {
|
|
8
|
-
i(this, s), this.dismiss = a(this, "dismiss", 7), this.accessibleDismissLabel = "Dismiss", this.intent = "default", this.onDismiss = () => {
|
|
9
|
-
this.dismiss.emit(this.toastId);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
watchDuration() {
|
|
13
|
-
this.startTimer();
|
|
14
|
-
}
|
|
15
|
-
componentDidLoad() {
|
|
16
|
-
this.startTimer();
|
|
17
|
-
}
|
|
18
|
-
startTimer() {
|
|
19
|
-
this.clearTimer(), this.duration !== void 0 && (this.timeout = setTimeout(() => {
|
|
20
|
-
this.dismiss.emit(this.toastId);
|
|
21
|
-
}, this.duration));
|
|
22
|
-
}
|
|
23
|
-
clearTimer() {
|
|
24
|
-
!Boolean(this.timeout) || (clearTimeout(this.timeout), this.timeout = void 0);
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const s = o("toast", `toast--intent-${this.intent}`);
|
|
28
|
-
return t(e, null, t("div", { class: s }, this.icon && t("span", { class: "toast__icon", innerHTML: this.icon }), t("span", { class: "toast__content" }, this.content), t("button", { "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && t("flip-icon-close", null))));
|
|
29
|
-
}
|
|
30
|
-
static get watchers() {
|
|
31
|
-
return {
|
|
32
|
-
duration: ["watchDuration"]
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
n.style = r;
|
|
37
|
-
export {
|
|
38
|
-
n as flip_toast
|
|
39
|
-
};
|