@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as g, h as i, H as _, g as S } from "./index.
|
|
2
|
-
import { i as v } from "./utils-
|
|
1
|
+
import { r as g, h as i, H as _, g as S } from "./index.d74835eb.js";
|
|
2
|
+
import { i as v } from "./utils-33d31b58.1488fcfe.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
var C = function(e) {
|
|
@@ -7,16 +7,16 @@ var C = function(e) {
|
|
|
7
7
|
return function() {
|
|
8
8
|
var w = x(a), h = new Date().getTime(), y = !n || h - n > w;
|
|
9
9
|
n = h;
|
|
10
|
-
for (var l = arguments.length, u = Array(l),
|
|
11
|
-
u[
|
|
10
|
+
for (var l = arguments.length, u = Array(l), f = 0; f < l; f++)
|
|
11
|
+
u[f] = arguments[f];
|
|
12
12
|
if (y && s.leading)
|
|
13
|
-
return s.accumulate ? Promise.resolve(e.call(this, [u])).then(function(
|
|
14
|
-
return
|
|
13
|
+
return s.accumulate ? Promise.resolve(e.call(this, [u])).then(function(b) {
|
|
14
|
+
return b[0];
|
|
15
15
|
}) : Promise.resolve(e.call.apply(e, [this].concat(u)));
|
|
16
16
|
if (r ? clearTimeout(c) : r = L(), o.push(u), c = setTimeout(m.bind(this), w), s.accumulate) {
|
|
17
17
|
var p = o.length - 1;
|
|
18
|
-
return r.promise.then(function(
|
|
19
|
-
return
|
|
18
|
+
return r.promise.then(function(b) {
|
|
19
|
+
return b[p];
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
return r.promise;
|
|
@@ -43,11 +43,11 @@ const R = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
43
43
|
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
44
44
|
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header ::slotted(*){display:flex}.table__empty-row{display:flex}.table__empty-row-cell{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-right:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);border-left:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.table__empty-row-cell>*{flex-grow:1}`, T = class {
|
|
45
45
|
constructor(t) {
|
|
46
|
-
g(this, t), this.
|
|
46
|
+
g(this, t), this.updateLayout = C(async () => {
|
|
47
47
|
await this.resetEmptyRowStyles(), await this.resetRowGroupStyles(), await this.resetCellStyles(), await this.resetColumnStyles(), await this.layoutEmptyRow(), await this.layoutRowGroups(), await this.layOutColumns(), this.layOutCells();
|
|
48
48
|
}, 100), this.onScroll = () => {
|
|
49
49
|
this.updateScrolledState();
|
|
50
|
-
};
|
|
50
|
+
}, this.caption = void 0, this.emptyStateLabel = "No results found.", this.label = void 0, this.empty = void 0, this.scrollable = void 0, this.scrolled = void 0, this.scrolledToEnd = void 0;
|
|
51
51
|
}
|
|
52
52
|
async componentDidRender() {
|
|
53
53
|
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
@@ -115,12 +115,12 @@ const R = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
115
115
|
var n, r;
|
|
116
116
|
const c = e.filter((l, u) => (s - u) % t.length === 0), o = s <= Math.floor(t.length / 2), m = o ? window.getComputedStyle(a).left : window.getComputedStyle(a).right, d = (n = t[s + 1]) === null || n === void 0 ? void 0 : n.sticky, w = (r = t[s - 1]) === null || r === void 0 ? void 0 : r.sticky, h = a.sticky, y = a.width || `${a.getBoundingClientRect().width}px`;
|
|
117
117
|
c.forEach((l) => {
|
|
118
|
-
const u = h && o,
|
|
118
|
+
const u = h && o, f = h && !o, p = o && d;
|
|
119
119
|
if (l.style.flex = Boolean(y) ? `0 0 ${y}` : "", v()) {
|
|
120
120
|
l.classList.remove("table-cell--has-shadow"), l.style.left = "", l.style.right = "", l.style.position = "", l.style.zIndex = "";
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
l.style.left = u ? m : "", l.style.right =
|
|
123
|
+
l.style.left = u ? m : "", l.style.right = f ? m : "", l.style.position = h ? "sticky" : "", l.style.zIndex = p ? "1" : "", h && (o && !d || !o && !w) ? l.classList.add(o ? "table-cell--has-shadow-right" : "table-cell--has-shadow-left") : (l.classList.remove("table-cell--has-shadow-right"), l.classList.remove("table-cell--has-shadow-left"));
|
|
124
124
|
});
|
|
125
125
|
});
|
|
126
126
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as i, c as r, h as e, H as o, g as b } from "./index.
|
|
2
|
-
import { c as n } from "./index-
|
|
1
|
+
import { r as i, c as r, h as e, H as o, g as b } from "./index.d74835eb.js";
|
|
2
|
+
import { c as n } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
6
|
const l = '.sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl-tabs{box-sizing:border-box}.tabs.sc-swirl-tabs{width:100%}.tabs__tab-bar.sc-swirl-tabs{position:relative;display:flex;width:100%;justify-content:flex-start;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.tabs__tab.sc-swirl-tabs{position:relative;display:block;min-width:0;margin:0;padding:var(--s-space-4) var(--s-space-8);border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);cursor:pointer}.tabs__tab.sc-swirl-tabs:focus{outline:none}.tabs__tab.sc-swirl-tabs:focus-visible .tabs__tab-label.sc-swirl-tabs{border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.125rem var(--s-focus-default)}.tabs__tab.sc-swirl-tabs:not(.tabs__tab--active):hover:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-default);content:"";transform:translateX(-50%);pointer-events:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tabs__tab.sc-swirl-tabs{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tabs__tab-label.sc-swirl-tabs{display:block;overflow:hidden;width:100%;padding:var(--s-space-8) var(--s-space-8);text-align:center;white-space:nowrap;text-overflow:ellipsis}.tabs__tab--active.sc-swirl-tabs{color:var(--s-text-highlight)}.tabs__tab--active.sc-swirl-tabs:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-highlight);content:"";transform:translateX(-50%);pointer-events:none}', c = class {
|
|
7
7
|
constructor(t) {
|
|
8
8
|
i(this, t), this.tabActivated = r(this, "tabActivated", 7), this.tabs = [], this.onKeyDown = (a) => {
|
|
9
9
|
a.code === "ArrowLeft" ? (a.preventDefault(), this.activatePreviousTab()) : a.code === "ArrowRight" && (a.preventDefault(), this.activateNextTab());
|
|
10
|
-
};
|
|
10
|
+
}, this.initialTab = void 0, this.label = void 0, this.activeTab = void 0;
|
|
11
11
|
}
|
|
12
12
|
componentWillLoad() {
|
|
13
13
|
this.collectTabs();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r
|
|
2
|
-
import { c as i } from "./index-
|
|
1
|
+
import { r, c as s, h as t, H as n } from "./index.d74835eb.js";
|
|
2
|
+
import { c as i } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
6
|
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tag{display:inline-flex;padding:var(--s-space-2) var(--s-space-8);align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--s-surface-neutral-subdued);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;gap:var(--s-space-4)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--icon-info)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--icon-critical)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--icon-warning)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--icon-success)}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer}.tag__removal-button:focus:not(:focus-visible){outline:none}.tag__removal-button:focus-visible{outline-color:var(--s-focus-default)}", l = class {
|
|
7
|
-
constructor(
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
(
|
|
11
|
-
};
|
|
7
|
+
constructor(a) {
|
|
8
|
+
r(this, a), this.remove = s(this, "remove", 7), this.onRemove = (e) => {
|
|
9
|
+
var o;
|
|
10
|
+
(o = this.remove) === null || o === void 0 || o.emit(e);
|
|
11
|
+
}, this.intent = "default", this.label = void 0, this.removable = void 0, this.removalButtonLabel = "Remove";
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
const
|
|
15
|
-
return t(n, null, t("span", { class:
|
|
14
|
+
const a = i("tag", `tag--intent-${this.intent}`);
|
|
15
|
+
return t(n, null, t("span", { class: a }, this.label, this.removable && t("button", { "aria-label": this.removalButtonLabel, class: "tag__removal-button", onClick: this.onRemove, type: "button" }, t("swirl-icon-close", { size: 16 }))));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
l.style = c;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as h, c as n, h as i, H as d } from "./index.
|
|
2
|
-
import { c } from "./index-
|
|
3
|
-
import { g as x } from "./utils-
|
|
1
|
+
import { r as h, c as n, h as i, H as d } from "./index.d74835eb.js";
|
|
2
|
+
import { c } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { g as x } from "./utils-33d31b58.1488fcfe.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-
|
|
7
|
-
const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}',
|
|
6
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
|
+
const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{display:none}.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:-0.0625rem}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:0}}.text-input--inline.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{top:0}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', m = class {
|
|
8
8
|
constructor(e) {
|
|
9
|
-
h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.
|
|
9
|
+
h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.desktopMediaQuery = x(), this.desktopMediaQueryHandler = (t) => {
|
|
10
10
|
this.updateIconSize(t.matches);
|
|
11
11
|
}, this.clear = () => {
|
|
12
12
|
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
@@ -35,7 +35,7 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
|
|
|
35
35
|
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, s + t)), this.valueChange.emit(this.value);
|
|
36
36
|
}, this.togglePassword = () => {
|
|
37
37
|
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
38
|
-
};
|
|
38
|
+
}, this.autoComplete = "on", this.autoFocus = void 0, this.autoSelect = void 0, this.clearable = void 0, this.clearButtonLabel = "Clear input", this.disabled = void 0, this.disableDynamicWidth = void 0, this.swirlAriaAutocomplete = void 0, this.swirlAriaControls = void 0, this.swirlAriaDescribedby = void 0, this.swirlAriaExpanded = void 0, this.swirlRole = void 0, this.inline = void 0, this.invalid = void 0, this.maxLength = void 0, this.max = void 0, this.min = void 0, this.mode = void 0, this.prefixLabel = void 0, this.required = void 0, this.rows = 1, this.showCharacterCounter = void 0, this.spellCheck = void 0, this.suffixLabel = void 0, this.step = void 0, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.value = void 0, this.iconSize = 24, this.showPassword = !1;
|
|
39
39
|
}
|
|
40
40
|
componentDidLoad() {
|
|
41
41
|
var e, t;
|
|
@@ -59,16 +59,17 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
|
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
var e;
|
|
62
|
-
const t = this.rows === 1 ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0,
|
|
62
|
+
const t = this.rows === 1 ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, r = this.type === "number" && !this.disabled, a = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !a && !r && !this.showCharacterCounter, l = this.type === "password" && this.showPassword ? "text" : this.type, o = c("text-input", `text-input--type-${this.type}`, {
|
|
63
63
|
"text-input--clearable": this.clearable,
|
|
64
64
|
"text-input--disabled": this.disabled,
|
|
65
65
|
"text-input--disable-dynamic-width": this.disableDynamicWidth,
|
|
66
|
+
"text-input--inline": this.inline,
|
|
66
67
|
"text-input--show-password": this.type === "password" && this.showPassword
|
|
67
68
|
});
|
|
68
|
-
return i(d, null, i("div", { class:
|
|
69
|
+
return i(d, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": s, 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: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: l, 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("swirl-icon-cancel", { size: this.iconSize })), a && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("swirl-icon-visibility-off", { size: this.iconSize }) : i("swirl-icon-visibility", { size: this.iconSize })), r && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { size: this.iconSize })), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { size: this.iconSize }))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((e = this.value) === null || e === void 0 ? void 0 : e.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
69
70
|
}
|
|
70
71
|
};
|
|
71
|
-
|
|
72
|
+
m.style = w;
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
m as swirl_text_input
|
|
74
75
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { r, h as e, H as l, g as n } from "./index.d74835eb.js";
|
|
2
|
+
import { c as a } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { b as o } from "./balancetext-31f1ec68.bd1c1b2d.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
|
+
const x = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-swirl-text{box-sizing:border-box}.text.sc-swirl-text{margin:0;padding:0}.text--align-start.sc-swirl-text{text-align:start}.text--align-center.sc-swirl-text{text-align:center}.text--align-end.sc-swirl-text{text-align:end}.text--color-default.sc-swirl-text{color:var(--s-text-default)}.text--color-subdued.sc-swirl-text{color:var(--s-text-subdued)}.text--color-critical.sc-swirl-text{color:var(--s-text-critical)}.text--color-success.sc-swirl-text{color:var(--s-text-success)}.text--color-warning.sc-swirl-text{color:var(--s-text-warning)}.text--size-sm.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.text--size-base.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-base.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-lg);line-height:var(--s-line-height-lg)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text--weight-normal.sc-swirl-text{font-weight:var(--s-font-weight-normal)}.text--weight-medium.sc-swirl-text{font-weight:var(--s-font-weight-medium)}.text--weight-semibold.sc-swirl-text{font-weight:var(--s-font-weight-semibold)}.text--weight-bold.sc-swirl-text{font-weight:var(--s-font-weight-bold)}.text--font-style-normal.sc-swirl-text{font-style:normal}.text--font-style-italic.sc-swirl-text{font-style:italic}.text--truncate.sc-swirl-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}", c = class {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
r(this, t), this.align = "start", this.as = "p", this.balance = void 0, this.color = "default", this.fontStyle = "normal", this.size = "base", this.truncate = void 0, this.weight = "normal";
|
|
10
|
+
}
|
|
11
|
+
componentDidRender() {
|
|
12
|
+
this.rebalance();
|
|
13
|
+
}
|
|
14
|
+
onWindowResize() {
|
|
15
|
+
this.rebalance();
|
|
16
|
+
}
|
|
17
|
+
rebalance() {
|
|
18
|
+
!this.balance || !Boolean(this.textEl) || o(this.textEl);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const t = this.as, s = a("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--weight-${this.weight}`, { "text--truncate": this.truncate });
|
|
22
|
+
return e(l, null, e(t, { class: s, ref: (i) => this.textEl = i }, e("slot", null)));
|
|
23
|
+
}
|
|
24
|
+
get el() {
|
|
25
|
+
return n(this);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
c.style = x;
|
|
29
|
+
export {
|
|
30
|
+
c as swirl_text
|
|
31
|
+
};
|
package/dist/{swirl-theme-provider.entry.5bf11693.js → swirl-theme-provider.entry.ece49018.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as j, c as E, h as w, H } from "./index.
|
|
1
|
+
import { r as j, c as E, h as w, H } from "./index.d74835eb.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
function d(e, t, o) {
|
|
@@ -9,10 +9,10 @@ class P extends Error {
|
|
|
9
9
|
super(`Failed to parse color: "${t}"`);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var p = P;
|
|
13
13
|
function C(e) {
|
|
14
14
|
if (typeof e != "string")
|
|
15
|
-
throw new
|
|
15
|
+
throw new p(e);
|
|
16
16
|
if (e.trim().toLowerCase() === "transparent")
|
|
17
17
|
return [0, 0, 0, 0];
|
|
18
18
|
let t = e.trim();
|
|
@@ -36,12 +36,12 @@ function C(e) {
|
|
|
36
36
|
if (s) {
|
|
37
37
|
const [a, i, h, c] = Array.from(s).slice(1).map(parseFloat);
|
|
38
38
|
if (d(0, 100, i) !== i)
|
|
39
|
-
throw new
|
|
39
|
+
throw new p(e);
|
|
40
40
|
if (d(0, 100, h) !== h)
|
|
41
|
-
throw new
|
|
41
|
+
throw new p(e);
|
|
42
42
|
return [...L(a, i, h), c || 1];
|
|
43
43
|
}
|
|
44
|
-
throw new
|
|
44
|
+
throw new p(e);
|
|
45
45
|
}
|
|
46
46
|
function $(e) {
|
|
47
47
|
let t = 5381, o = e.length;
|
|
@@ -59,7 +59,7 @@ const b = (e) => parseInt(e.replace(/_/g, ""), 36), q = "1q29ehhb 1n09sgk7 1kl1e
|
|
|
59
59
|
function M(e) {
|
|
60
60
|
const t = e.toLowerCase().trim(), o = q[$(t)];
|
|
61
61
|
if (!o)
|
|
62
|
-
throw new
|
|
62
|
+
throw new p(e);
|
|
63
63
|
return `#${o}`;
|
|
64
64
|
}
|
|
65
65
|
const u = (e, t) => Array.from(Array(t)).map(() => e).join(""), A = new RegExp(`^#${u("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), F = new RegExp(`^#${u("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), R = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${u(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), I = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, O = /^[a-z]+$/i, z = (e) => Math.round(e * 255), L = (e, t, o) => {
|
|
@@ -69,11 +69,11 @@ const u = (e, t) => Array.from(Array(t)).map(() => e).join(""), A = new RegExp(`
|
|
|
69
69
|
const r = (e % 360 + 360) % 360 / 60, s = (1 - Math.abs(2 * n - 1)) * (t / 100), a = s * (1 - Math.abs(r % 2 - 1));
|
|
70
70
|
let i = 0, h = 0, c = 0;
|
|
71
71
|
r >= 0 && r < 1 ? (i = s, h = a) : r >= 1 && r < 2 ? (i = a, h = s) : r >= 2 && r < 3 ? (h = s, c = a) : r >= 3 && r < 4 ? (h = a, c = s) : r >= 4 && r < 5 ? (i = a, c = s) : r >= 5 && r < 6 && (i = s, c = a);
|
|
72
|
-
const l = n - s / 2, m = i + l,
|
|
73
|
-
return [m,
|
|
72
|
+
const l = n - s / 2, m = i + l, f = h + l, v = c + l;
|
|
73
|
+
return [m, f, v].map(z);
|
|
74
74
|
};
|
|
75
75
|
function y(e) {
|
|
76
|
-
const [t, o, n, r] = C(e).map((m,
|
|
76
|
+
const [t, o, n, r] = C(e).map((m, f) => f === 3 ? m : m / 255), s = Math.max(t, o, n), a = Math.min(t, o, n), i = (s + a) / 2;
|
|
77
77
|
if (s === a)
|
|
78
78
|
return [0, 0, i, r];
|
|
79
79
|
const h = s - a, c = i > 0.5 ? h / (2 - s - a) : h / (s + a);
|
|
@@ -106,7 +106,7 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
106
106
|
"--s-interactive-primary-pressed": "textPressed"
|
|
107
107
|
}, D = class {
|
|
108
108
|
constructor(e) {
|
|
109
|
-
j(this, e), this.themeChange = E(this, "themeChange", 7);
|
|
109
|
+
j(this, e), this.themeChange = E(this, "themeChange", 7), this.config = void 0;
|
|
110
110
|
}
|
|
111
111
|
componentWillLoad() {
|
|
112
112
|
this.resolveConfig(), this.determineOSTheme(), this.updateAppTheme();
|
|
@@ -156,8 +156,8 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
156
156
|
this.resetTenantVariables();
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
const o = this.resolvedConfig.rootElement, n = y(t.primary), r = y(t.secondary), s = y(t.text), a = _(g(n[0], n[1] - 0.21, n[2] + 0.09, 1)), i = _(g(n[0], n[1] - 0.2, n[2] + 0.17, 1)), h = _(g(r[0], r[1], r[2] + 0.07, 1)), c = _(g(r[0], r[1], r[2] + 0.15, 1)), l = _(g(s[0], s[1] - 0.34, s[2] + 0.1, 1)), m = _(g(s[0], s[1] - 0.48, s[2] + 0.2, 1)),
|
|
160
|
-
Object.entries(T).forEach(([v, k]) => o.style.setProperty(v,
|
|
159
|
+
const o = this.resolvedConfig.rootElement, n = y(t.primary), r = y(t.secondary), s = y(t.text), a = _(g(n[0], n[1] - 0.21, n[2] + 0.09, 1)), i = _(g(n[0], n[1] - 0.2, n[2] + 0.17, 1)), h = _(g(r[0], r[1], r[2] + 0.07, 1)), c = _(g(r[0], r[1], r[2] + 0.15, 1)), l = _(g(s[0], s[1] - 0.34, s[2] + 0.1, 1)), m = _(g(s[0], s[1] - 0.48, s[2] + 0.2, 1)), f = Object.assign(Object.assign({}, t), { primaryHovered: a, primaryPressed: i, secondaryHovered: h, secondaryPressed: c, textHovered: l, textPressed: m });
|
|
160
|
+
Object.entries(T).forEach(([v, k]) => o.style.setProperty(v, f[k]));
|
|
161
161
|
}
|
|
162
162
|
resetTenantVariables() {
|
|
163
163
|
const e = this.resolvedConfig.rootElement;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as t, h as a, H as s } from "./index.
|
|
2
|
-
import { c as r } from "./index-
|
|
1
|
+
import { r as t, h as a, H as s } from "./index.d74835eb.js";
|
|
2
|
+
import { c as r } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-
|
|
6
|
-
const l = ":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{--swirl-thumbnail-size:2.5rem}.thumbnail--size-m{--swirl-thumbnail-size:3rem}.thumbnail--size-l{--swirl-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--swirl-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--swirl-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--swirl-thumbnail-size);height:var(--swirl-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}",
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const l = ":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{--swirl-thumbnail-size:2.5rem}.thumbnail--size-m{--swirl-thumbnail-size:3rem}.thumbnail--size-l{--swirl-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--swirl-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--swirl-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--swirl-thumbnail-size);height:var(--swirl-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", e = class {
|
|
7
7
|
constructor(i) {
|
|
8
|
-
t(this, i), this.format = "landscape", this.size = "m";
|
|
8
|
+
t(this, i), this.alt = void 0, this.format = "landscape", this.size = "m", this.src = void 0;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const i = r("thumbnail", `thumbnail--format-${this.format}`, `thumbnail--size-${this.size}`);
|
|
12
12
|
return a(s, null, a("span", { class: i }, a("img", { alt: this.alt, class: "thumbnail__image", loading: "lazy", src: this.src })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
e.style = l;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
e as swirl_thumbnail
|
|
18
18
|
};
|
package/dist/{swirl-toast-provider.entry.da18eaab.js → swirl-toast-provider.entry.2788262d.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r, h as a, H as
|
|
1
|
+
import { r, h as a, H as n } from "./index.d74835eb.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const h = class {
|
|
5
5
|
constructor(t) {
|
|
6
|
-
r(this, t), this.
|
|
6
|
+
r(this, t), this.onDismiss = (s) => {
|
|
7
7
|
this.toasts = [...this.toasts].filter((i) => i.toastId !== s.detail);
|
|
8
|
-
};
|
|
8
|
+
}, this.globalDuration = void 0, this.toasts = [];
|
|
9
9
|
}
|
|
10
10
|
async clearAll() {
|
|
11
11
|
this.toasts = [];
|
|
@@ -22,9 +22,9 @@ const l = class {
|
|
|
22
22
|
return this.toasts = [...this.toasts, i], i;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return a(
|
|
25
|
+
return a(n, { role: "status" }, a("swirl-stack", { spacing: "12" }, this.toasts.map((t) => a("swirl-toast", Object.assign({ key: t.toastId, onDismiss: this.onDismiss }, t)))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
h as swirl_toast_provider
|
|
30
30
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as a, c as n, h as i, H as r } from "./index.
|
|
2
|
-
import { c } from "./index-
|
|
3
|
-
import { g as
|
|
1
|
+
import { r as a, c as n, h as i, H as r } from "./index.d74835eb.js";
|
|
2
|
+
import { c as d } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { g as c } from "./utils-33d31b58.1488fcfe.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-
|
|
6
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
7
|
const l = ":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)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__icon{margin-top:0}}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left;align-self:flex-start}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__content{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.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)}", h = class {
|
|
8
8
|
constructor(s) {
|
|
9
|
-
a(this, s), this.dismiss = n(this, "dismiss", 7), this.
|
|
9
|
+
a(this, s), this.dismiss = n(this, "dismiss", 7), this.desktopMediaQuery = c(), this.desktopMediaQueryHandler = (t) => {
|
|
10
10
|
this.forceIconProps(t.matches);
|
|
11
11
|
}, this.onDismiss = () => {
|
|
12
12
|
this.dismiss.emit(this.toastId);
|
|
13
|
-
};
|
|
13
|
+
}, this.accessibleDismissLabel = "Dismiss", this.content = void 0, this.dismissLabel = void 0, this.duration = void 0, this.icon = void 0, this.intent = "default", this.toastId = void 0;
|
|
14
14
|
}
|
|
15
15
|
watchDuration() {
|
|
16
16
|
this.startTimer();
|
|
@@ -37,7 +37,7 @@ const l = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;
|
|
|
37
37
|
!Boolean(this.timeout) || (clearTimeout(this.timeout), this.timeout = void 0);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
const s =
|
|
40
|
+
const s = d("toast", `toast--intent-${this.intent}`);
|
|
41
41
|
return i(r, null, i("div", { class: s }, this.icon && i("span", { class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (t) => this.iconEl = t }), i("span", { class: "toast__content", part: "toast__content" }, this.content), i("button", { "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && i("swirl-icon-close", { ref: (t) => this.dismissIconEl = t }))));
|
|
42
42
|
}
|
|
43
43
|
static get watchers() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as n, h as i, H as l } from "./index.
|
|
2
|
-
import { c as r, o as p, s as h, f as d } from "./floating-ui.dom.esm-
|
|
1
|
+
import { r as n, h as i, H as l } from "./index.d74835eb.js";
|
|
2
|
+
import { c as r, o as p, s as h, f as d } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);-webkit-animation:tooltip-fade-in 0.1s;animation:tooltip-fade-in 0.1s}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}@-webkit-keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}", u = class {
|
|
6
6
|
constructor(e) {
|
|
7
|
-
n(this, e), this.
|
|
7
|
+
n(this, e), this.onKeydown = (t) => {
|
|
8
8
|
t.code === "Escape" && this.hide();
|
|
9
9
|
}, this.reposition = async () => {
|
|
10
10
|
!Boolean(this.referenceEl) || !Boolean(this.popperEl) || (this.actualPosition = await r(this.referenceEl, this.popperEl, this.options));
|
|
@@ -51,7 +51,7 @@ const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{disp
|
|
|
51
51
|
left: "100%",
|
|
52
52
|
transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
|
|
53
53
|
};
|
|
54
|
-
};
|
|
54
|
+
}, this.content = void 0, this.delay = 300, this.position = "top", this.actualPosition = void 0, this.visible = !1;
|
|
55
55
|
}
|
|
56
56
|
watchPosition() {
|
|
57
57
|
this.updateOptions();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { c as o } from "./index-
|
|
1
|
+
import { r as t, h as i, H as s, g as r } from "./index.d74835eb.js";
|
|
2
|
+
import { c as o } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
6
|
const n = ":host{display:inline-flex;width:100%;height:2.5rem;padding-right:var(--s-space-16);padding-left:calc(var(--s-space-16) + 1.5rem + var(--s-space-8));flex-shrink:0;justify-content:flex-start;align-items:center;color:var(--s-text-default);background-color:var(--s-surface-default);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);cursor:pointer;gap:calc(var(--s-space-8) - var(--s-space-2))}:host(:hover){background-color:var(--s-surface-hovered)}:host(:active){background-color:var(--s-surface-pressed)}:host(:focus){outline:none}:host(:focus-visible) .tree-navigation-item__label{border-radius:var(--s-border-radius-xs);box-shadow:0 0 0 0.125rem var(--s-focus-default)}:host(.tree-navigation-item--active){background-color:var(--s-surface-raised-default);box-shadow:inset 0.25rem 0 0 0 var(--s-surface-highlight-default)}:host(.tree-navigation-item--active:hover){background-color:var(--s-surface-raised-hovered)}:host(.tree-navigation-item--active:active){background-color:var(--s-surface-raised-pressed)}:host(.tree-navigation-item--has-icon){padding-left:var(--s-space-16)}:host *{box-sizing:border-box}.tree-navigation-item__icon{display:inline-flex}.tree-navigation-item__label{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis;padding-right:var(--s-space-2);padding-left:var(--s-space-2)}", c = class {
|
|
7
7
|
constructor(e) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
8
|
+
t(this, e), this.onKeyDown = (a) => {
|
|
9
|
+
a.code === "Enter" && (a.preventDefault(), this.el.click());
|
|
10
|
+
}, this.active = void 0, this.icon = void 0, this.label = void 0;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const e = o("tree-navigation-item", {
|
|
14
14
|
"tree-navigation-item--active": this.active,
|
|
15
15
|
"tree-navigation-item--has-icon": Boolean(this.icon)
|
|
16
16
|
});
|
|
17
|
-
return
|
|
17
|
+
return i(s, { class: e, onKeyDown: this.onKeyDown, role: "link", tabIndex: 0 }, this.icon && i("span", { class: "tree-navigation-item__icon", innerHTML: this.icon }), i("span", { class: "tree-navigation-item__label" }, this.label));
|
|
18
18
|
}
|
|
19
19
|
get el() {
|
|
20
20
|
return r(this);
|
package/dist/{swirl-video-thumbnail.entry.786a3d11.js → swirl-video-thumbnail.entry.2e7f4010.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as n, H as e } from "./index.
|
|
1
|
+
import { r as t, h as n, H as e } from "./index.d74835eb.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = `:host {
|
|
@@ -76,7 +76,7 @@ const a = `:host {
|
|
|
76
76
|
}
|
|
77
77
|
`, o = class {
|
|
78
78
|
constructor(i) {
|
|
79
|
-
t(this, i), this.durationLabel = "Duration";
|
|
79
|
+
t(this, i), this.durationLabel = "Duration", this.duration = void 0, this.label = void 0, this.src = void 0;
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
82
|
return n(e, null, n("button", { "aria-describedby": this.duration !== void 0 ? "duration" : void 0, "aria-label": this.label, class: "video-thumbnail", type: "button" }, n("img", { alt: "", class: "video-thumbnail__image", loading: "lazy", src: this.src }), this.duration && n("span", { class: "video-thumbnail__duration", id: "duration" }, n("swirl-visually-hidden", null, this.durationLabel), this.duration), n("svg", { class: "video-thumbnail__play-icon", fill: "none", viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg" }, n("path", { d: "M15 14.65V25.35C15 26.1167 15.35 26.7 16.05 27.1C16.75 27.5 17.4333 27.4667 18.1 27L26.4 21.7C27.0333 21.3 27.35 20.7333 27.35 20C27.35 19.2667 27.0333 18.7 26.4 18.3L18.1 13C17.4333 12.5333 16.75 12.5 16.05 12.9C15.35 13.3 15 13.8833 15 14.65ZM20 40C17.2333 40 14.6333 39.4747 12.2 38.424C9.76667 37.3747 7.65 35.95 5.85 34.15C4.05 32.35 2.62533 30.2333 1.576 27.8C0.525334 25.3667 0 22.7667 0 20C0 17.2333 0.525334 14.6333 1.576 12.2C2.62533 9.76667 4.05 7.65 5.85 5.85C7.65 4.05 9.76667 2.62467 12.2 1.574C14.6333 0.524667 17.2333 0 20 0C22.7667 0 25.3667 0.524667 27.8 1.574C30.2333 2.62467 32.35 4.05 34.15 5.85C35.95 7.65 37.3747 9.76667 38.424 12.2C39.4747 14.6333 40 17.2333 40 20C40 22.7667 39.4747 25.3667 38.424 27.8C37.3747 30.2333 35.95 32.35 34.15 34.15C32.35 35.95 30.2333 37.3747 27.8 38.424C25.3667 39.4747 22.7667 40 20 40Z", fill: "white", "fill-opacity": "0.95" }))));
|
package/dist/{swirl-visually-hidden.entry.1da622ab.js → swirl-visually-hidden.entry.7e057e1b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as i, H as l } from "./index.
|
|
1
|
+
import { r as s, h as i, H as l } from "./index.d74835eb.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}", o = class {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
function u(t, n) {
|
|
2
|
+
return t ? t instanceof ShadowRoot ? u(t.host, n) : t instanceof HTMLElement && t.matches(n) ? t : u(t.parentNode, n) : null;
|
|
3
|
+
}
|
|
4
|
+
const f = () => document.documentElement.classList.contains("disable-desktop-style-tweaks") ? window.matchMedia(null) : window.matchMedia("(min-width: 992px) and (max-width: 1439px) and (hover: hover), (min-width: 1440px)");
|
|
5
|
+
function p(t, n, o = !1) {
|
|
6
|
+
let c;
|
|
7
|
+
return async function() {
|
|
8
|
+
const e = this, a = arguments, i = function() {
|
|
9
|
+
c = null, o || t.apply(e, a);
|
|
10
|
+
}, l = o && !Boolean(c);
|
|
11
|
+
clearTimeout(c), c = setTimeout(i, n), l && t.apply(e, a);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function w(t, n) {
|
|
15
|
+
const o = n.scrollTop, c = o + n.clientHeight, s = n.getBoundingClientRect(), e = t.getBoundingClientRect(), i = {
|
|
16
|
+
top: e.top - s.top,
|
|
17
|
+
right: e.right - s.right,
|
|
18
|
+
bottom: e.bottom - s.bottom,
|
|
19
|
+
left: e.left - s.left
|
|
20
|
+
}.top + o, l = i + t.offsetHeight, r = i < o ? o : i;
|
|
21
|
+
return (l > c ? c : l) - r;
|
|
22
|
+
}
|
|
23
|
+
function g() {
|
|
24
|
+
return !window.matchMedia("(min-width: 768px)").matches;
|
|
25
|
+
}
|
|
26
|
+
function b(t, n) {
|
|
27
|
+
function o(s, e) {
|
|
28
|
+
if (!Boolean(e))
|
|
29
|
+
return [];
|
|
30
|
+
const a = Array.from(e.querySelectorAll(s)), i = Boolean(window.HTMLSlotElement) && e instanceof HTMLSlotElement ? e.assignedElements() : [], l = [...Array.from(e.children), ...i], r = e.shadowRoot, h = o(s, r);
|
|
31
|
+
return [
|
|
32
|
+
...a,
|
|
33
|
+
...l.map((m) => o(s, m)).flat(),
|
|
34
|
+
...h
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
return o(n, t).filter((s, e, a) => !a.some((i, l) => i.isSameNode(s) && l > e));
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
w as a,
|
|
41
|
+
u as c,
|
|
42
|
+
p as d,
|
|
43
|
+
f as g,
|
|
44
|
+
g as i,
|
|
45
|
+
b as q
|
|
46
|
+
};
|