@getflip/swirl-components-react 0.11.0 → 0.13.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.7f94c2d2.js → file-manager.entry.44afe574.js} +2 -2
- package/dist/{floating-ui.dom.esm-1a4e8b8a.87557233.js → floating-ui.dom.esm-b9f28f6d.15013ef7.js} +0 -0
- package/dist/{index-c3028f7d.557956d2.js → index-47862d62.75c2fcf1.js} +1 -1
- package/dist/index.d74835eb.js +1416 -0
- package/dist/stencil-generated/index.d.ts +3 -0
- package/dist/{swirl-action-list-item.entry.447b2688.js → swirl-action-list-item.entry.22d34bbd.js} +9 -9
- package/dist/{swirl-action-list-section.entry.e84808c9.js → swirl-action-list-section.entry.c91e7d7a.js} +6 -6
- package/dist/{swirl-action-list.entry.2fb802dc.js → swirl-action-list.entry.0d2936d4.js} +2 -2
- package/dist/{swirl-app-layout_5.entry.875542b9.js → swirl-app-layout_5.entry.abd68f10.js} +72 -72
- package/dist/{swirl-autocomplete.entry.7be53f33.js → swirl-autocomplete.entry.ca2df230.js} +11 -11
- package/dist/{swirl-avatar-group.entry.38bafbf0.js → swirl-avatar-group.entry.c4e75b36.js} +5 -5
- package/dist/{swirl-avatar.entry.6107d926.js → swirl-avatar.entry.46fb8405.js} +13 -13
- package/dist/{swirl-badge.entry.1f4d89cf.js → swirl-badge.entry.d2d0941a.js} +4 -4
- package/dist/{swirl-banner.entry.2d29edfc.js → swirl-banner.entry.55c2e81c.js} +7 -7
- package/dist/{swirl-button-group.entry.8ce93c3c.js → swirl-button-group.entry.2a7f639c.js} +7 -7
- package/dist/{swirl-button.entry.42b57f80.js → swirl-button.entry.4fb44693.js} +22 -22
- package/dist/{swirl-card.entry.a09d5cdf.js → swirl-card.entry.ae45d1e4.js} +6 -6
- package/dist/{swirl-checkbox.entry.58064458.js → swirl-checkbox.entry.4fd6f222.js} +12 -12
- package/dist/{swirl-chip.entry.b6b676d6.js → swirl-chip.entry.d023e9b6.js} +9 -9
- package/dist/swirl-components-react.js +105 -102
- package/dist/swirl-components-react.umd.cjs +77 -42
- package/dist/{swirl-console-layout.entry.88cca8db.js → swirl-console-layout.entry.57e74dab.js} +16 -16
- package/dist/{swirl-date-input.entry.1ff3f34d.js → swirl-date-input.entry.9a19f65d.js} +622 -619
- package/dist/swirl-date-picker_2.entry.9bad1948.js +37 -0
- package/dist/{swirl-description-list-item.entry.e5e7327a.js → swirl-description-list-item.entry.2872cecd.js} +2 -2
- package/dist/{swirl-description-list.entry.b451e1b2.js → swirl-description-list.entry.e98b5f6a.js} +1 -1
- package/dist/{swirl-dialog.entry.27d08ab3.js → swirl-dialog.entry.3c314ce8.js} +5 -5
- package/dist/{swirl-file-uploader.entry.6c075751.js → swirl-file-uploader.entry.a961108f.js} +5 -5
- package/dist/{swirl-file-viewer_7.entry.2d664fd5.js → swirl-file-viewer_7.entry.80730f50.js} +13 -13
- package/dist/swirl-form-control.entry.7b7792b7.js +70 -0
- package/dist/{swirl-form-group.entry.f58b5fda.js → swirl-form-group.entry.8ab35b6b.js} +3 -3
- package/dist/{swirl-heading.entry.1761ccaf.js → swirl-heading.entry.f6f15b36.js} +20 -10
- package/dist/{swirl-icon-add-photo.entry.2be32855.js → swirl-icon-add-photo.entry.e834d584.js} +3 -3
- package/dist/{swirl-icon-add_4.entry.54bb7e89.js → swirl-icon-add_4.entry.7a361599.js} +3 -3
- package/dist/{swirl-icon-admin-panel-settings.entry.a43bcc7d.js → swirl-icon-admin-panel-settings.entry.d609d64c.js} +3 -3
- package/dist/{swirl-icon-arrow-back.entry.ee4ddf1e.js → swirl-icon-arrow-back.entry.8acd2db8.js} +3 -3
- package/dist/{swirl-icon-arrow-downward_2.entry.74231d7a.js → swirl-icon-arrow-downward_2.entry.2444d544.js} +3 -3
- package/dist/{swirl-icon-arrow-forward.entry.a895e898.js → swirl-icon-arrow-forward.entry.7faa307c.js} +3 -3
- package/dist/{swirl-icon-arrow-left_3.entry.6ea8dad5.js → swirl-icon-arrow-left_3.entry.8aafc12d.js} +3 -3
- package/dist/{swirl-icon-arrow-right-small.entry.daf39424.js → swirl-icon-arrow-right-small.entry.b71661c0.js} +3 -3
- package/dist/{swirl-icon-attachment.entry.2cb8c35f.js → swirl-icon-attachment.entry.9953efe2.js} +3 -3
- package/dist/{swirl-icon-block.entry.0d7f0e2b.js → swirl-icon-block.entry.1e6aeb65.js} +3 -3
- package/dist/{swirl-icon-cancel_4.entry.2943f0c0.js → swirl-icon-cancel_4.entry.6fb2872f.js} +3 -3
- package/dist/{swirl-icon-chat-bubble.entry.66624624.js → swirl-icon-chat-bubble.entry.0b5c13c1.js} +3 -3
- package/dist/{swirl-icon-chats-filled.entry.83e0eeb7.js → swirl-icon-chats-filled.entry.f2c5a42a.js} +3 -3
- package/dist/{swirl-icon-chats-outlined.entry.f768aca8.js → swirl-icon-chats-outlined.entry.b37c9fd2.js} +3 -3
- package/dist/{swirl-icon-check-circle.entry.03a596c7.js → swirl-icon-check-circle.entry.9a3ba07b.js} +3 -3
- package/dist/swirl-icon-check-small_4.entry.0b082015.js +1468 -0
- package/dist/{swirl-icon-check-strong.entry.88cfb7b3.js → swirl-icon-check-strong.entry.32e1c97e.js} +3 -3
- package/dist/{swirl-icon-check.entry.360c5b8c.js → swirl-icon-check.entry.965b4009.js} +3 -3
- package/dist/{swirl-icon-chevron-left.entry.d6f5077d.js → swirl-icon-chevron-left.entry.ca081027.js} +3 -3
- package/dist/{swirl-icon-chevron-right.entry.4cbdaed5.js → swirl-icon-chevron-right.entry.d63b1c26.js} +3 -3
- package/dist/{swirl-icon-close-small.entry.d223e192.js → swirl-icon-close-small.entry.3785692a.js} +3 -3
- package/dist/{swirl-icon-close.entry.eee59783.js → swirl-icon-close.entry.7d6556d2.js} +3 -3
- package/dist/{swirl-icon-cloud-upload.entry.b50d30c3.js → swirl-icon-cloud-upload.entry.ee85d552.js} +3 -3
- package/dist/{swirl-icon-column.entry.07e869e3.js → swirl-icon-column.entry.d0591e93.js} +3 -3
- package/dist/{swirl-icon-comment.entry.221fe61a.js → swirl-icon-comment.entry.43355ec3.js} +3 -3
- package/dist/{swirl-icon-copy.entry.d113e5bb.js → swirl-icon-copy.entry.a9739808.js} +3 -3
- package/dist/{swirl-icon-date-range.entry.a1eb0554.js → swirl-icon-date-range.entry.c774ab8b.js} +3 -3
- package/dist/{swirl-icon-delete.entry.ebcf7073.js → swirl-icon-delete.entry.bf4b1f3b.js} +3 -3
- package/dist/{swirl-icon-description.entry.fb0d88a1.js → swirl-icon-description.entry.b8f1d590.js} +3 -3
- package/dist/{swirl-icon-edit.entry.c6cf867f.js → swirl-icon-edit.entry.1a96f349.js} +3 -3
- package/dist/{swirl-icon-emoji-mood.entry.bf9ee6c2.js → swirl-icon-emoji-mood.entry.f0ea6dc7.js} +3 -3
- package/dist/{swirl-icon-emoji-satisfied.entry.df8c1d60.js → swirl-icon-emoji-satisfied.entry.bacaef7c.js} +3 -3
- package/dist/{swirl-icon-error_3.entry.c21fbb54.js → swirl-icon-error_3.entry.77f2e57a.js} +13 -13
- package/dist/{swirl-icon-expand-more.entry.bbde4949.js → swirl-icon-expand-more.entry.5cf4f099.js} +3 -3
- package/dist/{swirl-icon-file.entry.7ab04321.js → swirl-icon-file.entry.b7c820e1.js} +3 -3
- package/dist/{swirl-icon-filter.entry.95211f5f.js → swirl-icon-filter.entry.25e3c016.js} +3 -3
- package/dist/{swirl-icon-folder-shared.entry.052229e9.js → swirl-icon-folder-shared.entry.8c6badf3.js} +3 -3
- package/dist/{swirl-icon-group-assign.entry.bb3ba16d.js → swirl-icon-group-assign.entry.5f9bcfc3.js} +3 -3
- package/dist/{swirl-icon-groups-custom.entry.89cb31bf.js → swirl-icon-groups-custom.entry.822d8779.js} +3 -3
- package/dist/{swirl-icon-groups-filled.entry.8e4dd776.js → swirl-icon-groups-filled.entry.acb66d44.js} +3 -3
- package/dist/{swirl-icon-groups-outlined.entry.d257fa35.js → swirl-icon-groups-outlined.entry.ccdaa445.js} +3 -3
- package/dist/{swirl-icon-groups.entry.eb164fa2.js → swirl-icon-groups.entry.6a86024e.js} +3 -3
- package/dist/{swirl-icon-help.entry.95af80fe.js → swirl-icon-help.entry.b993b08d.js} +3 -3
- package/dist/{swirl-icon-image.entry.ac7fce8a.js → swirl-icon-image.entry.f2786c07.js} +3 -3
- package/dist/{swirl-icon-info.entry.7bea6932.js → swirl-icon-info.entry.a37b48cb.js} +3 -3
- package/dist/{swirl-icon-inventory.entry.7bb8c552.js → swirl-icon-inventory.entry.d51e9d40.js} +3 -3
- package/dist/{swirl-icon-like.entry.ec92b9fd.js → swirl-icon-like.entry.d2bff5cf.js} +3 -3
- package/dist/{swirl-icon-link.entry.f3d5937c.js → swirl-icon-link.entry.dd2ec94a.js} +3 -3
- package/dist/{swirl-icon-lock.entry.807d8a95.js → swirl-icon-lock.entry.dd827390.js} +3 -3
- package/dist/{swirl-icon-logout.entry.4f31d257.js → swirl-icon-logout.entry.37e7dbf7.js} +3 -3
- package/dist/{swirl-icon-mail.entry.54c49af9.js → swirl-icon-mail.entry.aa5549f0.js} +3 -3
- package/dist/{swirl-icon-manage-accounts.entry.8bc3721c.js → swirl-icon-manage-accounts.entry.0ea7b173.js} +3 -3
- package/dist/{swirl-icon-mention.entry.5cf61986.js → swirl-icon-mention.entry.625f0842.js} +3 -3
- package/dist/{swirl-icon-menu-filled.entry.1597fcdc.js → swirl-icon-menu-filled.entry.831e831b.js} +3 -3
- package/dist/{swirl-icon-menu-outlined.entry.05c230c7.js → swirl-icon-menu-outlined.entry.eefcb24d.js} +3 -3
- package/dist/{swirl-icon-menu.entry.eb38317a.js → swirl-icon-menu.entry.1cc3453e.js} +3 -3
- package/dist/{swirl-icon-message.entry.3f3b0ee6.js → swirl-icon-message.entry.2b7599f4.js} +3 -3
- package/dist/{swirl-icon-more-horizontal.entry.746bde39.js → swirl-icon-more-horizontal.entry.b5c24b7a.js} +3 -3
- package/dist/{swirl-icon-more-vertikal.entry.bf9342ef.js → swirl-icon-more-vertikal.entry.04d7e5a6.js} +3 -3
- package/dist/{swirl-icon-news-filled.entry.1c1d78f8.js → swirl-icon-news-filled.entry.6190c1e5.js} +3 -3
- package/dist/{swirl-icon-news-outlined.entry.76c94ea9.js → swirl-icon-news-outlined.entry.e547af31.js} +3 -3
- package/dist/{swirl-icon-notifications-active.entry.d8c49de6.js → swirl-icon-notifications-active.entry.443daf87.js} +3 -3
- package/dist/{swirl-icon-notifications-off.entry.2c8866a8.js → swirl-icon-notifications-off.entry.9c7a77ac.js} +3 -3
- package/dist/{swirl-icon-notifications.entry.a5c7b275.js → swirl-icon-notifications.entry.486efc01.js} +3 -3
- package/dist/{swirl-icon-open-in-new.entry.128350f5.js → swirl-icon-open-in-new.entry.9a6a0052.js} +3 -3
- package/dist/{swirl-icon-people-alt.entry.7ac6d23a.js → swirl-icon-people-alt.entry.d3886045.js} +3 -3
- package/dist/{swirl-icon-person-off.entry.fda1c4d4.js → swirl-icon-person-off.entry.b3ea5502.js} +3 -3
- package/dist/{swirl-icon-person.entry.19fc5367.js → swirl-icon-person.entry.13a5b347.js} +3 -3
- package/dist/{swirl-icon-phone.entry.73cfee35.js → swirl-icon-phone.entry.0634bc2d.js} +3 -3
- package/dist/{swirl-icon-poll.entry.4ab05380.js → swirl-icon-poll.entry.048d86d7.js} +3 -3
- package/dist/{swirl-icon-print.entry.cd89ebc5.js → swirl-icon-print.entry.bccea0d9.js} +3 -3
- package/dist/{swirl-icon-recieved.entry.56d93432.js → swirl-icon-recieved.entry.549226c8.js} +3 -3
- package/dist/{swirl-icon-search-strong.entry.904a6694.js → swirl-icon-search-strong.entry.5038a3d3.js} +3 -3
- package/dist/{swirl-icon-search.entry.cf65f83f.js → swirl-icon-search.entry.933cda43.js} +3 -3
- package/dist/{swirl-icon-send.entry.56297757.js → swirl-icon-send.entry.570f8888.js} +3 -3
- package/dist/{swirl-icon-settings.entry.1c988cf1.js → swirl-icon-settings.entry.4267149c.js} +3 -3
- package/dist/{swirl-icon-sync.entry.b88dd7b8.js → swirl-icon-sync.entry.fdfe7aba.js} +3 -3
- package/dist/{swirl-icon-tasks-filled.entry.b2bf1c6e.js → swirl-icon-tasks-filled.entry.ded975a6.js} +3 -3
- package/dist/{swirl-icon-tasks-outlined.entry.09551261.js → swirl-icon-tasks-outlined.entry.9774132f.js} +3 -3
- package/dist/{swirl-icon-time-filled.entry.4954d002.js → swirl-icon-time-filled.entry.300bac3f.js} +3 -3
- package/dist/{swirl-icon-time-outlined.entry.697e9656.js → swirl-icon-time-outlined.entry.aff5bc33.js} +3 -3
- package/dist/{swirl-icon-user-assign.entry.fe5b582b.js → swirl-icon-user-assign.entry.eb8db1a8.js} +3 -3
- package/dist/{swirl-icon-video-camera.entry.d4707dde.js → swirl-icon-video-camera.entry.8855fd0a.js} +3 -3
- package/dist/{swirl-icon-warning.entry.69762f5b.js → swirl-icon-warning.entry.4b60bf85.js} +3 -3
- package/dist/{swirl-lightbox.entry.bae60d38.js → swirl-lightbox.entry.03ab7b33.js} +6 -6
- package/dist/{swirl-link.entry.3d52e8ef.js → swirl-link.entry.ab3a7bd8.js} +3 -3
- package/dist/{swirl-list.entry.53688da6.js → swirl-list.entry.ab67b563.js} +1 -1
- package/dist/{swirl-modal.entry.4bf5e6c3.js → swirl-modal.entry.4e72a21b.js} +15 -15
- package/dist/{swirl-option-list-section.entry.898ea907.js → swirl-option-list-section.entry.e98eecf1.js} +6 -6
- package/dist/{swirl-pagination.entry.b892dbdb.js → swirl-pagination.entry.c9d0b689.js} +8 -8
- package/dist/{swirl-pdf-reader.entry.28aa5b27.js → swirl-pdf-reader.entry.fbcbb9bf.js} +7 -7
- package/dist/{swirl-popover.entry.3e96f1d7.js → swirl-popover.entry.4ef4ee64.js} +8 -8
- package/dist/{swirl-progress-indicator.entry.30f3d224.js → swirl-progress-indicator.entry.c61c12fe.js} +4 -4
- package/dist/{swirl-radio-group.entry.9cbdf732.js → swirl-radio-group.entry.c311185d.js} +2 -2
- package/dist/{swirl-radio.entry.7a24ed80.js → swirl-radio.entry.257ccde8.js} +7 -7
- package/dist/{swirl-resource-list-file-item.entry.c7c3d567.js → swirl-resource-list-file-item.entry.6fa9004b.js} +7 -7
- package/dist/{swirl-search.entry.19702179.js → swirl-search.entry.8302bf45.js} +8 -8
- package/dist/swirl-select.entry.aba0219a.js +49 -0
- package/dist/{swirl-separator.entry.6dfbb1a4.js → swirl-separator.entry.ef60c75d.js} +1 -1
- package/dist/swirl-skeleton-box.entry.bd0d35d2.js +30 -0
- package/dist/swirl-skeleton-text.entry.c803a988.js +39 -0
- package/dist/{swirl-stack.entry.43f00bc0.js → swirl-stack.entry.b5fa46e8.js} +3 -3
- package/dist/{swirl-switch.entry.eaba1cc3.js → swirl-switch.entry.049b12c8.js} +13 -13
- package/dist/swirl-tab.entry.eab57d24.js +18 -0
- package/dist/{swirl-table-cell.entry.5cacafda.js → swirl-table-cell.entry.ed35c446.js} +1 -1
- package/dist/{swirl-table-column.entry.d66cfcf5.js → swirl-table-column.entry.e61f908d.js} +3 -3
- package/dist/{swirl-table-row-group.entry.4273e651.js → swirl-table-row-group.entry.bb48715f.js} +2 -2
- package/dist/{swirl-table-row.entry.1f98e36b.js → swirl-table-row.entry.bee5e4a9.js} +7 -7
- package/dist/{swirl-table.entry.5a37f233.js → swirl-table.entry.f59b9b3e.js} +12 -12
- package/dist/{swirl-tabs.entry.a932c6b9.js → swirl-tabs.entry.7810e64a.js} +4 -4
- package/dist/{swirl-tag.entry.2fd7c670.js → swirl-tag.entry.679951ac.js} +10 -10
- package/dist/{swirl-text-input.entry.c1eb2d9c.js → swirl-text-input.entry.bddd1dae.js} +12 -11
- package/dist/swirl-text.entry.9806d4db.js +31 -0
- package/dist/{swirl-theme-provider.entry.5bf11693.js → swirl-theme-provider.entry.ece49018.js} +13 -13
- package/dist/{swirl-thumbnail.entry.3b230d52.js → swirl-thumbnail.entry.342f1f8c.js} +7 -7
- package/dist/{swirl-toast-provider.entry.da18eaab.js → swirl-toast-provider.entry.2788262d.js} +6 -6
- package/dist/{swirl-toast.entry.d0f32449.js → swirl-toast.entry.0e7927ba.js} +7 -7
- package/dist/{swirl-tooltip.entry.e444ef8c.js → swirl-tooltip.entry.c8f0bd4f.js} +4 -4
- package/dist/{swirl-tree-navigation-item.entry.49118257.js → swirl-tree-navigation-item.entry.d5c4aec7.js} +7 -7
- package/dist/{swirl-video-thumbnail.entry.786a3d11.js → swirl-video-thumbnail.entry.2e7f4010.js} +2 -2
- package/dist/{swirl-visually-hidden.entry.1da622ab.js → swirl-visually-hidden.entry.7e057e1b.js} +1 -1
- package/dist/utils-33d31b58.1488fcfe.js +46 -0
- package/dist/wc-datepicker.entry.8c191661.js +269 -0
- package/package.json +2 -2
- package/dist/index.9489626d.js +0 -1393
- package/dist/swirl-date-picker_2.entry.e9905308.js +0 -1188
- package/dist/swirl-form-control.entry.89293c5d.js +0 -65
- package/dist/swirl-icon-check-small_3.entry.b2362b00.js +0 -153
- package/dist/swirl-select.entry.3ff36072.js +0 -48
- package/dist/swirl-tab.entry.982c6bc3.js +0 -18
- package/dist/swirl-text.entry.ec8c8813.js +0 -18
- package/dist/utils-7efaa1c6.4a9c3721.js +0 -42
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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as e, H as s } from "./index.
|
|
1
|
+
import { r as o, h as e, H as s } from "./index.d74835eb.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const n = {
|
|
@@ -36,7 +36,7 @@ const n = {
|
|
|
36
36
|
}, this.toggleSidebar = () => {
|
|
37
37
|
var i;
|
|
38
38
|
(i = this.layout) === null || i === void 0 || i.toggleSidebar();
|
|
39
|
-
};
|
|
39
|
+
}, this.selectedDirectory = void 0, this.selectedFile = void 0;
|
|
40
40
|
}
|
|
41
41
|
renderNavigation() {
|
|
42
42
|
const t = Boolean(this.selectedDirectory) ? this.selectedDirectory.children : n.directories;
|
package/dist/{floating-ui.dom.esm-1a4e8b8a.87557233.js → floating-ui.dom.esm-b9f28f6d.15013ef7.js}
RENAMED
|
File without changes
|