@getflip/swirl-components-react 0.11.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.7f94c2d2.js → file-manager.entry.7a321755.js} +1 -1
- 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.149af511.js +1394 -0
- package/dist/stencil-generated/index.d.ts +1 -0
- package/dist/{swirl-action-list-item.entry.447b2688.js → swirl-action-list-item.entry.6548a6f0.js} +4 -4
- package/dist/{swirl-action-list-section.entry.e84808c9.js → swirl-action-list-section.entry.e12fe159.js} +1 -1
- package/dist/{swirl-action-list.entry.2fb802dc.js → swirl-action-list.entry.21644ba6.js} +2 -2
- package/dist/{swirl-app-layout_5.entry.875542b9.js → swirl-app-layout_5.entry.9703e919.js} +4 -4
- package/dist/{swirl-autocomplete.entry.7be53f33.js → swirl-autocomplete.entry.4bad6cbf.js} +8 -8
- package/dist/{swirl-avatar-group.entry.38bafbf0.js → swirl-avatar-group.entry.d41bfa97.js} +3 -3
- package/dist/{swirl-avatar.entry.6107d926.js → swirl-avatar.entry.c81909ad.js} +3 -3
- package/dist/{swirl-badge.entry.1f4d89cf.js → swirl-badge.entry.7bd8bbda.js} +3 -3
- package/dist/{swirl-banner.entry.2d29edfc.js → swirl-banner.entry.ef0143b1.js} +4 -4
- package/dist/{swirl-button-group.entry.8ce93c3c.js → swirl-button-group.entry.60578a80.js} +3 -3
- package/dist/{swirl-button.entry.42b57f80.js → swirl-button.entry.167120c6.js} +4 -4
- package/dist/{swirl-card.entry.a09d5cdf.js → swirl-card.entry.47b41ce9.js} +3 -3
- package/dist/{swirl-checkbox.entry.58064458.js → swirl-checkbox.entry.37c16abe.js} +3 -3
- package/dist/{swirl-chip.entry.b6b676d6.js → swirl-chip.entry.89c2c730.js} +4 -4
- package/dist/swirl-components-react.js +102 -101
- package/dist/swirl-components-react.umd.cjs +49 -42
- package/dist/{swirl-console-layout.entry.88cca8db.js → swirl-console-layout.entry.61b9ad81.js} +4 -4
- package/dist/{swirl-date-input.entry.1ff3f34d.js → swirl-date-input.entry.f0f6d6ee.js} +621 -618
- package/dist/swirl-date-picker_2.entry.91531b84.js +37 -0
- package/dist/{swirl-description-list-item.entry.e5e7327a.js → swirl-description-list-item.entry.99c83045.js} +1 -1
- package/dist/{swirl-description-list.entry.b451e1b2.js → swirl-description-list.entry.724f88d9.js} +1 -1
- package/dist/{swirl-dialog.entry.27d08ab3.js → swirl-dialog.entry.b50cfdb2.js} +3 -3
- package/dist/{swirl-file-uploader.entry.6c075751.js → swirl-file-uploader.entry.f8afd2d4.js} +3 -3
- package/dist/{swirl-file-viewer_7.entry.2d664fd5.js → swirl-file-viewer_7.entry.8973a210.js} +3 -3
- package/dist/swirl-form-control.entry.bc87b691.js +70 -0
- package/dist/{swirl-form-group.entry.f58b5fda.js → swirl-form-group.entry.674e8b3f.js} +3 -3
- package/dist/{swirl-heading.entry.1761ccaf.js → swirl-heading.entry.8e9ded19.js} +20 -10
- package/dist/{swirl-icon-add-photo.entry.2be32855.js → swirl-icon-add-photo.entry.5a20015c.js} +3 -3
- package/dist/{swirl-icon-add_4.entry.54bb7e89.js → swirl-icon-add_4.entry.0844d9ca.js} +3 -3
- package/dist/{swirl-icon-admin-panel-settings.entry.a43bcc7d.js → swirl-icon-admin-panel-settings.entry.8f932fe7.js} +3 -3
- package/dist/{swirl-icon-arrow-back.entry.ee4ddf1e.js → swirl-icon-arrow-back.entry.c9c0cd69.js} +3 -3
- package/dist/{swirl-icon-arrow-downward_2.entry.74231d7a.js → swirl-icon-arrow-downward_2.entry.03e4f1bc.js} +3 -3
- package/dist/{swirl-icon-arrow-forward.entry.a895e898.js → swirl-icon-arrow-forward.entry.965aa3ee.js} +3 -3
- package/dist/{swirl-icon-arrow-left_3.entry.6ea8dad5.js → swirl-icon-arrow-left_3.entry.5cddfb42.js} +3 -3
- package/dist/{swirl-icon-arrow-right-small.entry.daf39424.js → swirl-icon-arrow-right-small.entry.53b648b8.js} +3 -3
- package/dist/{swirl-icon-attachment.entry.2cb8c35f.js → swirl-icon-attachment.entry.302569e9.js} +3 -3
- package/dist/{swirl-icon-block.entry.0d7f0e2b.js → swirl-icon-block.entry.79c5f2b2.js} +3 -3
- package/dist/{swirl-icon-cancel_4.entry.2943f0c0.js → swirl-icon-cancel_4.entry.31c7f7d7.js} +3 -3
- package/dist/{swirl-icon-chat-bubble.entry.66624624.js → swirl-icon-chat-bubble.entry.ac1cbfcd.js} +3 -3
- package/dist/{swirl-icon-chats-filled.entry.83e0eeb7.js → swirl-icon-chats-filled.entry.18c0e11a.js} +3 -3
- package/dist/{swirl-icon-chats-outlined.entry.f768aca8.js → swirl-icon-chats-outlined.entry.af240396.js} +3 -3
- package/dist/{swirl-icon-check-circle.entry.03a596c7.js → swirl-icon-check-circle.entry.4c0304e9.js} +3 -3
- package/dist/swirl-icon-check-small_4.entry.c7292189.js +1468 -0
- package/dist/{swirl-icon-check-strong.entry.88cfb7b3.js → swirl-icon-check-strong.entry.0e1ebe49.js} +3 -3
- package/dist/{swirl-icon-check.entry.360c5b8c.js → swirl-icon-check.entry.bb609d4c.js} +3 -3
- package/dist/{swirl-icon-chevron-left.entry.d6f5077d.js → swirl-icon-chevron-left.entry.0faf5ceb.js} +3 -3
- package/dist/{swirl-icon-chevron-right.entry.4cbdaed5.js → swirl-icon-chevron-right.entry.9b9edbac.js} +3 -3
- package/dist/{swirl-icon-close-small.entry.d223e192.js → swirl-icon-close-small.entry.47516cb5.js} +3 -3
- package/dist/{swirl-icon-close.entry.eee59783.js → swirl-icon-close.entry.f20dd2d1.js} +3 -3
- package/dist/{swirl-icon-cloud-upload.entry.b50d30c3.js → swirl-icon-cloud-upload.entry.5307cd46.js} +3 -3
- package/dist/{swirl-icon-column.entry.07e869e3.js → swirl-icon-column.entry.fb461b40.js} +3 -3
- package/dist/{swirl-icon-comment.entry.221fe61a.js → swirl-icon-comment.entry.7bfbd903.js} +3 -3
- package/dist/{swirl-icon-copy.entry.d113e5bb.js → swirl-icon-copy.entry.4c17082a.js} +3 -3
- package/dist/{swirl-icon-date-range.entry.a1eb0554.js → swirl-icon-date-range.entry.c8ce6402.js} +3 -3
- package/dist/{swirl-icon-delete.entry.ebcf7073.js → swirl-icon-delete.entry.6d3a6a54.js} +3 -3
- package/dist/{swirl-icon-description.entry.fb0d88a1.js → swirl-icon-description.entry.060d019c.js} +3 -3
- package/dist/{swirl-icon-edit.entry.c6cf867f.js → swirl-icon-edit.entry.329a25ea.js} +3 -3
- package/dist/{swirl-icon-emoji-mood.entry.bf9ee6c2.js → swirl-icon-emoji-mood.entry.3fbee1e1.js} +3 -3
- package/dist/{swirl-icon-emoji-satisfied.entry.df8c1d60.js → swirl-icon-emoji-satisfied.entry.9fc1863d.js} +3 -3
- package/dist/{swirl-icon-error_3.entry.c21fbb54.js → swirl-icon-error_3.entry.8209c557.js} +4 -4
- package/dist/{swirl-icon-expand-more.entry.bbde4949.js → swirl-icon-expand-more.entry.b2e0a30c.js} +3 -3
- package/dist/{swirl-icon-file.entry.7ab04321.js → swirl-icon-file.entry.c0e82b43.js} +3 -3
- package/dist/{swirl-icon-filter.entry.95211f5f.js → swirl-icon-filter.entry.e26fa57c.js} +3 -3
- package/dist/{swirl-icon-folder-shared.entry.052229e9.js → swirl-icon-folder-shared.entry.0169b375.js} +3 -3
- package/dist/{swirl-icon-group-assign.entry.bb3ba16d.js → swirl-icon-group-assign.entry.70e80a6e.js} +3 -3
- package/dist/{swirl-icon-groups-custom.entry.89cb31bf.js → swirl-icon-groups-custom.entry.d16f5fb9.js} +3 -3
- package/dist/{swirl-icon-groups-filled.entry.8e4dd776.js → swirl-icon-groups-filled.entry.6cccc3d3.js} +3 -3
- package/dist/{swirl-icon-groups-outlined.entry.d257fa35.js → swirl-icon-groups-outlined.entry.2bf03f93.js} +3 -3
- package/dist/{swirl-icon-groups.entry.eb164fa2.js → swirl-icon-groups.entry.cbc420c1.js} +3 -3
- package/dist/{swirl-icon-help.entry.95af80fe.js → swirl-icon-help.entry.bca2c9e9.js} +3 -3
- package/dist/{swirl-icon-image.entry.ac7fce8a.js → swirl-icon-image.entry.67457d50.js} +3 -3
- package/dist/{swirl-icon-info.entry.7bea6932.js → swirl-icon-info.entry.0ee58aeb.js} +3 -3
- package/dist/{swirl-icon-inventory.entry.7bb8c552.js → swirl-icon-inventory.entry.1548c8b5.js} +3 -3
- package/dist/{swirl-icon-like.entry.ec92b9fd.js → swirl-icon-like.entry.e9d549b8.js} +3 -3
- package/dist/{swirl-icon-link.entry.f3d5937c.js → swirl-icon-link.entry.c442143c.js} +3 -3
- package/dist/{swirl-icon-lock.entry.807d8a95.js → swirl-icon-lock.entry.d84f882b.js} +3 -3
- package/dist/{swirl-icon-logout.entry.4f31d257.js → swirl-icon-logout.entry.7a6a96d3.js} +3 -3
- package/dist/{swirl-icon-mail.entry.54c49af9.js → swirl-icon-mail.entry.a7b7df7b.js} +3 -3
- package/dist/{swirl-icon-manage-accounts.entry.8bc3721c.js → swirl-icon-manage-accounts.entry.fe2691fc.js} +3 -3
- package/dist/{swirl-icon-mention.entry.5cf61986.js → swirl-icon-mention.entry.c0368650.js} +3 -3
- package/dist/{swirl-icon-menu-filled.entry.1597fcdc.js → swirl-icon-menu-filled.entry.06cced02.js} +3 -3
- package/dist/{swirl-icon-menu-outlined.entry.05c230c7.js → swirl-icon-menu-outlined.entry.89dca403.js} +3 -3
- package/dist/{swirl-icon-menu.entry.eb38317a.js → swirl-icon-menu.entry.ff253f8f.js} +3 -3
- package/dist/{swirl-icon-message.entry.3f3b0ee6.js → swirl-icon-message.entry.b7d9f581.js} +3 -3
- package/dist/{swirl-icon-more-horizontal.entry.746bde39.js → swirl-icon-more-horizontal.entry.407e51c1.js} +3 -3
- package/dist/{swirl-icon-more-vertikal.entry.bf9342ef.js → swirl-icon-more-vertikal.entry.718f85e0.js} +3 -3
- package/dist/{swirl-icon-news-filled.entry.1c1d78f8.js → swirl-icon-news-filled.entry.5134e640.js} +3 -3
- package/dist/{swirl-icon-news-outlined.entry.76c94ea9.js → swirl-icon-news-outlined.entry.9c0931c4.js} +3 -3
- package/dist/{swirl-icon-notifications-active.entry.d8c49de6.js → swirl-icon-notifications-active.entry.c47bbb94.js} +3 -3
- package/dist/{swirl-icon-notifications-off.entry.2c8866a8.js → swirl-icon-notifications-off.entry.d5933059.js} +3 -3
- package/dist/{swirl-icon-notifications.entry.a5c7b275.js → swirl-icon-notifications.entry.b945b795.js} +3 -3
- package/dist/{swirl-icon-open-in-new.entry.128350f5.js → swirl-icon-open-in-new.entry.98a7ed82.js} +3 -3
- package/dist/{swirl-icon-people-alt.entry.7ac6d23a.js → swirl-icon-people-alt.entry.646cfc3d.js} +3 -3
- package/dist/{swirl-icon-person-off.entry.fda1c4d4.js → swirl-icon-person-off.entry.f5db1b83.js} +3 -3
- package/dist/{swirl-icon-person.entry.19fc5367.js → swirl-icon-person.entry.4b5b54cb.js} +3 -3
- package/dist/{swirl-icon-phone.entry.73cfee35.js → swirl-icon-phone.entry.f6c4012a.js} +3 -3
- package/dist/{swirl-icon-poll.entry.4ab05380.js → swirl-icon-poll.entry.9ee6b1d2.js} +3 -3
- package/dist/{swirl-icon-print.entry.cd89ebc5.js → swirl-icon-print.entry.37f08abb.js} +3 -3
- package/dist/{swirl-icon-recieved.entry.56d93432.js → swirl-icon-recieved.entry.f79a1343.js} +3 -3
- package/dist/{swirl-icon-search-strong.entry.904a6694.js → swirl-icon-search-strong.entry.6752b238.js} +3 -3
- package/dist/{swirl-icon-search.entry.cf65f83f.js → swirl-icon-search.entry.d152e72f.js} +3 -3
- package/dist/{swirl-icon-send.entry.56297757.js → swirl-icon-send.entry.cafcc526.js} +3 -3
- package/dist/{swirl-icon-settings.entry.1c988cf1.js → swirl-icon-settings.entry.cdd23f77.js} +3 -3
- package/dist/{swirl-icon-sync.entry.b88dd7b8.js → swirl-icon-sync.entry.37eed48f.js} +3 -3
- package/dist/{swirl-icon-tasks-filled.entry.b2bf1c6e.js → swirl-icon-tasks-filled.entry.629446b0.js} +3 -3
- package/dist/{swirl-icon-tasks-outlined.entry.09551261.js → swirl-icon-tasks-outlined.entry.21e25bc3.js} +3 -3
- package/dist/{swirl-icon-time-filled.entry.4954d002.js → swirl-icon-time-filled.entry.67ee5a24.js} +3 -3
- package/dist/{swirl-icon-time-outlined.entry.697e9656.js → swirl-icon-time-outlined.entry.d0eb5d19.js} +3 -3
- package/dist/{swirl-icon-user-assign.entry.fe5b582b.js → swirl-icon-user-assign.entry.8a6b68ea.js} +3 -3
- package/dist/{swirl-icon-video-camera.entry.d4707dde.js → swirl-icon-video-camera.entry.85101910.js} +3 -3
- package/dist/{swirl-icon-warning.entry.69762f5b.js → swirl-icon-warning.entry.330bf12a.js} +3 -3
- package/dist/{swirl-lightbox.entry.bae60d38.js → swirl-lightbox.entry.7a2191eb.js} +4 -4
- package/dist/{swirl-link.entry.3d52e8ef.js → swirl-link.entry.81bd6e0f.js} +1 -1
- package/dist/{swirl-list.entry.53688da6.js → swirl-list.entry.ca7b2daf.js} +1 -1
- package/dist/{swirl-modal.entry.4bf5e6c3.js → swirl-modal.entry.97df470f.js} +3 -3
- package/dist/{swirl-option-list-section.entry.898ea907.js → swirl-option-list-section.entry.b3b30b8f.js} +1 -1
- package/dist/{swirl-pagination.entry.b892dbdb.js → swirl-pagination.entry.0bbbf034.js} +3 -3
- package/dist/{swirl-pdf-reader.entry.28aa5b27.js → swirl-pdf-reader.entry.064e66a5.js} +4 -4
- package/dist/{swirl-popover.entry.3e96f1d7.js → swirl-popover.entry.1e51f870.js} +5 -5
- package/dist/{swirl-progress-indicator.entry.30f3d224.js → swirl-progress-indicator.entry.46470fa4.js} +3 -3
- package/dist/{swirl-radio-group.entry.9cbdf732.js → swirl-radio-group.entry.f931de9f.js} +1 -1
- package/dist/{swirl-radio.entry.7a24ed80.js → swirl-radio.entry.5ccbc5fa.js} +3 -3
- package/dist/{swirl-resource-list-file-item.entry.c7c3d567.js → swirl-resource-list-file-item.entry.66329d69.js} +4 -4
- package/dist/{swirl-search.entry.19702179.js → swirl-search.entry.364d373f.js} +4 -4
- package/dist/{swirl-select.entry.3ff36072.js → swirl-select.entry.95b1f5bc.js} +7 -6
- package/dist/{swirl-separator.entry.6dfbb1a4.js → swirl-separator.entry.7c230cd1.js} +1 -1
- package/dist/{swirl-stack.entry.43f00bc0.js → swirl-stack.entry.cb1d54ae.js} +3 -3
- package/dist/{swirl-switch.entry.eaba1cc3.js → swirl-switch.entry.895cfbbd.js} +3 -3
- package/dist/{swirl-tab.entry.982c6bc3.js → swirl-tab.entry.b870a20f.js} +3 -3
- package/dist/{swirl-table-cell.entry.5cacafda.js → swirl-table-cell.entry.0d4a9b8f.js} +1 -1
- package/dist/{swirl-table-column.entry.d66cfcf5.js → swirl-table-column.entry.b1f05cb5.js} +1 -1
- package/dist/{swirl-table-row-group.entry.4273e651.js → swirl-table-row-group.entry.85368b7a.js} +1 -1
- package/dist/{swirl-table-row.entry.1f98e36b.js → swirl-table-row.entry.39f31a4b.js} +3 -3
- package/dist/{swirl-table.entry.5a37f233.js → swirl-table.entry.cd3a7dde.js} +2 -2
- package/dist/{swirl-tabs.entry.a932c6b9.js → swirl-tabs.entry.6dbf6d57.js} +3 -3
- package/dist/{swirl-tag.entry.2fd7c670.js → swirl-tag.entry.b0d8059b.js} +3 -3
- package/dist/{swirl-text-input.entry.c1eb2d9c.js → swirl-text-input.entry.86bbfa05.js} +10 -9
- package/dist/swirl-text.entry.53142b33.js +31 -0
- package/dist/{swirl-theme-provider.entry.5bf11693.js → swirl-theme-provider.entry.9cc36512.js} +1 -1
- package/dist/{swirl-thumbnail.entry.3b230d52.js → swirl-thumbnail.entry.bd0a5c89.js} +3 -3
- package/dist/{swirl-toast-provider.entry.da18eaab.js → swirl-toast-provider.entry.7747ba81.js} +1 -1
- package/dist/{swirl-toast.entry.d0f32449.js → swirl-toast.entry.ea517c98.js} +4 -4
- package/dist/{swirl-tooltip.entry.e444ef8c.js → swirl-tooltip.entry.71acfc7d.js} +2 -2
- package/dist/{swirl-tree-navigation-item.entry.49118257.js → swirl-tree-navigation-item.entry.59540e7e.js} +3 -3
- package/dist/{swirl-video-thumbnail.entry.786a3d11.js → swirl-video-thumbnail.entry.4546c208.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.1da622ab.js → swirl-visually-hidden.entry.bbc8b32d.js} +1 -1
- package/dist/utils-33d31b58.1488fcfe.js +46 -0
- package/dist/wc-datepicker.entry.d105e9ee.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-text.entry.ec8c8813.js +0 -18
- package/dist/utils-7efaa1c6.4a9c3721.js +0 -42
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { r as i, h as o, H as n, g as a } from "./index.9489626d.js";
|
|
2
|
-
import { c } from "./index-c3028f7d.557956d2.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const m = ".sc-swirl-form-control-h{display:block;width:100%}.sc-swirl-form-control-h *.sc-swirl-form-control{box-sizing:border-box}.form-control.sc-swirl-form-control{display:block;width:100%;line-height:var(--s-line-height-sm)}.form-control.form-control--has-focus.sc-swirl-form-control:not(.form-control--disabled) .form-control__label.sc-swirl-form-control{border-color:var(--s-border-highlight);box-shadow:0 0 0 var(--s-border-width-default) var(--s-border-highlight)}.form-control.sc-swirl-form-control:not(.form-control--has-value):not(.form-control--has-focus):not(.form-control--is-select) .form-control__input.sc-swirl-form-control{overflow:hidden;max-height:0}.form-control.sc-swirl-form-control:not(.form-control--has-value):not(.form-control--has-focus):not(.form-control--is-select) .form-control__label-text.sc-swirl-form-control{bottom:50%;font-size:var(--s-font-size-base);transform:translateY(50%)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.form-control.sc-swirl-form-control:not(.form-control--has-value):not(.form-control--has-focus):not(.form-control--is-select) .form-control__label-text.sc-swirl-form-control{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.form-control.sc-swirl-form-control:not(.form-control--has-value).form-control--is-select .select__label.sc-swirl-form-control{overflow:hidden;max-height:0;pointer-events:none}.form-control.sc-swirl-form-control:not(.form-control--has-value).form-control--is-select .form-control__label-text.sc-swirl-form-control{bottom:50%;font-size:var(--s-font-size-base);transform:translateY(50%)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.form-control.sc-swirl-form-control:not(.form-control--has-value).form-control--is-select .form-control__label-text.sc-swirl-form-control{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.form-control--invalid.form-control--has-focus.sc-swirl-form-control:not(.form-control--disabled) .form-control__label.sc-swirl-form-control{border-color:var(--s-border-critical);box-shadow:0 0 0 var(--s-border-width-default) var(--s-border-critical)}.form-control--invalid.sc-swirl-form-control .form-control__label.sc-swirl-form-control{border-color:var(--s-border-critical)}.form-control--disabled.sc-swirl-form-control .form-control__label.sc-swirl-form-control{border-color:var(--s-border-disabled);color:var(--s-text-disabled)}.form-control--disabled.sc-swirl-form-control .form-control__description.sc-swirl-form-control{color:var(--s-text-disabled)}.form-control__label.sc-swirl-form-control{position:relative;display:flex;width:100%;min-height:4.375rem;padding:calc(var(--s-space-12) + 1.25rem) var(--s-space-16) var(--s-space-12);justify-content:center;border:var(--s-border-width-default) solid var(--s-border-strong);border-radius:var(--s-border-radius-sm);color:var(--s-text-subdued);flex-direction:column;gap:var(--s-space-2)}.form-control__label-text.sc-swirl-form-control{position:absolute;right:var(--s-space-16);bottom:calc(100% - 1.25rem - var(--s-space-12));left:var(--s-space-16);overflow:hidden;font-size:var(--s-font-size-sm);white-space:nowrap;text-overflow:ellipsis;transition:font-size 0.15s, transform 0.15s, top 0.15s;transform:none}.form-control__description.sc-swirl-form-control{display:block;margin-top:var(--s-space-4);padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-sm)}.form-control__error-message.sc-swirl-form-control{display:block;margin-top:var(--s-space-4);padding-left:var(--s-space-4)}", h = class {
|
|
7
|
-
constructor(r) {
|
|
8
|
-
i(this, r), this.descriptionId = `form-control-description-${Math.round(Math.random() * 1e5)}`, this.listenToInputValueChanges = () => {
|
|
9
|
-
this.inputEl.addEventListener("valueChange", this.checkInputValue);
|
|
10
|
-
}, this.checkInputValue = () => {
|
|
11
|
-
var t;
|
|
12
|
-
this.inputValue = (t = this.inputEl) === null || t === void 0 ? void 0 : t.value;
|
|
13
|
-
}, this.onFocusIn = () => {
|
|
14
|
-
this.hasFocus = !0;
|
|
15
|
-
}, this.onFocusOut = () => {
|
|
16
|
-
!this.hasFocus || (this.hasFocus = !1);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
componentWillLoad() {
|
|
20
|
-
this.inputEl = this.el.children[0], this.associateDescriptionWithInputElement(), this.setInputElementDisabledState(), this.setInputElementInvalidState(), this.setInputElementLabel(), this.checkInputValue(), this.listenToInputValueChanges();
|
|
21
|
-
}
|
|
22
|
-
associateDescriptionWithInputElement() {
|
|
23
|
-
!Boolean(this.description) || !Boolean(this.inputEl) || this.inputEl.setAttribute("swirl-aria-describedby", this.descriptionId);
|
|
24
|
-
}
|
|
25
|
-
setInputElementDisabledState() {
|
|
26
|
-
!Boolean(this.inputEl) || (this.disabled ? this.inputEl.setAttribute("disabled", "true") : this.inputEl.removeAttribute("disabled"));
|
|
27
|
-
}
|
|
28
|
-
setInputElementInvalidState() {
|
|
29
|
-
!Boolean(this.inputEl) || (this.invalid ? this.inputEl.setAttribute("invalid", "true") : this.inputEl.removeAttribute("invalid"));
|
|
30
|
-
}
|
|
31
|
-
setInputElementLabel() {
|
|
32
|
-
!Boolean(this.inputEl) || this.inputEl.setAttribute("label", this.label);
|
|
33
|
-
}
|
|
34
|
-
onWindowClick(r) {
|
|
35
|
-
if (!this.hasFocus)
|
|
36
|
-
return;
|
|
37
|
-
const t = r.target;
|
|
38
|
-
this.el.contains(t) || (this.hasFocus = !1);
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
const r = Boolean(this.errorMessage), t = Boolean(this.description) && !r, s = Array.isArray(this.inputValue) ? this.inputValue.length > 0 : Boolean(this.inputValue), e = this.inputEl.tagName === "SWIRL-SELECT", l = c("form-control", {
|
|
42
|
-
"form-control--disabled": this.disabled,
|
|
43
|
-
"form-control--has-focus": this.hasFocus,
|
|
44
|
-
"form-control--has-value": s,
|
|
45
|
-
"form-control--invalid": this.invalid,
|
|
46
|
-
"form-control--is-select": e
|
|
47
|
-
});
|
|
48
|
-
return o(n, { onFocusin: this.onFocusIn, onFocusout: this.onFocusOut }, o("div", { class: l, role: "group" }, o("label", { class: "form-control__label" }, o("span", { class: "form-control__label-text" }, this.label), o("span", { class: "form-control__input" }, o("slot", null))), t && o("span", { class: "form-control__description", id: this.descriptionId }, this.description), r && o("span", { "aria-live": "polite", class: "form-control__error-message", id: this.descriptionId }, o("swirl-inline-error", { message: this.errorMessage, size: "s" }))));
|
|
49
|
-
}
|
|
50
|
-
get el() {
|
|
51
|
-
return a(this);
|
|
52
|
-
}
|
|
53
|
-
static get watchers() {
|
|
54
|
-
return {
|
|
55
|
-
description: ["associateDescriptionWithInputElement"],
|
|
56
|
-
disabled: ["setInputElementDisabledState"],
|
|
57
|
-
invalid: ["setInputElementInvalidState"],
|
|
58
|
-
label: ["setInputElementLabel"]
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
h.style = m;
|
|
63
|
-
export {
|
|
64
|
-
h as swirl_form_control
|
|
65
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { r as a, h as i, F as n, c as u, H as c, g as m } from "./index.9489626d.js";
|
|
2
|
-
import { c as r } from "./index-c3028f7d.557956d2.js";
|
|
3
|
-
import { q as p, g as v } from "./utils-7efaa1c6.4a9c3721.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
7
|
-
const b = ":host{display:inline-flex}", f = class {
|
|
8
|
-
constructor(t) {
|
|
9
|
-
a(this, t), this.size = 24;
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
const t = this.size === 20 ? 24 : this.size, e = r("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
13
|
-
return i("svg", { class: e, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${t} ${t}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && i(n, null, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.4142 4.91924C12.8047 5.30976 12.8047 5.94293 12.4142 6.33345L7.08086 11.6667C6.69033 12.0572 6.05717 12.0572 5.66664 11.6667L3.70711 9.70707C3.31658 9.31655 3.31658 8.68338 3.70711 8.29286C4.09763 7.90233 4.7308 7.90233 5.12132 8.29286L6.37375 9.54539L11 4.91924C11.3905 4.52871 12.0237 4.52871 12.4142 4.91924Z", fill: "currentColor" })), (this.size === 20 || this.size === 24) && i(n, null, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.6213 7.37879C19.2071 7.96458 19.2071 8.91433 18.6213 9.50011L10.6213 17.5C10.0355 18.0858 9.08577 18.0858 8.49998 17.5L5.56068 14.5605C4.97489 13.9748 4.97489 13.025 5.56068 12.4392C6.14646 11.8534 7.09621 11.8534 7.682 12.4392L9.56064 14.318L16.5 7.37879C17.0858 6.79301 18.0355 6.79301 18.6213 7.37879Z", fill: "currentColor" })), this.size === 28 && i(n, null, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M21.7248 8.60863C22.4083 9.29205 22.4083 10.4001 21.7248 11.0835L12.3915 20.4167C11.7081 21.1001 10.6001 21.1001 9.91663 20.4167L6.48744 16.9873C5.80403 16.3039 5.80403 15.1959 6.48744 14.5125C7.17086 13.8291 8.2789 13.8291 8.96232 14.5125L11.1541 16.7044L19.25 8.60863C19.9334 7.92521 21.0414 7.92521 21.7248 8.60863Z", fill: "currentColor" })));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
f.style = b;
|
|
17
|
-
const x = ".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}", g = class {
|
|
18
|
-
constructor(t) {
|
|
19
|
-
a(this, t), this.valueChange = u(this, "valueChange", 7), this.value = [], this.onFocus = () => {
|
|
20
|
-
Boolean(this.focusedItem) ? this.focusItem(this.getActiveItemIndex()) : this.focusItem(0);
|
|
21
|
-
}, this.onClick = (e) => {
|
|
22
|
-
e.preventDefault();
|
|
23
|
-
const s = e.target, o = s == null ? void 0 : s.closest("swirl-option-list-item");
|
|
24
|
-
!Boolean(o) || this.selectItem(this.items.findIndex((l) => l.value === o.value));
|
|
25
|
-
}, this.onKeyDown = (e) => {
|
|
26
|
-
e.code === "ArrowDown" ? (e.preventDefault(), this.focusNextItem()) : e.code === "ArrowUp" ? (e.preventDefault(), this.focusPreviousItem()) : e.code === "Space" || e.code === "Enter" ? (e.preventDefault(), this.selectFocusedItem()) : e.code === "Home" ? (e.preventDefault(), this.focusItem(0)) : e.code === "End" ? (e.preventDefault(), this.focusItem(this.items.length - 1)) : e.code === "KeyA" && (e.metaKey || e.ctrlKey) && this.multiSelect && (e.preventDefault(), this.selectAllItems());
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
componentDidLoad() {
|
|
30
|
-
this.updateItems(), this.observeSlotChanges(), this.setItemDisabledState(), this.setItemContext(), this.syncItemsWithValue();
|
|
31
|
-
}
|
|
32
|
-
disconnectedCallback() {
|
|
33
|
-
var t;
|
|
34
|
-
(t = this.observer) === null || t === void 0 || t.disconnect();
|
|
35
|
-
}
|
|
36
|
-
watchDisabled() {
|
|
37
|
-
this.setItemDisabledState();
|
|
38
|
-
}
|
|
39
|
-
watchMultiSelect() {
|
|
40
|
-
this.setItemContext();
|
|
41
|
-
}
|
|
42
|
-
watchValue() {
|
|
43
|
-
this.syncItemsWithValue();
|
|
44
|
-
}
|
|
45
|
-
observeSlotChanges() {
|
|
46
|
-
this.observer = new MutationObserver(() => {
|
|
47
|
-
this.updateItems();
|
|
48
|
-
}), this.observer.observe(this.listboxEl, { childList: !0 });
|
|
49
|
-
}
|
|
50
|
-
updateItems() {
|
|
51
|
-
this.items = p(this.el, "swirl-option-list-item");
|
|
52
|
-
}
|
|
53
|
-
setItemDisabledState() {
|
|
54
|
-
this.items.forEach((t) => t.disabled = this.disabled);
|
|
55
|
-
}
|
|
56
|
-
setItemContext() {
|
|
57
|
-
this.multiSelect ? this.items.forEach((t) => t.context = "multi-select") : (this.items.forEach((t) => t.context = "single-select"), this.value.length > 1 && this.updateValue([this.value[0]]));
|
|
58
|
-
}
|
|
59
|
-
selectItem(t) {
|
|
60
|
-
if (this.disabled)
|
|
61
|
-
return;
|
|
62
|
-
const e = this.items[t];
|
|
63
|
-
if (e.disabled)
|
|
64
|
-
return;
|
|
65
|
-
const s = this.value.includes(e.value);
|
|
66
|
-
this.multiSelect || (this.value = []), s ? this.updateValue(this.value.filter((o) => o !== e.value)) : this.updateValue([...this.value, e.value]);
|
|
67
|
-
}
|
|
68
|
-
updateValue(t) {
|
|
69
|
-
this.value = t, this.valueChange.emit(this.value);
|
|
70
|
-
}
|
|
71
|
-
selectFocusedItem() {
|
|
72
|
-
this.disabled || this.getActiveItemIndex() === -1 || this.selectItem(this.getActiveItemIndex());
|
|
73
|
-
}
|
|
74
|
-
selectAllItems() {
|
|
75
|
-
if (this.disabled)
|
|
76
|
-
return;
|
|
77
|
-
this.items.every((e) => this.value.includes(e.value)) ? this.updateValue([]) : this.updateValue(this.items.map((e) => e.value));
|
|
78
|
-
}
|
|
79
|
-
syncItemsWithValue() {
|
|
80
|
-
this.items.forEach((t) => t.selected = this.value.includes(t.value));
|
|
81
|
-
}
|
|
82
|
-
focusItem(t) {
|
|
83
|
-
if (this.disabled)
|
|
84
|
-
return;
|
|
85
|
-
this.items.forEach((s) => s.shadowRoot.querySelector('[role="option"]').removeAttribute("tabIndex"));
|
|
86
|
-
const e = this.items[t].shadowRoot.querySelector('[role="option"]');
|
|
87
|
-
!Boolean(e) || (e.setAttribute("tabIndex", "0"), e.focus(), this.focusedItem = e);
|
|
88
|
-
}
|
|
89
|
-
focusNextItem() {
|
|
90
|
-
if (this.disabled)
|
|
91
|
-
return;
|
|
92
|
-
const t = this.getActiveItemIndex(), e = Math.min(t + 1, this.items.length - 1);
|
|
93
|
-
this.focusItem(e);
|
|
94
|
-
}
|
|
95
|
-
focusPreviousItem() {
|
|
96
|
-
const t = this.getActiveItemIndex(), e = Math.max(t - 1, 0);
|
|
97
|
-
this.focusItem(e);
|
|
98
|
-
}
|
|
99
|
-
getActiveItemIndex() {
|
|
100
|
-
return this.items.map((t) => t.shadowRoot.querySelector('[role="option"]')).findIndex((t) => t === this.focusedItem);
|
|
101
|
-
}
|
|
102
|
-
render() {
|
|
103
|
-
const t = this.multiSelect ? "true" : void 0, e = this.disabled ? -1 : 0;
|
|
104
|
-
return i(c, null, i("div", { "aria-label": this.label, "aria-multiselectable": t, class: "option-list", id: this.optionListId, onClick: this.onClick, onFocus: this.onFocus, onKeyDown: this.onKeyDown, ref: (s) => this.listboxEl = s, role: "listbox", tabIndex: e }, i("slot", null)));
|
|
105
|
-
}
|
|
106
|
-
get el() {
|
|
107
|
-
return m(this);
|
|
108
|
-
}
|
|
109
|
-
static get watchers() {
|
|
110
|
-
return {
|
|
111
|
-
disabled: ["watchDisabled"],
|
|
112
|
-
multiSelect: ["watchMultiSelect"],
|
|
113
|
-
value: ["watchValue"]
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
g.style = x;
|
|
118
|
-
const I = ":host{display:inline-flex;width:100%}:host *{box-sizing:border-box}.option-list-item{display:inline-flex;width:100%;min-height:3rem;padding:var(--s-space-12) var(--s-space-16);align-items:center;background-color:var(--s-surface-overlay-default);cursor:pointer;gap:var(--s-space-12)}.option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-hovered)}.option-list-item:active:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item:focus{outline:none}.option-list-item:focus-visible{background-color:var(--s-surface-overlay-hovered)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item{min-height:0;padding:var(--s-space-8) var(--s-space-12);gap:var(--s-space-8)}}.option-list-item--selected .option-list-item__label{color:var(--s-text-highlight)}.option-list-item--selected .option-list-item__icon{color:var(--s-icon-highlight)}.option-list-item--selected .option-list-item__checkbox-box{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.option-list-item--disabled{cursor:default}.option-list-item--disabled.option-list-item--selected .option-list-item__checkbox-box{background-color:var(--s-icon-disabled)}.option-list-item--disabled.option-list-item--selected .option-list-item__checkbox-icon{color:var(--s-text-on-status)}.option-list-item--disabled .option-list-item__label{color:var(--s-text-disabled)}.option-list-item--disabled .option-list-item__icon,.option-list-item--disabled .option-list-item__selection-icon,.option-list-item--disabled .option-list-item__checkbox-icon{color:var(--s-icon-disabled)}.option-list-item--disabled .option-list-item__checkbox-box{border-color:var(--s-icon-disabled);background-color:var(--s-surface-overlay-default)}.option-list-item__label{flex-grow:1;color:var(--s-text-default);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__label{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.option-list-item__icon{display:inline-flex;flex-shrink:0;color:var(--s-icon-default)}.option-list-item__selection-icon{display:inline-flex;flex-shrink:0;color:var(--s-icon-highlight)}.option-list-item__checkbox{display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2)}.option-list-item__checkbox-box{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s)}.option-list-item__checkbox-icon{display:inline-flex}", _ = class {
|
|
119
|
-
constructor(t) {
|
|
120
|
-
a(this, t), this.context = "single-select", this.selected = !1, this.iconSize = 24, this.desktopMediaQuery = v(), this.desktopMediaQueryHandler = (e) => {
|
|
121
|
-
this.forceIconProps(e.matches), this.updateIconSize(e.matches);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
componentDidLoad() {
|
|
125
|
-
var t, e;
|
|
126
|
-
this.forceIconProps(this.desktopMediaQuery.matches), this.updateIconSize(this.desktopMediaQuery.matches), (e = (t = this.desktopMediaQuery).addEventListener) === null || e === void 0 || e.call(t, "change", this.desktopMediaQueryHandler);
|
|
127
|
-
}
|
|
128
|
-
disconnectedCallback() {
|
|
129
|
-
var t, e;
|
|
130
|
-
(e = (t = this.desktopMediaQuery).removeEventListener) === null || e === void 0 || e.call(t, "change", this.desktopMediaQueryHandler);
|
|
131
|
-
}
|
|
132
|
-
forceIconProps(t) {
|
|
133
|
-
var e;
|
|
134
|
-
const s = (e = this.iconEl) === null || e === void 0 ? void 0 : e.children[0];
|
|
135
|
-
s == null || s.setAttribute("size", t ? "20" : "24");
|
|
136
|
-
}
|
|
137
|
-
updateIconSize(t) {
|
|
138
|
-
this.iconSize = t ? 20 : 24;
|
|
139
|
-
}
|
|
140
|
-
render() {
|
|
141
|
-
const t = this.disabled ? "true" : void 0, e = String(this.selected), s = this.context === "multi-select", o = Boolean(this.icon) && this.context === "single-select", l = this.selected && this.context === "single-select", d = r("option-list-item", `option-list-item--context-${this.context}`, {
|
|
142
|
-
"option-list-item--disabled": this.disabled,
|
|
143
|
-
"option-list-item--selected": this.selected
|
|
144
|
-
});
|
|
145
|
-
return i(c, null, i("div", { "aria-disabled": t, "aria-selected": e, class: d, part: "option-list-item", role: "option" }, o && i("span", { class: "option-list-item__icon", innerHTML: this.icon, ref: (h) => this.iconEl = h }), s && i("span", { class: "option-list-item__checkbox" }, i("span", { class: "option-list-item__checkbox-box" }, this.selected && i("swirl-icon-check-strong", { class: "option-list-item__checkbox-icon", size: 16 }))), i("span", { class: "option-list-item__label", part: "option-list-item__label" }, this.label), l && i("span", { class: "option-list-item__selection-icon" }, i("swirl-icon-check-small", { size: this.iconSize }))));
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
_.style = I;
|
|
149
|
-
export {
|
|
150
|
-
f as swirl_icon_check_small,
|
|
151
|
-
g as swirl_option_list,
|
|
152
|
-
_ as swirl_option_list_item
|
|
153
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as s, h as e, H as o } from "./index.9489626d.js";
|
|
2
|
-
import { c as n } from "./index-c3028f7d.557956d2.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const a = ":host{display:block;max-width:100%}:host *{box-sizing:border-box}.text{margin:0;padding:0}.text--align-start{text-align:start}.text--align-center{text-align:center}.text--align-end{text-align:end}.text--color-default{color:var(--s-text-default)}.text--color-subdued{color:var(--s-text-subdued)}.text--color-critical{color:var(--s-text-critical)}.text--color-success{color:var(--s-text-success)}.text--color-warning{color:var(--s-text-warning)}.text--size-sm{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.text--size-base{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{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text--size-lg{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{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text--weight-normal{font-weight:var(--s-font-weight-normal)}.text--weight-medium{font-weight:var(--s-font-weight-medium)}.text--weight-semibold{font-weight:var(--s-font-weight-semibold)}.text--weight-bold{font-weight:var(--s-font-weight-bold)}.text--font-style-normal{font-style:normal}.text--font-style-italic{font-style:italic}.text--truncate{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}", r = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
s(this, t), this.align = "start", this.as = "p", this.color = "default", this.fontStyle = "normal", this.size = "base", this.weight = "normal";
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const t = this.as, i = n("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 });
|
|
12
|
-
return e(o, null, e(t, { class: i, part: i }, e("slot", null)));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
r.style = a;
|
|
16
|
-
export {
|
|
17
|
-
r as swirl_text
|
|
18
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const u = () => 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)");
|
|
2
|
-
function p(i, l, e = !1) {
|
|
3
|
-
let s;
|
|
4
|
-
return async function() {
|
|
5
|
-
const t = this, a = arguments, n = function() {
|
|
6
|
-
s = null, e || i.apply(t, a);
|
|
7
|
-
}, c = e && !Boolean(s);
|
|
8
|
-
clearTimeout(s), s = setTimeout(n, l), c && i.apply(t, a);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function f(i, l) {
|
|
12
|
-
const e = l.scrollTop, s = e + l.clientHeight, o = l.getBoundingClientRect(), t = i.getBoundingClientRect(), n = {
|
|
13
|
-
top: t.top - o.top,
|
|
14
|
-
right: t.right - o.right,
|
|
15
|
-
bottom: t.bottom - o.bottom,
|
|
16
|
-
left: t.left - o.left
|
|
17
|
-
}.top + e, c = n + i.offsetHeight, r = n < e ? e : n;
|
|
18
|
-
return (c > s ? s : c) - r;
|
|
19
|
-
}
|
|
20
|
-
function w() {
|
|
21
|
-
return !window.matchMedia("(min-width: 768px)").matches;
|
|
22
|
-
}
|
|
23
|
-
function g(i, l) {
|
|
24
|
-
function e(o, t) {
|
|
25
|
-
if (!Boolean(t))
|
|
26
|
-
return [];
|
|
27
|
-
const a = Array.from(t.querySelectorAll(o)), n = Boolean(window.HTMLSlotElement) && t instanceof HTMLSlotElement ? t.assignedElements() : [], c = [...Array.from(t.children), ...n], r = t.shadowRoot, d = e(o, r);
|
|
28
|
-
return [
|
|
29
|
-
...a,
|
|
30
|
-
...c.map((m) => e(o, m)).flat(),
|
|
31
|
-
...d
|
|
32
|
-
];
|
|
33
|
-
}
|
|
34
|
-
return e(l, i).filter((o, t, a) => !a.some((n, c) => n.isSameNode(o) && c > t));
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
f as a,
|
|
38
|
-
p as d,
|
|
39
|
-
u as g,
|
|
40
|
-
w as i,
|
|
41
|
-
g as q
|
|
42
|
-
};
|