@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,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,48 +0,0 @@
|
|
|
1
|
-
import { r as n, c as r, h as e, H as c, g as d } from "./index.9489626d.js";
|
|
2
|
-
import { c as h } from "./index-c3028f7d.557956d2.js";
|
|
3
|
-
import { q as p } from "./utils-7efaa1c6.4a9c3721.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
7
|
-
const u = ".sc-swirl-select-h{display:block;width:100%}.sc-swirl-select-h *.sc-swirl-select{box-sizing:border-box}.select.sc-swirl-select{position:relative;display:flex;width:100%}.select--disabled.sc-swirl-select .select__label.sc-swirl-select{color:var(--s-text-disabled)}.select--disabled.sc-swirl-select .select__indicator.sc-swirl-select{color:var(--s-icon-disabled)}.select__label.sc-swirl-select{display:block;overflow:hidden;width:100%;height:1.375rem;margin:0;padding:0;padding-right:calc(1.5rem + var(--s-space-8));border:none;background-color:transparent;font:inherit;line-height:var(--s-line-height-base);text-align:left;white-space:nowrap;text-overflow:ellipsis;cursor:default}.select__label.sc-swirl-select:focus{outline:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.select__label.sc-swirl-select{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.select__indicator.sc-swirl-select{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;color:var(--s-icon-default)}", v = class {
|
|
8
|
-
constructor(i) {
|
|
9
|
-
n(this, i), this.valueChange = r(this, "valueChange", 7), this.options = [], this.select = (s) => {
|
|
10
|
-
this.value = s.detail, this.valueChange.emit(this.value), this.multiSelect || this.popover.close();
|
|
11
|
-
}, this.onSlotChange = () => {
|
|
12
|
-
this.updateOptions();
|
|
13
|
-
}, this.onOpen = () => {
|
|
14
|
-
this.open = !0;
|
|
15
|
-
}, this.onClose = () => {
|
|
16
|
-
this.open = !1;
|
|
17
|
-
}, this.onKeyDown = (s) => {
|
|
18
|
-
(s.code === "Space" || s.code === "Enter") && (s.preventDefault(), this.popover.open());
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
queueMicrotask(() => {
|
|
23
|
-
this.updateOptions();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
onWindowFocusIn(i) {
|
|
27
|
-
i.target === this.el.querySelector("input") && i.stopImmediatePropagation();
|
|
28
|
-
}
|
|
29
|
-
updateOptions() {
|
|
30
|
-
this.options = p(this.el, "swirl-option-list-item");
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const i = Boolean(this.value) ? this.value.map((t) => {
|
|
34
|
-
var l;
|
|
35
|
-
return (l = this.options.find((a) => a.value === t)) === null || l === void 0 ? void 0 : l.label;
|
|
36
|
-
}).join(", ") : "", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, o = h("select", {
|
|
37
|
-
"select--disabled": this.disabled
|
|
38
|
-
});
|
|
39
|
-
return e(c, { onKeyDown: this.onKeyDown }, e("div", { class: o }, e("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-invalid": s, class: "select__label", disabled: this.disabled, id: "trigger", readOnly: !0, type: "text", value: i }), e("span", { class: "select__indicator" }, this.open ? e("swirl-icon-expand-less", null) : e("swirl-icon-expand-more", null)), e("swirl-popover", { animation: "scale-in-y", class: "select__popover", enableFlip: !1, label: this.label, offset: [16, -16], onPopoverClose: this.onClose, onPopoverOpen: this.onOpen, popoverId: "select-options", ref: (t) => this.popover = t, trigger: "trigger", useContainerWidth: "swirl-form-control" }, e("swirl-option-list", { onValueChange: this.select, multiSelect: this.multiSelect, value: this.value }, e("slot", { onSlotchange: this.onSlotChange })))));
|
|
40
|
-
}
|
|
41
|
-
get el() {
|
|
42
|
-
return d(this);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
v.style = u;
|
|
46
|
-
export {
|
|
47
|
-
v as swirl_select
|
|
48
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as a, h as s, H as i } from "./index.9489626d.js";
|
|
2
|
-
import { c as r } from "./index-c3028f7d.557956d2.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const o = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{display:none;width:100%;padding:var(--s-space-8)}.tab--active{display:block}", e = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
a(this, t);
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const t = r("tab", { "tab--active": this.active });
|
|
12
|
-
return s(i, { "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 }, s("div", { class: t }, s("slot", null)));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
e.style = o;
|
|
16
|
-
export {
|
|
17
|
-
e as swirl_tab
|
|
18
|
-
};
|
|
@@ -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
|
-
};
|