@getflip/swirl-components-react 0.30.2 → 0.32.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/{file-manager.entry.86976df6.js → file-manager.entry.a082dc5f.js} +1 -1
- package/dist/{index.127e11f9.js → index.83edaabe.js} +49 -49
- package/dist/{swirl-action-list-section.entry.5a57a5ae.js → swirl-action-list-section.entry.1beb826e.js} +1 -1
- package/dist/{swirl-action-list_3.entry.6abca5d2.js → swirl-action-list_3.entry.e8e58d20.js} +1 -1
- package/dist/{swirl-app-bar.entry.674fc766.js → swirl-app-bar.entry.01355a4f.js} +1 -1
- package/dist/{swirl-app-icon.entry.5d70fef2.js → swirl-app-icon.entry.c827484d.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.a33361ae.js → swirl-app-layout_7.entry.a3dca377.js} +1 -1
- package/dist/{swirl-autocomplete.entry.c927518c.js → swirl-autocomplete.entry.8a8ebdc1.js} +1 -1
- package/dist/{swirl-avatar-group.entry.b561941b.js → swirl-avatar-group.entry.42aa5dad.js} +1 -1
- package/dist/{swirl-avatar.entry.ed5bac5f.js → swirl-avatar.entry.ea105205.js} +1 -1
- package/dist/{swirl-badge.entry.6e2eec21.js → swirl-badge.entry.c58d34ea.js} +1 -1
- package/dist/{swirl-banner.entry.71b37fb8.js → swirl-banner.entry.0c6f59ca.js} +1 -1
- package/dist/{swirl-button-group.entry.0ae433ba.js → swirl-button-group.entry.2910e42d.js} +1 -1
- package/dist/{swirl-button.entry.11e69b79.js → swirl-button.entry.93156b78.js} +1 -1
- package/dist/{swirl-card.entry.912949d2.js → swirl-card.entry.ce7a2145.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.81cf01e7.js → swirl-carousel-slide.entry.287e3c54.js} +1 -1
- package/dist/swirl-carousel.entry.d82e44b9.js +62 -0
- package/dist/{swirl-checkbox.entry.0ecdfbb2.js → swirl-checkbox.entry.5abbceab.js} +1 -1
- package/dist/{swirl-chip.entry.b447dd6a.js → swirl-chip.entry.4aec2e05.js} +1 -1
- package/dist/{swirl-columns.entry.243ccbcc.js → swirl-columns.entry.d5f7b8a0.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +6 -4
- package/dist/{swirl-console-layout.entry.b52e205d.js → swirl-console-layout.entry.64d929f1.js} +1 -1
- package/dist/{swirl-date-input.entry.1514f2ba.js → swirl-date-input.entry.283ddb6a.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.4fede8ef.js → swirl-date-picker_2.entry.a3ee99d8.js} +1 -1
- package/dist/{swirl-description-list-item.entry.149ffe7c.js → swirl-description-list-item.entry.be28c02b.js} +1 -1
- package/dist/{swirl-description-list.entry.9d743711.js → swirl-description-list.entry.8a370c2a.js} +1 -1
- package/dist/{swirl-dialog.entry.34d610a0.js → swirl-dialog.entry.19d56ca3.js} +1 -1
- package/dist/{swirl-file-uploader.entry.86957bd6.js → swirl-file-uploader.entry.2c5879d6.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.a1d65e14.js → swirl-file-viewer_7.entry.370042d3.js} +1 -1
- package/dist/{swirl-form-control.entry.0b87de36.js → swirl-form-control.entry.7fbdc856.js} +1 -1
- package/dist/{swirl-form-group.entry.ddceb7d0.js → swirl-form-group.entry.2b2dee4c.js} +1 -1
- package/dist/{swirl-heading.entry.937326d6.js → swirl-heading.entry.89a10123.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.f41cd28e.js → swirl-icon-add-photo.entry.978cb7ae.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.6da0fce6.js → swirl-icon-add_6.entry.0dadcb3a.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.0e027d39.js → swirl-icon-admin-panel-settings.entry.2cf2c81c.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.ce5e6a9f.js → swirl-icon-arrow-back.entry.39d3c5b7.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.9979bb31.js → swirl-icon-arrow-downward_2.entry.5447bcdc.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.9ae3bc5f.js → swirl-icon-arrow-forward.entry.49f532f3.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.36b8b423.js → swirl-icon-arrow-left_4.entry.f144ff18.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.88f34e08.js → swirl-icon-arrow-right-small.entry.2adea427.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.7d3f37f7.js → swirl-icon-attachment.entry.a9fe3320.js} +1 -1
- package/dist/{swirl-icon-block.entry.25f4f652.js → swirl-icon-block.entry.6a39e039.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.f852de8b.js → swirl-icon-bookmark.entry.869de87f.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.44005696.js → swirl-icon-cancel_4.entry.b5eccdc3.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.2f1e07ae.js → swirl-icon-chat-bubble.entry.97af2594.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.0fabc96b.js → swirl-icon-chats-filled.entry.4705b86a.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.5a3de536.js → swirl-icon-chats-outlined.entry.38af5e2d.js} +1 -1
- package/dist/{swirl-icon-check-circle.entry.96159cb2.js → swirl-icon-check-circle.entry.fde2be41.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.b4c98b43.js → swirl-icon-check-small_4.entry.3ffce766.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.44a844bf.js → swirl-icon-check-strong.entry.89557d70.js} +1 -1
- package/dist/{swirl-icon-check.entry.6461b288.js → swirl-icon-check.entry.d384dcf5.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.51c84714.js → swirl-icon-chevron-left.entry.d54774bc.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.baec15b5.js → swirl-icon-chevron-right.entry.db9fd677.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.cc8154c5.js → swirl-icon-close-small.entry.687d0a19.js} +1 -1
- package/dist/{swirl-icon-close.entry.171d5a42.js → swirl-icon-close.entry.b5a9bb09.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.2f5c373b.js → swirl-icon-cloud-upload.entry.147731c2.js} +1 -1
- package/dist/{swirl-icon-column.entry.ece5b909.js → swirl-icon-column.entry.b97ed0a4.js} +1 -1
- package/dist/{swirl-icon-comment.entry.ba47b10f.js → swirl-icon-comment.entry.23426789.js} +1 -1
- package/dist/{swirl-icon-copy.entry.e9c0ac38.js → swirl-icon-copy.entry.5976cf5a.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.612805a0.js → swirl-icon-date-range.entry.2d5b7ebd.js} +1 -1
- package/dist/{swirl-icon-delete.entry.44c7d259.js → swirl-icon-delete.entry.6ce51394.js} +1 -1
- package/dist/{swirl-icon-description.entry.726d2c8c.js → swirl-icon-description.entry.38a8966d.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.1172c38a.js → swirl-icon-double-arrow-left.entry.17599804.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.03df4fca.js → swirl-icon-double-arrow-right.entry.532d837c.js} +1 -1
- package/dist/{swirl-icon-download.entry.f0b52ace.js → swirl-icon-download.entry.03a8d32e.js} +1 -1
- package/dist/{swirl-icon-edit.entry.f8f457ce.js → swirl-icon-edit.entry.1ee215f7.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.62bcd094.js → swirl-icon-emoji-mood.entry.f0a991bd.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.6feba407.js → swirl-icon-emoji-satisfied.entry.c0c70808.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.ef07d12c.js → swirl-icon-error_3.entry.1f3a357f.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.4ba15012.js → swirl-icon-expand-more.entry.c4f74667.js} +1 -1
- package/dist/{swirl-icon-filter.entry.c6d5aebb.js → swirl-icon-filter.entry.9c85ea01.js} +1 -1
- package/dist/{swirl-icon-folder.entry.0d55ff3b.js → swirl-icon-folder.entry.07a5a79c.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.a8c4aeaf.js → swirl-icon-group-assign.entry.98b33597.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.68f27fa3.js → swirl-icon-groups-custom.entry.b97e6e1e.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.564a8ae8.js → swirl-icon-groups-filled.entry.8b206633.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.c2d0dfdd.js → swirl-icon-groups-outlined.entry.817adede.js} +1 -1
- package/dist/{swirl-icon-groups.entry.03db44e7.js → swirl-icon-groups.entry.6f632231.js} +1 -1
- package/dist/{swirl-icon-help.entry.afb3b452.js → swirl-icon-help.entry.2b91a75b.js} +1 -1
- package/dist/{swirl-icon-image.entry.493687fd.js → swirl-icon-image.entry.9c8f909f.js} +1 -1
- package/dist/{swirl-icon-info.entry.4b389d31.js → swirl-icon-info.entry.3ba1f53a.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.39949a2d.js → swirl-icon-inventory.entry.0b900852.js} +1 -1
- package/dist/{swirl-icon-like.entry.7d2bb25b.js → swirl-icon-like.entry.8de2ccad.js} +1 -1
- package/dist/{swirl-icon-link.entry.9ed6e6ae.js → swirl-icon-link.entry.13c1b80a.js} +1 -1
- package/dist/{swirl-icon-lock.entry.0807ca71.js → swirl-icon-lock.entry.5f20864f.js} +1 -1
- package/dist/{swirl-icon-logout.entry.f45b28fa.js → swirl-icon-logout.entry.bcd34fed.js} +1 -1
- package/dist/{swirl-icon-mail.entry.c90395a0.js → swirl-icon-mail.entry.a671c12d.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.90aa9917.js → swirl-icon-manage-accounts.entry.c3489777.js} +1 -1
- package/dist/{swirl-icon-mention.entry.84ab62bc.js → swirl-icon-mention.entry.b3b13427.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.5b2d7111.js → swirl-icon-menu-filled.entry.8291ec7e.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.5894673d.js → swirl-icon-menu-outlined.entry.225dfe46.js} +1 -1
- package/dist/{swirl-icon-menu.entry.b0e104b5.js → swirl-icon-menu.entry.80ff283b.js} +1 -1
- package/dist/{swirl-icon-message.entry.1e585c2a.js → swirl-icon-message.entry.3d9dd32d.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.16c6ce49.js → swirl-icon-more-horizontal.entry.e731f47b.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.65a3c5cd.js → swirl-icon-news-filled.entry.1a881bd6.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.48629f77.js → swirl-icon-news-outlined.entry.b12862d1.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.8f619f42.js → swirl-icon-notifications-active.entry.a7eae716.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.04602281.js → swirl-icon-notifications-off.entry.196b69bb.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.3ea38a6c.js → swirl-icon-notifications.entry.e4dcba72.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.f3194ccd.js → swirl-icon-open-in-new.entry.f7c48998.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.f371c1a9.js → swirl-icon-people-alt.entry.1085257a.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.bef0de87.js → swirl-icon-person-off.entry.7c7c9e43.js} +1 -1
- package/dist/{swirl-icon-person.entry.6705bf4e.js → swirl-icon-person.entry.4bd4f49e.js} +1 -1
- package/dist/{swirl-icon-phone.entry.674edec3.js → swirl-icon-phone.entry.bb518e19.js} +1 -1
- package/dist/{swirl-icon-poll.entry.b8793b93.js → swirl-icon-poll.entry.23377683.js} +1 -1
- package/dist/{swirl-icon-print.entry.cb180112.js → swirl-icon-print.entry.c9491d96.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.4e3317f7.js → swirl-icon-recieved.entry.30cd9631.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.1d756405.js → swirl-icon-search-strong.entry.b6f86dc0.js} +1 -1
- package/dist/{swirl-icon-search.entry.b93f6f7c.js → swirl-icon-search.entry.8c3d79e0.js} +1 -1
- package/dist/{swirl-icon-send.entry.ce98e64a.js → swirl-icon-send.entry.328d40b4.js} +1 -1
- package/dist/{swirl-icon-settings.entry.6aa2eabf.js → swirl-icon-settings.entry.502901c6.js} +1 -1
- package/dist/{swirl-icon-sync.entry.5f0b535f.js → swirl-icon-sync.entry.82b59d28.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.2b0dc531.js → swirl-icon-tasks-filled.entry.e56401d3.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.50e43b8d.js → swirl-icon-tasks-outlined.entry.e0f29b48.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.be0c2d48.js → swirl-icon-time-filled.entry.8bf86999.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.d216bf5f.js → swirl-icon-time-outlined.entry.c271697f.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.4ee9227a.js → swirl-icon-user-assign.entry.6e15a84b.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.2438f5c7.js → swirl-icon-video-camera.entry.220f858a.js} +1 -1
- package/dist/{swirl-icon-warning.entry.67cc55c1.js → swirl-icon-warning.entry.fe282ea3.js} +1 -1
- package/dist/{swirl-lightbox.entry.069b7e2a.js → swirl-lightbox.entry.dff779d0.js} +1 -1
- package/dist/{swirl-link.entry.4dff8251.js → swirl-link.entry.361660a7.js} +1 -1
- package/dist/{swirl-list.entry.e9c15ad2.js → swirl-list.entry.32daf3fd.js} +1 -1
- package/dist/{swirl-modal.entry.7e2ed271.js → swirl-modal.entry.b2b8b338.js} +1 -1
- package/dist/{swirl-option-list-section.entry.0c85c840.js → swirl-option-list-section.entry.2edae1ef.js} +1 -1
- package/dist/{swirl-pagination.entry.160e8905.js → swirl-pagination.entry.b2517b9b.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.4d01e1be.js → swirl-pdf-reader.entry.10eef768.js} +1 -1
- package/dist/{swirl-popover.entry.e556379c.js → swirl-popover.entry.534bec4d.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.d47b5b0a.js → swirl-progress-indicator.entry.182f77d4.js} +1 -1
- package/dist/{swirl-radio-group.entry.97c928f9.js → swirl-radio-group.entry.7594a2d0.js} +1 -1
- package/dist/{swirl-radio.entry.831bf02b.js → swirl-radio.entry.1b92ee16.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.d569b47a.js → swirl-resource-list-file-item.entry.b10567b4.js} +1 -1
- package/dist/{swirl-search.entry.381602c6.js → swirl-search.entry.3fe729ca.js} +1 -1
- package/dist/{swirl-select.entry.9f5c620c.js → swirl-select.entry.c413ea5a.js} +1 -1
- package/dist/{swirl-shell-layout.entry.5bf194b8.js → swirl-shell-layout.entry.639d18c2.js} +16 -14
- package/dist/{swirl-shell-navigation-item.entry.88e98d80.js → swirl-shell-navigation-item.entry.3d1023e2.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.54c25721.js → swirl-skeleton-box.entry.ef20f318.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.86cdd1f4.js → swirl-skeleton-text.entry.1a745530.js} +1 -1
- package/dist/{swirl-stack.entry.6c9ac4f9.js → swirl-stack.entry.072e1abd.js} +1 -1
- package/dist/{swirl-switch.entry.3d3cafee.js → swirl-switch.entry.78b4f8b2.js} +1 -1
- package/dist/{swirl-tab.entry.ab3934e5.js → swirl-tab.entry.899527b5.js} +1 -1
- package/dist/{swirl-table-cell.entry.54ecb0ba.js → swirl-table-cell.entry.1bd59d94.js} +1 -1
- package/dist/{swirl-table-column.entry.cbf4eb62.js → swirl-table-column.entry.d6af9a6d.js} +1 -1
- package/dist/{swirl-table-row-group.entry.68c9a56c.js → swirl-table-row-group.entry.92ebbf7a.js} +1 -1
- package/dist/{swirl-table-row.entry.6f67f1aa.js → swirl-table-row.entry.373c0167.js} +1 -1
- package/dist/{swirl-table.entry.2d61919d.js → swirl-table.entry.62b5f00c.js} +1 -1
- package/dist/{swirl-tabs.entry.1c2080d4.js → swirl-tabs.entry.15a4f591.js} +1 -1
- package/dist/{swirl-tag.entry.affacb5c.js → swirl-tag.entry.35696733.js} +1 -1
- package/dist/{swirl-text-input.entry.47d0e866.js → swirl-text-input.entry.c0345c0b.js} +1 -1
- package/dist/{swirl-text.entry.852f9c4e.js → swirl-text.entry.347b3d0c.js} +1 -1
- package/dist/{swirl-theme-provider.entry.09adfbe6.js → swirl-theme-provider.entry.722f797c.js} +1 -1
- package/dist/{swirl-toast-provider.entry.406c404c.js → swirl-toast-provider.entry.658a4b2b.js} +1 -1
- package/dist/{swirl-toast.entry.a92e6c8f.js → swirl-toast.entry.4d7c5111.js} +1 -1
- package/dist/{swirl-tooltip.entry.4536e3f8.js → swirl-tooltip.entry.2b437b17.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.c8ceb44d.js → swirl-tree-navigation-item.entry.35e26f2c.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.d1b6d06e.js → swirl-video-thumbnail.entry.b005920a.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.060b7468.js → swirl-visually-hidden.entry.430b248a.js} +1 -1
- package/dist/{wc-datepicker.entry.4723b585.js → wc-datepicker.entry.246b4d2d.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-carousel.entry.95efd58c.js +0 -51
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as c, h as e, H as u, g } from "./index.
|
|
1
|
+
import { r as c, h as e, H as u, g } from "./index.83edaabe.js";
|
|
2
2
|
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as m, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as x } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as i, H as t } from "./index.
|
|
1
|
+
import { r, h as i, H as t } from "./index.83edaabe.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ":host{display:inline-flex}:host *{box-sizing:border-box}.link{color:var(--s-interactive-primary-default);line-height:var(--s-line-height-base);text-underline-offset:var(--s-space-4)}.link:hover{color:var(--s-interactive-primary-hovered)}.link:active{color:var(--s-interactive-primary-pressed)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.link{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as t, H as r } from "./index.
|
|
1
|
+
import { r as l, h as t, H as r } from "./index.83edaabe.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ':host{display:block}:host *{box-sizing:border-box}.swirl-list{line-height:var(--s-line-height-base)}.swirl-list ul,.swirl-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.swirl-list ul li{padding-left:1.5rem}.swirl-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.swirl-list ol{counter-reset:item}.swirl-list ol ol{counter-reset:letter}.swirl-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.swirl-list ol li{padding-left:1.5rem}.swirl-list ol li:before{display:inline-block;min-width:1.5rem;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item;font-variant-numeric:tabular-nums}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.swirl-list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}', n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as s, h as o, H as p } from "./index.
|
|
1
|
+
import { r as h, c as s, h as o, H as p } from "./index.83edaabe.js";
|
|
2
2
|
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as f, e as u } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as v } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as t, H as e } from "./index.
|
|
1
|
+
import { r as s, h as t, H as e } from "./index.83edaabe.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:block}:host *{box-sizing:border-box}.option-list-section{background-color:var(--s-surface-overlay-default)}.option-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);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-section__label{padding:var(--s-space-8) var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as n, g as d } from "./index.
|
|
1
|
+
import { r as l, h as e, H as n, g as d } from "./index.83edaabe.js";
|
|
2
2
|
import { A as c } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as h, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as r } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as r, h as n, H as m, g as v } from "./index.
|
|
1
|
+
import { r as h, c as r, h as n, H as m, g as v } from "./index.83edaabe.js";
|
|
2
2
|
import { o as p, s as l, f, c as u, a as g } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
|
|
3
3
|
import { d as b, e as y } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as k } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as o, h as i, H as l, g as n } from "./index.
|
|
1
|
+
import { r as a, c as o, h as i, H as l, g as n } from "./index.83edaabe.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const u = ".sc-swirl-radio-group-h{display:block}.sc-swirl-radio-group-h *.sc-swirl-radio-group{box-sizing:border-box}.radio-group.sc-swirl-radio-group{display:flex;flex-direction:column;gap:var(--s-space-12)}", d = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as a, h as s, H as c } from "./index.
|
|
1
|
+
import { r as n, c as a, h as s, H as c } from "./index.83edaabe.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as h } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as r, h as e, H as c, g as d } from "./index.
|
|
1
|
+
import { r as a, c as r, h as e, H as c, g as d } from "./index.83edaabe.js";
|
|
2
2
|
import { c as h } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as p } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { r as o, h as e, H as t } from "./index.
|
|
1
|
+
import { r as o, h as e, H as t } from "./index.83edaabe.js";
|
|
2
2
|
import { c as i } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as r, g as d } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const n = `:host{--extended-sidebar-width:17rem;--collapsed-sidebar-width:4rem;display:flex;width:100%;height:100%}:host *{box-sizing:border-box}.shell-layout{display:grid;width:100%;min-height:100%;transition:grid-template-columns 0.2s;grid-template-columns:0 1fr;grid-template-rows:auto 1fr;grid-template-areas:"banner banner"
|
|
7
7
|
"sidebar main"}@media (min-width: 992px){.shell-layout{grid-template-columns:var(--extended-sidebar-width) 1fr}}.shell-layout--collapsed-sidebar{grid-template-columns:0 1fr}@media (min-width: 992px){.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper.shell-layout__sidebar-wrapper--hovered .shell-layout__sidebar,.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper:focus-within .shell-layout__sidebar{width:var(--extended-sidebar-width);box-shadow:0 0.75rem 2rem rgba(25, 26, 28, 0.12),
|
|
8
|
-
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{transform:translate3d(-100%, 0, 0)}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper .shell-layout__sidebar{width:100%;box-shadow:none}@media (min-width: 992px){.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{max-width:var(--collapsed-sidebar-width);flex-basis:var(--collapsed-sidebar-width);transform:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__sidebar{box-shadow:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__collapsed-logo{display:inline-flex;justify-content:center;align-items:center}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__expanded-logo{display:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__toggle{display:none}}@media (min-width: 992px){.shell-layout--collapsed-sidebar{grid-template-columns:var(--collapsed-sidebar-width) 1fr}}.shell-
|
|
8
|
+
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{transform:translate3d(-100%, 0, 0)}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper .shell-layout__sidebar{width:100%;box-shadow:none}@media (min-width: 992px){.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{max-width:var(--collapsed-sidebar-width);flex-basis:var(--collapsed-sidebar-width);transform:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__sidebar{box-shadow:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__collapsed-logo{display:inline-flex;justify-content:center;align-items:center}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__expanded-logo{display:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__toggle{display:none}}@media (min-width: 992px){.shell-layout--collapsed-sidebar{grid-template-columns:var(--collapsed-sidebar-width) 1fr}}.shell-layout--hide-sidebar{grid-template-columns:1fr;grid-template-areas:"banner"
|
|
9
|
+
"main"}@media (min-width: 992px){.shell-layout--hide-sidebar{grid-template-columns:1fr}}.shell-layout__banner{grid-area:banner}.shell-layout__sidebar-wrapper{position:absolute;z-index:2;top:0;bottom:0;left:0;width:100%;max-width:var(--extended-sidebar-width);min-height:0;flex-basis:var(--extended-sidebar-width);flex-shrink:0;transition:max-width 0.2s, transform 0.2s;grid-area:sidebar}@media (min-width: 992px){.shell-layout__sidebar-wrapper{position:relative;inset:auto}}.shell-layout__sidebar{display:flex;width:var(--extended-sidebar-width);height:100%;border-right:var(--s-border-width-default) solid var(--s-border-default);flex-direction:column;transition:box-shadow 0.2s, width 0.2s;box-shadow:0 0.75rem 2rem rgba(25, 26, 28, 0.12),
|
|
9
10
|
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}@media (min-width: 992px){.shell-layout__sidebar{box-shadow:none}}.shell-layout__header{flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.shell-layout__logo-bar{display:flex;overflow:hidden;align-items:center;height:4.5rem}.shell-layout__expanded-logo{padding-right:var(--s-space-12);padding-left:var(--s-space-12);flex-grow:1}.shell-layout__collapsed-logo{display:none;padding-right:var(--s-space-12);padding-left:var(--s-space-12);flex-grow:1}.shell-layout__toggle{padding-right:var(--s-space-16);padding-left:var(--s-space-12);flex-grow:0;flex-shrink:0}.shell-layout__mobile-toggle{position:absolute;z-index:2;top:var(--s-space-12);left:calc(100% + var(--s-space-16))}@media (min-width: 992px){.shell-layout__mobile-toggle{display:none}}.shell-layout__main-navigation{overflow:auto;flex-grow:1;background-color:var(--s-background-default)}.shell-layout__main{min-height:0;background-color:var(--s-background-default);grid-area:main}.shell-layout__main>*,.shell-layout__main ::slotted(*){height:100%}.shell-layout__backdrop{position:fixed;z-index:1;background-color:rgba(0, 0, 0, 0.4);-webkit-animation:shell-layout-backdrop-fade-in 0.1s;animation:shell-layout-backdrop-fade-in 0.1s;inset:0}@media (min-width: 992px){.shell-layout__backdrop{display:none}}.shell-layout__backdrop--fading{-webkit-animation:shell-layout-backdrop-fade-out 0.2s;animation:shell-layout-backdrop-fade-out 0.2s}@-webkit-keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes shell-layout-backdrop-fade-out{from{opacity:1}to{opacity:0}}@keyframes shell-layout-backdrop-fade-out{from{opacity:1}to{opacity:0}}`, h = class {
|
|
10
11
|
constructor(l) {
|
|
11
12
|
o(this, l), this.desktopMediaQuery = r(), this.desktopMediaQueryHandler = (a) => {
|
|
12
|
-
a.matches ? this.
|
|
13
|
-
}, this.
|
|
13
|
+
a.matches ? this.expandLeftSidebar() : this.collapseLeftSidebar();
|
|
14
|
+
}, this.collapseLeftSidebar = () => {
|
|
14
15
|
this.collapsedSidebar = !0, this.collapsing = !0, setTimeout(() => {
|
|
15
16
|
this.collapsing = !1, this.sidebarHovered = !1;
|
|
16
17
|
}, 200);
|
|
17
|
-
}, this.
|
|
18
|
-
this.collapsedSidebar = !1;
|
|
18
|
+
}, this.expandLeftSidebar = () => {
|
|
19
|
+
this.hideSidebar || (this.collapsedSidebar = !1);
|
|
19
20
|
}, this.toggleSidebar = () => {
|
|
20
|
-
this.collapsedSidebar ? this.
|
|
21
|
+
this.collapsedSidebar ? this.expandLeftSidebar() : this.collapseLeftSidebar();
|
|
21
22
|
}, this.onBackdropClick = () => {
|
|
22
|
-
this.collapsedSidebar || this.
|
|
23
|
+
this.collapsedSidebar || this.collapseLeftSidebar();
|
|
23
24
|
}, this.onSidebarClick = () => {
|
|
24
25
|
var a, s;
|
|
25
26
|
this.collapsedSidebar && ((a = document.activeElement) === null || a === void 0 || a.blur(), (s = d()) === null || s === void 0 || s.blur());
|
|
@@ -27,28 +28,29 @@ const n = `:host{--extended-sidebar-width:17rem;--collapsed-sidebar-width:4rem;d
|
|
|
27
28
|
this.sidebarHovered = !0;
|
|
28
29
|
}, this.onSidebarMouseLeave = () => {
|
|
29
30
|
this.sidebarHovered = !1;
|
|
30
|
-
}, this.mainNavigationLabel = "Main", this.sidebarToggleLabel = "Toggle sidebar", this.collapsedSidebar = void 0, this.collapsing = void 0, this.sidebarHovered = void 0;
|
|
31
|
+
}, this.hideSidebar = void 0, this.mainNavigationLabel = "Main", this.sidebarToggleLabel = "Toggle sidebar", this.collapsedSidebar = void 0, this.collapsing = void 0, this.sidebarHovered = void 0;
|
|
31
32
|
}
|
|
32
33
|
componentWillLoad() {
|
|
33
34
|
var l, a;
|
|
34
|
-
this.desktopMediaQuery.matches || this.
|
|
35
|
+
this.desktopMediaQuery.matches || this.collapseLeftSidebar(), (a = (l = this.desktopMediaQuery).addEventListener) === null || a === void 0 || a.call(l, "change", this.desktopMediaQueryHandler);
|
|
35
36
|
}
|
|
36
37
|
async collapseSidebar() {
|
|
37
|
-
this.
|
|
38
|
+
this.collapseLeftSidebar();
|
|
38
39
|
}
|
|
39
40
|
async extendSidebar() {
|
|
40
|
-
this.
|
|
41
|
+
this.expandLeftSidebar();
|
|
41
42
|
}
|
|
42
43
|
render() {
|
|
43
44
|
const l = i("shell-layout", {
|
|
44
45
|
"shell-layout--collapsed-sidebar": this.collapsedSidebar,
|
|
45
|
-
"shell-layout--collapsing": this.collapsing
|
|
46
|
+
"shell-layout--collapsing": this.collapsing,
|
|
47
|
+
"shell-layout--hide-sidebar": this.hideSidebar
|
|
46
48
|
}), a = i("shell-layout__sidebar-wrapper", {
|
|
47
49
|
"shell-layout__sidebar-wrapper--hovered": this.sidebarHovered
|
|
48
50
|
}), s = i("shell-layout__backdrop", {
|
|
49
51
|
"shell-layout__backdrop--fading": this.collapsing
|
|
50
52
|
});
|
|
51
|
-
return e(t, null, e("div", { class: l }, e("div", { class: "shell-layout__banner" }, e("slot", { name: "banner" })), e("div", { class: a, onClick: this.onSidebarClick, onMouseEnter: this.onSidebarMouseEnter, onMouseLeave: this.onSidebarMouseLeave }, e("div", { class: "shell-layout__sidebar" }, e("header", { class: "shell-layout__header" }, e("div", { class: "shell-layout__logo-bar" }, e("div", { class: "shell-layout__expanded-logo" }, e("slot", { name: "logo-expanded" })), e("div", { class: "shell-layout__collapsed-logo" }, e("slot", { name: "logo-collapsed" })), e("div", { class: "shell-layout__toggle" }, e("swirl-button", { swirlAriaExpanded: String(!this.collapsedSidebar), hideLabel: !0, icon: this.collapsedSidebar ? "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>" : "<swirl-icon-double-arrow-left></swirl-icon-double-arrow-left>", label: this.sidebarToggleLabel, onClick: this.toggleSidebar }))), e("div", { class: "shell-layout__tools" }, e("slot", { name: "tools" }))), e("nav", { "aria-label": this.mainNavigationLabel, class: "shell-layout__main-navigation" }, e("slot", { name: "main-navigation" })))), e("main", { class: "shell-layout__main" }, e("slot", { name: "main" })), (!this.collapsedSidebar || this.collapsing) && e("div", { class: s, onClick: this.onBackdropClick })));
|
|
53
|
+
return e(t, null, e("div", { class: l }, e("div", { class: "shell-layout__banner" }, e("slot", { name: "banner" })), e("div", { class: a, onClick: this.onSidebarClick, onMouseEnter: this.onSidebarMouseEnter, onMouseLeave: this.onSidebarMouseLeave }, !this.hideSidebar && e("div", { class: "shell-layout__sidebar" }, e("header", { class: "shell-layout__header" }, e("div", { class: "shell-layout__logo-bar" }, e("div", { class: "shell-layout__expanded-logo" }, e("slot", { name: "logo-expanded" })), e("div", { class: "shell-layout__collapsed-logo" }, e("slot", { name: "logo-collapsed" })), e("div", { class: "shell-layout__toggle" }, e("swirl-button", { swirlAriaExpanded: String(!this.collapsedSidebar), hideLabel: !0, icon: this.collapsedSidebar ? "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>" : "<swirl-icon-double-arrow-left></swirl-icon-double-arrow-left>", label: this.sidebarToggleLabel, onClick: this.toggleSidebar }))), e("div", { class: "shell-layout__tools" }, e("slot", { name: "tools" }))), e("nav", { "aria-label": this.mainNavigationLabel, class: "shell-layout__main-navigation" }, e("slot", { name: "main-navigation" })))), e("main", { class: "shell-layout__main" }, e("slot", { name: "main" })), (!this.collapsedSidebar || this.collapsing) && e("div", { class: s, onClick: this.onBackdropClick })));
|
|
52
54
|
}
|
|
53
55
|
};
|
|
54
56
|
h.style = n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, h as s, H as e } from "./index.
|
|
1
|
+
import { r as a, h as s, H as e } from "./index.83edaabe.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{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;background-color:var(--s-background-default);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t, H as r, g as i } from "./index.
|
|
1
|
+
import { r as e, h as t, H as r, g as i } from "./index.83edaabe.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padding-right:var(--s-space-16);padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-top:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);background-color:var(--s-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;letter-spacing:var(--s-letter-spacing-tighter);text-overflow:ellipsis;transition:box-shadow 0.15s;gap:var(--s-space-8)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host(.table-column--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-column--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}.table-column__sort-indicator{display:inline-flex;width:1.25rem;height:1.25rem;flex-grow:0;flex-shrink:0}", a = class {
|
package/dist/{swirl-table-row-group.entry.68c9a56c.js → swirl-table-row-group.entry.92ebbf7a.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as r, H as s, g as t } from "./index.
|
|
1
|
+
import { r as o, h as r, H as s, g as t } from "./index.83edaabe.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ":host{position:relative;z-index:1;display:block}:host *{box-sizing:border-box}.table-row-group__header-row{padding:var(--s-space-12) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-surface-raised-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}@media (min-width: 768px){.table-row-group__label{position:sticky;left:var(--s-space-16)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, h as e, H as r, g as a } from "./index.
|
|
1
|
+
import { r as n, h as e, H as r, g as a } from "./index.83edaabe.js";
|
|
2
2
|
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { b as x } from "./balancetext-fa49c64f.754e913c.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, c as n, h as i, H as r } from "./index.
|
|
1
|
+
import { r as o, c as n, h as i, H as r } from "./index.83edaabe.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as c } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
package/dist/{swirl-visually-hidden.entry.060b7468.js → swirl-visually-hidden.entry.430b248a.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.83edaabe.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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@getflip/swirl-components": "^0.
|
|
21
|
+
"@getflip/swirl-components": "^0.33.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { r, h as l, H as n, g as a } from "./index.127e11f9.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const c = ":host{position:relative;display:block;overflow:hidden;width:100%;margin-top:calc(-1 * var(--s-space-24));margin-bottom:calc(-1 * var(--s-space-24))}:host(:hover) .carousel__previous-slide-button{pointer-events:auto;opacity:1}:host(:hover) .carousel__next-slide-button{pointer-events:auto;opacity:1}:host *{box-sizing:border-box}.carousel{position:relative;overflow:hidden;width:100%}.carousel__slides{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;width:100%;padding:var(--s-space-24) 0 var(--s-space-24) var(--s-space-16);scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth}@media (min-width: 768px){.carousel__slides{padding-left:var(--s-space-24)}}.carousel__slides::-webkit-scrollbar{display:none}.carousel__slides ::slotted(*){flex-grow:0;flex-shrink:0;scroll-snap-align:start;padding-left:var(--s-space-16)}@media (min-width: 768px){.carousel__slides ::slotted(*){padding-left:var(--s-space-24)}}.carousel__slides ::slotted(*:last-child){margin-right:var(--s-space-16)}@media (min-width: 768px){.carousel__slides ::slotted(*:last-child){margin-right:var(--s-space-24)}}.carousel__previous-slide-button{position:absolute;z-index:1;top:calc(50% - var(--s-space-12));left:var(--s-space-16);transition:opacity 0.2s;transform:translateY(-50%) scale(0.72);pointer-events:none;opacity:0}.carousel__next-slide-button{position:absolute;z-index:1;top:calc(50% - var(--s-space-12));right:var(--s-space-16);transition:opacity 0.2s;transform:translateY(-50%) scale(0.72);pointer-events:none;opacity:0}", d = class {
|
|
5
|
-
constructor(e) {
|
|
6
|
-
r(this, e), this.onPreviousSlideButtonClick = () => {
|
|
7
|
-
this.previousSlide();
|
|
8
|
-
}, this.onNextSlideButtonClick = () => {
|
|
9
|
-
this.nextSlide();
|
|
10
|
-
}, this.label = void 0, this.nextSlideButtonLabel = "Next slide", this.previousSlideButtonLabel = "Previous slide", this.loopAround = !1, this.isScrollable = void 0;
|
|
11
|
-
}
|
|
12
|
-
onWindowResize() {
|
|
13
|
-
this.checkScrollStatus();
|
|
14
|
-
}
|
|
15
|
-
componentDidLoad() {
|
|
16
|
-
queueMicrotask(() => {
|
|
17
|
-
this.checkScrollStatus();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
checkScrollStatus() {
|
|
21
|
-
this.isScrollable = this.slidesContainer.scrollWidth > this.slidesContainer.offsetWidth;
|
|
22
|
-
}
|
|
23
|
-
previousSlide() {
|
|
24
|
-
const e = this.getSlides(), i = this.getActiveSlides(), t = i[0].previousElementSibling || (this.loopAround ? e[e.length - 1] : i[0]);
|
|
25
|
-
t == null || t.scrollIntoView({ block: "nearest", inline: "start" });
|
|
26
|
-
}
|
|
27
|
-
nextSlide() {
|
|
28
|
-
const e = this.getSlides(), i = this.getActiveSlides(), s = !Boolean(i[i.length - 1].nextElementSibling) && this.loopAround ? e[0] : i[0].nextElementSibling;
|
|
29
|
-
s == null || s.scrollIntoView({ block: "nearest", inline: "start" });
|
|
30
|
-
}
|
|
31
|
-
getSlides() {
|
|
32
|
-
return Array.from(this.el.querySelectorAll("swirl-carousel-slide"));
|
|
33
|
-
}
|
|
34
|
-
getActiveSlides() {
|
|
35
|
-
return this.getSlides().filter((i) => this.checkInView(i));
|
|
36
|
-
}
|
|
37
|
-
checkInView(e) {
|
|
38
|
-
let i = this.slidesContainer.scrollLeft, t = i + this.slidesContainer.clientWidth, s = e.offsetLeft, o = s + e.clientWidth;
|
|
39
|
-
return s >= i && o <= t;
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
return l(n, { "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, l("div", { class: "carousel" }, this.isScrollable && l("swirl-button", { class: "carousel__previous-slide-button", hideLabel: !0, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: !0, variant: "floating" }), this.isScrollable && l("swirl-button", { class: "carousel__next-slide-button", hideLabel: !0, icon: "<swirl-icon-arrow-forward></swirl-icon-arrow-forward>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: !0, variant: "floating" }), l("div", { "aria-live": "polite", class: "carousel__slides", ref: (e) => this.slidesContainer = e }, l("slot", null))));
|
|
43
|
-
}
|
|
44
|
-
get el() {
|
|
45
|
-
return a(this);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
d.style = c;
|
|
49
|
-
export {
|
|
50
|
-
d as swirl_carousel
|
|
51
|
-
};
|