@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
package/dist/{_commonjsHelpers-44457d8d.ba94af77.js → _commonjsHelpers-10467d11.b7d83301.js}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { c as ie, a as oe } from "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
2
|
+
var re = ie(function(C) {
|
|
3
|
+
(function(y, c) {
|
|
4
|
+
C.exports ? C.exports = c() : y.balanceText = c();
|
|
5
|
+
})(oe, () => {
|
|
6
|
+
let y, c, u;
|
|
7
|
+
const l = {
|
|
8
|
+
sel: [],
|
|
9
|
+
el: []
|
|
10
|
+
};
|
|
11
|
+
let O = !1, A = !1;
|
|
12
|
+
function H() {
|
|
13
|
+
}
|
|
14
|
+
function w(e, t) {
|
|
15
|
+
Array.prototype.forEach.call(e, t);
|
|
16
|
+
}
|
|
17
|
+
function G(e) {
|
|
18
|
+
document.readyState !== "loading" ? e() : document.addEventListener ? document.addEventListener("DOMContentLoaded", e) : document.attachEvent("onreadystatechange", () => {
|
|
19
|
+
document.readyState !== "loading" && e();
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function J(e, t, i, ...n) {
|
|
23
|
+
let o;
|
|
24
|
+
return function() {
|
|
25
|
+
const s = this;
|
|
26
|
+
function f() {
|
|
27
|
+
i || e.apply(s, n), o = null;
|
|
28
|
+
}
|
|
29
|
+
o ? clearTimeout(o) : i && e.apply(s, n), o = setTimeout(f, t || 100);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function P() {
|
|
33
|
+
if (typeof window > "u")
|
|
34
|
+
return !1;
|
|
35
|
+
const { style: e } = document.documentElement;
|
|
36
|
+
return e.textWrap || e.WebkitTextWrap || e.MozTextWrap || e.MsTextWrap;
|
|
37
|
+
}
|
|
38
|
+
function E() {
|
|
39
|
+
this.reset();
|
|
40
|
+
}
|
|
41
|
+
E.prototype.reset = function() {
|
|
42
|
+
this.index = 0, this.width = 0;
|
|
43
|
+
};
|
|
44
|
+
function U(e) {
|
|
45
|
+
return c.some((t) => t.start < e && e < t.end);
|
|
46
|
+
}
|
|
47
|
+
function j(e, t) {
|
|
48
|
+
if (e.nodeType === e.ELEMENT_NODE)
|
|
49
|
+
if (window.getComputedStyle(e).whiteSpace === "nowrap") {
|
|
50
|
+
const n = e.outerHTML.length;
|
|
51
|
+
c.push({ start: u, end: u + n }), u += n;
|
|
52
|
+
} else
|
|
53
|
+
w(e.childNodes, (n) => {
|
|
54
|
+
j(n, !0);
|
|
55
|
+
}), t && (u += e.outerHTML.length - e.innerHTML.length);
|
|
56
|
+
else
|
|
57
|
+
e.nodeType === e.COMMENT_NODE ? u += e.length + 7 : e.nodeType === e.PROCESSING_INSTRUCTION_NODE ? u += e.length + 2 : u += e.length;
|
|
58
|
+
}
|
|
59
|
+
function K(e, t, i) {
|
|
60
|
+
if (i === 0)
|
|
61
|
+
e.style.whiteSpace = t, u = 0, c = [], j(e, !1), e.style.whiteSpace = "nowrap";
|
|
62
|
+
else {
|
|
63
|
+
const n = [];
|
|
64
|
+
c.forEach((o) => {
|
|
65
|
+
o.start > i && n.push({ start: o.start - i, end: o.end - i });
|
|
66
|
+
}), c = n;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function Q(e) {
|
|
70
|
+
let t = e.querySelectorAll('br[data-owner="balance-text-hyphen"]');
|
|
71
|
+
w(t, (n) => {
|
|
72
|
+
n.outerHTML = "";
|
|
73
|
+
}), t = e.querySelectorAll('br[data-owner="balance-text"]'), w(t, (n) => {
|
|
74
|
+
n.outerHTML = " ";
|
|
75
|
+
});
|
|
76
|
+
let i = e.querySelectorAll('span[data-owner="balance-text-softhyphen"]');
|
|
77
|
+
if (i.length > 0 && w(i, (n) => {
|
|
78
|
+
const o = document.createTextNode("\xAD");
|
|
79
|
+
n.parentNode.insertBefore(o, n), n.parentNode.removeChild(n);
|
|
80
|
+
}), i = e.querySelectorAll('span[data-owner="balance-text-justify"]'), i.length > 0) {
|
|
81
|
+
let n = "";
|
|
82
|
+
w(i, (o) => {
|
|
83
|
+
n += o.textContent, o.parentNode.removeChild(o);
|
|
84
|
+
}), e.innerHTML = n;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const V = function(e) {
|
|
88
|
+
return (e.currentStyle || window.getComputedStyle(e, null)).textAlign === "justify";
|
|
89
|
+
};
|
|
90
|
+
function k(e, t, i) {
|
|
91
|
+
t = t.trim();
|
|
92
|
+
const n = t.split(" ").length;
|
|
93
|
+
if (t = `${t} `, n < 2)
|
|
94
|
+
return t;
|
|
95
|
+
const o = document.createElement("span");
|
|
96
|
+
o.innerHTML = t, e.appendChild(o);
|
|
97
|
+
const s = o.offsetWidth;
|
|
98
|
+
o.parentNode.removeChild(o);
|
|
99
|
+
const f = Math.floor((i - s) / (n - 1));
|
|
100
|
+
o.style.wordSpacing = `${f}px`, o.setAttribute("data-owner", "balance-text-justify");
|
|
101
|
+
const a = document.createElement("div");
|
|
102
|
+
return a.appendChild(o), a.innerHTML;
|
|
103
|
+
}
|
|
104
|
+
function B(e, t) {
|
|
105
|
+
const i = /([^\S\u00a0]|-|\u2014|\u2013|\u00ad)(?![^<]*>)/g;
|
|
106
|
+
let n;
|
|
107
|
+
if (!y)
|
|
108
|
+
for (y = [], n = i.exec(e); n !== null; )
|
|
109
|
+
U(n.index) || y.push(n.index), n = i.exec(e);
|
|
110
|
+
return y.indexOf(t) !== -1;
|
|
111
|
+
}
|
|
112
|
+
function X(e, t) {
|
|
113
|
+
return t === 0 || t === e.length || B(e, t - 1) && !B(e, t);
|
|
114
|
+
}
|
|
115
|
+
function N(e, t, i, n, o, s, f) {
|
|
116
|
+
let a;
|
|
117
|
+
if (t && typeof t == "string")
|
|
118
|
+
for (; ; ) {
|
|
119
|
+
for (; !X(t, s); )
|
|
120
|
+
s += o;
|
|
121
|
+
if (e.innerHTML = t.substr(0, s), a = e.offsetWidth, o < 0) {
|
|
122
|
+
if (a <= n || a <= 0 || s === 0)
|
|
123
|
+
break;
|
|
124
|
+
} else if (n <= a || i <= a || s === t.length)
|
|
125
|
+
break;
|
|
126
|
+
s += o;
|
|
127
|
+
}
|
|
128
|
+
f.index = s, f.width = a;
|
|
129
|
+
}
|
|
130
|
+
function Y(e, t) {
|
|
131
|
+
const i = document.createElement("div");
|
|
132
|
+
i.style.display = "block", i.style.position = "absolute", i.style.bottom = 0, i.style.right = 0, i.style.width = 0, i.style.height = 0, i.style.margin = 0, i.style.padding = 0, i.style.visibility = "hidden", i.style.overflow = "hidden";
|
|
133
|
+
const n = document.createElement("span");
|
|
134
|
+
n.style.fontSize = "2000px", n.innerHTML = " ", i.appendChild(n), e.appendChild(i);
|
|
135
|
+
const o = n.getBoundingClientRect();
|
|
136
|
+
i.parentNode.removeChild(i);
|
|
137
|
+
const s = o.height / o.width;
|
|
138
|
+
return t / s;
|
|
139
|
+
}
|
|
140
|
+
function S(e) {
|
|
141
|
+
return e ? typeof e == "string" ? document.querySelectorAll(e) : e.tagName && e.querySelectorAll ? [e] : e : [];
|
|
142
|
+
}
|
|
143
|
+
function I(e) {
|
|
144
|
+
w(S(e), (t) => {
|
|
145
|
+
Q(t);
|
|
146
|
+
const n = t.style.whiteSpace, o = t.style.float, s = t.style.display, f = t.style.position, a = t.style.lineHeight;
|
|
147
|
+
t.style.lineHeight = "normal";
|
|
148
|
+
const h = t.offsetWidth, ne = t.offsetHeight;
|
|
149
|
+
t.style.whiteSpace = "nowrap", t.style.float = "none", t.style.display = "inline", t.style.position = "static";
|
|
150
|
+
let L = t.offsetWidth;
|
|
151
|
+
const z = t.offsetHeight, D = n === "pre-wrap" ? 0 : Y(t, z);
|
|
152
|
+
if (h > 0 && L > h && L < 5e3) {
|
|
153
|
+
let r = t.innerHTML, M = "", g = "";
|
|
154
|
+
const _ = V(t);
|
|
155
|
+
let W = Math.round(ne / z), R = 0, b, x, d, p, T, F, v;
|
|
156
|
+
for (; W > 1; )
|
|
157
|
+
y = null, K(t, n, R), b = Math.round((L + D) / W - D), x = Math.round((r.length + 1) / W) - 1, d = new E(), N(t, r, h, b, -1, x, d), p = new E(), x = d.index, N(t, r, h, b, 1, x, p), d.reset(), x = p.index, N(t, r, h, b, -1, x, d), d.index === 0 ? T = p.index : h < p.width || d.index === p.index ? T = d.index : T = Math.abs(b - d.width) < Math.abs(p.width - b) ? d.index : p.index, g = r.substr(0, T).replace(/\s$/, ""), v = Boolean(g.match(/\u00ad$/)), v && (g = g.replace(/\u00ad$/, '<span data-owner="balance-text-softhyphen">-</span>')), _ ? M += k(t, g, h) : (M += g, F = v || Boolean(g.match(/(-|\u2014|\u2013)$/)), M += F ? '<br data-owner="balance-text-hyphen" />' : '<br data-owner="balance-text" aria-hidden="true" />'), r = r.substr(T), R = T, W--, t.innerHTML = r, L = t.offsetWidth;
|
|
158
|
+
_ ? t.innerHTML = M + k(t, r, h) : t.innerHTML = M + r;
|
|
159
|
+
}
|
|
160
|
+
t.style.whiteSpace = n, t.style.float = o, t.style.display = s, t.style.position = f, t.style.lineHeight = a;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
function m() {
|
|
164
|
+
const e = l.sel.join(","), t = S(e), i = Array.prototype.concat.apply(l.el, t);
|
|
165
|
+
I(i);
|
|
166
|
+
}
|
|
167
|
+
function q() {
|
|
168
|
+
O || (G(m), window.addEventListener("load", m), window.addEventListener("resize", J(m)), O = !0);
|
|
169
|
+
}
|
|
170
|
+
function Z(e) {
|
|
171
|
+
typeof e == "string" ? l.sel.push(e) : w(S(e), (t) => {
|
|
172
|
+
l.el.push(t);
|
|
173
|
+
}), q(), m();
|
|
174
|
+
}
|
|
175
|
+
function ee(e) {
|
|
176
|
+
typeof e == "string" ? l.sel = l.sel.filter((t) => t !== e) : (e = S(e), l.el = l.el.filter((t) => e.indexOf(t) === -1));
|
|
177
|
+
}
|
|
178
|
+
function te() {
|
|
179
|
+
A || (l.sel.push(".balance-text"), q(), A = !0);
|
|
180
|
+
}
|
|
181
|
+
function $(e, t) {
|
|
182
|
+
e ? t && t.watch === !0 ? Z(e) : t && t.watch === !1 ? ee(e) : I(e) : te();
|
|
183
|
+
}
|
|
184
|
+
return $.updateWatched = m, P() ? (H.updateWatched = H, H) : $;
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
export {
|
|
188
|
+
re as b
|
|
189
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { r as o, h as e, H as s } from "./index.149af511.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const n = {
|
|
5
|
+
directories: [
|
|
6
|
+
{
|
|
7
|
+
name: "Development",
|
|
8
|
+
description: "Updated 2 days ago.",
|
|
9
|
+
children: [
|
|
10
|
+
{
|
|
11
|
+
description: "1.02 MB, updated 2 days ago.",
|
|
12
|
+
name: "sample.pdf",
|
|
13
|
+
type: "application/pdf",
|
|
14
|
+
url: "/sample.pdf"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
description: "124 KB, updated a month ago.",
|
|
18
|
+
name: "sample.jpg",
|
|
19
|
+
type: "image/jpeg",
|
|
20
|
+
url: "/sample.jpg"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "People",
|
|
26
|
+
description: "Updated just now.",
|
|
27
|
+
children: []
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}, c = class {
|
|
31
|
+
constructor(t) {
|
|
32
|
+
o(this, t), this.selectItem = (i) => {
|
|
33
|
+
"type" in i ? (this.selectedFile = i, this.layout.changeMobileView("body")) : this.selectedDirectory = i;
|
|
34
|
+
}, this.resetSelectedDirectory = () => {
|
|
35
|
+
this.selectedDirectory = void 0;
|
|
36
|
+
}, this.toggleSidebar = () => {
|
|
37
|
+
var i;
|
|
38
|
+
(i = this.layout) === null || i === void 0 || i.toggleSidebar();
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
renderNavigation() {
|
|
42
|
+
const t = Boolean(this.selectedDirectory) ? this.selectedDirectory.children : n.directories;
|
|
43
|
+
return t.length > 0 ? t.map((i) => e("swirl-resource-list-item", {
|
|
44
|
+
description: i.description,
|
|
45
|
+
key: i.name,
|
|
46
|
+
label: i.name,
|
|
47
|
+
media: "type" in i ? "<swirl-icon-file></swirl-icon-file>" : "<swirl-icon-folder-shared></swirl-icon-folder-shared>",
|
|
48
|
+
onClick: () => this.selectItem(i)
|
|
49
|
+
})) : e("swirl-box", { padding: "16" }, e("swirl-text", { color: "subdued", weight: "medium" }, "This directory is empty."));
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
var t, i;
|
|
53
|
+
return e(s, null, e("swirl-app-layout", { appName: "Documents", backToNavigationViewButtonLabel: "Back to documents list", ctaIcon: "<swirl-icon-add></swirl-icon-add>", ctaLabel: "Upload file", heading: (t = this.selectedFile) === null || t === void 0 ? void 0 : t.name, navigationLabel: "Documents", onNavigationBackButtonClick: this.resetSelectedDirectory, ref: (l) => this.layout = l, sidebarCloseButtonLabel: "Close file info", sidebarHeading: "File info", showNavigationBackButton: Boolean(this.selectedDirectory), subheading: (i = this.selectedFile) === null || i === void 0 ? void 0 : i.description, transitionStyle: "dialog" }, e("swirl-resource-list", { label: "Documents", slot: "navigation" }, this.renderNavigation()), e("swirl-button", { id: "sort-button", label: "Sort items", slot: "navigation-controls" }), Boolean(this.selectedFile) ? e("swirl-file-viewer", { file: this.selectedFile.url, slot: "content", type: this.selectedFile.type }) : e("swirl-box", { cover: !0, centerBlock: !0, centerInline: !0, padding: "16", slot: "content" }, e("swirl-empty-state", { heading: "Nothing to see here.", illustration: "/images/empty-state-1.svg" }, "Please select a file from the list.")), e("div", { slot: "app-bar-controls" }, this.selectedFile && e("swirl-button", { "hide-label": !0, class: "info-button", icon: "<swirl-icon-info></swirl-icon-info>", label: "Open file info", onClick: this.toggleSidebar })), e("swirl-box", { padding: "16", slot: "sidebar" }, e("swirl-text", { color: "subdued", weight: "medium" }, "File info goes here \u2026"))), e("swirl-popover", { label: "Sort items", popoverId: "sort-menu", trigger: "sort-button" }, e("swirl-option-list", { value: ["ascending"] }, e("swirl-option-list-item", { icon: "<swirl-icon-expand-less></swirl-icon-expand-less>", label: "Ascending", value: "ascending" }), e("swirl-option-list-item", { icon: "<swirl-icon-expand-more></swirl-icon-expand-more>", label: "Descending", value: "descending" }), e("swirl-option-list-item", { icon: "<swirl-icon-time-outlined></swirl-icon-time-outlined>", label: "By date", value: "date" }))));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
c as file_manager
|
|
58
|
+
};
|
package/dist/{floating-ui.dom.esm-1a4e8b8a.87557233.js → floating-ui.dom.esm-b9f28f6d.15013ef7.js}
RENAMED
|
File without changes
|